]>
Commit | Line | Data |
---|---|---|
a848cd7e SC |
1 | #! /bin/sh |
2 | # From configure.in Id: configure.in. | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
dd8df4fc | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
ac1cb8d3 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
ac1cb8d3 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
26 | |
27 | # Support unset when possible. | |
ac1cb8d3 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
ac1cb8d3 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
101 | ||
102 | ||
103 | as_lineno_1=$LINENO | |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
119 | ||
120 | ;; | |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
ac1cb8d3 | 224 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
225 | as_mkdir_p=false |
226 | fi | |
227 | ||
228 | as_executable_p="test -f" | |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
235 | |
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
244 | $as_unset CDPATH | |
245 | ||
246 | ||
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
253 | ||
254 | # | |
255 | # Initializations. | |
256 | # | |
257 | ac_default_prefix=/usr/local | |
258 | ac_config_libobj_dir=. | |
259 | cross_compiling=no | |
260 | subdirs= | |
261 | MFLAGS= | |
262 | MAKEFLAGS= | |
263 | SHELL=${CONFIG_SHELL-/bin/sh} | |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
270 | # Identity of this package. | |
77ffb593 JS |
271 | PACKAGE_NAME='wxWidgets' |
272 | PACKAGE_TARNAME='wxwidgets' | |
dd8df4fc VZ |
273 | PACKAGE_VERSION='2.7.0' |
274 | PACKAGE_STRING='wxWidgets 2.7.0' | |
77ffb593 | 275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' |
a848cd7e SC |
276 | |
277 | ac_unique_file="wx-config.in" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
315 | ac_subdirs_all="$ac_subdirs_all src/expat" | |
8b6682b9 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
dd8df4fc | 797 | \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
dd8df4fc | 863 | short | recursive ) echo "Configuration of wxWidgets 2.7.0:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
f34ca037 | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
7afc46ab | 892 | --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working) |
dee1a63f MB |
893 | --enable-compat24 enable wxWidgets 2.4 compatibility |
894 | --disable-compat26 disable wxWidgets 2.6 compatibility | |
ffa0583f | 895 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
896 | --enable-intl use internationalization system |
897 | --enable-config use wxConfig (and derived) classes | |
898 | --enable-protocols use wxProtocol and derived classes | |
899 | --enable-ftp use wxFTP (requires wxProtocol | |
900 | --enable-http use wxHTTP (requires wxProtocol | |
901 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
902 | --enable-sockets use socket/network classes | |
903 | --enable-ole use OLE classes (Win32 only) | |
904 | --enable-dataobj use data object classes | |
905 | --enable-ipc use interprocess communication (wxSocket etc.) | |
906 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 907 | --enable-arcstream use wxArchive streams |
eaff0f0d | 908 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 909 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
910 | --enable-cmdline use wxCmdLineParser class |
911 | --enable-datetime use wxDateTime class | |
36b6448c | 912 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
913 | --enable-dialupman use dialup network classes |
914 | --enable-dynlib use wxLibrary class for DLL loading | |
915 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
916 | --enable-exceptions build exception-safe library | |
917 | --enable-ffile use wxFFile class | |
918 | --enable-file use wxFile class | |
919 | --enable-filesystem use virtual file systems classes | |
920 | --enable-fontmap use font encodings conversion classes | |
921 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
922 | --enable-fs_zip use virtual ZIP filesystems | |
923 | --enable-geometry use geometry class | |
924 | --enable-log use logging system | |
925 | --enable-longlong use wxLongLong class | |
926 | --enable-mimetype use wxMimeTypesManager | |
927 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
928 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 929 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 930 | --enable-std_string use standard C++ string classes |
07158944 | 931 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 932 | --enable-stopwatch use wxStopWatch class |
07158944 | 933 | --enable-streams use wxStream etc classes |
a848cd7e SC |
934 | --enable-sysoptions use wxSystemOptions |
935 | --enable-textbuf use wxTextBuffer class | |
936 | --enable-textfile use wxTextFile class | |
937 | --enable-timer use wxTimer class | |
938 | --enable-unicode compile wxString with Unicode support | |
939 | --enable-sound use wxSound class | |
3b57de8b | 940 | --enable-mediactrl use wxMediaCtrl class |
f10e38c4 | 941 | --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix |
8b6682b9 | 942 | --enable-printfposparam use wxVsnprintf() which supports positional parameters |
81f90336 | 943 | --enable-zipstream use wxZip streams |
a848cd7e SC |
944 | --enable-url use wxURL class |
945 | --enable-protocol use wxProtocol class | |
946 | --enable-protocol-http HTTP support in wxProtocol | |
947 | --enable-protocol-ftp FTP support in wxProtocol | |
948 | --enable-protocol-file FILE support in wxProtocol | |
949 | --enable-threads use threads | |
950 | --enable-docview use document view architecture | |
951 | --enable-help use help subsystem | |
952 | --enable-mshtmlhelp use MS HTML Help (win32) | |
953 | --enable-html use wxHTML sub-library | |
954 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 955 | --enable-xrc use XRC resources sub-library |
3f60522a | 956 | --enable-aui use AUI docking library |
a848cd7e SC |
957 | --enable-constraints use layout-constraints system |
958 | --enable-printarch use printing architecture | |
959 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 960 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
961 | --enable-loggui use standard GUI logger |
962 | --enable-logwin use wxLogWindow | |
963 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 964 | --enable-webkit use wxWebKitCtrl (Mac) |
91dea314 | 965 | --enable-richtext use wxRichTextCtrl |
a848cd7e SC |
966 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
967 | --enable-prologio not available; see contrib | |
968 | --enable-resources not available; see contrib | |
969 | --enable-clipboard use wxClipboard class | |
970 | --enable-dnd use Drag'n'Drop classes | |
971 | --enable-metafile use win32 metafiles | |
972 | --enable-controls use all usual controls | |
973 | --enable-accel use accelerators | |
974 | --enable-button use wxButton class | |
975 | --enable-bmpbutton use wxBitmapButton class | |
976 | --enable-calendar use wxCalendarCtrl class | |
977 | --enable-caret use wxCaret class | |
978 | --enable-checkbox use wxCheckBox class | |
979 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
980 | --enable-choice use wxChoice class | |
92bbdbcd | 981 | --enable-choicebook use wxChoicebook class |
e9263684 | 982 | --enable-colourpicker use wxColourPickerCtrl class |
a848cd7e | 983 | --enable-combobox use wxComboBox class |
a57d600f | 984 | --enable-comboctrl use wxComboCtrl class |
da98e9be | 985 | --enable-datepick use wxDatePickerCtrl class |
e9263684 | 986 | --enable-dirpicker use wxDirPickerCtrl class |
a848cd7e | 987 | --enable-display use wxDisplay class |
e9263684 VZ |
988 | --enable-filepicker use wxFilePickerCtrl class |
989 | --enable-fontpicker use wxFontPickerCtrl class | |
a848cd7e SC |
990 | --enable-gauge use wxGauge class |
991 | --enable-grid use wxGrid class | |
20e34ecc | 992 | --enable-dataviewctrl, use wxDataViewCtrl class |
6954625c | 993 | --enable-hyperlink use wxHyperlinkCtrl class |
a848cd7e SC |
994 | --enable-imaglist use wxImageList class |
995 | --enable-listbook use wxListbook class | |
996 | --enable-listbox use wxListBox class | |
997 | --enable-listctrl use wxListCtrl class | |
998 | --enable-notebook use wxNotebook class | |
a57d600f | 999 | --enable-odcombobox use wxOwnerDrawnComboBox class |
a848cd7e SC |
1000 | --enable-radiobox use wxRadioBox class |
1001 | --enable-radiobtn use wxRadioButton class | |
1002 | --enable-sash use wxSashWindow class | |
1003 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
1004 | --enable-slider use wxSlider class | |
1005 | --enable-spinbtn use wxSpinButton class | |
1006 | --enable-spinctrl use wxSpinCtrl class | |
1007 | --enable-splitter use wxSplitterWindow class | |
1008 | --enable-statbmp use wxStaticBitmap class | |
1009 | --enable-statbox use wxStaticBox class | |
1010 | --enable-statline use wxStaticLine class | |
1011 | --enable-stattext use wxStaticText class | |
1012 | --enable-statusbar use wxStatusBar class | |
1013 | --enable-tabdialog use wxTabControl class | |
1014 | --enable-textctrl use wxTextCtrl class | |
1015 | --enable-togglebtn use wxToggleButton class | |
1016 | --enable-toolbar use wxToolBar class | |
1017 | --enable-tbarnative use native wxToolBar class | |
1018 | --enable-tbarsmpl use wxToolBarSimple class | |
0093c2fc | 1019 | --enable-treebook use wxTreebook class |
5ec3bc43 | 1020 | --enable-toolbook use wxToolbook class |
a848cd7e SC |
1021 | --enable-treectrl use wxTreeCtrl class |
1022 | --enable-tipwindow use wxTipWindow class | |
1023 | --enable-popupwin use wxPopUpWindow class | |
1024 | --enable-commondlg use all common dialogs | |
1025 | --enable-choicedlg use wxChoiceDialog | |
1026 | --enable-coldlg use wxColourDialog | |
1027 | --enable-filedlg use wxFileDialog | |
1028 | --enable-finddlg use wxFindReplaceDialog | |
1029 | --enable-fontdlg use wxFontDialog | |
1030 | --enable-dirdlg use wxDirDialog | |
1031 | --enable-msgdlg use wxMessageDialog | |
1032 | --enable-numberdlg use wxNumberEntryDialog | |
1033 | --enable-splash use wxSplashScreen | |
1034 | --enable-textdlg use wxTextDialog | |
1035 | --enable-tipdlg use startup tips | |
1036 | --enable-progressdlg use wxProgressDialog | |
1037 | --enable-wizarddlg use wxWizard | |
1038 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1039 | --enable-miniframe use wxMiniFrame class | |
1040 | --enable-tooltips use wxToolTip class | |
1041 | --enable-splines use spline drawing code | |
fbe2ca43 | 1042 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1043 | --enable-validators use wxValidator and derived classes |
1044 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1045 | --enable-joystick use wxJoystick |
38b4a946 | 1046 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1047 | --enable-dragimage use wxDragImage |
1048 | --enable-accessibility enable accessibility support | |
38b4a946 | 1049 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1050 | --enable-palette use wxPalette class |
1051 | --enable-image use wxImage class | |
1052 | --enable-gif use gif images (GIF file format) | |
1053 | --enable-pcx use pcx images (PCX file format) | |
1054 | --enable-iff use iff images (IFF file format) | |
1055 | --enable-pnm use pnm images (PNM file format) | |
1056 | --enable-xpm use xpm images (XPM file format) | |
1057 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1058 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1059 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1060 | --disable-largefile omit support for large files | |
1061 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1062 | --disable-gtktest Do not try to compile and run a test GTK program | |
1063 | --disable-sdltest Do not try to compile and run a test SDL program | |
1064 | --enable-omf use OMF object format (OS/2) | |
f10e38c4 VZ |
1065 | --disable-dependency-tracking |
1066 | don't use dependency tracking even if the compiler | |
1067 | can | |
ebee3cd0 VS |
1068 | --disable-precomp-headers |
1069 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1070 | |
1071 | Optional Packages: | |
1072 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1073 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1074 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1075 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1076 | --with-motif use Motif/Lesstif |
1077 | --with-mac use Mac OS X | |
1078 | --with-cocoa use Cocoa | |
1079 | --with-wine use Wine | |
1080 | --with-msw use MS-Windows | |
1081 | --with-pm use OS/2 Presentation Manager | |
1082 | --with-mgl use SciTech MGL | |
1083 | --with-microwin use MicroWindows | |
1084 | --with-x11 use X11 | |
1085 | --with-libpng use libpng (PNG image format) | |
1086 | --with-libjpeg use libjpeg (JPEG file format) | |
1087 | --with-libtiff use libtiff (TIFF file format) | |
1088 | --with-libxpm use libxpm (XPM file format) | |
1089 | --with-libmspack use libmspack (CHM help files loading) | |
1090 | --with-sdl use SDL for audio on Unix | |
2b850ae1 RR |
1091 | --with-gnomeprint use GNOME print for printing under GNOME |
1092 | --with-gnomevfs use GNOME VFS for associating MIME types | |
3565d135 | 1093 | --with-hildon use Hildon framework for Nokia 770 |
a848cd7e SC |
1094 | --with-opengl use OpenGL (or Mesa) |
1095 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1096 | --with-regex enable support for wxRegEx class | |
1097 | --with-zlib use zlib for LZW compression | |
1098 | --with-odbc use the IODBC and wxODBC classes | |
1099 | --with-expat enable XML support using expat parser | |
ceec2216 | 1100 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1101 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1102 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1103 | --with-x use the X Window System | |
1104 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1105 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1106 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1107 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1108 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1109 | ||
1110 | Some influential environment variables: | |
dcc1b6ad VS |
1111 | CC C compiler command |
1112 | CFLAGS C compiler flags | |
1113 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1114 | nonstandard directory <lib dir> | |
1115 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1116 | headers in a nonstandard directory <include dir> | |
1117 | CPP C preprocessor | |
1118 | CXX C++ compiler command | |
1119 | CXXFLAGS C++ compiler flags | |
1120 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1121 | |
1122 | Use these variables to override the choices made by `configure' or to help | |
1123 | it to find libraries and programs with nonstandard names/locations. | |
1124 | ||
77ffb593 | 1125 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1126 | _ACEOF |
1127 | fi | |
1128 | ||
1129 | if test "$ac_init_help" = "recursive"; then | |
1130 | # If there are subdirs, report their specific --help. | |
1131 | ac_popdir=`pwd` | |
1132 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1133 | test -d $ac_dir || continue | |
1134 | ac_builddir=. | |
1135 | ||
1136 | if test "$ac_dir" != .; then | |
1137 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1138 | # A "../" for each directory in $ac_dir_suffix. | |
1139 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1140 | else | |
1141 | ac_dir_suffix= ac_top_builddir= | |
1142 | fi | |
1143 | ||
1144 | case $srcdir in | |
1145 | .) # No --srcdir option. We are building in place. | |
1146 | ac_srcdir=. | |
1147 | if test -z "$ac_top_builddir"; then | |
1148 | ac_top_srcdir=. | |
1149 | else | |
1150 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1151 | fi ;; | |
1152 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1153 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1154 | ac_top_srcdir=$srcdir ;; | |
1155 | *) # Relative path. | |
1156 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1157 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1158 | esac | |
ac1cb8d3 VS |
1159 | |
1160 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1161 | # the directories may not exist. | |
1162 | case `pwd` in | |
1163 | .) ac_abs_builddir="$ac_dir";; | |
1164 | *) | |
1165 | case "$ac_dir" in | |
1166 | .) ac_abs_builddir=`pwd`;; | |
1167 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1168 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1169 | esac;; | |
1170 | esac | |
1171 | case $ac_abs_builddir in | |
1172 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1173 | *) | |
1174 | case ${ac_top_builddir}. in | |
1175 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1176 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1177 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1178 | esac;; | |
1179 | esac | |
1180 | case $ac_abs_builddir in | |
1181 | .) ac_abs_srcdir=$ac_srcdir;; | |
1182 | *) | |
1183 | case $ac_srcdir in | |
1184 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1185 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1186 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1187 | esac;; | |
1188 | esac | |
1189 | case $ac_abs_builddir in | |
1190 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1191 | *) | |
1192 | case $ac_top_srcdir in | |
1193 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1194 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1195 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1196 | esac;; | |
1197 | esac | |
a848cd7e SC |
1198 | |
1199 | cd $ac_dir | |
1200 | # Check for guested configure; otherwise get Cygnus style configure. | |
1201 | if test -f $ac_srcdir/configure.gnu; then | |
1202 | echo | |
1203 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1204 | elif test -f $ac_srcdir/configure; then | |
1205 | echo | |
1206 | $SHELL $ac_srcdir/configure --help=recursive | |
1207 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1208 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1209 | echo |
1210 | $ac_configure --help | |
1211 | else | |
1212 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1213 | fi | |
3f60522a | 1214 | cd $ac_popdir |
a848cd7e SC |
1215 | done |
1216 | fi | |
1217 | ||
1218 | test -n "$ac_init_help" && exit 0 | |
1219 | if $ac_init_version; then | |
1220 | cat <<\_ACEOF | |
dd8df4fc | 1221 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1222 | generated by GNU Autoconf 2.59 |
a848cd7e | 1223 | |
ac1cb8d3 | 1224 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1225 | This configure script is free software; the Free Software Foundation |
1226 | gives unlimited permission to copy, distribute and modify it. | |
1227 | _ACEOF | |
1228 | exit 0 | |
1229 | fi | |
1230 | exec 5>config.log | |
1231 | cat >&5 <<_ACEOF | |
1232 | This file contains any messages produced by compilers while | |
1233 | running configure, to aid debugging if configure makes a mistake. | |
1234 | ||
dd8df4fc | 1235 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1236 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1237 | |
1238 | $ $0 $@ | |
1239 | ||
1240 | _ACEOF | |
1241 | { | |
1242 | cat <<_ASUNAME | |
1243 | ## --------- ## | |
1244 | ## Platform. ## | |
1245 | ## --------- ## | |
1246 | ||
1247 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1248 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1249 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1250 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1251 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1252 | ||
1253 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1254 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1255 | ||
1256 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1257 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1258 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1259 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1260 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1261 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1262 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1263 | ||
1264 | _ASUNAME | |
1265 | ||
1266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1267 | for as_dir in $PATH | |
1268 | do | |
1269 | IFS=$as_save_IFS | |
1270 | test -z "$as_dir" && as_dir=. | |
1271 | echo "PATH: $as_dir" | |
1272 | done | |
1273 | ||
1274 | } >&5 | |
1275 | ||
1276 | cat >&5 <<_ACEOF | |
1277 | ||
1278 | ||
1279 | ## ----------- ## | |
1280 | ## Core tests. ## | |
1281 | ## ----------- ## | |
1282 | ||
1283 | _ACEOF | |
1284 | ||
1285 | ||
1286 | # Keep a trace of the command line. | |
1287 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1288 | # Strip out --silent because we don't want to record it for future runs. | |
1289 | # Also quote any args containing shell meta-characters. | |
1290 | # Make two passes to allow for proper duplicate-argument suppression. | |
1291 | ac_configure_args= | |
1292 | ac_configure_args0= | |
1293 | ac_configure_args1= | |
1294 | ac_sep= | |
1295 | ac_must_keep_next=false | |
1296 | for ac_pass in 1 2 | |
1297 | do | |
1298 | for ac_arg | |
1299 | do | |
1300 | case $ac_arg in | |
1301 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1302 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1303 | | -silent | --silent | --silen | --sile | --sil) | |
1304 | continue ;; | |
1305 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1306 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1307 | esac | |
1308 | case $ac_pass in | |
1309 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1310 | 2) | |
1311 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1312 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1313 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1314 | else |
ac1cb8d3 VS |
1315 | case $ac_arg in |
1316 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1317 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1318 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1319 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1320 | case "$ac_configure_args0 " in | |
1321 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1322 | esac | |
1323 | ;; | |
1324 | -* ) ac_must_keep_next=true ;; | |
1325 | esac | |
a848cd7e SC |
1326 | fi |
1327 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1328 | # Get rid of the leading space. | |
1329 | ac_sep=" " | |
1330 | ;; | |
1331 | esac | |
1332 | done | |
1333 | done | |
1334 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1335 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1336 | ||
1337 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1338 | # config.log. We remove comments because anyway the quotes in there | |
1339 | # would cause problems or look ugly. | |
1340 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1341 | # such as our DU 5.0 friend, will then `close' the trap. | |
1342 | trap 'exit_status=$? | |
1343 | # Save into config.log some information that might help in debugging. | |
1344 | { | |
1345 | echo | |
1346 | ||
1347 | cat <<\_ASBOX | |
1348 | ## ---------------- ## | |
1349 | ## Cache variables. ## | |
1350 | ## ---------------- ## | |
1351 | _ASBOX | |
1352 | echo | |
1353 | # The following way of writing the cache mishandles newlines in values, | |
1354 | { | |
1355 | (set) 2>&1 | | |
1356 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1357 | *ac_space=\ *) | |
1358 | sed -n \ | |
ac1cb8d3 VS |
1359 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1360 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1361 | ;; |
1362 | *) | |
1363 | sed -n \ | |
ac1cb8d3 | 1364 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1365 | ;; |
1366 | esac; | |
1367 | } | |
1368 | echo | |
1369 | ||
1370 | cat <<\_ASBOX | |
1371 | ## ----------------- ## | |
1372 | ## Output variables. ## | |
1373 | ## ----------------- ## | |
1374 | _ASBOX | |
1375 | echo | |
1376 | for ac_var in $ac_subst_vars | |
1377 | do | |
1378 | eval ac_val=$`echo $ac_var` | |
1379 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1380 | done | sort | |
1381 | echo | |
1382 | ||
1383 | if test -n "$ac_subst_files"; then | |
1384 | cat <<\_ASBOX | |
1385 | ## ------------- ## | |
1386 | ## Output files. ## | |
1387 | ## ------------- ## | |
1388 | _ASBOX | |
1389 | echo | |
1390 | for ac_var in $ac_subst_files | |
1391 | do | |
1392 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1393 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1394 | done | sort |
1395 | echo | |
1396 | fi | |
1397 | ||
1398 | if test -s confdefs.h; then | |
1399 | cat <<\_ASBOX | |
1400 | ## ----------- ## | |
1401 | ## confdefs.h. ## | |
1402 | ## ----------- ## | |
1403 | _ASBOX | |
1404 | echo | |
1405 | sed "/^$/d" confdefs.h | sort | |
1406 | echo | |
1407 | fi | |
1408 | test "$ac_signal" != 0 && | |
1409 | echo "$as_me: caught signal $ac_signal" | |
1410 | echo "$as_me: exit $exit_status" | |
1411 | } >&5 | |
ac1cb8d3 | 1412 | rm -f core *.core && |
a848cd7e SC |
1413 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1414 | exit $exit_status | |
1415 | ' 0 | |
1416 | for ac_signal in 1 2 13 15; do | |
1417 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1418 | done | |
1419 | ac_signal=0 | |
1420 | ||
1421 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1422 | rm -rf conftest* confdefs.h | |
1423 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1424 | echo >confdefs.h | |
1425 | ||
1426 | # Predefined preprocessor variables. | |
1427 | ||
1428 | cat >>confdefs.h <<_ACEOF | |
1429 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1430 | _ACEOF | |
1431 | ||
1432 | ||
1433 | cat >>confdefs.h <<_ACEOF | |
1434 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1435 | _ACEOF | |
1436 | ||
1437 | ||
1438 | cat >>confdefs.h <<_ACEOF | |
1439 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1440 | _ACEOF | |
1441 | ||
1442 | ||
1443 | cat >>confdefs.h <<_ACEOF | |
1444 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1445 | _ACEOF | |
1446 | ||
1447 | ||
1448 | cat >>confdefs.h <<_ACEOF | |
1449 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1450 | _ACEOF | |
1451 | ||
1452 | ||
1453 | # Let the site file select an alternate cache file if it wants to. | |
1454 | # Prefer explicitly selected file to automatically selected ones. | |
1455 | if test -z "$CONFIG_SITE"; then | |
1456 | if test "x$prefix" != xNONE; then | |
1457 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1458 | else | |
1459 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1460 | fi | |
1461 | fi | |
1462 | for ac_site_file in $CONFIG_SITE; do | |
1463 | if test -r "$ac_site_file"; then | |
1464 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1465 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1466 | sed 's/^/| /' "$ac_site_file" >&5 | |
1467 | . "$ac_site_file" | |
1468 | fi | |
1469 | done | |
1470 | ||
1471 | if test -r "$cache_file"; then | |
1472 | # Some versions of bash will fail to source /dev/null (special | |
1473 | # files actually), so we avoid doing that. | |
1474 | if test -f "$cache_file"; then | |
1475 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1476 | echo "$as_me: loading cache $cache_file" >&6;} | |
1477 | case $cache_file in | |
1478 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1479 | *) . ./$cache_file;; | |
1480 | esac | |
1481 | fi | |
1482 | else | |
1483 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1484 | echo "$as_me: creating cache $cache_file" >&6;} | |
1485 | >$cache_file | |
1486 | fi | |
1487 | ||
1488 | # Check that the precious variables saved in the cache have kept the same | |
1489 | # value. | |
1490 | ac_cache_corrupted=false | |
1491 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1492 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1493 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1494 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1495 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1496 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1497 | case $ac_old_set,$ac_new_set in | |
1498 | set,) | |
1499 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1500 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1501 | ac_cache_corrupted=: ;; | |
1502 | ,set) | |
1503 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1504 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1505 | ac_cache_corrupted=: ;; | |
1506 | ,);; | |
1507 | *) | |
1508 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1509 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1510 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1511 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1512 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1513 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1514 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1515 | ac_cache_corrupted=: |
a848cd7e SC |
1516 | fi;; |
1517 | esac | |
1518 | # Pass precious variables to config.status. | |
1519 | if test "$ac_new_set" = set; then | |
1520 | case $ac_new_val in | |
1521 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1522 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1523 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1524 | esac | |
1525 | case " $ac_configure_args " in | |
1526 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1527 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1528 | esac | |
1529 | fi | |
1530 | done | |
1531 | if $ac_cache_corrupted; then | |
1532 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1533 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1534 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1535 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1536 | { (exit 1); exit 1; }; } | |
1537 | fi | |
1538 | ||
1539 | ac_ext=c | |
1540 | ac_cpp='$CPP $CPPFLAGS' | |
1541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ||
1555 | ||
1556 | ||
1557 | ||
1558 | ||
1559 | ||
1560 | ||
1561 | ||
1562 | ||
1563 | ||
1564 | ||
1565 | ||
1566 | ||
1567 | ||
1568 | ||
1569 | ||
1570 | ||
1571 | ||
1572 | ||
1573 | ||
1574 | ac_aux_dir= | |
1575 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1576 | if test -f $ac_dir/install-sh; then | |
1577 | ac_aux_dir=$ac_dir | |
1578 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1579 | break | |
1580 | elif test -f $ac_dir/install.sh; then | |
1581 | ac_aux_dir=$ac_dir | |
1582 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1583 | break | |
1584 | elif test -f $ac_dir/shtool; then | |
1585 | ac_aux_dir=$ac_dir | |
1586 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1587 | break | |
1588 | fi | |
1589 | done | |
1590 | if test -z "$ac_aux_dir"; then | |
1591 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1592 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1593 | { (exit 1); exit 1; }; } | |
1594 | fi | |
1595 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1596 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1597 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1598 | ||
1599 | # Make sure we can run config.sub. | |
1600 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1601 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1602 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1603 | { (exit 1); exit 1; }; } | |
1604 | ||
1605 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1606 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1607 | if test "${ac_cv_build+set}" = set; then | |
1608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1609 | else | |
1610 | ac_cv_build_alias=$build_alias | |
1611 | test -z "$ac_cv_build_alias" && | |
1612 | ac_cv_build_alias=`$ac_config_guess` | |
1613 | test -z "$ac_cv_build_alias" && | |
1614 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1615 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1616 | { (exit 1); exit 1; }; } | |
1617 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1618 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1619 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1620 | { (exit 1); exit 1; }; } | |
1621 | ||
1622 | fi | |
1623 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1624 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1625 | build=$ac_cv_build | |
1626 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1627 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1628 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1629 | ||
1630 | ||
1631 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1632 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1633 | if test "${ac_cv_host+set}" = set; then | |
1634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1635 | else | |
1636 | ac_cv_host_alias=$host_alias | |
1637 | test -z "$ac_cv_host_alias" && | |
1638 | ac_cv_host_alias=$ac_cv_build_alias | |
1639 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1640 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1641 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1642 | { (exit 1); exit 1; }; } | |
1643 | ||
1644 | fi | |
1645 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1646 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1647 | host=$ac_cv_host | |
1648 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1649 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1650 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1651 | ||
1652 | ||
1653 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1654 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1655 | if test "${ac_cv_target+set}" = set; then | |
1656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1657 | else | |
1658 | ac_cv_target_alias=$target_alias | |
1659 | test "x$ac_cv_target_alias" = "x" && | |
1660 | ac_cv_target_alias=$ac_cv_host_alias | |
1661 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1662 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1663 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1664 | { (exit 1); exit 1; }; } | |
1665 | ||
1666 | fi | |
1667 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1668 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1669 | target=$ac_cv_target | |
1670 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1671 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1672 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1673 | ||
1674 | ||
1675 | # The aliases save the names the user supplied, while $host etc. | |
1676 | # will get canonicalized. | |
1677 | test -n "$target_alias" && | |
1678 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1679 | NONENONEs,x,x, && | |
1680 | program_prefix=${target_alias}- | |
1681 | ||
1682 | ||
1683 | ||
ceec2216 | 1684 | wx_major_version_number=2 |
dd8df4fc VZ |
1685 | wx_minor_version_number=7 |
1686 | wx_release_number=0 | |
1687 | wx_subrelease_number=0 | |
a848cd7e | 1688 | |
ceec2216 RL |
1689 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1690 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1691 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1692 | |
ceec2216 | 1693 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1694 | |
a848cd7e SC |
1695 | |
1696 | ||
1697 | ||
1698 | USE_UNIX=1 | |
1699 | USE_OS2=0 | |
1700 | USE_WIN32=0 | |
1701 | USE_DOS=0 | |
1702 | USE_BEOS=0 | |
1703 | USE_MAC=0 | |
1704 | ||
1705 | USE_AIX= | |
1706 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1707 | USE_GNU= USE_HPUX= | |
1708 | USE_LINUX= | |
1709 | USE_NETBSD= | |
1710 | USE_OPENBSD= | |
1711 | USE_OSF= USE_SGI= | |
1712 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1713 | USE_ULTRIX= | |
1714 | USE_UNIXWARE= | |
1715 | ||
1716 | USE_ALPHA= | |
1717 | ||
1718 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1719 | ||
1720 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1721 | ||
1722 | DEFAULT_wxUSE_COCOA=0 | |
1723 | DEFAULT_wxUSE_GTK=0 | |
1724 | DEFAULT_wxUSE_MAC=0 | |
1725 | DEFAULT_wxUSE_MGL=0 | |
1726 | DEFAULT_wxUSE_MICROWIN=0 | |
1727 | DEFAULT_wxUSE_MOTIF=0 | |
1728 | DEFAULT_wxUSE_MSW=0 | |
1729 | DEFAULT_wxUSE_PM=0 | |
1730 | DEFAULT_wxUSE_X11=0 | |
1731 | ||
1732 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1733 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1734 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1735 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1736 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1737 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1738 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1739 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1740 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1741 | ||
1742 | PROGRAM_EXT= | |
1743 | SO_SUFFIX=so | |
1744 | SAMPLES_RPATH_FLAG= | |
1745 | SAMPLES_RPATH_POSTLINK= | |
1746 | ||
a03b8b04 RD |
1747 | DEFAULT_STD_FLAG=yes |
1748 | ||
a848cd7e SC |
1749 | case "${host}" in |
1750 | *-hp-hpux* ) | |
1751 | USE_HPUX=1 | |
1752 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1753 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1754 | SO_SUFFIX=sl | |
1755 | cat >>confdefs.h <<\_ACEOF | |
1756 | #define __HPUX__ 1 | |
1757 | _ACEOF | |
1758 | ||
2eef8513 | 1759 | |
c92ad099 | 1760 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
1761 | ;; |
1762 | *-*-linux* ) | |
1763 | USE_LINUX=1 | |
1764 | cat >>confdefs.h <<\_ACEOF | |
1765 | #define __LINUX__ 1 | |
1766 | _ACEOF | |
1767 | ||
1768 | TMP=`uname -m` | |
1769 | if test "x$TMP" = "xalpha"; then | |
1770 | USE_ALPHA=1 | |
1771 | cat >>confdefs.h <<\_ACEOF | |
1772 | #define __ALPHA__ 1 | |
1773 | _ACEOF | |
1774 | ||
1775 | fi | |
1776 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1777 | ;; | |
1778 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1779 | USE_GNU=1 | |
1780 | TMP=`uname -m` | |
1781 | if test "x$TMP" = "xalpha"; then | |
1782 | USE_ALPHA=1 | |
1783 | cat >>confdefs.h <<\_ACEOF | |
1784 | #define __ALPHA__ 1 | |
1785 | _ACEOF | |
1786 | ||
1787 | fi | |
1788 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1789 | ;; | |
1790 | *-*-irix5* | *-*-irix6* ) | |
1791 | USE_SGI=1 | |
1792 | USE_SVR4=1 | |
1793 | cat >>confdefs.h <<\_ACEOF | |
1794 | #define __SGI__ 1 | |
1795 | _ACEOF | |
1796 | ||
1797 | cat >>confdefs.h <<\_ACEOF | |
1798 | #define __SVR4__ 1 | |
1799 | _ACEOF | |
1800 | ||
1801 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1802 | ;; | |
1803 | *-*-solaris2* ) | |
1804 | USE_SUN=1 | |
1805 | USE_SOLARIS=1 | |
1806 | USE_SVR4=1 | |
1807 | cat >>confdefs.h <<\_ACEOF | |
1808 | #define __SUN__ 1 | |
1809 | _ACEOF | |
1810 | ||
1811 | cat >>confdefs.h <<\_ACEOF | |
1812 | #define __SOLARIS__ 1 | |
1813 | _ACEOF | |
1814 | ||
1815 | cat >>confdefs.h <<\_ACEOF | |
1816 | #define __SVR4__ 1 | |
1817 | _ACEOF | |
1818 | ||
1819 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1820 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1821 | ;; | |
1822 | *-*-sunos4* ) | |
1823 | USE_SUN=1 | |
1824 | USE_SUNOS=1 | |
1825 | USE_BSD=1 | |
1826 | cat >>confdefs.h <<\_ACEOF | |
1827 | #define __SUN__ 1 | |
1828 | _ACEOF | |
1829 | ||
1830 | cat >>confdefs.h <<\_ACEOF | |
1831 | #define __SUNOS__ 1 | |
1832 | _ACEOF | |
1833 | ||
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __BSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1839 | ;; | |
1840 | *-*-freebsd*) | |
1841 | USE_BSD=1 | |
1842 | USE_FREEBSD=1 | |
1843 | cat >>confdefs.h <<\_ACEOF | |
1844 | #define __FREEBSD__ 1 | |
1845 | _ACEOF | |
1846 | ||
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __BSD__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1852 | ;; | |
1853 | *-*-openbsd*) | |
1854 | USE_BSD=1 | |
1855 | USE_OPENBSD=1 | |
1856 | cat >>confdefs.h <<\_ACEOF | |
1857 | #define __OPENBSD__ 1 | |
1858 | _ACEOF | |
1859 | ||
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __BSD__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1865 | ;; | |
1866 | *-*-netbsd*) | |
1867 | USE_BSD=1 | |
1868 | USE_NETBSD=1 | |
1869 | cat >>confdefs.h <<\_ACEOF | |
1870 | #define __NETBSD__ 1 | |
1871 | _ACEOF | |
1872 | ||
1873 | cat >>confdefs.h <<\_ACEOF | |
1874 | #define __BSD__ 1 | |
1875 | _ACEOF | |
1876 | ||
1877 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
728258f4 | 1878 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
def7c04a | 1879 | |
def7c04a | 1880 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" |
a848cd7e SC |
1881 | ;; |
1882 | *-*-osf* ) | |
1883 | USE_ALPHA=1 | |
1884 | USE_OSF=1 | |
1885 | cat >>confdefs.h <<\_ACEOF | |
1886 | #define __ALPHA__ 1 | |
1887 | _ACEOF | |
1888 | ||
1889 | cat >>confdefs.h <<\_ACEOF | |
1890 | #define __OSF__ 1 | |
1891 | _ACEOF | |
1892 | ||
1893 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1894 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1895 | ;; | |
1896 | *-*-dgux5* ) | |
1897 | USE_ALPHA=1 | |
1898 | USE_SVR4=1 | |
1899 | cat >>confdefs.h <<\_ACEOF | |
1900 | #define __ALPHA__ 1 | |
1901 | _ACEOF | |
1902 | ||
1903 | cat >>confdefs.h <<\_ACEOF | |
1904 | #define __SVR4__ 1 | |
1905 | _ACEOF | |
1906 | ||
1907 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1908 | ;; | |
1909 | *-*-sysv5* ) | |
1910 | USE_SYSV=1 | |
1911 | USE_SVR4=1 | |
1912 | cat >>confdefs.h <<\_ACEOF | |
1913 | #define __SYSV__ 1 | |
1914 | _ACEOF | |
1915 | ||
1916 | cat >>confdefs.h <<\_ACEOF | |
1917 | #define __SVR4__ 1 | |
1918 | _ACEOF | |
1919 | ||
1920 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1921 | ;; | |
1922 | *-*-aix* ) | |
1923 | USE_AIX=1 | |
1924 | USE_SYSV=1 | |
1925 | USE_SVR4=1 | |
1926 | SO_SUFFIX=a | |
1927 | cat >>confdefs.h <<\_ACEOF | |
1928 | #define __AIX__ 1 | |
1929 | _ACEOF | |
1930 | ||
1931 | cat >>confdefs.h <<\_ACEOF | |
1932 | #define __SYSV__ 1 | |
1933 | _ACEOF | |
1934 | ||
1935 | cat >>confdefs.h <<\_ACEOF | |
1936 | #define __SVR4__ 1 | |
1937 | _ACEOF | |
1938 | ||
1939 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1940 | ;; | |
1941 | ||
1942 | *-*-*UnixWare*) | |
1943 | USE_SYSV=1 | |
1944 | USE_SVR4=1 | |
1945 | USE_UNIXWARE=1 | |
1946 | cat >>confdefs.h <<\_ACEOF | |
1947 | #define __UNIXWARE__ 1 | |
1948 | _ACEOF | |
1949 | ||
1950 | ;; | |
1951 | ||
1952 | *-*-cygwin* | *-*-mingw32* ) | |
1953 | SO_SUFFIX=dll | |
1954 | PROGRAM_EXT=".exe" | |
a848cd7e | 1955 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1956 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1957 | ;; |
1958 | ||
1959 | *-pc-msdosdjgpp ) | |
1960 | USE_UNIX=0 | |
1961 | USE_DOS=1 | |
1962 | cat >>confdefs.h <<\_ACEOF | |
1963 | #define __DOS__ 1 | |
1964 | _ACEOF | |
1965 | ||
1966 | PROGRAM_EXT=".exe" | |
1967 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1968 | ;; |
1969 | ||
1970 | *-pc-os2_emx | *-pc-os2-emx ) | |
1971 | cat >>confdefs.h <<\_ACEOF | |
1972 | #define __EMX__ 1 | |
1973 | _ACEOF | |
1974 | ||
1975 | USE_OS2=1 | |
1976 | cat >>confdefs.h <<\_ACEOF | |
1977 | #define __OS2__ 1 | |
1978 | _ACEOF | |
1979 | ||
1980 | PROGRAM_EXT=".exe" | |
1981 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1982 | CXX=gcc | |
1983 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1984 | ac_executable_extensions=".exe" | |
1985 | export ac_executable_extensions | |
1986 | ac_save_IFS="$IFS" | |
1987 | IFS='\\' | |
1988 | ac_TEMP_PATH= | |
1989 | for ac_dir in $PATH; do | |
1990 | IFS=$ac_save_IFS | |
1991 | if test -z "$ac_TEMP_PATH"; then | |
1992 | ac_TEMP_PATH="$ac_dir" | |
1993 | else | |
1994 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1995 | fi | |
1996 | done | |
1997 | export PATH="$ac_TEMP_PATH" | |
1998 | unset ac_TEMP_PATH | |
a03b8b04 | 1999 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
2000 | ;; |
2001 | ||
cfda0ea8 | 2002 | *-*-darwin* ) |
a848cd7e SC |
2003 | USE_BSD=1 |
2004 | USE_DARWIN=1 | |
2005 | SO_SUFFIX=dylib | |
2006 | cat >>confdefs.h <<\_ACEOF | |
2007 | #define __BSD__ 1 | |
2008 | _ACEOF | |
2009 | ||
2010 | cat >>confdefs.h <<\_ACEOF | |
2011 | #define __DARWIN__ 1 | |
a848cd7e SC |
2012 | _ACEOF |
2013 | ||
2014 | cat >>confdefs.h <<\_ACEOF | |
2015 | #define TARGET_CARBON 1 | |
2016 | _ACEOF | |
2017 | ||
2018 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2019 | DEFAULT_STD_FLAG=no |
a848cd7e | 2020 | ;; |
1e9e8aba DE |
2021 | powerpc-apple-macos* ) |
2022 | USE_UNIX=0 | |
2023 | ac_cv_c_bigendian=yes | |
2024 | SO_SUFFIX=shlib | |
2025 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2026 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2027 | ;; |
a848cd7e SC |
2028 | |
2029 | *-*-beos* ) | |
2030 | USE_BEOS=1 | |
2031 | cat >>confdefs.h <<\_ACEOF | |
2032 | #define __BEOS__ 1 | |
2033 | _ACEOF | |
2034 | ||
2035 | ;; | |
2036 | ||
2037 | *) | |
2038 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2039 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2040 | { (exit 1); exit 1; }; } | |
2041 | esac | |
2042 | ||
2043 | ||
2044 | ||
2045 | ||
2046 | wx_arg_cache_file="configarg.cache" | |
2047 | echo "loading argument cache $wx_arg_cache_file" | |
2048 | rm -f ${wx_arg_cache_file}.tmp | |
2049 | touch ${wx_arg_cache_file}.tmp | |
2050 | touch ${wx_arg_cache_file} | |
2051 | ||
2052 | ||
2053 | DEBUG_CONFIGURE=0 | |
2054 | if test $DEBUG_CONFIGURE = 1; then | |
2055 | DEFAULT_wxUSE_UNIVERSAL=no | |
2056 | DEFAULT_wxUSE_STL=no | |
2057 | ||
2058 | DEFAULT_wxUSE_NANOX=no | |
2059 | ||
2060 | DEFAULT_wxUSE_THREADS=yes | |
2061 | ||
2062 | DEFAULT_wxUSE_SHARED=yes | |
2063 | DEFAULT_wxUSE_OPTIMISE=no | |
2064 | DEFAULT_wxUSE_PROFILE=no | |
2065 | DEFAULT_wxUSE_NO_DEPS=no | |
2066 | DEFAULT_wxUSE_NO_RTTI=no | |
2067 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2068 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2069 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2070 | DEFAULT_wxUSE_PERMISSIVE=no |
2071 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2072 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2073 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2074 | DEFAULT_wxUSE_MEM_TRACING=no | |
2075 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2076 | DEFAULT_wxUSE_DMALLOC=no | |
2077 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2078 | ||
2079 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2080 | DEFAULT_wxUSE_LOG=yes | |
2081 | DEFAULT_wxUSE_LOGWINDOW=no | |
2082 | DEFAULT_wxUSE_LOGGUI=no | |
2083 | DEFAULT_wxUSE_LOGDIALOG=no | |
2084 | ||
2085 | DEFAULT_wxUSE_GUI=yes | |
2086 | DEFAULT_wxUSE_CONTROLS=no | |
2087 | ||
2088 | DEFAULT_wxUSE_REGEX=no | |
2089 | DEFAULT_wxUSE_XML=no | |
2090 | DEFAULT_wxUSE_EXPAT=no | |
2091 | DEFAULT_wxUSE_ZLIB=no | |
2092 | DEFAULT_wxUSE_LIBPNG=no | |
2093 | DEFAULT_wxUSE_LIBJPEG=no | |
2094 | DEFAULT_wxUSE_LIBTIFF=no | |
2095 | DEFAULT_wxUSE_LIBXPM=no | |
2096 | DEFAULT_wxUSE_LIBMSPACK=no | |
2097 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2098 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2099 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2100 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2101 | DEFAULT_wxUSE_ODBC=no |
2102 | DEFAULT_wxUSE_OPENGL=no | |
2103 | ||
2104 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2105 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2106 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2107 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2108 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2109 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2110 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2111 | DEFAULT_wxUSE_DATETIME=no | |
2112 | DEFAULT_wxUSE_TIMER=no | |
2113 | DEFAULT_wxUSE_STOPWATCH=no | |
2114 | DEFAULT_wxUSE_FILE=no | |
2115 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2116 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2117 | DEFAULT_wxUSE_TEXTBUFFER=no |
2118 | DEFAULT_wxUSE_TEXTFILE=no | |
2119 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2120 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2121 | DEFAULT_wxUSE_GSTREAMER8=no |
8b6682b9 | 2122 | DEFAULT_wxUSE_PRINTF_POS_PARAM=no |
a848cd7e SC |
2123 | DEFAULT_wxUSE_INTL=no |
2124 | DEFAULT_wxUSE_CONFIG=no | |
2125 | DEFAULT_wxUSE_FONTMAP=no | |
2126 | DEFAULT_wxUSE_STREAMS=no | |
2127 | DEFAULT_wxUSE_SOCKETS=no | |
2128 | DEFAULT_wxUSE_OLE=no | |
2129 | DEFAULT_wxUSE_DATAOBJ=no | |
2130 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2131 | DEFAULT_wxUSE_JOYSTICK=no | |
2132 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2133 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2134 | DEFAULT_wxUSE_LONGLONG=no | |
2135 | DEFAULT_wxUSE_GEOMETRY=no | |
2136 | ||
2137 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2138 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2139 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2140 | ||
2141 | DEFAULT_wxUSE_CLIPBOARD=no | |
2142 | DEFAULT_wxUSE_TOOLTIPS=no | |
2143 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2144 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2145 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2146 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2147 | |
8a7b1113 | 2148 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2149 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2150 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2151 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2152 | ||
2153 | DEFAULT_wxUSE_RESOURCES=no | |
2154 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2155 | DEFAULT_wxUSE_IPC=no | |
2156 | DEFAULT_wxUSE_HELP=no | |
2157 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2158 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2159 | DEFAULT_wxUSE_TREELAYOUT=no | |
2160 | DEFAULT_wxUSE_METAFILE=no | |
2161 | DEFAULT_wxUSE_MIMETYPE=no | |
2162 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2163 | DEFAULT_wxUSE_PROTOCOL=no | |
2164 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2165 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2166 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2167 | DEFAULT_wxUSE_URL=no | |
2168 | ||
2169 | DEFAULT_wxUSE_COMMONDLGS=no | |
2170 | DEFAULT_wxUSE_CHOICEDLG=no | |
2171 | DEFAULT_wxUSE_COLOURDLG=no | |
2172 | DEFAULT_wxUSE_DIRDLG=no | |
2173 | DEFAULT_wxUSE_FILEDLG=no | |
2174 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2175 | DEFAULT_wxUSE_FONTDLG=no | |
2176 | DEFAULT_wxUSE_MSGDLG=no | |
2177 | DEFAULT_wxUSE_NUMBERDLG=no | |
2178 | DEFAULT_wxUSE_TEXTDLG=no | |
2179 | DEFAULT_wxUSE_SPLASH=no | |
2180 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2181 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2182 | DEFAULT_wxUSE_WIZARDDLG=no | |
2183 | ||
2184 | DEFAULT_wxUSE_MENUS=no | |
2185 | DEFAULT_wxUSE_MINIFRAME=no | |
2186 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2187 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2188 | DEFAULT_wxUSE_XRC=no |
3f60522a | 2189 | DEFAULT_wxUSE_AUI=no |
646b6ec1 | 2190 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2191 | DEFAULT_wxUSE_FILESYSTEM=no |
2192 | DEFAULT_wxUSE_FS_INET=no | |
2193 | DEFAULT_wxUSE_FS_ZIP=no | |
2194 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2195 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2196 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2197 | DEFAULT_wxUSE_VALIDATORS=no |
2198 | ||
2199 | DEFAULT_wxUSE_ACCEL=no | |
2200 | DEFAULT_wxUSE_BUTTON=no | |
2201 | DEFAULT_wxUSE_BMPBUTTON=no | |
2202 | DEFAULT_wxUSE_CALCTRL=no | |
2203 | DEFAULT_wxUSE_CARET=no | |
2204 | DEFAULT_wxUSE_CHECKBOX=no | |
2205 | DEFAULT_wxUSE_CHECKLST=no | |
2206 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2207 | DEFAULT_wxUSE_CHOICEBOOK=no |
e9263684 | 2208 | DEFAULT_wxUSE_COLOURPICKERCTRL=no |
a848cd7e | 2209 | DEFAULT_wxUSE_COMBOBOX=no |
a57d600f | 2210 | DEFAULT_wxUSE_COMBOCTRL=no |
da98e9be | 2211 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e | 2212 | DEFAULT_wxUSE_DISPLAY=no |
e9263684 VZ |
2213 | DEFAULT_wxUSE_DIRPICKERCTRL=no |
2214 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
2215 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
a848cd7e SC |
2216 | DEFAULT_wxUSE_GAUGE=no |
2217 | DEFAULT_wxUSE_GRID=no | |
6954625c | 2218 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
20e34ecc | 2219 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2220 | DEFAULT_wxUSE_IMAGLIST=no |
2221 | DEFAULT_wxUSE_LISTBOOK=no | |
2222 | DEFAULT_wxUSE_LISTBOX=no | |
2223 | DEFAULT_wxUSE_LISTCTRL=no | |
2224 | DEFAULT_wxUSE_NOTEBOOK=no | |
a57d600f | 2225 | DEFAULT_wxUSE_ODCOMBOBOX=no |
a848cd7e SC |
2226 | DEFAULT_wxUSE_RADIOBOX=no |
2227 | DEFAULT_wxUSE_RADIOBTN=no | |
2228 | DEFAULT_wxUSE_SASH=no | |
2229 | DEFAULT_wxUSE_SCROLLBAR=no | |
2230 | DEFAULT_wxUSE_SLIDER=no | |
2231 | DEFAULT_wxUSE_SPINBTN=no | |
2232 | DEFAULT_wxUSE_SPINCTRL=no | |
2233 | DEFAULT_wxUSE_SPLITTER=no | |
2234 | DEFAULT_wxUSE_STATBMP=no | |
2235 | DEFAULT_wxUSE_STATBOX=no | |
2236 | DEFAULT_wxUSE_STATLINE=no | |
2237 | DEFAULT_wxUSE_STATTEXT=no | |
2238 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2239 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2240 | DEFAULT_wxUSE_TEXTCTRL=no |
2241 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2242 | DEFAULT_wxUSE_TOOLBAR=no | |
2243 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2244 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
0093c2fc | 2245 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 2246 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
2247 | DEFAULT_wxUSE_TREECTRL=no |
2248 | DEFAULT_wxUSE_POPUPWIN=no | |
2249 | DEFAULT_wxUSE_TIPWINDOW=no | |
2250 | ||
2251 | DEFAULT_wxUSE_UNICODE=no | |
2252 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2253 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2254 | ||
2255 | DEFAULT_wxUSE_PALETTE=no | |
2256 | DEFAULT_wxUSE_IMAGE=no | |
2257 | DEFAULT_wxUSE_GIF=no | |
2258 | DEFAULT_wxUSE_PCX=no | |
2259 | DEFAULT_wxUSE_PNM=no | |
2260 | DEFAULT_wxUSE_IFF=no | |
2261 | DEFAULT_wxUSE_XPM=no | |
2262 | DEFAULT_wxUSE_ICO_CUR=no | |
2263 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2264 | ||
2265 | DEFAULT_wxUSE_MONOLITHIC=no | |
2266 | DEFAULT_wxUSE_PLUGINS=no | |
2267 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2268 | else | |
2269 | DEFAULT_wxUSE_UNIVERSAL=no | |
2270 | DEFAULT_wxUSE_STL=no | |
2271 | ||
2272 | DEFAULT_wxUSE_NANOX=no | |
2273 | ||
2274 | DEFAULT_wxUSE_THREADS=yes | |
2275 | ||
2276 | DEFAULT_wxUSE_SHARED=yes | |
2277 | DEFAULT_wxUSE_OPTIMISE=yes | |
2278 | DEFAULT_wxUSE_PROFILE=no | |
2279 | DEFAULT_wxUSE_NO_DEPS=no | |
2280 | DEFAULT_wxUSE_NO_RTTI=no | |
2281 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2282 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2283 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2284 | DEFAULT_wxUSE_PERMISSIVE=no |
2285 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2286 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2287 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2288 | DEFAULT_wxUSE_MEM_TRACING=no | |
2289 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2290 | DEFAULT_wxUSE_DMALLOC=no | |
2291 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2292 | ||
2293 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2294 | DEFAULT_wxUSE_LOG=yes | |
2295 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2296 | DEFAULT_wxUSE_LOGGUI=yes | |
2297 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2298 | ||
2299 | DEFAULT_wxUSE_GUI=yes | |
2300 | ||
2301 | DEFAULT_wxUSE_REGEX=yes | |
2302 | DEFAULT_wxUSE_XML=yes | |
2303 | DEFAULT_wxUSE_EXPAT=yes | |
2304 | DEFAULT_wxUSE_ZLIB=yes | |
2305 | DEFAULT_wxUSE_LIBPNG=yes | |
2306 | DEFAULT_wxUSE_LIBJPEG=yes | |
2307 | DEFAULT_wxUSE_LIBTIFF=yes | |
2308 | DEFAULT_wxUSE_LIBXPM=yes | |
2309 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2310 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2311 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2312 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2313 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2314 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2315 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2316 | |
2317 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2318 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2319 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2320 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2321 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2322 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2323 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2324 | DEFAULT_wxUSE_DATETIME=yes | |
2325 | DEFAULT_wxUSE_TIMER=yes | |
2326 | DEFAULT_wxUSE_STOPWATCH=yes | |
2327 | DEFAULT_wxUSE_FILE=yes | |
2328 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2329 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2330 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2331 | DEFAULT_wxUSE_TEXTFILE=yes | |
2332 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2333 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2334 | DEFAULT_wxUSE_GSTREAMER8=no |
8b6682b9 | 2335 | DEFAULT_wxUSE_PRINTF_POS_PARAM=yes |
a848cd7e SC |
2336 | DEFAULT_wxUSE_INTL=yes |
2337 | DEFAULT_wxUSE_CONFIG=yes | |
2338 | DEFAULT_wxUSE_FONTMAP=yes | |
2339 | DEFAULT_wxUSE_STREAMS=yes | |
2340 | DEFAULT_wxUSE_SOCKETS=yes | |
2341 | DEFAULT_wxUSE_OLE=yes | |
2342 | DEFAULT_wxUSE_DATAOBJ=yes | |
2343 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2344 | DEFAULT_wxUSE_JOYSTICK=yes | |
2345 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2346 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2347 | DEFAULT_wxUSE_LONGLONG=yes | |
2348 | DEFAULT_wxUSE_GEOMETRY=yes | |
2349 | ||
2350 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2351 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2352 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2353 | ||
2354 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2355 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2356 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2357 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2358 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2359 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2360 | |
8a7b1113 | 2361 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2362 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2363 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2364 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2365 | ||
2366 | DEFAULT_wxUSE_RESOURCES=no | |
2367 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2368 | DEFAULT_wxUSE_IPC=yes | |
2369 | DEFAULT_wxUSE_HELP=yes | |
2370 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2371 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2372 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2373 | DEFAULT_wxUSE_METAFILE=yes | |
2374 | DEFAULT_wxUSE_MIMETYPE=yes | |
2375 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2376 | DEFAULT_wxUSE_PROTOCOL=yes | |
2377 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2378 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2379 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2380 | DEFAULT_wxUSE_URL=yes | |
2381 | ||
2382 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2383 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2384 | DEFAULT_wxUSE_COLOURDLG=yes | |
2385 | DEFAULT_wxUSE_DIRDLG=yes | |
2386 | DEFAULT_wxUSE_FILEDLG=yes | |
2387 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2388 | DEFAULT_wxUSE_FONTDLG=yes | |
2389 | DEFAULT_wxUSE_MSGDLG=yes | |
2390 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2391 | DEFAULT_wxUSE_TEXTDLG=yes | |
2392 | DEFAULT_wxUSE_SPLASH=yes | |
2393 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2394 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2395 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2396 | ||
2397 | DEFAULT_wxUSE_MENUS=yes | |
2398 | DEFAULT_wxUSE_MINIFRAME=yes | |
2399 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2400 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2401 | DEFAULT_wxUSE_XRC=yes |
3f60522a | 2402 | DEFAULT_wxUSE_AUI=yes |
646b6ec1 | 2403 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2404 | DEFAULT_wxUSE_FILESYSTEM=yes |
2405 | DEFAULT_wxUSE_FS_INET=yes | |
2406 | DEFAULT_wxUSE_FS_ZIP=yes | |
2407 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2408 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2409 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2410 | DEFAULT_wxUSE_VALIDATORS=yes |
2411 | ||
2412 | DEFAULT_wxUSE_ACCEL=yes | |
2413 | DEFAULT_wxUSE_BUTTON=yes | |
2414 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2415 | DEFAULT_wxUSE_CALCTRL=yes | |
2416 | DEFAULT_wxUSE_CARET=yes | |
2417 | DEFAULT_wxUSE_CHECKBOX=yes | |
2418 | DEFAULT_wxUSE_CHECKLST=yes | |
2419 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2420 | DEFAULT_wxUSE_CHOICEBOOK=yes |
e9263684 | 2421 | DEFAULT_wxUSE_COLOURPICKERCTRL=yes |
a848cd7e | 2422 | DEFAULT_wxUSE_COMBOBOX=yes |
a57d600f | 2423 | DEFAULT_wxUSE_COMBOCTRL=yes |
da98e9be | 2424 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e | 2425 | DEFAULT_wxUSE_DISPLAY=yes |
e9263684 VZ |
2426 | DEFAULT_wxUSE_DIRPICKERCTRL=yes |
2427 | DEFAULT_wxUSE_FILEPICKERCTRL=yes | |
2428 | DEFAULT_wxUSE_FONTPICKERCTRL=yes | |
a848cd7e SC |
2429 | DEFAULT_wxUSE_GAUGE=yes |
2430 | DEFAULT_wxUSE_GRID=yes | |
6954625c | 2431 | DEFAULT_wxUSE_HYPERLINKCTRL=yes |
20e34ecc | 2432 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2433 | DEFAULT_wxUSE_IMAGLIST=yes |
2434 | DEFAULT_wxUSE_LISTBOOK=yes | |
2435 | DEFAULT_wxUSE_LISTBOX=yes | |
2436 | DEFAULT_wxUSE_LISTCTRL=yes | |
2437 | DEFAULT_wxUSE_NOTEBOOK=yes | |
a57d600f | 2438 | DEFAULT_wxUSE_ODCOMBOBOX=yes |
a848cd7e SC |
2439 | DEFAULT_wxUSE_RADIOBOX=yes |
2440 | DEFAULT_wxUSE_RADIOBTN=yes | |
2441 | DEFAULT_wxUSE_SASH=yes | |
2442 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2443 | DEFAULT_wxUSE_SLIDER=yes | |
2444 | DEFAULT_wxUSE_SPINBTN=yes | |
2445 | DEFAULT_wxUSE_SPINCTRL=yes | |
2446 | DEFAULT_wxUSE_SPLITTER=yes | |
2447 | DEFAULT_wxUSE_STATBMP=yes | |
2448 | DEFAULT_wxUSE_STATBOX=yes | |
2449 | DEFAULT_wxUSE_STATLINE=yes | |
2450 | DEFAULT_wxUSE_STATTEXT=yes | |
2451 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2452 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2453 | DEFAULT_wxUSE_TEXTCTRL=yes |
2454 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2455 | DEFAULT_wxUSE_TOOLBAR=yes | |
2456 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2457 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
0093c2fc | 2458 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 2459 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
2460 | DEFAULT_wxUSE_TREECTRL=yes |
2461 | DEFAULT_wxUSE_POPUPWIN=yes | |
2462 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2463 | ||
78de529b | 2464 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2465 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2466 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2467 | ||
2468 | DEFAULT_wxUSE_PALETTE=yes | |
2469 | DEFAULT_wxUSE_IMAGE=yes | |
2470 | DEFAULT_wxUSE_GIF=yes | |
2471 | DEFAULT_wxUSE_PCX=yes | |
2472 | DEFAULT_wxUSE_IFF=no | |
2473 | DEFAULT_wxUSE_PNM=yes | |
2474 | DEFAULT_wxUSE_XPM=yes | |
2475 | DEFAULT_wxUSE_ICO_CUR=yes | |
2476 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2477 | ||
2478 | DEFAULT_wxUSE_MONOLITHIC=no | |
2479 | DEFAULT_wxUSE_PLUGINS=no | |
2480 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2481 | |
f34ca037 | 2482 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2483 | fi |
2484 | ||
2485 | ||
2486 | ||
f34ca037 | 2487 | |
a848cd7e SC |
2488 | for toolkit in `echo $ALL_TOOLKITS`; do |
2489 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2490 | if test "x$LINE" != "x" ; then | |
2491 | has_toolkit_in_cache=1 | |
2492 | eval "DEFAULT_$LINE" | |
2493 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2494 | |
2495 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2496 | if test "x$LINE" != "x" ; then | |
2497 | eval "DEFAULT_$LINE" | |
2498 | fi | |
a848cd7e SC |
2499 | fi |
2500 | done | |
2501 | ||
2502 | ||
2503 | ||
2504 | enablestring= | |
2505 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2506 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2507 | no_cache=0 | |
2508 | # Check whether --enable-gui or --disable-gui was given. | |
2509 | if test "${enable_gui+set}" = set; then | |
2510 | enableval="$enable_gui" | |
2511 | ||
2512 | if test "$enableval" = yes; then | |
2513 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2514 | else | |
2515 | ac_cv_use_gui='wxUSE_GUI=no' | |
2516 | fi | |
2517 | ||
2518 | else | |
2519 | ||
2520 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2521 | if test "x$LINE" != x ; then | |
2522 | eval "DEFAULT_$LINE" | |
2523 | else | |
2524 | no_cache=1 | |
2525 | fi | |
2526 | ||
2527 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2528 | ||
2529 | fi; | |
2530 | ||
2531 | eval "$ac_cv_use_gui" | |
2532 | if test "$no_cache" != 1; then | |
2533 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2534 | fi | |
2535 | ||
2536 | if test "$wxUSE_GUI" = yes; then | |
2537 | echo "$as_me:$LINENO: result: yes" >&5 | |
2538 | echo "${ECHO_T}yes" >&6 | |
2539 | else | |
2540 | echo "$as_me:$LINENO: result: no" >&5 | |
2541 | echo "${ECHO_T}no" >&6 | |
2542 | fi | |
2543 | ||
2544 | ||
2545 | enablestring= | |
2546 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2547 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2548 | no_cache=0 | |
2549 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2550 | if test "${enable_monolithic+set}" = set; then | |
2551 | enableval="$enable_monolithic" | |
2552 | ||
2553 | if test "$enableval" = yes; then | |
2554 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2555 | else | |
2556 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2557 | fi | |
2558 | ||
2559 | else | |
2560 | ||
2561 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2562 | if test "x$LINE" != x ; then | |
2563 | eval "DEFAULT_$LINE" | |
2564 | else | |
2565 | no_cache=1 | |
2566 | fi | |
2567 | ||
2568 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2569 | ||
2570 | fi; | |
2571 | ||
2572 | eval "$ac_cv_use_monolithic" | |
2573 | if test "$no_cache" != 1; then | |
2574 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2575 | fi | |
2576 | ||
2577 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2578 | echo "$as_me:$LINENO: result: yes" >&5 | |
2579 | echo "${ECHO_T}yes" >&6 | |
2580 | else | |
2581 | echo "$as_me:$LINENO: result: no" >&5 | |
2582 | echo "${ECHO_T}no" >&6 | |
2583 | fi | |
2584 | ||
2585 | ||
2586 | enablestring= | |
2587 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2588 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2589 | no_cache=0 | |
2590 | # Check whether --enable-plugins or --disable-plugins was given. | |
2591 | if test "${enable_plugins+set}" = set; then | |
2592 | enableval="$enable_plugins" | |
2593 | ||
2594 | if test "$enableval" = yes; then | |
2595 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2596 | else | |
2597 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2598 | fi | |
2599 | ||
2600 | else | |
2601 | ||
2602 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2603 | if test "x$LINE" != x ; then | |
2604 | eval "DEFAULT_$LINE" | |
2605 | else | |
2606 | no_cache=1 | |
2607 | fi | |
2608 | ||
2609 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2610 | ||
2611 | fi; | |
2612 | ||
2613 | eval "$ac_cv_use_plugins" | |
2614 | if test "$no_cache" != 1; then | |
2615 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2616 | fi | |
2617 | ||
2618 | if test "$wxUSE_PLUGINS" = yes; then | |
2619 | echo "$as_me:$LINENO: result: yes" >&5 | |
2620 | echo "${ECHO_T}yes" >&6 | |
2621 | else | |
2622 | echo "$as_me:$LINENO: result: no" >&5 | |
2623 | echo "${ECHO_T}no" >&6 | |
2624 | fi | |
2625 | ||
2626 | ||
1c14217d VZ |
2627 | withstring=without |
2628 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2629 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2630 | no_cache=0 | |
2631 | ||
2632 | # Check whether --with-subdirs or --without-subdirs was given. | |
2633 | if test "${with_subdirs+set}" = set; then | |
2634 | withval="$with_subdirs" | |
2635 | ||
2636 | if test "$withval" = yes; then | |
2637 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2638 | else | |
2639 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2640 | fi | |
2641 | ||
2642 | else | |
2643 | ||
2644 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2645 | if test "x$LINE" != x ; then | |
2646 | eval "DEFAULT_$LINE" | |
2647 | else | |
2648 | no_cache=1 | |
2649 | fi | |
2650 | ||
2651 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2652 | ||
2653 | fi; | |
2654 | ||
2655 | eval "$ac_cv_use_subdirs" | |
2656 | if test "$no_cache" != 1; then | |
2657 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2658 | fi | |
2659 | ||
2660 | if test "$wxWITH_SUBDIRS" = yes; then | |
2661 | echo "$as_me:$LINENO: result: yes" >&5 | |
2662 | echo "${ECHO_T}yes" >&6 | |
2663 | else | |
2664 | echo "$as_me:$LINENO: result: no" >&5 | |
2665 | echo "${ECHO_T}no" >&6 | |
2666 | fi | |
2667 | ||
2668 | ||
a848cd7e SC |
2669 | if test "$wxUSE_GUI" = "yes"; then |
2670 | ||
2671 | ||
2672 | enablestring= | |
2673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2674 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2675 | no_cache=0 | |
2676 | # Check whether --enable-universal or --disable-universal was given. | |
2677 | if test "${enable_universal+set}" = set; then | |
2678 | enableval="$enable_universal" | |
2679 | ||
2680 | if test "$enableval" = yes; then | |
2681 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2682 | else | |
2683 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2684 | fi | |
2685 | ||
2686 | else | |
2687 | ||
2688 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2689 | if test "x$LINE" != x ; then | |
2690 | eval "DEFAULT_$LINE" | |
2691 | else | |
2692 | no_cache=1 | |
2693 | fi | |
2694 | ||
2695 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2696 | ||
2697 | fi; | |
2698 | ||
2699 | eval "$ac_cv_use_universal" | |
2700 | if test "$no_cache" != 1; then | |
2701 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2702 | fi | |
2703 | ||
2704 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2705 | echo "$as_me:$LINENO: result: yes" >&5 | |
2706 | echo "${ECHO_T}yes" >&6 | |
2707 | else | |
2708 | echo "$as_me:$LINENO: result: no" >&5 | |
2709 | echo "${ECHO_T}no" >&6 | |
2710 | fi | |
2711 | ||
2712 | ||
2713 | # Check whether --with-gtk or --without-gtk was given. | |
2714 | if test "${with_gtk+set}" = set; then | |
2715 | withval="$with_gtk" | |
2716 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2717 | fi; | |
2718 | ||
2719 | # Check whether --with-motif or --without-motif was given. | |
2720 | if test "${with_motif+set}" = set; then | |
2721 | withval="$with_motif" | |
2722 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2723 | fi; | |
2724 | ||
2725 | # Check whether --with-mac or --without-mac was given. | |
2726 | if test "${with_mac+set}" = set; then | |
2727 | withval="$with_mac" | |
c228d3a4 | 2728 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2729 | fi; |
2730 | ||
2731 | # Check whether --with-cocoa or --without-cocoa was given. | |
2732 | if test "${with_cocoa+set}" = set; then | |
2733 | withval="$with_cocoa" | |
c228d3a4 | 2734 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2735 | fi; |
2736 | ||
2737 | # Check whether --with-wine or --without-wine was given. | |
2738 | if test "${with_wine+set}" = set; then | |
2739 | withval="$with_wine" | |
2740 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2741 | fi; | |
2742 | ||
2743 | # Check whether --with-msw or --without-msw was given. | |
2744 | if test "${with_msw+set}" = set; then | |
2745 | withval="$with_msw" | |
2746 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2747 | fi; | |
2748 | ||
2749 | # Check whether --with-pm or --without-pm was given. | |
2750 | if test "${with_pm+set}" = set; then | |
2751 | withval="$with_pm" | |
2752 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2753 | fi; | |
2754 | ||
2755 | # Check whether --with-mgl or --without-mgl was given. | |
2756 | if test "${with_mgl+set}" = set; then | |
2757 | withval="$with_mgl" | |
2758 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2759 | fi; | |
2760 | ||
2761 | # Check whether --with-microwin or --without-microwin was given. | |
2762 | if test "${with_microwin+set}" = set; then | |
2763 | withval="$with_microwin" | |
2764 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2765 | fi; | |
2766 | ||
2767 | # Check whether --with-x11 or --without-x11 was given. | |
2768 | if test "${with_x11+set}" = set; then | |
2769 | withval="$with_x11" | |
2770 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2771 | fi; | |
2772 | ||
2773 | enablestring= | |
2774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2775 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2776 | no_cache=0 | |
2777 | # Check whether --enable-nanox or --disable-nanox was given. | |
2778 | if test "${enable_nanox+set}" = set; then | |
2779 | enableval="$enable_nanox" | |
2780 | ||
2781 | if test "$enableval" = yes; then | |
2782 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2783 | else | |
2784 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2785 | fi | |
2786 | ||
2787 | else | |
2788 | ||
2789 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2790 | if test "x$LINE" != x ; then | |
2791 | eval "DEFAULT_$LINE" | |
2792 | else | |
2793 | no_cache=1 | |
2794 | fi | |
2795 | ||
2796 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2797 | ||
2798 | fi; | |
2799 | ||
2800 | eval "$ac_cv_use_nanox" | |
2801 | if test "$no_cache" != 1; then | |
2802 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2803 | fi | |
2804 | ||
2805 | if test "$wxUSE_NANOX" = yes; then | |
2806 | echo "$as_me:$LINENO: result: yes" >&5 | |
2807 | echo "${ECHO_T}yes" >&6 | |
2808 | else | |
2809 | echo "$as_me:$LINENO: result: no" >&5 | |
2810 | echo "${ECHO_T}no" >&6 | |
2811 | fi | |
2812 | ||
2813 | ||
f34ca037 MW |
2814 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2815 | if test "${enable_gtk2+set}" = set; then | |
2816 | enableval="$enable_gtk2" | |
2817 | wxUSE_GTK2="$enableval" | |
2818 | fi; | |
a848cd7e | 2819 | |
a848cd7e SC |
2820 | enablestring= |
2821 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2822 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2823 | no_cache=0 | |
2824 | # Check whether --enable-gpe or --disable-gpe was given. | |
2825 | if test "${enable_gpe+set}" = set; then | |
2826 | enableval="$enable_gpe" | |
2827 | ||
2828 | if test "$enableval" = yes; then | |
2829 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2830 | else | |
2831 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2832 | fi | |
2833 | ||
2834 | else | |
2835 | ||
2836 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2837 | if test "x$LINE" != x ; then | |
2838 | eval "DEFAULT_$LINE" | |
2839 | else | |
2840 | no_cache=1 | |
2841 | fi | |
2842 | ||
2843 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2844 | ||
2845 | fi; | |
2846 | ||
2847 | eval "$ac_cv_use_gpe" | |
2848 | if test "$no_cache" != 1; then | |
2849 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2850 | fi | |
2851 | ||
2852 | if test "$wxUSE_GPE" = yes; then | |
2853 | echo "$as_me:$LINENO: result: yes" >&5 | |
2854 | echo "${ECHO_T}yes" >&6 | |
2855 | else | |
2856 | echo "$as_me:$LINENO: result: no" >&5 | |
2857 | echo "${ECHO_T}no" >&6 | |
2858 | fi | |
2859 | ||
2860 | ||
2861 | ||
2862 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2863 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2864 | no_cache=0 | |
2865 | ||
2866 | # Check whether --with-libpng or --without-libpng was given. | |
2867 | if test "${with_libpng+set}" = set; then | |
2868 | withval="$with_libpng" | |
2869 | ||
2870 | if test "$withval" = yes; then | |
2871 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2872 | elif test "$withval" = no; then | |
2873 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2874 | elif test "$withval" = sys; then | |
2875 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2876 | elif test "$withval" = builtin; then | |
2877 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2878 | else | |
2879 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2880 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2881 | { (exit 1); exit 1; }; } | |
2882 | fi | |
2883 | ||
2884 | else | |
2885 | ||
2886 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2887 | if test "x$LINE" != x ; then | |
2888 | eval "DEFAULT_$LINE" | |
2889 | else | |
2890 | no_cache=1 | |
2891 | fi | |
2892 | ||
2893 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2894 | ||
2895 | fi; | |
2896 | ||
2897 | eval "$ac_cv_use_libpng" | |
2898 | if test "$no_cache" != 1; then | |
2899 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2900 | fi | |
2901 | ||
2902 | if test "$wxUSE_LIBPNG" = yes; then | |
2903 | echo "$as_me:$LINENO: result: yes" >&5 | |
2904 | echo "${ECHO_T}yes" >&6 | |
2905 | elif test "$wxUSE_LIBPNG" = no; then | |
2906 | echo "$as_me:$LINENO: result: no" >&5 | |
2907 | echo "${ECHO_T}no" >&6 | |
2908 | elif test "$wxUSE_LIBPNG" = sys; then | |
2909 | echo "$as_me:$LINENO: result: system version" >&5 | |
2910 | echo "${ECHO_T}system version" >&6 | |
2911 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2912 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2913 | echo "${ECHO_T}builtin version" >&6 | |
2914 | else | |
2915 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2916 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2917 | { (exit 1); exit 1; }; } | |
2918 | fi | |
2919 | ||
2920 | ||
2921 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2922 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2923 | no_cache=0 | |
2924 | ||
2925 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2926 | if test "${with_libjpeg+set}" = set; then | |
2927 | withval="$with_libjpeg" | |
2928 | ||
2929 | if test "$withval" = yes; then | |
2930 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2931 | elif test "$withval" = no; then | |
2932 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2933 | elif test "$withval" = sys; then | |
2934 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2935 | elif test "$withval" = builtin; then | |
2936 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2937 | else | |
2938 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2939 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2940 | { (exit 1); exit 1; }; } | |
2941 | fi | |
2942 | ||
2943 | else | |
2944 | ||
2945 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2946 | if test "x$LINE" != x ; then | |
2947 | eval "DEFAULT_$LINE" | |
2948 | else | |
2949 | no_cache=1 | |
2950 | fi | |
2951 | ||
2952 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2953 | ||
2954 | fi; | |
2955 | ||
2956 | eval "$ac_cv_use_libjpeg" | |
2957 | if test "$no_cache" != 1; then | |
2958 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2959 | fi | |
2960 | ||
2961 | if test "$wxUSE_LIBJPEG" = yes; then | |
2962 | echo "$as_me:$LINENO: result: yes" >&5 | |
2963 | echo "${ECHO_T}yes" >&6 | |
2964 | elif test "$wxUSE_LIBJPEG" = no; then | |
2965 | echo "$as_me:$LINENO: result: no" >&5 | |
2966 | echo "${ECHO_T}no" >&6 | |
2967 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2968 | echo "$as_me:$LINENO: result: system version" >&5 | |
2969 | echo "${ECHO_T}system version" >&6 | |
2970 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2971 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2972 | echo "${ECHO_T}builtin version" >&6 | |
2973 | else | |
2974 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2975 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2976 | { (exit 1); exit 1; }; } | |
2977 | fi | |
2978 | ||
2979 | ||
2980 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2981 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2982 | no_cache=0 | |
2983 | ||
2984 | # Check whether --with-libtiff or --without-libtiff was given. | |
2985 | if test "${with_libtiff+set}" = set; then | |
2986 | withval="$with_libtiff" | |
2987 | ||
2988 | if test "$withval" = yes; then | |
2989 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2990 | elif test "$withval" = no; then | |
2991 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2992 | elif test "$withval" = sys; then | |
2993 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2994 | elif test "$withval" = builtin; then | |
2995 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2996 | else | |
2997 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2998 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2999 | { (exit 1); exit 1; }; } | |
3000 | fi | |
3001 | ||
3002 | else | |
3003 | ||
3004 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
3005 | if test "x$LINE" != x ; then | |
3006 | eval "DEFAULT_$LINE" | |
3007 | else | |
3008 | no_cache=1 | |
3009 | fi | |
3010 | ||
3011 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
3012 | ||
3013 | fi; | |
3014 | ||
3015 | eval "$ac_cv_use_libtiff" | |
3016 | if test "$no_cache" != 1; then | |
3017 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
3018 | fi | |
3019 | ||
3020 | if test "$wxUSE_LIBTIFF" = yes; then | |
3021 | echo "$as_me:$LINENO: result: yes" >&5 | |
3022 | echo "${ECHO_T}yes" >&6 | |
3023 | elif test "$wxUSE_LIBTIFF" = no; then | |
3024 | echo "$as_me:$LINENO: result: no" >&5 | |
3025 | echo "${ECHO_T}no" >&6 | |
3026 | elif test "$wxUSE_LIBTIFF" = sys; then | |
3027 | echo "$as_me:$LINENO: result: system version" >&5 | |
3028 | echo "${ECHO_T}system version" >&6 | |
3029 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
3030 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3031 | echo "${ECHO_T}builtin version" >&6 | |
3032 | else | |
3033 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3034 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3035 | { (exit 1); exit 1; }; } | |
3036 | fi | |
3037 | ||
3038 | ||
3039 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
3040 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
3041 | no_cache=0 | |
3042 | ||
3043 | # Check whether --with-libxpm or --without-libxpm was given. | |
3044 | if test "${with_libxpm+set}" = set; then | |
3045 | withval="$with_libxpm" | |
3046 | ||
3047 | if test "$withval" = yes; then | |
3048 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3049 | elif test "$withval" = no; then | |
3050 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3051 | elif test "$withval" = sys; then | |
3052 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3053 | elif test "$withval" = builtin; then | |
3054 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3055 | else | |
3056 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3057 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3058 | { (exit 1); exit 1; }; } | |
3059 | fi | |
3060 | ||
3061 | else | |
3062 | ||
3063 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3064 | if test "x$LINE" != x ; then | |
3065 | eval "DEFAULT_$LINE" | |
3066 | else | |
3067 | no_cache=1 | |
3068 | fi | |
3069 | ||
3070 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3071 | ||
3072 | fi; | |
3073 | ||
3074 | eval "$ac_cv_use_libxpm" | |
3075 | if test "$no_cache" != 1; then | |
3076 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3077 | fi | |
3078 | ||
3079 | if test "$wxUSE_LIBXPM" = yes; then | |
3080 | echo "$as_me:$LINENO: result: yes" >&5 | |
3081 | echo "${ECHO_T}yes" >&6 | |
3082 | elif test "$wxUSE_LIBXPM" = no; then | |
3083 | echo "$as_me:$LINENO: result: no" >&5 | |
3084 | echo "${ECHO_T}no" >&6 | |
3085 | elif test "$wxUSE_LIBXPM" = sys; then | |
3086 | echo "$as_me:$LINENO: result: system version" >&5 | |
3087 | echo "${ECHO_T}system version" >&6 | |
3088 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3089 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3090 | echo "${ECHO_T}builtin version" >&6 | |
3091 | else | |
3092 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3093 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3094 | { (exit 1); exit 1; }; } | |
3095 | fi | |
3096 | ||
3097 | ||
1c14217d VZ |
3098 | withstring= |
3099 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3100 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3101 | no_cache=0 |
3102 | ||
3103 | # Check whether --with-libmspack or --without-libmspack was given. | |
3104 | if test "${with_libmspack+set}" = set; then | |
3105 | withval="$with_libmspack" | |
3106 | ||
3107 | if test "$withval" = yes; then | |
3108 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3109 | else | |
3110 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3111 | fi | |
3112 | ||
3113 | else | |
3114 | ||
3115 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3116 | if test "x$LINE" != x ; then | |
3117 | eval "DEFAULT_$LINE" | |
3118 | else | |
3119 | no_cache=1 | |
3120 | fi | |
3121 | ||
3122 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3123 | ||
3124 | fi; | |
3125 | ||
3126 | eval "$ac_cv_use_libmspack" | |
3127 | if test "$no_cache" != 1; then | |
3128 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3129 | fi | |
3130 | ||
3131 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3132 | echo "$as_me:$LINENO: result: yes" >&5 | |
3133 | echo "${ECHO_T}yes" >&6 | |
3134 | else | |
3135 | echo "$as_me:$LINENO: result: no" >&5 | |
3136 | echo "${ECHO_T}no" >&6 | |
3137 | fi | |
3138 | ||
3139 | ||
1c14217d VZ |
3140 | withstring= |
3141 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3142 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3143 | no_cache=0 |
3144 | ||
3145 | # Check whether --with-sdl or --without-sdl was given. | |
3146 | if test "${with_sdl+set}" = set; then | |
3147 | withval="$with_sdl" | |
3148 | ||
3149 | if test "$withval" = yes; then | |
3150 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3151 | else | |
3152 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3153 | fi | |
3154 | ||
3155 | else | |
3156 | ||
3157 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3158 | if test "x$LINE" != x ; then | |
3159 | eval "DEFAULT_$LINE" | |
3160 | else | |
3161 | no_cache=1 | |
3162 | fi | |
3163 | ||
3164 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3165 | ||
3166 | fi; | |
3167 | ||
3168 | eval "$ac_cv_use_sdl" | |
3169 | if test "$no_cache" != 1; then | |
3170 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3171 | fi | |
3172 | ||
3173 | if test "$wxUSE_LIBSDL" = yes; then | |
3174 | echo "$as_me:$LINENO: result: yes" >&5 | |
3175 | echo "${ECHO_T}yes" >&6 | |
3176 | else | |
3177 | echo "$as_me:$LINENO: result: no" >&5 | |
3178 | echo "${ECHO_T}no" >&6 | |
3179 | fi | |
3180 | ||
3181 | ||
1c14217d VZ |
3182 | withstring= |
3183 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3184 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3185 | no_cache=0 |
3186 | ||
3187 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3188 | if test "${with_gnomeprint+set}" = set; then | |
3189 | withval="$with_gnomeprint" | |
3190 | ||
3191 | if test "$withval" = yes; then | |
3192 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3193 | else | |
3194 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3195 | fi | |
3196 | ||
3197 | else | |
3198 | ||
3199 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3200 | if test "x$LINE" != x ; then | |
3201 | eval "DEFAULT_$LINE" | |
3202 | else | |
3203 | no_cache=1 | |
3204 | fi | |
3205 | ||
3206 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3207 | ||
3208 | fi; | |
3209 | ||
3210 | eval "$ac_cv_use_gnomeprint" | |
3211 | if test "$no_cache" != 1; then | |
3212 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3213 | fi | |
3214 | ||
3215 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3216 | echo "$as_me:$LINENO: result: yes" >&5 | |
3217 | echo "${ECHO_T}yes" >&6 | |
3218 | else | |
3219 | echo "$as_me:$LINENO: result: no" >&5 | |
3220 | echo "${ECHO_T}no" >&6 | |
3221 | fi | |
3222 | ||
3223 | ||
2b850ae1 RR |
3224 | withstring= |
3225 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5 | |
3226 | echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6 | |
3227 | no_cache=0 | |
3228 | ||
3229 | # Check whether --with-gnomevfs or --without-gnomevfs was given. | |
3230 | if test "${with_gnomevfs+set}" = set; then | |
3231 | withval="$with_gnomevfs" | |
3232 | ||
3233 | if test "$withval" = yes; then | |
3234 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes' | |
3235 | else | |
3236 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no' | |
3237 | fi | |
3238 | ||
3239 | else | |
3240 | ||
3241 | LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}` | |
3242 | if test "x$LINE" != x ; then | |
3243 | eval "DEFAULT_$LINE" | |
3244 | else | |
3245 | no_cache=1 | |
3246 | fi | |
3247 | ||
3248 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS | |
3249 | ||
3250 | fi; | |
3251 | ||
3252 | eval "$ac_cv_use_gnomevfs" | |
3253 | if test "$no_cache" != 1; then | |
3254 | echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp | |
3255 | fi | |
3256 | ||
3257 | if test "$wxUSE_LIBGNOMEVFS" = yes; then | |
3258 | echo "$as_me:$LINENO: result: yes" >&5 | |
3259 | echo "${ECHO_T}yes" >&6 | |
3260 | else | |
3261 | echo "$as_me:$LINENO: result: no" >&5 | |
3262 | echo "${ECHO_T}no" >&6 | |
3263 | fi | |
3264 | ||
3265 | ||
3565d135 RR |
3266 | withstring= |
3267 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3268 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3269 | no_cache=0 | |
3270 | ||
3271 | # Check whether --with-hildon or --without-hildon was given. | |
3272 | if test "${with_hildon+set}" = set; then | |
3273 | withval="$with_hildon" | |
3274 | ||
3275 | if test "$withval" = yes; then | |
3276 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3277 | else | |
3278 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3279 | fi | |
3280 | ||
3281 | else | |
3282 | ||
3283 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3284 | if test "x$LINE" != x ; then | |
3285 | eval "DEFAULT_$LINE" | |
3286 | else | |
3287 | no_cache=1 | |
3288 | fi | |
3289 | ||
3290 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3291 | ||
3292 | fi; | |
3293 | ||
3294 | eval "$ac_cv_use_hildon" | |
3295 | if test "$no_cache" != 1; then | |
3296 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3297 | fi | |
3298 | ||
3299 | if test "$wxUSE_LIBHILDON" = yes; then | |
3300 | echo "$as_me:$LINENO: result: yes" >&5 | |
3301 | echo "${ECHO_T}yes" >&6 | |
3302 | else | |
3303 | echo "$as_me:$LINENO: result: no" >&5 | |
3304 | echo "${ECHO_T}no" >&6 | |
3305 | fi | |
3306 | ||
3307 | ||
1c14217d VZ |
3308 | withstring= |
3309 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3310 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3311 | no_cache=0 |
3312 | ||
3313 | # Check whether --with-opengl or --without-opengl was given. | |
3314 | if test "${with_opengl+set}" = set; then | |
3315 | withval="$with_opengl" | |
3316 | ||
3317 | if test "$withval" = yes; then | |
3318 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3319 | else | |
3320 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3321 | fi | |
3322 | ||
3323 | else | |
3324 | ||
3325 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3326 | if test "x$LINE" != x ; then | |
3327 | eval "DEFAULT_$LINE" | |
3328 | else | |
3329 | no_cache=1 | |
3330 | fi | |
3331 | ||
3332 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3333 | ||
3334 | fi; | |
3335 | ||
3336 | eval "$ac_cv_use_opengl" | |
3337 | if test "$no_cache" != 1; then | |
3338 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3339 | fi | |
3340 | ||
3341 | if test "$wxUSE_OPENGL" = yes; then | |
3342 | echo "$as_me:$LINENO: result: yes" >&5 | |
3343 | echo "${ECHO_T}yes" >&6 | |
3344 | else | |
3345 | echo "$as_me:$LINENO: result: no" >&5 | |
3346 | echo "${ECHO_T}no" >&6 | |
3347 | fi | |
3348 | ||
3349 | ||
3350 | fi | |
3351 | ||
3352 | ||
1c14217d VZ |
3353 | withstring= |
3354 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3355 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3356 | no_cache=0 |
3357 | ||
3358 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3359 | if test "${with_dmalloc+set}" = set; then | |
3360 | withval="$with_dmalloc" | |
3361 | ||
3362 | if test "$withval" = yes; then | |
3363 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3364 | else | |
3365 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3366 | fi | |
3367 | ||
3368 | else | |
3369 | ||
3370 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3371 | if test "x$LINE" != x ; then | |
3372 | eval "DEFAULT_$LINE" | |
3373 | else | |
3374 | no_cache=1 | |
3375 | fi | |
3376 | ||
3377 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3378 | ||
3379 | fi; | |
3380 | ||
3381 | eval "$ac_cv_use_dmalloc" | |
3382 | if test "$no_cache" != 1; then | |
3383 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3384 | fi | |
3385 | ||
3386 | if test "$wxUSE_DMALLOC" = yes; then | |
3387 | echo "$as_me:$LINENO: result: yes" >&5 | |
3388 | echo "${ECHO_T}yes" >&6 | |
3389 | else | |
3390 | echo "$as_me:$LINENO: result: no" >&5 | |
3391 | echo "${ECHO_T}no" >&6 | |
3392 | fi | |
3393 | ||
3394 | ||
3395 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3396 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3397 | no_cache=0 | |
3398 | ||
3399 | # Check whether --with-regex or --without-regex was given. | |
3400 | if test "${with_regex+set}" = set; then | |
3401 | withval="$with_regex" | |
3402 | ||
3403 | if test "$withval" = yes; then | |
3404 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3405 | elif test "$withval" = no; then | |
3406 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3407 | elif test "$withval" = sys; then | |
3408 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3409 | elif test "$withval" = builtin; then | |
3410 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3411 | else | |
3412 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3413 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3414 | { (exit 1); exit 1; }; } | |
3415 | fi | |
3416 | ||
3417 | else | |
3418 | ||
3419 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3420 | if test "x$LINE" != x ; then | |
3421 | eval "DEFAULT_$LINE" | |
3422 | else | |
3423 | no_cache=1 | |
3424 | fi | |
3425 | ||
3426 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3427 | ||
3428 | fi; | |
3429 | ||
3430 | eval "$ac_cv_use_regex" | |
3431 | if test "$no_cache" != 1; then | |
3432 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3433 | fi | |
3434 | ||
3435 | if test "$wxUSE_REGEX" = yes; then | |
3436 | echo "$as_me:$LINENO: result: yes" >&5 | |
3437 | echo "${ECHO_T}yes" >&6 | |
3438 | elif test "$wxUSE_REGEX" = no; then | |
3439 | echo "$as_me:$LINENO: result: no" >&5 | |
3440 | echo "${ECHO_T}no" >&6 | |
3441 | elif test "$wxUSE_REGEX" = sys; then | |
3442 | echo "$as_me:$LINENO: result: system version" >&5 | |
3443 | echo "${ECHO_T}system version" >&6 | |
3444 | elif test "$wxUSE_REGEX" = builtin; then | |
3445 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3446 | echo "${ECHO_T}builtin version" >&6 | |
3447 | else | |
3448 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3449 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3450 | { (exit 1); exit 1; }; } | |
3451 | fi | |
3452 | ||
3453 | ||
3454 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3455 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3456 | no_cache=0 | |
3457 | ||
3458 | # Check whether --with-zlib or --without-zlib was given. | |
3459 | if test "${with_zlib+set}" = set; then | |
3460 | withval="$with_zlib" | |
3461 | ||
3462 | if test "$withval" = yes; then | |
3463 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3464 | elif test "$withval" = no; then | |
3465 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3466 | elif test "$withval" = sys; then | |
3467 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3468 | elif test "$withval" = builtin; then | |
3469 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3470 | else | |
3471 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3472 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3473 | { (exit 1); exit 1; }; } | |
3474 | fi | |
3475 | ||
3476 | else | |
3477 | ||
3478 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3479 | if test "x$LINE" != x ; then | |
3480 | eval "DEFAULT_$LINE" | |
3481 | else | |
3482 | no_cache=1 | |
3483 | fi | |
3484 | ||
3485 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3486 | ||
3487 | fi; | |
3488 | ||
3489 | eval "$ac_cv_use_zlib" | |
3490 | if test "$no_cache" != 1; then | |
3491 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3492 | fi | |
3493 | ||
3494 | if test "$wxUSE_ZLIB" = yes; then | |
3495 | echo "$as_me:$LINENO: result: yes" >&5 | |
3496 | echo "${ECHO_T}yes" >&6 | |
3497 | elif test "$wxUSE_ZLIB" = no; then | |
3498 | echo "$as_me:$LINENO: result: no" >&5 | |
3499 | echo "${ECHO_T}no" >&6 | |
3500 | elif test "$wxUSE_ZLIB" = sys; then | |
3501 | echo "$as_me:$LINENO: result: system version" >&5 | |
3502 | echo "${ECHO_T}system version" >&6 | |
3503 | elif test "$wxUSE_ZLIB" = builtin; then | |
3504 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3505 | echo "${ECHO_T}builtin version" >&6 | |
3506 | else | |
3507 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3508 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3509 | { (exit 1); exit 1; }; } | |
3510 | fi | |
3511 | ||
3512 | ||
3513 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3514 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3515 | no_cache=0 | |
3516 | ||
3517 | # Check whether --with-odbc or --without-odbc was given. | |
3518 | if test "${with_odbc+set}" = set; then | |
3519 | withval="$with_odbc" | |
3520 | ||
3521 | if test "$withval" = yes; then | |
3522 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3523 | elif test "$withval" = no; then | |
3524 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3525 | elif test "$withval" = sys; then | |
3526 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3527 | elif test "$withval" = builtin; then | |
3528 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3529 | else | |
3530 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3531 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3532 | { (exit 1); exit 1; }; } | |
3533 | fi | |
3534 | ||
3535 | else | |
3536 | ||
3537 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3538 | if test "x$LINE" != x ; then | |
3539 | eval "DEFAULT_$LINE" | |
3540 | else | |
3541 | no_cache=1 | |
3542 | fi | |
3543 | ||
3544 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3545 | ||
3546 | fi; | |
3547 | ||
3548 | eval "$ac_cv_use_odbc" | |
3549 | if test "$no_cache" != 1; then | |
3550 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3551 | fi | |
3552 | ||
3553 | if test "$wxUSE_ODBC" = yes; then | |
3554 | echo "$as_me:$LINENO: result: yes" >&5 | |
3555 | echo "${ECHO_T}yes" >&6 | |
3556 | elif test "$wxUSE_ODBC" = no; then | |
3557 | echo "$as_me:$LINENO: result: no" >&5 | |
3558 | echo "${ECHO_T}no" >&6 | |
3559 | elif test "$wxUSE_ODBC" = sys; then | |
3560 | echo "$as_me:$LINENO: result: system version" >&5 | |
3561 | echo "${ECHO_T}system version" >&6 | |
3562 | elif test "$wxUSE_ODBC" = builtin; then | |
3563 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3564 | echo "${ECHO_T}builtin version" >&6 | |
3565 | else | |
3566 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3567 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3568 | { (exit 1); exit 1; }; } | |
3569 | fi | |
3570 | ||
3571 | ||
3572 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3573 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3574 | no_cache=0 | |
3575 | ||
3576 | # Check whether --with-expat or --without-expat was given. | |
3577 | if test "${with_expat+set}" = set; then | |
3578 | withval="$with_expat" | |
3579 | ||
3580 | if test "$withval" = yes; then | |
3581 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3582 | elif test "$withval" = no; then | |
3583 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3584 | elif test "$withval" = sys; then | |
3585 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3586 | elif test "$withval" = builtin; then | |
3587 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3588 | else | |
3589 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3590 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3591 | { (exit 1); exit 1; }; } | |
3592 | fi | |
3593 | ||
3594 | else | |
3595 | ||
3596 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3597 | if test "x$LINE" != x ; then | |
3598 | eval "DEFAULT_$LINE" | |
3599 | else | |
3600 | no_cache=1 | |
3601 | fi | |
3602 | ||
3603 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3604 | ||
3605 | fi; | |
3606 | ||
3607 | eval "$ac_cv_use_expat" | |
3608 | if test "$no_cache" != 1; then | |
3609 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3610 | fi | |
3611 | ||
3612 | if test "$wxUSE_EXPAT" = yes; then | |
3613 | echo "$as_me:$LINENO: result: yes" >&5 | |
3614 | echo "${ECHO_T}yes" >&6 | |
3615 | elif test "$wxUSE_EXPAT" = no; then | |
3616 | echo "$as_me:$LINENO: result: no" >&5 | |
3617 | echo "${ECHO_T}no" >&6 | |
3618 | elif test "$wxUSE_EXPAT" = sys; then | |
3619 | echo "$as_me:$LINENO: result: system version" >&5 | |
3620 | echo "${ECHO_T}system version" >&6 | |
3621 | elif test "$wxUSE_EXPAT" = builtin; then | |
3622 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3623 | echo "${ECHO_T}builtin version" >&6 | |
3624 | else | |
3625 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3626 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3627 | { (exit 1); exit 1; }; } | |
3628 | fi | |
3629 | ||
3630 | ||
3631 | ||
3632 | ||
3633 | enablestring= | |
3634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3635 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3636 | no_cache=0 | |
3637 | # Check whether --enable-shared or --disable-shared was given. | |
3638 | if test "${enable_shared+set}" = set; then | |
3639 | enableval="$enable_shared" | |
3640 | ||
3641 | if test "$enableval" = yes; then | |
3642 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3643 | else | |
3644 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3645 | fi | |
3646 | ||
3647 | else | |
3648 | ||
3649 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3650 | if test "x$LINE" != x ; then | |
3651 | eval "DEFAULT_$LINE" | |
3652 | else | |
3653 | no_cache=1 | |
3654 | fi | |
3655 | ||
3656 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3657 | ||
3658 | fi; | |
3659 | ||
3660 | eval "$ac_cv_use_shared" | |
3661 | if test "$no_cache" != 1; then | |
3662 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3663 | fi | |
3664 | ||
3665 | if test "$wxUSE_SHARED" = yes; then | |
3666 | echo "$as_me:$LINENO: result: yes" >&5 | |
3667 | echo "${ECHO_T}yes" >&6 | |
3668 | else | |
3669 | echo "$as_me:$LINENO: result: no" >&5 | |
3670 | echo "${ECHO_T}no" >&6 | |
3671 | fi | |
3672 | ||
3673 | ||
3674 | enablestring= | |
3675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3676 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3677 | no_cache=0 | |
3678 | # Check whether --enable-optimise or --disable-optimise was given. | |
3679 | if test "${enable_optimise+set}" = set; then | |
3680 | enableval="$enable_optimise" | |
3681 | ||
3682 | if test "$enableval" = yes; then | |
3683 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3684 | else | |
3685 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3686 | fi | |
3687 | ||
3688 | else | |
3689 | ||
3690 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3691 | if test "x$LINE" != x ; then | |
3692 | eval "DEFAULT_$LINE" | |
3693 | else | |
3694 | no_cache=1 | |
3695 | fi | |
3696 | ||
3697 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3698 | ||
3699 | fi; | |
3700 | ||
3701 | eval "$ac_cv_use_optimise" | |
3702 | if test "$no_cache" != 1; then | |
3703 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3704 | fi | |
3705 | ||
3706 | if test "$wxUSE_OPTIMISE" = yes; then | |
3707 | echo "$as_me:$LINENO: result: yes" >&5 | |
3708 | echo "${ECHO_T}yes" >&6 | |
3709 | else | |
3710 | echo "$as_me:$LINENO: result: no" >&5 | |
3711 | echo "${ECHO_T}no" >&6 | |
3712 | fi | |
3713 | ||
3714 | ||
3715 | enablestring= | |
3716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3717 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3718 | no_cache=0 | |
3719 | # Check whether --enable-debug or --disable-debug was given. | |
3720 | if test "${enable_debug+set}" = set; then | |
3721 | enableval="$enable_debug" | |
3722 | ||
3723 | if test "$enableval" = yes; then | |
3724 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3725 | else | |
3726 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3727 | fi | |
3728 | ||
3729 | else | |
3730 | ||
3731 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3732 | if test "x$LINE" != x ; then | |
3733 | eval "DEFAULT_$LINE" | |
3734 | else | |
3735 | no_cache=1 | |
3736 | fi | |
3737 | ||
3738 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3739 | ||
3740 | fi; | |
3741 | ||
3742 | eval "$ac_cv_use_debug" | |
3743 | if test "$no_cache" != 1; then | |
3744 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3745 | fi | |
3746 | ||
3747 | if test "$wxUSE_DEBUG" = yes; then | |
3748 | echo "$as_me:$LINENO: result: yes" >&5 | |
3749 | echo "${ECHO_T}yes" >&6 | |
3750 | else | |
3751 | echo "$as_me:$LINENO: result: no" >&5 | |
3752 | echo "${ECHO_T}no" >&6 | |
3753 | fi | |
3754 | ||
3755 | ||
3756 | enablestring= | |
3757 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3758 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3759 | no_cache=0 | |
3760 | # Check whether --enable-stl or --disable-stl was given. | |
3761 | if test "${enable_stl+set}" = set; then | |
3762 | enableval="$enable_stl" | |
3763 | ||
3764 | if test "$enableval" = yes; then | |
3765 | ac_cv_use_stl='wxUSE_STL=yes' | |
3766 | else | |
3767 | ac_cv_use_stl='wxUSE_STL=no' | |
3768 | fi | |
3769 | ||
3770 | else | |
3771 | ||
3772 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3773 | if test "x$LINE" != x ; then | |
3774 | eval "DEFAULT_$LINE" | |
3775 | else | |
3776 | no_cache=1 | |
3777 | fi | |
3778 | ||
3779 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3780 | ||
3781 | fi; | |
3782 | ||
3783 | eval "$ac_cv_use_stl" | |
3784 | if test "$no_cache" != 1; then | |
3785 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3786 | fi | |
3787 | ||
3788 | if test "$wxUSE_STL" = yes; then | |
3789 | echo "$as_me:$LINENO: result: yes" >&5 | |
3790 | echo "${ECHO_T}yes" >&6 | |
3791 | else | |
3792 | echo "$as_me:$LINENO: result: no" >&5 | |
3793 | echo "${ECHO_T}no" >&6 | |
3794 | fi | |
3795 | ||
3796 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3797 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3798 | |
3799 | enablestring= | |
3800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3801 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3802 | no_cache=0 | |
3803 | # Check whether --enable-omf or --disable-omf was given. | |
3804 | if test "${enable_omf+set}" = set; then | |
3805 | enableval="$enable_omf" | |
3806 | ||
3807 | if test "$enableval" = yes; then | |
3808 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3809 | else | |
3810 | ac_cv_use_omf='wxUSE_OMF=no' | |
3811 | fi | |
3812 | ||
3813 | else | |
3814 | ||
3815 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3816 | if test "x$LINE" != x ; then | |
3817 | eval "DEFAULT_$LINE" | |
3818 | else | |
3819 | no_cache=1 | |
3820 | fi | |
3821 | ||
3822 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3823 | ||
3824 | fi; | |
3825 | ||
3826 | eval "$ac_cv_use_omf" | |
3827 | if test "$no_cache" != 1; then | |
3828 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3829 | fi | |
3830 | ||
3831 | if test "$wxUSE_OMF" = yes; then | |
3832 | echo "$as_me:$LINENO: result: yes" >&5 | |
3833 | echo "${ECHO_T}yes" >&6 | |
3834 | else | |
3835 | echo "$as_me:$LINENO: result: no" >&5 | |
3836 | echo "${ECHO_T}no" >&6 | |
3837 | fi | |
3838 | ||
3839 | fi | |
3840 | ||
3841 | if test "$wxUSE_DEBUG" = "yes"; then | |
3842 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3843 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3844 | BUILD=debug | |
3845 | elif test "$wxUSE_DEBUG" = "no"; then | |
3846 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3847 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3848 | BUILD=release | |
3849 | fi | |
3850 | ||
3851 | ||
3852 | enablestring= | |
3853 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3854 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3855 | no_cache=0 | |
3856 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3857 | if test "${enable_debug_flag+set}" = set; then | |
3858 | enableval="$enable_debug_flag" | |
3859 | ||
3860 | if test "$enableval" = yes; then | |
3861 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3862 | else | |
3863 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3864 | fi | |
3865 | ||
3866 | else | |
3867 | ||
3868 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3869 | if test "x$LINE" != x ; then | |
3870 | eval "DEFAULT_$LINE" | |
3871 | else | |
3872 | no_cache=1 | |
3873 | fi | |
3874 | ||
3875 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3876 | ||
3877 | fi; | |
3878 | ||
3879 | eval "$ac_cv_use_debug_flag" | |
3880 | if test "$no_cache" != 1; then | |
3881 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3882 | fi | |
3883 | ||
3884 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3885 | echo "$as_me:$LINENO: result: yes" >&5 | |
3886 | echo "${ECHO_T}yes" >&6 | |
3887 | else | |
3888 | echo "$as_me:$LINENO: result: no" >&5 | |
3889 | echo "${ECHO_T}no" >&6 | |
3890 | fi | |
3891 | ||
3892 | ||
3893 | enablestring= | |
3894 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3895 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3896 | no_cache=0 | |
3897 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3898 | if test "${enable_debug_info+set}" = set; then | |
3899 | enableval="$enable_debug_info" | |
3900 | ||
3901 | if test "$enableval" = yes; then | |
3902 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3903 | else | |
3904 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3905 | fi | |
3906 | ||
3907 | else | |
3908 | ||
3909 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3910 | if test "x$LINE" != x ; then | |
3911 | eval "DEFAULT_$LINE" | |
3912 | else | |
3913 | no_cache=1 | |
3914 | fi | |
3915 | ||
3916 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3917 | ||
3918 | fi; | |
3919 | ||
3920 | eval "$ac_cv_use_debug_info" | |
3921 | if test "$no_cache" != 1; then | |
3922 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3923 | fi | |
3924 | ||
3925 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3926 | echo "$as_me:$LINENO: result: yes" >&5 | |
3927 | echo "${ECHO_T}yes" >&6 | |
3928 | else | |
3929 | echo "$as_me:$LINENO: result: no" >&5 | |
3930 | echo "${ECHO_T}no" >&6 | |
3931 | fi | |
3932 | ||
3933 | ||
3934 | enablestring= | |
3935 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3936 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3937 | no_cache=0 | |
3938 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3939 | if test "${enable_debug_gdb+set}" = set; then | |
3940 | enableval="$enable_debug_gdb" | |
3941 | ||
3942 | if test "$enableval" = yes; then | |
3943 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3944 | else | |
3945 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3946 | fi | |
3947 | ||
3948 | else | |
3949 | ||
3950 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3951 | if test "x$LINE" != x ; then | |
3952 | eval "DEFAULT_$LINE" | |
3953 | else | |
3954 | no_cache=1 | |
3955 | fi | |
3956 | ||
3957 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3958 | ||
3959 | fi; | |
3960 | ||
3961 | eval "$ac_cv_use_debug_gdb" | |
3962 | if test "$no_cache" != 1; then | |
3963 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3964 | fi | |
3965 | ||
3966 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3967 | echo "$as_me:$LINENO: result: yes" >&5 | |
3968 | echo "${ECHO_T}yes" >&6 | |
3969 | else | |
3970 | echo "$as_me:$LINENO: result: no" >&5 | |
3971 | echo "${ECHO_T}no" >&6 | |
3972 | fi | |
3973 | ||
3974 | ||
3975 | enablestring= | |
3976 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3977 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3978 | no_cache=0 | |
3979 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3980 | if test "${enable_debug_cntxt+set}" = set; then | |
3981 | enableval="$enable_debug_cntxt" | |
3982 | ||
3983 | if test "$enableval" = yes; then | |
3984 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3985 | else | |
3986 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3987 | fi | |
3988 | ||
3989 | else | |
3990 | ||
3991 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3992 | if test "x$LINE" != x ; then | |
3993 | eval "DEFAULT_$LINE" | |
3994 | else | |
3995 | no_cache=1 | |
3996 | fi | |
3997 | ||
3998 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3999 | ||
4000 | fi; | |
4001 | ||
4002 | eval "$ac_cv_use_debug_cntxt" | |
4003 | if test "$no_cache" != 1; then | |
4004 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
4005 | fi | |
4006 | ||
4007 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
4008 | echo "$as_me:$LINENO: result: yes" >&5 | |
4009 | echo "${ECHO_T}yes" >&6 | |
4010 | else | |
4011 | echo "$as_me:$LINENO: result: no" >&5 | |
4012 | echo "${ECHO_T}no" >&6 | |
4013 | fi | |
4014 | ||
4015 | ||
4016 | enablestring= | |
4017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
4018 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
4019 | no_cache=0 | |
4020 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
4021 | if test "${enable_mem_tracing+set}" = set; then | |
4022 | enableval="$enable_mem_tracing" | |
4023 | ||
4024 | if test "$enableval" = yes; then | |
4025 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
4026 | else | |
4027 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
4028 | fi | |
4029 | ||
4030 | else | |
4031 | ||
4032 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
4033 | if test "x$LINE" != x ; then | |
4034 | eval "DEFAULT_$LINE" | |
4035 | else | |
4036 | no_cache=1 | |
4037 | fi | |
4038 | ||
4039 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
4040 | ||
4041 | fi; | |
4042 | ||
4043 | eval "$ac_cv_use_mem_tracing" | |
4044 | if test "$no_cache" != 1; then | |
4045 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
4046 | fi | |
4047 | ||
4048 | if test "$wxUSE_MEM_TRACING" = yes; then | |
4049 | echo "$as_me:$LINENO: result: yes" >&5 | |
4050 | echo "${ECHO_T}yes" >&6 | |
4051 | else | |
4052 | echo "$as_me:$LINENO: result: no" >&5 | |
4053 | echo "${ECHO_T}no" >&6 | |
4054 | fi | |
4055 | ||
4056 | ||
4057 | enablestring= | |
4058 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
4059 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
4060 | no_cache=0 | |
4061 | # Check whether --enable-profile or --disable-profile was given. | |
4062 | if test "${enable_profile+set}" = set; then | |
4063 | enableval="$enable_profile" | |
4064 | ||
4065 | if test "$enableval" = yes; then | |
4066 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
4067 | else | |
4068 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
4069 | fi | |
4070 | ||
4071 | else | |
4072 | ||
4073 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
4074 | if test "x$LINE" != x ; then | |
4075 | eval "DEFAULT_$LINE" | |
4076 | else | |
4077 | no_cache=1 | |
4078 | fi | |
4079 | ||
4080 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
4081 | ||
4082 | fi; | |
4083 | ||
4084 | eval "$ac_cv_use_profile" | |
4085 | if test "$no_cache" != 1; then | |
4086 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4087 | fi | |
4088 | ||
4089 | if test "$wxUSE_PROFILE" = yes; then | |
4090 | echo "$as_me:$LINENO: result: yes" >&5 | |
4091 | echo "${ECHO_T}yes" >&6 | |
4092 | else | |
4093 | echo "$as_me:$LINENO: result: no" >&5 | |
4094 | echo "${ECHO_T}no" >&6 | |
4095 | fi | |
4096 | ||
4097 | ||
4098 | enablestring= | |
4099 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4100 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4101 | no_cache=0 | |
4102 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4103 | if test "${enable_no_rtti+set}" = set; then | |
4104 | enableval="$enable_no_rtti" | |
4105 | ||
4106 | if test "$enableval" = yes; then | |
4107 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4108 | else | |
4109 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4110 | fi | |
4111 | ||
4112 | else | |
4113 | ||
4114 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4115 | if test "x$LINE" != x ; then | |
4116 | eval "DEFAULT_$LINE" | |
4117 | else | |
4118 | no_cache=1 | |
4119 | fi | |
4120 | ||
4121 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4122 | ||
4123 | fi; | |
4124 | ||
4125 | eval "$ac_cv_use_no_rtti" | |
4126 | if test "$no_cache" != 1; then | |
4127 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4128 | fi | |
4129 | ||
4130 | if test "$wxUSE_NO_RTTI" = yes; then | |
4131 | echo "$as_me:$LINENO: result: yes" >&5 | |
4132 | echo "${ECHO_T}yes" >&6 | |
4133 | else | |
4134 | echo "$as_me:$LINENO: result: no" >&5 | |
4135 | echo "${ECHO_T}no" >&6 | |
4136 | fi | |
4137 | ||
4138 | ||
4139 | enablestring= | |
4140 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4141 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4142 | no_cache=0 | |
4143 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4144 | if test "${enable_no_exceptions+set}" = set; then | |
4145 | enableval="$enable_no_exceptions" | |
4146 | ||
4147 | if test "$enableval" = yes; then | |
4148 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4149 | else | |
4150 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4151 | fi | |
4152 | ||
4153 | else | |
4154 | ||
4155 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4156 | if test "x$LINE" != x ; then | |
4157 | eval "DEFAULT_$LINE" | |
4158 | else | |
4159 | no_cache=1 | |
4160 | fi | |
4161 | ||
4162 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4163 | ||
4164 | fi; | |
4165 | ||
4166 | eval "$ac_cv_use_no_exceptions" | |
4167 | if test "$no_cache" != 1; then | |
4168 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4169 | fi | |
4170 | ||
4171 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4172 | echo "$as_me:$LINENO: result: yes" >&5 | |
4173 | echo "${ECHO_T}yes" >&6 | |
4174 | else | |
4175 | echo "$as_me:$LINENO: result: no" >&5 | |
4176 | echo "${ECHO_T}no" >&6 | |
4177 | fi | |
4178 | ||
4179 | ||
4180 | enablestring= | |
4181 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4182 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4183 | no_cache=0 | |
4184 | # Check whether --enable-permissive or --disable-permissive was given. | |
4185 | if test "${enable_permissive+set}" = set; then | |
4186 | enableval="$enable_permissive" | |
4187 | ||
4188 | if test "$enableval" = yes; then | |
4189 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4190 | else | |
4191 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4192 | fi | |
4193 | ||
4194 | else | |
4195 | ||
4196 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4197 | if test "x$LINE" != x ; then | |
4198 | eval "DEFAULT_$LINE" | |
4199 | else | |
4200 | no_cache=1 | |
4201 | fi | |
4202 | ||
4203 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4204 | ||
4205 | fi; | |
4206 | ||
4207 | eval "$ac_cv_use_permissive" | |
4208 | if test "$no_cache" != 1; then | |
4209 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4210 | fi | |
4211 | ||
4212 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4213 | echo "$as_me:$LINENO: result: yes" >&5 | |
4214 | echo "${ECHO_T}yes" >&6 | |
4215 | else | |
4216 | echo "$as_me:$LINENO: result: no" >&5 | |
4217 | echo "${ECHO_T}no" >&6 | |
4218 | fi | |
4219 | ||
4220 | ||
4221 | enablestring= | |
4222 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4223 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4224 | no_cache=0 | |
4225 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4226 | if test "${enable_no_deps+set}" = set; then | |
4227 | enableval="$enable_no_deps" | |
4228 | ||
4229 | if test "$enableval" = yes; then | |
4230 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4231 | else | |
4232 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4233 | fi | |
4234 | ||
4235 | else | |
4236 | ||
4237 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4238 | if test "x$LINE" != x ; then | |
4239 | eval "DEFAULT_$LINE" | |
4240 | else | |
4241 | no_cache=1 | |
4242 | fi | |
4243 | ||
4244 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4245 | ||
4246 | fi; | |
4247 | ||
4248 | eval "$ac_cv_use_no_deps" | |
4249 | if test "$no_cache" != 1; then | |
4250 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4251 | fi | |
4252 | ||
4253 | if test "$wxUSE_NO_DEPS" = yes; then | |
4254 | echo "$as_me:$LINENO: result: yes" >&5 | |
4255 | echo "${ECHO_T}yes" >&6 | |
4256 | else | |
4257 | echo "$as_me:$LINENO: result: no" >&5 | |
4258 | echo "${ECHO_T}no" >&6 | |
4259 | fi | |
4260 | ||
4261 | ||
7afc46ab KO |
4262 | enablestring= |
4263 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5 | |
4264 | echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6 | |
4265 | no_cache=0 | |
4266 | # Check whether --enable-universal_binary or --disable-universal_binary was given. | |
4267 | if test "${enable_universal_binary+set}" = set; then | |
4268 | enableval="$enable_universal_binary" | |
4269 | ||
4270 | if test "$enableval" = yes; then | |
4271 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes' | |
4272 | else | |
4273 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no' | |
4274 | fi | |
4275 | ||
4276 | else | |
4277 | ||
4278 | LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}` | |
4279 | if test "x$LINE" != x ; then | |
4280 | eval "DEFAULT_$LINE" | |
4281 | else | |
4282 | no_cache=1 | |
4283 | fi | |
4284 | ||
4285 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY | |
4286 | ||
4287 | fi; | |
4288 | ||
4289 | eval "$ac_cv_use_universal_binary" | |
4290 | if test "$no_cache" != 1; then | |
4291 | echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp | |
4292 | fi | |
4293 | ||
4294 | if test "$wxUSE_UNIVERSAL_BINARY" = yes; then | |
4295 | echo "$as_me:$LINENO: result: yes" >&5 | |
4296 | echo "${ECHO_T}yes" >&6 | |
4297 | else | |
4298 | echo "$as_me:$LINENO: result: no" >&5 | |
4299 | echo "${ECHO_T}no" >&6 | |
4300 | fi | |
4301 | ||
4302 | ||
a848cd7e | 4303 | |
dee1a63f MB |
4304 | enablestring=enable |
4305 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4306 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4307 | no_cache=0 |
dee1a63f MB |
4308 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4309 | if test "${enable_compat24+set}" = set; then | |
4310 | enableval="$enable_compat24" | |
a848cd7e SC |
4311 | |
4312 | if test "$enableval" = yes; then | |
dee1a63f | 4313 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4314 | else |
dee1a63f | 4315 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4316 | fi |
4317 | ||
4318 | else | |
4319 | ||
dee1a63f | 4320 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4321 | if test "x$LINE" != x ; then |
4322 | eval "DEFAULT_$LINE" | |
4323 | else | |
4324 | no_cache=1 | |
4325 | fi | |
4326 | ||
dee1a63f | 4327 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4328 | |
4329 | fi; | |
4330 | ||
dee1a63f | 4331 | eval "$ac_cv_use_compat24" |
a848cd7e | 4332 | if test "$no_cache" != 1; then |
dee1a63f | 4333 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4334 | fi |
4335 | ||
dee1a63f | 4336 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4337 | echo "$as_me:$LINENO: result: yes" >&5 |
4338 | echo "${ECHO_T}yes" >&6 | |
4339 | else | |
4340 | echo "$as_me:$LINENO: result: no" >&5 | |
4341 | echo "${ECHO_T}no" >&6 | |
4342 | fi | |
4343 | ||
4344 | ||
4345 | enablestring=disable | |
dee1a63f MB |
4346 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4347 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4348 | no_cache=0 |
dee1a63f MB |
4349 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4350 | if test "${enable_compat26+set}" = set; then | |
4351 | enableval="$enable_compat26" | |
a848cd7e SC |
4352 | |
4353 | if test "$enableval" = yes; then | |
dee1a63f | 4354 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4355 | else |
dee1a63f | 4356 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4357 | fi |
4358 | ||
4359 | else | |
4360 | ||
dee1a63f | 4361 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4362 | if test "x$LINE" != x ; then |
4363 | eval "DEFAULT_$LINE" | |
4364 | else | |
4365 | no_cache=1 | |
4366 | fi | |
4367 | ||
dee1a63f | 4368 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4369 | |
4370 | fi; | |
4371 | ||
dee1a63f | 4372 | eval "$ac_cv_use_compat26" |
a848cd7e | 4373 | if test "$no_cache" != 1; then |
dee1a63f | 4374 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4375 | fi |
4376 | ||
dee1a63f | 4377 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4378 | echo "$as_me:$LINENO: result: yes" >&5 |
4379 | echo "${ECHO_T}yes" >&6 | |
4380 | else | |
4381 | echo "$as_me:$LINENO: result: no" >&5 | |
4382 | echo "${ECHO_T}no" >&6 | |
4383 | fi | |
4384 | ||
4385 | ||
ffa0583f RL |
4386 | |
4387 | enablestring= | |
4388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4389 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4390 | no_cache=0 | |
4391 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4392 | if test "${enable_rpath+set}" = set; then |
4393 | enableval="$enable_rpath" | |
ffa0583f RL |
4394 | |
4395 | if test "$enableval" = yes; then | |
4396 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4397 | else | |
4398 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4399 | fi | |
4400 | ||
4401 | else | |
4402 | ||
4403 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4404 | if test "x$LINE" != x ; then | |
4405 | eval "DEFAULT_$LINE" | |
4406 | else | |
4407 | no_cache=1 | |
4408 | fi | |
4409 | ||
4410 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4411 | ||
a848cd7e SC |
4412 | fi; |
4413 | ||
ffa0583f RL |
4414 | eval "$ac_cv_use_rpath" |
4415 | if test "$no_cache" != 1; then | |
4416 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4417 | fi | |
4418 | ||
4419 | if test "$wxUSE_RPATH" = yes; then | |
4420 | echo "$as_me:$LINENO: result: yes" >&5 | |
4421 | echo "${ECHO_T}yes" >&6 | |
4422 | else | |
4423 | echo "$as_me:$LINENO: result: no" >&5 | |
4424 | echo "${ECHO_T}no" >&6 | |
4425 | fi | |
4426 | ||
a848cd7e SC |
4427 | |
4428 | ||
4429 | ||
4430 | ||
4431 | enablestring= | |
4432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4433 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4434 | no_cache=0 | |
4435 | # Check whether --enable-intl or --disable-intl was given. | |
4436 | if test "${enable_intl+set}" = set; then | |
4437 | enableval="$enable_intl" | |
4438 | ||
4439 | if test "$enableval" = yes; then | |
4440 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4441 | else | |
4442 | ac_cv_use_intl='wxUSE_INTL=no' | |
4443 | fi | |
4444 | ||
4445 | else | |
4446 | ||
4447 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4448 | if test "x$LINE" != x ; then | |
4449 | eval "DEFAULT_$LINE" | |
4450 | else | |
4451 | no_cache=1 | |
4452 | fi | |
4453 | ||
4454 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4455 | ||
4456 | fi; | |
4457 | ||
4458 | eval "$ac_cv_use_intl" | |
4459 | if test "$no_cache" != 1; then | |
4460 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4461 | fi | |
4462 | ||
4463 | if test "$wxUSE_INTL" = yes; then | |
4464 | echo "$as_me:$LINENO: result: yes" >&5 | |
4465 | echo "${ECHO_T}yes" >&6 | |
4466 | else | |
4467 | echo "$as_me:$LINENO: result: no" >&5 | |
4468 | echo "${ECHO_T}no" >&6 | |
4469 | fi | |
4470 | ||
4471 | ||
4472 | enablestring= | |
4473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4474 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4475 | no_cache=0 | |
4476 | # Check whether --enable-config or --disable-config was given. | |
4477 | if test "${enable_config+set}" = set; then | |
4478 | enableval="$enable_config" | |
4479 | ||
4480 | if test "$enableval" = yes; then | |
4481 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4482 | else | |
4483 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4484 | fi | |
4485 | ||
4486 | else | |
4487 | ||
4488 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4489 | if test "x$LINE" != x ; then | |
4490 | eval "DEFAULT_$LINE" | |
4491 | else | |
4492 | no_cache=1 | |
4493 | fi | |
4494 | ||
4495 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4496 | ||
4497 | fi; | |
4498 | ||
4499 | eval "$ac_cv_use_config" | |
4500 | if test "$no_cache" != 1; then | |
4501 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4502 | fi | |
4503 | ||
4504 | if test "$wxUSE_CONFIG" = yes; then | |
4505 | echo "$as_me:$LINENO: result: yes" >&5 | |
4506 | echo "${ECHO_T}yes" >&6 | |
4507 | else | |
4508 | echo "$as_me:$LINENO: result: no" >&5 | |
4509 | echo "${ECHO_T}no" >&6 | |
4510 | fi | |
4511 | ||
4512 | ||
4513 | ||
4514 | enablestring= | |
4515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4516 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4517 | no_cache=0 | |
4518 | # Check whether --enable-protocols or --disable-protocols was given. | |
4519 | if test "${enable_protocols+set}" = set; then | |
4520 | enableval="$enable_protocols" | |
4521 | ||
4522 | if test "$enableval" = yes; then | |
4523 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4524 | else | |
4525 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4526 | fi | |
4527 | ||
4528 | else | |
4529 | ||
4530 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4531 | if test "x$LINE" != x ; then | |
4532 | eval "DEFAULT_$LINE" | |
4533 | else | |
4534 | no_cache=1 | |
4535 | fi | |
4536 | ||
4537 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4538 | ||
4539 | fi; | |
4540 | ||
4541 | eval "$ac_cv_use_protocols" | |
4542 | if test "$no_cache" != 1; then | |
4543 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4544 | fi | |
4545 | ||
4546 | if test "$wxUSE_PROTOCOL" = yes; then | |
4547 | echo "$as_me:$LINENO: result: yes" >&5 | |
4548 | echo "${ECHO_T}yes" >&6 | |
4549 | else | |
4550 | echo "$as_me:$LINENO: result: no" >&5 | |
4551 | echo "${ECHO_T}no" >&6 | |
4552 | fi | |
4553 | ||
4554 | ||
4555 | enablestring= | |
4556 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4557 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4558 | no_cache=0 | |
4559 | # Check whether --enable-ftp or --disable-ftp was given. | |
4560 | if test "${enable_ftp+set}" = set; then | |
4561 | enableval="$enable_ftp" | |
4562 | ||
4563 | if test "$enableval" = yes; then | |
4564 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4565 | else | |
4566 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4567 | fi | |
4568 | ||
4569 | else | |
4570 | ||
4571 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4572 | if test "x$LINE" != x ; then | |
4573 | eval "DEFAULT_$LINE" | |
4574 | else | |
4575 | no_cache=1 | |
4576 | fi | |
4577 | ||
4578 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4579 | ||
4580 | fi; | |
4581 | ||
4582 | eval "$ac_cv_use_ftp" | |
4583 | if test "$no_cache" != 1; then | |
4584 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4585 | fi | |
4586 | ||
4587 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4588 | echo "$as_me:$LINENO: result: yes" >&5 | |
4589 | echo "${ECHO_T}yes" >&6 | |
4590 | else | |
4591 | echo "$as_me:$LINENO: result: no" >&5 | |
4592 | echo "${ECHO_T}no" >&6 | |
4593 | fi | |
4594 | ||
4595 | ||
4596 | enablestring= | |
4597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4598 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4599 | no_cache=0 | |
4600 | # Check whether --enable-http or --disable-http was given. | |
4601 | if test "${enable_http+set}" = set; then | |
4602 | enableval="$enable_http" | |
4603 | ||
4604 | if test "$enableval" = yes; then | |
4605 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4606 | else | |
4607 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4608 | fi | |
4609 | ||
4610 | else | |
4611 | ||
4612 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4613 | if test "x$LINE" != x ; then | |
4614 | eval "DEFAULT_$LINE" | |
4615 | else | |
4616 | no_cache=1 | |
4617 | fi | |
4618 | ||
4619 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4620 | ||
4621 | fi; | |
4622 | ||
4623 | eval "$ac_cv_use_http" | |
4624 | if test "$no_cache" != 1; then | |
4625 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4626 | fi | |
4627 | ||
4628 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4629 | echo "$as_me:$LINENO: result: yes" >&5 | |
4630 | echo "${ECHO_T}yes" >&6 | |
4631 | else | |
4632 | echo "$as_me:$LINENO: result: no" >&5 | |
4633 | echo "${ECHO_T}no" >&6 | |
4634 | fi | |
4635 | ||
4636 | ||
4637 | enablestring= | |
4638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4639 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4640 | no_cache=0 | |
4641 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4642 | if test "${enable_fileproto+set}" = set; then | |
4643 | enableval="$enable_fileproto" | |
4644 | ||
4645 | if test "$enableval" = yes; then | |
4646 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4647 | else | |
4648 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4649 | fi | |
4650 | ||
4651 | else | |
4652 | ||
4653 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4654 | if test "x$LINE" != x ; then | |
4655 | eval "DEFAULT_$LINE" | |
4656 | else | |
4657 | no_cache=1 | |
4658 | fi | |
4659 | ||
4660 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4661 | ||
4662 | fi; | |
4663 | ||
4664 | eval "$ac_cv_use_fileproto" | |
4665 | if test "$no_cache" != 1; then | |
4666 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4667 | fi | |
4668 | ||
4669 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4670 | echo "$as_me:$LINENO: result: yes" >&5 | |
4671 | echo "${ECHO_T}yes" >&6 | |
4672 | else | |
4673 | echo "$as_me:$LINENO: result: no" >&5 | |
4674 | echo "${ECHO_T}no" >&6 | |
4675 | fi | |
4676 | ||
4677 | ||
4678 | enablestring= | |
4679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4680 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4681 | no_cache=0 | |
4682 | # Check whether --enable-sockets or --disable-sockets was given. | |
4683 | if test "${enable_sockets+set}" = set; then | |
4684 | enableval="$enable_sockets" | |
4685 | ||
4686 | if test "$enableval" = yes; then | |
4687 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4688 | else | |
4689 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4690 | fi | |
4691 | ||
4692 | else | |
4693 | ||
4694 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4695 | if test "x$LINE" != x ; then | |
4696 | eval "DEFAULT_$LINE" | |
4697 | else | |
4698 | no_cache=1 | |
4699 | fi | |
4700 | ||
4701 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4702 | ||
4703 | fi; | |
4704 | ||
4705 | eval "$ac_cv_use_sockets" | |
4706 | if test "$no_cache" != 1; then | |
4707 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4708 | fi | |
4709 | ||
4710 | if test "$wxUSE_SOCKETS" = yes; then | |
4711 | echo "$as_me:$LINENO: result: yes" >&5 | |
4712 | echo "${ECHO_T}yes" >&6 | |
4713 | else | |
4714 | echo "$as_me:$LINENO: result: no" >&5 | |
4715 | echo "${ECHO_T}no" >&6 | |
4716 | fi | |
4717 | ||
4718 | ||
4719 | enablestring= | |
4720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4721 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4722 | no_cache=0 | |
4723 | # Check whether --enable-ole or --disable-ole was given. | |
4724 | if test "${enable_ole+set}" = set; then | |
4725 | enableval="$enable_ole" | |
4726 | ||
4727 | if test "$enableval" = yes; then | |
4728 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4729 | else | |
4730 | ac_cv_use_ole='wxUSE_OLE=no' | |
4731 | fi | |
4732 | ||
4733 | else | |
4734 | ||
4735 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4736 | if test "x$LINE" != x ; then | |
4737 | eval "DEFAULT_$LINE" | |
4738 | else | |
4739 | no_cache=1 | |
4740 | fi | |
4741 | ||
4742 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4743 | ||
4744 | fi; | |
4745 | ||
4746 | eval "$ac_cv_use_ole" | |
4747 | if test "$no_cache" != 1; then | |
4748 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4749 | fi | |
4750 | ||
4751 | if test "$wxUSE_OLE" = yes; then | |
4752 | echo "$as_me:$LINENO: result: yes" >&5 | |
4753 | echo "${ECHO_T}yes" >&6 | |
4754 | else | |
4755 | echo "$as_me:$LINENO: result: no" >&5 | |
4756 | echo "${ECHO_T}no" >&6 | |
4757 | fi | |
4758 | ||
4759 | ||
4760 | enablestring= | |
4761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4762 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4763 | no_cache=0 | |
4764 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4765 | if test "${enable_dataobj+set}" = set; then | |
4766 | enableval="$enable_dataobj" | |
4767 | ||
4768 | if test "$enableval" = yes; then | |
4769 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4770 | else | |
4771 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4772 | fi | |
4773 | ||
4774 | else | |
4775 | ||
4776 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4777 | if test "x$LINE" != x ; then | |
4778 | eval "DEFAULT_$LINE" | |
4779 | else | |
4780 | no_cache=1 | |
4781 | fi | |
4782 | ||
4783 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4784 | ||
4785 | fi; | |
4786 | ||
4787 | eval "$ac_cv_use_dataobj" | |
4788 | if test "$no_cache" != 1; then | |
4789 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4790 | fi | |
4791 | ||
4792 | if test "$wxUSE_DATAOBJ" = yes; then | |
4793 | echo "$as_me:$LINENO: result: yes" >&5 | |
4794 | echo "${ECHO_T}yes" >&6 | |
4795 | else | |
4796 | echo "$as_me:$LINENO: result: no" >&5 | |
4797 | echo "${ECHO_T}no" >&6 | |
4798 | fi | |
4799 | ||
4800 | ||
4801 | ||
4802 | enablestring= | |
4803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4804 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4805 | no_cache=0 | |
4806 | # Check whether --enable-ipc or --disable-ipc was given. | |
4807 | if test "${enable_ipc+set}" = set; then | |
4808 | enableval="$enable_ipc" | |
4809 | ||
4810 | if test "$enableval" = yes; then | |
4811 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4812 | else | |
4813 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4814 | fi | |
4815 | ||
4816 | else | |
4817 | ||
4818 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4819 | if test "x$LINE" != x ; then | |
4820 | eval "DEFAULT_$LINE" | |
4821 | else | |
4822 | no_cache=1 | |
4823 | fi | |
4824 | ||
4825 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4826 | ||
4827 | fi; | |
4828 | ||
4829 | eval "$ac_cv_use_ipc" | |
4830 | if test "$no_cache" != 1; then | |
4831 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4832 | fi | |
4833 | ||
4834 | if test "$wxUSE_IPC" = yes; then | |
4835 | echo "$as_me:$LINENO: result: yes" >&5 | |
4836 | echo "${ECHO_T}yes" >&6 | |
4837 | else | |
4838 | echo "$as_me:$LINENO: result: no" >&5 | |
4839 | echo "${ECHO_T}no" >&6 | |
4840 | fi | |
4841 | ||
4842 | ||
4843 | ||
4844 | enablestring= | |
4845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4846 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4847 | no_cache=0 | |
4848 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4849 | if test "${enable_apple_ieee+set}" = set; then | |
4850 | enableval="$enable_apple_ieee" | |
4851 | ||
4852 | if test "$enableval" = yes; then | |
4853 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4854 | else | |
4855 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4856 | fi | |
4857 | ||
4858 | else | |
4859 | ||
4860 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4861 | if test "x$LINE" != x ; then | |
4862 | eval "DEFAULT_$LINE" | |
4863 | else | |
4864 | no_cache=1 | |
4865 | fi | |
4866 | ||
4867 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4868 | ||
4869 | fi; | |
4870 | ||
4871 | eval "$ac_cv_use_apple_ieee" | |
4872 | if test "$no_cache" != 1; then | |
4873 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4874 | fi | |
4875 | ||
4876 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4877 | echo "$as_me:$LINENO: result: yes" >&5 | |
4878 | echo "${ECHO_T}yes" >&6 | |
4879 | else | |
4880 | echo "$as_me:$LINENO: result: no" >&5 | |
4881 | echo "${ECHO_T}no" >&6 | |
4882 | fi | |
4883 | ||
4884 | ||
81f90336 MW |
4885 | enablestring= |
4886 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4887 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4888 | no_cache=0 | |
4889 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4890 | if test "${enable_arcstream+set}" = set; then | |
4891 | enableval="$enable_arcstream" | |
4892 | ||
4893 | if test "$enableval" = yes; then | |
9e8e867f | 4894 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4895 | else |
9e8e867f | 4896 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4897 | fi |
4898 | ||
4899 | else | |
4900 | ||
9e8e867f | 4901 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4902 | if test "x$LINE" != x ; then |
4903 | eval "DEFAULT_$LINE" | |
4904 | else | |
4905 | no_cache=1 | |
4906 | fi | |
4907 | ||
9e8e867f | 4908 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4909 | |
4910 | fi; | |
4911 | ||
4912 | eval "$ac_cv_use_arcstream" | |
4913 | if test "$no_cache" != 1; then | |
4914 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4915 | fi | |
4916 | ||
9e8e867f | 4917 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4918 | echo "$as_me:$LINENO: result: yes" >&5 |
4919 | echo "${ECHO_T}yes" >&6 | |
4920 | else | |
4921 | echo "$as_me:$LINENO: result: no" >&5 | |
4922 | echo "${ECHO_T}no" >&6 | |
4923 | fi | |
4924 | ||
4925 | ||
a848cd7e | 4926 | enablestring= |
36b6448c VZ |
4927 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4928 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4929 | no_cache=0 |
36b6448c VZ |
4930 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4931 | if test "${enable_backtrace+set}" = set; then | |
4932 | enableval="$enable_backtrace" | |
a848cd7e SC |
4933 | |
4934 | if test "$enableval" = yes; then | |
36b6448c | 4935 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4936 | else |
36b6448c | 4937 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4938 | fi |
4939 | ||
4940 | else | |
4941 | ||
36b6448c | 4942 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4943 | if test "x$LINE" != x ; then |
4944 | eval "DEFAULT_$LINE" | |
4945 | else | |
4946 | no_cache=1 | |
4947 | fi | |
4948 | ||
36b6448c | 4949 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4950 | |
4951 | fi; | |
4952 | ||
36b6448c | 4953 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4954 | if test "$no_cache" != 1; then |
36b6448c | 4955 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4956 | fi |
4957 | ||
36b6448c | 4958 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4959 | echo "$as_me:$LINENO: result: yes" >&5 |
4960 | echo "${ECHO_T}yes" >&6 | |
4961 | else | |
4962 | echo "$as_me:$LINENO: result: no" >&5 | |
4963 | echo "${ECHO_T}no" >&6 | |
4964 | fi | |
4965 | ||
4966 | ||
eaff0f0d | 4967 | enablestring= |
36b6448c VZ |
4968 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4969 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4970 | no_cache=0 |
36b6448c VZ |
4971 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4972 | if test "${enable_catch_segvs+set}" = set; then | |
4973 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4974 | |
4975 | if test "$enableval" = yes; then | |
36b6448c | 4976 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4977 | else |
36b6448c | 4978 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4979 | fi |
4980 | ||
4981 | else | |
4982 | ||
36b6448c | 4983 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4984 | if test "x$LINE" != x ; then |
4985 | eval "DEFAULT_$LINE" | |
4986 | else | |
4987 | no_cache=1 | |
4988 | fi | |
4989 | ||
36b6448c | 4990 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4991 | |
4992 | fi; | |
4993 | ||
36b6448c | 4994 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4995 | if test "$no_cache" != 1; then |
36b6448c | 4996 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4997 | fi |
4998 | ||
36b6448c | 4999 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
5000 | echo "$as_me:$LINENO: result: yes" >&5 |
5001 | echo "${ECHO_T}yes" >&6 | |
5002 | else | |
5003 | echo "$as_me:$LINENO: result: no" >&5 | |
5004 | echo "${ECHO_T}no" >&6 | |
5005 | fi | |
5006 | ||
5007 | ||
a848cd7e SC |
5008 | enablestring= |
5009 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
5010 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
5011 | no_cache=0 | |
5012 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
5013 | if test "${enable_cmdline+set}" = set; then | |
5014 | enableval="$enable_cmdline" | |
5015 | ||
5016 | if test "$enableval" = yes; then | |
5017 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
5018 | else | |
5019 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
5020 | fi | |
5021 | ||
5022 | else | |
5023 | ||
5024 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
5025 | if test "x$LINE" != x ; then | |
5026 | eval "DEFAULT_$LINE" | |
5027 | else | |
5028 | no_cache=1 | |
5029 | fi | |
5030 | ||
5031 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
5032 | ||
5033 | fi; | |
5034 | ||
5035 | eval "$ac_cv_use_cmdline" | |
5036 | if test "$no_cache" != 1; then | |
5037 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
5038 | fi | |
5039 | ||
5040 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
5041 | echo "$as_me:$LINENO: result: yes" >&5 | |
5042 | echo "${ECHO_T}yes" >&6 | |
5043 | else | |
5044 | echo "$as_me:$LINENO: result: no" >&5 | |
5045 | echo "${ECHO_T}no" >&6 | |
5046 | fi | |
5047 | ||
5048 | ||
5049 | enablestring= | |
5050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
5051 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
5052 | no_cache=0 | |
5053 | # Check whether --enable-datetime or --disable-datetime was given. | |
5054 | if test "${enable_datetime+set}" = set; then | |
5055 | enableval="$enable_datetime" | |
5056 | ||
5057 | if test "$enableval" = yes; then | |
5058 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
5059 | else | |
5060 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
5061 | fi | |
5062 | ||
5063 | else | |
5064 | ||
5065 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
5066 | if test "x$LINE" != x ; then | |
5067 | eval "DEFAULT_$LINE" | |
5068 | else | |
5069 | no_cache=1 | |
5070 | fi | |
5071 | ||
5072 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
5073 | ||
5074 | fi; | |
5075 | ||
5076 | eval "$ac_cv_use_datetime" | |
5077 | if test "$no_cache" != 1; then | |
5078 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
5079 | fi | |
5080 | ||
5081 | if test "$wxUSE_DATETIME" = yes; then | |
5082 | echo "$as_me:$LINENO: result: yes" >&5 | |
5083 | echo "${ECHO_T}yes" >&6 | |
5084 | else | |
5085 | echo "$as_me:$LINENO: result: no" >&5 | |
5086 | echo "${ECHO_T}no" >&6 | |
5087 | fi | |
5088 | ||
5089 | ||
36b6448c VZ |
5090 | enablestring= |
5091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
5092 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
5093 | no_cache=0 | |
5094 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
5095 | if test "${enable_debugreport+set}" = set; then | |
5096 | enableval="$enable_debugreport" | |
5097 | ||
5098 | if test "$enableval" = yes; then | |
5099 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
5100 | else | |
5101 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
5102 | fi | |
5103 | ||
5104 | else | |
5105 | ||
5106 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
5107 | if test "x$LINE" != x ; then | |
5108 | eval "DEFAULT_$LINE" | |
5109 | else | |
5110 | no_cache=1 | |
5111 | fi | |
5112 | ||
5113 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
5114 | ||
5115 | fi; | |
5116 | ||
5117 | eval "$ac_cv_use_debugreport" | |
5118 | if test "$no_cache" != 1; then | |
5119 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
5120 | fi | |
5121 | ||
5122 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
5123 | echo "$as_me:$LINENO: result: yes" >&5 | |
5124 | echo "${ECHO_T}yes" >&6 | |
5125 | else | |
5126 | echo "$as_me:$LINENO: result: no" >&5 | |
5127 | echo "${ECHO_T}no" >&6 | |
5128 | fi | |
5129 | ||
5130 | ||
a848cd7e SC |
5131 | enablestring= |
5132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5133 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5134 | no_cache=0 | |
5135 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5136 | if test "${enable_dialupman+set}" = set; then | |
5137 | enableval="$enable_dialupman" | |
5138 | ||
5139 | if test "$enableval" = yes; then | |
5140 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5141 | else | |
5142 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5143 | fi | |
5144 | ||
5145 | else | |
5146 | ||
5147 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5148 | if test "x$LINE" != x ; then | |
5149 | eval "DEFAULT_$LINE" | |
5150 | else | |
5151 | no_cache=1 | |
5152 | fi | |
5153 | ||
5154 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5155 | ||
5156 | fi; | |
5157 | ||
5158 | eval "$ac_cv_use_dialupman" | |
5159 | if test "$no_cache" != 1; then | |
5160 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5161 | fi | |
5162 | ||
5163 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5164 | echo "$as_me:$LINENO: result: yes" >&5 | |
5165 | echo "${ECHO_T}yes" >&6 | |
5166 | else | |
5167 | echo "$as_me:$LINENO: result: no" >&5 | |
5168 | echo "${ECHO_T}no" >&6 | |
5169 | fi | |
5170 | ||
5171 | ||
5172 | enablestring= | |
5173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5174 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5175 | no_cache=0 | |
5176 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5177 | if test "${enable_dynlib+set}" = set; then | |
5178 | enableval="$enable_dynlib" | |
5179 | ||
5180 | if test "$enableval" = yes; then | |
5181 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5182 | else | |
5183 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5184 | fi | |
5185 | ||
5186 | else | |
5187 | ||
5188 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5189 | if test "x$LINE" != x ; then | |
5190 | eval "DEFAULT_$LINE" | |
5191 | else | |
5192 | no_cache=1 | |
5193 | fi | |
5194 | ||
5195 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5196 | ||
5197 | fi; | |
5198 | ||
5199 | eval "$ac_cv_use_dynlib" | |
5200 | if test "$no_cache" != 1; then | |
5201 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5202 | fi | |
5203 | ||
5204 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5205 | echo "$as_me:$LINENO: result: yes" >&5 | |
5206 | echo "${ECHO_T}yes" >&6 | |
5207 | else | |
5208 | echo "$as_me:$LINENO: result: no" >&5 | |
5209 | echo "${ECHO_T}no" >&6 | |
5210 | fi | |
5211 | ||
5212 | ||
5213 | enablestring= | |
5214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5215 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5216 | no_cache=0 | |
5217 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5218 | if test "${enable_dynamicloader+set}" = set; then | |
5219 | enableval="$enable_dynamicloader" | |
5220 | ||
5221 | if test "$enableval" = yes; then | |
5222 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5223 | else | |
5224 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5225 | fi | |
5226 | ||
5227 | else | |
5228 | ||
5229 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5230 | if test "x$LINE" != x ; then | |
5231 | eval "DEFAULT_$LINE" | |
5232 | else | |
5233 | no_cache=1 | |
5234 | fi | |
5235 | ||
5236 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5237 | ||
5238 | fi; | |
5239 | ||
5240 | eval "$ac_cv_use_dynamicloader" | |
5241 | if test "$no_cache" != 1; then | |
5242 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5243 | fi | |
5244 | ||
5245 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5246 | echo "$as_me:$LINENO: result: yes" >&5 | |
5247 | echo "${ECHO_T}yes" >&6 | |
5248 | else | |
5249 | echo "$as_me:$LINENO: result: no" >&5 | |
5250 | echo "${ECHO_T}no" >&6 | |
5251 | fi | |
5252 | ||
5253 | ||
5254 | enablestring= | |
5255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5256 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5257 | no_cache=0 | |
5258 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5259 | if test "${enable_exceptions+set}" = set; then | |
5260 | enableval="$enable_exceptions" | |
5261 | ||
5262 | if test "$enableval" = yes; then | |
5263 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5264 | else | |
5265 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5266 | fi | |
5267 | ||
5268 | else | |
5269 | ||
5270 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5271 | if test "x$LINE" != x ; then | |
5272 | eval "DEFAULT_$LINE" | |
5273 | else | |
5274 | no_cache=1 | |
5275 | fi | |
5276 | ||
5277 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5278 | ||
5279 | fi; | |
5280 | ||
5281 | eval "$ac_cv_use_exceptions" | |
5282 | if test "$no_cache" != 1; then | |
5283 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5284 | fi | |
5285 | ||
5286 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5287 | echo "$as_me:$LINENO: result: yes" >&5 | |
5288 | echo "${ECHO_T}yes" >&6 | |
5289 | else | |
5290 | echo "$as_me:$LINENO: result: no" >&5 | |
5291 | echo "${ECHO_T}no" >&6 | |
5292 | fi | |
5293 | ||
5294 | ||
5295 | enablestring= | |
5296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5297 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5298 | no_cache=0 | |
5299 | # Check whether --enable-ffile or --disable-ffile was given. | |
5300 | if test "${enable_ffile+set}" = set; then | |
5301 | enableval="$enable_ffile" | |
5302 | ||
5303 | if test "$enableval" = yes; then | |
5304 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5305 | else | |
5306 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5307 | fi | |
5308 | ||
5309 | else | |
5310 | ||
5311 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5312 | if test "x$LINE" != x ; then | |
5313 | eval "DEFAULT_$LINE" | |
5314 | else | |
5315 | no_cache=1 | |
5316 | fi | |
5317 | ||
5318 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5319 | ||
5320 | fi; | |
5321 | ||
5322 | eval "$ac_cv_use_ffile" | |
5323 | if test "$no_cache" != 1; then | |
5324 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5325 | fi | |
5326 | ||
5327 | if test "$wxUSE_FFILE" = yes; then | |
5328 | echo "$as_me:$LINENO: result: yes" >&5 | |
5329 | echo "${ECHO_T}yes" >&6 | |
5330 | else | |
5331 | echo "$as_me:$LINENO: result: no" >&5 | |
5332 | echo "${ECHO_T}no" >&6 | |
5333 | fi | |
5334 | ||
5335 | ||
5336 | enablestring= | |
5337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5338 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5339 | no_cache=0 | |
5340 | # Check whether --enable-file or --disable-file was given. | |
5341 | if test "${enable_file+set}" = set; then | |
5342 | enableval="$enable_file" | |
5343 | ||
5344 | if test "$enableval" = yes; then | |
5345 | ac_cv_use_file='wxUSE_FILE=yes' | |
5346 | else | |
5347 | ac_cv_use_file='wxUSE_FILE=no' | |
5348 | fi | |
5349 | ||
5350 | else | |
5351 | ||
5352 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5353 | if test "x$LINE" != x ; then | |
5354 | eval "DEFAULT_$LINE" | |
5355 | else | |
5356 | no_cache=1 | |
5357 | fi | |
5358 | ||
5359 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5360 | ||
5361 | fi; | |
5362 | ||
5363 | eval "$ac_cv_use_file" | |
5364 | if test "$no_cache" != 1; then | |
5365 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5366 | fi | |
5367 | ||
5368 | if test "$wxUSE_FILE" = yes; then | |
5369 | echo "$as_me:$LINENO: result: yes" >&5 | |
5370 | echo "${ECHO_T}yes" >&6 | |
5371 | else | |
5372 | echo "$as_me:$LINENO: result: no" >&5 | |
5373 | echo "${ECHO_T}no" >&6 | |
5374 | fi | |
5375 | ||
5376 | ||
5377 | enablestring= | |
5378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5379 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5380 | no_cache=0 | |
5381 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5382 | if test "${enable_filesystem+set}" = set; then | |
5383 | enableval="$enable_filesystem" | |
5384 | ||
5385 | if test "$enableval" = yes; then | |
5386 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5387 | else | |
5388 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5389 | fi | |
5390 | ||
5391 | else | |
5392 | ||
5393 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5394 | if test "x$LINE" != x ; then | |
5395 | eval "DEFAULT_$LINE" | |
5396 | else | |
5397 | no_cache=1 | |
5398 | fi | |
5399 | ||
5400 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5401 | ||
5402 | fi; | |
5403 | ||
5404 | eval "$ac_cv_use_filesystem" | |
5405 | if test "$no_cache" != 1; then | |
5406 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5407 | fi | |
5408 | ||
5409 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5410 | echo "$as_me:$LINENO: result: yes" >&5 | |
5411 | echo "${ECHO_T}yes" >&6 | |
5412 | else | |
5413 | echo "$as_me:$LINENO: result: no" >&5 | |
5414 | echo "${ECHO_T}no" >&6 | |
5415 | fi | |
5416 | ||
5417 | ||
5418 | enablestring= | |
5419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5420 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5421 | no_cache=0 | |
5422 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5423 | if test "${enable_fontmap+set}" = set; then | |
5424 | enableval="$enable_fontmap" | |
5425 | ||
5426 | if test "$enableval" = yes; then | |
5427 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5428 | else | |
5429 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5430 | fi | |
5431 | ||
5432 | else | |
5433 | ||
5434 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5435 | if test "x$LINE" != x ; then | |
5436 | eval "DEFAULT_$LINE" | |
5437 | else | |
5438 | no_cache=1 | |
5439 | fi | |
5440 | ||
5441 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5442 | ||
5443 | fi; | |
5444 | ||
5445 | eval "$ac_cv_use_fontmap" | |
5446 | if test "$no_cache" != 1; then | |
5447 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5448 | fi | |
5449 | ||
5450 | if test "$wxUSE_FONTMAP" = yes; then | |
5451 | echo "$as_me:$LINENO: result: yes" >&5 | |
5452 | echo "${ECHO_T}yes" >&6 | |
5453 | else | |
5454 | echo "$as_me:$LINENO: result: no" >&5 | |
5455 | echo "${ECHO_T}no" >&6 | |
5456 | fi | |
5457 | ||
5458 | ||
5459 | enablestring= | |
5460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5461 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5462 | no_cache=0 | |
5463 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5464 | if test "${enable_fs_inet+set}" = set; then | |
5465 | enableval="$enable_fs_inet" | |
5466 | ||
5467 | if test "$enableval" = yes; then | |
5468 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5469 | else | |
5470 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5471 | fi | |
5472 | ||
5473 | else | |
5474 | ||
5475 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5476 | if test "x$LINE" != x ; then | |
5477 | eval "DEFAULT_$LINE" | |
5478 | else | |
5479 | no_cache=1 | |
5480 | fi | |
5481 | ||
5482 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5483 | ||
5484 | fi; | |
5485 | ||
5486 | eval "$ac_cv_use_fs_inet" | |
5487 | if test "$no_cache" != 1; then | |
5488 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5489 | fi | |
5490 | ||
5491 | if test "$wxUSE_FS_INET" = yes; then | |
5492 | echo "$as_me:$LINENO: result: yes" >&5 | |
5493 | echo "${ECHO_T}yes" >&6 | |
5494 | else | |
5495 | echo "$as_me:$LINENO: result: no" >&5 | |
5496 | echo "${ECHO_T}no" >&6 | |
5497 | fi | |
5498 | ||
5499 | ||
5500 | enablestring= | |
5501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5502 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5503 | no_cache=0 | |
5504 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5505 | if test "${enable_fs_zip+set}" = set; then | |
5506 | enableval="$enable_fs_zip" | |
5507 | ||
5508 | if test "$enableval" = yes; then | |
5509 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5510 | else | |
5511 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5512 | fi | |
5513 | ||
5514 | else | |
5515 | ||
5516 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5517 | if test "x$LINE" != x ; then | |
5518 | eval "DEFAULT_$LINE" | |
5519 | else | |
5520 | no_cache=1 | |
5521 | fi | |
5522 | ||
5523 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5524 | ||
5525 | fi; | |
5526 | ||
5527 | eval "$ac_cv_use_fs_zip" | |
5528 | if test "$no_cache" != 1; then | |
5529 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5530 | fi | |
5531 | ||
5532 | if test "$wxUSE_FS_ZIP" = yes; then | |
5533 | echo "$as_me:$LINENO: result: yes" >&5 | |
5534 | echo "${ECHO_T}yes" >&6 | |
5535 | else | |
5536 | echo "$as_me:$LINENO: result: no" >&5 | |
5537 | echo "${ECHO_T}no" >&6 | |
5538 | fi | |
5539 | ||
5540 | ||
5541 | enablestring= | |
5542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5543 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5544 | no_cache=0 | |
5545 | # Check whether --enable-geometry or --disable-geometry was given. | |
5546 | if test "${enable_geometry+set}" = set; then | |
5547 | enableval="$enable_geometry" | |
5548 | ||
5549 | if test "$enableval" = yes; then | |
5550 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5551 | else | |
5552 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5553 | fi | |
5554 | ||
5555 | else | |
5556 | ||
5557 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5558 | if test "x$LINE" != x ; then | |
5559 | eval "DEFAULT_$LINE" | |
5560 | else | |
5561 | no_cache=1 | |
5562 | fi | |
5563 | ||
5564 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5565 | ||
5566 | fi; | |
5567 | ||
5568 | eval "$ac_cv_use_geometry" | |
5569 | if test "$no_cache" != 1; then | |
5570 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5571 | fi | |
5572 | ||
5573 | if test "$wxUSE_GEOMETRY" = yes; then | |
5574 | echo "$as_me:$LINENO: result: yes" >&5 | |
5575 | echo "${ECHO_T}yes" >&6 | |
5576 | else | |
5577 | echo "$as_me:$LINENO: result: no" >&5 | |
5578 | echo "${ECHO_T}no" >&6 | |
5579 | fi | |
5580 | ||
5581 | ||
5582 | enablestring= | |
5583 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5584 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5585 | no_cache=0 | |
5586 | # Check whether --enable-log or --disable-log was given. | |
5587 | if test "${enable_log+set}" = set; then | |
5588 | enableval="$enable_log" | |
5589 | ||
5590 | if test "$enableval" = yes; then | |
5591 | ac_cv_use_log='wxUSE_LOG=yes' | |
5592 | else | |
5593 | ac_cv_use_log='wxUSE_LOG=no' | |
5594 | fi | |
5595 | ||
5596 | else | |
5597 | ||
5598 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5599 | if test "x$LINE" != x ; then | |
5600 | eval "DEFAULT_$LINE" | |
5601 | else | |
5602 | no_cache=1 | |
5603 | fi | |
5604 | ||
5605 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5606 | ||
5607 | fi; | |
5608 | ||
5609 | eval "$ac_cv_use_log" | |
5610 | if test "$no_cache" != 1; then | |
5611 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5612 | fi | |
5613 | ||
5614 | if test "$wxUSE_LOG" = yes; then | |
5615 | echo "$as_me:$LINENO: result: yes" >&5 | |
5616 | echo "${ECHO_T}yes" >&6 | |
5617 | else | |
5618 | echo "$as_me:$LINENO: result: no" >&5 | |
5619 | echo "${ECHO_T}no" >&6 | |
5620 | fi | |
5621 | ||
5622 | ||
5623 | enablestring= | |
5624 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5625 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5626 | no_cache=0 | |
5627 | # Check whether --enable-longlong or --disable-longlong was given. | |
5628 | if test "${enable_longlong+set}" = set; then | |
5629 | enableval="$enable_longlong" | |
5630 | ||
5631 | if test "$enableval" = yes; then | |
5632 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5633 | else | |
5634 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5635 | fi | |
5636 | ||
5637 | else | |
5638 | ||
5639 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5640 | if test "x$LINE" != x ; then | |
5641 | eval "DEFAULT_$LINE" | |
5642 | else | |
5643 | no_cache=1 | |
5644 | fi | |
5645 | ||
5646 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5647 | ||
5648 | fi; | |
5649 | ||
5650 | eval "$ac_cv_use_longlong" | |
5651 | if test "$no_cache" != 1; then | |
5652 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5653 | fi | |
5654 | ||
5655 | if test "$wxUSE_LONGLONG" = yes; then | |
5656 | echo "$as_me:$LINENO: result: yes" >&5 | |
5657 | echo "${ECHO_T}yes" >&6 | |
5658 | else | |
5659 | echo "$as_me:$LINENO: result: no" >&5 | |
5660 | echo "${ECHO_T}no" >&6 | |
5661 | fi | |
5662 | ||
5663 | ||
5664 | enablestring= | |
5665 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5666 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5667 | no_cache=0 | |
5668 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5669 | if test "${enable_mimetype+set}" = set; then | |
5670 | enableval="$enable_mimetype" | |
5671 | ||
5672 | if test "$enableval" = yes; then | |
5673 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5674 | else | |
5675 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5676 | fi | |
5677 | ||
5678 | else | |
5679 | ||
5680 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5681 | if test "x$LINE" != x ; then | |
5682 | eval "DEFAULT_$LINE" | |
5683 | else | |
5684 | no_cache=1 | |
5685 | fi | |
5686 | ||
5687 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5688 | ||
5689 | fi; | |
5690 | ||
5691 | eval "$ac_cv_use_mimetype" | |
5692 | if test "$no_cache" != 1; then | |
5693 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5694 | fi | |
5695 | ||
5696 | if test "$wxUSE_MIMETYPE" = yes; then | |
5697 | echo "$as_me:$LINENO: result: yes" >&5 | |
5698 | echo "${ECHO_T}yes" >&6 | |
5699 | else | |
5700 | echo "$as_me:$LINENO: result: no" >&5 | |
5701 | echo "${ECHO_T}no" >&6 | |
5702 | fi | |
5703 | ||
5704 | ||
5705 | enablestring= | |
5706 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5707 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5708 | no_cache=0 | |
5709 | # Check whether --enable-mslu or --disable-mslu was given. | |
5710 | if test "${enable_mslu+set}" = set; then | |
5711 | enableval="$enable_mslu" | |
5712 | ||
5713 | if test "$enableval" = yes; then | |
5714 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5715 | else | |
5716 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5717 | fi | |
5718 | ||
5719 | else | |
5720 | ||
5721 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5722 | if test "x$LINE" != x ; then | |
5723 | eval "DEFAULT_$LINE" | |
5724 | else | |
5725 | no_cache=1 | |
5726 | fi | |
5727 | ||
5728 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5729 | ||
5730 | fi; | |
5731 | ||
5732 | eval "$ac_cv_use_mslu" | |
5733 | if test "$no_cache" != 1; then | |
5734 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5735 | fi | |
5736 | ||
5737 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5738 | echo "$as_me:$LINENO: result: yes" >&5 | |
5739 | echo "${ECHO_T}yes" >&6 | |
5740 | else | |
5741 | echo "$as_me:$LINENO: result: no" >&5 | |
5742 | echo "${ECHO_T}no" >&6 | |
5743 | fi | |
5744 | ||
5745 | ||
5746 | enablestring= | |
5747 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5748 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5749 | no_cache=0 | |
5750 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5751 | if test "${enable_snglinst+set}" = set; then | |
5752 | enableval="$enable_snglinst" | |
5753 | ||
5754 | if test "$enableval" = yes; then | |
5755 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5756 | else | |
5757 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5758 | fi | |
5759 | ||
5760 | else | |
5761 | ||
5762 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5763 | if test "x$LINE" != x ; then | |
5764 | eval "DEFAULT_$LINE" | |
5765 | else | |
5766 | no_cache=1 | |
5767 | fi | |
5768 | ||
5769 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5770 | ||
5771 | fi; | |
5772 | ||
5773 | eval "$ac_cv_use_snglinst" | |
5774 | if test "$no_cache" != 1; then | |
5775 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5776 | fi | |
5777 | ||
5778 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5779 | echo "$as_me:$LINENO: result: yes" >&5 | |
5780 | echo "${ECHO_T}yes" >&6 | |
5781 | else | |
5782 | echo "$as_me:$LINENO: result: no" >&5 | |
5783 | echo "${ECHO_T}no" >&6 | |
5784 | fi | |
5785 | ||
5786 | ||
5787 | enablestring= | |
07158944 VZ |
5788 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5789 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5790 | no_cache=0 |
07158944 VZ |
5791 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5792 | if test "${enable_std_iostreams+set}" = set; then | |
5793 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5794 | |
5795 | if test "$enableval" = yes; then | |
07158944 | 5796 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5797 | else |
07158944 | 5798 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5799 | fi |
5800 | ||
5801 | else | |
5802 | ||
07158944 | 5803 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5804 | if test "x$LINE" != x ; then |
5805 | eval "DEFAULT_$LINE" | |
5806 | else | |
5807 | no_cache=1 | |
5808 | fi | |
5809 | ||
07158944 | 5810 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5811 | |
5812 | fi; | |
5813 | ||
07158944 | 5814 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5815 | if test "$no_cache" != 1; then |
07158944 | 5816 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5817 | fi |
5818 | ||
07158944 | 5819 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5820 | echo "$as_me:$LINENO: result: yes" >&5 |
5821 | echo "${ECHO_T}yes" >&6 | |
5822 | else | |
5823 | echo "$as_me:$LINENO: result: no" >&5 | |
5824 | echo "${ECHO_T}no" >&6 | |
5825 | fi | |
5826 | ||
5827 | ||
59746b65 MW |
5828 | enablestring= |
5829 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5830 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5831 | no_cache=0 | |
5832 | # Check whether --enable-std_string or --disable-std_string was given. | |
5833 | if test "${enable_std_string+set}" = set; then | |
5834 | enableval="$enable_std_string" | |
5835 | ||
5836 | if test "$enableval" = yes; then | |
5837 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5838 | else | |
5839 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5840 | fi | |
5841 | ||
5842 | else | |
5843 | ||
5844 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5845 | if test "x$LINE" != x ; then | |
5846 | eval "DEFAULT_$LINE" | |
5847 | else | |
5848 | no_cache=1 | |
5849 | fi | |
5850 | ||
5851 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5852 | ||
5853 | fi; | |
5854 | ||
5855 | eval "$ac_cv_use_std_string" | |
5856 | if test "$no_cache" != 1; then | |
5857 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5858 | fi | |
5859 | ||
5860 | if test "$wxUSE_STD_STRING" = yes; then | |
5861 | echo "$as_me:$LINENO: result: yes" >&5 | |
5862 | echo "${ECHO_T}yes" >&6 | |
5863 | else | |
5864 | echo "$as_me:$LINENO: result: no" >&5 | |
5865 | echo "${ECHO_T}no" >&6 | |
5866 | fi | |
5867 | ||
5868 | ||
a848cd7e | 5869 | enablestring= |
07158944 VZ |
5870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5871 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5872 | no_cache=0 |
07158944 VZ |
5873 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5874 | if test "${enable_stdpaths+set}" = set; then | |
5875 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5876 | |
5877 | if test "$enableval" = yes; then | |
07158944 | 5878 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5879 | else |
07158944 | 5880 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5881 | fi |
5882 | ||
5883 | else | |
5884 | ||
07158944 | 5885 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5886 | if test "x$LINE" != x ; then |
5887 | eval "DEFAULT_$LINE" | |
5888 | else | |
5889 | no_cache=1 | |
5890 | fi | |
5891 | ||
07158944 | 5892 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5893 | |
5894 | fi; | |
5895 | ||
07158944 | 5896 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5897 | if test "$no_cache" != 1; then |
07158944 | 5898 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5899 | fi |
5900 | ||
07158944 | 5901 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5902 | echo "$as_me:$LINENO: result: yes" >&5 |
5903 | echo "${ECHO_T}yes" >&6 | |
5904 | else | |
5905 | echo "$as_me:$LINENO: result: no" >&5 | |
5906 | echo "${ECHO_T}no" >&6 | |
5907 | fi | |
5908 | ||
5909 | ||
5910 | enablestring= | |
5911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5912 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5913 | no_cache=0 | |
5914 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5915 | if test "${enable_stopwatch+set}" = set; then | |
5916 | enableval="$enable_stopwatch" | |
5917 | ||
5918 | if test "$enableval" = yes; then | |
5919 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5920 | else | |
5921 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5922 | fi | |
5923 | ||
5924 | else | |
5925 | ||
5926 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5927 | if test "x$LINE" != x ; then | |
5928 | eval "DEFAULT_$LINE" | |
5929 | else | |
5930 | no_cache=1 | |
5931 | fi | |
5932 | ||
5933 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5934 | ||
5935 | fi; | |
5936 | ||
5937 | eval "$ac_cv_use_stopwatch" | |
5938 | if test "$no_cache" != 1; then | |
5939 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5940 | fi | |
5941 | ||
5942 | if test "$wxUSE_STOPWATCH" = yes; then | |
5943 | echo "$as_me:$LINENO: result: yes" >&5 | |
5944 | echo "${ECHO_T}yes" >&6 | |
5945 | else | |
5946 | echo "$as_me:$LINENO: result: no" >&5 | |
5947 | echo "${ECHO_T}no" >&6 | |
5948 | fi | |
5949 | ||
5950 | ||
07158944 VZ |
5951 | enablestring= |
5952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5953 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5954 | no_cache=0 | |
5955 | # Check whether --enable-streams or --disable-streams was given. | |
5956 | if test "${enable_streams+set}" = set; then | |
5957 | enableval="$enable_streams" | |
5958 | ||
5959 | if test "$enableval" = yes; then | |
5960 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5961 | else | |
5962 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5963 | fi | |
5964 | ||
5965 | else | |
5966 | ||
5967 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5968 | if test "x$LINE" != x ; then | |
5969 | eval "DEFAULT_$LINE" | |
5970 | else | |
5971 | no_cache=1 | |
5972 | fi | |
5973 | ||
5974 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5975 | ||
5976 | fi; | |
5977 | ||
5978 | eval "$ac_cv_use_streams" | |
5979 | if test "$no_cache" != 1; then | |
5980 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5981 | fi | |
5982 | ||
5983 | if test "$wxUSE_STREAMS" = yes; then | |
5984 | echo "$as_me:$LINENO: result: yes" >&5 | |
5985 | echo "${ECHO_T}yes" >&6 | |
5986 | else | |
5987 | echo "$as_me:$LINENO: result: no" >&5 | |
5988 | echo "${ECHO_T}no" >&6 | |
5989 | fi | |
5990 | ||
5991 | ||
a848cd7e SC |
5992 | enablestring= |
5993 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5994 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5995 | no_cache=0 | |
5996 | # Check whether --enable-system_options or --disable-system_options was given. | |
5997 | if test "${enable_system_options+set}" = set; then | |
5998 | enableval="$enable_system_options" | |
5999 | ||
6000 | if test "$enableval" = yes; then | |
6001 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
6002 | else | |
6003 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
6004 | fi | |
6005 | ||
6006 | else | |
6007 | ||
6008 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
6009 | if test "x$LINE" != x ; then | |
6010 | eval "DEFAULT_$LINE" | |
6011 | else | |
6012 | no_cache=1 | |
6013 | fi | |
6014 | ||
6015 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
6016 | ||
6017 | fi; | |
6018 | ||
6019 | eval "$ac_cv_use_system_options" | |
6020 | if test "$no_cache" != 1; then | |
6021 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
6022 | fi | |
6023 | ||
6024 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
6025 | echo "$as_me:$LINENO: result: yes" >&5 | |
6026 | echo "${ECHO_T}yes" >&6 | |
6027 | else | |
6028 | echo "$as_me:$LINENO: result: no" >&5 | |
6029 | echo "${ECHO_T}no" >&6 | |
6030 | fi | |
6031 | ||
6032 | ||
6033 | enablestring= | |
6034 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
6035 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
6036 | no_cache=0 | |
6037 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
6038 | if test "${enable_textbuf+set}" = set; then | |
6039 | enableval="$enable_textbuf" | |
6040 | ||
6041 | if test "$enableval" = yes; then | |
6042 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
6043 | else | |
6044 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
6045 | fi | |
6046 | ||
6047 | else | |
6048 | ||
6049 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
6050 | if test "x$LINE" != x ; then | |
6051 | eval "DEFAULT_$LINE" | |
6052 | else | |
6053 | no_cache=1 | |
6054 | fi | |
6055 | ||
6056 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
6057 | ||
6058 | fi; | |
6059 | ||
6060 | eval "$ac_cv_use_textbuf" | |
6061 | if test "$no_cache" != 1; then | |
6062 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
6063 | fi | |
6064 | ||
6065 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
6066 | echo "$as_me:$LINENO: result: yes" >&5 | |
6067 | echo "${ECHO_T}yes" >&6 | |
6068 | else | |
6069 | echo "$as_me:$LINENO: result: no" >&5 | |
6070 | echo "${ECHO_T}no" >&6 | |
6071 | fi | |
6072 | ||
6073 | ||
6074 | enablestring= | |
6075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
6076 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
6077 | no_cache=0 | |
6078 | # Check whether --enable-textfile or --disable-textfile was given. | |
6079 | if test "${enable_textfile+set}" = set; then | |
6080 | enableval="$enable_textfile" | |
6081 | ||
6082 | if test "$enableval" = yes; then | |
6083 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
6084 | else | |
6085 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
6086 | fi | |
6087 | ||
6088 | else | |
6089 | ||
6090 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
6091 | if test "x$LINE" != x ; then | |
6092 | eval "DEFAULT_$LINE" | |
6093 | else | |
6094 | no_cache=1 | |
6095 | fi | |
6096 | ||
6097 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
6098 | ||
6099 | fi; | |
6100 | ||
6101 | eval "$ac_cv_use_textfile" | |
6102 | if test "$no_cache" != 1; then | |
6103 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
6104 | fi | |
6105 | ||
6106 | if test "$wxUSE_TEXTFILE" = yes; then | |
6107 | echo "$as_me:$LINENO: result: yes" >&5 | |
6108 | echo "${ECHO_T}yes" >&6 | |
6109 | else | |
6110 | echo "$as_me:$LINENO: result: no" >&5 | |
6111 | echo "${ECHO_T}no" >&6 | |
6112 | fi | |
6113 | ||
6114 | ||
6115 | enablestring= | |
6116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
6117 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
6118 | no_cache=0 | |
6119 | # Check whether --enable-timer or --disable-timer was given. | |
6120 | if test "${enable_timer+set}" = set; then | |
6121 | enableval="$enable_timer" | |
6122 | ||
6123 | if test "$enableval" = yes; then | |
6124 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
6125 | else | |
6126 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6127 | fi | |
6128 | ||
6129 | else | |
6130 | ||
6131 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6132 | if test "x$LINE" != x ; then | |
6133 | eval "DEFAULT_$LINE" | |
6134 | else | |
6135 | no_cache=1 | |
6136 | fi | |
6137 | ||
6138 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6139 | ||
6140 | fi; | |
6141 | ||
6142 | eval "$ac_cv_use_timer" | |
6143 | if test "$no_cache" != 1; then | |
6144 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6145 | fi | |
6146 | ||
6147 | if test "$wxUSE_TIMER" = yes; then | |
6148 | echo "$as_me:$LINENO: result: yes" >&5 | |
6149 | echo "${ECHO_T}yes" >&6 | |
6150 | else | |
6151 | echo "$as_me:$LINENO: result: no" >&5 | |
6152 | echo "${ECHO_T}no" >&6 | |
6153 | fi | |
6154 | ||
6155 | ||
6156 | enablestring= | |
6157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6158 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6159 | no_cache=0 | |
6160 | # Check whether --enable-unicode or --disable-unicode was given. | |
6161 | if test "${enable_unicode+set}" = set; then | |
6162 | enableval="$enable_unicode" | |
6163 | ||
6164 | if test "$enableval" = yes; then | |
6165 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6166 | else | |
6167 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6168 | fi | |
6169 | ||
6170 | else | |
6171 | ||
6172 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6173 | if test "x$LINE" != x ; then | |
6174 | eval "DEFAULT_$LINE" | |
6175 | else | |
6176 | no_cache=1 | |
6177 | fi | |
6178 | ||
6179 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6180 | ||
6181 | fi; | |
6182 | ||
6183 | eval "$ac_cv_use_unicode" | |
6184 | if test "$no_cache" != 1; then | |
6185 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6186 | fi | |
6187 | ||
6188 | if test "$wxUSE_UNICODE" = yes; then | |
6189 | echo "$as_me:$LINENO: result: yes" >&5 | |
6190 | echo "${ECHO_T}yes" >&6 | |
6191 | else | |
6192 | echo "$as_me:$LINENO: result: no" >&5 | |
6193 | echo "${ECHO_T}no" >&6 | |
6194 | fi | |
6195 | ||
6196 | ||
6197 | enablestring= | |
6198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6199 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6200 | no_cache=0 | |
6201 | # Check whether --enable-sound or --disable-sound was given. | |
6202 | if test "${enable_sound+set}" = set; then | |
6203 | enableval="$enable_sound" | |
6204 | ||
6205 | if test "$enableval" = yes; then | |
6206 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6207 | else | |
6208 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6209 | fi | |
6210 | ||
6211 | else | |
6212 | ||
6213 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6214 | if test "x$LINE" != x ; then | |
6215 | eval "DEFAULT_$LINE" | |
6216 | else | |
6217 | no_cache=1 | |
6218 | fi | |
6219 | ||
6220 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6221 | ||
6222 | fi; | |
6223 | ||
6224 | eval "$ac_cv_use_sound" | |
6225 | if test "$no_cache" != 1; then | |
6226 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6227 | fi | |
6228 | ||
6229 | if test "$wxUSE_SOUND" = yes; then | |
6230 | echo "$as_me:$LINENO: result: yes" >&5 | |
6231 | echo "${ECHO_T}yes" >&6 | |
6232 | else | |
6233 | echo "$as_me:$LINENO: result: no" >&5 | |
6234 | echo "${ECHO_T}no" >&6 | |
6235 | fi | |
6236 | ||
6237 | ||
3b57de8b RL |
6238 | enablestring= |
6239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6240 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6241 | no_cache=0 | |
6242 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6243 | if test "${enable_mediactrl+set}" = set; then | |
6244 | enableval="$enable_mediactrl" | |
6245 | ||
6246 | if test "$enableval" = yes; then | |
6247 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6248 | else | |
6249 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6250 | fi | |
6251 | ||
6252 | else | |
6253 | ||
6254 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6255 | if test "x$LINE" != x ; then | |
6256 | eval "DEFAULT_$LINE" | |
6257 | else | |
6258 | no_cache=1 | |
6259 | fi | |
6260 | ||
6261 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6262 | ||
6263 | fi; | |
6264 | ||
6265 | eval "$ac_cv_use_mediactrl" | |
6266 | if test "$no_cache" != 1; then | |
6267 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6268 | fi | |
6269 | ||
6270 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6271 | echo "$as_me:$LINENO: result: yes" >&5 | |
6272 | echo "${ECHO_T}yes" >&6 | |
6273 | else | |
6274 | echo "$as_me:$LINENO: result: no" >&5 | |
6275 | echo "${ECHO_T}no" >&6 | |
6276 | fi | |
6277 | ||
6278 | ||
f10e38c4 VZ |
6279 | enablestring= |
6280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5 | |
6281 | echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6 | |
6282 | no_cache=0 | |
6283 | # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given. | |
6284 | if test "${enable_gstreamer8+set}" = set; then | |
6285 | enableval="$enable_gstreamer8" | |
6286 | ||
6287 | if test "$enableval" = yes; then | |
6288 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes' | |
6289 | else | |
6290 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no' | |
6291 | fi | |
6292 | ||
6293 | else | |
6294 | ||
6295 | LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}` | |
6296 | if test "x$LINE" != x ; then | |
6297 | eval "DEFAULT_$LINE" | |
6298 | else | |
6299 | no_cache=1 | |
6300 | fi | |
6301 | ||
6302 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8 | |
6303 | ||
6304 | fi; | |
6305 | ||
6306 | eval "$ac_cv_use_gstreamer8" | |
6307 | if test "$no_cache" != 1; then | |
6308 | echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp | |
6309 | fi | |
6310 | ||
6311 | if test "$wxUSE_GSTREAMER8" = yes; then | |
6312 | echo "$as_me:$LINENO: result: yes" >&5 | |
6313 | echo "${ECHO_T}yes" >&6 | |
6314 | else | |
6315 | echo "$as_me:$LINENO: result: no" >&5 | |
6316 | echo "${ECHO_T}no" >&6 | |
6317 | fi | |
6318 | ||
6319 | ||
a848cd7e | 6320 | enablestring= |
8b6682b9 JS |
6321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5 |
6322 | echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6 | |
a848cd7e | 6323 | no_cache=0 |
8b6682b9 JS |
6324 | # Check whether --enable-printfposparam or --disable-printfposparam was given. |
6325 | if test "${enable_printfposparam+set}" = set; then | |
6326 | enableval="$enable_printfposparam" | |
a848cd7e SC |
6327 | |
6328 | if test "$enableval" = yes; then | |
8b6682b9 | 6329 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes' |
a848cd7e | 6330 | else |
8b6682b9 | 6331 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no' |
a848cd7e SC |
6332 | fi |
6333 | ||
6334 | else | |
6335 | ||
8b6682b9 | 6336 | LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}` |
a848cd7e SC |
6337 | if test "x$LINE" != x ; then |
6338 | eval "DEFAULT_$LINE" | |
6339 | else | |
6340 | no_cache=1 | |
6341 | fi | |
6342 | ||
8b6682b9 | 6343 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS |
a848cd7e SC |
6344 | |
6345 | fi; | |
6346 | ||
8b6682b9 | 6347 | eval "$ac_cv_use_printfposparam" |
a848cd7e | 6348 | if test "$no_cache" != 1; then |
8b6682b9 | 6349 | echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
6350 | fi |
6351 | ||
8b6682b9 | 6352 | if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then |
a848cd7e SC |
6353 | echo "$as_me:$LINENO: result: yes" >&5 |
6354 | echo "${ECHO_T}yes" >&6 | |
6355 | else | |
6356 | echo "$as_me:$LINENO: result: no" >&5 | |
6357 | echo "${ECHO_T}no" >&6 | |
6358 | fi | |
6359 | ||
6360 | ||
6361 | enablestring= | |
6362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6363 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6364 | no_cache=0 | |
6365 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6366 | if test "${enable_zipstream+set}" = set; then | |
6367 | enableval="$enable_zipstream" | |
6368 | ||
6369 | if test "$enableval" = yes; then | |
6370 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6371 | else | |
6372 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6373 | fi | |
6374 | ||
6375 | else | |
6376 | ||
6377 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6378 | if test "x$LINE" != x ; then | |
6379 | eval "DEFAULT_$LINE" | |
6380 | else | |
6381 | no_cache=1 | |
6382 | fi | |
6383 | ||
6384 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6385 | ||
6386 | fi; | |
6387 | ||
6388 | eval "$ac_cv_use_zipstream" | |
6389 | if test "$no_cache" != 1; then | |
6390 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6391 | fi | |
6392 | ||
6393 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6394 | echo "$as_me:$LINENO: result: yes" >&5 | |
6395 | echo "${ECHO_T}yes" >&6 | |
6396 | else | |
6397 | echo "$as_me:$LINENO: result: no" >&5 | |
6398 | echo "${ECHO_T}no" >&6 | |
6399 | fi | |
6400 | ||
6401 | ||
a848cd7e SC |
6402 | |
6403 | enablestring= | |
6404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6405 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6406 | no_cache=0 | |
6407 | # Check whether --enable-url or --disable-url was given. | |
6408 | if test "${enable_url+set}" = set; then | |
6409 | enableval="$enable_url" | |
6410 | ||
6411 | if test "$enableval" = yes; then | |
6412 | ac_cv_use_url='wxUSE_URL=yes' | |
6413 | else | |
6414 | ac_cv_use_url='wxUSE_URL=no' | |
6415 | fi | |
6416 | ||
6417 | else | |
6418 | ||
6419 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6420 | if test "x$LINE" != x ; then | |
6421 | eval "DEFAULT_$LINE" | |
6422 | else | |
6423 | no_cache=1 | |
6424 | fi | |
6425 | ||
6426 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6427 | ||
6428 | fi; | |
6429 | ||
6430 | eval "$ac_cv_use_url" | |
6431 | if test "$no_cache" != 1; then | |
6432 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6433 | fi | |
6434 | ||
6435 | if test "$wxUSE_URL" = yes; then | |
6436 | echo "$as_me:$LINENO: result: yes" >&5 | |
6437 | echo "${ECHO_T}yes" >&6 | |
6438 | else | |
6439 | echo "$as_me:$LINENO: result: no" >&5 | |
6440 | echo "${ECHO_T}no" >&6 | |
6441 | fi | |
6442 | ||
6443 | ||
6444 | enablestring= | |
6445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6446 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6447 | no_cache=0 | |
6448 | # Check whether --enable-protocol or --disable-protocol was given. | |
6449 | if test "${enable_protocol+set}" = set; then | |
6450 | enableval="$enable_protocol" | |
6451 | ||
6452 | if test "$enableval" = yes; then | |
6453 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6454 | else | |
6455 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6456 | fi | |
6457 | ||
6458 | else | |
6459 | ||
6460 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6461 | if test "x$LINE" != x ; then | |
6462 | eval "DEFAULT_$LINE" | |
6463 | else | |
6464 | no_cache=1 | |
6465 | fi | |
6466 | ||
6467 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6468 | ||
6469 | fi; | |
6470 | ||
6471 | eval "$ac_cv_use_protocol" | |
6472 | if test "$no_cache" != 1; then | |
6473 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6474 | fi | |
6475 | ||
6476 | if test "$wxUSE_PROTOCOL" = yes; then | |
6477 | echo "$as_me:$LINENO: result: yes" >&5 | |
6478 | echo "${ECHO_T}yes" >&6 | |
6479 | else | |
6480 | echo "$as_me:$LINENO: result: no" >&5 | |
6481 | echo "${ECHO_T}no" >&6 | |
6482 | fi | |
6483 | ||
6484 | ||
6485 | enablestring= | |
6486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6487 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6488 | no_cache=0 | |
6489 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6490 | if test "${enable_protocol_http+set}" = set; then | |
6491 | enableval="$enable_protocol_http" | |
6492 | ||
6493 | if test "$enableval" = yes; then | |
6494 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6495 | else | |
6496 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6497 | fi | |
6498 | ||
6499 | else | |
6500 | ||
6501 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6502 | if test "x$LINE" != x ; then | |
6503 | eval "DEFAULT_$LINE" | |
6504 | else | |
6505 | no_cache=1 | |
6506 | fi | |
6507 | ||
6508 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6509 | ||
6510 | fi; | |
6511 | ||
6512 | eval "$ac_cv_use_protocol_http" | |
6513 | if test "$no_cache" != 1; then | |
6514 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6515 | fi | |
6516 | ||
6517 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6518 | echo "$as_me:$LINENO: result: yes" >&5 | |
6519 | echo "${ECHO_T}yes" >&6 | |
6520 | else | |
6521 | echo "$as_me:$LINENO: result: no" >&5 | |
6522 | echo "${ECHO_T}no" >&6 | |
6523 | fi | |
6524 | ||
6525 | ||
6526 | enablestring= | |
6527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6528 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6529 | no_cache=0 | |
6530 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6531 | if test "${enable_protocol_ftp+set}" = set; then | |
6532 | enableval="$enable_protocol_ftp" | |
6533 | ||
6534 | if test "$enableval" = yes; then | |
6535 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6536 | else | |
6537 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6538 | fi | |
6539 | ||
6540 | else | |
6541 | ||
6542 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6543 | if test "x$LINE" != x ; then | |
6544 | eval "DEFAULT_$LINE" | |
6545 | else | |
6546 | no_cache=1 | |
6547 | fi | |
6548 | ||
6549 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6550 | ||
6551 | fi; | |
6552 | ||
6553 | eval "$ac_cv_use_protocol_ftp" | |
6554 | if test "$no_cache" != 1; then | |
6555 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6556 | fi | |
6557 | ||
6558 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6559 | echo "$as_me:$LINENO: result: yes" >&5 | |
6560 | echo "${ECHO_T}yes" >&6 | |
6561 | else | |
6562 | echo "$as_me:$LINENO: result: no" >&5 | |
6563 | echo "${ECHO_T}no" >&6 | |
6564 | fi | |
6565 | ||
6566 | ||
6567 | enablestring= | |
6568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6569 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6570 | no_cache=0 | |
6571 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6572 | if test "${enable_protocol_file+set}" = set; then | |
6573 | enableval="$enable_protocol_file" | |
6574 | ||
6575 | if test "$enableval" = yes; then | |
6576 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6577 | else | |
6578 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6579 | fi | |
6580 | ||
6581 | else | |
6582 | ||
6583 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6584 | if test "x$LINE" != x ; then | |
6585 | eval "DEFAULT_$LINE" | |
6586 | else | |
6587 | no_cache=1 | |
6588 | fi | |
6589 | ||
6590 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6591 | ||
6592 | fi; | |
6593 | ||
6594 | eval "$ac_cv_use_protocol_file" | |
6595 | if test "$no_cache" != 1; then | |
6596 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6597 | fi | |
6598 | ||
6599 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6600 | echo "$as_me:$LINENO: result: yes" >&5 | |
6601 | echo "${ECHO_T}yes" >&6 | |
6602 | else | |
6603 | echo "$as_me:$LINENO: result: no" >&5 | |
6604 | echo "${ECHO_T}no" >&6 | |
6605 | fi | |
6606 | ||
6607 | ||
6608 | ||
6609 | ||
6610 | ||
6611 | enablestring= | |
6612 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6613 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6614 | no_cache=0 | |
6615 | # Check whether --enable-threads or --disable-threads was given. | |
6616 | if test "${enable_threads+set}" = set; then | |
6617 | enableval="$enable_threads" | |
6618 | ||
6619 | if test "$enableval" = yes; then | |
6620 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6621 | else | |
6622 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6623 | fi | |
6624 | ||
6625 | else | |
6626 | ||
6627 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6628 | if test "x$LINE" != x ; then | |
6629 | eval "DEFAULT_$LINE" | |
6630 | else | |
6631 | no_cache=1 | |
6632 | fi | |
6633 | ||
6634 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6635 | ||
6636 | fi; | |
6637 | ||
6638 | eval "$ac_cv_use_threads" | |
6639 | if test "$no_cache" != 1; then | |
6640 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6641 | fi | |
6642 | ||
6643 | if test "$wxUSE_THREADS" = yes; then | |
6644 | echo "$as_me:$LINENO: result: yes" >&5 | |
6645 | echo "${ECHO_T}yes" >&6 | |
6646 | else | |
6647 | echo "$as_me:$LINENO: result: no" >&5 | |
6648 | echo "${ECHO_T}no" >&6 | |
6649 | fi | |
6650 | ||
6651 | ||
6652 | if test "$wxUSE_GUI" = "yes"; then | |
6653 | ||
6654 | ||
6655 | ||
6656 | enablestring= | |
6657 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6658 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6659 | no_cache=0 | |
6660 | # Check whether --enable-docview or --disable-docview was given. | |
6661 | if test "${enable_docview+set}" = set; then | |
6662 | enableval="$enable_docview" | |
6663 | ||
6664 | if test "$enableval" = yes; then | |
6665 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6666 | else | |
6667 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6668 | fi | |
6669 | ||
6670 | else | |
6671 | ||
6672 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6673 | if test "x$LINE" != x ; then | |
6674 | eval "DEFAULT_$LINE" | |
6675 | else | |
6676 | no_cache=1 | |
6677 | fi | |
6678 | ||
6679 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6680 | ||
6681 | fi; | |
6682 | ||
6683 | eval "$ac_cv_use_docview" | |
6684 | if test "$no_cache" != 1; then | |
6685 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6686 | fi | |
6687 | ||
6688 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6689 | echo "$as_me:$LINENO: result: yes" >&5 | |
6690 | echo "${ECHO_T}yes" >&6 | |
6691 | else | |
6692 | echo "$as_me:$LINENO: result: no" >&5 | |
6693 | echo "${ECHO_T}no" >&6 | |
6694 | fi | |
6695 | ||
6696 | ||
6697 | enablestring= | |
6698 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6699 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6700 | no_cache=0 | |
6701 | # Check whether --enable-help or --disable-help was given. | |
6702 | if test "${enable_help+set}" = set; then | |
6703 | enableval="$enable_help" | |
6704 | ||
6705 | if test "$enableval" = yes; then | |
6706 | ac_cv_use_help='wxUSE_HELP=yes' | |
6707 | else | |
6708 | ac_cv_use_help='wxUSE_HELP=no' | |
6709 | fi | |
6710 | ||
6711 | else | |
6712 | ||
6713 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6714 | if test "x$LINE" != x ; then | |
6715 | eval "DEFAULT_$LINE" | |
6716 | else | |
6717 | no_cache=1 | |
6718 | fi | |
6719 | ||
6720 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6721 | ||
6722 | fi; | |
6723 | ||
6724 | eval "$ac_cv_use_help" | |
6725 | if test "$no_cache" != 1; then | |
6726 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6727 | fi | |
6728 | ||
6729 | if test "$wxUSE_HELP" = yes; then | |
6730 | echo "$as_me:$LINENO: result: yes" >&5 | |
6731 | echo "${ECHO_T}yes" >&6 | |
6732 | else | |
6733 | echo "$as_me:$LINENO: result: no" >&5 | |
6734 | echo "${ECHO_T}no" >&6 | |
6735 | fi | |
6736 | ||
6737 | ||
6738 | enablestring= | |
6739 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6740 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6741 | no_cache=0 | |
6742 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6743 | if test "${enable_mshtmlhelp+set}" = set; then | |
6744 | enableval="$enable_mshtmlhelp" | |
6745 | ||
6746 | if test "$enableval" = yes; then | |
6747 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6748 | else | |
6749 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6750 | fi | |
6751 | ||
6752 | else | |
6753 | ||
6754 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6755 | if test "x$LINE" != x ; then | |
6756 | eval "DEFAULT_$LINE" | |
6757 | else | |
6758 | no_cache=1 | |
6759 | fi | |
6760 | ||
6761 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6762 | ||
6763 | fi; | |
6764 | ||
6765 | eval "$ac_cv_use_mshtmlhelp" | |
6766 | if test "$no_cache" != 1; then | |
6767 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6768 | fi | |
6769 | ||
6770 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6771 | echo "$as_me:$LINENO: result: yes" >&5 | |
6772 | echo "${ECHO_T}yes" >&6 | |
6773 | else | |
6774 | echo "$as_me:$LINENO: result: no" >&5 | |
6775 | echo "${ECHO_T}no" >&6 | |
6776 | fi | |
6777 | ||
6778 | ||
6779 | enablestring= | |
6780 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6781 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6782 | no_cache=0 | |
6783 | # Check whether --enable-html or --disable-html was given. | |
6784 | if test "${enable_html+set}" = set; then | |
6785 | enableval="$enable_html" | |
6786 | ||
6787 | if test "$enableval" = yes; then | |
6788 | ac_cv_use_html='wxUSE_HTML=yes' | |
6789 | else | |
6790 | ac_cv_use_html='wxUSE_HTML=no' | |
6791 | fi | |
6792 | ||
6793 | else | |
6794 | ||
6795 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6796 | if test "x$LINE" != x ; then | |
6797 | eval "DEFAULT_$LINE" | |
6798 | else | |
6799 | no_cache=1 | |
6800 | fi | |
6801 | ||
6802 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6803 | ||
6804 | fi; | |
6805 | ||
6806 | eval "$ac_cv_use_html" | |
6807 | if test "$no_cache" != 1; then | |
6808 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6809 | fi | |
6810 | ||
6811 | if test "$wxUSE_HTML" = yes; then | |
6812 | echo "$as_me:$LINENO: result: yes" >&5 | |
6813 | echo "${ECHO_T}yes" >&6 | |
6814 | else | |
6815 | echo "$as_me:$LINENO: result: no" >&5 | |
6816 | echo "${ECHO_T}no" >&6 | |
6817 | fi | |
6818 | ||
6819 | ||
6820 | enablestring= | |
6821 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6822 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6823 | no_cache=0 | |
6824 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6825 | if test "${enable_htmlhelp+set}" = set; then | |
6826 | enableval="$enable_htmlhelp" | |
6827 | ||
6828 | if test "$enableval" = yes; then | |
6829 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6830 | else | |
6831 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6832 | fi | |
6833 | ||
6834 | else | |
6835 | ||
6836 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6837 | if test "x$LINE" != x ; then | |
6838 | eval "DEFAULT_$LINE" | |
6839 | else | |
6840 | no_cache=1 | |
6841 | fi | |
6842 | ||
6843 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6844 | ||
6845 | fi; | |
6846 | ||
6847 | eval "$ac_cv_use_htmlhelp" | |
6848 | if test "$no_cache" != 1; then | |
6849 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6850 | fi | |
6851 | ||
6852 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6853 | echo "$as_me:$LINENO: result: yes" >&5 | |
6854 | echo "${ECHO_T}yes" >&6 | |
6855 | else | |
6856 | echo "$as_me:$LINENO: result: no" >&5 | |
6857 | echo "${ECHO_T}no" >&6 | |
6858 | fi | |
6859 | ||
6860 | ||
9a8f0513 VS |
6861 | enablestring= |
6862 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6863 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6864 | no_cache=0 | |
6865 | # Check whether --enable-xrc or --disable-xrc was given. | |
6866 | if test "${enable_xrc+set}" = set; then | |
6867 | enableval="$enable_xrc" | |
6868 | ||
6869 | if test "$enableval" = yes; then | |
6870 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6871 | else | |
6872 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6873 | fi | |
6874 | ||
6875 | else | |
6876 | ||
6877 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6878 | if test "x$LINE" != x ; then | |
6879 | eval "DEFAULT_$LINE" | |
6880 | else | |
6881 | no_cache=1 | |
6882 | fi | |
6883 | ||
6884 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6885 | ||
6886 | fi; | |
6887 | ||
6888 | eval "$ac_cv_use_xrc" | |
6889 | if test "$no_cache" != 1; then | |
6890 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6891 | fi | |
6892 | ||
6893 | if test "$wxUSE_XRC" = yes; then | |
6894 | echo "$as_me:$LINENO: result: yes" >&5 | |
6895 | echo "${ECHO_T}yes" >&6 | |
6896 | else | |
6897 | echo "$as_me:$LINENO: result: no" >&5 | |
6898 | echo "${ECHO_T}no" >&6 | |
6899 | fi | |
6900 | ||
6901 | ||
3f60522a JS |
6902 | enablestring= |
6903 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5 | |
6904 | echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6 | |
6905 | no_cache=0 | |
6906 | # Check whether --enable-aui or --disable-aui was given. | |
6907 | if test "${enable_aui+set}" = set; then | |
6908 | enableval="$enable_aui" | |
6909 | ||
6910 | if test "$enableval" = yes; then | |
6911 | ac_cv_use_aui='wxUSE_AUI=yes' | |
6912 | else | |
6913 | ac_cv_use_aui='wxUSE_AUI=no' | |
6914 | fi | |
6915 | ||
6916 | else | |
6917 | ||
6918 | LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}` | |
6919 | if test "x$LINE" != x ; then | |
6920 | eval "DEFAULT_$LINE" | |
6921 | else | |
6922 | no_cache=1 | |
6923 | fi | |
6924 | ||
6925 | ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI | |
6926 | ||
6927 | fi; | |
6928 | ||
6929 | eval "$ac_cv_use_aui" | |
6930 | if test "$no_cache" != 1; then | |
6931 | echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp | |
6932 | fi | |
6933 | ||
6934 | if test "$wxUSE_AUI" = yes; then | |
6935 | echo "$as_me:$LINENO: result: yes" >&5 | |
6936 | echo "${ECHO_T}yes" >&6 | |
6937 | else | |
6938 | echo "$as_me:$LINENO: result: no" >&5 | |
6939 | echo "${ECHO_T}no" >&6 | |
6940 | fi | |
6941 | ||
6942 | ||
a848cd7e SC |
6943 | enablestring= |
6944 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6945 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6946 | no_cache=0 | |
6947 | # Check whether --enable-constraints or --disable-constraints was given. | |
6948 | if test "${enable_constraints+set}" = set; then | |
6949 | enableval="$enable_constraints" | |
6950 | ||
6951 | if test "$enableval" = yes; then | |
6952 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6953 | else | |
6954 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6955 | fi | |
6956 | ||
6957 | else | |
6958 | ||
6959 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6960 | if test "x$LINE" != x ; then | |
6961 | eval "DEFAULT_$LINE" | |
6962 | else | |
6963 | no_cache=1 | |
6964 | fi | |
6965 | ||
6966 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6967 | ||
6968 | fi; | |
6969 | ||
6970 | eval "$ac_cv_use_constraints" | |
6971 | if test "$no_cache" != 1; then | |
6972 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6973 | fi | |
6974 | ||
6975 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6976 | echo "$as_me:$LINENO: result: yes" >&5 | |
6977 | echo "${ECHO_T}yes" >&6 | |
6978 | else | |
6979 | echo "$as_me:$LINENO: result: no" >&5 | |
6980 | echo "${ECHO_T}no" >&6 | |
6981 | fi | |
6982 | ||
6983 | ||
6984 | enablestring= | |
6985 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6986 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6987 | no_cache=0 | |
6988 | # Check whether --enable-printarch or --disable-printarch was given. | |
6989 | if test "${enable_printarch+set}" = set; then | |
6990 | enableval="$enable_printarch" | |
6991 | ||
6992 | if test "$enableval" = yes; then | |
6993 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6994 | else | |
6995 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6996 | fi | |
6997 | ||
6998 | else | |
6999 | ||
7000 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
7001 | if test "x$LINE" != x ; then | |
7002 | eval "DEFAULT_$LINE" | |
7003 | else | |
7004 | no_cache=1 | |
7005 | fi | |
7006 | ||
7007 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
7008 | ||
7009 | fi; | |
7010 | ||
7011 | eval "$ac_cv_use_printarch" | |
7012 | if test "$no_cache" != 1; then | |
7013 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
7014 | fi | |
7015 | ||
7016 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
7017 | echo "$as_me:$LINENO: result: yes" >&5 | |
7018 | echo "${ECHO_T}yes" >&6 | |
7019 | else | |
7020 | echo "$as_me:$LINENO: result: no" >&5 | |
7021 | echo "${ECHO_T}no" >&6 | |
7022 | fi | |
7023 | ||
7024 | ||
7025 | enablestring= | |
7026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
7027 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
7028 | no_cache=0 | |
7029 | # Check whether --enable-mdi or --disable-mdi was given. | |
7030 | if test "${enable_mdi+set}" = set; then | |
7031 | enableval="$enable_mdi" | |
7032 | ||
7033 | if test "$enableval" = yes; then | |
8a7b1113 | 7034 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 7035 | else |
8a7b1113 | 7036 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
7037 | fi |
7038 | ||
7039 | else | |
7040 | ||
8a7b1113 | 7041 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
7042 | if test "x$LINE" != x ; then |
7043 | eval "DEFAULT_$LINE" | |
7044 | else | |
7045 | no_cache=1 | |
7046 | fi | |
7047 | ||
8a7b1113 | 7048 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
7049 | |
7050 | fi; | |
7051 | ||
7052 | eval "$ac_cv_use_mdi" | |
7053 | if test "$no_cache" != 1; then | |
7054 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
7055 | fi | |
7056 | ||
8a7b1113 VZ |
7057 | if test "$wxUSE_MDI" = yes; then |
7058 | echo "$as_me:$LINENO: result: yes" >&5 | |
7059 | echo "${ECHO_T}yes" >&6 | |
7060 | else | |
7061 | echo "$as_me:$LINENO: result: no" >&5 | |
7062 | echo "${ECHO_T}no" >&6 | |
7063 | fi | |
7064 | ||
7065 | ||
7066 | enablestring= | |
7067 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
7068 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
7069 | no_cache=0 | |
7070 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
7071 | if test "${enable_mdidoc+set}" = set; then | |
7072 | enableval="$enable_mdidoc" | |
7073 | ||
7074 | if test "$enableval" = yes; then | |
7075 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
7076 | else | |
7077 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
7078 | fi | |
7079 | ||
7080 | else | |
7081 | ||
7082 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
7083 | if test "x$LINE" != x ; then | |
7084 | eval "DEFAULT_$LINE" | |
7085 | else | |
7086 | no_cache=1 | |
7087 | fi | |
7088 | ||
7089 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
7090 | ||
7091 | fi; | |
7092 | ||
7093 | eval "$ac_cv_use_mdidoc" | |
7094 | if test "$no_cache" != 1; then | |
7095 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
7096 | fi | |
7097 | ||
a848cd7e SC |
7098 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
7099 | echo "$as_me:$LINENO: result: yes" >&5 | |
7100 | echo "${ECHO_T}yes" >&6 | |
7101 | else | |
7102 | echo "$as_me:$LINENO: result: no" >&5 | |
7103 | echo "${ECHO_T}no" >&6 | |
7104 | fi | |
7105 | ||
7106 | ||
7107 | enablestring= | |
7108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
7109 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
7110 | no_cache=0 | |
7111 | # Check whether --enable-loggui or --disable-loggui was given. | |
7112 | if test "${enable_loggui+set}" = set; then | |
7113 | enableval="$enable_loggui" | |
7114 | ||
7115 | if test "$enableval" = yes; then | |
7116 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
7117 | else | |
7118 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
7119 | fi | |
7120 | ||
7121 | else | |
7122 | ||
7123 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
7124 | if test "x$LINE" != x ; then | |
7125 | eval "DEFAULT_$LINE" | |
7126 | else | |
7127 | no_cache=1 | |
7128 | fi | |
7129 | ||
7130 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
7131 | ||
7132 | fi; | |
7133 | ||
7134 | eval "$ac_cv_use_loggui" | |
7135 | if test "$no_cache" != 1; then | |
7136 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
7137 | fi | |
7138 | ||
7139 | if test "$wxUSE_LOGGUI" = yes; then | |
7140 | echo "$as_me:$LINENO: result: yes" >&5 | |
7141 | echo "${ECHO_T}yes" >&6 | |
7142 | else | |
7143 | echo "$as_me:$LINENO: result: no" >&5 | |
7144 | echo "${ECHO_T}no" >&6 | |
7145 | fi | |
7146 | ||
7147 | ||
7148 | enablestring= | |
7149 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
7150 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
7151 | no_cache=0 | |
7152 | # Check whether --enable-logwin or --disable-logwin was given. | |
7153 | if test "${enable_logwin+set}" = set; then | |
7154 | enableval="$enable_logwin" | |
7155 | ||
7156 | if test "$enableval" = yes; then | |
7157 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
7158 | else | |
7159 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
7160 | fi | |
7161 | ||
7162 | else | |
7163 | ||
7164 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
7165 | if test "x$LINE" != x ; then | |
7166 | eval "DEFAULT_$LINE" | |
7167 | else | |
7168 | no_cache=1 | |
7169 | fi | |
7170 | ||
7171 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
7172 | ||
7173 | fi; | |
7174 | ||
7175 | eval "$ac_cv_use_logwin" | |
7176 | if test "$no_cache" != 1; then | |
7177 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
7178 | fi | |
7179 | ||
7180 | if test "$wxUSE_LOGWINDOW" = yes; then | |
7181 | echo "$as_me:$LINENO: result: yes" >&5 | |
7182 | echo "${ECHO_T}yes" >&6 | |
7183 | else | |
7184 | echo "$as_me:$LINENO: result: no" >&5 | |
7185 | echo "${ECHO_T}no" >&6 | |
7186 | fi | |
7187 | ||
7188 | ||
7189 | enablestring= | |
7190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
7191 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
7192 | no_cache=0 | |
7193 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
7194 | if test "${enable_logdialog+set}" = set; then | |
7195 | enableval="$enable_logdialog" | |
7196 | ||
7197 | if test "$enableval" = yes; then | |
7198 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
7199 | else | |
7200 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
7201 | fi | |
7202 | ||
7203 | else | |
7204 | ||
7205 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
7206 | if test "x$LINE" != x ; then | |
7207 | eval "DEFAULT_$LINE" | |
7208 | else | |
7209 | no_cache=1 | |
7210 | fi | |
7211 | ||
7212 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7213 | ||
7214 | fi; | |
7215 | ||
7216 | eval "$ac_cv_use_logdialog" | |
7217 | if test "$no_cache" != 1; then | |
7218 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7219 | fi | |
7220 | ||
7221 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7222 | echo "$as_me:$LINENO: result: yes" >&5 | |
7223 | echo "${ECHO_T}yes" >&6 | |
7224 | else | |
7225 | echo "$as_me:$LINENO: result: no" >&5 | |
7226 | echo "${ECHO_T}no" >&6 | |
7227 | fi | |
7228 | ||
7229 | ||
646b6ec1 VS |
7230 | enablestring= |
7231 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7232 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7233 | no_cache=0 | |
7234 | # Check whether --enable-webkit or --disable-webkit was given. | |
7235 | if test "${enable_webkit+set}" = set; then | |
7236 | enableval="$enable_webkit" | |
7237 | ||
7238 | if test "$enableval" = yes; then | |
7239 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7240 | else | |
7241 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7242 | fi | |
7243 | ||
7244 | else | |
7245 | ||
7246 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7247 | if test "x$LINE" != x ; then | |
7248 | eval "DEFAULT_$LINE" | |
7249 | else | |
7250 | no_cache=1 | |
7251 | fi | |
7252 | ||
7253 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7254 | ||
7255 | fi; | |
7256 | ||
7257 | eval "$ac_cv_use_webkit" | |
7258 | if test "$no_cache" != 1; then | |
7259 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7260 | fi | |
7261 | ||
7262 | if test "$wxUSE_WEBKIT" = yes; then | |
7263 | echo "$as_me:$LINENO: result: yes" >&5 | |
7264 | echo "${ECHO_T}yes" >&6 | |
7265 | else | |
7266 | echo "$as_me:$LINENO: result: no" >&5 | |
7267 | echo "${ECHO_T}no" >&6 | |
7268 | fi | |
7269 | ||
7270 | ||
91dea314 MW |
7271 | enablestring= |
7272 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7273 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7274 | no_cache=0 | |
7275 | # Check whether --enable-html or --disable-html was given. | |
7276 | if test "${enable_html+set}" = set; then | |
7277 | enableval="$enable_html" | |
7278 | ||
7279 | if test "$enableval" = yes; then | |
7280 | ac_cv_use_html='wxUSE_RICHTEXT=yes' | |
7281 | else | |
7282 | ac_cv_use_html='wxUSE_RICHTEXT=no' | |
7283 | fi | |
7284 | ||
7285 | else | |
7286 | ||
7287 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7288 | if test "x$LINE" != x ; then | |
7289 | eval "DEFAULT_$LINE" | |
7290 | else | |
7291 | no_cache=1 | |
7292 | fi | |
7293 | ||
7294 | ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT | |
7295 | ||
7296 | fi; | |
7297 | ||
7298 | eval "$ac_cv_use_html" | |
7299 | if test "$no_cache" != 1; then | |
7300 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7301 | fi | |
7302 | ||
7303 | if test "$wxUSE_RICHTEXT" = yes; then | |
7304 | echo "$as_me:$LINENO: result: yes" >&5 | |
7305 | echo "${ECHO_T}yes" >&6 | |
7306 | else | |
7307 | echo "$as_me:$LINENO: result: no" >&5 | |
7308 | echo "${ECHO_T}no" >&6 | |
7309 | fi | |
7310 | ||
7311 | ||
a848cd7e SC |
7312 | |
7313 | enablestring= | |
7314 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7315 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7316 | no_cache=0 | |
7317 | # Check whether --enable-postscript or --disable-postscript was given. | |
7318 | if test "${enable_postscript+set}" = set; then | |
7319 | enableval="$enable_postscript" | |
7320 | ||
7321 | if test "$enableval" = yes; then | |
7322 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7323 | else | |
7324 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7325 | fi | |
7326 | ||
7327 | else | |
7328 | ||
7329 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7330 | if test "x$LINE" != x ; then | |
7331 | eval "DEFAULT_$LINE" | |
7332 | else | |
7333 | no_cache=1 | |
7334 | fi | |
7335 | ||
7336 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7337 | ||
7338 | fi; | |
7339 | ||
7340 | eval "$ac_cv_use_postscript" | |
7341 | if test "$no_cache" != 1; then | |
7342 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7343 | fi | |
7344 | ||
7345 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7346 | echo "$as_me:$LINENO: result: yes" >&5 | |
7347 | echo "${ECHO_T}yes" >&6 | |
7348 | else | |
7349 | echo "$as_me:$LINENO: result: no" >&5 | |
7350 | echo "${ECHO_T}no" >&6 | |
7351 | fi | |
7352 | ||
7353 | ||
7354 | ||
7355 | ||
7356 | ||
7357 | enablestring= | |
7358 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7359 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7360 | no_cache=0 | |
7361 | # Check whether --enable-prologio or --disable-prologio was given. | |
7362 | if test "${enable_prologio+set}" = set; then | |
7363 | enableval="$enable_prologio" | |
7364 | ||
7365 | if test "$enableval" = yes; then | |
7366 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7367 | else | |
7368 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7369 | fi | |
7370 | ||
7371 | else | |
7372 | ||
7373 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7374 | if test "x$LINE" != x ; then | |
7375 | eval "DEFAULT_$LINE" | |
7376 | else | |
7377 | no_cache=1 | |
7378 | fi | |
7379 | ||
7380 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7381 | ||
7382 | fi; | |
7383 | ||
7384 | eval "$ac_cv_use_prologio" | |
7385 | if test "$no_cache" != 1; then | |
7386 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7387 | fi | |
7388 | ||
7389 | if test "$wxUSE_PROLOGIO" = yes; then | |
7390 | echo "$as_me:$LINENO: result: yes" >&5 | |
7391 | echo "${ECHO_T}yes" >&6 | |
7392 | else | |
7393 | echo "$as_me:$LINENO: result: no" >&5 | |
7394 | echo "${ECHO_T}no" >&6 | |
7395 | fi | |
7396 | ||
7397 | ||
7398 | enablestring= | |
7399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7400 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7401 | no_cache=0 | |
7402 | # Check whether --enable-resources or --disable-resources was given. | |
7403 | if test "${enable_resources+set}" = set; then | |
7404 | enableval="$enable_resources" | |
7405 | ||
7406 | if test "$enableval" = yes; then | |
7407 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7408 | else | |
7409 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7410 | fi | |
7411 | ||
7412 | else | |
7413 | ||
7414 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7415 | if test "x$LINE" != x ; then | |
7416 | eval "DEFAULT_$LINE" | |
7417 | else | |
7418 | no_cache=1 | |
7419 | fi | |
7420 | ||
7421 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7422 | ||
7423 | fi; | |
7424 | ||
7425 | eval "$ac_cv_use_resources" | |
7426 | if test "$no_cache" != 1; then | |
7427 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7428 | fi | |
7429 | ||
7430 | if test "$wxUSE_RESOURCES" = yes; then | |
7431 | echo "$as_me:$LINENO: result: yes" >&5 | |
7432 | echo "${ECHO_T}yes" >&6 | |
7433 | else | |
7434 | echo "$as_me:$LINENO: result: no" >&5 | |
7435 | echo "${ECHO_T}no" >&6 | |
7436 | fi | |
7437 | ||
7438 | ||
7439 | ||
7440 | ||
7441 | enablestring= | |
7442 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7443 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7444 | no_cache=0 | |
7445 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7446 | if test "${enable_clipboard+set}" = set; then | |
7447 | enableval="$enable_clipboard" | |
7448 | ||
7449 | if test "$enableval" = yes; then | |
7450 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7451 | else | |
7452 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7453 | fi | |
7454 | ||
7455 | else | |
7456 | ||
7457 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7458 | if test "x$LINE" != x ; then | |
7459 | eval "DEFAULT_$LINE" | |
7460 | else | |
7461 | no_cache=1 | |
7462 | fi | |
7463 | ||
7464 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7465 | ||
7466 | fi; | |
7467 | ||
7468 | eval "$ac_cv_use_clipboard" | |
7469 | if test "$no_cache" != 1; then | |
7470 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7471 | fi | |
7472 | ||
7473 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7474 | echo "$as_me:$LINENO: result: yes" >&5 | |
7475 | echo "${ECHO_T}yes" >&6 | |
7476 | else | |
7477 | echo "$as_me:$LINENO: result: no" >&5 | |
7478 | echo "${ECHO_T}no" >&6 | |
7479 | fi | |
7480 | ||
7481 | ||
7482 | enablestring= | |
7483 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7484 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7485 | no_cache=0 | |
7486 | # Check whether --enable-dnd or --disable-dnd was given. | |
7487 | if test "${enable_dnd+set}" = set; then | |
7488 | enableval="$enable_dnd" | |
7489 | ||
7490 | if test "$enableval" = yes; then | |
7491 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7492 | else | |
7493 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7494 | fi | |
7495 | ||
7496 | else | |
7497 | ||
7498 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7499 | if test "x$LINE" != x ; then | |
7500 | eval "DEFAULT_$LINE" | |
7501 | else | |
7502 | no_cache=1 | |
7503 | fi | |
7504 | ||
7505 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7506 | ||
7507 | fi; | |
7508 | ||
7509 | eval "$ac_cv_use_dnd" | |
7510 | if test "$no_cache" != 1; then | |
7511 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7512 | fi | |
7513 | ||
7514 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7515 | echo "$as_me:$LINENO: result: yes" >&5 | |
7516 | echo "${ECHO_T}yes" >&6 | |
7517 | else | |
7518 | echo "$as_me:$LINENO: result: no" >&5 | |
7519 | echo "${ECHO_T}no" >&6 | |
7520 | fi | |
7521 | ||
7522 | ||
7523 | enablestring= | |
7524 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7525 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7526 | no_cache=0 | |
7527 | # Check whether --enable-metafile or --disable-metafile was given. | |
7528 | if test "${enable_metafile+set}" = set; then | |
7529 | enableval="$enable_metafile" | |
7530 | ||
7531 | if test "$enableval" = yes; then | |
7532 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7533 | else | |
7534 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7535 | fi | |
7536 | ||
7537 | else | |
7538 | ||
7539 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7540 | if test "x$LINE" != x ; then | |
7541 | eval "DEFAULT_$LINE" | |
7542 | else | |
7543 | no_cache=1 | |
7544 | fi | |
7545 | ||
7546 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7547 | ||
7548 | fi; | |
7549 | ||
7550 | eval "$ac_cv_use_metafile" | |
7551 | if test "$no_cache" != 1; then | |
7552 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7553 | fi | |
7554 | ||
7555 | if test "$wxUSE_METAFILE" = yes; then | |
7556 | echo "$as_me:$LINENO: result: yes" >&5 | |
7557 | echo "${ECHO_T}yes" >&6 | |
7558 | else | |
7559 | echo "$as_me:$LINENO: result: no" >&5 | |
7560 | echo "${ECHO_T}no" >&6 | |
7561 | fi | |
7562 | ||
7563 | ||
7564 | ||
7565 | ||
7566 | ||
7567 | enablestring= | |
7568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7569 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7570 | no_cache=0 | |
7571 | # Check whether --enable-controls or --disable-controls was given. | |
7572 | if test "${enable_controls+set}" = set; then | |
7573 | enableval="$enable_controls" | |
7574 | ||
7575 | if test "$enableval" = yes; then | |
7576 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7577 | else | |
7578 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7579 | fi | |
7580 | ||
7581 | else | |
7582 | ||
7583 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7584 | if test "x$LINE" != x ; then | |
7585 | eval "DEFAULT_$LINE" | |
7586 | else | |
7587 | no_cache=1 | |
7588 | fi | |
7589 | ||
7590 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7591 | ||
7592 | fi; | |
7593 | ||
7594 | eval "$ac_cv_use_controls" | |
7595 | if test "$no_cache" != 1; then | |
7596 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7597 | fi | |
7598 | ||
7599 | if test "$wxUSE_CONTROLS" = yes; then | |
7600 | echo "$as_me:$LINENO: result: yes" >&5 | |
7601 | echo "${ECHO_T}yes" >&6 | |
7602 | else | |
7603 | echo "$as_me:$LINENO: result: no" >&5 | |
7604 | echo "${ECHO_T}no" >&6 | |
7605 | fi | |
7606 | ||
7607 | ||
7608 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7609 | DEFAULT_wxUSE_ACCEL=yes | |
7610 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7611 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7612 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7613 | DEFAULT_wxUSE_CARET=yes |
7614 | DEFAULT_wxUSE_COMBOBOX=yes | |
7615 | DEFAULT_wxUSE_CHECKBOX=yes | |
7616 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7617 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7618 | DEFAULT_wxUSE_CHOICEBOOK=yes |
e9263684 VZ |
7619 | DEFAULT_wxUSE_COLOURPICKERCTRL=yes |
7620 | DEFAULT_wxUSE_COMBOBOX=yes | |
da98e9be | 7621 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
e9263684 VZ |
7622 | DEFAULT_wxUSE_DISPLAY=yes |
7623 | DEFAULT_wxUSE_DIRPICKERCTRL=yes | |
7624 | DEFAULT_wxUSE_FILEPICKERCTRL=yes | |
7625 | DEFAULT_wxUSE_FONTPICKERCTRL=yes | |
a848cd7e SC |
7626 | DEFAULT_wxUSE_GAUGE=yes |
7627 | DEFAULT_wxUSE_GRID=yes | |
6954625c | 7628 | DEFAULT_wxUSE_HYPERLINKCTRL=yes |
20e34ecc | 7629 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7630 | DEFAULT_wxUSE_IMAGLIST=yes |
7631 | DEFAULT_wxUSE_LISTBOOK=yes | |
7632 | DEFAULT_wxUSE_LISTBOX=yes | |
7633 | DEFAULT_wxUSE_LISTCTRL=yes | |
7634 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7635 | DEFAULT_wxUSE_RADIOBOX=yes | |
7636 | DEFAULT_wxUSE_RADIOBTN=yes | |
7637 | DEFAULT_wxUSE_SASH=yes | |
7638 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7639 | DEFAULT_wxUSE_SLIDER=yes | |
7640 | DEFAULT_wxUSE_SPINBTN=yes | |
7641 | DEFAULT_wxUSE_SPINCTRL=yes | |
7642 | DEFAULT_wxUSE_SPLITTER=yes | |
7643 | DEFAULT_wxUSE_STATBMP=yes | |
7644 | DEFAULT_wxUSE_STATBOX=yes | |
7645 | DEFAULT_wxUSE_STATLINE=yes | |
7646 | DEFAULT_wxUSE_STATUSBAR=yes | |
7647 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7648 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7649 | DEFAULT_wxUSE_TOOLBAR=yes | |
7650 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7651 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7652 | DEFAULT_wxUSE_TOOLTIPS=yes | |
0093c2fc | 7653 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 7654 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
7655 | DEFAULT_wxUSE_TREECTRL=yes |
7656 | DEFAULT_wxUSE_POPUPWIN=yes | |
7657 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7658 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7659 | DEFAULT_wxUSE_ACCEL=no | |
7660 | DEFAULT_wxUSE_BMPBUTTON=no | |
7661 | DEFAULT_wxUSE_BUTTON=no | |
7662 | DEFAULT_wxUSE_CALCTRL=no | |
7663 | DEFAULT_wxUSE_CARET=no | |
7664 | DEFAULT_wxUSE_COMBOBOX=no | |
7665 | DEFAULT_wxUSE_CHECKBOX=no | |
7666 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7667 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7668 | DEFAULT_wxUSE_CHOICEBOOK=no |
e9263684 VZ |
7669 | DEFAULT_wxUSE_COLOURPICKERCTRL=no |
7670 | DEFAULT_wxUSE_COMBOBOX=no | |
da98e9be | 7671 | DEFAULT_wxUSE_DATEPICKCTRL=no |
e9263684 VZ |
7672 | DEFAULT_wxUSE_DISPLAY=no |
7673 | DEFAULT_wxUSE_DIRPICKERCTRL=no | |
7674 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
7675 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
a848cd7e SC |
7676 | DEFAULT_wxUSE_GAUGE=no |
7677 | DEFAULT_wxUSE_GRID=no | |
6954625c | 7678 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
20e34ecc | 7679 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7680 | DEFAULT_wxUSE_IMAGLIST=no |
7681 | DEFAULT_wxUSE_LISTBOOK=no | |
7682 | DEFAULT_wxUSE_LISTBOX=no | |
7683 | DEFAULT_wxUSE_LISTCTRL=no | |
7684 | DEFAULT_wxUSE_NOTEBOOK=no | |
7685 | DEFAULT_wxUSE_RADIOBOX=no | |
7686 | DEFAULT_wxUSE_RADIOBTN=no | |
7687 | DEFAULT_wxUSE_SASH=no | |
7688 | DEFAULT_wxUSE_SCROLLBAR=no | |
7689 | DEFAULT_wxUSE_SLIDER=no | |
7690 | DEFAULT_wxUSE_SPINBTN=no | |
7691 | DEFAULT_wxUSE_SPINCTRL=no | |
7692 | DEFAULT_wxUSE_SPLITTER=no | |
7693 | DEFAULT_wxUSE_STATBMP=no | |
7694 | DEFAULT_wxUSE_STATBOX=no | |
7695 | DEFAULT_wxUSE_STATLINE=no | |
7696 | DEFAULT_wxUSE_STATUSBAR=no | |
7697 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7698 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7699 | DEFAULT_wxUSE_TOOLBAR=no | |
7700 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7701 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7702 | DEFAULT_wxUSE_TOOLTIPS=no | |
0093c2fc | 7703 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 7704 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
7705 | DEFAULT_wxUSE_TREECTRL=no |
7706 | DEFAULT_wxUSE_POPUPWIN=no | |
7707 | DEFAULT_wxUSE_TIPWINDOW=no | |
7708 | fi | |
7709 | ||
a848cd7e SC |
7710 | |
7711 | enablestring= | |
7712 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7713 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7714 | no_cache=0 | |
7715 | # Check whether --enable-accel or --disable-accel was given. | |
7716 | if test "${enable_accel+set}" = set; then | |
7717 | enableval="$enable_accel" | |
7718 | ||
7719 | if test "$enableval" = yes; then | |
7720 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7721 | else | |
7722 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7723 | fi | |
7724 | ||
7725 | else | |
7726 | ||
7727 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7728 | if test "x$LINE" != x ; then | |
7729 | eval "DEFAULT_$LINE" | |
7730 | else | |
7731 | no_cache=1 | |
7732 | fi | |
7733 | ||
7734 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7735 | ||
7736 | fi; | |
7737 | ||
7738 | eval "$ac_cv_use_accel" | |
7739 | if test "$no_cache" != 1; then | |
7740 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7741 | fi | |
7742 | ||
7743 | if test "$wxUSE_ACCEL" = yes; then | |
7744 | echo "$as_me:$LINENO: result: yes" >&5 | |
7745 | echo "${ECHO_T}yes" >&6 | |
7746 | else | |
7747 | echo "$as_me:$LINENO: result: no" >&5 | |
7748 | echo "${ECHO_T}no" >&6 | |
7749 | fi | |
7750 | ||
7751 | ||
7752 | enablestring= | |
7753 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7754 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7755 | no_cache=0 | |
7756 | # Check whether --enable-button or --disable-button was given. | |
7757 | if test "${enable_button+set}" = set; then | |
7758 | enableval="$enable_button" | |
7759 | ||
7760 | if test "$enableval" = yes; then | |
7761 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7762 | else | |
7763 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7764 | fi | |
7765 | ||
7766 | else | |
7767 | ||
7768 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7769 | if test "x$LINE" != x ; then | |
7770 | eval "DEFAULT_$LINE" | |
7771 | else | |
7772 | no_cache=1 | |
7773 | fi | |
7774 | ||
7775 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7776 | ||
7777 | fi; | |
7778 | ||
7779 | eval "$ac_cv_use_button" | |
7780 | if test "$no_cache" != 1; then | |
7781 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7782 | fi | |
7783 | ||
7784 | if test "$wxUSE_BUTTON" = yes; then | |
7785 | echo "$as_me:$LINENO: result: yes" >&5 | |
7786 | echo "${ECHO_T}yes" >&6 | |
7787 | else | |
7788 | echo "$as_me:$LINENO: result: no" >&5 | |
7789 | echo "${ECHO_T}no" >&6 | |
7790 | fi | |
7791 | ||
7792 | ||
7793 | enablestring= | |
7794 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7795 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7796 | no_cache=0 | |
7797 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7798 | if test "${enable_bmpbutton+set}" = set; then | |
7799 | enableval="$enable_bmpbutton" | |
7800 | ||
7801 | if test "$enableval" = yes; then | |
7802 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7803 | else | |
7804 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7805 | fi | |
7806 | ||
7807 | else | |
7808 | ||
7809 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7810 | if test "x$LINE" != x ; then | |
7811 | eval "DEFAULT_$LINE" | |
7812 | else | |
7813 | no_cache=1 | |
7814 | fi | |
7815 | ||
7816 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7817 | ||
7818 | fi; | |
7819 | ||
7820 | eval "$ac_cv_use_bmpbutton" | |
7821 | if test "$no_cache" != 1; then | |
7822 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7823 | fi | |
7824 | ||
7825 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7826 | echo "$as_me:$LINENO: result: yes" >&5 | |
7827 | echo "${ECHO_T}yes" >&6 | |
7828 | else | |
7829 | echo "$as_me:$LINENO: result: no" >&5 | |
7830 | echo "${ECHO_T}no" >&6 | |
7831 | fi | |
7832 | ||
7833 | ||
7834 | enablestring= | |
7835 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7836 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7837 | no_cache=0 | |
7838 | # Check whether --enable-calendar or --disable-calendar was given. | |
7839 | if test "${enable_calendar+set}" = set; then | |
7840 | enableval="$enable_calendar" | |
7841 | ||
7842 | if test "$enableval" = yes; then | |
7843 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7844 | else | |
7845 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7846 | fi | |
7847 | ||
7848 | else | |
7849 | ||
7850 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7851 | if test "x$LINE" != x ; then | |
7852 | eval "DEFAULT_$LINE" | |
7853 | else | |
7854 | no_cache=1 | |
7855 | fi | |
7856 | ||
7857 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7858 | ||
7859 | fi; | |
7860 | ||
7861 | eval "$ac_cv_use_calendar" | |
7862 | if test "$no_cache" != 1; then | |
7863 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7864 | fi | |
7865 | ||
7866 | if test "$wxUSE_CALCTRL" = yes; then | |
7867 | echo "$as_me:$LINENO: result: yes" >&5 | |
7868 | echo "${ECHO_T}yes" >&6 | |
7869 | else | |
7870 | echo "$as_me:$LINENO: result: no" >&5 | |
7871 | echo "${ECHO_T}no" >&6 | |
7872 | fi | |
7873 | ||
7874 | ||
7875 | enablestring= | |
7876 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7877 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7878 | no_cache=0 | |
7879 | # Check whether --enable-caret or --disable-caret was given. | |
7880 | if test "${enable_caret+set}" = set; then | |
7881 | enableval="$enable_caret" | |
7882 | ||
7883 | if test "$enableval" = yes; then | |
7884 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7885 | else | |
7886 | ac_cv_use_caret='wxUSE_CARET=no' | |
7887 | fi | |
7888 | ||
7889 | else | |
7890 | ||
7891 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7892 | if test "x$LINE" != x ; then | |
7893 | eval "DEFAULT_$LINE" | |
7894 | else | |
7895 | no_cache=1 | |
7896 | fi | |
7897 | ||
7898 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7899 | ||
7900 | fi; | |
7901 | ||
7902 | eval "$ac_cv_use_caret" | |
7903 | if test "$no_cache" != 1; then | |
7904 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7905 | fi | |
7906 | ||
7907 | if test "$wxUSE_CARET" = yes; then | |
7908 | echo "$as_me:$LINENO: result: yes" >&5 | |
7909 | echo "${ECHO_T}yes" >&6 | |
7910 | else | |
7911 | echo "$as_me:$LINENO: result: no" >&5 | |
7912 | echo "${ECHO_T}no" >&6 | |
7913 | fi | |
7914 | ||
7915 | ||
7916 | enablestring= | |
7917 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7918 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7919 | no_cache=0 | |
7920 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7921 | if test "${enable_checkbox+set}" = set; then | |
7922 | enableval="$enable_checkbox" | |
7923 | ||
7924 | if test "$enableval" = yes; then | |
7925 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7926 | else | |
7927 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7928 | fi | |
7929 | ||
7930 | else | |
7931 | ||
7932 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7933 | if test "x$LINE" != x ; then | |
7934 | eval "DEFAULT_$LINE" | |
7935 | else | |
7936 | no_cache=1 | |
7937 | fi | |
7938 | ||
7939 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7940 | ||
7941 | fi; | |
7942 | ||
7943 | eval "$ac_cv_use_checkbox" | |
7944 | if test "$no_cache" != 1; then | |
7945 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7946 | fi | |
7947 | ||
7948 | if test "$wxUSE_CHECKBOX" = yes; then | |
7949 | echo "$as_me:$LINENO: result: yes" >&5 | |
7950 | echo "${ECHO_T}yes" >&6 | |
7951 | else | |
7952 | echo "$as_me:$LINENO: result: no" >&5 | |
7953 | echo "${ECHO_T}no" >&6 | |
7954 | fi | |
7955 | ||
7956 | ||
7957 | enablestring= | |
7958 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7959 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7960 | no_cache=0 | |
7961 | # Check whether --enable-checklst or --disable-checklst was given. | |
7962 | if test "${enable_checklst+set}" = set; then | |
7963 | enableval="$enable_checklst" | |
7964 | ||
7965 | if test "$enableval" = yes; then | |
7966 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7967 | else | |
7968 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7969 | fi | |
7970 | ||
7971 | else | |
7972 | ||
7973 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7974 | if test "x$LINE" != x ; then | |
7975 | eval "DEFAULT_$LINE" | |
7976 | else | |
7977 | no_cache=1 | |
7978 | fi | |
7979 | ||
7980 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7981 | ||
7982 | fi; | |
7983 | ||
7984 | eval "$ac_cv_use_checklst" | |
7985 | if test "$no_cache" != 1; then | |
7986 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7987 | fi | |
7988 | ||
7989 | if test "$wxUSE_CHECKLST" = yes; then | |
7990 | echo "$as_me:$LINENO: result: yes" >&5 | |
7991 | echo "${ECHO_T}yes" >&6 | |
7992 | else | |
7993 | echo "$as_me:$LINENO: result: no" >&5 | |
7994 | echo "${ECHO_T}no" >&6 | |
7995 | fi | |
7996 | ||
7997 | ||
7998 | enablestring= | |
7999 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
8000 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
8001 | no_cache=0 | |
8002 | # Check whether --enable-choice or --disable-choice was given. | |
8003 | if test "${enable_choice+set}" = set; then | |
8004 | enableval="$enable_choice" | |
8005 | ||
8006 | if test "$enableval" = yes; then | |
8007 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
8008 | else | |
8009 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
8010 | fi | |
8011 | ||
8012 | else | |
8013 | ||
8014 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
8015 | if test "x$LINE" != x ; then | |
8016 | eval "DEFAULT_$LINE" | |
8017 | else | |
8018 | no_cache=1 | |
8019 | fi | |
8020 | ||
8021 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
8022 | ||
8023 | fi; | |
8024 | ||
8025 | eval "$ac_cv_use_choice" | |
8026 | if test "$no_cache" != 1; then | |
8027 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
8028 | fi | |
8029 | ||
8030 | if test "$wxUSE_CHOICE" = yes; then | |
8031 | echo "$as_me:$LINENO: result: yes" >&5 | |
8032 | echo "${ECHO_T}yes" >&6 | |
8033 | else | |
8034 | echo "$as_me:$LINENO: result: no" >&5 | |
8035 | echo "${ECHO_T}no" >&6 | |
8036 | fi | |
8037 | ||
8038 | ||
92bbdbcd WS |
8039 | enablestring= |
8040 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
8041 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
8042 | no_cache=0 | |
8043 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
8044 | if test "${enable_choicebook+set}" = set; then | |
8045 | enableval="$enable_choicebook" | |
8046 | ||
8047 | if test "$enableval" = yes; then | |
8048 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
8049 | else | |
8050 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
8051 | fi | |
8052 | ||
8053 | else | |
8054 | ||
8055 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
8056 | if test "x$LINE" != x ; then | |
8057 | eval "DEFAULT_$LINE" | |
8058 | else | |
8059 | no_cache=1 | |
8060 | fi | |
8061 | ||
8062 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
8063 | ||
8064 | fi; | |
8065 | ||
8066 | eval "$ac_cv_use_choicebook" | |
8067 | if test "$no_cache" != 1; then | |
8068 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
8069 | fi | |
8070 | ||
8071 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
8072 | echo "$as_me:$LINENO: result: yes" >&5 | |
8073 | echo "${ECHO_T}yes" >&6 | |
8074 | else | |
8075 | echo "$as_me:$LINENO: result: no" >&5 | |
8076 | echo "${ECHO_T}no" >&6 | |
8077 | fi | |
8078 | ||
8079 | ||
e9263684 VZ |
8080 | enablestring= |
8081 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5 | |
8082 | echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6 | |
8083 | no_cache=0 | |
8084 | # Check whether --enable-colourpicker or --disable-colourpicker was given. | |
8085 | if test "${enable_colourpicker+set}" = set; then | |
8086 | enableval="$enable_colourpicker" | |
8087 | ||
8088 | if test "$enableval" = yes; then | |
8089 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes' | |
8090 | else | |
8091 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no' | |
8092 | fi | |
8093 | ||
8094 | else | |
8095 | ||
8096 | LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}` | |
8097 | if test "x$LINE" != x ; then | |
8098 | eval "DEFAULT_$LINE" | |
8099 | else | |
8100 | no_cache=1 | |
8101 | fi | |
8102 | ||
8103 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL | |
8104 | ||
8105 | fi; | |
8106 | ||
8107 | eval "$ac_cv_use_colourpicker" | |
8108 | if test "$no_cache" != 1; then | |
8109 | echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp | |
8110 | fi | |
8111 | ||
8112 | if test "$wxUSE_COLOURPICKERCTRL" = yes; then | |
8113 | echo "$as_me:$LINENO: result: yes" >&5 | |
8114 | echo "${ECHO_T}yes" >&6 | |
8115 | else | |
8116 | echo "$as_me:$LINENO: result: no" >&5 | |
8117 | echo "${ECHO_T}no" >&6 | |
8118 | fi | |
8119 | ||
8120 | ||
a848cd7e SC |
8121 | enablestring= |
8122 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
8123 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
8124 | no_cache=0 | |
8125 | # Check whether --enable-combobox or --disable-combobox was given. | |
8126 | if test "${enable_combobox+set}" = set; then | |
8127 | enableval="$enable_combobox" | |
8128 | ||
8129 | if test "$enableval" = yes; then | |
8130 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
8131 | else | |
8132 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
8133 | fi | |
8134 | ||
8135 | else | |
8136 | ||
8137 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
8138 | if test "x$LINE" != x ; then | |
8139 | eval "DEFAULT_$LINE" | |
8140 | else | |
8141 | no_cache=1 | |
8142 | fi | |
8143 | ||
8144 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
8145 | ||
8146 | fi; | |
8147 | ||
8148 | eval "$ac_cv_use_combobox" | |
8149 | if test "$no_cache" != 1; then | |
8150 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
8151 | fi | |
8152 | ||
8153 | if test "$wxUSE_COMBOBOX" = yes; then | |
8154 | echo "$as_me:$LINENO: result: yes" >&5 | |
8155 | echo "${ECHO_T}yes" >&6 | |
8156 | else | |
8157 | echo "$as_me:$LINENO: result: no" >&5 | |
8158 | echo "${ECHO_T}no" >&6 | |
8159 | fi | |
8160 | ||
8161 | ||
642bcba9 | 8162 | enablestring= |
a57d600f VZ |
8163 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5 |
8164 | echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6 | |
642bcba9 | 8165 | no_cache=0 |
a57d600f VZ |
8166 | # Check whether --enable-comboctrl or --disable-comboctrl was given. |
8167 | if test "${enable_comboctrl+set}" = set; then | |
8168 | enableval="$enable_comboctrl" | |
642bcba9 VZ |
8169 | |
8170 | if test "$enableval" = yes; then | |
a57d600f | 8171 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes' |
642bcba9 | 8172 | else |
a57d600f | 8173 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no' |
642bcba9 VZ |
8174 | fi |
8175 | ||
8176 | else | |
8177 | ||
a57d600f | 8178 | LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}` |
642bcba9 VZ |
8179 | if test "x$LINE" != x ; then |
8180 | eval "DEFAULT_$LINE" | |
8181 | else | |
8182 | no_cache=1 | |
8183 | fi | |
8184 | ||
a57d600f | 8185 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL |
642bcba9 VZ |
8186 | |
8187 | fi; | |
8188 | ||
a57d600f | 8189 | eval "$ac_cv_use_comboctrl" |
642bcba9 | 8190 | if test "$no_cache" != 1; then |
a57d600f | 8191 | echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
8192 | fi |
8193 | ||
a57d600f | 8194 | if test "$wxUSE_COMBOCTRL" = yes; then |
642bcba9 VZ |
8195 | echo "$as_me:$LINENO: result: yes" >&5 |
8196 | echo "${ECHO_T}yes" >&6 | |
8197 | else | |
8198 | echo "$as_me:$LINENO: result: no" >&5 | |
8199 | echo "${ECHO_T}no" >&6 | |
8200 | fi | |
8201 | ||
8202 | ||
da98e9be VZ |
8203 | enablestring= |
8204 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
8205 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
8206 | no_cache=0 | |
8207 | # Check whether --enable-datepick or --disable-datepick was given. | |
8208 | if test "${enable_datepick+set}" = set; then | |
8209 | enableval="$enable_datepick" | |
8210 | ||
8211 | if test "$enableval" = yes; then | |
8212 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
8213 | else | |
8214 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
8215 | fi | |
8216 | ||
8217 | else | |
8218 | ||
8219 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
8220 | if test "x$LINE" != x ; then | |
8221 | eval "DEFAULT_$LINE" | |
8222 | else | |
8223 | no_cache=1 | |
8224 | fi | |
8225 | ||
8226 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
8227 | ||
8228 | fi; | |
8229 | ||
8230 | eval "$ac_cv_use_datepick" | |
8231 | if test "$no_cache" != 1; then | |
8232 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
8233 | fi | |
8234 | ||
8235 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
8236 | echo "$as_me:$LINENO: result: yes" >&5 | |
8237 | echo "${ECHO_T}yes" >&6 | |
8238 | else | |
8239 | echo "$as_me:$LINENO: result: no" >&5 | |
8240 | echo "${ECHO_T}no" >&6 | |
8241 | fi | |
8242 | ||
8243 | ||
e9263684 VZ |
8244 | enablestring= |
8245 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5 | |
8246 | echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6 | |
8247 | no_cache=0 | |
8248 | # Check whether --enable-dirpicker or --disable-dirpicker was given. | |
8249 | if test "${enable_dirpicker+set}" = set; then | |
8250 | enableval="$enable_dirpicker" | |
8251 | ||
8252 | if test "$enableval" = yes; then | |
8253 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes' | |
8254 | else | |
8255 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no' | |
8256 | fi | |
8257 | ||
8258 | else | |
8259 | ||
8260 | LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}` | |
8261 | if test "x$LINE" != x ; then | |
8262 | eval "DEFAULT_$LINE" | |
8263 | else | |
8264 | no_cache=1 | |
8265 | fi | |
8266 | ||
8267 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL | |
8268 | ||
8269 | fi; | |
8270 | ||
8271 | eval "$ac_cv_use_dirpicker" | |
8272 | if test "$no_cache" != 1; then | |
8273 | echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp | |
8274 | fi | |
8275 | ||
8276 | if test "$wxUSE_DIRPICKERCTRL" = yes; then | |
8277 | echo "$as_me:$LINENO: result: yes" >&5 | |
8278 | echo "${ECHO_T}yes" >&6 | |
8279 | else | |
8280 | echo "$as_me:$LINENO: result: no" >&5 | |
8281 | echo "${ECHO_T}no" >&6 | |
8282 | fi | |
8283 | ||
8284 | ||
a848cd7e SC |
8285 | enablestring= |
8286 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
8287 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
8288 | no_cache=0 | |
8289 | # Check whether --enable-display or --disable-display was given. | |
8290 | if test "${enable_display+set}" = set; then | |
8291 | enableval="$enable_display" | |
8292 | ||
8293 | if test "$enableval" = yes; then | |
8294 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
8295 | else | |
8296 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
8297 | fi | |
8298 | ||
8299 | else | |
8300 | ||
8301 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
8302 | if test "x$LINE" != x ; then | |
8303 | eval "DEFAULT_$LINE" | |
8304 | else | |
8305 | no_cache=1 | |
8306 | fi | |
8307 | ||
8308 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
8309 | ||
8310 | fi; | |
8311 | ||
8312 | eval "$ac_cv_use_display" | |
8313 | if test "$no_cache" != 1; then | |
8314 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
8315 | fi | |
8316 | ||
8317 | if test "$wxUSE_DISPLAY" = yes; then | |
8318 | echo "$as_me:$LINENO: result: yes" >&5 | |
8319 | echo "${ECHO_T}yes" >&6 | |
8320 | else | |
8321 | echo "$as_me:$LINENO: result: no" >&5 | |
8322 | echo "${ECHO_T}no" >&6 | |
8323 | fi | |
8324 | ||
8325 | ||
e9263684 VZ |
8326 | enablestring= |
8327 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5 | |
8328 | echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6 | |
8329 | no_cache=0 | |
8330 | # Check whether --enable-filepicker or --disable-filepicker was given. | |
8331 | if test "${enable_filepicker+set}" = set; then | |
8332 | enableval="$enable_filepicker" | |
8333 | ||
8334 | if test "$enableval" = yes; then | |
8335 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes' | |
8336 | else | |
8337 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no' | |
8338 | fi | |
8339 | ||
8340 | else | |
8341 | ||
8342 | LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}` | |
8343 | if test "x$LINE" != x ; then | |
8344 | eval "DEFAULT_$LINE" | |
8345 | else | |
8346 | no_cache=1 | |
8347 | fi | |
8348 | ||
8349 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL | |
8350 | ||
8351 | fi; | |
8352 | ||
8353 | eval "$ac_cv_use_filepicker" | |
8354 | if test "$no_cache" != 1; then | |
8355 | echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp | |
8356 | fi | |
8357 | ||
8358 | if test "$wxUSE_FILEPICKERCTRL" = yes; then | |
8359 | echo "$as_me:$LINENO: result: yes" >&5 | |
8360 | echo "${ECHO_T}yes" >&6 | |
8361 | else | |
8362 | echo "$as_me:$LINENO: result: no" >&5 | |
8363 | echo "${ECHO_T}no" >&6 | |
8364 | fi | |
8365 | ||
8366 | ||
8367 | enablestring= | |
8368 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5 | |
8369 | echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6 | |
8370 | no_cache=0 | |
8371 | # Check whether --enable-fontpicker or --disable-fontpicker was given. | |
8372 | if test "${enable_fontpicker+set}" = set; then | |
8373 | enableval="$enable_fontpicker" | |
8374 | ||
8375 | if test "$enableval" = yes; then | |
8376 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes' | |
8377 | else | |
8378 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no' | |
8379 | fi | |
8380 | ||
8381 | else | |
8382 | ||
8383 | LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}` | |
8384 | if test "x$LINE" != x ; then | |
8385 | eval "DEFAULT_$LINE" | |
8386 | else | |
8387 | no_cache=1 | |
8388 | fi | |
8389 | ||
8390 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL | |
8391 | ||
8392 | fi; | |
8393 | ||
8394 | eval "$ac_cv_use_fontpicker" | |
8395 | if test "$no_cache" != 1; then | |
8396 | echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp | |
8397 | fi | |
8398 | ||
8399 | if test "$wxUSE_FONTPICKERCTRL" = yes; then | |
8400 | echo "$as_me:$LINENO: result: yes" >&5 | |
8401 | echo "${ECHO_T}yes" >&6 | |
8402 | else | |
8403 | echo "$as_me:$LINENO: result: no" >&5 | |
8404 | echo "${ECHO_T}no" >&6 | |
8405 | fi | |
8406 | ||
8407 | ||
a848cd7e SC |
8408 | enablestring= |
8409 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
8410 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
8411 | no_cache=0 | |
8412 | # Check whether --enable-gauge or --disable-gauge was given. | |
8413 | if test "${enable_gauge+set}" = set; then | |
8414 | enableval="$enable_gauge" | |
8415 | ||
8416 | if test "$enableval" = yes; then | |
8417 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
8418 | else | |
8419 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
8420 | fi | |
8421 | ||
8422 | else | |
8423 | ||
8424 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
8425 | if test "x$LINE" != x ; then | |
8426 | eval "DEFAULT_$LINE" | |
8427 | else | |
8428 | no_cache=1 | |
8429 | fi | |
8430 | ||
8431 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8432 | ||
8433 | fi; | |
8434 | ||
8435 | eval "$ac_cv_use_gauge" | |
8436 | if test "$no_cache" != 1; then | |
8437 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8438 | fi | |
8439 | ||
8440 | if test "$wxUSE_GAUGE" = yes; then | |
8441 | echo "$as_me:$LINENO: result: yes" >&5 | |
8442 | echo "${ECHO_T}yes" >&6 | |
8443 | else | |
8444 | echo "$as_me:$LINENO: result: no" >&5 | |
8445 | echo "${ECHO_T}no" >&6 | |
8446 | fi | |
8447 | ||
8448 | ||
8449 | enablestring= | |
8450 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8451 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8452 | no_cache=0 | |
8453 | # Check whether --enable-grid or --disable-grid was given. | |
8454 | if test "${enable_grid+set}" = set; then | |
8455 | enableval="$enable_grid" | |
8456 | ||
8457 | if test "$enableval" = yes; then | |
8458 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8459 | else | |
8460 | ac_cv_use_grid='wxUSE_GRID=no' | |
8461 | fi | |
8462 | ||
8463 | else | |
8464 | ||
8465 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8466 | if test "x$LINE" != x ; then | |
8467 | eval "DEFAULT_$LINE" | |
8468 | else | |
8469 | no_cache=1 | |
8470 | fi | |
8471 | ||
8472 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8473 | ||
8474 | fi; | |
8475 | ||
8476 | eval "$ac_cv_use_grid" | |
8477 | if test "$no_cache" != 1; then | |
8478 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8479 | fi | |
8480 | ||
8481 | if test "$wxUSE_GRID" = yes; then | |
8482 | echo "$as_me:$LINENO: result: yes" >&5 | |
8483 | echo "${ECHO_T}yes" >&6 | |
8484 | else | |
8485 | echo "$as_me:$LINENO: result: no" >&5 | |
8486 | echo "${ECHO_T}no" >&6 | |
8487 | fi | |
8488 | ||
8489 | ||
20e34ecc RR |
8490 | enablestring= |
8491 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8492 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8493 | no_cache=0 | |
8494 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8495 | if test "${enable_dataviewctrl+set}" = set; then | |
8496 | enableval="$enable_dataviewctrl" | |
8497 | ||
8498 | if test "$enableval" = yes; then | |
8499 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8500 | else | |
8501 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8502 | fi | |
8503 | ||
8504 | else | |
8505 | ||
8506 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8507 | if test "x$LINE" != x ; then | |
8508 | eval "DEFAULT_$LINE" | |
8509 | else | |
8510 | no_cache=1 | |
8511 | fi | |
8512 | ||
8513 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8514 | ||
8515 | fi; | |
8516 | ||
8517 | eval "$ac_cv_use_dataviewctrl" | |
8518 | if test "$no_cache" != 1; then | |
8519 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
8520 | fi | |
8521 | ||
8522 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
8523 | echo "$as_me:$LINENO: result: yes" >&5 | |
8524 | echo "${ECHO_T}yes" >&6 | |
8525 | else | |
8526 | echo "$as_me:$LINENO: result: no" >&5 | |
8527 | echo "${ECHO_T}no" >&6 | |
8528 | fi | |
8529 | ||
8530 | ||
6954625c VZ |
8531 | enablestring= |
8532 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5 | |
8533 | echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6 | |
8534 | no_cache=0 | |
8535 | # Check whether --enable-hyperlink or --disable-hyperlink was given. | |
8536 | if test "${enable_hyperlink+set}" = set; then | |
8537 | enableval="$enable_hyperlink" | |
8538 | ||
8539 | if test "$enableval" = yes; then | |
8540 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes' | |
8541 | else | |
8542 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no' | |
8543 | fi | |
8544 | ||
8545 | else | |
8546 | ||
8547 | LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}` | |
8548 | if test "x$LINE" != x ; then | |
8549 | eval "DEFAULT_$LINE" | |
8550 | else | |
8551 | no_cache=1 | |
8552 | fi | |
8553 | ||
8554 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL | |
8555 | ||
8556 | fi; | |
8557 | ||
8558 | eval "$ac_cv_use_hyperlink" | |
8559 | if test "$no_cache" != 1; then | |
8560 | echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp | |
8561 | fi | |
8562 | ||
8563 | if test "$wxUSE_HYPERLINKCTRL" = yes; then | |
8564 | echo "$as_me:$LINENO: result: yes" >&5 | |
8565 | echo "${ECHO_T}yes" >&6 | |
8566 | else | |
8567 | echo "$as_me:$LINENO: result: no" >&5 | |
8568 | echo "${ECHO_T}no" >&6 | |
8569 | fi | |
8570 | ||
8571 | ||
a848cd7e SC |
8572 | enablestring= |
8573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
8574 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
8575 | no_cache=0 | |
8576 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
8577 | if test "${enable_imaglist+set}" = set; then | |
8578 | enableval="$enable_imaglist" | |
8579 | ||
8580 | if test "$enableval" = yes; then | |
8581 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
8582 | else | |
8583 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
8584 | fi | |
8585 | ||
8586 | else | |
8587 | ||
8588 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
8589 | if test "x$LINE" != x ; then | |
8590 | eval "DEFAULT_$LINE" | |
8591 | else | |
8592 | no_cache=1 | |
8593 | fi | |
8594 | ||
8595 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8596 | ||
8597 | fi; | |
8598 | ||
8599 | eval "$ac_cv_use_imaglist" | |
8600 | if test "$no_cache" != 1; then | |
8601 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
8602 | fi | |
8603 | ||
8604 | if test "$wxUSE_IMAGLIST" = yes; then | |
8605 | echo "$as_me:$LINENO: result: yes" >&5 | |
8606 | echo "${ECHO_T}yes" >&6 | |
8607 | else | |
8608 | echo "$as_me:$LINENO: result: no" >&5 | |
8609 | echo "${ECHO_T}no" >&6 | |
8610 | fi | |
8611 | ||
8612 | ||
8613 | enablestring= | |
8614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8615 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8616 | no_cache=0 | |
8617 | # Check whether --enable-listbook or --disable-listbook was given. | |
8618 | if test "${enable_listbook+set}" = set; then | |
8619 | enableval="$enable_listbook" | |
8620 | ||
8621 | if test "$enableval" = yes; then | |
8622 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8623 | else | |
8624 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8625 | fi | |
8626 | ||
8627 | else | |
8628 | ||
8629 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8630 | if test "x$LINE" != x ; then | |
8631 | eval "DEFAULT_$LINE" | |
8632 | else | |
8633 | no_cache=1 | |
8634 | fi | |
8635 | ||
8636 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8637 | ||
8638 | fi; | |
8639 | ||
8640 | eval "$ac_cv_use_listbook" | |
8641 | if test "$no_cache" != 1; then | |
8642 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8643 | fi | |
8644 | ||
8645 | if test "$wxUSE_LISTBOOK" = yes; then | |
8646 | echo "$as_me:$LINENO: result: yes" >&5 | |
8647 | echo "${ECHO_T}yes" >&6 | |
8648 | else | |
8649 | echo "$as_me:$LINENO: result: no" >&5 | |
8650 | echo "${ECHO_T}no" >&6 | |
8651 | fi | |
8652 | ||
8653 | ||
8654 | enablestring= | |
8655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8656 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8657 | no_cache=0 | |
8658 | # Check whether --enable-listbox or --disable-listbox was given. | |
8659 | if test "${enable_listbox+set}" = set; then | |
8660 | enableval="$enable_listbox" | |
8661 | ||
8662 | if test "$enableval" = yes; then | |
8663 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8664 | else | |
8665 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8666 | fi | |
8667 | ||
8668 | else | |
8669 | ||
8670 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8671 | if test "x$LINE" != x ; then | |
8672 | eval "DEFAULT_$LINE" | |
8673 | else | |
8674 | no_cache=1 | |
8675 | fi | |
8676 | ||
8677 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8678 | ||
8679 | fi; | |
8680 | ||
8681 | eval "$ac_cv_use_listbox" | |
8682 | if test "$no_cache" != 1; then | |
8683 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8684 | fi | |
8685 | ||
8686 | if test "$wxUSE_LISTBOX" = yes; then | |
8687 | echo "$as_me:$LINENO: result: yes" >&5 | |
8688 | echo "${ECHO_T}yes" >&6 | |
8689 | else | |
8690 | echo "$as_me:$LINENO: result: no" >&5 | |
8691 | echo "${ECHO_T}no" >&6 | |
8692 | fi | |
8693 | ||
8694 | ||
8695 | enablestring= | |
8696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8697 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8698 | no_cache=0 | |
8699 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8700 | if test "${enable_listctrl+set}" = set; then | |
8701 | enableval="$enable_listctrl" | |
8702 | ||
8703 | if test "$enableval" = yes; then | |
8704 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8705 | else | |
8706 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8707 | fi | |
8708 | ||
8709 | else | |
8710 | ||
8711 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8712 | if test "x$LINE" != x ; then | |
8713 | eval "DEFAULT_$LINE" | |
8714 | else | |
8715 | no_cache=1 | |
8716 | fi | |
8717 | ||
8718 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8719 | ||
8720 | fi; | |
8721 | ||
8722 | eval "$ac_cv_use_listctrl" | |
8723 | if test "$no_cache" != 1; then | |
8724 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8725 | fi | |
8726 | ||
8727 | if test "$wxUSE_LISTCTRL" = yes; then | |
8728 | echo "$as_me:$LINENO: result: yes" >&5 | |
8729 | echo "${ECHO_T}yes" >&6 | |
8730 | else | |
8731 | echo "$as_me:$LINENO: result: no" >&5 | |
8732 | echo "${ECHO_T}no" >&6 | |
8733 | fi | |
8734 | ||
8735 | ||
8736 | enablestring= | |
8737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8738 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8739 | no_cache=0 | |
8740 | # Check whether --enable-notebook or --disable-notebook was given. | |
8741 | if test "${enable_notebook+set}" = set; then | |
8742 | enableval="$enable_notebook" | |
8743 | ||
8744 | if test "$enableval" = yes; then | |
8745 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8746 | else | |
8747 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8748 | fi | |
8749 | ||
8750 | else | |
8751 | ||
8752 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8753 | if test "x$LINE" != x ; then | |
8754 | eval "DEFAULT_$LINE" | |
8755 | else | |
8756 | no_cache=1 | |
8757 | fi | |
8758 | ||
8759 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8760 | ||
8761 | fi; | |
8762 | ||
8763 | eval "$ac_cv_use_notebook" | |
8764 | if test "$no_cache" != 1; then | |
8765 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8766 | fi | |
8767 | ||
8768 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8769 | echo "$as_me:$LINENO: result: yes" >&5 | |
8770 | echo "${ECHO_T}yes" >&6 | |
8771 | else | |
8772 | echo "$as_me:$LINENO: result: no" >&5 | |
8773 | echo "${ECHO_T}no" >&6 | |
8774 | fi | |
8775 | ||
8776 | ||
642bcba9 | 8777 | enablestring= |
a57d600f VZ |
8778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5 |
8779 | echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6 | |
642bcba9 | 8780 | no_cache=0 |
a57d600f VZ |
8781 | # Check whether --enable-odcombobox or --disable-odcombobox was given. |
8782 | if test "${enable_odcombobox+set}" = set; then | |
8783 | enableval="$enable_odcombobox" | |
642bcba9 VZ |
8784 | |
8785 | if test "$enableval" = yes; then | |
a57d600f | 8786 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes' |
642bcba9 | 8787 | else |
a57d600f | 8788 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no' |
642bcba9 VZ |
8789 | fi |
8790 | ||
8791 | else | |
8792 | ||
a57d600f | 8793 | LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}` |
642bcba9 VZ |
8794 | if test "x$LINE" != x ; then |
8795 | eval "DEFAULT_$LINE" | |
8796 | else | |
8797 | no_cache=1 | |
8798 | fi | |
8799 | ||
a57d600f | 8800 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX |
642bcba9 VZ |
8801 | |
8802 | fi; | |
8803 | ||
a57d600f | 8804 | eval "$ac_cv_use_odcombobox" |
642bcba9 | 8805 | if test "$no_cache" != 1; then |
a57d600f | 8806 | echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
8807 | fi |
8808 | ||
a57d600f | 8809 | if test "$wxUSE_ODCOMBOBOX" = yes; then |
642bcba9 VZ |
8810 | echo "$as_me:$LINENO: result: yes" >&5 |
8811 | echo "${ECHO_T}yes" >&6 | |
8812 | else | |
8813 | echo "$as_me:$LINENO: result: no" >&5 | |
8814 | echo "${ECHO_T}no" >&6 | |
8815 | fi | |
8816 | ||
8817 | ||
a848cd7e SC |
8818 | enablestring= |
8819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8820 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8821 | no_cache=0 | |
8822 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8823 | if test "${enable_radiobox+set}" = set; then | |
8824 | enableval="$enable_radiobox" | |
8825 | ||
8826 | if test "$enableval" = yes; then | |
8827 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8828 | else | |
8829 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8830 | fi | |
8831 | ||
8832 | else | |
8833 | ||
8834 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8835 | if test "x$LINE" != x ; then | |
8836 | eval "DEFAULT_$LINE" | |
8837 | else | |
8838 | no_cache=1 | |
8839 | fi | |
8840 | ||
8841 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8842 | ||
8843 | fi; | |
8844 | ||
8845 | eval "$ac_cv_use_radiobox" | |
8846 | if test "$no_cache" != 1; then | |
8847 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8848 | fi | |
8849 | ||
8850 | if test "$wxUSE_RADIOBOX" = yes; then | |
8851 | echo "$as_me:$LINENO: result: yes" >&5 | |
8852 | echo "${ECHO_T}yes" >&6 | |
8853 | else | |
8854 | echo "$as_me:$LINENO: result: no" >&5 | |
8855 | echo "${ECHO_T}no" >&6 | |
8856 | fi | |
8857 | ||
8858 | ||
8859 | enablestring= | |
8860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8861 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8862 | no_cache=0 | |
8863 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8864 | if test "${enable_radiobtn+set}" = set; then | |
8865 | enableval="$enable_radiobtn" | |
8866 | ||
8867 | if test "$enableval" = yes; then | |
8868 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8869 | else | |
8870 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8871 | fi | |
8872 | ||
8873 | else | |
8874 | ||
8875 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8876 | if test "x$LINE" != x ; then | |
8877 | eval "DEFAULT_$LINE" | |
8878 | else | |
8879 | no_cache=1 | |
8880 | fi | |
8881 | ||
8882 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8883 | ||
8884 | fi; | |
8885 | ||
8886 | eval "$ac_cv_use_radiobtn" | |
8887 | if test "$no_cache" != 1; then | |
8888 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8889 | fi | |
8890 | ||
8891 | if test "$wxUSE_RADIOBTN" = yes; then | |
8892 | echo "$as_me:$LINENO: result: yes" >&5 | |
8893 | echo "${ECHO_T}yes" >&6 | |
8894 | else | |
8895 | echo "$as_me:$LINENO: result: no" >&5 | |
8896 | echo "${ECHO_T}no" >&6 | |
8897 | fi | |
8898 | ||
8899 | ||
8900 | enablestring= | |
8901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8902 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8903 | no_cache=0 | |
8904 | # Check whether --enable-sash or --disable-sash was given. | |
8905 | if test "${enable_sash+set}" = set; then | |
8906 | enableval="$enable_sash" | |
8907 | ||
8908 | if test "$enableval" = yes; then | |
8909 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8910 | else | |
8911 | ac_cv_use_sash='wxUSE_SASH=no' | |
8912 | fi | |
8913 | ||
8914 | else | |
8915 | ||
8916 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8917 | if test "x$LINE" != x ; then | |
8918 | eval "DEFAULT_$LINE" | |
8919 | else | |
8920 | no_cache=1 | |
8921 | fi | |
8922 | ||
8923 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8924 | ||
8925 | fi; | |
8926 | ||
8927 | eval "$ac_cv_use_sash" | |
8928 | if test "$no_cache" != 1; then | |
8929 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8930 | fi | |
8931 | ||
8932 | if test "$wxUSE_SASH" = yes; then | |
8933 | echo "$as_me:$LINENO: result: yes" >&5 | |
8934 | echo "${ECHO_T}yes" >&6 | |
8935 | else | |
8936 | echo "$as_me:$LINENO: result: no" >&5 | |
8937 | echo "${ECHO_T}no" >&6 | |
8938 | fi | |
8939 | ||
8940 | ||
8941 | enablestring= | |
8942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8943 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8944 | no_cache=0 | |
8945 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8946 | if test "${enable_scrollbar+set}" = set; then | |
8947 | enableval="$enable_scrollbar" | |
8948 | ||
8949 | if test "$enableval" = yes; then | |
8950 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8951 | else | |
8952 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8953 | fi | |
8954 | ||
8955 | else | |
8956 | ||
8957 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8958 | if test "x$LINE" != x ; then | |
8959 | eval "DEFAULT_$LINE" | |
8960 | else | |
8961 | no_cache=1 | |
8962 | fi | |
8963 | ||
8964 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8965 | ||
8966 | fi; | |
8967 | ||
8968 | eval "$ac_cv_use_scrollbar" | |
8969 | if test "$no_cache" != 1; then | |
8970 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8971 | fi | |
8972 | ||
8973 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8974 | echo "$as_me:$LINENO: result: yes" >&5 | |
8975 | echo "${ECHO_T}yes" >&6 | |
8976 | else | |
8977 | echo "$as_me:$LINENO: result: no" >&5 | |
8978 | echo "${ECHO_T}no" >&6 | |
8979 | fi | |
8980 | ||
8981 | ||
8982 | enablestring= | |
8983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8984 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8985 | no_cache=0 | |
8986 | # Check whether --enable-slider or --disable-slider was given. | |
8987 | if test "${enable_slider+set}" = set; then | |
8988 | enableval="$enable_slider" | |
8989 | ||
8990 | if test "$enableval" = yes; then | |
8991 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8992 | else | |
8993 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8994 | fi | |
8995 | ||
8996 | else | |
8997 | ||
8998 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8999 | if test "x$LINE" != x ; then | |
9000 | eval "DEFAULT_$LINE" | |
9001 | else | |
9002 | no_cache=1 | |
9003 | fi | |
9004 | ||
9005 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
9006 | ||
9007 | fi; | |
9008 | ||
9009 | eval "$ac_cv_use_slider" | |
9010 | if test "$no_cache" != 1; then | |
9011 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
9012 | fi | |
9013 | ||
9014 | if test "$wxUSE_SLIDER" = yes; then | |
9015 | echo "$as_me:$LINENO: result: yes" >&5 | |
9016 | echo "${ECHO_T}yes" >&6 | |
9017 | else | |
9018 | echo "$as_me:$LINENO: result: no" >&5 | |
9019 | echo "${ECHO_T}no" >&6 | |
9020 | fi | |
9021 | ||
9022 | ||
9023 | enablestring= | |
9024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
9025 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
9026 | no_cache=0 | |
9027 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
9028 | if test "${enable_spinbtn+set}" = set; then | |
9029 | enableval="$enable_spinbtn" | |
9030 | ||
9031 | if test "$enableval" = yes; then | |
9032 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
9033 | else | |
9034 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
9035 | fi | |
9036 | ||
9037 | else | |
9038 | ||
9039 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
9040 | if test "x$LINE" != x ; then | |
9041 | eval "DEFAULT_$LINE" | |
9042 | else | |
9043 | no_cache=1 | |
9044 | fi | |
9045 | ||
9046 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
9047 | ||
9048 | fi; | |
9049 | ||
9050 | eval "$ac_cv_use_spinbtn" | |
9051 | if test "$no_cache" != 1; then | |
9052 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
9053 | fi | |
9054 | ||
9055 | if test "$wxUSE_SPINBTN" = yes; then | |
9056 | echo "$as_me:$LINENO: result: yes" >&5 | |
9057 | echo "${ECHO_T}yes" >&6 | |
9058 | else | |
9059 | echo "$as_me:$LINENO: result: no" >&5 | |
9060 | echo "${ECHO_T}no" >&6 | |
9061 | fi | |
9062 | ||
9063 | ||
9064 | enablestring= | |
9065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
9066 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
9067 | no_cache=0 | |
9068 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
9069 | if test "${enable_spinctrl+set}" = set; then | |
9070 | enableval="$enable_spinctrl" | |
9071 | ||
9072 | if test "$enableval" = yes; then | |
9073 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
9074 | else | |
9075 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
9076 | fi | |
9077 | ||
9078 | else | |
9079 | ||
9080 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
9081 | if test "x$LINE" != x ; then | |
9082 | eval "DEFAULT_$LINE" | |
9083 | else | |
9084 | no_cache=1 | |
9085 | fi | |
9086 | ||
9087 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
9088 | ||
9089 | fi; | |
9090 | ||
9091 | eval "$ac_cv_use_spinctrl" | |
9092 | if test "$no_cache" != 1; then | |
9093 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
9094 | fi | |
9095 | ||
9096 | if test "$wxUSE_SPINCTRL" = yes; then | |
9097 | echo "$as_me:$LINENO: result: yes" >&5 | |
9098 | echo "${ECHO_T}yes" >&6 | |
9099 | else | |
9100 | echo "$as_me:$LINENO: result: no" >&5 | |
9101 | echo "${ECHO_T}no" >&6 | |
9102 | fi | |
9103 | ||
9104 | ||
9105 | enablestring= | |
9106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
9107 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
9108 | no_cache=0 | |
9109 | # Check whether --enable-splitter or --disable-splitter was given. | |
9110 | if test "${enable_splitter+set}" = set; then | |
9111 | enableval="$enable_splitter" | |
9112 | ||
9113 | if test "$enableval" = yes; then | |
9114 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
9115 | else | |
9116 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
9117 | fi | |
9118 | ||
9119 | else | |
9120 | ||
9121 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
9122 | if test "x$LINE" != x ; then | |
9123 | eval "DEFAULT_$LINE" | |
9124 | else | |
9125 | no_cache=1 | |
9126 | fi | |
9127 | ||
9128 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
9129 | ||
9130 | fi; | |
9131 | ||
9132 | eval "$ac_cv_use_splitter" | |
9133 | if test "$no_cache" != 1; then | |
9134 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
9135 | fi | |
9136 | ||
9137 | if test "$wxUSE_SPLITTER" = yes; then | |
9138 | echo "$as_me:$LINENO: result: yes" >&5 | |
9139 | echo "${ECHO_T}yes" >&6 | |
9140 | else | |
9141 | echo "$as_me:$LINENO: result: no" >&5 | |
9142 | echo "${ECHO_T}no" >&6 | |
9143 | fi | |
9144 | ||
9145 | ||
9146 | enablestring= | |
9147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
9148 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
9149 | no_cache=0 | |
9150 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
9151 | if test "${enable_statbmp+set}" = set; then | |
9152 | enableval="$enable_statbmp" | |
9153 | ||
9154 | if test "$enableval" = yes; then | |
9155 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
9156 | else | |
9157 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
9158 | fi | |
9159 | ||
9160 | else | |
9161 | ||
9162 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
9163 | if test "x$LINE" != x ; then | |
9164 | eval "DEFAULT_$LINE" | |
9165 | else | |
9166 | no_cache=1 | |
9167 | fi | |
9168 | ||
9169 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
9170 | ||
9171 | fi; | |
9172 | ||
9173 | eval "$ac_cv_use_statbmp" | |
9174 | if test "$no_cache" != 1; then | |
9175 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
9176 | fi | |
9177 | ||
9178 | if test "$wxUSE_STATBMP" = yes; then | |
9179 | echo "$as_me:$LINENO: result: yes" >&5 | |
9180 | echo "${ECHO_T}yes" >&6 | |
9181 | else | |
9182 | echo "$as_me:$LINENO: result: no" >&5 | |
9183 | echo "${ECHO_T}no" >&6 | |
9184 | fi | |
9185 | ||
9186 | ||
9187 | enablestring= | |
9188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
9189 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
9190 | no_cache=0 | |
9191 | # Check whether --enable-statbox or --disable-statbox was given. | |
9192 | if test "${enable_statbox+set}" = set; then | |
9193 | enableval="$enable_statbox" | |
9194 | ||
9195 | if test "$enableval" = yes; then | |
9196 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
9197 | else | |
9198 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
9199 | fi | |
9200 | ||
9201 | else | |
9202 | ||
9203 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
9204 | if test "x$LINE" != x ; then | |
9205 | eval "DEFAULT_$LINE" | |
9206 | else | |
9207 | no_cache=1 | |
9208 | fi | |
9209 | ||
9210 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
9211 | ||
9212 | fi; | |
9213 | ||
9214 | eval "$ac_cv_use_statbox" | |
9215 | if test "$no_cache" != 1; then | |
9216 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
9217 | fi | |
9218 | ||
9219 | if test "$wxUSE_STATBOX" = yes; then | |
9220 | echo "$as_me:$LINENO: result: yes" >&5 | |
9221 | echo "${ECHO_T}yes" >&6 | |
9222 | else | |
9223 | echo "$as_me:$LINENO: result: no" >&5 | |
9224 | echo "${ECHO_T}no" >&6 | |
9225 | fi | |
9226 | ||
9227 | ||
9228 | enablestring= | |
9229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
9230 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
9231 | no_cache=0 | |
9232 | # Check whether --enable-statline or --disable-statline was given. | |
9233 | if test "${enable_statline+set}" = set; then | |
9234 | enableval="$enable_statline" | |
9235 | ||
9236 | if test "$enableval" = yes; then | |
9237 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
9238 | else | |
9239 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
9240 | fi | |
9241 | ||
9242 | else | |
9243 | ||
9244 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
9245 | if test "x$LINE" != x ; then | |
9246 | eval "DEFAULT_$LINE" | |
9247 | else | |
9248 | no_cache=1 | |
9249 | fi | |
9250 | ||
9251 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
9252 | ||
9253 | fi; | |
9254 | ||
9255 | eval "$ac_cv_use_statline" | |
9256 | if test "$no_cache" != 1; then | |
9257 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
9258 | fi | |
9259 | ||
9260 | if test "$wxUSE_STATLINE" = yes; then | |
9261 | echo "$as_me:$LINENO: result: yes" >&5 | |
9262 | echo "${ECHO_T}yes" >&6 | |
9263 | else | |
9264 | echo "$as_me:$LINENO: result: no" >&5 | |
9265 | echo "${ECHO_T}no" >&6 | |
9266 | fi | |
9267 | ||
9268 | ||
9269 | enablestring= | |
9270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
9271 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
9272 | no_cache=0 | |
9273 | # Check whether --enable-stattext or --disable-stattext was given. | |
9274 | if test "${enable_stattext+set}" = set; then | |
9275 | enableval="$enable_stattext" | |
9276 | ||
9277 | if test "$enableval" = yes; then | |
9278 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
9279 | else | |
9280 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
9281 | fi | |
9282 | ||
9283 | else | |
9284 | ||
9285 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
9286 | if test "x$LINE" != x ; then | |
9287 | eval "DEFAULT_$LINE" | |
9288 | else | |
9289 | no_cache=1 | |
9290 | fi | |
9291 | ||
9292 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
9293 | ||
9294 | fi; | |
9295 | ||
9296 | eval "$ac_cv_use_stattext" | |
9297 | if test "$no_cache" != 1; then | |
9298 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
9299 | fi | |
9300 | ||
9301 | if test "$wxUSE_STATTEXT" = yes; then | |
9302 | echo "$as_me:$LINENO: result: yes" >&5 | |
9303 | echo "${ECHO_T}yes" >&6 | |
9304 | else | |
9305 | echo "$as_me:$LINENO: result: no" >&5 | |
9306 | echo "${ECHO_T}no" >&6 | |
9307 | fi | |
9308 | ||
9309 | ||
9310 | enablestring= | |
9311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
9312 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
9313 | no_cache=0 | |
9314 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
9315 | if test "${enable_statusbar+set}" = set; then | |
9316 | enableval="$enable_statusbar" | |
9317 | ||
9318 | if test "$enableval" = yes; then | |
9319 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
9320 | else | |
9321 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
9322 | fi | |
9323 | ||
9324 | else | |
9325 | ||
9326 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
9327 | if test "x$LINE" != x ; then | |
9328 | eval "DEFAULT_$LINE" | |
9329 | else | |
9330 | no_cache=1 | |
9331 | fi | |
9332 | ||
9333 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
9334 | ||
9335 | fi; | |
9336 | ||
9337 | eval "$ac_cv_use_statusbar" | |
9338 | if test "$no_cache" != 1; then | |
9339 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
9340 | fi | |
9341 | ||
9342 | if test "$wxUSE_STATUSBAR" = yes; then | |
9343 | echo "$as_me:$LINENO: result: yes" >&5 | |
9344 | echo "${ECHO_T}yes" >&6 | |
9345 | else | |
9346 | echo "$as_me:$LINENO: result: no" >&5 | |
9347 | echo "${ECHO_T}no" >&6 | |
9348 | fi | |
9349 | ||
9350 | ||
9351 | enablestring= | |
9352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
9353 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
9354 | no_cache=0 | |
9355 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
9356 | if test "${enable_tabdialog+set}" = set; then | |
9357 | enableval="$enable_tabdialog" | |
9358 | ||
9359 | if test "$enableval" = yes; then | |
f10e38c4 | 9360 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes' |
a848cd7e | 9361 | else |
f10e38c4 | 9362 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no' |
a848cd7e SC |
9363 | fi |
9364 | ||
9365 | else | |
9366 | ||
f10e38c4 | 9367 | LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}` |
a848cd7e SC |
9368 | if test "x$LINE" != x ; then |
9369 | eval "DEFAULT_$LINE" | |
9370 | else | |
9371 | no_cache=1 | |
9372 | fi | |
9373 | ||
f10e38c4 | 9374 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG |
a848cd7e SC |
9375 | |
9376 | fi; | |
9377 | ||
9378 | eval "$ac_cv_use_tabdialog" | |
9379 | if test "$no_cache" != 1; then | |
9380 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
9381 | fi | |
9382 | ||
f10e38c4 | 9383 | if test "$wxUSE_TAB_DIALOG" = yes; then |
a848cd7e SC |
9384 | echo "$as_me:$LINENO: result: yes" >&5 |
9385 | echo "${ECHO_T}yes" >&6 | |
9386 | else | |
9387 | echo "$as_me:$LINENO: result: no" >&5 | |
9388 | echo "${ECHO_T}no" >&6 | |
9389 | fi | |
9390 | ||
9391 | ||
9392 | enablestring= | |
9393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
9394 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
9395 | no_cache=0 | |
9396 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
9397 | if test "${enable_textctrl+set}" = set; then | |
9398 | enableval="$enable_textctrl" | |
9399 | ||
9400 | if test "$enableval" = yes; then | |
9401 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
9402 | else | |
9403 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
9404 | fi | |
9405 | ||
9406 | else | |
9407 | ||
9408 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
9409 | if test "x$LINE" != x ; then | |
9410 | eval "DEFAULT_$LINE" | |
9411 | else | |
9412 | no_cache=1 | |
9413 | fi | |
9414 | ||
9415 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
9416 | ||
9417 | fi; | |
9418 | ||
9419 | eval "$ac_cv_use_textctrl" | |
9420 | if test "$no_cache" != 1; then | |
9421 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
9422 | fi | |
9423 | ||
9424 | if test "$wxUSE_TEXTCTRL" = yes; then | |
9425 | echo "$as_me:$LINENO: result: yes" >&5 | |
9426 | echo "${ECHO_T}yes" >&6 | |
9427 | else | |
9428 | echo "$as_me:$LINENO: result: no" >&5 | |
9429 | echo "${ECHO_T}no" >&6 | |
9430 | fi | |
9431 | ||
9432 | ||
9433 | enablestring= | |
9434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
9435 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
9436 | no_cache=0 | |
9437 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
9438 | if test "${enable_togglebtn+set}" = set; then | |
9439 | enableval="$enable_togglebtn" | |
9440 | ||
9441 | if test "$enableval" = yes; then | |
9442 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
9443 | else | |
9444 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
9445 | fi | |
9446 | ||
9447 | else | |
9448 | ||
9449 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
9450 | if test "x$LINE" != x ; then | |
9451 | eval "DEFAULT_$LINE" | |
9452 | else | |
9453 | no_cache=1 | |
9454 | fi | |
9455 | ||
9456 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
9457 | ||
9458 | fi; | |
9459 | ||
9460 | eval "$ac_cv_use_togglebtn" | |
9461 | if test "$no_cache" != 1; then | |
9462 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
9463 | fi | |
9464 | ||
9465 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
9466 | echo "$as_me:$LINENO: result: yes" >&5 | |
9467 | echo "${ECHO_T}yes" >&6 | |
9468 | else | |
9469 | echo "$as_me:$LINENO: result: no" >&5 | |
9470 | echo "${ECHO_T}no" >&6 | |
9471 | fi | |
9472 | ||
9473 | ||
9474 | enablestring= | |
9475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
9476 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
9477 | no_cache=0 | |
9478 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
9479 | if test "${enable_toolbar+set}" = set; then | |
9480 | enableval="$enable_toolbar" | |
9481 | ||
9482 | if test "$enableval" = yes; then | |
9483 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
9484 | else | |
9485 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
9486 | fi | |
9487 | ||
9488 | else | |
9489 | ||
9490 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
9491 | if test "x$LINE" != x ; then | |
9492 | eval "DEFAULT_$LINE" | |
9493 | else | |
9494 | no_cache=1 | |
9495 | fi | |
9496 | ||
9497 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
9498 | ||
9499 | fi; | |
9500 | ||
9501 | eval "$ac_cv_use_toolbar" | |
9502 | if test "$no_cache" != 1; then | |
9503 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
9504 | fi | |
9505 | ||
9506 | if test "$wxUSE_TOOLBAR" = yes; then | |
9507 | echo "$as_me:$LINENO: result: yes" >&5 | |
9508 | echo "${ECHO_T}yes" >&6 | |
9509 | else | |
9510 | echo "$as_me:$LINENO: result: no" >&5 | |
9511 | echo "${ECHO_T}no" >&6 | |
9512 | fi | |
9513 | ||
9514 | ||
9515 | enablestring= | |
9516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9517 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
9518 | no_cache=0 | |
9519 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
9520 | if test "${enable_tbarnative+set}" = set; then | |
9521 | enableval="$enable_tbarnative" | |
9522 | ||
9523 | if test "$enableval" = yes; then | |
9524 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
9525 | else | |
9526 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
9527 | fi | |
9528 | ||
9529 | else | |
9530 | ||
9531 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
9532 | if test "x$LINE" != x ; then | |
9533 | eval "DEFAULT_$LINE" | |
9534 | else | |
9535 | no_cache=1 | |
9536 | fi | |
9537 | ||
9538 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
9539 | ||
9540 | fi; | |
9541 | ||
9542 | eval "$ac_cv_use_tbarnative" | |
9543 | if test "$no_cache" != 1; then | |
9544 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
9545 | fi | |
9546 | ||
9547 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
9548 | echo "$as_me:$LINENO: result: yes" >&5 | |
9549 | echo "${ECHO_T}yes" >&6 | |
9550 | else | |
9551 | echo "$as_me:$LINENO: result: no" >&5 | |
9552 | echo "${ECHO_T}no" >&6 | |
9553 | fi | |
9554 | ||
9555 | ||
9556 | enablestring= | |
9557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
9558 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
9559 | no_cache=0 | |
9560 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
9561 | if test "${enable_tbarsmpl+set}" = set; then | |
9562 | enableval="$enable_tbarsmpl" | |
9563 | ||
9564 | if test "$enableval" = yes; then | |
9565 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
9566 | else | |
9567 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
9568 | fi | |
9569 | ||
9570 | else | |
9571 | ||
9572 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
9573 | if test "x$LINE" != x ; then | |
9574 | eval "DEFAULT_$LINE" | |
9575 | else | |
9576 | no_cache=1 | |
9577 | fi | |
9578 | ||
9579 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
9580 | ||
9581 | fi; | |
9582 | ||
9583 | eval "$ac_cv_use_tbarsmpl" | |
9584 | if test "$no_cache" != 1; then | |
9585 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
9586 | fi | |
9587 | ||
9588 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
9589 | echo "$as_me:$LINENO: result: yes" >&5 | |
9590 | echo "${ECHO_T}yes" >&6 | |
9591 | else | |
9592 | echo "$as_me:$LINENO: result: no" >&5 | |
9593 | echo "${ECHO_T}no" >&6 | |
9594 | fi | |
9595 | ||
9596 | ||
0093c2fc VZ |
9597 | enablestring= |
9598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
9599 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
9600 | no_cache=0 | |
9601 | # Check whether --enable-treebook or --disable-treebook was given. | |
9602 | if test "${enable_treebook+set}" = set; then | |
9603 | enableval="$enable_treebook" | |
9604 | ||
9605 | if test "$enableval" = yes; then | |
9606 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
9607 | else | |
9608 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
9609 | fi | |
9610 | ||
9611 | else | |
9612 | ||
9613 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
9614 | if test "x$LINE" != x ; then | |
9615 | eval "DEFAULT_$LINE" | |
9616 | else | |
9617 | no_cache=1 | |
9618 | fi | |
9619 | ||
9620 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
9621 | ||
9622 | fi; | |
9623 | ||
9624 | eval "$ac_cv_use_treebook" | |
9625 | if test "$no_cache" != 1; then | |
9626 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
9627 | fi | |
9628 | ||
9629 | if test "$wxUSE_TREEBOOK" = yes; then | |
9630 | echo "$as_me:$LINENO: result: yes" >&5 | |
9631 | echo "${ECHO_T}yes" >&6 | |
9632 | else | |
9633 | echo "$as_me:$LINENO: result: no" >&5 | |
9634 | echo "${ECHO_T}no" >&6 | |
9635 | fi | |
9636 | ||
9637 | ||
5ec3bc43 JS |
9638 | enablestring= |
9639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5 | |
9640 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6 | |
9641 | no_cache=0 | |
9642 | # Check whether --enable-toolbook or --disable-toolbook was given. | |
9643 | if test "${enable_toolbook+set}" = set; then | |
9644 | enableval="$enable_toolbook" | |
9645 | ||
9646 | if test "$enableval" = yes; then | |
9647 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes' | |
9648 | else | |
9649 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=no' | |
9650 | fi | |
9651 | ||
9652 | else | |
9653 | ||
9654 | LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}` | |
9655 | if test "x$LINE" != x ; then | |
9656 | eval "DEFAULT_$LINE" | |
9657 | else | |
9658 | no_cache=1 | |
9659 | fi | |
9660 | ||
9661 | ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK | |
9662 | ||
9663 | fi; | |
9664 | ||
9665 | eval "$ac_cv_use_toolbook" | |
9666 | if test "$no_cache" != 1; then | |
9667 | echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp | |
9668 | fi | |
9669 | ||
9670 | if test "$wxUSE_TOOLBOOK" = yes; then | |
9671 | echo "$as_me:$LINENO: result: yes" >&5 | |
9672 | echo "${ECHO_T}yes" >&6 | |
9673 | else | |
9674 | echo "$as_me:$LINENO: result: no" >&5 | |
9675 | echo "${ECHO_T}no" >&6 | |
9676 | fi | |
9677 | ||
9678 | ||
a848cd7e SC |
9679 | enablestring= |
9680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
9681 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
9682 | no_cache=0 | |
9683 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
9684 | if test "${enable_treectrl+set}" = set; then | |
9685 | enableval="$enable_treectrl" | |
9686 | ||
9687 | if test "$enableval" = yes; then | |
9688 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9689 | else | |
9690 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9691 | fi | |
9692 | ||
9693 | else | |
9694 | ||
9695 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9696 | if test "x$LINE" != x ; then | |
9697 | eval "DEFAULT_$LINE" | |
9698 | else | |
9699 | no_cache=1 | |
9700 | fi | |
9701 | ||
9702 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9703 | ||
9704 | fi; | |
9705 | ||
9706 | eval "$ac_cv_use_treectrl" | |
9707 | if test "$no_cache" != 1; then | |
9708 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9709 | fi | |
9710 | ||
9711 | if test "$wxUSE_TREECTRL" = yes; then | |
9712 | echo "$as_me:$LINENO: result: yes" >&5 | |
9713 | echo "${ECHO_T}yes" >&6 | |
9714 | else | |
9715 | echo "$as_me:$LINENO: result: no" >&5 | |
9716 | echo "${ECHO_T}no" >&6 | |
9717 | fi | |
9718 | ||
9719 | ||
9720 | enablestring= | |
9721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9722 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9723 | no_cache=0 | |
9724 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9725 | if test "${enable_tipwindow+set}" = set; then | |
9726 | enableval="$enable_tipwindow" | |
9727 | ||
9728 | if test "$enableval" = yes; then | |
9729 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9730 | else | |
9731 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9732 | fi | |
9733 | ||
9734 | else | |
9735 | ||
9736 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9737 | if test "x$LINE" != x ; then | |
9738 | eval "DEFAULT_$LINE" | |
9739 | else | |
9740 | no_cache=1 | |
9741 | fi | |
9742 | ||
9743 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9744 | ||
9745 | fi; | |
9746 | ||
9747 | eval "$ac_cv_use_tipwindow" | |
9748 | if test "$no_cache" != 1; then | |
9749 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9750 | fi | |
9751 | ||
9752 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9753 | echo "$as_me:$LINENO: result: yes" >&5 | |
9754 | echo "${ECHO_T}yes" >&6 | |
9755 | else | |
9756 | echo "$as_me:$LINENO: result: no" >&5 | |
9757 | echo "${ECHO_T}no" >&6 | |
9758 | fi | |
9759 | ||
9760 | ||
9761 | enablestring= | |
9762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9763 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9764 | no_cache=0 | |
9765 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9766 | if test "${enable_popupwin+set}" = set; then | |
9767 | enableval="$enable_popupwin" | |
9768 | ||
9769 | if test "$enableval" = yes; then | |
9770 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9771 | else | |
9772 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9773 | fi | |
9774 | ||
9775 | else | |
9776 | ||
9777 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9778 | if test "x$LINE" != x ; then | |
9779 | eval "DEFAULT_$LINE" | |
9780 | else | |
9781 | no_cache=1 | |
9782 | fi | |
9783 | ||
9784 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9785 | ||
9786 | fi; | |
9787 | ||
9788 | eval "$ac_cv_use_popupwin" | |
9789 | if test "$no_cache" != 1; then | |
9790 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9791 | fi | |
9792 | ||
9793 | if test "$wxUSE_POPUPWIN" = yes; then | |
9794 | echo "$as_me:$LINENO: result: yes" >&5 | |
9795 | echo "${ECHO_T}yes" >&6 | |
9796 | else | |
9797 | echo "$as_me:$LINENO: result: no" >&5 | |
9798 | echo "${ECHO_T}no" >&6 | |
9799 | fi | |
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | enablestring= | |
9805 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9806 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9807 | no_cache=0 | |
9808 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9809 | if test "${enable_commondlg+set}" = set; then | |
9810 | enableval="$enable_commondlg" | |
9811 | ||
9812 | if test "$enableval" = yes; then | |
9813 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9814 | else | |
9815 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9816 | fi | |
9817 | ||
9818 | else | |
9819 | ||
9820 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9821 | if test "x$LINE" != x ; then | |
9822 | eval "DEFAULT_$LINE" | |
9823 | else | |
9824 | no_cache=1 | |
9825 | fi | |
9826 | ||
9827 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9828 | ||
9829 | fi; | |
9830 | ||
9831 | eval "$ac_cv_use_commondlg" | |
9832 | if test "$no_cache" != 1; then | |
9833 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9834 | fi | |
9835 | ||
9836 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9837 | echo "$as_me:$LINENO: result: yes" >&5 | |
9838 | echo "${ECHO_T}yes" >&6 | |
9839 | else | |
9840 | echo "$as_me:$LINENO: result: no" >&5 | |
9841 | echo "${ECHO_T}no" >&6 | |
9842 | fi | |
9843 | ||
9844 | ||
9845 | enablestring= | |
9846 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9847 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9848 | no_cache=0 | |
9849 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9850 | if test "${enable_choicedlg+set}" = set; then | |
9851 | enableval="$enable_choicedlg" | |
9852 | ||
9853 | if test "$enableval" = yes; then | |
9854 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9855 | else | |
9856 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9857 | fi | |
9858 | ||
9859 | else | |
9860 | ||
9861 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9862 | if test "x$LINE" != x ; then | |
9863 | eval "DEFAULT_$LINE" | |
9864 | else | |
9865 | no_cache=1 | |
9866 | fi | |
9867 | ||
9868 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9869 | ||
9870 | fi; | |
9871 | ||
9872 | eval "$ac_cv_use_choicedlg" | |
9873 | if test "$no_cache" != 1; then | |
9874 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9875 | fi | |
9876 | ||
9877 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9878 | echo "$as_me:$LINENO: result: yes" >&5 | |
9879 | echo "${ECHO_T}yes" >&6 | |
9880 | else | |
9881 | echo "$as_me:$LINENO: result: no" >&5 | |
9882 | echo "${ECHO_T}no" >&6 | |
9883 | fi | |
9884 | ||
9885 | ||
9886 | enablestring= | |
9887 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9888 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9889 | no_cache=0 | |
9890 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9891 | if test "${enable_coldlg+set}" = set; then | |
9892 | enableval="$enable_coldlg" | |
9893 | ||
9894 | if test "$enableval" = yes; then | |
9895 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9896 | else | |
9897 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9898 | fi | |
9899 | ||
9900 | else | |
9901 | ||
9902 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9903 | if test "x$LINE" != x ; then | |
9904 | eval "DEFAULT_$LINE" | |
9905 | else | |
9906 | no_cache=1 | |
9907 | fi | |
9908 | ||
9909 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9910 | ||
9911 | fi; | |
9912 | ||
9913 | eval "$ac_cv_use_coldlg" | |
9914 | if test "$no_cache" != 1; then | |
9915 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9916 | fi | |
9917 | ||
9918 | if test "$wxUSE_COLOURDLG" = yes; then | |
9919 | echo "$as_me:$LINENO: result: yes" >&5 | |
9920 | echo "${ECHO_T}yes" >&6 | |
9921 | else | |
9922 | echo "$as_me:$LINENO: result: no" >&5 | |
9923 | echo "${ECHO_T}no" >&6 | |
9924 | fi | |
9925 | ||
9926 | ||
9927 | enablestring= | |
9928 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9929 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9930 | no_cache=0 | |
9931 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9932 | if test "${enable_filedlg+set}" = set; then | |
9933 | enableval="$enable_filedlg" | |
9934 | ||
9935 | if test "$enableval" = yes; then | |
9936 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9937 | else | |
9938 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9939 | fi | |
9940 | ||
9941 | else | |
9942 | ||
9943 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9944 | if test "x$LINE" != x ; then | |
9945 | eval "DEFAULT_$LINE" | |
9946 | else | |
9947 | no_cache=1 | |
9948 | fi | |
9949 | ||
9950 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9951 | ||
9952 | fi; | |
9953 | ||
9954 | eval "$ac_cv_use_filedlg" | |
9955 | if test "$no_cache" != 1; then | |
9956 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9957 | fi | |
9958 | ||
9959 | if test "$wxUSE_FILEDLG" = yes; then | |
9960 | echo "$as_me:$LINENO: result: yes" >&5 | |
9961 | echo "${ECHO_T}yes" >&6 | |
9962 | else | |
9963 | echo "$as_me:$LINENO: result: no" >&5 | |
9964 | echo "${ECHO_T}no" >&6 | |
9965 | fi | |
9966 | ||
9967 | ||
9968 | enablestring= | |
9969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9970 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9971 | no_cache=0 | |
9972 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9973 | if test "${enable_finddlg+set}" = set; then | |
9974 | enableval="$enable_finddlg" | |
9975 | ||
9976 | if test "$enableval" = yes; then | |
9977 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9978 | else | |
9979 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9980 | fi | |
9981 | ||
9982 | else | |
9983 | ||
9984 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9985 | if test "x$LINE" != x ; then | |
9986 | eval "DEFAULT_$LINE" | |
9987 | else | |
9988 | no_cache=1 | |
9989 | fi | |
9990 | ||
9991 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9992 | ||
9993 | fi; | |
9994 | ||
9995 | eval "$ac_cv_use_finddlg" | |
9996 | if test "$no_cache" != 1; then | |
9997 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9998 | fi | |
9999 | ||
10000 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
10001 | echo "$as_me:$LINENO: result: yes" >&5 | |
10002 | echo "${ECHO_T}yes" >&6 | |
10003 | else | |
10004 | echo "$as_me:$LINENO: result: no" >&5 | |
10005 | echo "${ECHO_T}no" >&6 | |
10006 | fi | |
10007 | ||
10008 | ||
10009 | enablestring= | |
10010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
10011 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
10012 | no_cache=0 | |
10013 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
10014 | if test "${enable_fontdlg+set}" = set; then | |
10015 | enableval="$enable_fontdlg" | |
10016 | ||
10017 | if test "$enableval" = yes; then | |
10018 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
10019 | else | |
10020 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
10021 | fi | |
10022 | ||
10023 | else | |
10024 | ||
10025 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
10026 | if test "x$LINE" != x ; then | |
10027 | eval "DEFAULT_$LINE" | |
10028 | else | |
10029 | no_cache=1 | |
10030 | fi | |
10031 | ||
10032 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
10033 | ||
10034 | fi; | |
10035 | ||
10036 | eval "$ac_cv_use_fontdlg" | |
10037 | if test "$no_cache" != 1; then | |
10038 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
10039 | fi | |
10040 | ||
10041 | if test "$wxUSE_FONTDLG" = yes; then | |
10042 | echo "$as_me:$LINENO: result: yes" >&5 | |
10043 | echo "${ECHO_T}yes" >&6 | |
10044 | else | |
10045 | echo "$as_me:$LINENO: result: no" >&5 | |
10046 | echo "${ECHO_T}no" >&6 | |
10047 | fi | |
10048 | ||
10049 | ||
10050 | enablestring= | |
10051 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
10052 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
10053 | no_cache=0 | |
10054 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
10055 | if test "${enable_dirdlg+set}" = set; then | |
10056 | enableval="$enable_dirdlg" | |
10057 | ||
10058 | if test "$enableval" = yes; then | |
10059 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
10060 | else | |
10061 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
10062 | fi | |
10063 | ||
10064 | else | |
10065 | ||
10066 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
10067 | if test "x$LINE" != x ; then | |
10068 | eval "DEFAULT_$LINE" | |
10069 | else | |
10070 | no_cache=1 | |
10071 | fi | |
10072 | ||
10073 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
10074 | ||
10075 | fi; | |
10076 | ||
10077 | eval "$ac_cv_use_dirdlg" | |
10078 | if test "$no_cache" != 1; then | |
10079 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
10080 | fi | |
10081 | ||
10082 | if test "$wxUSE_DIRDLG" = yes; then | |
10083 | echo "$as_me:$LINENO: result: yes" >&5 | |
10084 | echo "${ECHO_T}yes" >&6 | |
10085 | else | |
10086 | echo "$as_me:$LINENO: result: no" >&5 | |
10087 | echo "${ECHO_T}no" >&6 | |
10088 | fi | |
10089 | ||
10090 | ||
10091 | enablestring= | |
10092 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
10093 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10094 | no_cache=0 | |
10095 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
10096 | if test "${enable_msgdlg+set}" = set; then | |
10097 | enableval="$enable_msgdlg" | |
10098 | ||
10099 | if test "$enableval" = yes; then | |
10100 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
10101 | else | |
10102 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
10103 | fi | |
10104 | ||
10105 | else | |
10106 | ||
10107 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
10108 | if test "x$LINE" != x ; then | |
10109 | eval "DEFAULT_$LINE" | |
10110 | else | |
10111 | no_cache=1 | |
10112 | fi | |
10113 | ||
10114 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
10115 | ||
10116 | fi; | |
10117 | ||
10118 | eval "$ac_cv_use_msgdlg" | |
10119 | if test "$no_cache" != 1; then | |
10120 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
10121 | fi | |
10122 | ||
10123 | if test "$wxUSE_MSGDLG" = yes; then | |
10124 | echo "$as_me:$LINENO: result: yes" >&5 | |
10125 | echo "${ECHO_T}yes" >&6 | |
10126 | else | |
10127 | echo "$as_me:$LINENO: result: no" >&5 | |
10128 | echo "${ECHO_T}no" >&6 | |
10129 | fi | |
10130 | ||
10131 | ||
10132 | enablestring= | |
10133 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
10134 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10135 | no_cache=0 | |
10136 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
10137 | if test "${enable_numberdlg+set}" = set; then | |
10138 | enableval="$enable_numberdlg" | |
10139 | ||
10140 | if test "$enableval" = yes; then | |
10141 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
10142 | else | |
10143 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
10144 | fi | |
10145 | ||
10146 | else | |
10147 | ||
10148 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
10149 | if test "x$LINE" != x ; then | |
10150 | eval "DEFAULT_$LINE" | |
10151 | else | |
10152 | no_cache=1 | |
10153 | fi | |
10154 | ||
10155 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
10156 | ||
10157 | fi; | |
10158 | ||
10159 | eval "$ac_cv_use_numberdlg" | |
10160 | if test "$no_cache" != 1; then | |
10161 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
10162 | fi | |
10163 | ||
10164 | if test "$wxUSE_NUMBERDLG" = yes; then | |
10165 | echo "$as_me:$LINENO: result: yes" >&5 | |
10166 | echo "${ECHO_T}yes" >&6 | |
10167 | else | |
10168 | echo "$as_me:$LINENO: result: no" >&5 | |
10169 | echo "${ECHO_T}no" >&6 | |
10170 | fi | |
10171 | ||
10172 | ||
10173 | enablestring= | |
10174 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
10175 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
10176 | no_cache=0 | |
10177 | # Check whether --enable-splash or --disable-splash was given. | |
10178 | if test "${enable_splash+set}" = set; then | |
10179 | enableval="$enable_splash" | |
10180 | ||
10181 | if test "$enableval" = yes; then | |
10182 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
10183 | else | |
10184 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
10185 | fi | |
10186 | ||
10187 | else | |
10188 | ||
10189 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
10190 | if test "x$LINE" != x ; then | |
10191 | eval "DEFAULT_$LINE" | |
10192 | else | |
10193 | no_cache=1 | |
10194 | fi | |
10195 | ||
10196 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
10197 | ||
10198 | fi; | |
10199 | ||
10200 | eval "$ac_cv_use_splash" | |
10201 | if test "$no_cache" != 1; then | |
10202 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
10203 | fi | |
10204 | ||
10205 | if test "$wxUSE_SPLASH" = yes; then | |
10206 | echo "$as_me:$LINENO: result: yes" >&5 | |
10207 | echo "${ECHO_T}yes" >&6 | |
10208 | else | |
10209 | echo "$as_me:$LINENO: result: no" >&5 | |
10210 | echo "${ECHO_T}no" >&6 | |
10211 | fi | |
10212 | ||
10213 | ||
10214 | enablestring= | |
10215 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
10216 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10217 | no_cache=0 | |
10218 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
10219 | if test "${enable_textdlg+set}" = set; then | |
10220 | enableval="$enable_textdlg" | |
10221 | ||
10222 | if test "$enableval" = yes; then | |
10223 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
10224 | else | |
10225 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
10226 | fi | |
10227 | ||
10228 | else | |
10229 | ||
10230 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
10231 | if test "x$LINE" != x ; then | |
10232 | eval "DEFAULT_$LINE" | |
10233 | else | |
10234 | no_cache=1 | |
10235 | fi | |
10236 | ||
10237 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10238 | ||
10239 | fi; | |
10240 | ||
10241 | eval "$ac_cv_use_textdlg" | |
10242 | if test "$no_cache" != 1; then | |
10243 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
10244 | fi | |
10245 | ||
10246 | if test "$wxUSE_TEXTDLG" = yes; then | |
10247 | echo "$as_me:$LINENO: result: yes" >&5 | |
10248 | echo "${ECHO_T}yes" >&6 | |
10249 | else | |
10250 | echo "$as_me:$LINENO: result: no" >&5 | |
10251 | echo "${ECHO_T}no" >&6 | |
10252 | fi | |
10253 | ||
10254 | ||
10255 | enablestring= | |
10256 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
10257 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10258 | no_cache=0 | |
10259 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
10260 | if test "${enable_tipdlg+set}" = set; then | |
10261 | enableval="$enable_tipdlg" | |
10262 | ||
10263 | if test "$enableval" = yes; then | |
10264 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
10265 | else | |
10266 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
10267 | fi | |
10268 | ||
10269 | else | |
10270 | ||
10271 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
10272 | if test "x$LINE" != x ; then | |
10273 | eval "DEFAULT_$LINE" | |
10274 | else | |
10275 | no_cache=1 | |
10276 | fi | |
10277 | ||
10278 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10279 | ||
10280 | fi; | |
10281 | ||
10282 | eval "$ac_cv_use_tipdlg" | |
10283 | if test "$no_cache" != 1; then | |
10284 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
10285 | fi | |
10286 | ||
10287 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
10288 | echo "$as_me:$LINENO: result: yes" >&5 | |
10289 | echo "${ECHO_T}yes" >&6 | |
10290 | else | |
10291 | echo "$as_me:$LINENO: result: no" >&5 | |
10292 | echo "${ECHO_T}no" >&6 | |
10293 | fi | |
10294 | ||
10295 | ||
10296 | enablestring= | |
10297 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
10298 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10299 | no_cache=0 | |
10300 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
10301 | if test "${enable_progressdlg+set}" = set; then | |
10302 | enableval="$enable_progressdlg" | |
10303 | ||
10304 | if test "$enableval" = yes; then | |
10305 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
10306 | else | |
10307 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
10308 | fi | |
10309 | ||
10310 | else | |
10311 | ||
10312 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
10313 | if test "x$LINE" != x ; then | |
10314 | eval "DEFAULT_$LINE" | |
10315 | else | |
10316 | no_cache=1 | |
10317 | fi | |
10318 | ||
10319 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10320 | ||
10321 | fi; | |
10322 | ||
10323 | eval "$ac_cv_use_progressdlg" | |
10324 | if test "$no_cache" != 1; then | |
10325 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
10326 | fi | |
10327 | ||
10328 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
10329 | echo "$as_me:$LINENO: result: yes" >&5 | |
10330 | echo "${ECHO_T}yes" >&6 | |
10331 | else | |
10332 | echo "$as_me:$LINENO: result: no" >&5 | |
10333 | echo "${ECHO_T}no" >&6 | |
10334 | fi | |
10335 | ||
10336 | ||
10337 | enablestring= | |
10338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
10339 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
10340 | no_cache=0 | |
10341 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
10342 | if test "${enable_wizarddlg+set}" = set; then | |
10343 | enableval="$enable_wizarddlg" | |
10344 | ||
10345 | if test "$enableval" = yes; then | |
10346 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
10347 | else | |
10348 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
10349 | fi | |
10350 | ||
10351 | else | |
10352 | ||
10353 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
10354 | if test "x$LINE" != x ; then | |
10355 | eval "DEFAULT_$LINE" | |
10356 | else | |
10357 | no_cache=1 | |
10358 | fi | |
10359 | ||
10360 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
10361 | ||
10362 | fi; | |
10363 | ||
10364 | eval "$ac_cv_use_wizarddlg" | |
10365 | if test "$no_cache" != 1; then | |
10366 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
10367 | fi | |
10368 | ||
10369 | if test "$wxUSE_WIZARDDLG" = yes; then | |
10370 | echo "$as_me:$LINENO: result: yes" >&5 | |
10371 | echo "${ECHO_T}yes" >&6 | |
10372 | else | |
10373 | echo "$as_me:$LINENO: result: no" >&5 | |
10374 | echo "${ECHO_T}no" >&6 | |
10375 | fi | |
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | enablestring= | |
10381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
10382 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
10383 | no_cache=0 | |
10384 | # Check whether --enable-menus or --disable-menus was given. | |
10385 | if test "${enable_menus+set}" = set; then | |
10386 | enableval="$enable_menus" | |
10387 | ||
10388 | if test "$enableval" = yes; then | |
10389 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
10390 | else | |
10391 | ac_cv_use_menus='wxUSE_MENUS=no' | |
10392 | fi | |
10393 | ||
10394 | else | |
10395 | ||
10396 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
10397 | if test "x$LINE" != x ; then | |
10398 | eval "DEFAULT_$LINE" | |
10399 | else | |
10400 | no_cache=1 | |
10401 | fi | |
10402 | ||
10403 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
10404 | ||
10405 | fi; | |
10406 | ||
10407 | eval "$ac_cv_use_menus" | |
10408 | if test "$no_cache" != 1; then | |
10409 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
10410 | fi | |
10411 | ||
10412 | if test "$wxUSE_MENUS" = yes; then | |
10413 | echo "$as_me:$LINENO: result: yes" >&5 | |
10414 | echo "${ECHO_T}yes" >&6 | |
10415 | else | |
10416 | echo "$as_me:$LINENO: result: no" >&5 | |
10417 | echo "${ECHO_T}no" >&6 | |
10418 | fi | |
10419 | ||
10420 | ||
10421 | enablestring= | |
10422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
10423 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10424 | no_cache=0 | |
10425 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
10426 | if test "${enable_miniframe+set}" = set; then | |
10427 | enableval="$enable_miniframe" | |
10428 | ||
10429 | if test "$enableval" = yes; then | |
10430 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
10431 | else | |
10432 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
10433 | fi | |
10434 | ||
10435 | else | |
10436 | ||
10437 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
10438 | if test "x$LINE" != x ; then | |
10439 | eval "DEFAULT_$LINE" | |
10440 | else | |
10441 | no_cache=1 | |
10442 | fi | |
10443 | ||
10444 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10445 | ||
10446 | fi; | |
10447 | ||
10448 | eval "$ac_cv_use_miniframe" | |
10449 | if test "$no_cache" != 1; then | |
10450 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
10451 | fi | |
10452 | ||
10453 | if test "$wxUSE_MINIFRAME" = yes; then | |
10454 | echo "$as_me:$LINENO: result: yes" >&5 | |
10455 | echo "${ECHO_T}yes" >&6 | |
10456 | else | |
10457 | echo "$as_me:$LINENO: result: no" >&5 | |
10458 | echo "${ECHO_T}no" >&6 | |
10459 | fi | |
10460 | ||
10461 | ||
10462 | enablestring= | |
10463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
10464 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10465 | no_cache=0 | |
10466 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
10467 | if test "${enable_tooltips+set}" = set; then | |
10468 | enableval="$enable_tooltips" | |
10469 | ||
10470 | if test "$enableval" = yes; then | |
10471 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
10472 | else | |
10473 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
10474 | fi | |
10475 | ||
10476 | else | |
10477 | ||
10478 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
10479 | if test "x$LINE" != x ; then | |
10480 | eval "DEFAULT_$LINE" | |
10481 | else | |
10482 | no_cache=1 | |
10483 | fi | |
10484 | ||
10485 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10486 | ||
10487 | fi; | |
10488 | ||
10489 | eval "$ac_cv_use_tooltips" | |
10490 | if test "$no_cache" != 1; then | |
10491 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
10492 | fi | |
10493 | ||
10494 | if test "$wxUSE_TOOLTIPS" = yes; then | |
10495 | echo "$as_me:$LINENO: result: yes" >&5 | |
10496 | echo "${ECHO_T}yes" >&6 | |
10497 | else | |
10498 | echo "$as_me:$LINENO: result: no" >&5 | |
10499 | echo "${ECHO_T}no" >&6 | |
10500 | fi | |
10501 | ||
10502 | ||
10503 | enablestring= | |
10504 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
10505 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10506 | no_cache=0 | |
10507 | # Check whether --enable-splines or --disable-splines was given. | |
10508 | if test "${enable_splines+set}" = set; then | |
10509 | enableval="$enable_splines" | |
10510 | ||
10511 | if test "$enableval" = yes; then | |
10512 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
10513 | else | |
10514 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
10515 | fi | |
10516 | ||
10517 | else | |
10518 | ||
10519 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
10520 | if test "x$LINE" != x ; then | |
10521 | eval "DEFAULT_$LINE" | |
10522 | else | |
10523 | no_cache=1 | |
10524 | fi | |
10525 | ||
10526 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10527 | ||
10528 | fi; | |
10529 | ||
10530 | eval "$ac_cv_use_splines" | |
10531 | if test "$no_cache" != 1; then | |
10532 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
10533 | fi | |
10534 | ||
10535 | if test "$wxUSE_SPLINES" = yes; then | |
10536 | echo "$as_me:$LINENO: result: yes" >&5 | |
10537 | echo "${ECHO_T}yes" >&6 | |
10538 | else | |
10539 | echo "$as_me:$LINENO: result: no" >&5 | |
10540 | echo "${ECHO_T}no" >&6 | |
10541 | fi | |
10542 | ||
10543 | ||
fbe2ca43 SN |
10544 | enablestring= |
10545 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
10546 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
10547 | no_cache=0 | |
10548 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
10549 | if test "${enable_mousewheel+set}" = set; then | |
10550 | enableval="$enable_mousewheel" | |
10551 | ||
10552 | if test "$enableval" = yes; then | |
10553 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
10554 | else | |
10555 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
10556 | fi | |
10557 | ||
10558 | else | |
10559 | ||
10560 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
10561 | if test "x$LINE" != x ; then | |
10562 | eval "DEFAULT_$LINE" | |
10563 | else | |
10564 | no_cache=1 | |
10565 | fi | |
10566 | ||
10567 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
10568 | ||
10569 | fi; | |
10570 | ||
10571 | eval "$ac_cv_use_mousewheel" | |
10572 | if test "$no_cache" != 1; then | |
10573 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
10574 | fi | |
10575 | ||
10576 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
10577 | echo "$as_me:$LINENO: result: yes" >&5 | |
10578 | echo "${ECHO_T}yes" >&6 | |
10579 | else | |
10580 | echo "$as_me:$LINENO: result: no" >&5 | |
10581 | echo "${ECHO_T}no" >&6 | |
10582 | fi | |
10583 | ||
10584 | ||
a848cd7e SC |
10585 | enablestring= |
10586 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
10587 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10588 | no_cache=0 | |
10589 | # Check whether --enable-validators or --disable-validators was given. | |
10590 | if test "${enable_validators+set}" = set; then | |
10591 | enableval="$enable_validators" | |
10592 | ||
10593 | if test "$enableval" = yes; then | |
10594 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
10595 | else | |
10596 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
10597 | fi | |
10598 | ||
10599 | else | |
10600 | ||
10601 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
10602 | if test "x$LINE" != x ; then | |
10603 | eval "DEFAULT_$LINE" | |
10604 | else | |
10605 | no_cache=1 | |
10606 | fi | |
10607 | ||
10608 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10609 | ||
10610 | fi; | |
10611 | ||
10612 | eval "$ac_cv_use_validators" | |
10613 | if test "$no_cache" != 1; then | |
10614 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
10615 | fi | |
10616 | ||
10617 | if test "$wxUSE_VALIDATORS" = yes; then | |
10618 | echo "$as_me:$LINENO: result: yes" >&5 | |
10619 | echo "${ECHO_T}yes" >&6 | |
10620 | else | |
10621 | echo "$as_me:$LINENO: result: no" >&5 | |
10622 | echo "${ECHO_T}no" >&6 | |
10623 | fi | |
10624 | ||
10625 | ||
10626 | enablestring= | |
10627 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10628 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10629 | no_cache=0 | |
10630 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
10631 | if test "${enable_busyinfo+set}" = set; then | |
10632 | enableval="$enable_busyinfo" | |
10633 | ||
10634 | if test "$enableval" = yes; then | |
10635 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
10636 | else | |
10637 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
10638 | fi | |
10639 | ||
10640 | else | |
10641 | ||
10642 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
10643 | if test "x$LINE" != x ; then | |
10644 | eval "DEFAULT_$LINE" | |
10645 | else | |
10646 | no_cache=1 | |
10647 | fi | |
10648 | ||
10649 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10650 | ||
10651 | fi; | |
10652 | ||
10653 | eval "$ac_cv_use_busyinfo" | |
10654 | if test "$no_cache" != 1; then | |
10655 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
10656 | fi | |
10657 | ||
10658 | if test "$wxUSE_BUSYINFO" = yes; then | |
10659 | echo "$as_me:$LINENO: result: yes" >&5 | |
10660 | echo "${ECHO_T}yes" >&6 | |
10661 | else | |
10662 | echo "$as_me:$LINENO: result: no" >&5 | |
10663 | echo "${ECHO_T}no" >&6 | |
10664 | fi | |
10665 | ||
10666 | ||
10667 | enablestring= | |
10668 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
10669 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
10670 | no_cache=0 | |
10671 | # Check whether --enable-joystick or --disable-joystick was given. | |
10672 | if test "${enable_joystick+set}" = set; then | |
10673 | enableval="$enable_joystick" | |
10674 | ||
10675 | if test "$enableval" = yes; then | |
10676 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
10677 | else | |
10678 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
10679 | fi | |
10680 | ||
10681 | else | |
10682 | ||
10683 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
10684 | if test "x$LINE" != x ; then | |
10685 | eval "DEFAULT_$LINE" | |
10686 | else | |
10687 | no_cache=1 | |
10688 | fi | |
10689 | ||
10690 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10691 | ||
10692 | fi; | |
10693 | ||
10694 | eval "$ac_cv_use_joystick" | |
10695 | if test "$no_cache" != 1; then | |
10696 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10697 | fi | |
10698 | ||
10699 | if test "$wxUSE_JOYSTICK" = yes; then | |
10700 | echo "$as_me:$LINENO: result: yes" >&5 | |
10701 | echo "${ECHO_T}yes" >&6 | |
10702 | else | |
10703 | echo "$as_me:$LINENO: result: no" >&5 | |
10704 | echo "${ECHO_T}no" >&6 | |
10705 | fi | |
10706 | ||
10707 | ||
10708 | enablestring= | |
10709 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10710 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10711 | no_cache=0 | |
10712 | # Check whether --enable-metafile or --disable-metafile was given. | |
10713 | if test "${enable_metafile+set}" = set; then | |
10714 | enableval="$enable_metafile" | |
10715 | ||
10716 | if test "$enableval" = yes; then | |
10717 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10718 | else | |
10719 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10720 | fi | |
10721 | ||
10722 | else | |
10723 | ||
10724 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10725 | if test "x$LINE" != x ; then | |
10726 | eval "DEFAULT_$LINE" | |
10727 | else | |
10728 | no_cache=1 | |
10729 | fi | |
10730 | ||
10731 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10732 | ||
10733 | fi; | |
10734 | ||
10735 | eval "$ac_cv_use_metafile" | |
10736 | if test "$no_cache" != 1; then | |
10737 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10738 | fi | |
10739 | ||
10740 | if test "$wxUSE_METAFILE" = yes; then | |
10741 | echo "$as_me:$LINENO: result: yes" >&5 | |
10742 | echo "${ECHO_T}yes" >&6 | |
10743 | else | |
10744 | echo "$as_me:$LINENO: result: no" >&5 | |
10745 | echo "${ECHO_T}no" >&6 | |
10746 | fi | |
10747 | ||
10748 | ||
10749 | enablestring= | |
10750 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10751 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10752 | no_cache=0 | |
10753 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10754 | if test "${enable_dragimage+set}" = set; then | |
10755 | enableval="$enable_dragimage" | |
10756 | ||
10757 | if test "$enableval" = yes; then | |
10758 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10759 | else | |
10760 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10761 | fi | |
10762 | ||
10763 | else | |
10764 | ||
10765 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10766 | if test "x$LINE" != x ; then | |
10767 | eval "DEFAULT_$LINE" | |
10768 | else | |
10769 | no_cache=1 | |
10770 | fi | |
10771 | ||
10772 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10773 | ||
10774 | fi; | |
10775 | ||
10776 | eval "$ac_cv_use_dragimage" | |
10777 | if test "$no_cache" != 1; then | |
10778 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10779 | fi | |
10780 | ||
10781 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10782 | echo "$as_me:$LINENO: result: yes" >&5 | |
10783 | echo "${ECHO_T}yes" >&6 | |
10784 | else | |
10785 | echo "$as_me:$LINENO: result: no" >&5 | |
10786 | echo "${ECHO_T}no" >&6 | |
10787 | fi | |
10788 | ||
10789 | ||
10790 | enablestring= | |
10791 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10792 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10793 | no_cache=0 | |
10794 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10795 | if test "${enable_accessibility+set}" = set; then | |
10796 | enableval="$enable_accessibility" | |
10797 | ||
10798 | if test "$enableval" = yes; then | |
10799 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10800 | else | |
10801 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10802 | fi | |
10803 | ||
10804 | else | |
10805 | ||
10806 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10807 | if test "x$LINE" != x ; then | |
10808 | eval "DEFAULT_$LINE" | |
10809 | else | |
10810 | no_cache=1 | |
10811 | fi | |
10812 | ||
10813 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10814 | ||
10815 | fi; | |
10816 | ||
10817 | eval "$ac_cv_use_accessibility" | |
10818 | if test "$no_cache" != 1; then | |
10819 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10820 | fi | |
10821 | ||
10822 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10823 | echo "$as_me:$LINENO: result: yes" >&5 | |
10824 | echo "${ECHO_T}yes" >&6 | |
10825 | else | |
10826 | echo "$as_me:$LINENO: result: no" >&5 | |
10827 | echo "${ECHO_T}no" >&6 | |
10828 | fi | |
10829 | ||
10830 | ||
38b4a946 VZ |
10831 | if test "$wxUSE_MSW" = "1"; then |
10832 | ||
10833 | enablestring= | |
10834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10835 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10836 | no_cache=0 | |
10837 | # Check whether --enable-dccache or --disable-dccache was given. | |
10838 | if test "${enable_dccache+set}" = set; then | |
10839 | enableval="$enable_dccache" | |
10840 | ||
10841 | if test "$enableval" = yes; then | |
10842 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10843 | else | |
10844 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10845 | fi | |
10846 | ||
10847 | else | |
10848 | ||
10849 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10850 | if test "x$LINE" != x ; then | |
10851 | eval "DEFAULT_$LINE" | |
10852 | else | |
10853 | no_cache=1 | |
10854 | fi | |
10855 | ||
10856 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10857 | ||
10858 | fi; | |
10859 | ||
10860 | eval "$ac_cv_use_dccache" | |
10861 | if test "$no_cache" != 1; then | |
10862 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10863 | fi | |
10864 | ||
10865 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10866 | echo "$as_me:$LINENO: result: yes" >&5 | |
10867 | echo "${ECHO_T}yes" >&6 | |
10868 | else | |
10869 | echo "$as_me:$LINENO: result: no" >&5 | |
10870 | echo "${ECHO_T}no" >&6 | |
10871 | fi | |
10872 | ||
10873 | fi | |
10874 | ||
a848cd7e SC |
10875 | |
10876 | ||
10877 | enablestring= | |
10878 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10879 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10880 | no_cache=0 | |
10881 | # Check whether --enable-palette or --disable-palette was given. | |
10882 | if test "${enable_palette+set}" = set; then | |
10883 | enableval="$enable_palette" | |
10884 | ||
10885 | if test "$enableval" = yes; then | |
10886 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10887 | else | |
10888 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10889 | fi | |
10890 | ||
10891 | else | |
10892 | ||
10893 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10894 | if test "x$LINE" != x ; then | |
10895 | eval "DEFAULT_$LINE" | |
10896 | else | |
10897 | no_cache=1 | |
10898 | fi | |
10899 | ||
10900 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10901 | ||
10902 | fi; | |
10903 | ||
10904 | eval "$ac_cv_use_palette" | |
10905 | if test "$no_cache" != 1; then | |
10906 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10907 | fi | |
10908 | ||
10909 | if test "$wxUSE_PALETTE" = yes; then | |
10910 | echo "$as_me:$LINENO: result: yes" >&5 | |
10911 | echo "${ECHO_T}yes" >&6 | |
10912 | else | |
10913 | echo "$as_me:$LINENO: result: no" >&5 | |
10914 | echo "${ECHO_T}no" >&6 | |
10915 | fi | |
10916 | ||
10917 | ||
10918 | enablestring= | |
10919 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10920 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10921 | no_cache=0 | |
10922 | # Check whether --enable-image or --disable-image was given. | |
10923 | if test "${enable_image+set}" = set; then | |
10924 | enableval="$enable_image" | |
10925 | ||
10926 | if test "$enableval" = yes; then | |
10927 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10928 | else | |
10929 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10930 | fi | |
10931 | ||
10932 | else | |
10933 | ||
10934 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10935 | if test "x$LINE" != x ; then | |
10936 | eval "DEFAULT_$LINE" | |
10937 | else | |
10938 | no_cache=1 | |
10939 | fi | |
10940 | ||
10941 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10942 | ||
10943 | fi; | |
10944 | ||
10945 | eval "$ac_cv_use_image" | |
10946 | if test "$no_cache" != 1; then | |
10947 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10948 | fi | |
10949 | ||
10950 | if test "$wxUSE_IMAGE" = yes; then | |
10951 | echo "$as_me:$LINENO: result: yes" >&5 | |
10952 | echo "${ECHO_T}yes" >&6 | |
10953 | else | |
10954 | echo "$as_me:$LINENO: result: no" >&5 | |
10955 | echo "${ECHO_T}no" >&6 | |
10956 | fi | |
10957 | ||
10958 | ||
10959 | enablestring= | |
10960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10961 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10962 | no_cache=0 | |
10963 | # Check whether --enable-gif or --disable-gif was given. | |
10964 | if test "${enable_gif+set}" = set; then | |
10965 | enableval="$enable_gif" | |
10966 | ||
10967 | if test "$enableval" = yes; then | |
10968 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10969 | else | |
10970 | ac_cv_use_gif='wxUSE_GIF=no' | |
10971 | fi | |
10972 | ||
10973 | else | |
10974 | ||
10975 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10976 | if test "x$LINE" != x ; then | |
10977 | eval "DEFAULT_$LINE" | |
10978 | else | |
10979 | no_cache=1 | |
10980 | fi | |
10981 | ||
10982 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10983 | ||
10984 | fi; | |
10985 | ||
10986 | eval "$ac_cv_use_gif" | |
10987 | if test "$no_cache" != 1; then | |
10988 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10989 | fi | |
10990 | ||
10991 | if test "$wxUSE_GIF" = yes; then | |
10992 | echo "$as_me:$LINENO: result: yes" >&5 | |
10993 | echo "${ECHO_T}yes" >&6 | |
10994 | else | |
10995 | echo "$as_me:$LINENO: result: no" >&5 | |
10996 | echo "${ECHO_T}no" >&6 | |
10997 | fi | |
10998 | ||
10999 | ||
11000 | enablestring= | |
11001 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
11002 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
11003 | no_cache=0 | |
11004 | # Check whether --enable-pcx or --disable-pcx was given. | |
11005 | if test "${enable_pcx+set}" = set; then | |
11006 | enableval="$enable_pcx" | |
11007 | ||
11008 | if test "$enableval" = yes; then | |
11009 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
11010 | else | |
11011 | ac_cv_use_pcx='wxUSE_PCX=no' | |
11012 | fi | |
11013 | ||
11014 | else | |
11015 | ||
11016 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
11017 | if test "x$LINE" != x ; then | |
11018 | eval "DEFAULT_$LINE" | |
11019 | else | |
11020 | no_cache=1 | |
11021 | fi | |
11022 | ||
11023 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
11024 | ||
11025 | fi; | |
11026 | ||
11027 | eval "$ac_cv_use_pcx" | |
11028 | if test "$no_cache" != 1; then | |
11029 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
11030 | fi | |
11031 | ||
11032 | if test "$wxUSE_PCX" = yes; then | |
11033 | echo "$as_me:$LINENO: result: yes" >&5 | |
11034 | echo "${ECHO_T}yes" >&6 | |
11035 | else | |
11036 | echo "$as_me:$LINENO: result: no" >&5 | |
11037 | echo "${ECHO_T}no" >&6 | |
11038 | fi | |
11039 | ||
11040 | ||
11041 | enablestring= | |
11042 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
11043 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
11044 | no_cache=0 | |
11045 | # Check whether --enable-iff or --disable-iff was given. | |
11046 | if test "${enable_iff+set}" = set; then | |
11047 | enableval="$enable_iff" | |
11048 | ||
11049 | if test "$enableval" = yes; then | |
11050 | ac_cv_use_iff='wxUSE_IFF=yes' | |
11051 | else | |
11052 | ac_cv_use_iff='wxUSE_IFF=no' | |
11053 | fi | |
11054 | ||
11055 | else | |
11056 | ||
11057 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
11058 | if test "x$LINE" != x ; then | |
11059 | eval "DEFAULT_$LINE" | |
11060 | else | |
11061 | no_cache=1 | |
11062 | fi | |
11063 | ||
11064 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
11065 | ||
11066 | fi; | |
11067 | ||
11068 | eval "$ac_cv_use_iff" | |
11069 | if test "$no_cache" != 1; then | |
11070 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
11071 | fi | |
11072 | ||
11073 | if test "$wxUSE_IFF" = yes; then | |
11074 | echo "$as_me:$LINENO: result: yes" >&5 | |
11075 | echo "${ECHO_T}yes" >&6 | |
11076 | else | |
11077 | echo "$as_me:$LINENO: result: no" >&5 | |
11078 | echo "${ECHO_T}no" >&6 | |
11079 | fi | |
11080 | ||
11081 | ||
11082 | enablestring= | |
11083 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
11084 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
11085 | no_cache=0 | |
11086 | # Check whether --enable-pnm or --disable-pnm was given. | |
11087 | if test "${enable_pnm+set}" = set; then | |
11088 | enableval="$enable_pnm" | |
11089 | ||
11090 | if test "$enableval" = yes; then | |
11091 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
11092 | else | |
11093 | ac_cv_use_pnm='wxUSE_PNM=no' | |
11094 | fi | |
11095 | ||
11096 | else | |
11097 | ||
11098 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
11099 | if test "x$LINE" != x ; then | |
11100 | eval "DEFAULT_$LINE" | |
11101 | else | |
11102 | no_cache=1 | |
11103 | fi | |
11104 | ||
11105 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
11106 | ||
11107 | fi; | |
11108 | ||
11109 | eval "$ac_cv_use_pnm" | |
11110 | if test "$no_cache" != 1; then | |
11111 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
11112 | fi | |
11113 | ||
11114 | if test "$wxUSE_PNM" = yes; then | |
11115 | echo "$as_me:$LINENO: result: yes" >&5 | |
11116 | echo "${ECHO_T}yes" >&6 | |
11117 | else | |
11118 | echo "$as_me:$LINENO: result: no" >&5 | |
11119 | echo "${ECHO_T}no" >&6 | |
11120 | fi | |
11121 | ||
11122 | ||
11123 | enablestring= | |
11124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
11125 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
11126 | no_cache=0 | |
11127 | # Check whether --enable-xpm or --disable-xpm was given. | |
11128 | if test "${enable_xpm+set}" = set; then | |
11129 | enableval="$enable_xpm" | |
11130 | ||
11131 | if test "$enableval" = yes; then | |
11132 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
11133 | else | |
11134 | ac_cv_use_xpm='wxUSE_XPM=no' | |
11135 | fi | |
11136 | ||
11137 | else | |
11138 | ||
11139 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
11140 | if test "x$LINE" != x ; then | |
11141 | eval "DEFAULT_$LINE" | |
11142 | else | |
11143 | no_cache=1 | |
11144 | fi | |
11145 | ||
11146 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
11147 | ||
11148 | fi; | |
11149 | ||
11150 | eval "$ac_cv_use_xpm" | |
11151 | if test "$no_cache" != 1; then | |
11152 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
11153 | fi | |
11154 | ||
11155 | if test "$wxUSE_XPM" = yes; then | |
11156 | echo "$as_me:$LINENO: result: yes" >&5 | |
11157 | echo "${ECHO_T}yes" >&6 | |
11158 | else | |
11159 | echo "$as_me:$LINENO: result: no" >&5 | |
11160 | echo "${ECHO_T}no" >&6 | |
11161 | fi | |
11162 | ||
11163 | ||
11164 | enablestring= | |
11165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
11166 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
11167 | no_cache=0 | |
11168 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
11169 | if test "${enable_ico_cur+set}" = set; then | |
11170 | enableval="$enable_ico_cur" | |
11171 | ||
11172 | if test "$enableval" = yes; then | |
11173 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
11174 | else | |
11175 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
11176 | fi | |
11177 | ||
11178 | else | |
11179 | ||
11180 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
11181 | if test "x$LINE" != x ; then | |
11182 | eval "DEFAULT_$LINE" | |
11183 | else | |
11184 | no_cache=1 | |
11185 | fi | |
11186 | ||
11187 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
11188 | ||
11189 | fi; | |
11190 | ||
11191 | eval "$ac_cv_use_ico_cur" | |
11192 | if test "$no_cache" != 1; then | |
11193 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
11194 | fi | |
11195 | ||
11196 | if test "$wxUSE_ICO_CUR" = yes; then | |
11197 | echo "$as_me:$LINENO: result: yes" >&5 | |
11198 | echo "${ECHO_T}yes" >&6 | |
11199 | else | |
11200 | echo "$as_me:$LINENO: result: no" >&5 | |
11201 | echo "${ECHO_T}no" >&6 | |
11202 | fi | |
11203 | ||
11204 | ||
11205 | fi | |
11206 | ||
11207 | ||
11208 | ||
ceec2216 RL |
11209 | # Check whether --with-flavour or --without-flavour was given. |
11210 | if test "${with_flavour+set}" = set; then | |
11211 | withval="$with_flavour" | |
11212 | WX_FLAVOUR="$withval" | |
11213 | fi; | |
11214 | ||
11215 | ||
11216 | ||
a848cd7e SC |
11217 | enablestring= |
11218 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
11219 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
11220 | no_cache=0 | |
11221 | # Check whether --enable-official_build or --disable-official_build was given. | |
11222 | if test "${enable_official_build+set}" = set; then | |
11223 | enableval="$enable_official_build" | |
11224 | ||
11225 | if test "$enableval" = yes; then | |
11226 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
11227 | else | |
11228 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
11229 | fi | |
11230 | ||
11231 | else | |
11232 | ||
11233 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
11234 | if test "x$LINE" != x ; then | |
11235 | eval "DEFAULT_$LINE" | |
11236 | else | |
11237 | no_cache=1 | |
11238 | fi | |
11239 | ||
11240 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
11241 | ||
11242 | fi; | |
11243 | ||
11244 | eval "$ac_cv_use_official_build" | |
11245 | if test "$no_cache" != 1; then | |
11246 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
11247 | fi | |
11248 | ||
11249 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
11250 | echo "$as_me:$LINENO: result: yes" >&5 | |
11251 | echo "${ECHO_T}yes" >&6 | |
11252 | else | |
11253 | echo "$as_me:$LINENO: result: no" >&5 | |
11254 | echo "${ECHO_T}no" >&6 | |
11255 | fi | |
11256 | ||
11257 | # Check whether --enable-vendor or --disable-vendor was given. | |
11258 | if test "${enable_vendor+set}" = set; then | |
11259 | enableval="$enable_vendor" | |
11260 | VENDOR="$enableval" | |
11261 | fi; | |
11262 | if test "x$VENDOR" = "x"; then | |
11263 | VENDOR="custom" | |
11264 | fi | |
11265 | ||
a848cd7e SC |
11266 | |
11267 | ||
11268 | ||
11269 | echo "saving argument cache $wx_arg_cache_file" | |
11270 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
11271 | ||
11272 | ||
11273 | ||
11274 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
11275 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
11276 | ||
11277 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
11278 | if test "$wxUSE_WINE" = "yes"; then | |
11279 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
11280 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
11281 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
11282 | wxUSE_SHARED=no | |
11283 | fi | |
11284 | ||
f597b41c | 11285 | |
a848cd7e SC |
11286 | if test "$wxUSE_GUI" = "yes"; then |
11287 | ||
11288 | if test "$USE_BEOS" = 1; then | |
11289 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
11290 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
11291 | { (exit 1); exit 1; }; } | |
11292 | fi | |
11293 | ||
11294 | if test "$TOOLKIT_GIVEN" = 1; then | |
11295 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11296 | var=wxUSE_$toolkit | |
11297 | eval "value=\$${var}" | |
f34ca037 MW |
11298 | if test "x$value" = "xno"; then |
11299 | eval "$var=0" | |
11300 | elif test "x$value" != "x"; then | |
11301 | eval "$var=1" | |
11302 | fi | |
11303 | ||
11304 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
11305 | eval "wx${toolkit}_VERSION=$value" | |
11306 | fi | |
a848cd7e SC |
11307 | done |
11308 | else | |
11309 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11310 | if test "$has_toolkit_in_cache" != 1; then | |
11311 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
11312 | else | |
11313 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
11314 | |
11315 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
11316 | if test "x$version" != "x"; then | |
11317 | eval "wx${toolkit}_VERSION=$version" | |
11318 | fi | |
a848cd7e SC |
11319 | fi |
11320 | eval "wxUSE_$toolkit=\$${var}" | |
11321 | done | |
11322 | fi | |
11323 | ||
11324 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
11325 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
11326 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
11327 | ||
11328 | case "${host}" in | |
11329 | *-pc-os2_emx | *-pc-os2-emx ) | |
11330 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
11331 | esac | |
11332 | ||
11333 | case "$NUM_TOOLKITS" in | |
11334 | 1) | |
11335 | ;; | |
11336 | 0) | |
11337 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
11338 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
11339 | { (exit 1); exit 1; }; } | |
11340 | ;; | |
11341 | *) | |
11342 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
11343 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
11344 | { (exit 1); exit 1; }; } | |
11345 | esac | |
11346 | ||
f34ca037 MW |
11347 | # to be removed when --disable-gtk2 isn't needed |
11348 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11349 | wxGTK_VERSION=2 | |
11350 | elif test "x$wxUSE_GTK2" = "xno"; then | |
11351 | wxGTK_VERSION=1 | |
11352 | fi | |
11353 | ||
a848cd7e SC |
11354 | for toolkit in `echo $ALL_TOOLKITS`; do |
11355 | var=wxUSE_$toolkit | |
11356 | eval "value=\$${var}" | |
11357 | if test "x$value" != x; then | |
11358 | cache_var=CACHE_$toolkit | |
11359 | eval "cache=\$${cache_var}" | |
11360 | if test "$cache" = 1; then | |
11361 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
11362 | eval "version=\$wx${toolkit}_VERSION" |
11363 | if test "x$version" != "x"; then | |
11364 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
11365 | fi | |
a848cd7e SC |
11366 | fi |
11367 | if test "$value" = 1; then | |
11368 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
11369 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
11370 | echo "${ECHO_T}$toolkit_echo" >&6 | |
11371 | fi | |
11372 | fi | |
11373 | done | |
11374 | else | |
11375 | if test "x$host_alias" != "x"; then | |
11376 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
11377 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
11378 | else | |
11379 | echo "$as_me:$LINENO: result: base only" >&5 | |
11380 | echo "${ECHO_T}base only" >&6 | |
11381 | fi | |
11382 | fi | |
11383 | ||
11384 | wants_win32=0 | |
11385 | doesnt_want_win32=0 | |
11386 | case "${host}" in | |
11387 | *-*-cygwin*) | |
11388 | if test "$wxUSE_MSW" = 1 ; then | |
11389 | wants_win32=1 | |
7275146d | 11390 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
11391 | else |
11392 | doesnt_want_win32=1 | |
11393 | fi | |
11394 | ;; | |
11395 | *-*-mingw*) | |
11396 | wants_win32=1 | |
11397 | ;; | |
11398 | esac | |
11399 | ||
11400 | if test "$wxUSE_WINE" = "yes"; then | |
11401 | wants_win32=1 | |
11402 | CC=winegcc | |
11403 | CXX=wineg++ | |
a848cd7e SC |
11404 | LDFLAGS_GUI="-mwindows" |
11405 | fi | |
11406 | ||
11407 | if test "$wants_win32" = 1 ; then | |
11408 | USE_UNIX=0 | |
11409 | USE_WIN32=1 | |
11410 | cat >>confdefs.h <<\_ACEOF | |
11411 | #define __WIN32__ 1 | |
11412 | _ACEOF | |
11413 | ||
11414 | cat >>confdefs.h <<\_ACEOF | |
11415 | #define __WIN95__ 1 | |
11416 | _ACEOF | |
11417 | ||
11418 | cat >>confdefs.h <<\_ACEOF | |
11419 | #define __WINDOWS__ 1 | |
11420 | _ACEOF | |
11421 | ||
11422 | cat >>confdefs.h <<\_ACEOF | |
11423 | #define __GNUWIN32__ 1 | |
11424 | _ACEOF | |
11425 | ||
11426 | cat >>confdefs.h <<\_ACEOF | |
11427 | #define STRICT 1 | |
11428 | _ACEOF | |
11429 | ||
11430 | cat >>confdefs.h <<\_ACEOF | |
11431 | #define WINVER 0x0400 | |
11432 | _ACEOF | |
11433 | ||
11434 | fi | |
11435 | if test "$doesnt_want_win32" = 1 ; then | |
11436 | USE_UNIX=1 | |
11437 | USE_WIN32=0 | |
11438 | fi | |
11439 | ||
11440 | if test "$USE_UNIX" = 1 ; then | |
11441 | wxUSE_UNIX=yes | |
11442 | cat >>confdefs.h <<\_ACEOF | |
11443 | #define __UNIX__ 1 | |
11444 | _ACEOF | |
11445 | ||
11446 | fi | |
11447 | ||
11448 | ||
11449 | cat >confcache <<\_ACEOF | |
11450 | # This file is a shell script that caches the results of configure | |
11451 | # tests run on this system so they can be shared between configure | |
11452 | # scripts and configure runs, see configure's option --config-cache. | |
11453 | # It is not useful on other systems. If it contains results you don't | |
11454 | # want to keep, you may remove or edit it. | |
11455 | # | |
11456 | # config.status only pays attention to the cache file if you give it | |
11457 | # the --recheck option to rerun configure. | |
11458 | # | |
11459 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11460 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11461 | # following values. | |
11462 | ||
11463 | _ACEOF | |
11464 | ||
11465 | # The following way of writing the cache mishandles newlines in values, | |
11466 | # but we know of no workaround that is simple, portable, and efficient. | |
11467 | # So, don't put newlines in cache variables' values. | |
11468 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11469 | # and sets the high bit in the cache file unless we assign to the vars. | |
11470 | { | |
11471 | (set) 2>&1 | | |
11472 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11473 | *ac_space=\ *) | |
11474 | # `set' does not quote correctly, so add quotes (double-quote | |
11475 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11476 | sed -n \ | |
ac1cb8d3 VS |
11477 | "s/'/'\\\\''/g; |
11478 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
11479 | ;; |
11480 | *) | |
11481 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11482 | sed -n \ | |
ac1cb8d3 | 11483 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
11484 | ;; |
11485 | esac; | |
11486 | } | | |
11487 | sed ' | |
11488 | t clear | |
11489 | : clear | |
11490 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11491 | t end | |
11492 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11493 | : end' >>confcache | |
11494 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11495 | if test -w $cache_file; then | |
11496 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11497 | cat confcache >$cache_file | |
11498 | else | |
11499 | echo "not updating unwritable cache $cache_file" | |
11500 | fi | |
11501 | fi | |
11502 | rm -f confcache | |
11503 | ||
a848cd7e | 11504 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
11505 | |
11506 | ||
3006edc0 | 11507 | |
6dcfc289 | 11508 | ac_ext=c |
a848cd7e SC |
11509 | ac_cpp='$CPP $CPPFLAGS' |
11510 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11511 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11512 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11513 | if test -n "$ac_tool_prefix"; then | |
11514 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
11515 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
11516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11518 | if test "${ac_cv_prog_CC+set}" = set; then | |
11519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11520 | else | |
11521 | if test -n "$CC"; then | |
11522 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11523 | else | |
11524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11525 | for as_dir in $PATH | |
11526 | do | |
11527 | IFS=$as_save_IFS | |
11528 | test -z "$as_dir" && as_dir=. | |
11529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11530 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11531 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
11532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11533 | break 2 | |
11534 | fi | |
11535 | done | |
11536 | done | |
11537 | ||
11538 | fi | |
11539 | fi | |
11540 | CC=$ac_cv_prog_CC | |
11541 | if test -n "$CC"; then | |
11542 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11543 | echo "${ECHO_T}$CC" >&6 | |
11544 | else | |
11545 | echo "$as_me:$LINENO: result: no" >&5 | |
11546 | echo "${ECHO_T}no" >&6 | |
11547 | fi | |
11548 | ||
11549 | fi | |
11550 | if test -z "$ac_cv_prog_CC"; then | |
11551 | ac_ct_CC=$CC | |
11552 | # Extract the first word of "gcc", so it can be a program name with args. | |
11553 | set dummy gcc; ac_word=$2 | |
11554 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11556 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11558 | else | |
11559 | if test -n "$ac_ct_CC"; then | |
11560 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11561 | else | |
11562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11563 | for as_dir in $PATH | |
11564 | do | |
11565 | IFS=$as_save_IFS | |
11566 | test -z "$as_dir" && as_dir=. | |
11567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11568 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11569 | ac_cv_prog_ac_ct_CC="gcc" | |
11570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11571 | break 2 | |
11572 | fi | |
11573 | done | |
11574 | done | |
11575 | ||
11576 | fi | |
11577 | fi | |
11578 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11579 | if test -n "$ac_ct_CC"; then | |
11580 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11581 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11582 | else | |
11583 | echo "$as_me:$LINENO: result: no" >&5 | |
11584 | echo "${ECHO_T}no" >&6 | |
11585 | fi | |
11586 | ||
11587 | CC=$ac_ct_CC | |
11588 | else | |
11589 | CC="$ac_cv_prog_CC" | |
11590 | fi | |
11591 | ||
11592 | if test -z "$CC"; then | |
11593 | if test -n "$ac_tool_prefix"; then | |
11594 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
11595 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
11596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11598 | if test "${ac_cv_prog_CC+set}" = set; then | |
11599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11600 | else | |
11601 | if test -n "$CC"; then | |
11602 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11603 | else | |
11604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11605 | for as_dir in $PATH | |
11606 | do | |
11607 | IFS=$as_save_IFS | |
11608 | test -z "$as_dir" && as_dir=. | |
11609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11611 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
11612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11613 | break 2 | |
11614 | fi | |
11615 | done | |
11616 | done | |
11617 | ||
11618 | fi | |
11619 | fi | |
11620 | CC=$ac_cv_prog_CC | |
11621 | if test -n "$CC"; then | |
11622 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11623 | echo "${ECHO_T}$CC" >&6 | |
11624 | else | |
11625 | echo "$as_me:$LINENO: result: no" >&5 | |
11626 | echo "${ECHO_T}no" >&6 | |
11627 | fi | |
11628 | ||
11629 | fi | |
11630 | if test -z "$ac_cv_prog_CC"; then | |
11631 | ac_ct_CC=$CC | |
11632 | # Extract the first word of "cc", so it can be a program name with args. | |
11633 | set dummy cc; ac_word=$2 | |
11634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11636 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11638 | else | |
11639 | if test -n "$ac_ct_CC"; then | |
11640 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11641 | else | |
11642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11643 | for as_dir in $PATH | |
11644 | do | |
11645 | IFS=$as_save_IFS | |
11646 | test -z "$as_dir" && as_dir=. | |
11647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11649 | ac_cv_prog_ac_ct_CC="cc" | |
11650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11651 | break 2 | |
11652 | fi | |
11653 | done | |
11654 | done | |
11655 | ||
11656 | fi | |
11657 | fi | |
11658 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11659 | if test -n "$ac_ct_CC"; then | |
11660 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11661 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11662 | else | |
11663 | echo "$as_me:$LINENO: result: no" >&5 | |
11664 | echo "${ECHO_T}no" >&6 | |
11665 | fi | |
11666 | ||
11667 | CC=$ac_ct_CC | |
11668 | else | |
11669 | CC="$ac_cv_prog_CC" | |
11670 | fi | |
11671 | ||
11672 | fi | |
11673 | if test -z "$CC"; then | |
11674 | # Extract the first word of "cc", so it can be a program name with args. | |
11675 | set dummy cc; ac_word=$2 | |
11676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11678 | if test "${ac_cv_prog_CC+set}" = set; then | |
11679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11680 | else | |
11681 | if test -n "$CC"; then | |
11682 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11683 | else | |
11684 | ac_prog_rejected=no | |
11685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11686 | for as_dir in $PATH | |
11687 | do | |
11688 | IFS=$as_save_IFS | |
11689 | test -z "$as_dir" && as_dir=. | |
11690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11691 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11692 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11693 | ac_prog_rejected=yes | |
11694 | continue | |
11695 | fi | |
11696 | ac_cv_prog_CC="cc" | |
11697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11698 | break 2 | |
11699 | fi | |
11700 | done | |
11701 | done | |
11702 | ||
11703 | if test $ac_prog_rejected = yes; then | |
11704 | # We found a bogon in the path, so make sure we never use it. | |
11705 | set dummy $ac_cv_prog_CC | |
11706 | shift | |
11707 | if test $# != 0; then | |
11708 | # We chose a different compiler from the bogus one. | |
11709 | # However, it has the same basename, so the bogon will be chosen | |
11710 | # first if we set CC to just the basename; use the full file name. | |
11711 | shift | |
11712 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11713 | fi | |
11714 | fi | |
11715 | fi | |
11716 | fi | |
11717 | CC=$ac_cv_prog_CC | |
11718 | if test -n "$CC"; then | |
11719 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11720 | echo "${ECHO_T}$CC" >&6 | |
11721 | else | |
11722 | echo "$as_me:$LINENO: result: no" >&5 | |
11723 | echo "${ECHO_T}no" >&6 | |
11724 | fi | |
11725 | ||
11726 | fi | |
11727 | if test -z "$CC"; then | |
11728 | if test -n "$ac_tool_prefix"; then | |
11729 | for ac_prog in cl | |
11730 | do | |
11731 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11732 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11733 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11735 | if test "${ac_cv_prog_CC+set}" = set; then | |
11736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11737 | else | |
11738 | if test -n "$CC"; then | |
11739 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11740 | else | |
11741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11742 | for as_dir in $PATH | |
11743 | do | |
11744 | IFS=$as_save_IFS | |
11745 | test -z "$as_dir" && as_dir=. | |
11746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11747 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11748 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11749 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11750 | break 2 | |
11751 | fi | |
11752 | done | |
11753 | done | |
11754 | ||
11755 | fi | |
11756 | fi | |
11757 | CC=$ac_cv_prog_CC | |
11758 | if test -n "$CC"; then | |
11759 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11760 | echo "${ECHO_T}$CC" >&6 | |
11761 | else | |
11762 | echo "$as_me:$LINENO: result: no" >&5 | |
11763 | echo "${ECHO_T}no" >&6 | |
11764 | fi | |
11765 | ||
11766 | test -n "$CC" && break | |
11767 | done | |
11768 | fi | |
11769 | if test -z "$CC"; then | |
11770 | ac_ct_CC=$CC | |
11771 | for ac_prog in cl | |
11772 | do | |
11773 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11774 | set dummy $ac_prog; ac_word=$2 | |
11775 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11777 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11779 | else | |
11780 | if test -n "$ac_ct_CC"; then | |
11781 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11782 | else | |
11783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11784 | for as_dir in $PATH | |
11785 | do | |
11786 | IFS=$as_save_IFS | |
11787 | test -z "$as_dir" && as_dir=. | |
11788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11789 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11790 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11792 | break 2 | |
11793 | fi | |
11794 | done | |
11795 | done | |
11796 | ||
11797 | fi | |
11798 | fi | |
11799 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11800 | if test -n "$ac_ct_CC"; then | |
11801 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11802 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11803 | else | |
11804 | echo "$as_me:$LINENO: result: no" >&5 | |
11805 | echo "${ECHO_T}no" >&6 | |
11806 | fi | |
11807 | ||
11808 | test -n "$ac_ct_CC" && break | |
11809 | done | |
11810 | ||
11811 | CC=$ac_ct_CC | |
11812 | fi | |
11813 | ||
11814 | fi | |
11815 | ||
11816 | ||
11817 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11818 | See \`config.log' for more details." >&5 | |
11819 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11820 | See \`config.log' for more details." >&2;} | |
11821 | { (exit 1); exit 1; }; } | |
11822 | ||
11823 | # Provide some information about the compiler. | |
11824 | echo "$as_me:$LINENO:" \ | |
11825 | "checking for C compiler version" >&5 | |
11826 | ac_compiler=`set X $ac_compile; echo $2` | |
11827 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11828 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11829 | ac_status=$? | |
11830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11831 | (exit $ac_status); } | |
11832 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11833 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11834 | ac_status=$? | |
11835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11836 | (exit $ac_status); } | |
11837 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11838 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11839 | ac_status=$? | |
11840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11841 | (exit $ac_status); } | |
11842 | ||
11843 | cat >conftest.$ac_ext <<_ACEOF | |
11844 | /* confdefs.h. */ | |
11845 | _ACEOF | |
11846 | cat confdefs.h >>conftest.$ac_ext | |
11847 | cat >>conftest.$ac_ext <<_ACEOF | |
11848 | /* end confdefs.h. */ | |
11849 | ||
11850 | int | |
11851 | main () | |
11852 | { | |
11853 | ||
11854 | ; | |
11855 | return 0; | |
11856 | } | |
11857 | _ACEOF | |
11858 | ac_clean_files_save=$ac_clean_files | |
11859 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11860 | # Try to create an executable without -o first, disregard a.out. | |
11861 | # It will help us diagnose broken compilers, and finding out an intuition | |
11862 | # of exeext. | |
ac1cb8d3 VS |
11863 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11864 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11865 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11866 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11867 | (eval $ac_link_default) 2>&5 | |
11868 | ac_status=$? | |
11869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11870 | (exit $ac_status); }; then | |
11871 | # Find the output, starting from the most likely. This scheme is | |
11872 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11873 | # resort. | |
11874 | ||
11875 | # Be careful to initialize this variable, since it used to be cached. | |
11876 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11877 | ac_cv_exeext= | |
11878 | # b.out is created by i960 compilers. | |
11879 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11880 | do | |
11881 | test -f "$ac_file" || continue | |
11882 | case $ac_file in | |
11883 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11884 | ;; |
a848cd7e | 11885 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11886 | # This is the source file. |
11887 | ;; | |
a848cd7e | 11888 | [ab].out ) |
ac1cb8d3 VS |
11889 | # We found the default executable, but exeext='' is most |
11890 | # certainly right. | |
11891 | break;; | |
a848cd7e | 11892 | *.* ) |
ac1cb8d3 VS |
11893 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11894 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11895 | # but it would be cool to find out if it's true. Does anybody | |
11896 | # maintain Libtool? --akim. | |
11897 | export ac_cv_exeext | |
11898 | break;; | |
a848cd7e | 11899 | * ) |
ac1cb8d3 | 11900 | break;; |
a848cd7e SC |
11901 | esac |
11902 | done | |
11903 | else | |
11904 | echo "$as_me: failed program was:" >&5 | |
11905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11906 | ||
11907 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11908 | See \`config.log' for more details." >&5 | |
11909 | echo "$as_me: error: C compiler cannot create executables | |
11910 | See \`config.log' for more details." >&2;} | |
11911 | { (exit 77); exit 77; }; } | |
11912 | fi | |
11913 | ||
11914 | ac_exeext=$ac_cv_exeext | |
11915 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11916 | echo "${ECHO_T}$ac_file" >&6 | |
11917 | ||
11918 | # Check the compiler produces executables we can run. If not, either | |
11919 | # the compiler is broken, or we cross compile. | |
11920 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11921 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11922 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11923 | # If not cross compiling, check that we can run a simple program. | |
11924 | if test "$cross_compiling" != yes; then | |
11925 | if { ac_try='./$ac_file' | |
11926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11927 | (eval $ac_try) 2>&5 | |
11928 | ac_status=$? | |
11929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11930 | (exit $ac_status); }; }; then | |
11931 | cross_compiling=no | |
11932 | else | |
11933 | if test "$cross_compiling" = maybe; then | |
11934 | cross_compiling=yes | |
11935 | else | |
11936 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11937 | If you meant to cross compile, use \`--host'. | |
11938 | See \`config.log' for more details." >&5 | |
11939 | echo "$as_me: error: cannot run C compiled programs. | |
11940 | If you meant to cross compile, use \`--host'. | |
11941 | See \`config.log' for more details." >&2;} | |
11942 | { (exit 1); exit 1; }; } | |
11943 | fi | |
11944 | fi | |
11945 | fi | |
11946 | echo "$as_me:$LINENO: result: yes" >&5 | |
11947 | echo "${ECHO_T}yes" >&6 | |
11948 | ||
11949 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11950 | ac_clean_files=$ac_clean_files_save | |
11951 | # Check the compiler produces executables we can run. If not, either | |
11952 | # the compiler is broken, or we cross compile. | |
11953 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11954 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11955 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11956 | echo "${ECHO_T}$cross_compiling" >&6 | |
11957 | ||
11958 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11959 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11961 | (eval $ac_link) 2>&5 | |
11962 | ac_status=$? | |
11963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11964 | (exit $ac_status); }; then | |
11965 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11966 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11967 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11968 | # `rm'. | |
11969 | for ac_file in conftest.exe conftest conftest.*; do | |
11970 | test -f "$ac_file" || continue | |
11971 | case $ac_file in | |
11972 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11973 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11974 | export ac_cv_exeext |
11975 | break;; | |
a848cd7e SC |
11976 | * ) break;; |
11977 | esac | |
11978 | done | |
11979 | else | |
11980 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11981 | See \`config.log' for more details." >&5 | |
11982 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11983 | See \`config.log' for more details." >&2;} | |
11984 | { (exit 1); exit 1; }; } | |
11985 | fi | |
11986 | ||
11987 | rm -f conftest$ac_cv_exeext | |
11988 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11989 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11990 | ||
11991 | rm -f conftest.$ac_ext | |
11992 | EXEEXT=$ac_cv_exeext | |
11993 | ac_exeext=$EXEEXT | |
11994 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11995 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11996 | if test "${ac_cv_objext+set}" = set; then | |
11997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11998 | else | |
11999 | cat >conftest.$ac_ext <<_ACEOF | |
12000 | /* confdefs.h. */ | |
12001 | _ACEOF | |
12002 | cat confdefs.h >>conftest.$ac_ext | |
12003 | cat >>conftest.$ac_ext <<_ACEOF | |
12004 | /* end confdefs.h. */ | |
12005 | ||
12006 | int | |
12007 | main () | |
12008 | { | |
12009 | ||
12010 | ; | |
12011 | return 0; | |
12012 | } | |
12013 | _ACEOF | |
12014 | rm -f conftest.o conftest.obj | |
12015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12016 | (eval $ac_compile) 2>&5 | |
12017 | ac_status=$? | |
12018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12019 | (exit $ac_status); }; then | |
12020 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
12021 | case $ac_file in | |
12022 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
12023 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
12024 | break;; | |
12025 | esac | |
12026 | done | |
12027 | else | |
12028 | echo "$as_me: failed program was:" >&5 | |
12029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12030 | ||
12031 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
12032 | See \`config.log' for more details." >&5 | |
12033 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
12034 | See \`config.log' for more details." >&2;} | |
12035 | { (exit 1); exit 1; }; } | |
12036 | fi | |
12037 | ||
12038 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
12039 | fi | |
12040 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
12041 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
12042 | OBJEXT=$ac_cv_objext | |
12043 | ac_objext=$OBJEXT | |
12044 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
12045 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
12046 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
12047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12048 | else | |
12049 | cat >conftest.$ac_ext <<_ACEOF | |
12050 | /* confdefs.h. */ | |
12051 | _ACEOF | |
12052 | cat confdefs.h >>conftest.$ac_ext | |
12053 | cat >>conftest.$ac_ext <<_ACEOF | |
12054 | /* end confdefs.h. */ | |
12055 | ||
12056 | int | |
12057 | main () | |
12058 | { | |
12059 | #ifndef __GNUC__ | |
12060 | choke me | |
12061 | #endif | |
12062 | ||
12063 | ; | |
12064 | return 0; | |
12065 | } | |
12066 | _ACEOF | |
12067 | rm -f conftest.$ac_objext | |
12068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12069 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12070 | ac_status=$? |
ac1cb8d3 VS |
12071 | grep -v '^ *+' conftest.er1 >conftest.err |
12072 | rm -f conftest.er1 | |
12073 | cat conftest.err >&5 | |
a848cd7e SC |
12074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12075 | (exit $ac_status); } && | |
3f60522a JS |
12076 | { ac_try='test -z "$ac_c_werror_flag" |
12077 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12079 | (eval $ac_try) 2>&5 | |
12080 | ac_status=$? | |
12081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12082 | (exit $ac_status); }; } && | |
12083 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12085 | (eval $ac_try) 2>&5 | |
12086 | ac_status=$? | |
12087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12088 | (exit $ac_status); }; }; then | |
12089 | ac_compiler_gnu=yes | |
12090 | else | |
12091 | echo "$as_me: failed program was:" >&5 | |
12092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12093 | ||
12094 | ac_compiler_gnu=no | |
12095 | fi | |
ac1cb8d3 | 12096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12097 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
12098 | ||
12099 | fi | |
12100 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
12101 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
12102 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
12103 | ac_test_CFLAGS=${CFLAGS+set} | |
12104 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 12105 | CFLAGS="-g" |
a848cd7e SC |
12106 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12107 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12108 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12110 | else | |
12111 | cat >conftest.$ac_ext <<_ACEOF | |
12112 | /* confdefs.h. */ | |
12113 | _ACEOF | |
12114 | cat confdefs.h >>conftest.$ac_ext | |
12115 | cat >>conftest.$ac_ext <<_ACEOF | |
12116 | /* end confdefs.h. */ | |
12117 | ||
12118 | int | |
12119 | main () | |
12120 | { | |
12121 | ||
12122 | ; | |
12123 | return 0; | |
12124 | } | |
12125 | _ACEOF | |
12126 | rm -f conftest.$ac_objext | |
12127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12128 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12129 | ac_status=$? |
ac1cb8d3 VS |
12130 | grep -v '^ *+' conftest.er1 >conftest.err |
12131 | rm -f conftest.er1 | |
12132 | cat conftest.err >&5 | |
a848cd7e SC |
12133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12134 | (exit $ac_status); } && | |
3f60522a JS |
12135 | { ac_try='test -z "$ac_c_werror_flag" |
12136 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12138 | (eval $ac_try) 2>&5 | |
12139 | ac_status=$? | |
12140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12141 | (exit $ac_status); }; } && | |
12142 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12144 | (eval $ac_try) 2>&5 | |
12145 | ac_status=$? | |
12146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12147 | (exit $ac_status); }; }; then | |
12148 | ac_cv_prog_cc_g=yes | |
12149 | else | |
12150 | echo "$as_me: failed program was:" >&5 | |
12151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12152 | ||
12153 | ac_cv_prog_cc_g=no | |
12154 | fi | |
ac1cb8d3 | 12155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12156 | fi |
12157 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12158 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12159 | if test "$ac_test_CFLAGS" = set; then | |
12160 | CFLAGS=$ac_save_CFLAGS | |
12161 | elif test $ac_cv_prog_cc_g = yes; then | |
12162 | if test "$GCC" = yes; then | |
12163 | CFLAGS="-g -O2" | |
12164 | else | |
12165 | CFLAGS="-g" | |
12166 | fi | |
12167 | else | |
12168 | if test "$GCC" = yes; then | |
12169 | CFLAGS="-O2" | |
12170 | else | |
12171 | CFLAGS= | |
12172 | fi | |
12173 | fi | |
12174 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
12175 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
12176 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
12177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12178 | else | |
12179 | ac_cv_prog_cc_stdc=no | |
12180 | ac_save_CC=$CC | |
12181 | cat >conftest.$ac_ext <<_ACEOF | |
12182 | /* confdefs.h. */ | |
12183 | _ACEOF | |
12184 | cat confdefs.h >>conftest.$ac_ext | |
12185 | cat >>conftest.$ac_ext <<_ACEOF | |
12186 | /* end confdefs.h. */ | |
12187 | #include <stdarg.h> | |
12188 | #include <stdio.h> | |
12189 | #include <sys/types.h> | |
12190 | #include <sys/stat.h> | |
12191 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
12192 | struct buf { int x; }; | |
12193 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
12194 | static char *e (p, i) | |
12195 | char **p; | |
12196 | int i; | |
12197 | { | |
12198 | return p[i]; | |
12199 | } | |
12200 | static char *f (char * (*g) (char **, int), char **p, ...) | |
12201 | { | |
12202 | char *s; | |
12203 | va_list v; | |
12204 | va_start (v,p); | |
12205 | s = g (p, va_arg (v,int)); | |
12206 | va_end (v); | |
12207 | return s; | |
12208 | } | |
ac1cb8d3 VS |
12209 | |
12210 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
12211 | function prototypes and stuff, but not '\xHH' hex character constants. | |
12212 | These don't provoke an error unfortunately, instead are silently treated | |
12213 | as 'x'. The following induces an error, until -std1 is added to get | |
12214 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
12215 | array size at least. It's necessary to write '\x00'==0 to get something | |
12216 | that's true only with -std1. */ | |
12217 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
12218 | ||
a848cd7e SC |
12219 | int test (int i, double x); |
12220 | struct s1 {int (*f) (int a);}; | |
12221 | struct s2 {int (*f) (double a);}; | |
12222 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
12223 | int argc; | |
12224 | char **argv; | |
12225 | int | |
12226 | main () | |
12227 | { | |
12228 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
12229 | ; | |
12230 | return 0; | |
12231 | } | |
12232 | _ACEOF | |
12233 | # Don't try gcc -ansi; that turns off useful extensions and | |
12234 | # breaks some systems' header files. | |
12235 | # AIX -qlanglvl=ansi | |
12236 | # Ultrix and OSF/1 -std1 | |
12237 | # HP-UX 10.20 and later -Ae | |
12238 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
12239 | # SVR4 -Xc -D__EXTENSIONS__ | |
12240 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
12241 | do | |
12242 | CC="$ac_save_CC $ac_arg" | |
12243 | rm -f conftest.$ac_objext | |
12244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12245 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12246 | ac_status=$? |
ac1cb8d3 VS |
12247 | grep -v '^ *+' conftest.er1 >conftest.err |
12248 | rm -f conftest.er1 | |
12249 | cat conftest.err >&5 | |
a848cd7e SC |
12250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12251 | (exit $ac_status); } && | |
3f60522a JS |
12252 | { ac_try='test -z "$ac_c_werror_flag" |
12253 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12255 | (eval $ac_try) 2>&5 | |
12256 | ac_status=$? | |
12257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12258 | (exit $ac_status); }; } && | |
12259 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12261 | (eval $ac_try) 2>&5 | |
12262 | ac_status=$? | |
12263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12264 | (exit $ac_status); }; }; then | |
12265 | ac_cv_prog_cc_stdc=$ac_arg | |
12266 | break | |
12267 | else | |
12268 | echo "$as_me: failed program was:" >&5 | |
12269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12270 | ||
12271 | fi | |
ac1cb8d3 | 12272 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
12273 | done |
12274 | rm -f conftest.$ac_ext conftest.$ac_objext | |
12275 | CC=$ac_save_CC | |
12276 | ||
12277 | fi | |
12278 | ||
12279 | case "x$ac_cv_prog_cc_stdc" in | |
12280 | x|xno) | |
12281 | echo "$as_me:$LINENO: result: none needed" >&5 | |
12282 | echo "${ECHO_T}none needed" >&6 ;; | |
12283 | *) | |
12284 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
12285 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
12286 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
12287 | esac | |
12288 | ||
12289 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
12290 | # in C++ we need to declare it. In case someone uses the same compiler | |
12291 | # for both compiling C and C++ we need to have the C++ compiler decide | |
12292 | # the declaration of exit, since it's the most demanding environment. | |
12293 | cat >conftest.$ac_ext <<_ACEOF | |
12294 | #ifndef __cplusplus | |
12295 | choke me | |
12296 | #endif | |
12297 | _ACEOF | |
12298 | rm -f conftest.$ac_objext | |
12299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12300 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12301 | ac_status=$? |
ac1cb8d3 VS |
12302 | grep -v '^ *+' conftest.er1 >conftest.err |
12303 | rm -f conftest.er1 | |
12304 | cat conftest.err >&5 | |
a848cd7e SC |
12305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12306 | (exit $ac_status); } && | |
3f60522a JS |
12307 | { ac_try='test -z "$ac_c_werror_flag" |
12308 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12310 | (eval $ac_try) 2>&5 | |
12311 | ac_status=$? | |
12312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12313 | (exit $ac_status); }; } && | |
12314 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12316 | (eval $ac_try) 2>&5 | |
12317 | ac_status=$? | |
12318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12319 | (exit $ac_status); }; }; then | |
12320 | for ac_declaration in \ | |
ac1cb8d3 | 12321 | '' \ |
a848cd7e SC |
12322 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12323 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12324 | 'extern "C" void exit (int) throw ();' \ | |
12325 | 'extern "C" void exit (int);' \ | |
12326 | 'void exit (int);' | |
12327 | do | |
12328 | cat >conftest.$ac_ext <<_ACEOF | |
12329 | /* confdefs.h. */ | |
12330 | _ACEOF | |
12331 | cat confdefs.h >>conftest.$ac_ext | |
12332 | cat >>conftest.$ac_ext <<_ACEOF | |
12333 | /* end confdefs.h. */ | |
de59c161 | 12334 | $ac_declaration |
ac1cb8d3 | 12335 | #include <stdlib.h> |
a848cd7e SC |
12336 | int |
12337 | main () | |
12338 | { | |
12339 | exit (42); | |
12340 | ; | |
12341 | return 0; | |
12342 | } | |
12343 | _ACEOF | |
12344 | rm -f conftest.$ac_objext | |
12345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12346 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12347 | ac_status=$? |
ac1cb8d3 VS |
12348 | grep -v '^ *+' conftest.er1 >conftest.err |
12349 | rm -f conftest.er1 | |
12350 | cat conftest.err >&5 | |
a848cd7e SC |
12351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12352 | (exit $ac_status); } && | |
3f60522a JS |
12353 | { ac_try='test -z "$ac_c_werror_flag" |
12354 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12356 | (eval $ac_try) 2>&5 | |
12357 | ac_status=$? | |
12358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12359 | (exit $ac_status); }; } && | |
12360 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12362 | (eval $ac_try) 2>&5 | |
12363 | ac_status=$? | |
12364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12365 | (exit $ac_status); }; }; then | |
12366 | : | |
12367 | else | |
12368 | echo "$as_me: failed program was:" >&5 | |
12369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12370 | ||
12371 | continue | |
12372 | fi | |
ac1cb8d3 | 12373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12374 | cat >conftest.$ac_ext <<_ACEOF |
12375 | /* confdefs.h. */ | |
12376 | _ACEOF | |
12377 | cat confdefs.h >>conftest.$ac_ext | |
12378 | cat >>conftest.$ac_ext <<_ACEOF | |
12379 | /* end confdefs.h. */ | |
12380 | $ac_declaration | |
12381 | int | |
12382 | main () | |
12383 | { | |
12384 | exit (42); | |
12385 | ; | |
12386 | return 0; | |
12387 | } | |
12388 | _ACEOF | |
12389 | rm -f conftest.$ac_objext | |
12390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12391 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12392 | ac_status=$? |
ac1cb8d3 VS |
12393 | grep -v '^ *+' conftest.er1 >conftest.err |
12394 | rm -f conftest.er1 | |
12395 | cat conftest.err >&5 | |
a848cd7e SC |
12396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12397 | (exit $ac_status); } && | |
3f60522a JS |
12398 | { ac_try='test -z "$ac_c_werror_flag" |
12399 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12401 | (eval $ac_try) 2>&5 | |
12402 | ac_status=$? | |
12403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12404 | (exit $ac_status); }; } && | |
12405 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12407 | (eval $ac_try) 2>&5 | |
12408 | ac_status=$? | |
12409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12410 | (exit $ac_status); }; }; then | |
12411 | break | |
12412 | else | |
12413 | echo "$as_me: failed program was:" >&5 | |
12414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12415 | ||
12416 | fi | |
ac1cb8d3 | 12417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12418 | done |
12419 | rm -f conftest* | |
12420 | if test -n "$ac_declaration"; then | |
12421 | echo '#ifdef __cplusplus' >>confdefs.h | |
12422 | echo $ac_declaration >>confdefs.h | |
12423 | echo '#endif' >>confdefs.h | |
12424 | fi | |
12425 | ||
12426 | else | |
12427 | echo "$as_me: failed program was:" >&5 | |
12428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12429 | ||
12430 | fi | |
ac1cb8d3 | 12431 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12432 | ac_ext=c |
12433 | ac_cpp='$CPP $CPPFLAGS' | |
12434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12437 | ||
ab0ad5f1 VZ |
12438 | |
12439 | ||
12440 | ac_ext=c | |
12441 | ac_cpp='$CPP $CPPFLAGS' | |
12442 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12443 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12444 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12445 | ||
12446 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
12447 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
12448 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
12449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12450 | else | |
12451 | cat >conftest.$ac_ext <<_ACEOF | |
12452 | /* confdefs.h. */ | |
12453 | _ACEOF | |
12454 | cat confdefs.h >>conftest.$ac_ext | |
12455 | cat >>conftest.$ac_ext <<_ACEOF | |
12456 | /* end confdefs.h. */ | |
12457 | ||
12458 | int | |
12459 | main () | |
12460 | { | |
12461 | ||
12462 | #ifndef __INTEL_COMPILER | |
12463 | choke me | |
12464 | #endif | |
12465 | ||
12466 | ; | |
12467 | return 0; | |
12468 | } | |
12469 | _ACEOF | |
12470 | rm -f conftest.$ac_objext | |
12471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12472 | (eval $ac_compile) 2>conftest.er1 | |
12473 | ac_status=$? | |
12474 | grep -v '^ *+' conftest.er1 >conftest.err | |
12475 | rm -f conftest.er1 | |
12476 | cat conftest.err >&5 | |
12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12478 | (exit $ac_status); } && | |
3f60522a JS |
12479 | { ac_try='test -z "$ac_c_werror_flag" |
12480 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
12481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12482 | (eval $ac_try) 2>&5 | |
12483 | ac_status=$? | |
12484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12485 | (exit $ac_status); }; } && | |
12486 | { ac_try='test -s conftest.$ac_objext' | |
12487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12488 | (eval $ac_try) 2>&5 | |
12489 | ac_status=$? | |
12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12491 | (exit $ac_status); }; }; then | |
12492 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
12493 | else | |
12494 | echo "$as_me: failed program was:" >&5 | |
12495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12496 | ||
12497 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
12498 | ||
12499 | fi | |
12500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12501 | ||
12502 | ||
12503 | fi | |
12504 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
12505 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
12506 | ac_ext=c | |
12507 | ac_cpp='$CPP $CPPFLAGS' | |
12508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12511 | ||
12512 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
12513 | :; INTELCC=yes | |
12514 | else | |
12515 | :; | |
12516 | fi | |
12517 | ||
12518 | ||
12519 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
12520 | if test "xCC" = "xC"; then |
12521 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 12522 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 12523 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
12524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12525 | else | |
12526 | cat >conftest.$ac_ext <<_ACEOF | |
12527 | /* confdefs.h. */ | |
12528 | _ACEOF | |
12529 | cat confdefs.h >>conftest.$ac_ext | |
12530 | cat >>conftest.$ac_ext <<_ACEOF | |
12531 | /* end confdefs.h. */ | |
12532 | ||
12533 | int | |
12534 | main () | |
12535 | { | |
12536 | ||
12537 | ; | |
12538 | return 0; | |
12539 | } | |
12540 | _ACEOF | |
12541 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12543 | (eval $ac_compile) 2>&5 | |
12544 | ac_status=$? | |
12545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12546 | (exit $ac_status); }; then | |
12547 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12548 | case $ac_file in | |
12549 | conftest.$ac_ext.o) | |
0093c2fc | 12550 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
12551 | ;; |
12552 | *) | |
12553 | ;; | |
12554 | esac | |
12555 | done | |
12556 | else | |
12557 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12558 | See \`config.log' for more details." >&5 | |
12559 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12560 | See \`config.log' for more details." >&2;} | |
12561 | { (exit 1); exit 1; }; } | |
12562 | ||
12563 | fi | |
12564 | ||
12565 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12566 | ||
12567 | fi | |
0093c2fc VZ |
12568 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12569 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12570 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12571 | if test "c" = "c"; then |
0093c2fc | 12572 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12573 | fi |
12574 | if test "c" = "cxx"; then | |
0093c2fc | 12575 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12576 | fi |
12577 | fi | |
12578 | ||
0093c2fc | 12579 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12580 | unset ac_cv_prog_cc_g |
12581 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12582 | ac_save_CFLAGS=$CFLAGS |
8aeeb05c | 12583 | CFLAGS="-g" |
480ccd21 DE |
12584 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12585 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12586 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12588 | else | |
12589 | cat >conftest.$ac_ext <<_ACEOF | |
12590 | /* confdefs.h. */ | |
12591 | _ACEOF | |
12592 | cat confdefs.h >>conftest.$ac_ext | |
12593 | cat >>conftest.$ac_ext <<_ACEOF | |
12594 | /* end confdefs.h. */ | |
12595 | ||
12596 | int | |
12597 | main () | |
12598 | { | |
12599 | ||
12600 | ; | |
12601 | return 0; | |
12602 | } | |
12603 | _ACEOF | |
12604 | rm -f conftest.$ac_objext | |
12605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12606 | (eval $ac_compile) 2>conftest.er1 | |
12607 | ac_status=$? | |
12608 | grep -v '^ *+' conftest.er1 >conftest.err | |
12609 | rm -f conftest.er1 | |
12610 | cat conftest.err >&5 | |
12611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12612 | (exit $ac_status); } && | |
3f60522a JS |
12613 | { ac_try='test -z "$ac_c_werror_flag" |
12614 | || test ! -s conftest.err' | |
480ccd21 DE |
12615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12616 | (eval $ac_try) 2>&5 | |
12617 | ac_status=$? | |
12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12619 | (exit $ac_status); }; } && | |
12620 | { ac_try='test -s conftest.$ac_objext' | |
12621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12622 | (eval $ac_try) 2>&5 | |
12623 | ac_status=$? | |
12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12625 | (exit $ac_status); }; }; then | |
12626 | ac_cv_prog_cc_g=yes | |
12627 | else | |
12628 | echo "$as_me: failed program was:" >&5 | |
12629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12630 | ||
12631 | ac_cv_prog_cc_g=no | |
12632 | fi | |
12633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12634 | fi | |
12635 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12636 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12637 | if test "$ac_test_CFLAGS" = set; then | |
12638 | CFLAGS=$ac_save_CFLAGS | |
12639 | elif test $ac_cv_prog_cc_g = yes; then | |
12640 | if test "$GCC" = yes; then | |
12641 | CFLAGS="-g -O2" | |
12642 | else | |
12643 | CFLAGS="-g" | |
12644 | fi | |
12645 | else | |
12646 | if test "$GCC" = yes; then | |
12647 | CFLAGS="-O2" | |
12648 | else | |
12649 | CFLAGS= | |
12650 | fi | |
12651 | fi | |
3006edc0 | 12652 | fi |
ab0ad5f1 | 12653 | fi |
3006edc0 VZ |
12654 | |
12655 | case `uname -s` in | |
12656 | AIX*) | |
12657 | ac_ext=c | |
12658 | ac_cpp='$CPP $CPPFLAGS' | |
12659 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12660 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12661 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12662 | ||
12663 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12664 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12665 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12667 | else | |
12668 | cat >conftest.$ac_ext <<_ACEOF | |
12669 | /* confdefs.h. */ | |
12670 | _ACEOF | |
12671 | cat confdefs.h >>conftest.$ac_ext | |
12672 | cat >>conftest.$ac_ext <<_ACEOF | |
12673 | /* end confdefs.h. */ | |
12674 | ||
12675 | int | |
12676 | main () | |
12677 | { | |
12678 | #ifndef __xlC__ | |
12679 | choke me | |
12680 | #endif | |
12681 | ||
12682 | ; | |
12683 | return 0; | |
12684 | } | |
12685 | _ACEOF | |
12686 | rm -f conftest.$ac_objext | |
12687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12688 | (eval $ac_compile) 2>conftest.er1 | |
12689 | ac_status=$? | |
12690 | grep -v '^ *+' conftest.er1 >conftest.err | |
12691 | rm -f conftest.er1 | |
12692 | cat conftest.err >&5 | |
12693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12694 | (exit $ac_status); } && | |
3f60522a JS |
12695 | { ac_try='test -z "$ac_c_werror_flag" |
12696 | || test ! -s conftest.err' | |
3006edc0 VZ |
12697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12698 | (eval $ac_try) 2>&5 | |
12699 | ac_status=$? | |
12700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12701 | (exit $ac_status); }; } && | |
12702 | { ac_try='test -s conftest.$ac_objext' | |
12703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12704 | (eval $ac_try) 2>&5 | |
12705 | ac_status=$? | |
12706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12707 | (exit $ac_status); }; }; then | |
0093c2fc | 12708 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12709 | else |
12710 | echo "$as_me: failed program was:" >&5 | |
12711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12712 | ||
0093c2fc | 12713 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12714 | fi |
12715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12716 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12717 | |
12718 | fi | |
0093c2fc VZ |
12719 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12720 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12721 | |
0093c2fc | 12722 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12723 | ac_ext=c |
12724 | ac_cpp='$CPP $CPPFLAGS' | |
12725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12728 | ||
12729 | ||
12730 | ;; | |
12731 | ||
12732 | Darwin) | |
12733 | ac_ext=c | |
95986553 DE |
12734 | ac_cpp='$CPP $CPPFLAGS' |
12735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12738 | ||
12739 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12740 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12741 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12743 | else | |
12744 | cat >conftest.$ac_ext <<_ACEOF | |
12745 | /* confdefs.h. */ | |
12746 | _ACEOF | |
12747 | cat confdefs.h >>conftest.$ac_ext | |
12748 | cat >>conftest.$ac_ext <<_ACEOF | |
12749 | /* end confdefs.h. */ | |
12750 | ||
12751 | int | |
12752 | main () | |
12753 | { | |
12754 | #ifndef __MWERKS__ | |
12755 | choke me | |
12756 | #endif | |
12757 | ||
12758 | ; | |
12759 | return 0; | |
12760 | } | |
12761 | _ACEOF | |
12762 | rm -f conftest.$ac_objext | |
12763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12764 | (eval $ac_compile) 2>conftest.er1 | |
12765 | ac_status=$? | |
12766 | grep -v '^ *+' conftest.er1 >conftest.err | |
12767 | rm -f conftest.er1 | |
12768 | cat conftest.err >&5 | |
12769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12770 | (exit $ac_status); } && | |
3f60522a JS |
12771 | { ac_try='test -z "$ac_c_werror_flag" |
12772 | || test ! -s conftest.err' | |
95986553 DE |
12773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12774 | (eval $ac_try) 2>&5 | |
12775 | ac_status=$? | |
12776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12777 | (exit $ac_status); }; } && | |
12778 | { ac_try='test -s conftest.$ac_objext' | |
12779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12780 | (eval $ac_try) 2>&5 | |
12781 | ac_status=$? | |
12782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12783 | (exit $ac_status); }; }; then | |
12784 | bakefile_compiler_mwerks=yes | |
12785 | else | |
12786 | echo "$as_me: failed program was:" >&5 | |
12787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12788 | ||
12789 | bakefile_compiler_mwerks=no | |
12790 | fi | |
12791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12792 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12793 | ||
12794 | fi | |
12795 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12796 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12797 | ||
0e6fa1d9 | 12798 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12799 | ac_ext=c |
12800 | ac_cpp='$CPP $CPPFLAGS' | |
12801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12804 | ||
12805 | ||
3006edc0 | 12806 | ac_ext=c |
9273ffba DE |
12807 | ac_cpp='$CPP $CPPFLAGS' |
12808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12811 | ||
12812 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12813 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12814 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12816 | else | |
12817 | cat >conftest.$ac_ext <<_ACEOF | |
12818 | /* confdefs.h. */ | |
12819 | _ACEOF | |
12820 | cat confdefs.h >>conftest.$ac_ext | |
12821 | cat >>conftest.$ac_ext <<_ACEOF | |
12822 | /* end confdefs.h. */ | |
12823 | ||
12824 | int | |
12825 | main () | |
12826 | { | |
12827 | #ifndef __xlC__ | |
12828 | choke me | |
12829 | #endif | |
12830 | ||
12831 | ; | |
12832 | return 0; | |
12833 | } | |
12834 | _ACEOF | |
12835 | rm -f conftest.$ac_objext | |
12836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12837 | (eval $ac_compile) 2>conftest.er1 | |
12838 | ac_status=$? | |
12839 | grep -v '^ *+' conftest.er1 >conftest.err | |
12840 | rm -f conftest.er1 | |
12841 | cat conftest.err >&5 | |
12842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12843 | (exit $ac_status); } && | |
3f60522a JS |
12844 | { ac_try='test -z "$ac_c_werror_flag" |
12845 | || test ! -s conftest.err' | |
9273ffba DE |
12846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12847 | (eval $ac_try) 2>&5 | |
12848 | ac_status=$? | |
12849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12850 | (exit $ac_status); }; } && | |
12851 | { ac_try='test -s conftest.$ac_objext' | |
12852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12853 | (eval $ac_try) 2>&5 | |
12854 | ac_status=$? | |
12855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12856 | (exit $ac_status); }; }; then | |
0093c2fc | 12857 | bakefile_compiler_xlc=yes |
9273ffba DE |
12858 | else |
12859 | echo "$as_me: failed program was:" >&5 | |
12860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12861 | ||
0093c2fc | 12862 | bakefile_compiler_xlc=no |
9273ffba DE |
12863 | fi |
12864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12865 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12866 | |
12867 | fi | |
0093c2fc VZ |
12868 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12869 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12870 | |
0093c2fc | 12871 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12872 | ac_ext=c |
12873 | ac_cpp='$CPP $CPPFLAGS' | |
12874 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12875 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12876 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12877 | ||
12878 | ||
3006edc0 VZ |
12879 | ;; |
12880 | ||
12881 | IRIX*) | |
a848cd7e | 12882 | |
6dcfc289 | 12883 | |
0ad5d837 VZ |
12884 | ac_ext=c |
12885 | ac_cpp='$CPP $CPPFLAGS' | |
12886 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12887 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12888 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12889 | ||
12890 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12891 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12892 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12894 | else | |
12895 | cat >conftest.$ac_ext <<_ACEOF | |
12896 | /* confdefs.h. */ | |
12897 | _ACEOF | |
12898 | cat confdefs.h >>conftest.$ac_ext | |
12899 | cat >>conftest.$ac_ext <<_ACEOF | |
12900 | /* end confdefs.h. */ | |
12901 | ||
12902 | int | |
12903 | main () | |
12904 | { | |
12905 | ||
12906 | #ifndef _SGI_COMPILER_VERSION | |
12907 | choke me | |
12908 | #endif | |
12909 | ||
12910 | ; | |
12911 | return 0; | |
12912 | } | |
12913 | _ACEOF | |
12914 | rm -f conftest.$ac_objext | |
12915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12916 | (eval $ac_compile) 2>conftest.er1 | |
12917 | ac_status=$? | |
12918 | grep -v '^ *+' conftest.er1 >conftest.err | |
12919 | rm -f conftest.er1 | |
12920 | cat conftest.err >&5 | |
12921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12922 | (exit $ac_status); } && | |
3f60522a JS |
12923 | { ac_try='test -z "$ac_c_werror_flag" |
12924 | || test ! -s conftest.err' | |
0ad5d837 VZ |
12925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12926 | (eval $ac_try) 2>&5 | |
12927 | ac_status=$? | |
12928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12929 | (exit $ac_status); }; } && | |
12930 | { ac_try='test -s conftest.$ac_objext' | |
12931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12932 | (eval $ac_try) 2>&5 | |
12933 | ac_status=$? | |
12934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12935 | (exit $ac_status); }; }; then | |
12936 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12937 | else | |
12938 | echo "$as_me: failed program was:" >&5 | |
12939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12940 | ||
12941 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12942 | ||
12943 | fi | |
12944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12945 | ||
12946 | ||
12947 | fi | |
12948 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12949 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12950 | ac_ext=c | |
12951 | ac_cpp='$CPP $CPPFLAGS' | |
12952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12955 | ||
12956 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12957 | :; SGICC=yes | |
12958 | else | |
12959 | :; | |
12960 | fi | |
12961 | ||
12962 | ||
3006edc0 VZ |
12963 | ;; |
12964 | ||
0093c2fc | 12965 | HP-UX*) |
3006edc0 VZ |
12966 | |
12967 | ||
12968 | ac_ext=c | |
12969 | ac_cpp='$CPP $CPPFLAGS' | |
12970 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12971 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12972 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12973 | ||
0093c2fc VZ |
12974 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12975 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12976 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
12977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12978 | else | |
12979 | cat >conftest.$ac_ext <<_ACEOF | |
12980 | /* confdefs.h. */ | |
12981 | _ACEOF | |
12982 | cat confdefs.h >>conftest.$ac_ext | |
12983 | cat >>conftest.$ac_ext <<_ACEOF | |
12984 | /* end confdefs.h. */ | |
12985 | ||
12986 | int | |
12987 | main () | |
12988 | { | |
12989 | ||
0093c2fc | 12990 | #ifndef __HP_cc |
3006edc0 VZ |
12991 | choke me |
12992 | #endif | |
12993 | ||
12994 | ; | |
12995 | return 0; | |
12996 | } | |
12997 | _ACEOF | |
12998 | rm -f conftest.$ac_objext | |
12999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13000 | (eval $ac_compile) 2>conftest.er1 | |
13001 | ac_status=$? | |
13002 | grep -v '^ *+' conftest.er1 >conftest.err | |
13003 | rm -f conftest.er1 | |
13004 | cat conftest.err >&5 | |
13005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13006 | (exit $ac_status); } && | |
3f60522a JS |
13007 | { ac_try='test -z "$ac_c_werror_flag" |
13008 | || test ! -s conftest.err' | |
3006edc0 VZ |
13009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13010 | (eval $ac_try) 2>&5 | |
13011 | ac_status=$? | |
13012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13013 | (exit $ac_status); }; } && | |
13014 | { ac_try='test -s conftest.$ac_objext' | |
13015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13016 | (eval $ac_try) 2>&5 | |
13017 | ac_status=$? | |
13018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13019 | (exit $ac_status); }; }; then | |
0093c2fc | 13020 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
13021 | else |
13022 | echo "$as_me: failed program was:" >&5 | |
13023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13024 | ||
0093c2fc | 13025 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
13026 | |
13027 | fi | |
13028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13029 | ||
13030 | ||
13031 | fi | |
0093c2fc VZ |
13032 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
13033 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
13034 | ac_ext=c |
13035 | ac_cpp='$CPP $CPPFLAGS' | |
13036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13039 | ||
0093c2fc VZ |
13040 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
13041 | :; HPCC=yes | |
a1aa0349 VZ |
13042 | else |
13043 | :; | |
13044 | fi | |
13045 | ||
13046 | ||
13047 | ;; | |
13048 | ||
0093c2fc | 13049 | OSF1) |
a1aa0349 VZ |
13050 | |
13051 | ||
13052 | ac_ext=c | |
13053 | ac_cpp='$CPP $CPPFLAGS' | |
13054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13057 | ||
0093c2fc VZ |
13058 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
13059 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
13060 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
13061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13062 | else | |
13063 | cat >conftest.$ac_ext <<_ACEOF | |
13064 | /* confdefs.h. */ | |
13065 | _ACEOF | |
13066 | cat confdefs.h >>conftest.$ac_ext | |
13067 | cat >>conftest.$ac_ext <<_ACEOF | |
13068 | /* end confdefs.h. */ | |
13069 | ||
13070 | int | |
13071 | main () | |
13072 | { | |
13073 | ||
0093c2fc | 13074 | #ifndef __DECC |
a1aa0349 VZ |
13075 | choke me |
13076 | #endif | |
13077 | ||
13078 | ; | |
13079 | return 0; | |
13080 | } | |
13081 | _ACEOF | |
13082 | rm -f conftest.$ac_objext | |
13083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13084 | (eval $ac_compile) 2>conftest.er1 | |
13085 | ac_status=$? | |
13086 | grep -v '^ *+' conftest.er1 >conftest.err | |
13087 | rm -f conftest.er1 | |
13088 | cat conftest.err >&5 | |
13089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13090 | (exit $ac_status); } && | |
3f60522a JS |
13091 | { ac_try='test -z "$ac_c_werror_flag" |
13092 | || test ! -s conftest.err' | |
a1aa0349 VZ |
13093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13094 | (eval $ac_try) 2>&5 | |
13095 | ac_status=$? | |
13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13097 | (exit $ac_status); }; } && | |
13098 | { ac_try='test -s conftest.$ac_objext' | |
13099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13100 | (eval $ac_try) 2>&5 | |
13101 | ac_status=$? | |
13102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13103 | (exit $ac_status); }; }; then | |
0093c2fc | 13104 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
13105 | else |
13106 | echo "$as_me: failed program was:" >&5 | |
13107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13108 | ||
0093c2fc | 13109 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
13110 | |
13111 | fi | |
13112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13113 | ||
13114 | ||
13115 | fi | |
0093c2fc VZ |
13116 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
13117 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
13118 | ac_ext=c |
13119 | ac_cpp='$CPP $CPPFLAGS' | |
13120 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13121 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13122 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13123 | ||
0093c2fc VZ |
13124 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
13125 | :; COMPAQCC=yes | |
13126 | else | |
13127 | :; | |
13128 | fi | |
13129 | ||
13130 | ||
13131 | ;; | |
13132 | ||
13133 | SunOS) | |
13134 | ||
13135 | ||
13136 | ac_ext=c | |
13137 | ac_cpp='$CPP $CPPFLAGS' | |
13138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13141 | ||
13142 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
13143 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
13144 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
13145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13146 | else | |
13147 | cat >conftest.$ac_ext <<_ACEOF | |
13148 | /* confdefs.h. */ | |
13149 | _ACEOF | |
13150 | cat confdefs.h >>conftest.$ac_ext | |
13151 | cat >>conftest.$ac_ext <<_ACEOF | |
13152 | /* end confdefs.h. */ | |
13153 | ||
13154 | int | |
13155 | main () | |
13156 | { | |
13157 | ||
13158 | #ifndef __SUNPRO_C | |
13159 | choke me | |
13160 | #endif | |
13161 | ||
13162 | ; | |
13163 | return 0; | |
13164 | } | |
13165 | _ACEOF | |
13166 | rm -f conftest.$ac_objext | |
13167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13168 | (eval $ac_compile) 2>conftest.er1 | |
13169 | ac_status=$? | |
13170 | grep -v '^ *+' conftest.er1 >conftest.err | |
13171 | rm -f conftest.er1 | |
13172 | cat conftest.err >&5 | |
13173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13174 | (exit $ac_status); } && | |
3f60522a JS |
13175 | { ac_try='test -z "$ac_c_werror_flag" |
13176 | || test ! -s conftest.err' | |
0093c2fc VZ |
13177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13178 | (eval $ac_try) 2>&5 | |
13179 | ac_status=$? | |
13180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13181 | (exit $ac_status); }; } && | |
13182 | { ac_try='test -s conftest.$ac_objext' | |
13183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13184 | (eval $ac_try) 2>&5 | |
13185 | ac_status=$? | |
13186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13187 | (exit $ac_status); }; }; then | |
13188 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
13189 | else | |
13190 | echo "$as_me: failed program was:" >&5 | |
13191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13192 | ||
13193 | bakefile_cv_c_compiler___SUNPRO_C=no | |
13194 | ||
13195 | fi | |
13196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13197 | ||
13198 | ||
13199 | fi | |
13200 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
13201 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
13202 | ac_ext=c | |
13203 | ac_cpp='$CPP $CPPFLAGS' | |
13204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13207 | ||
13208 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
13209 | :; SUNCC=yes | |
3006edc0 VZ |
13210 | else |
13211 | :; | |
13212 | fi | |
13213 | ||
13214 | ||
13215 | ;; | |
13216 | esac | |
ab0ad5f1 | 13217 | fi |
a9e5b1f0 MW |
13218 | |
13219 | ||
3006edc0 | 13220 | |
a848cd7e SC |
13221 | ac_ext=c |
13222 | ac_cpp='$CPP $CPPFLAGS' | |
13223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13226 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
13227 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
13228 | # On Suns, sometimes $CPP names a directory. | |
13229 | if test -n "$CPP" && test -d "$CPP"; then | |
13230 | CPP= | |
13231 | fi | |
13232 | if test -z "$CPP"; then | |
13233 | if test "${ac_cv_prog_CPP+set}" = set; then | |
13234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13235 | else | |
13236 | # Double quotes because CPP needs to be expanded | |
13237 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
13238 | do | |
13239 | ac_preproc_ok=false | |
13240 | for ac_c_preproc_warn_flag in '' yes | |
13241 | do | |
13242 | # Use a header file that comes with gcc, so configuring glibc | |
13243 | # with a fresh cross-compiler works. | |
13244 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13245 | # <limits.h> exists even on freestanding compilers. | |
13246 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13247 | # not just through cpp. "Syntax error" is here to catch this case. | |
13248 | cat >conftest.$ac_ext <<_ACEOF | |
13249 | /* confdefs.h. */ | |
13250 | _ACEOF | |
13251 | cat confdefs.h >>conftest.$ac_ext | |
13252 | cat >>conftest.$ac_ext <<_ACEOF | |
13253 | /* end confdefs.h. */ | |
13254 | #ifdef __STDC__ | |
13255 | # include <limits.h> | |
13256 | #else | |
13257 | # include <assert.h> | |
13258 | #endif | |
ac1cb8d3 | 13259 | Syntax error |
a848cd7e SC |
13260 | _ACEOF |
13261 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13262 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13263 | ac_status=$? | |
13264 | grep -v '^ *+' conftest.er1 >conftest.err | |
13265 | rm -f conftest.er1 | |
13266 | cat conftest.err >&5 | |
13267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13268 | (exit $ac_status); } >/dev/null; then | |
13269 | if test -s conftest.err; then | |
13270 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13271 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13272 | else |
13273 | ac_cpp_err= | |
13274 | fi | |
13275 | else | |
13276 | ac_cpp_err=yes | |
13277 | fi | |
13278 | if test -z "$ac_cpp_err"; then | |
13279 | : | |
13280 | else | |
13281 | echo "$as_me: failed program was:" >&5 | |
13282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13283 | ||
13284 | # Broken: fails on valid input. | |
13285 | continue | |
13286 | fi | |
13287 | rm -f conftest.err conftest.$ac_ext | |
13288 | ||
13289 | # OK, works on sane cases. Now check whether non-existent headers | |
13290 | # can be detected and how. | |
13291 | cat >conftest.$ac_ext <<_ACEOF | |
13292 | /* confdefs.h. */ | |
13293 | _ACEOF | |
13294 | cat confdefs.h >>conftest.$ac_ext | |
13295 | cat >>conftest.$ac_ext <<_ACEOF | |
13296 | /* end confdefs.h. */ | |
13297 | #include <ac_nonexistent.h> | |
13298 | _ACEOF | |
13299 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13300 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13301 | ac_status=$? | |
13302 | grep -v '^ *+' conftest.er1 >conftest.err | |
13303 | rm -f conftest.er1 | |
13304 | cat conftest.err >&5 | |
13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13306 | (exit $ac_status); } >/dev/null; then | |
13307 | if test -s conftest.err; then | |
13308 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13309 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13310 | else |
13311 | ac_cpp_err= | |
13312 | fi | |
13313 | else | |
13314 | ac_cpp_err=yes | |
13315 | fi | |
13316 | if test -z "$ac_cpp_err"; then | |
13317 | # Broken: success on invalid input. | |
13318 | continue | |
13319 | else | |
13320 | echo "$as_me: failed program was:" >&5 | |
13321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13322 | ||
13323 | # Passes both tests. | |
13324 | ac_preproc_ok=: | |
13325 | break | |
13326 | fi | |
13327 | rm -f conftest.err conftest.$ac_ext | |
13328 | ||
13329 | done | |
13330 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13331 | rm -f conftest.err conftest.$ac_ext | |
13332 | if $ac_preproc_ok; then | |
13333 | break | |
13334 | fi | |
13335 | ||
13336 | done | |
13337 | ac_cv_prog_CPP=$CPP | |
13338 | ||
13339 | fi | |
13340 | CPP=$ac_cv_prog_CPP | |
13341 | else | |
13342 | ac_cv_prog_CPP=$CPP | |
13343 | fi | |
13344 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
13345 | echo "${ECHO_T}$CPP" >&6 | |
13346 | ac_preproc_ok=false | |
13347 | for ac_c_preproc_warn_flag in '' yes | |
13348 | do | |
13349 | # Use a header file that comes with gcc, so configuring glibc | |
13350 | # with a fresh cross-compiler works. | |
13351 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13352 | # <limits.h> exists even on freestanding compilers. | |
13353 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13354 | # not just through cpp. "Syntax error" is here to catch this case. | |
13355 | cat >conftest.$ac_ext <<_ACEOF | |
13356 | /* confdefs.h. */ | |
13357 | _ACEOF | |
13358 | cat confdefs.h >>conftest.$ac_ext | |
13359 | cat >>conftest.$ac_ext <<_ACEOF | |
13360 | /* end confdefs.h. */ | |
13361 | #ifdef __STDC__ | |
13362 | # include <limits.h> | |
13363 | #else | |
13364 | # include <assert.h> | |
13365 | #endif | |
ac1cb8d3 | 13366 | Syntax error |
a848cd7e SC |
13367 | _ACEOF |
13368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13370 | ac_status=$? | |
13371 | grep -v '^ *+' conftest.er1 >conftest.err | |
13372 | rm -f conftest.er1 | |
13373 | cat conftest.err >&5 | |
13374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13375 | (exit $ac_status); } >/dev/null; then | |
13376 | if test -s conftest.err; then | |
13377 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13378 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13379 | else |
13380 | ac_cpp_err= | |
13381 | fi | |
13382 | else | |
13383 | ac_cpp_err=yes | |
13384 | fi | |
13385 | if test -z "$ac_cpp_err"; then | |
13386 | : | |
13387 | else | |
13388 | echo "$as_me: failed program was:" >&5 | |
13389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13390 | ||
13391 | # Broken: fails on valid input. | |
13392 | continue | |
13393 | fi | |
13394 | rm -f conftest.err conftest.$ac_ext | |
13395 | ||
13396 | # OK, works on sane cases. Now check whether non-existent headers | |
13397 | # can be detected and how. | |
13398 | cat >conftest.$ac_ext <<_ACEOF | |
13399 | /* confdefs.h. */ | |
13400 | _ACEOF | |
13401 | cat confdefs.h >>conftest.$ac_ext | |
13402 | cat >>conftest.$ac_ext <<_ACEOF | |
13403 | /* end confdefs.h. */ | |
13404 | #include <ac_nonexistent.h> | |
13405 | _ACEOF | |
13406 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13407 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13408 | ac_status=$? | |
13409 | grep -v '^ *+' conftest.er1 >conftest.err | |
13410 | rm -f conftest.er1 | |
13411 | cat conftest.err >&5 | |
13412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13413 | (exit $ac_status); } >/dev/null; then | |
13414 | if test -s conftest.err; then | |
13415 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13416 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13417 | else |
13418 | ac_cpp_err= | |
13419 | fi | |
13420 | else | |
13421 | ac_cpp_err=yes | |
13422 | fi | |
13423 | if test -z "$ac_cpp_err"; then | |
13424 | # Broken: success on invalid input. | |
13425 | continue | |
13426 | else | |
13427 | echo "$as_me: failed program was:" >&5 | |
13428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13429 | ||
13430 | # Passes both tests. | |
13431 | ac_preproc_ok=: | |
13432 | break | |
13433 | fi | |
13434 | rm -f conftest.err conftest.$ac_ext | |
13435 | ||
13436 | done | |
13437 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13438 | rm -f conftest.err conftest.$ac_ext | |
13439 | if $ac_preproc_ok; then | |
13440 | : | |
13441 | else | |
13442 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
13443 | See \`config.log' for more details." >&5 | |
13444 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
13445 | See \`config.log' for more details." >&2;} | |
13446 | { (exit 1); exit 1; }; } | |
13447 | fi | |
13448 | ||
13449 | ac_ext=c | |
13450 | ac_cpp='$CPP $CPPFLAGS' | |
13451 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13452 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13453 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13454 | ||
13455 | ||
13456 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
13457 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
13458 | if test "${ac_cv_prog_egrep+set}" = set; then | |
13459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13460 | else | |
13461 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
13462 | then ac_cv_prog_egrep='grep -E' | |
13463 | else ac_cv_prog_egrep='egrep' | |
13464 | fi | |
13465 | fi | |
13466 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
13467 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
13468 | EGREP=$ac_cv_prog_egrep | |
13469 | ||
13470 | ||
13471 | if test $ac_cv_c_compiler_gnu = yes; then | |
13472 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
13473 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
13474 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
13475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13476 | else | |
13477 | ac_pattern="Autoconf.*'x'" | |
13478 | cat >conftest.$ac_ext <<_ACEOF | |
13479 | /* confdefs.h. */ | |
13480 | _ACEOF | |
13481 | cat confdefs.h >>conftest.$ac_ext | |
13482 | cat >>conftest.$ac_ext <<_ACEOF | |
13483 | /* end confdefs.h. */ | |
13484 | #include <sgtty.h> | |
13485 | Autoconf TIOCGETP | |
13486 | _ACEOF | |
13487 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13488 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13489 | ac_cv_prog_gcc_traditional=yes | |
13490 | else | |
13491 | ac_cv_prog_gcc_traditional=no | |
13492 | fi | |
13493 | rm -f conftest* | |
13494 | ||
13495 | ||
13496 | if test $ac_cv_prog_gcc_traditional = no; then | |
13497 | cat >conftest.$ac_ext <<_ACEOF | |
13498 | /* confdefs.h. */ | |
13499 | _ACEOF | |
13500 | cat confdefs.h >>conftest.$ac_ext | |
13501 | cat >>conftest.$ac_ext <<_ACEOF | |
13502 | /* end confdefs.h. */ | |
13503 | #include <termio.h> | |
13504 | Autoconf TCGETA | |
13505 | _ACEOF | |
13506 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13507 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13508 | ac_cv_prog_gcc_traditional=yes | |
13509 | fi | |
13510 | rm -f conftest* | |
13511 | ||
13512 | fi | |
13513 | fi | |
13514 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
13515 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
13516 | if test $ac_cv_prog_gcc_traditional = yes; then | |
13517 | CC="$CC -traditional" | |
13518 | fi | |
13519 | fi | |
13520 | ||
13521 | ||
a848cd7e SC |
13522 | ac_ext=cc |
13523 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13524 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13525 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13526 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13527 | ||
13528 | ||
13529 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
13530 | |
13531 | ||
3006edc0 | 13532 | |
6dcfc289 | 13533 | ac_ext=cc |
a848cd7e SC |
13534 | ac_cpp='$CXXCPP $CPPFLAGS' |
13535 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13536 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13537 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13538 | if test -n "$ac_tool_prefix"; then | |
13539 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13540 | do | |
13541 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13542 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13545 | if test "${ac_cv_prog_CXX+set}" = set; then | |
13546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13547 | else | |
13548 | if test -n "$CXX"; then | |
13549 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13550 | else | |
13551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13552 | for as_dir in $PATH | |
13553 | do | |
13554 | IFS=$as_save_IFS | |
13555 | test -z "$as_dir" && as_dir=. | |
13556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13558 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13560 | break 2 | |
13561 | fi | |
13562 | done | |
13563 | done | |
13564 | ||
13565 | fi | |
13566 | fi | |
13567 | CXX=$ac_cv_prog_CXX | |
13568 | if test -n "$CXX"; then | |
13569 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13570 | echo "${ECHO_T}$CXX" >&6 | |
13571 | else | |
13572 | echo "$as_me:$LINENO: result: no" >&5 | |
13573 | echo "${ECHO_T}no" >&6 | |
13574 | fi | |
13575 | ||
13576 | test -n "$CXX" && break | |
13577 | done | |
13578 | fi | |
13579 | if test -z "$CXX"; then | |
13580 | ac_ct_CXX=$CXX | |
13581 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13582 | do | |
13583 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13584 | set dummy $ac_prog; ac_word=$2 | |
13585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13587 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13589 | else | |
13590 | if test -n "$ac_ct_CXX"; then | |
13591 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13592 | else | |
13593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13594 | for as_dir in $PATH | |
13595 | do | |
13596 | IFS=$as_save_IFS | |
13597 | test -z "$as_dir" && as_dir=. | |
13598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13600 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13602 | break 2 | |
13603 | fi | |
13604 | done | |
13605 | done | |
13606 | ||
13607 | fi | |
13608 | fi | |
13609 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13610 | if test -n "$ac_ct_CXX"; then | |
13611 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13612 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13613 | else | |
13614 | echo "$as_me:$LINENO: result: no" >&5 | |
13615 | echo "${ECHO_T}no" >&6 | |
13616 | fi | |
13617 | ||
13618 | test -n "$ac_ct_CXX" && break | |
13619 | done | |
13620 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13621 | ||
13622 | CXX=$ac_ct_CXX | |
13623 | fi | |
13624 | ||
13625 | ||
13626 | # Provide some information about the compiler. | |
13627 | echo "$as_me:$LINENO:" \ | |
13628 | "checking for C++ compiler version" >&5 | |
13629 | ac_compiler=`set X $ac_compile; echo $2` | |
13630 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13631 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13632 | ac_status=$? | |
13633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13634 | (exit $ac_status); } | |
13635 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13636 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13637 | ac_status=$? | |
13638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13639 | (exit $ac_status); } | |
13640 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13641 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13642 | ac_status=$? | |
13643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13644 | (exit $ac_status); } | |
13645 | ||
13646 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13647 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13648 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
13649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13650 | else | |
13651 | cat >conftest.$ac_ext <<_ACEOF | |
13652 | /* confdefs.h. */ | |
13653 | _ACEOF | |
13654 | cat confdefs.h >>conftest.$ac_ext | |
13655 | cat >>conftest.$ac_ext <<_ACEOF | |
13656 | /* end confdefs.h. */ | |
13657 | ||
13658 | int | |
13659 | main () | |
13660 | { | |
13661 | #ifndef __GNUC__ | |
13662 | choke me | |
13663 | #endif | |
13664 | ||
13665 | ; | |
13666 | return 0; | |
13667 | } | |
13668 | _ACEOF | |
13669 | rm -f conftest.$ac_objext | |
13670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13671 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13672 | ac_status=$? |
ac1cb8d3 VS |
13673 | grep -v '^ *+' conftest.er1 >conftest.err |
13674 | rm -f conftest.er1 | |
13675 | cat conftest.err >&5 | |
a848cd7e SC |
13676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13677 | (exit $ac_status); } && | |
3f60522a JS |
13678 | { ac_try='test -z "$ac_cxx_werror_flag" |
13679 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13681 | (eval $ac_try) 2>&5 | |
13682 | ac_status=$? | |
13683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13684 | (exit $ac_status); }; } && | |
13685 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13687 | (eval $ac_try) 2>&5 | |
13688 | ac_status=$? | |
13689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13690 | (exit $ac_status); }; }; then | |
13691 | ac_compiler_gnu=yes | |
13692 | else | |
13693 | echo "$as_me: failed program was:" >&5 | |
13694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13695 | ||
13696 | ac_compiler_gnu=no | |
13697 | fi | |
ac1cb8d3 | 13698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13699 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13700 | ||
13701 | fi | |
13702 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13703 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13704 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13705 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13706 | ac_save_CXXFLAGS=$CXXFLAGS | |
13707 | CXXFLAGS="-g" | |
13708 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13709 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13710 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13712 | else | |
13713 | cat >conftest.$ac_ext <<_ACEOF | |
13714 | /* confdefs.h. */ | |
13715 | _ACEOF | |
13716 | cat confdefs.h >>conftest.$ac_ext | |
13717 | cat >>conftest.$ac_ext <<_ACEOF | |
13718 | /* end confdefs.h. */ | |
13719 | ||
13720 | int | |
13721 | main () | |
13722 | { | |
13723 | ||
13724 | ; | |
13725 | return 0; | |
13726 | } | |
13727 | _ACEOF | |
13728 | rm -f conftest.$ac_objext | |
13729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13730 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13731 | ac_status=$? |
ac1cb8d3 VS |
13732 | grep -v '^ *+' conftest.er1 >conftest.err |
13733 | rm -f conftest.er1 | |
13734 | cat conftest.err >&5 | |
a848cd7e SC |
13735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13736 | (exit $ac_status); } && | |
3f60522a JS |
13737 | { ac_try='test -z "$ac_cxx_werror_flag" |
13738 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13740 | (eval $ac_try) 2>&5 | |
13741 | ac_status=$? | |
13742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13743 | (exit $ac_status); }; } && | |
13744 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13746 | (eval $ac_try) 2>&5 | |
13747 | ac_status=$? | |
13748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13749 | (exit $ac_status); }; }; then | |
13750 | ac_cv_prog_cxx_g=yes | |
13751 | else | |
13752 | echo "$as_me: failed program was:" >&5 | |
13753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13754 | ||
13755 | ac_cv_prog_cxx_g=no | |
13756 | fi | |
ac1cb8d3 | 13757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13758 | fi |
13759 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13760 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13761 | if test "$ac_test_CXXFLAGS" = set; then | |
13762 | CXXFLAGS=$ac_save_CXXFLAGS | |
13763 | elif test $ac_cv_prog_cxx_g = yes; then | |
13764 | if test "$GXX" = yes; then | |
8aeeb05c | 13765 | CXXFLAGS="-g -O2" |
a848cd7e | 13766 | else |
8aeeb05c | 13767 | CXXFLAGS="-g" |
a848cd7e SC |
13768 | fi |
13769 | else | |
13770 | if test "$GXX" = yes; then | |
13771 | CXXFLAGS="-O2" | |
13772 | else | |
13773 | CXXFLAGS= | |
13774 | fi | |
13775 | fi | |
13776 | for ac_declaration in \ | |
ac1cb8d3 | 13777 | '' \ |
a848cd7e SC |
13778 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13779 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13780 | 'extern "C" void exit (int) throw ();' \ | |
13781 | 'extern "C" void exit (int);' \ | |
13782 | 'void exit (int);' | |
13783 | do | |
13784 | cat >conftest.$ac_ext <<_ACEOF | |
13785 | /* confdefs.h. */ | |
13786 | _ACEOF | |
13787 | cat confdefs.h >>conftest.$ac_ext | |
13788 | cat >>conftest.$ac_ext <<_ACEOF | |
13789 | /* end confdefs.h. */ | |
de59c161 | 13790 | $ac_declaration |
ac1cb8d3 | 13791 | #include <stdlib.h> |
a848cd7e SC |
13792 | int |
13793 | main () | |
13794 | { | |
13795 | exit (42); | |
13796 | ; | |
13797 | return 0; | |
13798 | } | |
13799 | _ACEOF | |
13800 | rm -f conftest.$ac_objext | |
13801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13802 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13803 | ac_status=$? |
ac1cb8d3 VS |
13804 | grep -v '^ *+' conftest.er1 >conftest.err |
13805 | rm -f conftest.er1 | |
13806 | cat conftest.err >&5 | |
a848cd7e SC |
13807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13808 | (exit $ac_status); } && | |
3f60522a JS |
13809 | { ac_try='test -z "$ac_cxx_werror_flag" |
13810 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13812 | (eval $ac_try) 2>&5 | |
13813 | ac_status=$? | |
13814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13815 | (exit $ac_status); }; } && | |
13816 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13818 | (eval $ac_try) 2>&5 | |
13819 | ac_status=$? | |
13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13821 | (exit $ac_status); }; }; then | |
13822 | : | |
13823 | else | |
13824 | echo "$as_me: failed program was:" >&5 | |
13825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13826 | ||
13827 | continue | |
13828 | fi | |
ac1cb8d3 | 13829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13830 | cat >conftest.$ac_ext <<_ACEOF |
13831 | /* confdefs.h. */ | |
13832 | _ACEOF | |
13833 | cat confdefs.h >>conftest.$ac_ext | |
13834 | cat >>conftest.$ac_ext <<_ACEOF | |
13835 | /* end confdefs.h. */ | |
13836 | $ac_declaration | |
13837 | int | |
13838 | main () | |
13839 | { | |
13840 | exit (42); | |
13841 | ; | |
13842 | return 0; | |
13843 | } | |
13844 | _ACEOF | |
13845 | rm -f conftest.$ac_objext | |
13846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13848 | ac_status=$? |
ac1cb8d3 VS |
13849 | grep -v '^ *+' conftest.er1 >conftest.err |
13850 | rm -f conftest.er1 | |
13851 | cat conftest.err >&5 | |
a848cd7e SC |
13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13853 | (exit $ac_status); } && | |
3f60522a JS |
13854 | { ac_try='test -z "$ac_cxx_werror_flag" |
13855 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13857 | (eval $ac_try) 2>&5 | |
13858 | ac_status=$? | |
13859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13860 | (exit $ac_status); }; } && | |
13861 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13863 | (eval $ac_try) 2>&5 | |
13864 | ac_status=$? | |
13865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13866 | (exit $ac_status); }; }; then | |
13867 | break | |
13868 | else | |
13869 | echo "$as_me: failed program was:" >&5 | |
13870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13871 | ||
13872 | fi | |
ac1cb8d3 | 13873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13874 | done |
13875 | rm -f conftest* | |
13876 | if test -n "$ac_declaration"; then | |
13877 | echo '#ifdef __cplusplus' >>confdefs.h | |
13878 | echo $ac_declaration >>confdefs.h | |
13879 | echo '#endif' >>confdefs.h | |
13880 | fi | |
13881 | ||
13882 | ac_ext=cc | |
13883 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13884 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13885 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13886 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13887 | ||
ab0ad5f1 VZ |
13888 | |
13889 | ||
13890 | ac_ext=cc | |
13891 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13892 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13893 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13894 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13895 | ||
13896 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13897 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13898 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13900 | else | |
13901 | cat >conftest.$ac_ext <<_ACEOF | |
13902 | /* confdefs.h. */ | |
13903 | _ACEOF | |
13904 | cat confdefs.h >>conftest.$ac_ext | |
13905 | cat >>conftest.$ac_ext <<_ACEOF | |
13906 | /* end confdefs.h. */ | |
13907 | ||
13908 | int | |
13909 | main () | |
13910 | { | |
13911 | ||
13912 | #ifndef __INTEL_COMPILER | |
13913 | choke me | |
13914 | #endif | |
13915 | ||
13916 | ; | |
13917 | return 0; | |
13918 | } | |
13919 | _ACEOF | |
13920 | rm -f conftest.$ac_objext | |
13921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13922 | (eval $ac_compile) 2>conftest.er1 | |
13923 | ac_status=$? | |
13924 | grep -v '^ *+' conftest.er1 >conftest.err | |
13925 | rm -f conftest.er1 | |
13926 | cat conftest.err >&5 | |
13927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13928 | (exit $ac_status); } && | |
3f60522a JS |
13929 | { ac_try='test -z "$ac_cxx_werror_flag" |
13930 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
13931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13932 | (eval $ac_try) 2>&5 | |
13933 | ac_status=$? | |
13934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13935 | (exit $ac_status); }; } && | |
13936 | { ac_try='test -s conftest.$ac_objext' | |
13937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13938 | (eval $ac_try) 2>&5 | |
13939 | ac_status=$? | |
13940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13941 | (exit $ac_status); }; }; then | |
13942 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13943 | else | |
13944 | echo "$as_me: failed program was:" >&5 | |
13945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13946 | ||
13947 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13948 | ||
13949 | fi | |
13950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13951 | ||
13952 | ||
13953 | fi | |
13954 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13955 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13956 | ac_ext=cc | |
13957 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13958 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13959 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13960 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13961 | ||
13962 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13963 | :; INTELCXX=yes | |
13964 | else | |
13965 | :; | |
13966 | fi | |
13967 | ||
13968 | ||
3006edc0 VZ |
13969 | if test "x$GCXX" != "xyes"; then |
13970 | if test "xCXX" = "xC"; then | |
13971 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13972 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 13973 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13975 | else | |
13976 | cat >conftest.$ac_ext <<_ACEOF | |
13977 | /* confdefs.h. */ | |
13978 | _ACEOF | |
13979 | cat confdefs.h >>conftest.$ac_ext | |
13980 | cat >>conftest.$ac_ext <<_ACEOF | |
13981 | /* end confdefs.h. */ | |
13982 | ||
13983 | int | |
13984 | main () | |
13985 | { | |
13986 | ||
13987 | ; | |
13988 | return 0; | |
13989 | } | |
13990 | _ACEOF | |
13991 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13993 | (eval $ac_compile) 2>&5 | |
13994 | ac_status=$? | |
13995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13996 | (exit $ac_status); }; then | |
13997 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13998 | case $ac_file in | |
13999 | conftest.$ac_ext.o) | |
0093c2fc | 14000 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
14001 | ;; |
14002 | *) | |
14003 | ;; | |
14004 | esac | |
14005 | done | |
14006 | else | |
14007 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
14008 | See \`config.log' for more details." >&5 | |
14009 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
14010 | See \`config.log' for more details." >&2;} | |
14011 | { (exit 1); exit 1; }; } | |
14012 | ||
14013 | fi | |
14014 | ||
14015 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
14016 | ||
14017 | fi | |
0093c2fc VZ |
14018 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
14019 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
14020 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 14021 | if test "cxx" = "c"; then |
0093c2fc | 14022 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
14023 | fi |
14024 | if test "cxx" = "cxx"; then | |
0093c2fc | 14025 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
14026 | fi |
14027 | fi | |
14028 | ||
0093c2fc | 14029 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
14030 | unset ac_cv_prog_cc_g |
14031 | ac_test_CFLAGS=${CFLAGS+set} | |
14032 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 14033 | CFLAGS="-g" |
3006edc0 VZ |
14034 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
14035 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
14036 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
14037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14038 | else | |
14039 | cat >conftest.$ac_ext <<_ACEOF | |
14040 | /* confdefs.h. */ | |
14041 | _ACEOF | |
14042 | cat confdefs.h >>conftest.$ac_ext | |
14043 | cat >>conftest.$ac_ext <<_ACEOF | |
14044 | /* end confdefs.h. */ | |
14045 | ||
14046 | int | |
14047 | main () | |
14048 | { | |
14049 | ||
14050 | ; | |
14051 | return 0; | |
14052 | } | |
14053 | _ACEOF | |
14054 | rm -f conftest.$ac_objext | |
14055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14056 | (eval $ac_compile) 2>conftest.er1 | |
14057 | ac_status=$? | |
14058 | grep -v '^ *+' conftest.er1 >conftest.err | |
14059 | rm -f conftest.er1 | |
14060 | cat conftest.err >&5 | |
14061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14062 | (exit $ac_status); } && | |
3f60522a JS |
14063 | { ac_try='test -z "$ac_cxx_werror_flag" |
14064 | || test ! -s conftest.err' | |
480ccd21 DE |
14065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14066 | (eval $ac_try) 2>&5 | |
14067 | ac_status=$? | |
14068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14069 | (exit $ac_status); }; } && | |
14070 | { ac_try='test -s conftest.$ac_objext' | |
14071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14072 | (eval $ac_try) 2>&5 | |
14073 | ac_status=$? | |
14074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14075 | (exit $ac_status); }; }; then | |
3006edc0 | 14076 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
14077 | else |
14078 | echo "$as_me: failed program was:" >&5 | |
14079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14080 | ||
3006edc0 | 14081 | ac_cv_prog_cc_g=no |
480ccd21 DE |
14082 | fi |
14083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14084 | fi | |
3006edc0 VZ |
14085 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
14086 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
14087 | if test "$ac_test_CFLAGS" = set; then | |
14088 | CFLAGS=$ac_save_CFLAGS | |
14089 | elif test $ac_cv_prog_cc_g = yes; then | |
14090 | if test "$GCC" = yes; then | |
14091 | CFLAGS="-g -O2" | |
480ccd21 | 14092 | else |
3006edc0 | 14093 | CFLAGS="-g" |
480ccd21 DE |
14094 | fi |
14095 | else | |
3006edc0 VZ |
14096 | if test "$GCC" = yes; then |
14097 | CFLAGS="-O2" | |
480ccd21 | 14098 | else |
3006edc0 | 14099 | CFLAGS= |
480ccd21 DE |
14100 | fi |
14101 | fi | |
3006edc0 | 14102 | fi |
ab0ad5f1 | 14103 | fi |
3006edc0 VZ |
14104 | |
14105 | case `uname -s` in | |
14106 | AIX*) | |
14107 | ac_ext=cc | |
14108 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14109 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14110 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14111 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14112 | ||
14113 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
14114 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 14115 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
14116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14117 | else | |
14118 | cat >conftest.$ac_ext <<_ACEOF | |
14119 | /* confdefs.h. */ | |
14120 | _ACEOF | |
14121 | cat confdefs.h >>conftest.$ac_ext | |
14122 | cat >>conftest.$ac_ext <<_ACEOF | |
14123 | /* end confdefs.h. */ | |
14124 | ||
14125 | int | |
14126 | main () | |
14127 | { | |
14128 | #ifndef __xlC__ | |
14129 | choke me | |
14130 | #endif | |
14131 | ||
14132 | ; | |
14133 | return 0; | |
14134 | } | |
14135 | _ACEOF | |
14136 | rm -f conftest.$ac_objext | |
14137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14138 | (eval $ac_compile) 2>conftest.er1 | |
14139 | ac_status=$? | |
14140 | grep -v '^ *+' conftest.er1 >conftest.err | |
14141 | rm -f conftest.er1 | |
14142 | cat conftest.err >&5 | |
14143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14144 | (exit $ac_status); } && | |
3f60522a JS |
14145 | { ac_try='test -z "$ac_cxx_werror_flag" |
14146 | || test ! -s conftest.err' | |
3006edc0 VZ |
14147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14148 | (eval $ac_try) 2>&5 | |
14149 | ac_status=$? | |
14150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14151 | (exit $ac_status); }; } && | |
14152 | { ac_try='test -s conftest.$ac_objext' | |
14153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14154 | (eval $ac_try) 2>&5 | |
14155 | ac_status=$? | |
14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14157 | (exit $ac_status); }; }; then | |
0093c2fc | 14158 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
14159 | else |
14160 | echo "$as_me: failed program was:" >&5 | |
14161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14162 | ||
0093c2fc | 14163 | bakefile_compiler_xlc=no |
3006edc0 VZ |
14164 | fi |
14165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14166 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
14167 | |
14168 | fi | |
0093c2fc VZ |
14169 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14170 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 14171 | |
0093c2fc | 14172 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
14173 | ac_ext=cc |
14174 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14175 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14176 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14177 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14178 | ||
14179 | ||
14180 | ;; | |
14181 | ||
14182 | Darwin) | |
14183 | ac_ext=cc | |
95986553 DE |
14184 | ac_cpp='$CXXCPP $CPPFLAGS' |
14185 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14186 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14187 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14188 | ||
14189 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
14190 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
14191 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
14192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14193 | else | |
14194 | cat >conftest.$ac_ext <<_ACEOF | |
14195 | /* confdefs.h. */ | |
14196 | _ACEOF | |
14197 | cat confdefs.h >>conftest.$ac_ext | |
14198 | cat >>conftest.$ac_ext <<_ACEOF | |
14199 | /* end confdefs.h. */ | |
14200 | ||
14201 | int | |
14202 | main () | |
14203 | { | |
14204 | #ifndef __MWERKS__ | |
14205 | choke me | |
14206 | #endif | |
14207 | ||
14208 | ; | |
14209 | return 0; | |
14210 | } | |
14211 | _ACEOF | |
14212 | rm -f conftest.$ac_objext | |
14213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14214 | (eval $ac_compile) 2>conftest.er1 | |
14215 | ac_status=$? | |
14216 | grep -v '^ *+' conftest.er1 >conftest.err | |
14217 | rm -f conftest.er1 | |
14218 | cat conftest.err >&5 | |
14219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14220 | (exit $ac_status); } && | |
3f60522a JS |
14221 | { ac_try='test -z "$ac_cxx_werror_flag" |
14222 | || test ! -s conftest.err' | |
95986553 DE |
14223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14224 | (eval $ac_try) 2>&5 | |
14225 | ac_status=$? | |
14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14227 | (exit $ac_status); }; } && | |
14228 | { ac_try='test -s conftest.$ac_objext' | |
14229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14230 | (eval $ac_try) 2>&5 | |
14231 | ac_status=$? | |
14232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14233 | (exit $ac_status); }; }; then | |
14234 | bakefile_compiler_mwerks=yes | |
14235 | else | |
14236 | echo "$as_me: failed program was:" >&5 | |
14237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14238 | ||
14239 | bakefile_compiler_mwerks=no | |
14240 | fi | |
14241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14242 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
14243 | ||
14244 | fi | |
14245 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
14246 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
14247 | ||
0e6fa1d9 | 14248 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
14249 | ac_ext=cc |
14250 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14251 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14252 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14253 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14254 | ||
14255 | ||
3006edc0 | 14256 | ac_ext=cc |
9273ffba DE |
14257 | ac_cpp='$CXXCPP $CPPFLAGS' |
14258 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14259 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14260 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14261 | ||
14262 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
14263 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 14264 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
14265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14266 | else | |
14267 | cat >conftest.$ac_ext <<_ACEOF | |
14268 | /* confdefs.h. */ | |
14269 | _ACEOF | |
14270 | cat confdefs.h >>conftest.$ac_ext | |
14271 | cat >>conftest.$ac_ext <<_ACEOF | |
14272 | /* end confdefs.h. */ | |
14273 | ||
14274 | int | |
14275 | main () | |
14276 | { | |
14277 | #ifndef __xlC__ | |
14278 | choke me | |
14279 | #endif | |
14280 | ||
14281 | ; | |
14282 | return 0; | |
14283 | } | |
14284 | _ACEOF | |
14285 | rm -f conftest.$ac_objext | |
14286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14287 | (eval $ac_compile) 2>conftest.er1 | |
14288 | ac_status=$? | |
14289 | grep -v '^ *+' conftest.er1 >conftest.err | |
14290 | rm -f conftest.er1 | |
14291 | cat conftest.err >&5 | |
14292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14293 | (exit $ac_status); } && | |
3f60522a JS |
14294 | { ac_try='test -z "$ac_cxx_werror_flag" |
14295 | || test ! -s conftest.err' | |
9273ffba DE |
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' | |
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 | |
0093c2fc | 14307 | bakefile_compiler_xlc=yes |
9273ffba DE |
14308 | else |
14309 | echo "$as_me: failed program was:" >&5 | |
14310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14311 | ||
0093c2fc | 14312 | bakefile_compiler_xlc=no |
9273ffba DE |
14313 | fi |
14314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14315 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
14316 | |
14317 | fi | |
0093c2fc VZ |
14318 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14319 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 14320 | |
0093c2fc | 14321 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
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 | ||
14328 | ||
3006edc0 VZ |
14329 | ;; |
14330 | ||
14331 | IRIX*) | |
95986553 | 14332 | |
6dcfc289 | 14333 | |
0ad5d837 VZ |
14334 | ac_ext=cc |
14335 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14336 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14337 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14338 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14339 | ||
14340 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
14341 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
14342 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
14343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14344 | else | |
14345 | cat >conftest.$ac_ext <<_ACEOF | |
14346 | /* confdefs.h. */ | |
14347 | _ACEOF | |
14348 | cat confdefs.h >>conftest.$ac_ext | |
14349 | cat >>conftest.$ac_ext <<_ACEOF | |
14350 | /* end confdefs.h. */ | |
14351 | ||
14352 | int | |
14353 | main () | |
14354 | { | |
14355 | ||
14356 | #ifndef _SGI_COMPILER_VERSION | |
14357 | choke me | |
14358 | #endif | |
14359 | ||
14360 | ; | |
14361 | return 0; | |
14362 | } | |
14363 | _ACEOF | |
14364 | rm -f conftest.$ac_objext | |
14365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14366 | (eval $ac_compile) 2>conftest.er1 | |
14367 | ac_status=$? | |
14368 | grep -v '^ *+' conftest.er1 >conftest.err | |
14369 | rm -f conftest.er1 | |
14370 | cat conftest.err >&5 | |
14371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14372 | (exit $ac_status); } && | |
3f60522a JS |
14373 | { ac_try='test -z "$ac_cxx_werror_flag" |
14374 | || test ! -s conftest.err' | |
0ad5d837 VZ |
14375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14376 | (eval $ac_try) 2>&5 | |
14377 | ac_status=$? | |
14378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14379 | (exit $ac_status); }; } && | |
14380 | { ac_try='test -s conftest.$ac_objext' | |
14381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14382 | (eval $ac_try) 2>&5 | |
14383 | ac_status=$? | |
14384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14385 | (exit $ac_status); }; }; then | |
14386 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
14387 | else | |
14388 | echo "$as_me: failed program was:" >&5 | |
14389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14390 | ||
14391 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
14392 | ||
14393 | fi | |
14394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14395 | ||
14396 | ||
14397 | fi | |
14398 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
14399 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
14400 | ac_ext=cc | |
14401 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14402 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14403 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14404 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14405 | ||
14406 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
14407 | :; SGICXX=yes | |
14408 | else | |
14409 | :; | |
14410 | fi | |
14411 | ||
14412 | ||
3006edc0 VZ |
14413 | ;; |
14414 | ||
0093c2fc | 14415 | HP-UX*) |
3006edc0 VZ |
14416 | |
14417 | ||
14418 | ac_ext=cc | |
14419 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14420 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14421 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14422 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14423 | ||
0093c2fc VZ |
14424 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
14425 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
14426 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
14427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14428 | else | |
14429 | cat >conftest.$ac_ext <<_ACEOF | |
14430 | /* confdefs.h. */ | |
14431 | _ACEOF | |
14432 | cat confdefs.h >>conftest.$ac_ext | |
14433 | cat >>conftest.$ac_ext <<_ACEOF | |
14434 | /* end confdefs.h. */ | |
14435 | ||
14436 | int | |
14437 | main () | |
14438 | { | |
14439 | ||
0093c2fc | 14440 | #ifndef __HP_aCC |
3006edc0 VZ |
14441 | choke me |
14442 | #endif | |
14443 | ||
14444 | ; | |
14445 | return 0; | |
14446 | } | |
14447 | _ACEOF | |
14448 | rm -f conftest.$ac_objext | |
14449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14450 | (eval $ac_compile) 2>conftest.er1 | |
14451 | ac_status=$? | |
14452 | grep -v '^ *+' conftest.er1 >conftest.err | |
14453 | rm -f conftest.er1 | |
14454 | cat conftest.err >&5 | |
14455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14456 | (exit $ac_status); } && | |
3f60522a JS |
14457 | { ac_try='test -z "$ac_cxx_werror_flag" |
14458 | || test ! -s conftest.err' | |
3006edc0 VZ |
14459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14460 | (eval $ac_try) 2>&5 | |
14461 | ac_status=$? | |
14462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14463 | (exit $ac_status); }; } && | |
14464 | { ac_try='test -s conftest.$ac_objext' | |
14465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14466 | (eval $ac_try) 2>&5 | |
14467 | ac_status=$? | |
14468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14469 | (exit $ac_status); }; }; then | |
0093c2fc | 14470 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
14471 | else |
14472 | echo "$as_me: failed program was:" >&5 | |
14473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14474 | ||
0093c2fc | 14475 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
14476 | |
14477 | fi | |
14478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14479 | ||
14480 | ||
14481 | fi | |
0093c2fc VZ |
14482 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
14483 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
14484 | ac_ext=cc |
14485 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14486 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14487 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14488 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14489 | ||
0093c2fc VZ |
14490 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
14491 | :; HPCXX=yes | |
a1aa0349 VZ |
14492 | else |
14493 | :; | |
14494 | fi | |
14495 | ||
14496 | ||
14497 | ;; | |
14498 | ||
0093c2fc | 14499 | OSF1) |
a1aa0349 VZ |
14500 | |
14501 | ||
14502 | ac_ext=cc | |
14503 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14504 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14505 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14506 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14507 | ||
0093c2fc VZ |
14508 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
14509 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
14510 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
14511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14512 | else | |
14513 | cat >conftest.$ac_ext <<_ACEOF | |
14514 | /* confdefs.h. */ | |
14515 | _ACEOF | |
14516 | cat confdefs.h >>conftest.$ac_ext | |
14517 | cat >>conftest.$ac_ext <<_ACEOF | |
14518 | /* end confdefs.h. */ | |
14519 | ||
14520 | int | |
14521 | main () | |
14522 | { | |
14523 | ||
0093c2fc | 14524 | #ifndef __DECCXX |
a1aa0349 VZ |
14525 | choke me |
14526 | #endif | |
14527 | ||
14528 | ; | |
14529 | return 0; | |
14530 | } | |
14531 | _ACEOF | |
14532 | rm -f conftest.$ac_objext | |
14533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14534 | (eval $ac_compile) 2>conftest.er1 | |
14535 | ac_status=$? | |
14536 | grep -v '^ *+' conftest.er1 >conftest.err | |
14537 | rm -f conftest.er1 | |
14538 | cat conftest.err >&5 | |
14539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14540 | (exit $ac_status); } && | |
3f60522a JS |
14541 | { ac_try='test -z "$ac_cxx_werror_flag" |
14542 | || test ! -s conftest.err' | |
a1aa0349 VZ |
14543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14544 | (eval $ac_try) 2>&5 | |
14545 | ac_status=$? | |
14546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14547 | (exit $ac_status); }; } && | |
14548 | { ac_try='test -s conftest.$ac_objext' | |
14549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14550 | (eval $ac_try) 2>&5 | |
14551 | ac_status=$? | |
14552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14553 | (exit $ac_status); }; }; then | |
0093c2fc | 14554 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14555 | else |
14556 | echo "$as_me: failed program was:" >&5 | |
14557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14558 | ||
0093c2fc | 14559 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14560 | |
14561 | fi | |
14562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14563 | ||
14564 | ||
14565 | fi | |
0093c2fc VZ |
14566 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14567 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14568 | ac_ext=cc |
14569 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14570 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14571 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14572 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14573 | ||
0093c2fc VZ |
14574 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14575 | :; COMPAQCXX=yes | |
14576 | else | |
14577 | :; | |
14578 | fi | |
14579 | ||
14580 | ||
14581 | ;; | |
14582 | ||
14583 | SunOS) | |
14584 | ||
14585 | ||
14586 | ac_ext=cc | |
14587 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14588 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14589 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14590 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14591 | ||
14592 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14593 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14594 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14596 | else | |
14597 | cat >conftest.$ac_ext <<_ACEOF | |
14598 | /* confdefs.h. */ | |
14599 | _ACEOF | |
14600 | cat confdefs.h >>conftest.$ac_ext | |
14601 | cat >>conftest.$ac_ext <<_ACEOF | |
14602 | /* end confdefs.h. */ | |
14603 | ||
14604 | int | |
14605 | main () | |
14606 | { | |
14607 | ||
14608 | #ifndef __SUNPRO_CC | |
14609 | choke me | |
14610 | #endif | |
14611 | ||
14612 | ; | |
14613 | return 0; | |
14614 | } | |
14615 | _ACEOF | |
14616 | rm -f conftest.$ac_objext | |
14617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14618 | (eval $ac_compile) 2>conftest.er1 | |
14619 | ac_status=$? | |
14620 | grep -v '^ *+' conftest.er1 >conftest.err | |
14621 | rm -f conftest.er1 | |
14622 | cat conftest.err >&5 | |
14623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14624 | (exit $ac_status); } && | |
3f60522a JS |
14625 | { ac_try='test -z "$ac_cxx_werror_flag" |
14626 | || test ! -s conftest.err' | |
0093c2fc VZ |
14627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14628 | (eval $ac_try) 2>&5 | |
14629 | ac_status=$? | |
14630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14631 | (exit $ac_status); }; } && | |
14632 | { ac_try='test -s conftest.$ac_objext' | |
14633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14634 | (eval $ac_try) 2>&5 | |
14635 | ac_status=$? | |
14636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14637 | (exit $ac_status); }; }; then | |
14638 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14639 | else | |
14640 | echo "$as_me: failed program was:" >&5 | |
14641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14642 | ||
14643 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14644 | ||
14645 | fi | |
14646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14647 | ||
14648 | ||
14649 | fi | |
14650 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14651 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14652 | ac_ext=cc | |
14653 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14654 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14655 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14656 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14657 | ||
14658 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14659 | :; SUNCXX=yes | |
3006edc0 VZ |
14660 | else |
14661 | :; | |
ab0ad5f1 | 14662 | fi |
a9e5b1f0 MW |
14663 | |
14664 | ||
3006edc0 VZ |
14665 | ;; |
14666 | esac | |
14667 | fi | |
14668 | ||
14669 | ||
14670 | ||
a848cd7e SC |
14671 | if test -n "$ac_tool_prefix"; then |
14672 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14673 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14674 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14676 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14678 | else | |
14679 | if test -n "$RANLIB"; then | |
14680 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14681 | else | |
14682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14683 | for as_dir in $PATH | |
14684 | do | |
14685 | IFS=$as_save_IFS | |
14686 | test -z "$as_dir" && as_dir=. | |
14687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14688 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14689 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14691 | break 2 | |
14692 | fi | |
14693 | done | |
14694 | done | |
14695 | ||
14696 | fi | |
14697 | fi | |
14698 | RANLIB=$ac_cv_prog_RANLIB | |
14699 | if test -n "$RANLIB"; then | |
14700 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14701 | echo "${ECHO_T}$RANLIB" >&6 | |
14702 | else | |
14703 | echo "$as_me:$LINENO: result: no" >&5 | |
14704 | echo "${ECHO_T}no" >&6 | |
14705 | fi | |
14706 | ||
14707 | fi | |
14708 | if test -z "$ac_cv_prog_RANLIB"; then | |
14709 | ac_ct_RANLIB=$RANLIB | |
14710 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14711 | set dummy ranlib; ac_word=$2 | |
14712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14714 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14716 | else | |
14717 | if test -n "$ac_ct_RANLIB"; then | |
14718 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14719 | else | |
14720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14721 | for as_dir in $PATH | |
14722 | do | |
14723 | IFS=$as_save_IFS | |
14724 | test -z "$as_dir" && as_dir=. | |
14725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14727 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14729 | break 2 | |
14730 | fi | |
14731 | done | |
14732 | done | |
14733 | ||
14734 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14735 | fi | |
14736 | fi | |
14737 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14738 | if test -n "$ac_ct_RANLIB"; then | |
14739 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14740 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14741 | else | |
14742 | echo "$as_me:$LINENO: result: no" >&5 | |
14743 | echo "${ECHO_T}no" >&6 | |
14744 | fi | |
14745 | ||
14746 | RANLIB=$ac_ct_RANLIB | |
14747 | else | |
14748 | RANLIB="$ac_cv_prog_RANLIB" | |
14749 | fi | |
14750 | ||
14751 | ||
8c80d384 DE |
14752 | if test -n "$ac_tool_prefix"; then |
14753 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14754 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14755 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14757 | if test "${ac_cv_prog_AR+set}" = set; then | |
14758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14759 | else | |
14760 | if test -n "$AR"; then | |
14761 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14762 | else | |
14763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14764 | for as_dir in $PATH | |
14765 | do | |
14766 | IFS=$as_save_IFS | |
14767 | test -z "$as_dir" && as_dir=. | |
14768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14770 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14772 | break 2 | |
14773 | fi | |
14774 | done | |
14775 | done | |
14776 | ||
14777 | fi | |
14778 | fi | |
14779 | AR=$ac_cv_prog_AR | |
14780 | if test -n "$AR"; then | |
14781 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14782 | echo "${ECHO_T}$AR" >&6 | |
14783 | else | |
14784 | echo "$as_me:$LINENO: result: no" >&5 | |
14785 | echo "${ECHO_T}no" >&6 | |
14786 | fi | |
14787 | ||
8c80d384 DE |
14788 | fi |
14789 | if test -z "$ac_cv_prog_AR"; then | |
14790 | ac_ct_AR=$AR | |
14791 | # Extract the first word of "ar", so it can be a program name with args. | |
14792 | set dummy ar; ac_word=$2 | |
14793 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14794 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14795 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14797 | else | |
14798 | if test -n "$ac_ct_AR"; then | |
14799 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14800 | else | |
14801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14802 | for as_dir in $PATH | |
14803 | do | |
14804 | IFS=$as_save_IFS | |
14805 | test -z "$as_dir" && as_dir=. | |
14806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14807 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14808 | ac_cv_prog_ac_ct_AR="ar" | |
14809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14810 | break 2 | |
14811 | fi | |
14812 | done | |
14813 | done | |
14814 | ||
14815 | fi | |
14816 | fi | |
14817 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14818 | if test -n "$ac_ct_AR"; then | |
14819 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14820 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14821 | else | |
14822 | echo "$as_me:$LINENO: result: no" >&5 | |
14823 | echo "${ECHO_T}no" >&6 | |
14824 | fi | |
14825 | ||
14826 | AR=$ac_ct_AR | |
14827 | else | |
14828 | AR="$ac_cv_prog_AR" | |
14829 | fi | |
14830 | ||
a848cd7e | 14831 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14832 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14833 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14834 | { (exit 1); exit 1; }; } |
14835 | fi | |
14836 | ||
14837 | # Find a good install program. We prefer a C program (faster), | |
14838 | # so one script is as good as another. But avoid the broken or | |
14839 | # incompatible versions: | |
14840 | # SysV /etc/install, /usr/sbin/install | |
14841 | # SunOS /usr/etc/install | |
14842 | # IRIX /sbin/install | |
14843 | # AIX /bin/install | |
14844 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14845 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14846 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14847 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14848 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14849 | # ./install, which can be erroneously created by make from ./install.sh. |
14850 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14851 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14852 | if test -z "$INSTALL"; then | |
14853 | if test "${ac_cv_path_install+set}" = set; then | |
14854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14855 | else | |
14856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14857 | for as_dir in $PATH | |
14858 | do | |
14859 | IFS=$as_save_IFS | |
14860 | test -z "$as_dir" && as_dir=. | |
14861 | # Account for people who put trailing slashes in PATH elements. | |
14862 | case $as_dir/ in | |
14863 | ./ | .// | /cC/* | \ | |
14864 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14865 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14866 | /usr/ucb/* ) ;; |
14867 | *) | |
14868 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14869 | # Don't use installbsd from OSF since it installs stuff as root | |
14870 | # by default. | |
14871 | for ac_prog in ginstall scoinst install; do | |
14872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14873 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14874 | if test $ac_prog = install && | |
14875 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14876 | # AIX install. It has an incompatible calling convention. | |
14877 | : | |
14878 | elif test $ac_prog = install && | |
14879 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14880 | # program-specific install script used by HP pwplus--don't use. | |
14881 | : | |
14882 | else | |
14883 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14884 | break 3 | |
14885 | fi | |
14886 | fi | |
a848cd7e SC |
14887 | done |
14888 | done | |
14889 | ;; | |
14890 | esac | |
14891 | done | |
14892 | ||
14893 | ||
14894 | fi | |
14895 | if test "${ac_cv_path_install+set}" = set; then | |
14896 | INSTALL=$ac_cv_path_install | |
14897 | else | |
14898 | # As a last resort, use the slow shell script. We don't cache a | |
14899 | # path for INSTALL within a source directory, because that will | |
14900 | # break other packages using the cache if that directory is | |
14901 | # removed, or if the path is relative. | |
14902 | INSTALL=$ac_install_sh | |
14903 | fi | |
14904 | fi | |
14905 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14906 | echo "${ECHO_T}$INSTALL" >&6 | |
14907 | ||
14908 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14909 | # It thinks the first close brace ends the variable substitution. | |
14910 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14911 | ||
14912 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14913 | ||
14914 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14915 | ||
14916 | ||
14917 | case ${INSTALL} in | |
14918 | /* ) # Absolute | |
14919 | ;; | |
14920 | ?:* ) # Drive letter, considered as absolute. | |
14921 | ;; | |
14922 | *) | |
14923 | INSTALL=`pwd`/${INSTALL} ;; | |
14924 | esac | |
14925 | ||
a848cd7e SC |
14926 | |
14927 | case "${host}" in | |
14928 | ||
cfda0ea8 | 14929 | *-*-darwin* ) |
a848cd7e SC |
14930 | INSTALL_PROGRAM="cp -fp" |
14931 | INSTALL_DATA="cp -fp" | |
14932 | ;; | |
14933 | *) | |
14934 | ;; | |
14935 | esac | |
14936 | ||
8c80d384 DE |
14937 | if test -n "$ac_tool_prefix"; then |
14938 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14939 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14942 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14944 | else | |
14945 | if test -n "$STRIP"; then | |
14946 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14947 | else | |
14948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14949 | for as_dir in $PATH | |
14950 | do | |
14951 | IFS=$as_save_IFS | |
14952 | test -z "$as_dir" && as_dir=. | |
14953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14955 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14957 | break 2 | |
14958 | fi | |
14959 | done | |
14960 | done | |
14961 | ||
a848cd7e SC |
14962 | fi |
14963 | fi | |
14964 | STRIP=$ac_cv_prog_STRIP | |
14965 | if test -n "$STRIP"; then | |
14966 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14967 | echo "${ECHO_T}$STRIP" >&6 | |
14968 | else | |
14969 | echo "$as_me:$LINENO: result: no" >&5 | |
14970 | echo "${ECHO_T}no" >&6 | |
14971 | fi | |
14972 | ||
8c80d384 DE |
14973 | fi |
14974 | if test -z "$ac_cv_prog_STRIP"; then | |
14975 | ac_ct_STRIP=$STRIP | |
14976 | # Extract the first word of "strip", so it can be a program name with args. | |
14977 | set dummy strip; ac_word=$2 | |
14978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14980 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14982 | else | |
14983 | if test -n "$ac_ct_STRIP"; then | |
14984 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14985 | else | |
14986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14987 | for as_dir in $PATH | |
14988 | do | |
14989 | IFS=$as_save_IFS | |
14990 | test -z "$as_dir" && as_dir=. | |
14991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14993 | ac_cv_prog_ac_ct_STRIP="strip" | |
14994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14995 | break 2 | |
14996 | fi | |
14997 | done | |
14998 | done | |
14999 | ||
15000 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
15001 | fi | |
15002 | fi | |
15003 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
15004 | if test -n "$ac_ct_STRIP"; then | |
15005 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
15006 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
15007 | else | |
15008 | echo "$as_me:$LINENO: result: no" >&5 | |
15009 | echo "${ECHO_T}no" >&6 | |
15010 | fi | |
15011 | ||
15012 | STRIP=$ac_ct_STRIP | |
15013 | else | |
15014 | STRIP="$ac_cv_prog_STRIP" | |
15015 | fi | |
15016 | ||
15017 | ||
15018 | if test "$wxUSE_WINE" = "yes"; then | |
15019 | if test -n "$ac_tool_prefix"; then | |
15020 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
15021 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
15022 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 15024 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
15025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15026 | else | |
8ced02f6 DE |
15027 | if test -n "$WINDRES"; then |
15028 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
15029 | else |
15030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15031 | for as_dir in $PATH | |
15032 | do | |
15033 | IFS=$as_save_IFS | |
15034 | test -z "$as_dir" && as_dir=. | |
15035 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15036 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 15037 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
15038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15039 | break 2 | |
15040 | fi | |
15041 | done | |
15042 | done | |
15043 | ||
15044 | fi | |
15045 | fi | |
8ced02f6 DE |
15046 | WINDRES=$ac_cv_prog_WINDRES |
15047 | if test -n "$WINDRES"; then | |
15048 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
15049 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
15050 | else |
15051 | echo "$as_me:$LINENO: result: no" >&5 | |
15052 | echo "${ECHO_T}no" >&6 | |
15053 | fi | |
15054 | ||
15055 | fi | |
8ced02f6 DE |
15056 | if test -z "$ac_cv_prog_WINDRES"; then |
15057 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
15058 | # Extract the first word of "wrc", so it can be a program name with args. |
15059 | set dummy wrc; ac_word=$2 | |
15060 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15061 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 15062 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
15063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15064 | else | |
8ced02f6 DE |
15065 | if test -n "$ac_ct_WINDRES"; then |
15066 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
15067 | else |
15068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15069 | for as_dir in $PATH | |
15070 | do | |
15071 | IFS=$as_save_IFS | |
15072 | test -z "$as_dir" && as_dir=. | |
15073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15074 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 15075 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
15076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15077 | break 2 | |
15078 | fi | |
15079 | done | |
15080 | done | |
15081 | ||
15082 | fi | |
15083 | fi | |
8ced02f6 DE |
15084 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
15085 | if test -n "$ac_ct_WINDRES"; then | |
15086 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
15087 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
15088 | else |
15089 | echo "$as_me:$LINENO: result: no" >&5 | |
15090 | echo "${ECHO_T}no" >&6 | |
15091 | fi | |
15092 | ||
8ced02f6 | 15093 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 15094 | else |
8ced02f6 | 15095 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
15096 | fi |
15097 | ||
004ee6da | 15098 | RESCOMP="$WINDRES" |
8c80d384 DE |
15099 | else |
15100 | case "${host}" in | |
15101 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
15102 | if test -n "$ac_tool_prefix"; then |
15103 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
15104 | set dummy ${ac_tool_prefix}windres; 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_WINDRES+set}" = set; then | |
15108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15109 | else | |
15110 | if test -n "$WINDRES"; then | |
15111 | ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${ac_tool_prefix}windres" | |
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 | WINDRES=$ac_cv_prog_WINDRES | |
15130 | if test -n "$WINDRES"; then | |
15131 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
15132 | echo "${ECHO_T}$WINDRES" >&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_WINDRES"; then | |
15140 | ac_ct_WINDRES=$WINDRES | |
15141 | # Extract the first word of "windres", so it can be a program name with args. | |
15142 | set dummy windres; 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_WINDRES+set}" = set; then | |
15146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15147 | else | |
15148 | if test -n "$ac_ct_WINDRES"; then | |
15149 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # 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_WINDRES="windres" | |
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 | fi | |
15166 | fi | |
15167 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
15168 | if test -n "$ac_ct_WINDRES"; then | |
15169 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
15170 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
15171 | else | |
15172 | echo "$as_me:$LINENO: result: no" >&5 | |
15173 | echo "${ECHO_T}no" >&6 | |
15174 | fi | |
15175 | ||
15176 | WINDRES=$ac_ct_WINDRES | |
15177 | else | |
15178 | WINDRES="$ac_cv_prog_WINDRES" | |
15179 | fi | |
15180 | ||
15181 | RESCOMP="$WINDRES" | |
15182 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
15183 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
15184 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
15185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15187 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
15188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15189 | else | |
15190 | if test -n "$DLLTOOL"; then | |
15191 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
15192 | else | |
15193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15194 | for as_dir in $PATH | |
15195 | do | |
15196 | IFS=$as_save_IFS | |
15197 | test -z "$as_dir" && as_dir=. | |
15198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15200 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
15201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15202 | break 2 | |
15203 | fi | |
15204 | done | |
15205 | done | |
15206 | ||
15207 | fi | |
15208 | fi | |
15209 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
15210 | if test -n "$DLLTOOL"; then | |
15211 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
15212 | echo "${ECHO_T}$DLLTOOL" >&6 | |
15213 | else | |
15214 | echo "$as_me:$LINENO: result: no" >&5 | |
15215 | echo "${ECHO_T}no" >&6 | |
15216 | fi | |
15217 | ||
15218 | fi | |
15219 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
15220 | ac_ct_DLLTOOL=$DLLTOOL | |
15221 | # Extract the first word of "dlltool", so it can be a program name with args. | |
15222 | set dummy dlltool; ac_word=$2 | |
15223 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15225 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
15226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15227 | else | |
15228 | if test -n "$ac_ct_DLLTOOL"; then | |
15229 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
15230 | else | |
15231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15232 | for as_dir in $PATH | |
15233 | do | |
15234 | IFS=$as_save_IFS | |
15235 | test -z "$as_dir" && as_dir=. | |
15236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15238 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
15239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15240 | break 2 | |
15241 | fi | |
15242 | done | |
15243 | done | |
15244 | ||
15245 | fi | |
15246 | fi | |
15247 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
15248 | if test -n "$ac_ct_DLLTOOL"; then | |
15249 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
15250 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
15251 | else | |
15252 | echo "$as_me:$LINENO: result: no" >&5 | |
15253 | echo "${ECHO_T}no" >&6 | |
15254 | fi | |
15255 | ||
15256 | DLLTOOL=$ac_ct_DLLTOOL | |
15257 | else | |
15258 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
15259 | fi | |
15260 | ||
15261 | ;; | |
15262 | esac | |
15263 | fi | |
a848cd7e SC |
15264 | |
15265 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
15266 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
15267 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
15268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15269 | else | |
15270 | ||
15271 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
15272 | egrep -s GNU > /dev/null); then | |
15273 | wx_cv_prog_makeisgnu="yes" | |
15274 | else | |
15275 | wx_cv_prog_makeisgnu="no" | |
15276 | fi | |
15277 | ||
15278 | fi | |
15279 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
15280 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
15281 | ||
15282 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
15283 | IF_GNU_MAKE="" | |
15284 | else | |
15285 | IF_GNU_MAKE="#" | |
15286 | fi | |
15287 | ||
15288 | ||
15289 | ||
15290 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
15291 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
15292 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
15293 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
15294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15295 | else | |
15296 | ||
15297 | cat - << EOF > confMake | |
15298 | check : file | |
15299 | cp \$? \$@ | |
15300 | cp \$? final_file | |
15301 | EOF | |
15302 | ||
15303 | if test ! -d sub ; then | |
15304 | mkdir sub | |
15305 | fi | |
15306 | echo dummy > sub/file | |
15307 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
15308 | RESULT=$? | |
15309 | rm -f sub/file check final_file confMake | |
15310 | rmdir sub | |
15311 | if test "$RESULT" = 0; then | |
15312 | wx_cv_prog_makevpath="yes" | |
15313 | else | |
15314 | wx_cv_prog_makevpath="no" | |
15315 | fi | |
15316 | ||
15317 | fi | |
15318 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
15319 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
15320 | ||
15321 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
15322 | { { echo "$as_me:$LINENO: error: | |
15323 | You need a make-utility that is able to use the variable | |
15324 | VPATH correctly. | |
15325 | If your version of make does not support VPATH correctly, | |
15326 | please install GNU-make (possibly as gmake), and start | |
15327 | configure with the following command: | |
15328 | export MAKE=gmake; ./configure for sh-type shells | |
15329 | setenv MAKE gmake; ./configure for csh-type shells | |
15330 | Also please do remember to use gmake in this case every time | |
15331 | you are trying to compile. | |
15332 | " >&5 | |
15333 | echo "$as_me: error: | |
15334 | You need a make-utility that is able to use the variable | |
15335 | VPATH correctly. | |
15336 | If your version of make does not support VPATH correctly, | |
15337 | please install GNU-make (possibly as gmake), and start | |
15338 | configure with the following command: | |
15339 | export MAKE=gmake; ./configure for sh-type shells | |
15340 | setenv MAKE gmake; ./configure for csh-type shells | |
15341 | Also please do remember to use gmake in this case every time | |
15342 | you are trying to compile. | |
15343 | " >&2;} | |
15344 | { (exit 1); exit 1; }; } | |
15345 | fi fi | |
15346 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
15347 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
15348 | LN_S=$as_ln_s | |
15349 | if test "$LN_S" = "ln -s"; then | |
15350 | echo "$as_me:$LINENO: result: yes" >&5 | |
15351 | echo "${ECHO_T}yes" >&6 | |
15352 | else | |
15353 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
15354 | echo "${ECHO_T}no, using $LN_S" >&6 | |
15355 | fi | |
15356 | ||
15357 | ||
bcaab0f9 | 15358 | |
a848cd7e | 15359 | |
2113bc77 | 15360 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 15361 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
15362 | fi |
15363 | ||
4d7ec9f1 DE |
15364 | case "${host}" in |
15365 | powerpc-*-darwin* ) | |
15366 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
15367 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
15368 | cat >conftest.$ac_ext <<_ACEOF | |
15369 | /* confdefs.h. */ | |
15370 | _ACEOF | |
15371 | cat confdefs.h >>conftest.$ac_ext | |
15372 | cat >>conftest.$ac_ext <<_ACEOF | |
15373 | /* end confdefs.h. */ | |
15374 | ||
15375 | int | |
15376 | main () | |
15377 | { | |
15378 | #ifndef __POWERPC__ | |
15379 | choke me for lack of PowerPC | |
15380 | #endif | |
15381 | ||
15382 | ; | |
15383 | return 0; | |
15384 | } | |
15385 | _ACEOF | |
15386 | rm -f conftest.$ac_objext | |
15387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15388 | (eval $ac_compile) 2>conftest.er1 | |
15389 | ac_status=$? | |
15390 | grep -v '^ *+' conftest.er1 >conftest.err | |
15391 | rm -f conftest.er1 | |
15392 | cat conftest.err >&5 | |
15393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15394 | (exit $ac_status); } && | |
3f60522a JS |
15395 | { ac_try='test -z "$ac_cxx_werror_flag" |
15396 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
15397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15398 | (eval $ac_try) 2>&5 | |
15399 | ac_status=$? | |
15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15401 | (exit $ac_status); }; } && | |
15402 | { ac_try='test -s conftest.$ac_objext' | |
15403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15404 | (eval $ac_try) 2>&5 | |
15405 | ac_status=$? | |
15406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15407 | (exit $ac_status); }; }; then | |
15408 | echo "$as_me:$LINENO: result: yes" >&5 | |
15409 | echo "${ECHO_T}yes" >&6 | |
15410 | else | |
15411 | echo "$as_me: failed program was:" >&5 | |
15412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15413 | ||
15414 | echo "$as_me:$LINENO: result: no" >&5 | |
15415 | echo "${ECHO_T}no" >&6 | |
15416 | cat >>confdefs.h <<\_ACEOF | |
15417 | #define __POWERPC__ 1 | |
15418 | _ACEOF | |
15419 | ||
15420 | ||
15421 | fi | |
15422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
15423 | ;; |
15424 | esac | |
15425 | ||
15426 | case "${host}" in | |
15427 | *-*-darwin* ) | |
4d7ec9f1 DE |
15428 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
15429 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
15430 | cat >conftest.$ac_ext <<_ACEOF | |
15431 | /* confdefs.h. */ | |
15432 | _ACEOF | |
15433 | cat confdefs.h >>conftest.$ac_ext | |
15434 | cat >>conftest.$ac_ext <<_ACEOF | |
15435 | /* end confdefs.h. */ | |
15436 | #include <CoreFoundation/CFBase.h> | |
15437 | ||
15438 | int | |
15439 | main () | |
15440 | { | |
15441 | ||
15442 | ; | |
15443 | return 0; | |
15444 | } | |
15445 | _ACEOF | |
15446 | rm -f conftest.$ac_objext | |
15447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15448 | (eval $ac_compile) 2>conftest.er1 | |
15449 | ac_status=$? | |
15450 | grep -v '^ *+' conftest.er1 >conftest.err | |
15451 | rm -f conftest.er1 | |
15452 | cat conftest.err >&5 | |
15453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15454 | (exit $ac_status); } && | |
3f60522a JS |
15455 | { ac_try='test -z "$ac_cxx_werror_flag" |
15456 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
15457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15458 | (eval $ac_try) 2>&5 | |
15459 | ac_status=$? | |
15460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15461 | (exit $ac_status); }; } && | |
15462 | { ac_try='test -s conftest.$ac_objext' | |
15463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15464 | (eval $ac_try) 2>&5 | |
15465 | ac_status=$? | |
15466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15467 | (exit $ac_status); }; }; then | |
15468 | echo "$as_me:$LINENO: result: yes" >&5 | |
15469 | echo "${ECHO_T}yes" >&6 | |
15470 | else | |
15471 | echo "$as_me: failed program was:" >&5 | |
15472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15473 | ||
15474 | echo "$as_me:$LINENO: result: no" >&5 | |
15475 | echo "${ECHO_T}no" >&6 | |
15476 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
15477 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
15478 | cat >conftest.$ac_ext <<_ACEOF | |
15479 | /* confdefs.h. */ | |
15480 | _ACEOF | |
15481 | cat confdefs.h >>conftest.$ac_ext | |
15482 | cat >>conftest.$ac_ext <<_ACEOF | |
15483 | /* end confdefs.h. */ | |
15484 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
15485 | #include <CoreFoundation/CFBase.h> | |
15486 | ||
15487 | int | |
15488 | main () | |
15489 | { | |
15490 | ||
15491 | ; | |
15492 | return 0; | |
15493 | } | |
15494 | _ACEOF | |
15495 | rm -f conftest.$ac_objext | |
15496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15497 | (eval $ac_compile) 2>conftest.er1 | |
15498 | ac_status=$? | |
15499 | grep -v '^ *+' conftest.er1 >conftest.err | |
15500 | rm -f conftest.er1 | |
15501 | cat conftest.err >&5 | |
15502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15503 | (exit $ac_status); } && | |
3f60522a JS |
15504 | { ac_try='test -z "$ac_cxx_werror_flag" |
15505 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
15506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15507 | (eval $ac_try) 2>&5 | |
15508 | ac_status=$? | |
15509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15510 | (exit $ac_status); }; } && | |
15511 | { ac_try='test -s conftest.$ac_objext' | |
15512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15513 | (eval $ac_try) 2>&5 | |
15514 | ac_status=$? | |
15515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15516 | (exit $ac_status); }; }; then | |
15517 | echo "$as_me:$LINENO: result: yes" >&5 | |
15518 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15519 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15520 | else |
15521 | echo "$as_me: failed program was:" >&5 | |
15522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15523 | ||
15524 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15525 | See \`config.log' for more details." >&5 | |
15526 | echo "$as_me: error: no. CoreFoundation not available. | |
15527 | See \`config.log' for more details." >&2;} | |
15528 | { (exit 1); exit 1; }; } | |
15529 | ||
15530 | fi | |
15531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15532 | ||
15533 | ||
15534 | fi | |
15535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15536 | ;; | |
15537 | esac | |
15538 | ||
a848cd7e SC |
15539 | case "${host}" in |
15540 | *-pc-os2_emx | *-pc-os2-emx ) | |
6ba87b06 SN |
15541 | ac_ext=c |
15542 | ac_cpp='$CPP $CPPFLAGS' | |
15543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15546 | ||
15547 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
a848cd7e SC |
15548 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
15549 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15550 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15552 | else | |
15553 | ac_check_lib_save_LIBS=$LIBS | |
15554 | LIBS="-lcExt $LIBS" | |
15555 | cat >conftest.$ac_ext <<_ACEOF | |
15556 | /* confdefs.h. */ | |
15557 | _ACEOF | |
15558 | cat confdefs.h >>conftest.$ac_ext | |
15559 | cat >>conftest.$ac_ext <<_ACEOF | |
15560 | /* end confdefs.h. */ | |
15561 | ||
15562 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15563 | #ifdef __cplusplus | |
15564 | extern "C" | |
15565 | #endif | |
15566 | /* We use char because int might match the return type of a gcc2 | |
15567 | builtin and then its argument prototype would still apply. */ | |
15568 | char drand48 (); | |
15569 | int | |
15570 | main () | |
15571 | { | |
15572 | drand48 (); | |
15573 | ; | |
15574 | return 0; | |
15575 | } | |
15576 | _ACEOF | |
15577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15579 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15580 | ac_status=$? |
ac1cb8d3 VS |
15581 | grep -v '^ *+' conftest.er1 >conftest.err |
15582 | rm -f conftest.er1 | |
15583 | cat conftest.err >&5 | |
a848cd7e SC |
15584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15585 | (exit $ac_status); } && | |
3f60522a JS |
15586 | { ac_try='test -z "$ac_c_werror_flag" |
15587 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15589 | (eval $ac_try) 2>&5 | |
15590 | ac_status=$? | |
15591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15592 | (exit $ac_status); }; } && | |
15593 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15595 | (eval $ac_try) 2>&5 | |
15596 | ac_status=$? | |
15597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15598 | (exit $ac_status); }; }; then | |
15599 | ac_cv_lib_cExt_drand48=yes | |
15600 | else | |
15601 | echo "$as_me: failed program was:" >&5 | |
15602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15603 | ||
15604 | ac_cv_lib_cExt_drand48=no | |
15605 | fi | |
ac1cb8d3 VS |
15606 | rm -f conftest.err conftest.$ac_objext \ |
15607 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15608 | LIBS=$ac_check_lib_save_LIBS |
15609 | fi | |
15610 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15611 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15612 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15613 | LIBS="$LIBS -lcExt" | |
15614 | fi | |
15615 | ||
15616 | else | |
15617 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15618 | fi | |
69120ee4 VZ |
15619 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15620 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15621 | if test "${wx_cv_gccversion+set}" = set; then |
15622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15623 | else | |
15624 | ||
391a765e VS |
15625 | if test "$cross_compiling" = yes; then |
15626 | wx_cv_gccversion="EMX2" | |
15627 | ||
15628 | else | |
15629 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15630 | /* confdefs.h. */ |
15631 | _ACEOF | |
15632 | cat confdefs.h >>conftest.$ac_ext | |
15633 | cat >>conftest.$ac_ext <<_ACEOF | |
15634 | /* end confdefs.h. */ | |
15635 | ||
391a765e | 15636 | #include <stdio.h> |
a848cd7e | 15637 | |
391a765e VS |
15638 | int main() |
15639 | { | |
15640 | FILE *f=fopen("conftestval", "w"); | |
15641 | if (!f) exit(1); | |
15642 | fprintf(f, | |
a848cd7e | 15643 | #if (__GNUC__ < 3) |
391a765e VS |
15644 | "EMX2" |
15645 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15646 | "EMX3" | |
15647 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15648 | "Innotek5" | |
15649 | #else | |
15650 | "Innotek6" | |
a848cd7e | 15651 | #endif |
391a765e VS |
15652 | ); |
15653 | exit(0); | |
15654 | } | |
a848cd7e | 15655 | |
a848cd7e | 15656 | _ACEOF |
391a765e VS |
15657 | rm -f conftest$ac_exeext |
15658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15659 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15660 | ac_status=$? |
15661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15662 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15664 | (eval $ac_try) 2>&5 | |
15665 | ac_status=$? | |
15666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15667 | (exit $ac_status); }; }; then | |
391a765e | 15668 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15669 | else |
391a765e VS |
15670 | echo "$as_me: program exited with status $ac_status" >&5 |
15671 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15672 | sed 's/^/| /' conftest.$ac_ext >&5 |
15673 | ||
391a765e VS |
15674 | ( exit $ac_status ) |
15675 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15676 | fi |
391a765e | 15677 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15678 | fi |
a848cd7e SC |
15679 | |
15680 | fi | |
15681 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15682 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
6ba87b06 SN |
15683 | ac_ext=cc |
15684 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15685 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15686 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15687 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15688 | ||
391a765e | 15689 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15690 | LIBS="$LIBS -lstdcpp" |
15691 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15692 | else | |
391a765e | 15693 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15694 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15695 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15696 | else | |
15697 | LIBS="$LIBS -lstdc++" | |
15698 | fi | |
15699 | fi | |
94acd38e DE |
15700 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15701 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15702 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15703 | wxUSE_OMF=yes | |
2da0c077 | 15704 | enable_omf=yes |
a848cd7e SC |
15705 | fi |
15706 | ;; | |
15707 | *) | |
15708 | ||
95986553 | 15709 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15710 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15711 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15713 | else | |
15714 | ||
15715 | cat >conftest.$ac_ext <<_ACEOF | |
15716 | /* confdefs.h. */ | |
15717 | _ACEOF | |
15718 | cat confdefs.h >>conftest.$ac_ext | |
15719 | cat >>conftest.$ac_ext <<_ACEOF | |
15720 | /* end confdefs.h. */ | |
15721 | ||
15722 | #include <string.h> | |
15723 | ||
15724 | int | |
15725 | main () | |
15726 | { | |
15727 | ||
15728 | strcasecmp("foo", "bar"); | |
15729 | ||
15730 | ; | |
15731 | return 0; | |
15732 | } | |
15733 | _ACEOF | |
15734 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15736 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15737 | ac_status=$? |
ac1cb8d3 VS |
15738 | grep -v '^ *+' conftest.er1 >conftest.err |
15739 | rm -f conftest.er1 | |
15740 | cat conftest.err >&5 | |
a848cd7e SC |
15741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15742 | (exit $ac_status); } && | |
3f60522a JS |
15743 | { ac_try='test -z "$ac_cxx_werror_flag" |
15744 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15746 | (eval $ac_try) 2>&5 | |
15747 | ac_status=$? | |
15748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15749 | (exit $ac_status); }; } && | |
15750 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15752 | (eval $ac_try) 2>&5 | |
15753 | ac_status=$? | |
15754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15755 | (exit $ac_status); }; }; then | |
15756 | ac_cv_string_strcasecmp=yes | |
15757 | else | |
15758 | echo "$as_me: failed program was:" >&5 | |
15759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15760 | ||
15761 | ac_cv_string_strcasecmp=no | |
15762 | ||
15763 | fi | |
ac1cb8d3 VS |
15764 | rm -f conftest.err conftest.$ac_objext \ |
15765 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15766 | |
15767 | fi | |
15768 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15769 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15770 | ||
15771 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15772 | cat >>confdefs.h <<\_ACEOF | |
15773 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15774 | _ACEOF | |
15775 | ||
15776 | else | |
15777 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15778 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15779 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15781 | else | |
15782 | ||
15783 | cat >conftest.$ac_ext <<_ACEOF | |
15784 | /* confdefs.h. */ | |
15785 | _ACEOF | |
15786 | cat confdefs.h >>conftest.$ac_ext | |
15787 | cat >>conftest.$ac_ext <<_ACEOF | |
15788 | /* end confdefs.h. */ | |
15789 | ||
15790 | #include <strings.h> | |
15791 | ||
15792 | int | |
15793 | main () | |
15794 | { | |
15795 | ||
15796 | strcasecmp("foo", "bar"); | |
15797 | ||
15798 | ; | |
15799 | return 0; | |
15800 | } | |
15801 | _ACEOF | |
15802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15804 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15805 | ac_status=$? |
ac1cb8d3 VS |
15806 | grep -v '^ *+' conftest.er1 >conftest.err |
15807 | rm -f conftest.er1 | |
15808 | cat conftest.err >&5 | |
a848cd7e SC |
15809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15810 | (exit $ac_status); } && | |
3f60522a JS |
15811 | { ac_try='test -z "$ac_cxx_werror_flag" |
15812 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15814 | (eval $ac_try) 2>&5 | |
15815 | ac_status=$? | |
15816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15817 | (exit $ac_status); }; } && | |
15818 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15820 | (eval $ac_try) 2>&5 | |
15821 | ac_status=$? | |
15822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15823 | (exit $ac_status); }; }; then | |
15824 | ac_cv_strings_strcasecmp=yes | |
15825 | else | |
15826 | echo "$as_me: failed program was:" >&5 | |
15827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15828 | ||
15829 | ac_cv_strings_strcasecmp=no | |
15830 | ||
15831 | fi | |
ac1cb8d3 VS |
15832 | rm -f conftest.err conftest.$ac_objext \ |
15833 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15834 | |
15835 | fi | |
15836 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15837 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15838 | ||
0c3c69fc | 15839 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15840 | cat >>confdefs.h <<\_ACEOF |
15841 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15842 | _ACEOF | |
15843 | ||
15844 | else | |
15845 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15846 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15847 | { (exit 1); exit 1; }; } | |
15848 | fi | |
15849 | fi | |
15850 | ||
a848cd7e SC |
15851 | ;; |
15852 | esac | |
15853 | ||
15854 | ||
5d7b7554 VZ |
15855 | ac_ext=cc |
15856 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15857 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15858 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15859 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15860 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
15861 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
15862 | if test -z "$CXXCPP"; then | |
15863 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
15864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15865 | else | |
15866 | # Double quotes because CXXCPP needs to be expanded | |
15867 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
15868 | do | |
15869 | ac_preproc_ok=false | |
15870 | for ac_cxx_preproc_warn_flag in '' yes | |
15871 | do | |
15872 | # Use a header file that comes with gcc, so configuring glibc | |
15873 | # with a fresh cross-compiler works. | |
15874 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15875 | # <limits.h> exists even on freestanding compilers. | |
15876 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15877 | # not just through cpp. "Syntax error" is here to catch this case. | |
15878 | cat >conftest.$ac_ext <<_ACEOF | |
15879 | /* confdefs.h. */ | |
15880 | _ACEOF | |
15881 | cat confdefs.h >>conftest.$ac_ext | |
15882 | cat >>conftest.$ac_ext <<_ACEOF | |
15883 | /* end confdefs.h. */ | |
15884 | #ifdef __STDC__ | |
15885 | # include <limits.h> | |
15886 | #else | |
15887 | # include <assert.h> | |
15888 | #endif | |
15889 | Syntax error | |
15890 | _ACEOF | |
15891 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15892 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15893 | ac_status=$? | |
15894 | grep -v '^ *+' conftest.er1 >conftest.err | |
15895 | rm -f conftest.er1 | |
15896 | cat conftest.err >&5 | |
15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15898 | (exit $ac_status); } >/dev/null; then | |
15899 | if test -s conftest.err; then | |
15900 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15901 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15902 | else | |
15903 | ac_cpp_err= | |
15904 | fi | |
15905 | else | |
15906 | ac_cpp_err=yes | |
15907 | fi | |
15908 | if test -z "$ac_cpp_err"; then | |
15909 | : | |
15910 | else | |
15911 | echo "$as_me: failed program was:" >&5 | |
15912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15913 | ||
15914 | # Broken: fails on valid input. | |
15915 | continue | |
15916 | fi | |
15917 | rm -f conftest.err conftest.$ac_ext | |
15918 | ||
15919 | # OK, works on sane cases. Now check whether non-existent headers | |
15920 | # can be detected and how. | |
15921 | cat >conftest.$ac_ext <<_ACEOF | |
15922 | /* confdefs.h. */ | |
15923 | _ACEOF | |
15924 | cat confdefs.h >>conftest.$ac_ext | |
15925 | cat >>conftest.$ac_ext <<_ACEOF | |
15926 | /* end confdefs.h. */ | |
15927 | #include <ac_nonexistent.h> | |
15928 | _ACEOF | |
15929 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15930 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15931 | ac_status=$? | |
15932 | grep -v '^ *+' conftest.er1 >conftest.err | |
15933 | rm -f conftest.er1 | |
15934 | cat conftest.err >&5 | |
15935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15936 | (exit $ac_status); } >/dev/null; then | |
15937 | if test -s conftest.err; then | |
15938 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15939 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15940 | else | |
15941 | ac_cpp_err= | |
15942 | fi | |
15943 | else | |
15944 | ac_cpp_err=yes | |
15945 | fi | |
15946 | if test -z "$ac_cpp_err"; then | |
15947 | # Broken: success on invalid input. | |
15948 | continue | |
15949 | else | |
15950 | echo "$as_me: failed program was:" >&5 | |
15951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15952 | ||
15953 | # Passes both tests. | |
15954 | ac_preproc_ok=: | |
15955 | break | |
15956 | fi | |
15957 | rm -f conftest.err conftest.$ac_ext | |
15958 | ||
15959 | done | |
15960 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
15961 | rm -f conftest.err conftest.$ac_ext | |
15962 | if $ac_preproc_ok; then | |
15963 | break | |
15964 | fi | |
15965 | ||
15966 | done | |
15967 | ac_cv_prog_CXXCPP=$CXXCPP | |
15968 | ||
15969 | fi | |
15970 | CXXCPP=$ac_cv_prog_CXXCPP | |
15971 | else | |
15972 | ac_cv_prog_CXXCPP=$CXXCPP | |
15973 | fi | |
15974 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
15975 | echo "${ECHO_T}$CXXCPP" >&6 | |
15976 | ac_preproc_ok=false | |
15977 | for ac_cxx_preproc_warn_flag in '' yes | |
15978 | do | |
15979 | # Use a header file that comes with gcc, so configuring glibc | |
15980 | # with a fresh cross-compiler works. | |
15981 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15982 | # <limits.h> exists even on freestanding compilers. | |
15983 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15984 | # not just through cpp. "Syntax error" is here to catch this case. | |
15985 | cat >conftest.$ac_ext <<_ACEOF | |
15986 | /* confdefs.h. */ | |
15987 | _ACEOF | |
15988 | cat confdefs.h >>conftest.$ac_ext | |
15989 | cat >>conftest.$ac_ext <<_ACEOF | |
15990 | /* end confdefs.h. */ | |
15991 | #ifdef __STDC__ | |
15992 | # include <limits.h> | |
15993 | #else | |
15994 | # include <assert.h> | |
15995 | #endif | |
15996 | Syntax error | |
15997 | _ACEOF | |
15998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16000 | ac_status=$? | |
16001 | grep -v '^ *+' conftest.er1 >conftest.err | |
16002 | rm -f conftest.er1 | |
16003 | cat conftest.err >&5 | |
16004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16005 | (exit $ac_status); } >/dev/null; then | |
16006 | if test -s conftest.err; then | |
16007 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16008 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16009 | else | |
16010 | ac_cpp_err= | |
16011 | fi | |
16012 | else | |
16013 | ac_cpp_err=yes | |
16014 | fi | |
16015 | if test -z "$ac_cpp_err"; then | |
16016 | : | |
16017 | else | |
16018 | echo "$as_me: failed program was:" >&5 | |
16019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16020 | ||
16021 | # Broken: fails on valid input. | |
16022 | continue | |
16023 | fi | |
16024 | rm -f conftest.err conftest.$ac_ext | |
16025 | ||
16026 | # OK, works on sane cases. Now check whether non-existent headers | |
16027 | # can be detected and how. | |
16028 | cat >conftest.$ac_ext <<_ACEOF | |
16029 | /* confdefs.h. */ | |
16030 | _ACEOF | |
16031 | cat confdefs.h >>conftest.$ac_ext | |
16032 | cat >>conftest.$ac_ext <<_ACEOF | |
16033 | /* end confdefs.h. */ | |
16034 | #include <ac_nonexistent.h> | |
16035 | _ACEOF | |
16036 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16037 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16038 | ac_status=$? | |
16039 | grep -v '^ *+' conftest.er1 >conftest.err | |
16040 | rm -f conftest.er1 | |
16041 | cat conftest.err >&5 | |
16042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16043 | (exit $ac_status); } >/dev/null; then | |
16044 | if test -s conftest.err; then | |
16045 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16046 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16047 | else | |
16048 | ac_cpp_err= | |
16049 | fi | |
16050 | else | |
16051 | ac_cpp_err=yes | |
16052 | fi | |
16053 | if test -z "$ac_cpp_err"; then | |
16054 | # Broken: success on invalid input. | |
16055 | continue | |
16056 | else | |
16057 | echo "$as_me: failed program was:" >&5 | |
16058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16059 | ||
16060 | # Passes both tests. | |
16061 | ac_preproc_ok=: | |
16062 | break | |
16063 | fi | |
16064 | rm -f conftest.err conftest.$ac_ext | |
16065 | ||
16066 | done | |
16067 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16068 | rm -f conftest.err conftest.$ac_ext | |
16069 | if $ac_preproc_ok; then | |
16070 | : | |
16071 | else | |
16072 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16073 | See \`config.log' for more details." >&5 | |
16074 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16075 | See \`config.log' for more details." >&2;} | |
16076 | { (exit 1); exit 1; }; } | |
16077 | fi | |
16078 | ||
16079 | ac_ext=cc | |
16080 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16081 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16082 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16083 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16084 | ||
16085 | ||
a848cd7e SC |
16086 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
16087 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
16088 | if test "${ac_cv_header_stdc+set}" = set; then | |
16089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16090 | else | |
16091 | cat >conftest.$ac_ext <<_ACEOF | |
16092 | /* confdefs.h. */ | |
16093 | _ACEOF | |
16094 | cat confdefs.h >>conftest.$ac_ext | |
16095 | cat >>conftest.$ac_ext <<_ACEOF | |
16096 | /* end confdefs.h. */ | |
16097 | #include <stdlib.h> | |
16098 | #include <stdarg.h> | |
16099 | #include <string.h> | |
16100 | #include <float.h> | |
16101 | ||
16102 | int | |
16103 | main () | |
16104 | { | |
16105 | ||
16106 | ; | |
16107 | return 0; | |
16108 | } | |
16109 | _ACEOF | |
16110 | rm -f conftest.$ac_objext | |
16111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16113 | ac_status=$? |
ac1cb8d3 VS |
16114 | grep -v '^ *+' conftest.er1 >conftest.err |
16115 | rm -f conftest.er1 | |
16116 | cat conftest.err >&5 | |
a848cd7e SC |
16117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16118 | (exit $ac_status); } && | |
3f60522a JS |
16119 | { ac_try='test -z "$ac_cxx_werror_flag" |
16120 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16122 | (eval $ac_try) 2>&5 | |
16123 | ac_status=$? | |
16124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16125 | (exit $ac_status); }; } && | |
16126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16128 | (eval $ac_try) 2>&5 | |
16129 | ac_status=$? | |
16130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16131 | (exit $ac_status); }; }; then | |
16132 | ac_cv_header_stdc=yes | |
16133 | else | |
16134 | echo "$as_me: failed program was:" >&5 | |
16135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16136 | ||
16137 | ac_cv_header_stdc=no | |
16138 | fi | |
ac1cb8d3 | 16139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16140 | |
16141 | if test $ac_cv_header_stdc = yes; then | |
16142 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16143 | cat >conftest.$ac_ext <<_ACEOF | |
16144 | /* confdefs.h. */ | |
16145 | _ACEOF | |
16146 | cat confdefs.h >>conftest.$ac_ext | |
16147 | cat >>conftest.$ac_ext <<_ACEOF | |
16148 | /* end confdefs.h. */ | |
16149 | #include <string.h> | |
16150 | ||
16151 | _ACEOF | |
16152 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16153 | $EGREP "memchr" >/dev/null 2>&1; then | |
16154 | : | |
16155 | else | |
16156 | ac_cv_header_stdc=no | |
16157 | fi | |
16158 | rm -f conftest* | |
16159 | ||
16160 | fi | |
16161 | ||
16162 | if test $ac_cv_header_stdc = yes; then | |
16163 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16164 | cat >conftest.$ac_ext <<_ACEOF | |
16165 | /* confdefs.h. */ | |
16166 | _ACEOF | |
16167 | cat confdefs.h >>conftest.$ac_ext | |
16168 | cat >>conftest.$ac_ext <<_ACEOF | |
16169 | /* end confdefs.h. */ | |
16170 | #include <stdlib.h> | |
16171 | ||
16172 | _ACEOF | |
16173 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16174 | $EGREP "free" >/dev/null 2>&1; then | |
16175 | : | |
16176 | else | |
16177 | ac_cv_header_stdc=no | |
16178 | fi | |
16179 | rm -f conftest* | |
16180 | ||
16181 | fi | |
16182 | ||
16183 | if test $ac_cv_header_stdc = yes; then | |
16184 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16185 | if test "$cross_compiling" = yes; then | |
16186 | : | |
16187 | else | |
16188 | cat >conftest.$ac_ext <<_ACEOF | |
16189 | /* confdefs.h. */ | |
16190 | _ACEOF | |
16191 | cat confdefs.h >>conftest.$ac_ext | |
16192 | cat >>conftest.$ac_ext <<_ACEOF | |
16193 | /* end confdefs.h. */ | |
16194 | #include <ctype.h> | |
16195 | #if ((' ' & 0x0FF) == 0x020) | |
16196 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16197 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16198 | #else | |
16199 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
16200 | (('a' <= (c) && (c) <= 'i') \ |
16201 | || ('j' <= (c) && (c) <= 'r') \ | |
16202 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
16203 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
16204 | #endif | |
16205 | ||
16206 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16207 | int | |
16208 | main () | |
16209 | { | |
16210 | int i; | |
16211 | for (i = 0; i < 256; i++) | |
16212 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 16213 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
16214 | exit(2); |
16215 | exit (0); | |
16216 | } | |
16217 | _ACEOF | |
16218 | rm -f conftest$ac_exeext | |
16219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16220 | (eval $ac_link) 2>&5 | |
16221 | ac_status=$? | |
16222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16223 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16225 | (eval $ac_try) 2>&5 | |
16226 | ac_status=$? | |
16227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16228 | (exit $ac_status); }; }; then | |
16229 | : | |
16230 | else | |
16231 | echo "$as_me: program exited with status $ac_status" >&5 | |
16232 | echo "$as_me: failed program was:" >&5 | |
16233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16234 | ||
16235 | ( exit $ac_status ) | |
16236 | ac_cv_header_stdc=no | |
16237 | fi | |
ac1cb8d3 | 16238 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16239 | fi |
16240 | fi | |
16241 | fi | |
16242 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
16243 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
16244 | if test $ac_cv_header_stdc = yes; then | |
16245 | ||
16246 | cat >>confdefs.h <<\_ACEOF | |
16247 | #define STDC_HEADERS 1 | |
16248 | _ACEOF | |
16249 | ||
16250 | fi | |
16251 | ||
16252 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
16253 | ||
16254 | ||
16255 | ||
16256 | ||
16257 | ||
16258 | ||
16259 | ||
16260 | ||
16261 | ||
16262 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 16263 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
16264 | do |
16265 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16266 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16268 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16270 | else | |
16271 | cat >conftest.$ac_ext <<_ACEOF | |
16272 | /* confdefs.h. */ | |
16273 | _ACEOF | |
16274 | cat confdefs.h >>conftest.$ac_ext | |
16275 | cat >>conftest.$ac_ext <<_ACEOF | |
16276 | /* end confdefs.h. */ | |
16277 | $ac_includes_default | |
16278 | ||
16279 | #include <$ac_header> | |
16280 | _ACEOF | |
16281 | rm -f conftest.$ac_objext | |
16282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16283 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16284 | ac_status=$? |
ac1cb8d3 VS |
16285 | grep -v '^ *+' conftest.er1 >conftest.err |
16286 | rm -f conftest.er1 | |
16287 | cat conftest.err >&5 | |
a848cd7e SC |
16288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16289 | (exit $ac_status); } && | |
3f60522a JS |
16290 | { ac_try='test -z "$ac_cxx_werror_flag" |
16291 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16293 | (eval $ac_try) 2>&5 | |
16294 | ac_status=$? | |
16295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16296 | (exit $ac_status); }; } && | |
16297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16303 | eval "$as_ac_Header=yes" | |
16304 | else | |
16305 | echo "$as_me: failed program was:" >&5 | |
16306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16307 | ||
16308 | eval "$as_ac_Header=no" | |
16309 | fi | |
ac1cb8d3 | 16310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16311 | fi |
16312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16313 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16315 | cat >>confdefs.h <<_ACEOF | |
16316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16317 | _ACEOF | |
16318 | ||
16319 | fi | |
16320 | ||
16321 | done | |
16322 | ||
16323 | ||
16324 | ||
16325 | for ac_header in stdlib.h | |
16326 | do | |
16327 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16329 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16333 | fi | |
16334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16335 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16336 | else | |
16337 | # Is the header compilable? | |
16338 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16339 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16340 | cat >conftest.$ac_ext <<_ACEOF | |
16341 | /* confdefs.h. */ | |
16342 | _ACEOF | |
16343 | cat confdefs.h >>conftest.$ac_ext | |
16344 | cat >>conftest.$ac_ext <<_ACEOF | |
16345 | /* end confdefs.h. */ | |
16346 | $ac_includes_default | |
16347 | #include <$ac_header> | |
16348 | _ACEOF | |
16349 | rm -f conftest.$ac_objext | |
16350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16351 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16352 | ac_status=$? |
ac1cb8d3 VS |
16353 | grep -v '^ *+' conftest.er1 >conftest.err |
16354 | rm -f conftest.er1 | |
16355 | cat conftest.err >&5 | |
a848cd7e SC |
16356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16357 | (exit $ac_status); } && | |
3f60522a JS |
16358 | { ac_try='test -z "$ac_cxx_werror_flag" |
16359 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16361 | (eval $ac_try) 2>&5 | |
16362 | ac_status=$? | |
16363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16364 | (exit $ac_status); }; } && | |
16365 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16367 | (eval $ac_try) 2>&5 | |
16368 | ac_status=$? | |
16369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16370 | (exit $ac_status); }; }; then | |
16371 | ac_header_compiler=yes | |
16372 | else | |
16373 | echo "$as_me: failed program was:" >&5 | |
16374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16375 | ||
16376 | ac_header_compiler=no | |
16377 | fi | |
ac1cb8d3 | 16378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16379 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16380 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16381 | ||
16382 | # Is the header present? | |
16383 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16384 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16385 | cat >conftest.$ac_ext <<_ACEOF | |
16386 | /* confdefs.h. */ | |
16387 | _ACEOF | |
16388 | cat confdefs.h >>conftest.$ac_ext | |
16389 | cat >>conftest.$ac_ext <<_ACEOF | |
16390 | /* end confdefs.h. */ | |
16391 | #include <$ac_header> | |
16392 | _ACEOF | |
16393 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16394 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16395 | ac_status=$? | |
16396 | grep -v '^ *+' conftest.er1 >conftest.err | |
16397 | rm -f conftest.er1 | |
16398 | cat conftest.err >&5 | |
16399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16400 | (exit $ac_status); } >/dev/null; then | |
16401 | if test -s conftest.err; then | |
5d7b7554 VZ |
16402 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16403 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16404 | else |
16405 | ac_cpp_err= | |
16406 | fi | |
16407 | else | |
16408 | ac_cpp_err=yes | |
16409 | fi | |
16410 | if test -z "$ac_cpp_err"; then | |
16411 | ac_header_preproc=yes | |
16412 | else | |
16413 | echo "$as_me: failed program was:" >&5 | |
16414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16415 | ||
16416 | ac_header_preproc=no | |
16417 | fi | |
16418 | rm -f conftest.err conftest.$ac_ext | |
16419 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16420 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16421 | ||
16422 | # So? What about this header? | |
5d7b7554 | 16423 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16424 | yes:no: ) |
a848cd7e SC |
16425 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16426 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16427 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16428 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16429 | ac_header_preproc=yes | |
a848cd7e | 16430 | ;; |
ac1cb8d3 | 16431 | no:yes:* ) |
a848cd7e SC |
16432 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16433 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16434 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16435 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16436 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16437 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16438 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16439 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16441 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16442 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16443 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16444 | ( |
16445 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16446 | ## ----------------------------------------- ## |
16447 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16448 | ## ----------------------------------------- ## | |
a848cd7e SC |
16449 | _ASBOX |
16450 | ) | | |
16451 | sed "s/^/$as_me: WARNING: /" >&2 | |
16452 | ;; | |
16453 | esac | |
16454 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16455 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16458 | else | |
ac1cb8d3 | 16459 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16460 | fi |
16461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16462 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16463 | ||
16464 | fi | |
16465 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16466 | cat >>confdefs.h <<_ACEOF | |
16467 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16468 | _ACEOF | |
16469 | ||
16470 | fi | |
16471 | ||
16472 | done | |
16473 | ||
16474 | ||
16475 | for ac_header in malloc.h | |
16476 | do | |
16477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16483 | fi | |
16484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16485 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16486 | else | |
16487 | # Is the header compilable? | |
16488 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16489 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16490 | cat >conftest.$ac_ext <<_ACEOF | |
16491 | /* confdefs.h. */ | |
16492 | _ACEOF | |
16493 | cat confdefs.h >>conftest.$ac_ext | |
16494 | cat >>conftest.$ac_ext <<_ACEOF | |
16495 | /* end confdefs.h. */ | |
16496 | $ac_includes_default | |
16497 | #include <$ac_header> | |
16498 | _ACEOF | |
16499 | rm -f conftest.$ac_objext | |
16500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16501 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16502 | ac_status=$? |
ac1cb8d3 VS |
16503 | grep -v '^ *+' conftest.er1 >conftest.err |
16504 | rm -f conftest.er1 | |
16505 | cat conftest.err >&5 | |
a848cd7e SC |
16506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16507 | (exit $ac_status); } && | |
3f60522a JS |
16508 | { ac_try='test -z "$ac_cxx_werror_flag" |
16509 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16511 | (eval $ac_try) 2>&5 | |
16512 | ac_status=$? | |
16513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16514 | (exit $ac_status); }; } && | |
16515 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16517 | (eval $ac_try) 2>&5 | |
16518 | ac_status=$? | |
16519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16520 | (exit $ac_status); }; }; then | |
16521 | ac_header_compiler=yes | |
16522 | else | |
16523 | echo "$as_me: failed program was:" >&5 | |
16524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16525 | ||
16526 | ac_header_compiler=no | |
16527 | fi | |
ac1cb8d3 | 16528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16529 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16530 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16531 | ||
16532 | # Is the header present? | |
16533 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16534 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16535 | cat >conftest.$ac_ext <<_ACEOF | |
16536 | /* confdefs.h. */ | |
16537 | _ACEOF | |
16538 | cat confdefs.h >>conftest.$ac_ext | |
16539 | cat >>conftest.$ac_ext <<_ACEOF | |
16540 | /* end confdefs.h. */ | |
16541 | #include <$ac_header> | |
16542 | _ACEOF | |
16543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16545 | ac_status=$? | |
16546 | grep -v '^ *+' conftest.er1 >conftest.err | |
16547 | rm -f conftest.er1 | |
16548 | cat conftest.err >&5 | |
16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16550 | (exit $ac_status); } >/dev/null; then | |
16551 | if test -s conftest.err; then | |
5d7b7554 VZ |
16552 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16553 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16554 | else |
16555 | ac_cpp_err= | |
16556 | fi | |
16557 | else | |
16558 | ac_cpp_err=yes | |
16559 | fi | |
16560 | if test -z "$ac_cpp_err"; then | |
16561 | ac_header_preproc=yes | |
16562 | else | |
16563 | echo "$as_me: failed program was:" >&5 | |
16564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16565 | ||
16566 | ac_header_preproc=no | |
16567 | fi | |
16568 | rm -f conftest.err conftest.$ac_ext | |
16569 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16570 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16571 | ||
16572 | # So? What about this header? | |
5d7b7554 | 16573 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16574 | yes:no: ) |
a848cd7e SC |
16575 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16576 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16578 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16579 | ac_header_preproc=yes | |
a848cd7e | 16580 | ;; |
ac1cb8d3 | 16581 | no:yes:* ) |
a848cd7e SC |
16582 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16583 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16584 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16585 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16586 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16587 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16588 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16589 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16591 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16592 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16593 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16594 | ( |
16595 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16596 | ## ----------------------------------------- ## |
16597 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16598 | ## ----------------------------------------- ## | |
a848cd7e SC |
16599 | _ASBOX |
16600 | ) | | |
16601 | sed "s/^/$as_me: WARNING: /" >&2 | |
16602 | ;; | |
16603 | esac | |
16604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16608 | else | |
ac1cb8d3 | 16609 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16610 | fi |
16611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16612 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16613 | ||
16614 | fi | |
16615 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16616 | cat >>confdefs.h <<_ACEOF | |
16617 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16618 | _ACEOF | |
16619 | ||
16620 | fi | |
16621 | ||
16622 | done | |
16623 | ||
16624 | ||
16625 | for ac_header in unistd.h | |
16626 | do | |
16627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16633 | fi | |
16634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16636 | else | |
16637 | # Is the header compilable? | |
16638 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16639 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16640 | cat >conftest.$ac_ext <<_ACEOF | |
16641 | /* confdefs.h. */ | |
16642 | _ACEOF | |
16643 | cat confdefs.h >>conftest.$ac_ext | |
16644 | cat >>conftest.$ac_ext <<_ACEOF | |
16645 | /* end confdefs.h. */ | |
16646 | $ac_includes_default | |
16647 | #include <$ac_header> | |
16648 | _ACEOF | |
16649 | rm -f conftest.$ac_objext | |
16650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16651 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16652 | ac_status=$? |
ac1cb8d3 VS |
16653 | grep -v '^ *+' conftest.er1 >conftest.err |
16654 | rm -f conftest.er1 | |
16655 | cat conftest.err >&5 | |
a848cd7e SC |
16656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16657 | (exit $ac_status); } && | |
3f60522a JS |
16658 | { ac_try='test -z "$ac_cxx_werror_flag" |
16659 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16661 | (eval $ac_try) 2>&5 | |
16662 | ac_status=$? | |
16663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16664 | (exit $ac_status); }; } && | |
16665 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16667 | (eval $ac_try) 2>&5 | |
16668 | ac_status=$? | |
16669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16670 | (exit $ac_status); }; }; then | |
16671 | ac_header_compiler=yes | |
16672 | else | |
16673 | echo "$as_me: failed program was:" >&5 | |
16674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16675 | ||
16676 | ac_header_compiler=no | |
16677 | fi | |
ac1cb8d3 | 16678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16679 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16680 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16681 | ||
16682 | # Is the header present? | |
16683 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16684 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16685 | cat >conftest.$ac_ext <<_ACEOF | |
16686 | /* confdefs.h. */ | |
16687 | _ACEOF | |
16688 | cat confdefs.h >>conftest.$ac_ext | |
16689 | cat >>conftest.$ac_ext <<_ACEOF | |
16690 | /* end confdefs.h. */ | |
16691 | #include <$ac_header> | |
16692 | _ACEOF | |
16693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16695 | ac_status=$? | |
16696 | grep -v '^ *+' conftest.er1 >conftest.err | |
16697 | rm -f conftest.er1 | |
16698 | cat conftest.err >&5 | |
16699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16700 | (exit $ac_status); } >/dev/null; then | |
16701 | if test -s conftest.err; then | |
5d7b7554 VZ |
16702 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16703 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16704 | else |
16705 | ac_cpp_err= | |
16706 | fi | |
16707 | else | |
16708 | ac_cpp_err=yes | |
16709 | fi | |
16710 | if test -z "$ac_cpp_err"; then | |
16711 | ac_header_preproc=yes | |
16712 | else | |
16713 | echo "$as_me: failed program was:" >&5 | |
16714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16715 | ||
16716 | ac_header_preproc=no | |
16717 | fi | |
16718 | rm -f conftest.err conftest.$ac_ext | |
16719 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16720 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16721 | ||
16722 | # So? What about this header? | |
5d7b7554 | 16723 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16724 | yes:no: ) |
a848cd7e SC |
16725 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16726 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16728 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16729 | ac_header_preproc=yes | |
a848cd7e | 16730 | ;; |
ac1cb8d3 | 16731 | no:yes:* ) |
a848cd7e SC |
16732 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16733 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16734 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16735 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16736 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16737 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16738 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16739 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16741 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16742 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16743 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16744 | ( |
16745 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16746 | ## ----------------------------------------- ## |
16747 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16748 | ## ----------------------------------------- ## | |
a848cd7e SC |
16749 | _ASBOX |
16750 | ) | | |
16751 | sed "s/^/$as_me: WARNING: /" >&2 | |
16752 | ;; | |
16753 | esac | |
16754 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16758 | else | |
ac1cb8d3 | 16759 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16760 | fi |
16761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16763 | ||
16764 | fi | |
16765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16766 | cat >>confdefs.h <<_ACEOF | |
16767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16768 | _ACEOF | |
16769 | ||
16770 | fi | |
16771 | ||
16772 | done | |
16773 | ||
16774 | ||
16775 | for ac_header in wchar.h | |
16776 | do | |
16777 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16779 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16783 | fi | |
16784 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16785 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16786 | else | |
16787 | # Is the header compilable? | |
16788 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16789 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16790 | cat >conftest.$ac_ext <<_ACEOF | |
16791 | /* confdefs.h. */ | |
16792 | _ACEOF | |
16793 | cat confdefs.h >>conftest.$ac_ext | |
16794 | cat >>conftest.$ac_ext <<_ACEOF | |
16795 | /* end confdefs.h. */ | |
16796 | $ac_includes_default | |
16797 | #include <$ac_header> | |
16798 | _ACEOF | |
16799 | rm -f conftest.$ac_objext | |
16800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16801 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16802 | ac_status=$? |
ac1cb8d3 VS |
16803 | grep -v '^ *+' conftest.er1 >conftest.err |
16804 | rm -f conftest.er1 | |
16805 | cat conftest.err >&5 | |
a848cd7e SC |
16806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16807 | (exit $ac_status); } && | |
3f60522a JS |
16808 | { ac_try='test -z "$ac_cxx_werror_flag" |
16809 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16811 | (eval $ac_try) 2>&5 | |
16812 | ac_status=$? | |
16813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16814 | (exit $ac_status); }; } && | |
16815 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16817 | (eval $ac_try) 2>&5 | |
16818 | ac_status=$? | |
16819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16820 | (exit $ac_status); }; }; then | |
16821 | ac_header_compiler=yes | |
16822 | else | |
16823 | echo "$as_me: failed program was:" >&5 | |
16824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16825 | ||
16826 | ac_header_compiler=no | |
16827 | fi | |
ac1cb8d3 | 16828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16829 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16830 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16831 | ||
16832 | # Is the header present? | |
16833 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16834 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16835 | cat >conftest.$ac_ext <<_ACEOF | |
16836 | /* confdefs.h. */ | |
16837 | _ACEOF | |
16838 | cat confdefs.h >>conftest.$ac_ext | |
16839 | cat >>conftest.$ac_ext <<_ACEOF | |
16840 | /* end confdefs.h. */ | |
16841 | #include <$ac_header> | |
16842 | _ACEOF | |
16843 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16844 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16845 | ac_status=$? | |
16846 | grep -v '^ *+' conftest.er1 >conftest.err | |
16847 | rm -f conftest.er1 | |
16848 | cat conftest.err >&5 | |
16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16850 | (exit $ac_status); } >/dev/null; then | |
16851 | if test -s conftest.err; then | |
5d7b7554 VZ |
16852 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16853 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16854 | else |
16855 | ac_cpp_err= | |
16856 | fi | |
16857 | else | |
16858 | ac_cpp_err=yes | |
16859 | fi | |
16860 | if test -z "$ac_cpp_err"; then | |
16861 | ac_header_preproc=yes | |
16862 | else | |
16863 | echo "$as_me: failed program was:" >&5 | |
16864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16865 | ||
16866 | ac_header_preproc=no | |
16867 | fi | |
16868 | rm -f conftest.err conftest.$ac_ext | |
16869 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16870 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16871 | ||
16872 | # So? What about this header? | |
5d7b7554 | 16873 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16874 | yes:no: ) |
a848cd7e SC |
16875 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16876 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16878 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16879 | ac_header_preproc=yes | |
a848cd7e | 16880 | ;; |
ac1cb8d3 | 16881 | no:yes:* ) |
a848cd7e SC |
16882 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16883 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16884 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16885 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16886 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16887 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16888 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16889 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16891 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16892 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16893 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16894 | ( |
16895 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16896 | ## ----------------------------------------- ## |
16897 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16898 | ## ----------------------------------------- ## | |
a848cd7e SC |
16899 | _ASBOX |
16900 | ) | | |
16901 | sed "s/^/$as_me: WARNING: /" >&2 | |
16902 | ;; | |
16903 | esac | |
16904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16908 | else | |
ac1cb8d3 | 16909 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16910 | fi |
16911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16913 | ||
16914 | fi | |
16915 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16916 | cat >>confdefs.h <<_ACEOF | |
16917 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16918 | _ACEOF | |
16919 | ||
16920 | fi | |
16921 | ||
16922 | done | |
16923 | ||
16924 | ||
16925 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16926 | ||
16927 | for ac_header in wcstr.h | |
16928 | do | |
16929 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16931 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16932 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16933 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16935 | fi | |
16936 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16937 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16938 | else | |
16939 | # Is the header compilable? | |
16940 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16941 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16942 | cat >conftest.$ac_ext <<_ACEOF | |
16943 | /* confdefs.h. */ | |
16944 | _ACEOF | |
16945 | cat confdefs.h >>conftest.$ac_ext | |
16946 | cat >>conftest.$ac_ext <<_ACEOF | |
16947 | /* end confdefs.h. */ | |
16948 | $ac_includes_default | |
16949 | #include <$ac_header> | |
16950 | _ACEOF | |
16951 | rm -f conftest.$ac_objext | |
16952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16953 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16954 | ac_status=$? |
ac1cb8d3 VS |
16955 | grep -v '^ *+' conftest.er1 >conftest.err |
16956 | rm -f conftest.er1 | |
16957 | cat conftest.err >&5 | |
a848cd7e SC |
16958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16959 | (exit $ac_status); } && | |
3f60522a JS |
16960 | { ac_try='test -z "$ac_cxx_werror_flag" |
16961 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16963 | (eval $ac_try) 2>&5 | |
16964 | ac_status=$? | |
16965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16966 | (exit $ac_status); }; } && | |
16967 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16969 | (eval $ac_try) 2>&5 | |
16970 | ac_status=$? | |
16971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16972 | (exit $ac_status); }; }; then | |
16973 | ac_header_compiler=yes | |
16974 | else | |
16975 | echo "$as_me: failed program was:" >&5 | |
16976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16977 | ||
16978 | ac_header_compiler=no | |
16979 | fi | |
ac1cb8d3 | 16980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16981 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16982 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16983 | ||
16984 | # Is the header present? | |
16985 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16986 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16987 | cat >conftest.$ac_ext <<_ACEOF | |
16988 | /* confdefs.h. */ | |
16989 | _ACEOF | |
16990 | cat confdefs.h >>conftest.$ac_ext | |
16991 | cat >>conftest.$ac_ext <<_ACEOF | |
16992 | /* end confdefs.h. */ | |
16993 | #include <$ac_header> | |
16994 | _ACEOF | |
16995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16997 | ac_status=$? | |
16998 | grep -v '^ *+' conftest.er1 >conftest.err | |
16999 | rm -f conftest.er1 | |
17000 | cat conftest.err >&5 | |
17001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17002 | (exit $ac_status); } >/dev/null; then | |
17003 | if test -s conftest.err; then | |
5d7b7554 VZ |
17004 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17005 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17006 | else |
17007 | ac_cpp_err= | |
17008 | fi | |
17009 | else | |
17010 | ac_cpp_err=yes | |
17011 | fi | |
17012 | if test -z "$ac_cpp_err"; then | |
17013 | ac_header_preproc=yes | |
17014 | else | |
17015 | echo "$as_me: failed program was:" >&5 | |
17016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17017 | ||
17018 | ac_header_preproc=no | |
17019 | fi | |
17020 | rm -f conftest.err conftest.$ac_ext | |
17021 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17022 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17023 | ||
17024 | # So? What about this header? | |
5d7b7554 | 17025 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17026 | yes:no: ) |
a848cd7e SC |
17027 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17028 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17030 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17031 | ac_header_preproc=yes | |
a848cd7e | 17032 | ;; |
ac1cb8d3 | 17033 | no:yes:* ) |
a848cd7e SC |
17034 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17035 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17036 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17037 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17038 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17039 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17040 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17041 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17043 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17044 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17045 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17046 | ( |
17047 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17048 | ## ----------------------------------------- ## |
17049 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17050 | ## ----------------------------------------- ## | |
a848cd7e SC |
17051 | _ASBOX |
17052 | ) | | |
17053 | sed "s/^/$as_me: WARNING: /" >&2 | |
17054 | ;; | |
17055 | esac | |
17056 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17058 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17060 | else | |
ac1cb8d3 | 17061 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17062 | fi |
17063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17064 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17065 | ||
17066 | fi | |
17067 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17068 | cat >>confdefs.h <<_ACEOF | |
17069 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17070 | _ACEOF | |
17071 | ||
17072 | fi | |
17073 | ||
17074 | done | |
17075 | ||
17076 | fi | |
17077 | ||
17078 | ||
17079 | for ac_header in fnmatch.h | |
17080 | do | |
17081 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17082 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17083 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17087 | fi | |
17088 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17089 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17090 | else | |
17091 | # Is the header compilable? | |
17092 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17093 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17094 | cat >conftest.$ac_ext <<_ACEOF | |
17095 | /* confdefs.h. */ | |
17096 | _ACEOF | |
17097 | cat confdefs.h >>conftest.$ac_ext | |
17098 | cat >>conftest.$ac_ext <<_ACEOF | |
17099 | /* end confdefs.h. */ | |
17100 | $ac_includes_default | |
17101 | #include <$ac_header> | |
17102 | _ACEOF | |
17103 | rm -f conftest.$ac_objext | |
17104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17105 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17106 | ac_status=$? |
ac1cb8d3 VS |
17107 | grep -v '^ *+' conftest.er1 >conftest.err |
17108 | rm -f conftest.er1 | |
17109 | cat conftest.err >&5 | |
a848cd7e SC |
17110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17111 | (exit $ac_status); } && | |
3f60522a JS |
17112 | { ac_try='test -z "$ac_cxx_werror_flag" |
17113 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17115 | (eval $ac_try) 2>&5 | |
17116 | ac_status=$? | |
17117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17118 | (exit $ac_status); }; } && | |
17119 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17121 | (eval $ac_try) 2>&5 | |
17122 | ac_status=$? | |
17123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17124 | (exit $ac_status); }; }; then | |
17125 | ac_header_compiler=yes | |
17126 | else | |
17127 | echo "$as_me: failed program was:" >&5 | |
17128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17129 | ||
17130 | ac_header_compiler=no | |
17131 | fi | |
ac1cb8d3 | 17132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17133 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17134 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17135 | ||
17136 | # Is the header present? | |
17137 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17138 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17139 | cat >conftest.$ac_ext <<_ACEOF | |
17140 | /* confdefs.h. */ | |
17141 | _ACEOF | |
17142 | cat confdefs.h >>conftest.$ac_ext | |
17143 | cat >>conftest.$ac_ext <<_ACEOF | |
17144 | /* end confdefs.h. */ | |
17145 | #include <$ac_header> | |
17146 | _ACEOF | |
17147 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17148 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17149 | ac_status=$? | |
17150 | grep -v '^ *+' conftest.er1 >conftest.err | |
17151 | rm -f conftest.er1 | |
17152 | cat conftest.err >&5 | |
17153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17154 | (exit $ac_status); } >/dev/null; then | |
17155 | if test -s conftest.err; then | |
5d7b7554 VZ |
17156 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17157 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17158 | else |
17159 | ac_cpp_err= | |
17160 | fi | |
17161 | else | |
17162 | ac_cpp_err=yes | |
17163 | fi | |
17164 | if test -z "$ac_cpp_err"; then | |
17165 | ac_header_preproc=yes | |
17166 | else | |
17167 | echo "$as_me: failed program was:" >&5 | |
17168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17169 | ||
17170 | ac_header_preproc=no | |
17171 | fi | |
17172 | rm -f conftest.err conftest.$ac_ext | |
17173 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17174 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17175 | ||
17176 | # So? What about this header? | |
5d7b7554 | 17177 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17178 | yes:no: ) |
a848cd7e SC |
17179 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17180 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17181 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17182 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17183 | ac_header_preproc=yes | |
a848cd7e | 17184 | ;; |
ac1cb8d3 | 17185 | no:yes:* ) |
a848cd7e SC |
17186 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17187 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17188 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17189 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17190 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17191 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17192 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17193 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17194 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17195 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17196 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17197 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17198 | ( |
17199 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17200 | ## ----------------------------------------- ## |
17201 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17202 | ## ----------------------------------------- ## | |
a848cd7e SC |
17203 | _ASBOX |
17204 | ) | | |
17205 | sed "s/^/$as_me: WARNING: /" >&2 | |
17206 | ;; | |
17207 | esac | |
17208 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17209 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17210 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17212 | else | |
ac1cb8d3 | 17213 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17214 | fi |
17215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17216 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17217 | ||
17218 | fi | |
17219 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17220 | cat >>confdefs.h <<_ACEOF | |
17221 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17222 | _ACEOF | |
17223 | ||
17224 | fi | |
17225 | ||
17226 | done | |
17227 | ||
17228 | ||
a848cd7e SC |
17229 | |
17230 | for ac_header in langinfo.h | |
17231 | do | |
17232 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17233 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17234 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17238 | fi | |
17239 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17240 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17241 | else | |
17242 | # Is the header compilable? | |
17243 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17244 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17245 | cat >conftest.$ac_ext <<_ACEOF | |
17246 | /* confdefs.h. */ | |
17247 | _ACEOF | |
17248 | cat confdefs.h >>conftest.$ac_ext | |
17249 | cat >>conftest.$ac_ext <<_ACEOF | |
17250 | /* end confdefs.h. */ | |
17251 | $ac_includes_default | |
17252 | #include <$ac_header> | |
17253 | _ACEOF | |
17254 | rm -f conftest.$ac_objext | |
17255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17256 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17257 | ac_status=$? |
ac1cb8d3 VS |
17258 | grep -v '^ *+' conftest.er1 >conftest.err |
17259 | rm -f conftest.er1 | |
17260 | cat conftest.err >&5 | |
a848cd7e SC |
17261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17262 | (exit $ac_status); } && | |
3f60522a JS |
17263 | { ac_try='test -z "$ac_cxx_werror_flag" |
17264 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17266 | (eval $ac_try) 2>&5 | |
17267 | ac_status=$? | |
17268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17269 | (exit $ac_status); }; } && | |
17270 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17272 | (eval $ac_try) 2>&5 | |
17273 | ac_status=$? | |
17274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17275 | (exit $ac_status); }; }; then | |
17276 | ac_header_compiler=yes | |
17277 | else | |
17278 | echo "$as_me: failed program was:" >&5 | |
17279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17280 | ||
17281 | ac_header_compiler=no | |
17282 | fi | |
ac1cb8d3 | 17283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17284 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17285 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17286 | ||
17287 | # Is the header present? | |
17288 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17289 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17290 | cat >conftest.$ac_ext <<_ACEOF | |
17291 | /* confdefs.h. */ | |
17292 | _ACEOF | |
17293 | cat confdefs.h >>conftest.$ac_ext | |
17294 | cat >>conftest.$ac_ext <<_ACEOF | |
17295 | /* end confdefs.h. */ | |
17296 | #include <$ac_header> | |
17297 | _ACEOF | |
17298 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17299 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17300 | ac_status=$? | |
17301 | grep -v '^ *+' conftest.er1 >conftest.err | |
17302 | rm -f conftest.er1 | |
17303 | cat conftest.err >&5 | |
17304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17305 | (exit $ac_status); } >/dev/null; then | |
17306 | if test -s conftest.err; then | |
5d7b7554 VZ |
17307 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17308 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17309 | else |
17310 | ac_cpp_err= | |
17311 | fi | |
17312 | else | |
17313 | ac_cpp_err=yes | |
17314 | fi | |
17315 | if test -z "$ac_cpp_err"; then | |
17316 | ac_header_preproc=yes | |
17317 | else | |
17318 | echo "$as_me: failed program was:" >&5 | |
17319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17320 | ||
17321 | ac_header_preproc=no | |
17322 | fi | |
17323 | rm -f conftest.err conftest.$ac_ext | |
17324 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17325 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17326 | ||
17327 | # So? What about this header? | |
5d7b7554 | 17328 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17329 | yes:no: ) |
a848cd7e SC |
17330 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17331 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17332 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17333 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17334 | ac_header_preproc=yes | |
a848cd7e | 17335 | ;; |
ac1cb8d3 | 17336 | no:yes:* ) |
a848cd7e SC |
17337 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17338 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17339 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17340 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17341 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17342 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17343 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17344 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17345 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17346 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17347 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17348 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17349 | ( |
17350 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17351 | ## ----------------------------------------- ## |
17352 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17353 | ## ----------------------------------------- ## | |
a848cd7e SC |
17354 | _ASBOX |
17355 | ) | | |
17356 | sed "s/^/$as_me: WARNING: /" >&2 | |
17357 | ;; | |
17358 | esac | |
17359 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17360 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17361 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17363 | else | |
ac1cb8d3 | 17364 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17365 | fi |
17366 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17367 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17368 | ||
17369 | fi | |
17370 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17371 | cat >>confdefs.h <<_ACEOF | |
17372 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17373 | _ACEOF | |
17374 | ||
17375 | fi | |
17376 | ||
17377 | done | |
17378 | ||
17379 | ||
17380 | case "${host}" in | |
17381 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
17382 | if test $ac_cv_header_langinfo_h = "yes" \ |
17383 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
17384 | -o "$wx_cv_gccversion" = "EMX3" \ | |
17385 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
17386 | LIBS="$LIBS -lintl" |
17387 | fi | |
17388 | ;; | |
17389 | esac | |
17390 | ||
a848cd7e SC |
17391 | |
17392 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
17393 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
17394 | if test "${ac_cv_c_const+set}" = set; then | |
17395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17396 | else | |
17397 | cat >conftest.$ac_ext <<_ACEOF | |
17398 | /* confdefs.h. */ | |
17399 | _ACEOF | |
17400 | cat confdefs.h >>conftest.$ac_ext | |
17401 | cat >>conftest.$ac_ext <<_ACEOF | |
17402 | /* end confdefs.h. */ | |
17403 | ||
17404 | int | |
17405 | main () | |
17406 | { | |
17407 | /* FIXME: Include the comments suggested by Paul. */ | |
17408 | #ifndef __cplusplus | |
17409 | /* Ultrix mips cc rejects this. */ | |
17410 | typedef int charset[2]; | |
17411 | const charset x; | |
17412 | /* SunOS 4.1.1 cc rejects this. */ | |
17413 | char const *const *ccp; | |
17414 | char **p; | |
17415 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
17416 | struct point {int x, y;}; | |
17417 | static struct point const zero = {0,0}; | |
17418 | /* AIX XL C 1.02.0.0 rejects this. | |
17419 | It does not let you subtract one const X* pointer from another in | |
17420 | an arm of an if-expression whose if-part is not a constant | |
17421 | expression */ | |
17422 | const char *g = "string"; | |
17423 | ccp = &g + (g ? g-g : 0); | |
17424 | /* HPUX 7.0 cc rejects these. */ | |
17425 | ++ccp; | |
17426 | p = (char**) ccp; | |
17427 | ccp = (char const *const *) p; | |
17428 | { /* SCO 3.2v4 cc rejects this. */ | |
17429 | char *t; | |
17430 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
17431 | ||
17432 | *t++ = 0; | |
17433 | } | |
17434 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
17435 | int x[] = {25, 17}; | |
17436 | const int *foo = &x[0]; | |
17437 | ++foo; | |
17438 | } | |
17439 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
17440 | typedef const int *iptr; | |
17441 | iptr p = 0; | |
17442 | ++p; | |
17443 | } | |
17444 | { /* AIX XL C 1.02.0.0 rejects this saying | |
17445 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
17446 | struct s { int j; const int *ap[3]; }; | |
17447 | struct s *b; b->j = 5; | |
17448 | } | |
17449 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
17450 | const int foo = 10; | |
17451 | } | |
17452 | #endif | |
17453 | ||
17454 | ; | |
17455 | return 0; | |
17456 | } | |
17457 | _ACEOF | |
17458 | rm -f conftest.$ac_objext | |
17459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17460 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17461 | ac_status=$? |
ac1cb8d3 VS |
17462 | grep -v '^ *+' conftest.er1 >conftest.err |
17463 | rm -f conftest.er1 | |
17464 | cat conftest.err >&5 | |
a848cd7e SC |
17465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17466 | (exit $ac_status); } && | |
3f60522a JS |
17467 | { ac_try='test -z "$ac_cxx_werror_flag" |
17468 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17470 | (eval $ac_try) 2>&5 | |
17471 | ac_status=$? | |
17472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17473 | (exit $ac_status); }; } && | |
17474 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17476 | (eval $ac_try) 2>&5 | |
17477 | ac_status=$? | |
17478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17479 | (exit $ac_status); }; }; then | |
17480 | ac_cv_c_const=yes | |
17481 | else | |
17482 | echo "$as_me: failed program was:" >&5 | |
17483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17484 | ||
17485 | ac_cv_c_const=no | |
17486 | fi | |
ac1cb8d3 | 17487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17488 | fi |
17489 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
17490 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
17491 | if test $ac_cv_c_const = no; then | |
17492 | ||
17493 | cat >>confdefs.h <<\_ACEOF | |
17494 | #define const | |
17495 | _ACEOF | |
17496 | ||
17497 | fi | |
17498 | ||
17499 | echo "$as_me:$LINENO: checking for inline" >&5 | |
17500 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
17501 | if test "${ac_cv_c_inline+set}" = set; then | |
17502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17503 | else | |
17504 | ac_cv_c_inline=no | |
17505 | for ac_kw in inline __inline__ __inline; do | |
17506 | cat >conftest.$ac_ext <<_ACEOF | |
17507 | /* confdefs.h. */ | |
17508 | _ACEOF | |
17509 | cat confdefs.h >>conftest.$ac_ext | |
17510 | cat >>conftest.$ac_ext <<_ACEOF | |
17511 | /* end confdefs.h. */ | |
17512 | #ifndef __cplusplus | |
17513 | typedef int foo_t; | |
17514 | static $ac_kw foo_t static_foo () {return 0; } | |
17515 | $ac_kw foo_t foo () {return 0; } | |
17516 | #endif | |
17517 | ||
17518 | _ACEOF | |
17519 | rm -f conftest.$ac_objext | |
17520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17521 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17522 | ac_status=$? |
ac1cb8d3 VS |
17523 | grep -v '^ *+' conftest.er1 >conftest.err |
17524 | rm -f conftest.er1 | |
17525 | cat conftest.err >&5 | |
a848cd7e SC |
17526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17527 | (exit $ac_status); } && | |
3f60522a JS |
17528 | { ac_try='test -z "$ac_cxx_werror_flag" |
17529 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17531 | (eval $ac_try) 2>&5 | |
17532 | ac_status=$? | |
17533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17534 | (exit $ac_status); }; } && | |
17535 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17537 | (eval $ac_try) 2>&5 | |
17538 | ac_status=$? | |
17539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17540 | (exit $ac_status); }; }; then | |
17541 | ac_cv_c_inline=$ac_kw; break | |
17542 | else | |
17543 | echo "$as_me: failed program was:" >&5 | |
17544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17545 | ||
17546 | fi | |
ac1cb8d3 | 17547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17548 | done |
17549 | ||
17550 | fi | |
17551 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
17552 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
17553 | |
17554 | ||
a848cd7e SC |
17555 | case $ac_cv_c_inline in |
17556 | inline | yes) ;; | |
ac1cb8d3 VS |
17557 | *) |
17558 | case $ac_cv_c_inline in | |
17559 | no) ac_val=;; | |
17560 | *) ac_val=$ac_cv_c_inline;; | |
17561 | esac | |
17562 | cat >>confdefs.h <<_ACEOF | |
17563 | #ifndef __cplusplus | |
17564 | #define inline $ac_val | |
17565 | #endif | |
de59c161 | 17566 | _ACEOF |
ac1cb8d3 | 17567 | ;; |
a848cd7e SC |
17568 | esac |
17569 | ||
17570 | ||
17571 | echo "$as_me:$LINENO: checking for char" >&5 | |
17572 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
17573 | if test "${ac_cv_type_char+set}" = set; then | |
17574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17575 | else | |
17576 | cat >conftest.$ac_ext <<_ACEOF | |
17577 | /* confdefs.h. */ | |
17578 | _ACEOF | |
17579 | cat confdefs.h >>conftest.$ac_ext | |
17580 | cat >>conftest.$ac_ext <<_ACEOF | |
17581 | /* end confdefs.h. */ | |
17582 | $ac_includes_default | |
17583 | int | |
17584 | main () | |
17585 | { | |
17586 | if ((char *) 0) | |
17587 | return 0; | |
17588 | if (sizeof (char)) | |
17589 | return 0; | |
17590 | ; | |
17591 | return 0; | |
17592 | } | |
17593 | _ACEOF | |
17594 | rm -f conftest.$ac_objext | |
17595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17596 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17597 | ac_status=$? |
ac1cb8d3 VS |
17598 | grep -v '^ *+' conftest.er1 >conftest.err |
17599 | rm -f conftest.er1 | |
17600 | cat conftest.err >&5 | |
a848cd7e SC |
17601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17602 | (exit $ac_status); } && | |
3f60522a JS |
17603 | { ac_try='test -z "$ac_cxx_werror_flag" |
17604 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17606 | (eval $ac_try) 2>&5 | |
17607 | ac_status=$? | |
17608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17609 | (exit $ac_status); }; } && | |
17610 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17612 | (eval $ac_try) 2>&5 | |
17613 | ac_status=$? | |
17614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17615 | (exit $ac_status); }; }; then | |
17616 | ac_cv_type_char=yes | |
17617 | else | |
17618 | echo "$as_me: failed program was:" >&5 | |
17619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17620 | ||
17621 | ac_cv_type_char=no | |
17622 | fi | |
ac1cb8d3 | 17623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17624 | fi |
17625 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
17626 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
17627 | ||
17628 | echo "$as_me:$LINENO: checking size of char" >&5 | |
17629 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
17630 | if test "${ac_cv_sizeof_char+set}" = set; then | |
17631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17632 | else | |
17633 | if test "$ac_cv_type_char" = yes; then | |
17634 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17635 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17636 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17637 | # This bug is HP SR number 8606223364. | |
17638 | if test "$cross_compiling" = yes; then | |
17639 | # Depending upon the size, compute the lo and hi bounds. | |
17640 | cat >conftest.$ac_ext <<_ACEOF | |
17641 | /* confdefs.h. */ | |
17642 | _ACEOF | |
17643 | cat confdefs.h >>conftest.$ac_ext | |
17644 | cat >>conftest.$ac_ext <<_ACEOF | |
17645 | /* end confdefs.h. */ | |
17646 | $ac_includes_default | |
17647 | int | |
17648 | main () | |
17649 | { | |
17650 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
17651 | test_array [0] = 0 | |
17652 | ||
17653 | ; | |
17654 | return 0; | |
17655 | } | |
17656 | _ACEOF | |
17657 | rm -f conftest.$ac_objext | |
17658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17659 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17660 | ac_status=$? |
ac1cb8d3 VS |
17661 | grep -v '^ *+' conftest.er1 >conftest.err |
17662 | rm -f conftest.er1 | |
17663 | cat conftest.err >&5 | |
a848cd7e SC |
17664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17665 | (exit $ac_status); } && | |
3f60522a JS |
17666 | { ac_try='test -z "$ac_cxx_werror_flag" |
17667 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17669 | (eval $ac_try) 2>&5 | |
17670 | ac_status=$? | |
17671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17672 | (exit $ac_status); }; } && | |
17673 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17675 | (eval $ac_try) 2>&5 | |
17676 | ac_status=$? | |
17677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17678 | (exit $ac_status); }; }; then | |
17679 | ac_lo=0 ac_mid=0 | |
17680 | while :; do | |
17681 | cat >conftest.$ac_ext <<_ACEOF | |
17682 | /* confdefs.h. */ | |
17683 | _ACEOF | |
17684 | cat confdefs.h >>conftest.$ac_ext | |
17685 | cat >>conftest.$ac_ext <<_ACEOF | |
17686 | /* end confdefs.h. */ | |
17687 | $ac_includes_default | |
17688 | int | |
17689 | main () | |
17690 | { | |
17691 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17692 | test_array [0] = 0 | |
17693 | ||
17694 | ; | |
17695 | return 0; | |
17696 | } | |
17697 | _ACEOF | |
17698 | rm -f conftest.$ac_objext | |
17699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17700 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17701 | ac_status=$? |
ac1cb8d3 VS |
17702 | grep -v '^ *+' conftest.er1 >conftest.err |
17703 | rm -f conftest.er1 | |
17704 | cat conftest.err >&5 | |
a848cd7e SC |
17705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17706 | (exit $ac_status); } && | |
3f60522a JS |
17707 | { ac_try='test -z "$ac_cxx_werror_flag" |
17708 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17710 | (eval $ac_try) 2>&5 | |
17711 | ac_status=$? | |
17712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17713 | (exit $ac_status); }; } && | |
17714 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17716 | (eval $ac_try) 2>&5 | |
17717 | ac_status=$? | |
17718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17719 | (exit $ac_status); }; }; then | |
17720 | ac_hi=$ac_mid; break | |
17721 | else | |
17722 | echo "$as_me: failed program was:" >&5 | |
17723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17724 | ||
17725 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17726 | if test $ac_lo -le $ac_mid; then |
17727 | ac_lo= ac_hi= | |
17728 | break | |
17729 | fi | |
17730 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17731 | fi |
ac1cb8d3 | 17732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17733 | done |
17734 | else | |
17735 | echo "$as_me: failed program was:" >&5 | |
17736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17737 | ||
17738 | cat >conftest.$ac_ext <<_ACEOF | |
17739 | /* confdefs.h. */ | |
17740 | _ACEOF | |
17741 | cat confdefs.h >>conftest.$ac_ext | |
17742 | cat >>conftest.$ac_ext <<_ACEOF | |
17743 | /* end confdefs.h. */ | |
17744 | $ac_includes_default | |
17745 | int | |
17746 | main () | |
17747 | { | |
17748 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17749 | test_array [0] = 0 | |
17750 | ||
17751 | ; | |
17752 | return 0; | |
17753 | } | |
17754 | _ACEOF | |
17755 | rm -f conftest.$ac_objext | |
17756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17757 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17758 | ac_status=$? |
ac1cb8d3 VS |
17759 | grep -v '^ *+' conftest.er1 >conftest.err |
17760 | rm -f conftest.er1 | |
17761 | cat conftest.err >&5 | |
a848cd7e SC |
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17763 | (exit $ac_status); } && | |
3f60522a JS |
17764 | { ac_try='test -z "$ac_cxx_werror_flag" |
17765 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17767 | (eval $ac_try) 2>&5 | |
17768 | ac_status=$? | |
17769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17770 | (exit $ac_status); }; } && | |
17771 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17773 | (eval $ac_try) 2>&5 | |
17774 | ac_status=$? | |
17775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17776 | (exit $ac_status); }; }; then | |
17777 | ac_hi=-1 ac_mid=-1 | |
17778 | while :; do | |
17779 | cat >conftest.$ac_ext <<_ACEOF | |
17780 | /* confdefs.h. */ | |
17781 | _ACEOF | |
17782 | cat confdefs.h >>conftest.$ac_ext | |
17783 | cat >>conftest.$ac_ext <<_ACEOF | |
17784 | /* end confdefs.h. */ | |
17785 | $ac_includes_default | |
17786 | int | |
17787 | main () | |
17788 | { | |
17789 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17790 | test_array [0] = 0 | |
17791 | ||
17792 | ; | |
17793 | return 0; | |
17794 | } | |
17795 | _ACEOF | |
17796 | rm -f conftest.$ac_objext | |
17797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17798 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17799 | ac_status=$? |
ac1cb8d3 VS |
17800 | grep -v '^ *+' conftest.er1 >conftest.err |
17801 | rm -f conftest.er1 | |
17802 | cat conftest.err >&5 | |
a848cd7e SC |
17803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17804 | (exit $ac_status); } && | |
3f60522a JS |
17805 | { ac_try='test -z "$ac_cxx_werror_flag" |
17806 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17808 | (eval $ac_try) 2>&5 | |
17809 | ac_status=$? | |
17810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17811 | (exit $ac_status); }; } && | |
17812 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17814 | (eval $ac_try) 2>&5 | |
17815 | ac_status=$? | |
17816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17817 | (exit $ac_status); }; }; then | |
17818 | ac_lo=$ac_mid; break | |
17819 | else | |
17820 | echo "$as_me: failed program was:" >&5 | |
17821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17822 | ||
17823 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17824 | if test $ac_mid -le $ac_hi; then |
17825 | ac_lo= ac_hi= | |
17826 | break | |
17827 | fi | |
17828 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17829 | fi |
ac1cb8d3 | 17830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17831 | done |
17832 | else | |
17833 | echo "$as_me: failed program was:" >&5 | |
17834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17835 | ||
17836 | ac_lo= ac_hi= | |
17837 | fi | |
ac1cb8d3 | 17838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17839 | fi |
ac1cb8d3 | 17840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17841 | # Binary search between lo and hi bounds. |
17842 | while test "x$ac_lo" != "x$ac_hi"; do | |
17843 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17844 | cat >conftest.$ac_ext <<_ACEOF | |
17845 | /* confdefs.h. */ | |
17846 | _ACEOF | |
17847 | cat confdefs.h >>conftest.$ac_ext | |
17848 | cat >>conftest.$ac_ext <<_ACEOF | |
17849 | /* end confdefs.h. */ | |
17850 | $ac_includes_default | |
17851 | int | |
17852 | main () | |
17853 | { | |
17854 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17855 | test_array [0] = 0 | |
17856 | ||
17857 | ; | |
17858 | return 0; | |
17859 | } | |
17860 | _ACEOF | |
17861 | rm -f conftest.$ac_objext | |
17862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17863 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17864 | ac_status=$? |
ac1cb8d3 VS |
17865 | grep -v '^ *+' conftest.er1 >conftest.err |
17866 | rm -f conftest.er1 | |
17867 | cat conftest.err >&5 | |
a848cd7e SC |
17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17869 | (exit $ac_status); } && | |
3f60522a JS |
17870 | { ac_try='test -z "$ac_cxx_werror_flag" |
17871 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17873 | (eval $ac_try) 2>&5 | |
17874 | ac_status=$? | |
17875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17876 | (exit $ac_status); }; } && | |
17877 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17879 | (eval $ac_try) 2>&5 | |
17880 | ac_status=$? | |
17881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17882 | (exit $ac_status); }; }; then | |
17883 | ac_hi=$ac_mid | |
17884 | else | |
17885 | echo "$as_me: failed program was:" >&5 | |
17886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17887 | ||
17888 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17889 | fi | |
ac1cb8d3 | 17890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17891 | done |
17892 | case $ac_lo in | |
17893 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
17894 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17895 | See \`config.log' for more details." >&5 | |
17896 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17897 | See \`config.log' for more details." >&2;} | |
17898 | { (exit 1); exit 1; }; } ;; | |
17899 | esac | |
17900 | else | |
17901 | if test "$cross_compiling" = yes; then | |
3f60522a JS |
17902 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17903 | See \`config.log' for more details." >&5 | |
17904 | echo "$as_me: error: cannot run test program while cross compiling | |
17905 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17906 | { (exit 1); exit 1; }; } |
17907 | else | |
17908 | cat >conftest.$ac_ext <<_ACEOF | |
17909 | /* confdefs.h. */ | |
17910 | _ACEOF | |
17911 | cat confdefs.h >>conftest.$ac_ext | |
17912 | cat >>conftest.$ac_ext <<_ACEOF | |
17913 | /* end confdefs.h. */ | |
17914 | $ac_includes_default | |
17915 | long longval () { return (long) (sizeof (char)); } | |
17916 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
17917 | #include <stdio.h> | |
17918 | #include <stdlib.h> | |
17919 | int | |
17920 | main () | |
17921 | { | |
17922 | ||
17923 | FILE *f = fopen ("conftest.val", "w"); | |
17924 | if (! f) | |
17925 | exit (1); | |
17926 | if (((long) (sizeof (char))) < 0) | |
17927 | { | |
17928 | long i = longval (); | |
17929 | if (i != ((long) (sizeof (char)))) | |
17930 | exit (1); | |
17931 | fprintf (f, "%ld\n", i); | |
17932 | } | |
17933 | else | |
17934 | { | |
17935 | unsigned long i = ulongval (); | |
17936 | if (i != ((long) (sizeof (char)))) | |
17937 | exit (1); | |
17938 | fprintf (f, "%lu\n", i); | |
17939 | } | |
17940 | exit (ferror (f) || fclose (f) != 0); | |
17941 | ||
17942 | ; | |
17943 | return 0; | |
17944 | } | |
17945 | _ACEOF | |
17946 | rm -f conftest$ac_exeext | |
17947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17948 | (eval $ac_link) 2>&5 | |
17949 | ac_status=$? | |
17950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17953 | (eval $ac_try) 2>&5 | |
17954 | ac_status=$? | |
17955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17956 | (exit $ac_status); }; }; then | |
17957 | ac_cv_sizeof_char=`cat conftest.val` | |
17958 | else | |
17959 | echo "$as_me: program exited with status $ac_status" >&5 | |
17960 | echo "$as_me: failed program was:" >&5 | |
17961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17962 | ||
17963 | ( exit $ac_status ) | |
17964 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17965 | See \`config.log' for more details." >&5 | |
17966 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17967 | See \`config.log' for more details." >&2;} | |
17968 | { (exit 1); exit 1; }; } | |
17969 | fi | |
ac1cb8d3 | 17970 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17971 | fi |
17972 | fi | |
17973 | rm -f conftest.val | |
17974 | else | |
17975 | ac_cv_sizeof_char=0 | |
17976 | fi | |
17977 | fi | |
17978 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17979 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17980 | cat >>confdefs.h <<_ACEOF | |
17981 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17982 | _ACEOF | |
17983 | ||
17984 | ||
17985 | echo "$as_me:$LINENO: checking for short" >&5 | |
17986 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
17987 | if test "${ac_cv_type_short+set}" = set; then | |
17988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17989 | else | |
17990 | cat >conftest.$ac_ext <<_ACEOF | |
17991 | /* confdefs.h. */ | |
17992 | _ACEOF | |
17993 | cat confdefs.h >>conftest.$ac_ext | |
17994 | cat >>conftest.$ac_ext <<_ACEOF | |
17995 | /* end confdefs.h. */ | |
17996 | $ac_includes_default | |
17997 | int | |
17998 | main () | |
17999 | { | |
18000 | if ((short *) 0) | |
18001 | return 0; | |
18002 | if (sizeof (short)) | |
18003 | return 0; | |
18004 | ; | |
18005 | return 0; | |
18006 | } | |
18007 | _ACEOF | |
18008 | rm -f conftest.$ac_objext | |
18009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18010 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18011 | ac_status=$? |
ac1cb8d3 VS |
18012 | grep -v '^ *+' conftest.er1 >conftest.err |
18013 | rm -f conftest.er1 | |
18014 | cat conftest.err >&5 | |
a848cd7e SC |
18015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18016 | (exit $ac_status); } && | |
3f60522a JS |
18017 | { ac_try='test -z "$ac_cxx_werror_flag" |
18018 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18020 | (eval $ac_try) 2>&5 | |
18021 | ac_status=$? | |
18022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18023 | (exit $ac_status); }; } && | |
18024 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18026 | (eval $ac_try) 2>&5 | |
18027 | ac_status=$? | |
18028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18029 | (exit $ac_status); }; }; then | |
18030 | ac_cv_type_short=yes | |
18031 | else | |
18032 | echo "$as_me: failed program was:" >&5 | |
18033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18034 | ||
18035 | ac_cv_type_short=no | |
18036 | fi | |
ac1cb8d3 | 18037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18038 | fi |
18039 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
18040 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
18041 | ||
18042 | echo "$as_me:$LINENO: checking size of short" >&5 | |
18043 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
18044 | if test "${ac_cv_sizeof_short+set}" = set; then | |
18045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18046 | else | |
18047 | if test "$ac_cv_type_short" = yes; then | |
18048 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18049 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18050 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18051 | # This bug is HP SR number 8606223364. | |
18052 | if test "$cross_compiling" = yes; then | |
18053 | # Depending upon the size, compute the lo and hi bounds. | |
18054 | cat >conftest.$ac_ext <<_ACEOF | |
18055 | /* confdefs.h. */ | |
18056 | _ACEOF | |
18057 | cat confdefs.h >>conftest.$ac_ext | |
18058 | cat >>conftest.$ac_ext <<_ACEOF | |
18059 | /* end confdefs.h. */ | |
18060 | $ac_includes_default | |
18061 | int | |
18062 | main () | |
18063 | { | |
18064 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
18065 | test_array [0] = 0 | |
18066 | ||
18067 | ; | |
18068 | return 0; | |
18069 | } | |
18070 | _ACEOF | |
18071 | rm -f conftest.$ac_objext | |
18072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18073 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18074 | ac_status=$? |
ac1cb8d3 VS |
18075 | grep -v '^ *+' conftest.er1 >conftest.err |
18076 | rm -f conftest.er1 | |
18077 | cat conftest.err >&5 | |
a848cd7e SC |
18078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18079 | (exit $ac_status); } && | |
3f60522a JS |
18080 | { ac_try='test -z "$ac_cxx_werror_flag" |
18081 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18083 | (eval $ac_try) 2>&5 | |
18084 | ac_status=$? | |
18085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18086 | (exit $ac_status); }; } && | |
18087 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18089 | (eval $ac_try) 2>&5 | |
18090 | ac_status=$? | |
18091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18092 | (exit $ac_status); }; }; then | |
18093 | ac_lo=0 ac_mid=0 | |
18094 | while :; do | |
18095 | cat >conftest.$ac_ext <<_ACEOF | |
18096 | /* confdefs.h. */ | |
18097 | _ACEOF | |
18098 | cat confdefs.h >>conftest.$ac_ext | |
18099 | cat >>conftest.$ac_ext <<_ACEOF | |
18100 | /* end confdefs.h. */ | |
18101 | $ac_includes_default | |
18102 | int | |
18103 | main () | |
18104 | { | |
18105 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
18106 | test_array [0] = 0 | |
18107 | ||
18108 | ; | |
18109 | return 0; | |
18110 | } | |
18111 | _ACEOF | |
18112 | rm -f conftest.$ac_objext | |
18113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18114 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18115 | ac_status=$? |
ac1cb8d3 VS |
18116 | grep -v '^ *+' conftest.er1 >conftest.err |
18117 | rm -f conftest.er1 | |
18118 | cat conftest.err >&5 | |
a848cd7e SC |
18119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18120 | (exit $ac_status); } && | |
3f60522a JS |
18121 | { ac_try='test -z "$ac_cxx_werror_flag" |
18122 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18124 | (eval $ac_try) 2>&5 | |
18125 | ac_status=$? | |
18126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18127 | (exit $ac_status); }; } && | |
18128 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18130 | (eval $ac_try) 2>&5 | |
18131 | ac_status=$? | |
18132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18133 | (exit $ac_status); }; }; then | |
18134 | ac_hi=$ac_mid; break | |
18135 | else | |
18136 | echo "$as_me: failed program was:" >&5 | |
18137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18138 | ||
18139 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18140 | if test $ac_lo -le $ac_mid; then |
18141 | ac_lo= ac_hi= | |
18142 | break | |
18143 | fi | |
18144 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18145 | fi |
ac1cb8d3 | 18146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18147 | done |
18148 | else | |
18149 | echo "$as_me: failed program was:" >&5 | |
18150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18151 | ||
18152 | cat >conftest.$ac_ext <<_ACEOF | |
18153 | /* confdefs.h. */ | |
18154 | _ACEOF | |
18155 | cat confdefs.h >>conftest.$ac_ext | |
18156 | cat >>conftest.$ac_ext <<_ACEOF | |
18157 | /* end confdefs.h. */ | |
18158 | $ac_includes_default | |
18159 | int | |
18160 | main () | |
18161 | { | |
18162 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
18163 | test_array [0] = 0 | |
18164 | ||
18165 | ; | |
18166 | return 0; | |
18167 | } | |
18168 | _ACEOF | |
18169 | rm -f conftest.$ac_objext | |
18170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18171 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18172 | ac_status=$? |
ac1cb8d3 VS |
18173 | grep -v '^ *+' conftest.er1 >conftest.err |
18174 | rm -f conftest.er1 | |
18175 | cat conftest.err >&5 | |
a848cd7e SC |
18176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18177 | (exit $ac_status); } && | |
3f60522a JS |
18178 | { ac_try='test -z "$ac_cxx_werror_flag" |
18179 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18181 | (eval $ac_try) 2>&5 | |
18182 | ac_status=$? | |
18183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18184 | (exit $ac_status); }; } && | |
18185 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18187 | (eval $ac_try) 2>&5 | |
18188 | ac_status=$? | |
18189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18190 | (exit $ac_status); }; }; then | |
18191 | ac_hi=-1 ac_mid=-1 | |
18192 | while :; do | |
18193 | cat >conftest.$ac_ext <<_ACEOF | |
18194 | /* confdefs.h. */ | |
18195 | _ACEOF | |
18196 | cat confdefs.h >>conftest.$ac_ext | |
18197 | cat >>conftest.$ac_ext <<_ACEOF | |
18198 | /* end confdefs.h. */ | |
18199 | $ac_includes_default | |
18200 | int | |
18201 | main () | |
18202 | { | |
18203 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
18204 | test_array [0] = 0 | |
18205 | ||
18206 | ; | |
18207 | return 0; | |
18208 | } | |
18209 | _ACEOF | |
18210 | rm -f conftest.$ac_objext | |
18211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18212 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18213 | ac_status=$? |
ac1cb8d3 VS |
18214 | grep -v '^ *+' conftest.er1 >conftest.err |
18215 | rm -f conftest.er1 | |
18216 | cat conftest.err >&5 | |
a848cd7e SC |
18217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18218 | (exit $ac_status); } && | |
3f60522a JS |
18219 | { ac_try='test -z "$ac_cxx_werror_flag" |
18220 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18222 | (eval $ac_try) 2>&5 | |
18223 | ac_status=$? | |
18224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18225 | (exit $ac_status); }; } && | |
18226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18228 | (eval $ac_try) 2>&5 | |
18229 | ac_status=$? | |
18230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18231 | (exit $ac_status); }; }; then | |
18232 | ac_lo=$ac_mid; break | |
18233 | else | |
18234 | echo "$as_me: failed program was:" >&5 | |
18235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18236 | ||
18237 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18238 | if test $ac_mid -le $ac_hi; then |
18239 | ac_lo= ac_hi= | |
18240 | break | |
18241 | fi | |
18242 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18243 | fi |
ac1cb8d3 | 18244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18245 | done |
18246 | else | |
18247 | echo "$as_me: failed program was:" >&5 | |
18248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18249 | ||
18250 | ac_lo= ac_hi= | |
18251 | fi | |
ac1cb8d3 | 18252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18253 | fi |
ac1cb8d3 | 18254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18255 | # Binary search between lo and hi bounds. |
18256 | while test "x$ac_lo" != "x$ac_hi"; do | |
18257 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18258 | cat >conftest.$ac_ext <<_ACEOF | |
18259 | /* confdefs.h. */ | |
18260 | _ACEOF | |
18261 | cat confdefs.h >>conftest.$ac_ext | |
18262 | cat >>conftest.$ac_ext <<_ACEOF | |
18263 | /* end confdefs.h. */ | |
18264 | $ac_includes_default | |
18265 | int | |
18266 | main () | |
18267 | { | |
18268 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
18269 | test_array [0] = 0 | |
18270 | ||
18271 | ; | |
18272 | return 0; | |
18273 | } | |
18274 | _ACEOF | |
18275 | rm -f conftest.$ac_objext | |
18276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18277 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18278 | ac_status=$? |
ac1cb8d3 VS |
18279 | grep -v '^ *+' conftest.er1 >conftest.err |
18280 | rm -f conftest.er1 | |
18281 | cat conftest.err >&5 | |
a848cd7e SC |
18282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18283 | (exit $ac_status); } && | |
3f60522a JS |
18284 | { ac_try='test -z "$ac_cxx_werror_flag" |
18285 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18287 | (eval $ac_try) 2>&5 | |
18288 | ac_status=$? | |
18289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18290 | (exit $ac_status); }; } && | |
18291 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18293 | (eval $ac_try) 2>&5 | |
18294 | ac_status=$? | |
18295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18296 | (exit $ac_status); }; }; then | |
18297 | ac_hi=$ac_mid | |
18298 | else | |
18299 | echo "$as_me: failed program was:" >&5 | |
18300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18301 | ||
18302 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18303 | fi | |
ac1cb8d3 | 18304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18305 | done |
18306 | case $ac_lo in | |
18307 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
18308 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18309 | See \`config.log' for more details." >&5 | |
18310 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18311 | See \`config.log' for more details." >&2;} | |
18312 | { (exit 1); exit 1; }; } ;; | |
18313 | esac | |
18314 | else | |
18315 | if test "$cross_compiling" = yes; then | |
3f60522a JS |
18316 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18317 | See \`config.log' for more details." >&5 | |
18318 | echo "$as_me: error: cannot run test program while cross compiling | |
18319 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18320 | { (exit 1); exit 1; }; } |
18321 | else | |
18322 | cat >conftest.$ac_ext <<_ACEOF | |
18323 | /* confdefs.h. */ | |
18324 | _ACEOF | |
18325 | cat confdefs.h >>conftest.$ac_ext | |
18326 | cat >>conftest.$ac_ext <<_ACEOF | |
18327 | /* end confdefs.h. */ | |
18328 | $ac_includes_default | |
18329 | long longval () { return (long) (sizeof (short)); } | |
18330 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
18331 | #include <stdio.h> | |
18332 | #include <stdlib.h> | |
18333 | int | |
18334 | main () | |
18335 | { | |
18336 | ||
18337 | FILE *f = fopen ("conftest.val", "w"); | |
18338 | if (! f) | |
18339 | exit (1); | |
18340 | if (((long) (sizeof (short))) < 0) | |
18341 | { | |
18342 | long i = longval (); | |
18343 | if (i != ((long) (sizeof (short)))) | |
18344 | exit (1); | |
18345 | fprintf (f, "%ld\n", i); | |
18346 | } | |
18347 | else | |
18348 | { | |
18349 | unsigned long i = ulongval (); | |
18350 | if (i != ((long) (sizeof (short)))) | |
18351 | exit (1); | |
18352 | fprintf (f, "%lu\n", i); | |
18353 | } | |
18354 | exit (ferror (f) || fclose (f) != 0); | |
18355 | ||
18356 | ; | |
18357 | return 0; | |
18358 | } | |
18359 | _ACEOF | |
18360 | rm -f conftest$ac_exeext | |
18361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18362 | (eval $ac_link) 2>&5 | |
18363 | ac_status=$? | |
18364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18365 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18367 | (eval $ac_try) 2>&5 | |
18368 | ac_status=$? | |
18369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18370 | (exit $ac_status); }; }; then | |
18371 | ac_cv_sizeof_short=`cat conftest.val` | |
18372 | else | |
18373 | echo "$as_me: program exited with status $ac_status" >&5 | |
18374 | echo "$as_me: failed program was:" >&5 | |
18375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18376 | ||
18377 | ( exit $ac_status ) | |
18378 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18379 | See \`config.log' for more details." >&5 | |
18380 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18381 | See \`config.log' for more details." >&2;} | |
18382 | { (exit 1); exit 1; }; } | |
18383 | fi | |
ac1cb8d3 | 18384 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18385 | fi |
18386 | fi | |
18387 | rm -f conftest.val | |
18388 | else | |
18389 | ac_cv_sizeof_short=0 | |
18390 | fi | |
18391 | fi | |
18392 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
18393 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
18394 | cat >>confdefs.h <<_ACEOF | |
18395 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
18396 | _ACEOF | |
18397 | ||
18398 | ||
18399 | echo "$as_me:$LINENO: checking for void *" >&5 | |
18400 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
18401 | if test "${ac_cv_type_void_p+set}" = set; then | |
18402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18403 | else | |
18404 | cat >conftest.$ac_ext <<_ACEOF | |
18405 | /* confdefs.h. */ | |
18406 | _ACEOF | |
18407 | cat confdefs.h >>conftest.$ac_ext | |
18408 | cat >>conftest.$ac_ext <<_ACEOF | |
18409 | /* end confdefs.h. */ | |
18410 | $ac_includes_default | |
18411 | int | |
18412 | main () | |
18413 | { | |
18414 | if ((void * *) 0) | |
18415 | return 0; | |
18416 | if (sizeof (void *)) | |
18417 | return 0; | |
18418 | ; | |
18419 | return 0; | |
18420 | } | |
18421 | _ACEOF | |
18422 | rm -f conftest.$ac_objext | |
18423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18425 | ac_status=$? |
ac1cb8d3 VS |
18426 | grep -v '^ *+' conftest.er1 >conftest.err |
18427 | rm -f conftest.er1 | |
18428 | cat conftest.err >&5 | |
a848cd7e SC |
18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18430 | (exit $ac_status); } && | |
3f60522a JS |
18431 | { ac_try='test -z "$ac_cxx_werror_flag" |
18432 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18434 | (eval $ac_try) 2>&5 | |
18435 | ac_status=$? | |
18436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18437 | (exit $ac_status); }; } && | |
18438 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18440 | (eval $ac_try) 2>&5 | |
18441 | ac_status=$? | |
18442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18443 | (exit $ac_status); }; }; then | |
18444 | ac_cv_type_void_p=yes | |
18445 | else | |
18446 | echo "$as_me: failed program was:" >&5 | |
18447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18448 | ||
18449 | ac_cv_type_void_p=no | |
18450 | fi | |
ac1cb8d3 | 18451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18452 | fi |
18453 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
18454 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
18455 | ||
18456 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
18457 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
18458 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
18459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18460 | else | |
18461 | if test "$ac_cv_type_void_p" = yes; then | |
18462 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18463 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18464 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18465 | # This bug is HP SR number 8606223364. | |
18466 | if test "$cross_compiling" = yes; then | |
18467 | # Depending upon the size, compute the lo and hi bounds. | |
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 (void *))) >= 0)]; | |
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); } && | |
3f60522a JS |
18494 | { ac_try='test -z "$ac_cxx_werror_flag" |
18495 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18497 | (eval $ac_try) 2>&5 | |
18498 | ac_status=$? | |
18499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18500 | (exit $ac_status); }; } && | |
18501 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18503 | (eval $ac_try) 2>&5 | |
18504 | ac_status=$? | |
18505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18506 | (exit $ac_status); }; }; then | |
18507 | ac_lo=0 ac_mid=0 | |
18508 | while :; do | |
18509 | cat >conftest.$ac_ext <<_ACEOF | |
18510 | /* confdefs.h. */ | |
18511 | _ACEOF | |
18512 | cat confdefs.h >>conftest.$ac_ext | |
18513 | cat >>conftest.$ac_ext <<_ACEOF | |
18514 | /* end confdefs.h. */ | |
18515 | $ac_includes_default | |
18516 | int | |
18517 | main () | |
18518 | { | |
18519 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18520 | test_array [0] = 0 | |
18521 | ||
18522 | ; | |
18523 | return 0; | |
18524 | } | |
18525 | _ACEOF | |
18526 | rm -f conftest.$ac_objext | |
18527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18528 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18529 | ac_status=$? |
ac1cb8d3 VS |
18530 | grep -v '^ *+' conftest.er1 >conftest.err |
18531 | rm -f conftest.er1 | |
18532 | cat conftest.err >&5 | |
a848cd7e SC |
18533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18534 | (exit $ac_status); } && | |
3f60522a JS |
18535 | { ac_try='test -z "$ac_cxx_werror_flag" |
18536 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18538 | (eval $ac_try) 2>&5 | |
18539 | ac_status=$? | |
18540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18541 | (exit $ac_status); }; } && | |
18542 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18544 | (eval $ac_try) 2>&5 | |
18545 | ac_status=$? | |
18546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18547 | (exit $ac_status); }; }; then | |
18548 | ac_hi=$ac_mid; break | |
18549 | else | |
18550 | echo "$as_me: failed program was:" >&5 | |
18551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18552 | ||
18553 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18554 | if test $ac_lo -le $ac_mid; then |
18555 | ac_lo= ac_hi= | |
18556 | break | |
18557 | fi | |
18558 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18559 | fi |
ac1cb8d3 | 18560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18561 | done |
18562 | else | |
18563 | echo "$as_me: failed program was:" >&5 | |
18564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18565 | ||
18566 | cat >conftest.$ac_ext <<_ACEOF | |
18567 | /* confdefs.h. */ | |
18568 | _ACEOF | |
18569 | cat confdefs.h >>conftest.$ac_ext | |
18570 | cat >>conftest.$ac_ext <<_ACEOF | |
18571 | /* end confdefs.h. */ | |
18572 | $ac_includes_default | |
18573 | int | |
18574 | main () | |
18575 | { | |
18576 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
18577 | test_array [0] = 0 | |
18578 | ||
18579 | ; | |
18580 | return 0; | |
18581 | } | |
18582 | _ACEOF | |
18583 | rm -f conftest.$ac_objext | |
18584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18585 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18586 | ac_status=$? |
ac1cb8d3 VS |
18587 | grep -v '^ *+' conftest.er1 >conftest.err |
18588 | rm -f conftest.er1 | |
18589 | cat conftest.err >&5 | |
a848cd7e SC |
18590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18591 | (exit $ac_status); } && | |
3f60522a JS |
18592 | { ac_try='test -z "$ac_cxx_werror_flag" |
18593 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18595 | (eval $ac_try) 2>&5 | |
18596 | ac_status=$? | |
18597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18598 | (exit $ac_status); }; } && | |
18599 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18601 | (eval $ac_try) 2>&5 | |
18602 | ac_status=$? | |
18603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18604 | (exit $ac_status); }; }; then | |
18605 | ac_hi=-1 ac_mid=-1 | |
18606 | while :; do | |
18607 | cat >conftest.$ac_ext <<_ACEOF | |
18608 | /* confdefs.h. */ | |
18609 | _ACEOF | |
18610 | cat confdefs.h >>conftest.$ac_ext | |
18611 | cat >>conftest.$ac_ext <<_ACEOF | |
18612 | /* end confdefs.h. */ | |
18613 | $ac_includes_default | |
18614 | int | |
18615 | main () | |
18616 | { | |
18617 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
18618 | test_array [0] = 0 | |
18619 | ||
18620 | ; | |
18621 | return 0; | |
18622 | } | |
18623 | _ACEOF | |
18624 | rm -f conftest.$ac_objext | |
18625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18626 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18627 | ac_status=$? |
ac1cb8d3 VS |
18628 | grep -v '^ *+' conftest.er1 >conftest.err |
18629 | rm -f conftest.er1 | |
18630 | cat conftest.err >&5 | |
a848cd7e SC |
18631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18632 | (exit $ac_status); } && | |
3f60522a JS |
18633 | { ac_try='test -z "$ac_cxx_werror_flag" |
18634 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18636 | (eval $ac_try) 2>&5 | |
18637 | ac_status=$? | |
18638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18639 | (exit $ac_status); }; } && | |
18640 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18642 | (eval $ac_try) 2>&5 | |
18643 | ac_status=$? | |
18644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18645 | (exit $ac_status); }; }; then | |
18646 | ac_lo=$ac_mid; break | |
18647 | else | |
18648 | echo "$as_me: failed program was:" >&5 | |
18649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18650 | ||
18651 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18652 | if test $ac_mid -le $ac_hi; then |
18653 | ac_lo= ac_hi= | |
18654 | break | |
18655 | fi | |
18656 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18657 | fi |
ac1cb8d3 | 18658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18659 | done |
18660 | else | |
18661 | echo "$as_me: failed program was:" >&5 | |
18662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18663 | ||
18664 | ac_lo= ac_hi= | |
18665 | fi | |
ac1cb8d3 | 18666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18667 | fi |
ac1cb8d3 | 18668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18669 | # Binary search between lo and hi bounds. |
18670 | while test "x$ac_lo" != "x$ac_hi"; do | |
18671 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18672 | cat >conftest.$ac_ext <<_ACEOF | |
18673 | /* confdefs.h. */ | |
18674 | _ACEOF | |
18675 | cat confdefs.h >>conftest.$ac_ext | |
18676 | cat >>conftest.$ac_ext <<_ACEOF | |
18677 | /* end confdefs.h. */ | |
18678 | $ac_includes_default | |
18679 | int | |
18680 | main () | |
18681 | { | |
18682 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18683 | test_array [0] = 0 | |
18684 | ||
18685 | ; | |
18686 | return 0; | |
18687 | } | |
18688 | _ACEOF | |
18689 | rm -f conftest.$ac_objext | |
18690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18691 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18692 | ac_status=$? |
ac1cb8d3 VS |
18693 | grep -v '^ *+' conftest.er1 >conftest.err |
18694 | rm -f conftest.er1 | |
18695 | cat conftest.err >&5 | |
a848cd7e SC |
18696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18697 | (exit $ac_status); } && | |
3f60522a JS |
18698 | { ac_try='test -z "$ac_cxx_werror_flag" |
18699 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18701 | (eval $ac_try) 2>&5 | |
18702 | ac_status=$? | |
18703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18704 | (exit $ac_status); }; } && | |
18705 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18707 | (eval $ac_try) 2>&5 | |
18708 | ac_status=$? | |
18709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18710 | (exit $ac_status); }; }; then | |
18711 | ac_hi=$ac_mid | |
18712 | else | |
18713 | echo "$as_me: failed program was:" >&5 | |
18714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18715 | ||
18716 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18717 | fi | |
ac1cb8d3 | 18718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18719 | done |
18720 | case $ac_lo in | |
18721 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
18722 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18723 | See \`config.log' for more details." >&5 | |
18724 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18725 | See \`config.log' for more details." >&2;} | |
18726 | { (exit 1); exit 1; }; } ;; | |
18727 | esac | |
18728 | else | |
18729 | if test "$cross_compiling" = yes; then | |
3f60522a JS |
18730 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18731 | See \`config.log' for more details." >&5 | |
18732 | echo "$as_me: error: cannot run test program while cross compiling | |
18733 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18734 | { (exit 1); exit 1; }; } |
18735 | else | |
18736 | cat >conftest.$ac_ext <<_ACEOF | |
18737 | /* confdefs.h. */ | |
18738 | _ACEOF | |
18739 | cat confdefs.h >>conftest.$ac_ext | |
18740 | cat >>conftest.$ac_ext <<_ACEOF | |
18741 | /* end confdefs.h. */ | |
18742 | $ac_includes_default | |
18743 | long longval () { return (long) (sizeof (void *)); } | |
18744 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
18745 | #include <stdio.h> | |
18746 | #include <stdlib.h> | |
18747 | int | |
18748 | main () | |
18749 | { | |
18750 | ||
18751 | FILE *f = fopen ("conftest.val", "w"); | |
18752 | if (! f) | |
18753 | exit (1); | |
18754 | if (((long) (sizeof (void *))) < 0) | |
18755 | { | |
18756 | long i = longval (); | |
18757 | if (i != ((long) (sizeof (void *)))) | |
18758 | exit (1); | |
18759 | fprintf (f, "%ld\n", i); | |
18760 | } | |
18761 | else | |
18762 | { | |
18763 | unsigned long i = ulongval (); | |
18764 | if (i != ((long) (sizeof (void *)))) | |
18765 | exit (1); | |
18766 | fprintf (f, "%lu\n", i); | |
18767 | } | |
18768 | exit (ferror (f) || fclose (f) != 0); | |
18769 | ||
18770 | ; | |
18771 | return 0; | |
18772 | } | |
18773 | _ACEOF | |
18774 | rm -f conftest$ac_exeext | |
18775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18776 | (eval $ac_link) 2>&5 | |
18777 | ac_status=$? | |
18778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18779 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18781 | (eval $ac_try) 2>&5 | |
18782 | ac_status=$? | |
18783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18784 | (exit $ac_status); }; }; then | |
18785 | ac_cv_sizeof_void_p=`cat conftest.val` | |
18786 | else | |
18787 | echo "$as_me: program exited with status $ac_status" >&5 | |
18788 | echo "$as_me: failed program was:" >&5 | |
18789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18790 | ||
18791 | ( exit $ac_status ) | |
18792 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18793 | See \`config.log' for more details." >&5 | |
18794 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18795 | See \`config.log' for more details." >&2;} | |
18796 | { (exit 1); exit 1; }; } | |
18797 | fi | |
ac1cb8d3 | 18798 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18799 | fi |
18800 | fi | |
18801 | rm -f conftest.val | |
18802 | else | |
18803 | ac_cv_sizeof_void_p=0 | |
18804 | fi | |
18805 | fi | |
18806 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
18807 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
18808 | cat >>confdefs.h <<_ACEOF | |
18809 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
18810 | _ACEOF | |
18811 | ||
18812 | ||
18813 | echo "$as_me:$LINENO: checking for int" >&5 | |
18814 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
18815 | if test "${ac_cv_type_int+set}" = set; then | |
18816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18817 | else | |
18818 | cat >conftest.$ac_ext <<_ACEOF | |
18819 | /* confdefs.h. */ | |
18820 | _ACEOF | |
18821 | cat confdefs.h >>conftest.$ac_ext | |
18822 | cat >>conftest.$ac_ext <<_ACEOF | |
18823 | /* end confdefs.h. */ | |
18824 | $ac_includes_default | |
18825 | int | |
18826 | main () | |
18827 | { | |
18828 | if ((int *) 0) | |
18829 | return 0; | |
18830 | if (sizeof (int)) | |
18831 | return 0; | |
18832 | ; | |
18833 | return 0; | |
18834 | } | |
18835 | _ACEOF | |
18836 | rm -f conftest.$ac_objext | |
18837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18838 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18839 | ac_status=$? |
ac1cb8d3 VS |
18840 | grep -v '^ *+' conftest.er1 >conftest.err |
18841 | rm -f conftest.er1 | |
18842 | cat conftest.err >&5 | |
a848cd7e SC |
18843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18844 | (exit $ac_status); } && | |
3f60522a JS |
18845 | { ac_try='test -z "$ac_cxx_werror_flag" |
18846 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18848 | (eval $ac_try) 2>&5 | |
18849 | ac_status=$? | |
18850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18851 | (exit $ac_status); }; } && | |
18852 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18854 | (eval $ac_try) 2>&5 | |
18855 | ac_status=$? | |
18856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18857 | (exit $ac_status); }; }; then | |
18858 | ac_cv_type_int=yes | |
18859 | else | |
18860 | echo "$as_me: failed program was:" >&5 | |
18861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18862 | ||
18863 | ac_cv_type_int=no | |
18864 | fi | |
ac1cb8d3 | 18865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18866 | fi |
18867 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
18868 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
18869 | ||
18870 | echo "$as_me:$LINENO: checking size of int" >&5 | |
18871 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
18872 | if test "${ac_cv_sizeof_int+set}" = set; then | |
18873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18874 | else | |
18875 | if test "$ac_cv_type_int" = yes; then | |
18876 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18877 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18878 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18879 | # This bug is HP SR number 8606223364. | |
18880 | if test "$cross_compiling" = yes; then | |
18881 | # Depending upon the size, compute the lo and hi bounds. | |
18882 | cat >conftest.$ac_ext <<_ACEOF | |
18883 | /* confdefs.h. */ | |
18884 | _ACEOF | |
18885 | cat confdefs.h >>conftest.$ac_ext | |
18886 | cat >>conftest.$ac_ext <<_ACEOF | |
18887 | /* end confdefs.h. */ | |
18888 | $ac_includes_default | |
18889 | int | |
18890 | main () | |
18891 | { | |
18892 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
18893 | test_array [0] = 0 | |
18894 | ||
18895 | ; | |
18896 | return 0; | |
18897 | } | |
18898 | _ACEOF | |
18899 | rm -f conftest.$ac_objext | |
18900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18901 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18902 | ac_status=$? |
ac1cb8d3 VS |
18903 | grep -v '^ *+' conftest.er1 >conftest.err |
18904 | rm -f conftest.er1 | |
18905 | cat conftest.err >&5 | |
a848cd7e SC |
18906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18907 | (exit $ac_status); } && | |
3f60522a JS |
18908 | { ac_try='test -z "$ac_cxx_werror_flag" |
18909 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18911 | (eval $ac_try) 2>&5 | |
18912 | ac_status=$? | |
18913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18914 | (exit $ac_status); }; } && | |
18915 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18917 | (eval $ac_try) 2>&5 | |
18918 | ac_status=$? | |
18919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18920 | (exit $ac_status); }; }; then | |
18921 | ac_lo=0 ac_mid=0 | |
18922 | while :; do | |
18923 | cat >conftest.$ac_ext <<_ACEOF | |
18924 | /* confdefs.h. */ | |
18925 | _ACEOF | |
18926 | cat confdefs.h >>conftest.$ac_ext | |
18927 | cat >>conftest.$ac_ext <<_ACEOF | |
18928 | /* end confdefs.h. */ | |
18929 | $ac_includes_default | |
18930 | int | |
18931 | main () | |
18932 | { | |
18933 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18934 | test_array [0] = 0 | |
18935 | ||
18936 | ; | |
18937 | return 0; | |
18938 | } | |
18939 | _ACEOF | |
18940 | rm -f conftest.$ac_objext | |
18941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18942 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18943 | ac_status=$? |
ac1cb8d3 VS |
18944 | grep -v '^ *+' conftest.er1 >conftest.err |
18945 | rm -f conftest.er1 | |
18946 | cat conftest.err >&5 | |
a848cd7e SC |
18947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18948 | (exit $ac_status); } && | |
3f60522a JS |
18949 | { ac_try='test -z "$ac_cxx_werror_flag" |
18950 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18952 | (eval $ac_try) 2>&5 | |
18953 | ac_status=$? | |
18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18955 | (exit $ac_status); }; } && | |
18956 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18958 | (eval $ac_try) 2>&5 | |
18959 | ac_status=$? | |
18960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18961 | (exit $ac_status); }; }; then | |
18962 | ac_hi=$ac_mid; break | |
18963 | else | |
18964 | echo "$as_me: failed program was:" >&5 | |
18965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18966 | ||
18967 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18968 | if test $ac_lo -le $ac_mid; then |
18969 | ac_lo= ac_hi= | |
18970 | break | |
18971 | fi | |
18972 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18973 | fi |
ac1cb8d3 | 18974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18975 | done |
18976 | else | |
18977 | echo "$as_me: failed program was:" >&5 | |
18978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18979 | ||
18980 | cat >conftest.$ac_ext <<_ACEOF | |
18981 | /* confdefs.h. */ | |
18982 | _ACEOF | |
18983 | cat confdefs.h >>conftest.$ac_ext | |
18984 | cat >>conftest.$ac_ext <<_ACEOF | |
18985 | /* end confdefs.h. */ | |
18986 | $ac_includes_default | |
18987 | int | |
18988 | main () | |
18989 | { | |
18990 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
18991 | test_array [0] = 0 | |
18992 | ||
18993 | ; | |
18994 | return 0; | |
18995 | } | |
18996 | _ACEOF | |
18997 | rm -f conftest.$ac_objext | |
18998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18999 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19000 | ac_status=$? |
ac1cb8d3 VS |
19001 | grep -v '^ *+' conftest.er1 >conftest.err |
19002 | rm -f conftest.er1 | |
19003 | cat conftest.err >&5 | |
a848cd7e SC |
19004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19005 | (exit $ac_status); } && | |
3f60522a JS |
19006 | { ac_try='test -z "$ac_cxx_werror_flag" |
19007 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19009 | (eval $ac_try) 2>&5 | |
19010 | ac_status=$? | |
19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19012 | (exit $ac_status); }; } && | |
19013 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19015 | (eval $ac_try) 2>&5 | |
19016 | ac_status=$? | |
19017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19018 | (exit $ac_status); }; }; then | |
19019 | ac_hi=-1 ac_mid=-1 | |
19020 | while :; do | |
19021 | cat >conftest.$ac_ext <<_ACEOF | |
19022 | /* confdefs.h. */ | |
19023 | _ACEOF | |
19024 | cat confdefs.h >>conftest.$ac_ext | |
19025 | cat >>conftest.$ac_ext <<_ACEOF | |
19026 | /* end confdefs.h. */ | |
19027 | $ac_includes_default | |
19028 | int | |
19029 | main () | |
19030 | { | |
19031 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
19032 | test_array [0] = 0 | |
19033 | ||
19034 | ; | |
19035 | return 0; | |
19036 | } | |
19037 | _ACEOF | |
19038 | rm -f conftest.$ac_objext | |
19039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19040 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19041 | ac_status=$? |
ac1cb8d3 VS |
19042 | grep -v '^ *+' conftest.er1 >conftest.err |
19043 | rm -f conftest.er1 | |
19044 | cat conftest.err >&5 | |
a848cd7e SC |
19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19046 | (exit $ac_status); } && | |
3f60522a JS |
19047 | { ac_try='test -z "$ac_cxx_werror_flag" |
19048 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19050 | (eval $ac_try) 2>&5 | |
19051 | ac_status=$? | |
19052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19053 | (exit $ac_status); }; } && | |
19054 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19056 | (eval $ac_try) 2>&5 | |
19057 | ac_status=$? | |
19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19059 | (exit $ac_status); }; }; then | |
19060 | ac_lo=$ac_mid; break | |
19061 | else | |
19062 | echo "$as_me: failed program was:" >&5 | |
19063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19064 | ||
19065 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19066 | if test $ac_mid -le $ac_hi; then |
19067 | ac_lo= ac_hi= | |
19068 | break | |
19069 | fi | |
19070 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19071 | fi |
ac1cb8d3 | 19072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19073 | done |
19074 | else | |
19075 | echo "$as_me: failed program was:" >&5 | |
19076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19077 | ||
19078 | ac_lo= ac_hi= | |
19079 | fi | |
ac1cb8d3 | 19080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19081 | fi |
ac1cb8d3 | 19082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19083 | # Binary search between lo and hi bounds. |
19084 | while test "x$ac_lo" != "x$ac_hi"; do | |
19085 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19086 | cat >conftest.$ac_ext <<_ACEOF | |
19087 | /* confdefs.h. */ | |
19088 | _ACEOF | |
19089 | cat confdefs.h >>conftest.$ac_ext | |
19090 | cat >>conftest.$ac_ext <<_ACEOF | |
19091 | /* end confdefs.h. */ | |
19092 | $ac_includes_default | |
19093 | int | |
19094 | main () | |
19095 | { | |
19096 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
19097 | test_array [0] = 0 | |
19098 | ||
19099 | ; | |
19100 | return 0; | |
19101 | } | |
19102 | _ACEOF | |
19103 | rm -f conftest.$ac_objext | |
19104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19105 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19106 | ac_status=$? |
ac1cb8d3 VS |
19107 | grep -v '^ *+' conftest.er1 >conftest.err |
19108 | rm -f conftest.er1 | |
19109 | cat conftest.err >&5 | |
a848cd7e SC |
19110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19111 | (exit $ac_status); } && | |
3f60522a JS |
19112 | { ac_try='test -z "$ac_cxx_werror_flag" |
19113 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19115 | (eval $ac_try) 2>&5 | |
19116 | ac_status=$? | |
19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19118 | (exit $ac_status); }; } && | |
19119 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19121 | (eval $ac_try) 2>&5 | |
19122 | ac_status=$? | |
19123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19124 | (exit $ac_status); }; }; then | |
19125 | ac_hi=$ac_mid | |
19126 | else | |
19127 | echo "$as_me: failed program was:" >&5 | |
19128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19129 | ||
19130 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19131 | fi | |
ac1cb8d3 | 19132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19133 | done |
19134 | case $ac_lo in | |
19135 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
19136 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
19137 | See \`config.log' for more details." >&5 | |
19138 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
19139 | See \`config.log' for more details." >&2;} | |
19140 | { (exit 1); exit 1; }; } ;; | |
19141 | esac | |
19142 | else | |
19143 | if test "$cross_compiling" = yes; then | |
3f60522a JS |
19144 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19145 | See \`config.log' for more details." >&5 | |
19146 | echo "$as_me: error: cannot run test program while cross compiling | |
19147 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19148 | { (exit 1); exit 1; }; } |
19149 | else | |
19150 | cat >conftest.$ac_ext <<_ACEOF | |
19151 | /* confdefs.h. */ | |
19152 | _ACEOF | |
19153 | cat confdefs.h >>conftest.$ac_ext | |
19154 | cat >>conftest.$ac_ext <<_ACEOF | |
19155 | /* end confdefs.h. */ | |
19156 | $ac_includes_default | |
19157 | long longval () { return (long) (sizeof (int)); } | |
19158 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
19159 | #include <stdio.h> | |
19160 | #include <stdlib.h> | |
19161 | int | |
19162 | main () | |
19163 | { | |
19164 | ||
19165 | FILE *f = fopen ("conftest.val", "w"); | |
19166 | if (! f) | |
19167 | exit (1); | |
19168 | if (((long) (sizeof (int))) < 0) | |
19169 | { | |
19170 | long i = longval (); | |
19171 | if (i != ((long) (sizeof (int)))) | |
19172 | exit (1); | |
19173 | fprintf (f, "%ld\n", i); | |
19174 | } | |
19175 | else | |
19176 | { | |
19177 | unsigned long i = ulongval (); | |
19178 | if (i != ((long) (sizeof (int)))) | |
19179 | exit (1); | |
19180 | fprintf (f, "%lu\n", i); | |
19181 | } | |
19182 | exit (ferror (f) || fclose (f) != 0); | |
19183 | ||
19184 | ; | |
19185 | return 0; | |
19186 | } | |
19187 | _ACEOF | |
19188 | rm -f conftest$ac_exeext | |
19189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19190 | (eval $ac_link) 2>&5 | |
19191 | ac_status=$? | |
19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19193 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19195 | (eval $ac_try) 2>&5 | |
19196 | ac_status=$? | |
19197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19198 | (exit $ac_status); }; }; then | |
19199 | ac_cv_sizeof_int=`cat conftest.val` | |
19200 | else | |
19201 | echo "$as_me: program exited with status $ac_status" >&5 | |
19202 | echo "$as_me: failed program was:" >&5 | |
19203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19204 | ||
19205 | ( exit $ac_status ) | |
19206 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
19207 | See \`config.log' for more details." >&5 | |
19208 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
19209 | See \`config.log' for more details." >&2;} | |
19210 | { (exit 1); exit 1; }; } | |
19211 | fi | |
ac1cb8d3 | 19212 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19213 | fi |
19214 | fi | |
19215 | rm -f conftest.val | |
19216 | else | |
19217 | ac_cv_sizeof_int=0 | |
19218 | fi | |
19219 | fi | |
19220 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
19221 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
19222 | cat >>confdefs.h <<_ACEOF | |
19223 | #define SIZEOF_INT $ac_cv_sizeof_int | |
19224 | _ACEOF | |
19225 | ||
19226 | ||
19227 | echo "$as_me:$LINENO: checking for long" >&5 | |
19228 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
19229 | if test "${ac_cv_type_long+set}" = set; then | |
19230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19231 | else | |
19232 | cat >conftest.$ac_ext <<_ACEOF | |
19233 | /* confdefs.h. */ | |
19234 | _ACEOF | |
19235 | cat confdefs.h >>conftest.$ac_ext | |
19236 | cat >>conftest.$ac_ext <<_ACEOF | |
19237 | /* end confdefs.h. */ | |
19238 | $ac_includes_default | |
19239 | int | |
19240 | main () | |
19241 | { | |
19242 | if ((long *) 0) | |
19243 | return 0; | |
19244 | if (sizeof (long)) | |
19245 | return 0; | |
19246 | ; | |
19247 | return 0; | |
19248 | } | |
19249 | _ACEOF | |
19250 | rm -f conftest.$ac_objext | |
19251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19252 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19253 | ac_status=$? |
ac1cb8d3 VS |
19254 | grep -v '^ *+' conftest.er1 >conftest.err |
19255 | rm -f conftest.er1 | |
19256 | cat conftest.err >&5 | |
a848cd7e SC |
19257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19258 | (exit $ac_status); } && | |
3f60522a JS |
19259 | { ac_try='test -z "$ac_cxx_werror_flag" |
19260 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19262 | (eval $ac_try) 2>&5 | |
19263 | ac_status=$? | |
19264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19265 | (exit $ac_status); }; } && | |
19266 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
19272 | ac_cv_type_long=yes | |
19273 | else | |
19274 | echo "$as_me: failed program was:" >&5 | |
19275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19276 | ||
19277 | ac_cv_type_long=no | |
19278 | fi | |
ac1cb8d3 | 19279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19280 | fi |
19281 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
19282 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
19283 | ||
19284 | echo "$as_me:$LINENO: checking size of long" >&5 | |
19285 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
19286 | if test "${ac_cv_sizeof_long+set}" = set; then | |
19287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19288 | else | |
19289 | if test "$ac_cv_type_long" = yes; then | |
19290 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19291 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19292 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19293 | # This bug is HP SR number 8606223364. | |
19294 | if test "$cross_compiling" = yes; then | |
19295 | # Depending upon the size, compute the lo and hi bounds. | |
19296 | cat >conftest.$ac_ext <<_ACEOF | |
19297 | /* confdefs.h. */ | |
19298 | _ACEOF | |
19299 | cat confdefs.h >>conftest.$ac_ext | |
19300 | cat >>conftest.$ac_ext <<_ACEOF | |
19301 | /* end confdefs.h. */ | |
19302 | $ac_includes_default | |
19303 | int | |
19304 | main () | |
19305 | { | |
19306 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
19307 | test_array [0] = 0 | |
19308 | ||
19309 | ; | |
19310 | return 0; | |
19311 | } | |
19312 | _ACEOF | |
19313 | rm -f conftest.$ac_objext | |
19314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19315 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19316 | ac_status=$? |
ac1cb8d3 VS |
19317 | grep -v '^ *+' conftest.er1 >conftest.err |
19318 | rm -f conftest.er1 | |
19319 | cat conftest.err >&5 | |
a848cd7e SC |
19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19321 | (exit $ac_status); } && | |
3f60522a JS |
19322 | { ac_try='test -z "$ac_cxx_werror_flag" |
19323 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19325 | (eval $ac_try) 2>&5 | |
19326 | ac_status=$? | |
19327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19328 | (exit $ac_status); }; } && | |
19329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19331 | (eval $ac_try) 2>&5 | |
19332 | ac_status=$? | |
19333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19334 | (exit $ac_status); }; }; then | |
19335 | ac_lo=0 ac_mid=0 | |
19336 | while :; do | |
19337 | cat >conftest.$ac_ext <<_ACEOF | |
19338 | /* confdefs.h. */ | |
19339 | _ACEOF | |
19340 | cat confdefs.h >>conftest.$ac_ext | |
19341 | cat >>conftest.$ac_ext <<_ACEOF | |
19342 | /* end confdefs.h. */ | |
19343 | $ac_includes_default | |
19344 | int | |
19345 | main () | |
19346 | { | |
19347 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19348 | test_array [0] = 0 | |
19349 | ||
19350 | ; | |
19351 | return 0; | |
19352 | } | |
19353 | _ACEOF | |
19354 | rm -f conftest.$ac_objext | |
19355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19356 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19357 | ac_status=$? |
ac1cb8d3 VS |
19358 | grep -v '^ *+' conftest.er1 >conftest.err |
19359 | rm -f conftest.er1 | |
19360 | cat conftest.err >&5 | |
a848cd7e SC |
19361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19362 | (exit $ac_status); } && | |
3f60522a JS |
19363 | { ac_try='test -z "$ac_cxx_werror_flag" |
19364 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19366 | (eval $ac_try) 2>&5 | |
19367 | ac_status=$? | |
19368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19369 | (exit $ac_status); }; } && | |
19370 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
19376 | ac_hi=$ac_mid; break | |
19377 | else | |
19378 | echo "$as_me: failed program was:" >&5 | |
19379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19380 | ||
19381 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19382 | if test $ac_lo -le $ac_mid; then |
19383 | ac_lo= ac_hi= | |
19384 | break | |
19385 | fi | |
19386 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19387 | fi |
ac1cb8d3 | 19388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19389 | done |
19390 | else | |
19391 | echo "$as_me: failed program was:" >&5 | |
19392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19393 | ||
19394 | cat >conftest.$ac_ext <<_ACEOF | |
19395 | /* confdefs.h. */ | |
19396 | _ACEOF | |
19397 | cat confdefs.h >>conftest.$ac_ext | |
19398 | cat >>conftest.$ac_ext <<_ACEOF | |
19399 | /* end confdefs.h. */ | |
19400 | $ac_includes_default | |
19401 | int | |
19402 | main () | |
19403 | { | |
19404 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
19405 | test_array [0] = 0 | |
19406 | ||
19407 | ; | |
19408 | return 0; | |
19409 | } | |
19410 | _ACEOF | |
19411 | rm -f conftest.$ac_objext | |
19412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19413 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19414 | ac_status=$? |
ac1cb8d3 VS |
19415 | grep -v '^ *+' conftest.er1 >conftest.err |
19416 | rm -f conftest.er1 | |
19417 | cat conftest.err >&5 | |
a848cd7e SC |
19418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19419 | (exit $ac_status); } && | |
3f60522a JS |
19420 | { ac_try='test -z "$ac_cxx_werror_flag" |
19421 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19423 | (eval $ac_try) 2>&5 | |
19424 | ac_status=$? | |
19425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19426 | (exit $ac_status); }; } && | |
19427 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19429 | (eval $ac_try) 2>&5 | |
19430 | ac_status=$? | |
19431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19432 | (exit $ac_status); }; }; then | |
19433 | ac_hi=-1 ac_mid=-1 | |
19434 | while :; do | |
19435 | cat >conftest.$ac_ext <<_ACEOF | |
19436 | /* confdefs.h. */ | |
19437 | _ACEOF | |
19438 | cat confdefs.h >>conftest.$ac_ext | |
19439 | cat >>conftest.$ac_ext <<_ACEOF | |
19440 | /* end confdefs.h. */ | |
19441 | $ac_includes_default | |
19442 | int | |
19443 | main () | |
19444 | { | |
19445 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
19446 | test_array [0] = 0 | |
19447 | ||
19448 | ; | |
19449 | return 0; | |
19450 | } | |
19451 | _ACEOF | |
19452 | rm -f conftest.$ac_objext | |
19453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19454 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19455 | ac_status=$? |
ac1cb8d3 VS |
19456 | grep -v '^ *+' conftest.er1 >conftest.err |
19457 | rm -f conftest.er1 | |
19458 | cat conftest.err >&5 | |
a848cd7e SC |
19459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19460 | (exit $ac_status); } && | |
3f60522a JS |
19461 | { ac_try='test -z "$ac_cxx_werror_flag" |
19462 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19464 | (eval $ac_try) 2>&5 | |
19465 | ac_status=$? | |
19466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19467 | (exit $ac_status); }; } && | |
19468 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19470 | (eval $ac_try) 2>&5 | |
19471 | ac_status=$? | |
19472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19473 | (exit $ac_status); }; }; then | |
19474 | ac_lo=$ac_mid; break | |
19475 | else | |
19476 | echo "$as_me: failed program was:" >&5 | |
19477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19478 | ||
19479 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19480 | if test $ac_mid -le $ac_hi; then |
19481 | ac_lo= ac_hi= | |
19482 | break | |
19483 | fi | |
19484 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19485 | fi |
ac1cb8d3 | 19486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19487 | done |
19488 | else | |
19489 | echo "$as_me: failed program was:" >&5 | |
19490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19491 | ||
19492 | ac_lo= ac_hi= | |
19493 | fi | |
ac1cb8d3 | 19494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19495 | fi |
ac1cb8d3 | 19496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19497 | # Binary search between lo and hi bounds. |
19498 | while test "x$ac_lo" != "x$ac_hi"; do | |
19499 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19500 | cat >conftest.$ac_ext <<_ACEOF | |
19501 | /* confdefs.h. */ | |
19502 | _ACEOF | |
19503 | cat confdefs.h >>conftest.$ac_ext | |
19504 | cat >>conftest.$ac_ext <<_ACEOF | |
19505 | /* end confdefs.h. */ | |
19506 | $ac_includes_default | |
19507 | int | |
19508 | main () | |
19509 | { | |
19510 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19511 | test_array [0] = 0 | |
19512 | ||
19513 | ; | |
19514 | return 0; | |
19515 | } | |
19516 | _ACEOF | |
19517 | rm -f conftest.$ac_objext | |
19518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19519 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19520 | ac_status=$? |
ac1cb8d3 VS |
19521 | grep -v '^ *+' conftest.er1 >conftest.err |
19522 | rm -f conftest.er1 | |
19523 | cat conftest.err >&5 | |
a848cd7e SC |
19524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19525 | (exit $ac_status); } && | |
3f60522a JS |
19526 | { ac_try='test -z "$ac_cxx_werror_flag" |
19527 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19529 | (eval $ac_try) 2>&5 | |
19530 | ac_status=$? | |
19531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19532 | (exit $ac_status); }; } && | |
19533 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19535 | (eval $ac_try) 2>&5 | |
19536 | ac_status=$? | |
19537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19538 | (exit $ac_status); }; }; then | |
19539 | ac_hi=$ac_mid | |
19540 | else | |
19541 | echo "$as_me: failed program was:" >&5 | |
19542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19543 | ||
19544 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19545 | fi | |
ac1cb8d3 | 19546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19547 | done |
19548 | case $ac_lo in | |
19549 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
19550 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19551 | See \`config.log' for more details." >&5 | |
19552 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19553 | See \`config.log' for more details." >&2;} | |
19554 | { (exit 1); exit 1; }; } ;; | |
19555 | esac | |
19556 | else | |
19557 | if test "$cross_compiling" = yes; then | |
3f60522a JS |
19558 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19559 | See \`config.log' for more details." >&5 | |
19560 | echo "$as_me: error: cannot run test program while cross compiling | |
19561 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19562 | { (exit 1); exit 1; }; } |
19563 | else | |
19564 | cat >conftest.$ac_ext <<_ACEOF | |
19565 | /* confdefs.h. */ | |
19566 | _ACEOF | |
19567 | cat confdefs.h >>conftest.$ac_ext | |
19568 | cat >>conftest.$ac_ext <<_ACEOF | |
19569 | /* end confdefs.h. */ | |
19570 | $ac_includes_default | |
19571 | long longval () { return (long) (sizeof (long)); } | |
19572 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
19573 | #include <stdio.h> | |
19574 | #include <stdlib.h> | |
19575 | int | |
19576 | main () | |
19577 | { | |
19578 | ||
19579 | FILE *f = fopen ("conftest.val", "w"); | |
19580 | if (! f) | |
19581 | exit (1); | |
19582 | if (((long) (sizeof (long))) < 0) | |
19583 | { | |
19584 | long i = longval (); | |
19585 | if (i != ((long) (sizeof (long)))) | |
19586 | exit (1); | |
19587 | fprintf (f, "%ld\n", i); | |
19588 | } | |
19589 | else | |
19590 | { | |
19591 | unsigned long i = ulongval (); | |
19592 | if (i != ((long) (sizeof (long)))) | |
19593 | exit (1); | |
19594 | fprintf (f, "%lu\n", i); | |
19595 | } | |
19596 | exit (ferror (f) || fclose (f) != 0); | |
19597 | ||
19598 | ; | |
19599 | return 0; | |
19600 | } | |
19601 | _ACEOF | |
19602 | rm -f conftest$ac_exeext | |
19603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19604 | (eval $ac_link) 2>&5 | |
19605 | ac_status=$? | |
19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19607 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19609 | (eval $ac_try) 2>&5 | |
19610 | ac_status=$? | |
19611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19612 | (exit $ac_status); }; }; then | |
19613 | ac_cv_sizeof_long=`cat conftest.val` | |
19614 | else | |
19615 | echo "$as_me: program exited with status $ac_status" >&5 | |
19616 | echo "$as_me: failed program was:" >&5 | |
19617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19618 | ||
19619 | ( exit $ac_status ) | |
19620 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19621 | See \`config.log' for more details." >&5 | |
19622 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19623 | See \`config.log' for more details." >&2;} | |
19624 | { (exit 1); exit 1; }; } | |
19625 | fi | |
ac1cb8d3 | 19626 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19627 | fi |
19628 | fi | |
19629 | rm -f conftest.val | |
19630 | else | |
19631 | ac_cv_sizeof_long=0 | |
19632 | fi | |
19633 | fi | |
19634 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
19635 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
19636 | cat >>confdefs.h <<_ACEOF | |
19637 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
19638 | _ACEOF | |
19639 | ||
19640 | ||
19641 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
19642 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
19643 | if test "${ac_cv_type_size_t+set}" = set; then | |
19644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19645 | else | |
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 | if ((size_t *) 0) | |
19657 | return 0; | |
19658 | if (sizeof (size_t)) | |
19659 | return 0; | |
19660 | ; | |
19661 | return 0; | |
19662 | } | |
19663 | _ACEOF | |
19664 | rm -f conftest.$ac_objext | |
19665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19666 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19667 | ac_status=$? |
ac1cb8d3 VS |
19668 | grep -v '^ *+' conftest.er1 >conftest.err |
19669 | rm -f conftest.er1 | |
19670 | cat conftest.err >&5 | |
a848cd7e SC |
19671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19672 | (exit $ac_status); } && | |
3f60522a JS |
19673 | { ac_try='test -z "$ac_cxx_werror_flag" |
19674 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19676 | (eval $ac_try) 2>&5 | |
19677 | ac_status=$? | |
19678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19679 | (exit $ac_status); }; } && | |
19680 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19682 | (eval $ac_try) 2>&5 | |
19683 | ac_status=$? | |
19684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19685 | (exit $ac_status); }; }; then | |
19686 | ac_cv_type_size_t=yes | |
19687 | else | |
19688 | echo "$as_me: failed program was:" >&5 | |
19689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19690 | ||
19691 | ac_cv_type_size_t=no | |
19692 | fi | |
ac1cb8d3 | 19693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19694 | fi |
19695 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
19696 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
19697 | ||
19698 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
19699 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
19700 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
19701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19702 | else | |
19703 | if test "$ac_cv_type_size_t" = yes; then | |
19704 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19705 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19706 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19707 | # This bug is HP SR number 8606223364. | |
19708 | if test "$cross_compiling" = yes; then | |
19709 | # Depending upon the size, compute the lo and hi bounds. | |
19710 | cat >conftest.$ac_ext <<_ACEOF | |
19711 | /* confdefs.h. */ | |
19712 | _ACEOF | |
19713 | cat confdefs.h >>conftest.$ac_ext | |
19714 | cat >>conftest.$ac_ext <<_ACEOF | |
19715 | /* end confdefs.h. */ | |
19716 | $ac_includes_default | |
19717 | int | |
19718 | main () | |
19719 | { | |
19720 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
19721 | test_array [0] = 0 | |
19722 | ||
19723 | ; | |
19724 | return 0; | |
19725 | } | |
19726 | _ACEOF | |
19727 | rm -f conftest.$ac_objext | |
19728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19729 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19730 | ac_status=$? |
ac1cb8d3 VS |
19731 | grep -v '^ *+' conftest.er1 >conftest.err |
19732 | rm -f conftest.er1 | |
19733 | cat conftest.err >&5 | |
a848cd7e SC |
19734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19735 | (exit $ac_status); } && | |
3f60522a JS |
19736 | { ac_try='test -z "$ac_cxx_werror_flag" |
19737 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19739 | (eval $ac_try) 2>&5 | |
19740 | ac_status=$? | |
19741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19742 | (exit $ac_status); }; } && | |
19743 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19745 | (eval $ac_try) 2>&5 | |
19746 | ac_status=$? | |
19747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19748 | (exit $ac_status); }; }; then | |
19749 | ac_lo=0 ac_mid=0 | |
19750 | while :; do | |
19751 | cat >conftest.$ac_ext <<_ACEOF | |
19752 | /* confdefs.h. */ | |
19753 | _ACEOF | |
19754 | cat confdefs.h >>conftest.$ac_ext | |
19755 | cat >>conftest.$ac_ext <<_ACEOF | |
19756 | /* end confdefs.h. */ | |
19757 | $ac_includes_default | |
19758 | int | |
19759 | main () | |
19760 | { | |
19761 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19762 | test_array [0] = 0 | |
19763 | ||
19764 | ; | |
19765 | return 0; | |
19766 | } | |
19767 | _ACEOF | |
19768 | rm -f conftest.$ac_objext | |
19769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19770 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19771 | ac_status=$? |
ac1cb8d3 VS |
19772 | grep -v '^ *+' conftest.er1 >conftest.err |
19773 | rm -f conftest.er1 | |
19774 | cat conftest.err >&5 | |
a848cd7e SC |
19775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19776 | (exit $ac_status); } && | |
3f60522a JS |
19777 | { ac_try='test -z "$ac_cxx_werror_flag" |
19778 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19780 | (eval $ac_try) 2>&5 | |
19781 | ac_status=$? | |
19782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19783 | (exit $ac_status); }; } && | |
19784 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19786 | (eval $ac_try) 2>&5 | |
19787 | ac_status=$? | |
19788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19789 | (exit $ac_status); }; }; then | |
19790 | ac_hi=$ac_mid; break | |
19791 | else | |
19792 | echo "$as_me: failed program was:" >&5 | |
19793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19794 | ||
19795 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19796 | if test $ac_lo -le $ac_mid; then |
19797 | ac_lo= ac_hi= | |
19798 | break | |
19799 | fi | |
19800 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19801 | fi |
ac1cb8d3 | 19802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19803 | done |
19804 | else | |
19805 | echo "$as_me: failed program was:" >&5 | |
19806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19807 | ||
19808 | cat >conftest.$ac_ext <<_ACEOF | |
19809 | /* confdefs.h. */ | |
19810 | _ACEOF | |
19811 | cat confdefs.h >>conftest.$ac_ext | |
19812 | cat >>conftest.$ac_ext <<_ACEOF | |
19813 | /* end confdefs.h. */ | |
19814 | $ac_includes_default | |
19815 | int | |
19816 | main () | |
19817 | { | |
19818 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
19819 | test_array [0] = 0 | |
19820 | ||
19821 | ; | |
19822 | return 0; | |
19823 | } | |
19824 | _ACEOF | |
19825 | rm -f conftest.$ac_objext | |
19826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19827 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19828 | ac_status=$? |
ac1cb8d3 VS |
19829 | grep -v '^ *+' conftest.er1 >conftest.err |
19830 | rm -f conftest.er1 | |
19831 | cat conftest.err >&5 | |
a848cd7e SC |
19832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19833 | (exit $ac_status); } && | |
3f60522a JS |
19834 | { ac_try='test -z "$ac_cxx_werror_flag" |
19835 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19837 | (eval $ac_try) 2>&5 | |
19838 | ac_status=$? | |
19839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19840 | (exit $ac_status); }; } && | |
19841 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19843 | (eval $ac_try) 2>&5 | |
19844 | ac_status=$? | |
19845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19846 | (exit $ac_status); }; }; then | |
19847 | ac_hi=-1 ac_mid=-1 | |
19848 | while :; do | |
19849 | cat >conftest.$ac_ext <<_ACEOF | |
19850 | /* confdefs.h. */ | |
19851 | _ACEOF | |
19852 | cat confdefs.h >>conftest.$ac_ext | |
19853 | cat >>conftest.$ac_ext <<_ACEOF | |
19854 | /* end confdefs.h. */ | |
19855 | $ac_includes_default | |
19856 | int | |
19857 | main () | |
19858 | { | |
19859 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
19860 | test_array [0] = 0 | |
19861 | ||
19862 | ; | |
19863 | return 0; | |
19864 | } | |
19865 | _ACEOF | |
19866 | rm -f conftest.$ac_objext | |
19867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19869 | ac_status=$? |
ac1cb8d3 VS |
19870 | grep -v '^ *+' conftest.er1 >conftest.err |
19871 | rm -f conftest.er1 | |
19872 | cat conftest.err >&5 | |
a848cd7e SC |
19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19874 | (exit $ac_status); } && | |
3f60522a JS |
19875 | { ac_try='test -z "$ac_cxx_werror_flag" |
19876 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19878 | (eval $ac_try) 2>&5 | |
19879 | ac_status=$? | |
19880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19881 | (exit $ac_status); }; } && | |
19882 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19884 | (eval $ac_try) 2>&5 | |
19885 | ac_status=$? | |
19886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19887 | (exit $ac_status); }; }; then | |
19888 | ac_lo=$ac_mid; break | |
19889 | else | |
19890 | echo "$as_me: failed program was:" >&5 | |
19891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19892 | ||
19893 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19894 | if test $ac_mid -le $ac_hi; then |
19895 | ac_lo= ac_hi= | |
19896 | break | |
19897 | fi | |
19898 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19899 | fi |
ac1cb8d3 | 19900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19901 | done |
19902 | else | |
19903 | echo "$as_me: failed program was:" >&5 | |
19904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19905 | ||
19906 | ac_lo= ac_hi= | |
19907 | fi | |
ac1cb8d3 | 19908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19909 | fi |
ac1cb8d3 | 19910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19911 | # Binary search between lo and hi bounds. |
19912 | while test "x$ac_lo" != "x$ac_hi"; do | |
19913 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19914 | cat >conftest.$ac_ext <<_ACEOF | |
19915 | /* confdefs.h. */ | |
19916 | _ACEOF | |
19917 | cat confdefs.h >>conftest.$ac_ext | |
19918 | cat >>conftest.$ac_ext <<_ACEOF | |
19919 | /* end confdefs.h. */ | |
19920 | $ac_includes_default | |
19921 | int | |
19922 | main () | |
19923 | { | |
19924 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19925 | test_array [0] = 0 | |
19926 | ||
19927 | ; | |
19928 | return 0; | |
19929 | } | |
19930 | _ACEOF | |
19931 | rm -f conftest.$ac_objext | |
19932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19933 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19934 | ac_status=$? |
ac1cb8d3 VS |
19935 | grep -v '^ *+' conftest.er1 >conftest.err |
19936 | rm -f conftest.er1 | |
19937 | cat conftest.err >&5 | |
a848cd7e SC |
19938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19939 | (exit $ac_status); } && | |
3f60522a JS |
19940 | { ac_try='test -z "$ac_cxx_werror_flag" |
19941 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19943 | (eval $ac_try) 2>&5 | |
19944 | ac_status=$? | |
19945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19946 | (exit $ac_status); }; } && | |
19947 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19949 | (eval $ac_try) 2>&5 | |
19950 | ac_status=$? | |
19951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19952 | (exit $ac_status); }; }; then | |
19953 | ac_hi=$ac_mid | |
19954 | else | |
19955 | echo "$as_me: failed program was:" >&5 | |
19956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19957 | ||
19958 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19959 | fi | |
ac1cb8d3 | 19960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19961 | done |
19962 | case $ac_lo in | |
19963 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
19964 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19965 | See \`config.log' for more details." >&5 | |
19966 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19967 | See \`config.log' for more details." >&2;} | |
19968 | { (exit 1); exit 1; }; } ;; | |
19969 | esac | |
19970 | else | |
19971 | if test "$cross_compiling" = yes; then | |
3f60522a JS |
19972 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19973 | See \`config.log' for more details." >&5 | |
19974 | echo "$as_me: error: cannot run test program while cross compiling | |
19975 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19976 | { (exit 1); exit 1; }; } |
19977 | else | |
19978 | cat >conftest.$ac_ext <<_ACEOF | |
19979 | /* confdefs.h. */ | |
19980 | _ACEOF | |
19981 | cat confdefs.h >>conftest.$ac_ext | |
19982 | cat >>conftest.$ac_ext <<_ACEOF | |
19983 | /* end confdefs.h. */ | |
19984 | $ac_includes_default | |
19985 | long longval () { return (long) (sizeof (size_t)); } | |
19986 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
19987 | #include <stdio.h> | |
19988 | #include <stdlib.h> | |
19989 | int | |
19990 | main () | |
19991 | { | |
19992 | ||
19993 | FILE *f = fopen ("conftest.val", "w"); | |
19994 | if (! f) | |
19995 | exit (1); | |
19996 | if (((long) (sizeof (size_t))) < 0) | |
19997 | { | |
19998 | long i = longval (); | |
19999 | if (i != ((long) (sizeof (size_t)))) | |
20000 | exit (1); | |
20001 | fprintf (f, "%ld\n", i); | |
20002 | } | |
20003 | else | |
20004 | { | |
20005 | unsigned long i = ulongval (); | |
20006 | if (i != ((long) (sizeof (size_t)))) | |
20007 | exit (1); | |
20008 | fprintf (f, "%lu\n", i); | |
20009 | } | |
20010 | exit (ferror (f) || fclose (f) != 0); | |
20011 | ||
20012 | ; | |
20013 | return 0; | |
20014 | } | |
20015 | _ACEOF | |
20016 | rm -f conftest$ac_exeext | |
20017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20018 | (eval $ac_link) 2>&5 | |
20019 | ac_status=$? | |
20020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20021 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20023 | (eval $ac_try) 2>&5 | |
20024 | ac_status=$? | |
20025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20026 | (exit $ac_status); }; }; then | |
20027 | ac_cv_sizeof_size_t=`cat conftest.val` | |
20028 | else | |
20029 | echo "$as_me: program exited with status $ac_status" >&5 | |
20030 | echo "$as_me: failed program was:" >&5 | |
20031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20032 | ||
20033 | ( exit $ac_status ) | |
20034 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
20035 | See \`config.log' for more details." >&5 | |
20036 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
20037 | See \`config.log' for more details." >&2;} | |
20038 | { (exit 1); exit 1; }; } | |
20039 | fi | |
ac1cb8d3 | 20040 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20041 | fi |
20042 | fi | |
20043 | rm -f conftest.val | |
20044 | else | |
20045 | ac_cv_sizeof_size_t=0 | |
20046 | fi | |
20047 | fi | |
20048 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
20049 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
20050 | cat >>confdefs.h <<_ACEOF | |
20051 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
20052 | _ACEOF | |
20053 | ||
20054 | ||
20055 | ||
20056 | case "${host}" in | |
20057 | arm-*-linux* ) | |
20058 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20059 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20060 | if test "${ac_cv_type_long_long+set}" = set; then | |
20061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20062 | else | |
20063 | cat >conftest.$ac_ext <<_ACEOF | |
20064 | /* confdefs.h. */ | |
20065 | _ACEOF | |
20066 | cat confdefs.h >>conftest.$ac_ext | |
20067 | cat >>conftest.$ac_ext <<_ACEOF | |
20068 | /* end confdefs.h. */ | |
20069 | $ac_includes_default | |
20070 | int | |
20071 | main () | |
20072 | { | |
20073 | if ((long long *) 0) | |
20074 | return 0; | |
20075 | if (sizeof (long long)) | |
20076 | return 0; | |
20077 | ; | |
20078 | return 0; | |
20079 | } | |
20080 | _ACEOF | |
20081 | rm -f conftest.$ac_objext | |
20082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20083 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20084 | ac_status=$? |
ac1cb8d3 VS |
20085 | grep -v '^ *+' conftest.er1 >conftest.err |
20086 | rm -f conftest.er1 | |
20087 | cat conftest.err >&5 | |
a848cd7e SC |
20088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20089 | (exit $ac_status); } && | |
3f60522a JS |
20090 | { ac_try='test -z "$ac_cxx_werror_flag" |
20091 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20093 | (eval $ac_try) 2>&5 | |
20094 | ac_status=$? | |
20095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20096 | (exit $ac_status); }; } && | |
20097 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20099 | (eval $ac_try) 2>&5 | |
20100 | ac_status=$? | |
20101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20102 | (exit $ac_status); }; }; then | |
20103 | ac_cv_type_long_long=yes | |
20104 | else | |
20105 | echo "$as_me: failed program was:" >&5 | |
20106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20107 | ||
20108 | ac_cv_type_long_long=no | |
20109 | fi | |
ac1cb8d3 | 20110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20111 | fi |
20112 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20113 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20114 | ||
20115 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20116 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20117 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20119 | else | |
20120 | if test "$ac_cv_type_long_long" = yes; then | |
20121 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20122 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20123 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20124 | # This bug is HP SR number 8606223364. | |
20125 | if test "$cross_compiling" = yes; then | |
20126 | # Depending upon the size, compute the lo and hi bounds. | |
20127 | cat >conftest.$ac_ext <<_ACEOF | |
20128 | /* confdefs.h. */ | |
20129 | _ACEOF | |
20130 | cat confdefs.h >>conftest.$ac_ext | |
20131 | cat >>conftest.$ac_ext <<_ACEOF | |
20132 | /* end confdefs.h. */ | |
20133 | $ac_includes_default | |
20134 | int | |
20135 | main () | |
20136 | { | |
20137 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20138 | test_array [0] = 0 | |
20139 | ||
20140 | ; | |
20141 | return 0; | |
20142 | } | |
20143 | _ACEOF | |
20144 | rm -f conftest.$ac_objext | |
20145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20146 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20147 | ac_status=$? |
ac1cb8d3 VS |
20148 | grep -v '^ *+' conftest.er1 >conftest.err |
20149 | rm -f conftest.er1 | |
20150 | cat conftest.err >&5 | |
a848cd7e SC |
20151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20152 | (exit $ac_status); } && | |
3f60522a JS |
20153 | { ac_try='test -z "$ac_cxx_werror_flag" |
20154 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20156 | (eval $ac_try) 2>&5 | |
20157 | ac_status=$? | |
20158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20159 | (exit $ac_status); }; } && | |
20160 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20162 | (eval $ac_try) 2>&5 | |
20163 | ac_status=$? | |
20164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20165 | (exit $ac_status); }; }; then | |
20166 | ac_lo=0 ac_mid=0 | |
20167 | while :; do | |
20168 | cat >conftest.$ac_ext <<_ACEOF | |
20169 | /* confdefs.h. */ | |
20170 | _ACEOF | |
20171 | cat confdefs.h >>conftest.$ac_ext | |
20172 | cat >>conftest.$ac_ext <<_ACEOF | |
20173 | /* end confdefs.h. */ | |
20174 | $ac_includes_default | |
20175 | int | |
20176 | main () | |
20177 | { | |
20178 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20179 | test_array [0] = 0 | |
20180 | ||
20181 | ; | |
20182 | return 0; | |
20183 | } | |
20184 | _ACEOF | |
20185 | rm -f conftest.$ac_objext | |
20186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20187 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20188 | ac_status=$? |
ac1cb8d3 VS |
20189 | grep -v '^ *+' conftest.er1 >conftest.err |
20190 | rm -f conftest.er1 | |
20191 | cat conftest.err >&5 | |
a848cd7e SC |
20192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20193 | (exit $ac_status); } && | |
3f60522a JS |
20194 | { ac_try='test -z "$ac_cxx_werror_flag" |
20195 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20197 | (eval $ac_try) 2>&5 | |
20198 | ac_status=$? | |
20199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20200 | (exit $ac_status); }; } && | |
20201 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20203 | (eval $ac_try) 2>&5 | |
20204 | ac_status=$? | |
20205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20206 | (exit $ac_status); }; }; then | |
20207 | ac_hi=$ac_mid; break | |
20208 | else | |
20209 | echo "$as_me: failed program was:" >&5 | |
20210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20211 | ||
20212 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20213 | if test $ac_lo -le $ac_mid; then |
20214 | ac_lo= ac_hi= | |
20215 | break | |
20216 | fi | |
20217 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20218 | fi |
ac1cb8d3 | 20219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20220 | done |
20221 | else | |
20222 | echo "$as_me: failed program was:" >&5 | |
20223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20224 | ||
20225 | cat >conftest.$ac_ext <<_ACEOF | |
20226 | /* confdefs.h. */ | |
20227 | _ACEOF | |
20228 | cat confdefs.h >>conftest.$ac_ext | |
20229 | cat >>conftest.$ac_ext <<_ACEOF | |
20230 | /* end confdefs.h. */ | |
20231 | $ac_includes_default | |
20232 | int | |
20233 | main () | |
20234 | { | |
20235 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20236 | test_array [0] = 0 | |
20237 | ||
20238 | ; | |
20239 | return 0; | |
20240 | } | |
20241 | _ACEOF | |
20242 | rm -f conftest.$ac_objext | |
20243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20244 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20245 | ac_status=$? |
ac1cb8d3 VS |
20246 | grep -v '^ *+' conftest.er1 >conftest.err |
20247 | rm -f conftest.er1 | |
20248 | cat conftest.err >&5 | |
a848cd7e SC |
20249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20250 | (exit $ac_status); } && | |
3f60522a JS |
20251 | { ac_try='test -z "$ac_cxx_werror_flag" |
20252 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20254 | (eval $ac_try) 2>&5 | |
20255 | ac_status=$? | |
20256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20257 | (exit $ac_status); }; } && | |
20258 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20260 | (eval $ac_try) 2>&5 | |
20261 | ac_status=$? | |
20262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20263 | (exit $ac_status); }; }; then | |
20264 | ac_hi=-1 ac_mid=-1 | |
20265 | while :; do | |
20266 | cat >conftest.$ac_ext <<_ACEOF | |
20267 | /* confdefs.h. */ | |
20268 | _ACEOF | |
20269 | cat confdefs.h >>conftest.$ac_ext | |
20270 | cat >>conftest.$ac_ext <<_ACEOF | |
20271 | /* end confdefs.h. */ | |
20272 | $ac_includes_default | |
20273 | int | |
20274 | main () | |
20275 | { | |
20276 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20277 | test_array [0] = 0 | |
20278 | ||
20279 | ; | |
20280 | return 0; | |
20281 | } | |
20282 | _ACEOF | |
20283 | rm -f conftest.$ac_objext | |
20284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20285 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20286 | ac_status=$? |
ac1cb8d3 VS |
20287 | grep -v '^ *+' conftest.er1 >conftest.err |
20288 | rm -f conftest.er1 | |
20289 | cat conftest.err >&5 | |
a848cd7e SC |
20290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20291 | (exit $ac_status); } && | |
3f60522a JS |
20292 | { ac_try='test -z "$ac_cxx_werror_flag" |
20293 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20295 | (eval $ac_try) 2>&5 | |
20296 | ac_status=$? | |
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20298 | (exit $ac_status); }; } && | |
20299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20301 | (eval $ac_try) 2>&5 | |
20302 | ac_status=$? | |
20303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20304 | (exit $ac_status); }; }; then | |
20305 | ac_lo=$ac_mid; break | |
20306 | else | |
20307 | echo "$as_me: failed program was:" >&5 | |
20308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20309 | ||
20310 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20311 | if test $ac_mid -le $ac_hi; then |
20312 | ac_lo= ac_hi= | |
20313 | break | |
20314 | fi | |
20315 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20316 | fi |
ac1cb8d3 | 20317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20318 | done |
20319 | else | |
20320 | echo "$as_me: failed program was:" >&5 | |
20321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20322 | ||
20323 | ac_lo= ac_hi= | |
20324 | fi | |
ac1cb8d3 | 20325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20326 | fi |
ac1cb8d3 | 20327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20328 | # Binary search between lo and hi bounds. |
20329 | while test "x$ac_lo" != "x$ac_hi"; do | |
20330 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20331 | cat >conftest.$ac_ext <<_ACEOF | |
20332 | /* confdefs.h. */ | |
20333 | _ACEOF | |
20334 | cat confdefs.h >>conftest.$ac_ext | |
20335 | cat >>conftest.$ac_ext <<_ACEOF | |
20336 | /* end confdefs.h. */ | |
20337 | $ac_includes_default | |
20338 | int | |
20339 | main () | |
20340 | { | |
20341 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20342 | test_array [0] = 0 | |
20343 | ||
20344 | ; | |
20345 | return 0; | |
20346 | } | |
20347 | _ACEOF | |
20348 | rm -f conftest.$ac_objext | |
20349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20350 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20351 | ac_status=$? |
ac1cb8d3 VS |
20352 | grep -v '^ *+' conftest.er1 >conftest.err |
20353 | rm -f conftest.er1 | |
20354 | cat conftest.err >&5 | |
a848cd7e SC |
20355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20356 | (exit $ac_status); } && | |
3f60522a JS |
20357 | { ac_try='test -z "$ac_cxx_werror_flag" |
20358 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20360 | (eval $ac_try) 2>&5 | |
20361 | ac_status=$? | |
20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20363 | (exit $ac_status); }; } && | |
20364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20366 | (eval $ac_try) 2>&5 | |
20367 | ac_status=$? | |
20368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20369 | (exit $ac_status); }; }; then | |
20370 | ac_hi=$ac_mid | |
20371 | else | |
20372 | echo "$as_me: failed program was:" >&5 | |
20373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20374 | ||
20375 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20376 | fi | |
ac1cb8d3 | 20377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20378 | done |
20379 | case $ac_lo in | |
20380 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20381 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20382 | See \`config.log' for more details." >&5 | |
20383 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20384 | See \`config.log' for more details." >&2;} | |
20385 | { (exit 1); exit 1; }; } ;; | |
20386 | esac | |
20387 | else | |
20388 | if test "$cross_compiling" = yes; then | |
3f60522a JS |
20389 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20390 | See \`config.log' for more details." >&5 | |
20391 | echo "$as_me: error: cannot run test program while cross compiling | |
20392 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20393 | { (exit 1); exit 1; }; } |
20394 | else | |
20395 | cat >conftest.$ac_ext <<_ACEOF | |
20396 | /* confdefs.h. */ | |
20397 | _ACEOF | |
20398 | cat confdefs.h >>conftest.$ac_ext | |
20399 | cat >>conftest.$ac_ext <<_ACEOF | |
20400 | /* end confdefs.h. */ | |
20401 | $ac_includes_default | |
20402 | long longval () { return (long) (sizeof (long long)); } | |
20403 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20404 | #include <stdio.h> | |
20405 | #include <stdlib.h> | |
20406 | int | |
20407 | main () | |
20408 | { | |
20409 | ||
20410 | FILE *f = fopen ("conftest.val", "w"); | |
20411 | if (! f) | |
20412 | exit (1); | |
20413 | if (((long) (sizeof (long long))) < 0) | |
20414 | { | |
20415 | long i = longval (); | |
20416 | if (i != ((long) (sizeof (long long)))) | |
20417 | exit (1); | |
20418 | fprintf (f, "%ld\n", i); | |
20419 | } | |
20420 | else | |
20421 | { | |
20422 | unsigned long i = ulongval (); | |
20423 | if (i != ((long) (sizeof (long long)))) | |
20424 | exit (1); | |
20425 | fprintf (f, "%lu\n", i); | |
20426 | } | |
20427 | exit (ferror (f) || fclose (f) != 0); | |
20428 | ||
20429 | ; | |
20430 | return 0; | |
20431 | } | |
20432 | _ACEOF | |
20433 | rm -f conftest$ac_exeext | |
20434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20435 | (eval $ac_link) 2>&5 | |
20436 | ac_status=$? | |
20437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20440 | (eval $ac_try) 2>&5 | |
20441 | ac_status=$? | |
20442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20443 | (exit $ac_status); }; }; then | |
20444 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20445 | else | |
20446 | echo "$as_me: program exited with status $ac_status" >&5 | |
20447 | echo "$as_me: failed program was:" >&5 | |
20448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20449 | ||
20450 | ( exit $ac_status ) | |
20451 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20452 | See \`config.log' for more details." >&5 | |
20453 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20454 | See \`config.log' for more details." >&2;} | |
20455 | { (exit 1); exit 1; }; } | |
20456 | fi | |
ac1cb8d3 | 20457 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20458 | fi |
20459 | fi | |
20460 | rm -f conftest.val | |
20461 | else | |
20462 | ac_cv_sizeof_long_long=0 | |
20463 | fi | |
20464 | fi | |
20465 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20466 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20467 | cat >>confdefs.h <<_ACEOF | |
20468 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20469 | _ACEOF | |
20470 | ||
20471 | ||
20472 | ;; | |
20473 | *-hp-hpux* ) | |
20474 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20475 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20476 | if test "${ac_cv_type_long_long+set}" = set; then | |
20477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20478 | else | |
20479 | cat >conftest.$ac_ext <<_ACEOF | |
20480 | /* confdefs.h. */ | |
20481 | _ACEOF | |
20482 | cat confdefs.h >>conftest.$ac_ext | |
20483 | cat >>conftest.$ac_ext <<_ACEOF | |
20484 | /* end confdefs.h. */ | |
20485 | $ac_includes_default | |
20486 | int | |
20487 | main () | |
20488 | { | |
20489 | if ((long long *) 0) | |
20490 | return 0; | |
20491 | if (sizeof (long long)) | |
20492 | return 0; | |
20493 | ; | |
20494 | return 0; | |
20495 | } | |
20496 | _ACEOF | |
20497 | rm -f conftest.$ac_objext | |
20498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20499 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20500 | ac_status=$? |
ac1cb8d3 VS |
20501 | grep -v '^ *+' conftest.er1 >conftest.err |
20502 | rm -f conftest.er1 | |
20503 | cat conftest.err >&5 | |
a848cd7e SC |
20504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20505 | (exit $ac_status); } && | |
3f60522a JS |
20506 | { ac_try='test -z "$ac_cxx_werror_flag" |
20507 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20509 | (eval $ac_try) 2>&5 | |
20510 | ac_status=$? | |
20511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20512 | (exit $ac_status); }; } && | |
20513 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20515 | (eval $ac_try) 2>&5 | |
20516 | ac_status=$? | |
20517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20518 | (exit $ac_status); }; }; then | |
20519 | ac_cv_type_long_long=yes | |
20520 | else | |
20521 | echo "$as_me: failed program was:" >&5 | |
20522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20523 | ||
20524 | ac_cv_type_long_long=no | |
20525 | fi | |
ac1cb8d3 | 20526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20527 | fi |
20528 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20529 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20530 | ||
20531 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20532 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20533 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20535 | else | |
20536 | if test "$ac_cv_type_long_long" = yes; then | |
20537 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20538 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20539 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20540 | # This bug is HP SR number 8606223364. | |
20541 | if test "$cross_compiling" = yes; then | |
20542 | # Depending upon the size, compute the lo and hi bounds. | |
20543 | cat >conftest.$ac_ext <<_ACEOF | |
20544 | /* confdefs.h. */ | |
20545 | _ACEOF | |
20546 | cat confdefs.h >>conftest.$ac_ext | |
20547 | cat >>conftest.$ac_ext <<_ACEOF | |
20548 | /* end confdefs.h. */ | |
20549 | $ac_includes_default | |
20550 | int | |
20551 | main () | |
20552 | { | |
20553 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20554 | test_array [0] = 0 | |
20555 | ||
20556 | ; | |
20557 | return 0; | |
20558 | } | |
20559 | _ACEOF | |
20560 | rm -f conftest.$ac_objext | |
20561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20562 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20563 | ac_status=$? |
ac1cb8d3 VS |
20564 | grep -v '^ *+' conftest.er1 >conftest.err |
20565 | rm -f conftest.er1 | |
20566 | cat conftest.err >&5 | |
a848cd7e SC |
20567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20568 | (exit $ac_status); } && | |
3f60522a JS |
20569 | { ac_try='test -z "$ac_cxx_werror_flag" |
20570 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20572 | (eval $ac_try) 2>&5 | |
20573 | ac_status=$? | |
20574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20575 | (exit $ac_status); }; } && | |
20576 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20578 | (eval $ac_try) 2>&5 | |
20579 | ac_status=$? | |
20580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20581 | (exit $ac_status); }; }; then | |
20582 | ac_lo=0 ac_mid=0 | |
20583 | while :; do | |
20584 | cat >conftest.$ac_ext <<_ACEOF | |
20585 | /* confdefs.h. */ | |
20586 | _ACEOF | |
20587 | cat confdefs.h >>conftest.$ac_ext | |
20588 | cat >>conftest.$ac_ext <<_ACEOF | |
20589 | /* end confdefs.h. */ | |
20590 | $ac_includes_default | |
20591 | int | |
20592 | main () | |
20593 | { | |
20594 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20595 | test_array [0] = 0 | |
20596 | ||
20597 | ; | |
20598 | return 0; | |
20599 | } | |
20600 | _ACEOF | |
20601 | rm -f conftest.$ac_objext | |
20602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20603 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20604 | ac_status=$? |
ac1cb8d3 VS |
20605 | grep -v '^ *+' conftest.er1 >conftest.err |
20606 | rm -f conftest.er1 | |
20607 | cat conftest.err >&5 | |
a848cd7e SC |
20608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20609 | (exit $ac_status); } && | |
3f60522a JS |
20610 | { ac_try='test -z "$ac_cxx_werror_flag" |
20611 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20613 | (eval $ac_try) 2>&5 | |
20614 | ac_status=$? | |
20615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20616 | (exit $ac_status); }; } && | |
20617 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20619 | (eval $ac_try) 2>&5 | |
20620 | ac_status=$? | |
20621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20622 | (exit $ac_status); }; }; then | |
20623 | ac_hi=$ac_mid; break | |
20624 | else | |
20625 | echo "$as_me: failed program was:" >&5 | |
20626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20627 | ||
20628 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20629 | if test $ac_lo -le $ac_mid; then |
20630 | ac_lo= ac_hi= | |
20631 | break | |
20632 | fi | |
20633 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20634 | fi |
ac1cb8d3 | 20635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20636 | done |
20637 | else | |
20638 | echo "$as_me: failed program was:" >&5 | |
20639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20640 | ||
20641 | cat >conftest.$ac_ext <<_ACEOF | |
20642 | /* confdefs.h. */ | |
20643 | _ACEOF | |
20644 | cat confdefs.h >>conftest.$ac_ext | |
20645 | cat >>conftest.$ac_ext <<_ACEOF | |
20646 | /* end confdefs.h. */ | |
20647 | $ac_includes_default | |
20648 | int | |
20649 | main () | |
20650 | { | |
20651 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20652 | test_array [0] = 0 | |
20653 | ||
20654 | ; | |
20655 | return 0; | |
20656 | } | |
20657 | _ACEOF | |
20658 | rm -f conftest.$ac_objext | |
20659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20660 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20661 | ac_status=$? |
ac1cb8d3 VS |
20662 | grep -v '^ *+' conftest.er1 >conftest.err |
20663 | rm -f conftest.er1 | |
20664 | cat conftest.err >&5 | |
a848cd7e SC |
20665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20666 | (exit $ac_status); } && | |
3f60522a JS |
20667 | { ac_try='test -z "$ac_cxx_werror_flag" |
20668 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20670 | (eval $ac_try) 2>&5 | |
20671 | ac_status=$? | |
20672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20673 | (exit $ac_status); }; } && | |
20674 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20676 | (eval $ac_try) 2>&5 | |
20677 | ac_status=$? | |
20678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20679 | (exit $ac_status); }; }; then | |
20680 | ac_hi=-1 ac_mid=-1 | |
20681 | while :; do | |
20682 | cat >conftest.$ac_ext <<_ACEOF | |
20683 | /* confdefs.h. */ | |
20684 | _ACEOF | |
20685 | cat confdefs.h >>conftest.$ac_ext | |
20686 | cat >>conftest.$ac_ext <<_ACEOF | |
20687 | /* end confdefs.h. */ | |
20688 | $ac_includes_default | |
20689 | int | |
20690 | main () | |
20691 | { | |
20692 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20693 | test_array [0] = 0 | |
20694 | ||
20695 | ; | |
20696 | return 0; | |
20697 | } | |
20698 | _ACEOF | |
20699 | rm -f conftest.$ac_objext | |
20700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20701 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20702 | ac_status=$? |
ac1cb8d3 VS |
20703 | grep -v '^ *+' conftest.er1 >conftest.err |
20704 | rm -f conftest.er1 | |
20705 | cat conftest.err >&5 | |
a848cd7e SC |
20706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20707 | (exit $ac_status); } && | |
3f60522a JS |
20708 | { ac_try='test -z "$ac_cxx_werror_flag" |
20709 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20711 | (eval $ac_try) 2>&5 | |
20712 | ac_status=$? | |
20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20714 | (exit $ac_status); }; } && | |
20715 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20717 | (eval $ac_try) 2>&5 | |
20718 | ac_status=$? | |
20719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20720 | (exit $ac_status); }; }; then | |
20721 | ac_lo=$ac_mid; break | |
20722 | else | |
20723 | echo "$as_me: failed program was:" >&5 | |
20724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20725 | ||
20726 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20727 | if test $ac_mid -le $ac_hi; then |
20728 | ac_lo= ac_hi= | |
20729 | break | |
20730 | fi | |
20731 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20732 | fi |
ac1cb8d3 | 20733 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20734 | done |
20735 | else | |
20736 | echo "$as_me: failed program was:" >&5 | |
20737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20738 | ||
20739 | ac_lo= ac_hi= | |
20740 | fi | |
ac1cb8d3 | 20741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20742 | fi |
ac1cb8d3 | 20743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20744 | # Binary search between lo and hi bounds. |
20745 | while test "x$ac_lo" != "x$ac_hi"; do | |
20746 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20747 | cat >conftest.$ac_ext <<_ACEOF | |
20748 | /* confdefs.h. */ | |
20749 | _ACEOF | |
20750 | cat confdefs.h >>conftest.$ac_ext | |
20751 | cat >>conftest.$ac_ext <<_ACEOF | |
20752 | /* end confdefs.h. */ | |
20753 | $ac_includes_default | |
20754 | int | |
20755 | main () | |
20756 | { | |
20757 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20758 | test_array [0] = 0 | |
20759 | ||
20760 | ; | |
20761 | return 0; | |
20762 | } | |
20763 | _ACEOF | |
20764 | rm -f conftest.$ac_objext | |
20765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20766 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20767 | ac_status=$? |
ac1cb8d3 VS |
20768 | grep -v '^ *+' conftest.er1 >conftest.err |
20769 | rm -f conftest.er1 | |
20770 | cat conftest.err >&5 | |
a848cd7e SC |
20771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20772 | (exit $ac_status); } && | |
3f60522a JS |
20773 | { ac_try='test -z "$ac_cxx_werror_flag" |
20774 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20776 | (eval $ac_try) 2>&5 | |
20777 | ac_status=$? | |
20778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20779 | (exit $ac_status); }; } && | |
20780 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20782 | (eval $ac_try) 2>&5 | |
20783 | ac_status=$? | |
20784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20785 | (exit $ac_status); }; }; then | |
20786 | ac_hi=$ac_mid | |
20787 | else | |
20788 | echo "$as_me: failed program was:" >&5 | |
20789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20790 | ||
20791 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20792 | fi | |
ac1cb8d3 | 20793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20794 | done |
20795 | case $ac_lo in | |
20796 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20797 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20798 | See \`config.log' for more details." >&5 | |
20799 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20800 | See \`config.log' for more details." >&2;} | |
20801 | { (exit 1); exit 1; }; } ;; | |
20802 | esac | |
20803 | else | |
20804 | if test "$cross_compiling" = yes; then | |
3f60522a JS |
20805 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20806 | See \`config.log' for more details." >&5 | |
20807 | echo "$as_me: error: cannot run test program while cross compiling | |
20808 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20809 | { (exit 1); exit 1; }; } |
20810 | else | |
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 | long longval () { return (long) (sizeof (long long)); } | |
20819 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20820 | #include <stdio.h> | |
20821 | #include <stdlib.h> | |
20822 | int | |
20823 | main () | |
20824 | { | |
20825 | ||
20826 | FILE *f = fopen ("conftest.val", "w"); | |
20827 | if (! f) | |
20828 | exit (1); | |
20829 | if (((long) (sizeof (long long))) < 0) | |
20830 | { | |
20831 | long i = longval (); | |
20832 | if (i != ((long) (sizeof (long long)))) | |
20833 | exit (1); | |
20834 | fprintf (f, "%ld\n", i); | |
20835 | } | |
20836 | else | |
20837 | { | |
20838 | unsigned long i = ulongval (); | |
20839 | if (i != ((long) (sizeof (long long)))) | |
20840 | exit (1); | |
20841 | fprintf (f, "%lu\n", i); | |
20842 | } | |
20843 | exit (ferror (f) || fclose (f) != 0); | |
20844 | ||
20845 | ; | |
20846 | return 0; | |
20847 | } | |
20848 | _ACEOF | |
20849 | rm -f conftest$ac_exeext | |
20850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20851 | (eval $ac_link) 2>&5 | |
20852 | ac_status=$? | |
20853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20854 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20856 | (eval $ac_try) 2>&5 | |
20857 | ac_status=$? | |
20858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20859 | (exit $ac_status); }; }; then | |
20860 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20861 | else | |
20862 | echo "$as_me: program exited with status $ac_status" >&5 | |
20863 | echo "$as_me: failed program was:" >&5 | |
20864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20865 | ||
20866 | ( exit $ac_status ) | |
20867 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20868 | See \`config.log' for more details." >&5 | |
20869 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20870 | See \`config.log' for more details." >&2;} | |
20871 | { (exit 1); exit 1; }; } | |
20872 | fi | |
ac1cb8d3 | 20873 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20874 | fi |
20875 | fi | |
20876 | rm -f conftest.val | |
20877 | else | |
20878 | ac_cv_sizeof_long_long=0 | |
20879 | fi | |
20880 | fi | |
20881 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20882 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20883 | cat >>confdefs.h <<_ACEOF | |
20884 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20885 | _ACEOF | |
20886 | ||
20887 | ||
20888 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 20889 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
20890 | fi |
20891 | ;; | |
20892 | * ) | |
20893 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20894 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20895 | if test "${ac_cv_type_long_long+set}" = set; then | |
20896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20897 | else | |
20898 | cat >conftest.$ac_ext <<_ACEOF | |
20899 | /* confdefs.h. */ | |
20900 | _ACEOF | |
20901 | cat confdefs.h >>conftest.$ac_ext | |
20902 | cat >>conftest.$ac_ext <<_ACEOF | |
20903 | /* end confdefs.h. */ | |
20904 | $ac_includes_default | |
20905 | int | |
20906 | main () | |
20907 | { | |
20908 | if ((long long *) 0) | |
20909 | return 0; | |
20910 | if (sizeof (long long)) | |
20911 | return 0; | |
20912 | ; | |
20913 | return 0; | |
20914 | } | |
20915 | _ACEOF | |
20916 | rm -f conftest.$ac_objext | |
20917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20918 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20919 | ac_status=$? |
ac1cb8d3 VS |
20920 | grep -v '^ *+' conftest.er1 >conftest.err |
20921 | rm -f conftest.er1 | |
20922 | cat conftest.err >&5 | |
a848cd7e SC |
20923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20924 | (exit $ac_status); } && | |
3f60522a JS |
20925 | { ac_try='test -z "$ac_cxx_werror_flag" |
20926 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20928 | (eval $ac_try) 2>&5 | |
20929 | ac_status=$? | |
20930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20931 | (exit $ac_status); }; } && | |
20932 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20934 | (eval $ac_try) 2>&5 | |
20935 | ac_status=$? | |
20936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20937 | (exit $ac_status); }; }; then | |
20938 | ac_cv_type_long_long=yes | |
20939 | else | |
20940 | echo "$as_me: failed program was:" >&5 | |
20941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20942 | ||
20943 | ac_cv_type_long_long=no | |
20944 | fi | |
ac1cb8d3 | 20945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20946 | fi |
20947 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20948 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20949 | ||
20950 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20951 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20952 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20954 | else | |
20955 | if test "$ac_cv_type_long_long" = yes; then | |
20956 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20957 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20958 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20959 | # This bug is HP SR number 8606223364. | |
20960 | if test "$cross_compiling" = yes; then | |
20961 | # Depending upon the size, compute the lo and hi bounds. | |
20962 | cat >conftest.$ac_ext <<_ACEOF | |
20963 | /* confdefs.h. */ | |
20964 | _ACEOF | |
20965 | cat confdefs.h >>conftest.$ac_ext | |
20966 | cat >>conftest.$ac_ext <<_ACEOF | |
20967 | /* end confdefs.h. */ | |
20968 | $ac_includes_default | |
20969 | int | |
20970 | main () | |
20971 | { | |
20972 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20973 | test_array [0] = 0 | |
20974 | ||
20975 | ; | |
20976 | return 0; | |
20977 | } | |
20978 | _ACEOF | |
20979 | rm -f conftest.$ac_objext | |
20980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20982 | ac_status=$? |
ac1cb8d3 VS |
20983 | grep -v '^ *+' conftest.er1 >conftest.err |
20984 | rm -f conftest.er1 | |
20985 | cat conftest.err >&5 | |
a848cd7e SC |
20986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20987 | (exit $ac_status); } && | |
3f60522a JS |
20988 | { ac_try='test -z "$ac_cxx_werror_flag" |
20989 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20991 | (eval $ac_try) 2>&5 | |
20992 | ac_status=$? | |
20993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20994 | (exit $ac_status); }; } && | |
20995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20997 | (eval $ac_try) 2>&5 | |
20998 | ac_status=$? | |
20999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21000 | (exit $ac_status); }; }; then | |
21001 | ac_lo=0 ac_mid=0 | |
21002 | while :; do | |
21003 | cat >conftest.$ac_ext <<_ACEOF | |
21004 | /* confdefs.h. */ | |
21005 | _ACEOF | |
21006 | cat confdefs.h >>conftest.$ac_ext | |
21007 | cat >>conftest.$ac_ext <<_ACEOF | |
21008 | /* end confdefs.h. */ | |
21009 | $ac_includes_default | |
21010 | int | |
21011 | main () | |
21012 | { | |
21013 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21014 | test_array [0] = 0 | |
21015 | ||
21016 | ; | |
21017 | return 0; | |
21018 | } | |
21019 | _ACEOF | |
21020 | rm -f conftest.$ac_objext | |
21021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21022 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21023 | ac_status=$? |
ac1cb8d3 VS |
21024 | grep -v '^ *+' conftest.er1 >conftest.err |
21025 | rm -f conftest.er1 | |
21026 | cat conftest.err >&5 | |
a848cd7e SC |
21027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21028 | (exit $ac_status); } && | |
3f60522a JS |
21029 | { ac_try='test -z "$ac_cxx_werror_flag" |
21030 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21032 | (eval $ac_try) 2>&5 | |
21033 | ac_status=$? | |
21034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21035 | (exit $ac_status); }; } && | |
21036 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21038 | (eval $ac_try) 2>&5 | |
21039 | ac_status=$? | |
21040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21041 | (exit $ac_status); }; }; then | |
21042 | ac_hi=$ac_mid; break | |
21043 | else | |
21044 | echo "$as_me: failed program was:" >&5 | |
21045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21046 | ||
21047 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
21048 | if test $ac_lo -le $ac_mid; then |
21049 | ac_lo= ac_hi= | |
21050 | break | |
21051 | fi | |
21052 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 21053 | fi |
ac1cb8d3 | 21054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21055 | done |
21056 | else | |
21057 | echo "$as_me: failed program was:" >&5 | |
21058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21059 | ||
21060 | cat >conftest.$ac_ext <<_ACEOF | |
21061 | /* confdefs.h. */ | |
21062 | _ACEOF | |
21063 | cat confdefs.h >>conftest.$ac_ext | |
21064 | cat >>conftest.$ac_ext <<_ACEOF | |
21065 | /* end confdefs.h. */ | |
21066 | $ac_includes_default | |
21067 | int | |
21068 | main () | |
21069 | { | |
21070 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
21071 | test_array [0] = 0 | |
21072 | ||
21073 | ; | |
21074 | return 0; | |
21075 | } | |
21076 | _ACEOF | |
21077 | rm -f conftest.$ac_objext | |
21078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21079 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21080 | ac_status=$? |
ac1cb8d3 VS |
21081 | grep -v '^ *+' conftest.er1 >conftest.err |
21082 | rm -f conftest.er1 | |
21083 | cat conftest.err >&5 | |
a848cd7e SC |
21084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21085 | (exit $ac_status); } && | |
3f60522a JS |
21086 | { ac_try='test -z "$ac_cxx_werror_flag" |
21087 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21089 | (eval $ac_try) 2>&5 | |
21090 | ac_status=$? | |
21091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21092 | (exit $ac_status); }; } && | |
21093 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21095 | (eval $ac_try) 2>&5 | |
21096 | ac_status=$? | |
21097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21098 | (exit $ac_status); }; }; then | |
21099 | ac_hi=-1 ac_mid=-1 | |
21100 | while :; do | |
21101 | cat >conftest.$ac_ext <<_ACEOF | |
21102 | /* confdefs.h. */ | |
21103 | _ACEOF | |
21104 | cat confdefs.h >>conftest.$ac_ext | |
21105 | cat >>conftest.$ac_ext <<_ACEOF | |
21106 | /* end confdefs.h. */ | |
21107 | $ac_includes_default | |
21108 | int | |
21109 | main () | |
21110 | { | |
21111 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
21112 | test_array [0] = 0 | |
21113 | ||
21114 | ; | |
21115 | return 0; | |
21116 | } | |
21117 | _ACEOF | |
21118 | rm -f conftest.$ac_objext | |
21119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21120 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21121 | ac_status=$? |
ac1cb8d3 VS |
21122 | grep -v '^ *+' conftest.er1 >conftest.err |
21123 | rm -f conftest.er1 | |
21124 | cat conftest.err >&5 | |
a848cd7e SC |
21125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21126 | (exit $ac_status); } && | |
3f60522a JS |
21127 | { ac_try='test -z "$ac_cxx_werror_flag" |
21128 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21130 | (eval $ac_try) 2>&5 | |
21131 | ac_status=$? | |
21132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21133 | (exit $ac_status); }; } && | |
21134 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21136 | (eval $ac_try) 2>&5 | |
21137 | ac_status=$? | |
21138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21139 | (exit $ac_status); }; }; then | |
21140 | ac_lo=$ac_mid; break | |
21141 | else | |
21142 | echo "$as_me: failed program was:" >&5 | |
21143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21144 | ||
21145 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
21146 | if test $ac_mid -le $ac_hi; then |
21147 | ac_lo= ac_hi= | |
21148 | break | |
21149 | fi | |
21150 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 21151 | fi |
ac1cb8d3 | 21152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21153 | done |
21154 | else | |
21155 | echo "$as_me: failed program was:" >&5 | |
21156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21157 | ||
21158 | ac_lo= ac_hi= | |
21159 | fi | |
ac1cb8d3 | 21160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21161 | fi |
ac1cb8d3 | 21162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21163 | # Binary search between lo and hi bounds. |
21164 | while test "x$ac_lo" != "x$ac_hi"; do | |
21165 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21166 | cat >conftest.$ac_ext <<_ACEOF | |
21167 | /* confdefs.h. */ | |
21168 | _ACEOF | |
21169 | cat confdefs.h >>conftest.$ac_ext | |
21170 | cat >>conftest.$ac_ext <<_ACEOF | |
21171 | /* end confdefs.h. */ | |
21172 | $ac_includes_default | |
21173 | int | |
21174 | main () | |
21175 | { | |
21176 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21177 | test_array [0] = 0 | |
21178 | ||
21179 | ; | |
21180 | return 0; | |
21181 | } | |
21182 | _ACEOF | |
21183 | rm -f conftest.$ac_objext | |
21184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21186 | ac_status=$? |
ac1cb8d3 VS |
21187 | grep -v '^ *+' conftest.er1 >conftest.err |
21188 | rm -f conftest.er1 | |
21189 | cat conftest.err >&5 | |
a848cd7e SC |
21190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21191 | (exit $ac_status); } && | |
3f60522a JS |
21192 | { ac_try='test -z "$ac_cxx_werror_flag" |
21193 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21195 | (eval $ac_try) 2>&5 | |
21196 | ac_status=$? | |
21197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21198 | (exit $ac_status); }; } && | |
21199 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21201 | (eval $ac_try) 2>&5 | |
21202 | ac_status=$? | |
21203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21204 | (exit $ac_status); }; }; then | |
21205 | ac_hi=$ac_mid | |
21206 | else | |
21207 | echo "$as_me: failed program was:" >&5 | |
21208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21209 | ||
21210 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21211 | fi | |
ac1cb8d3 | 21212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21213 | done |
21214 | case $ac_lo in | |
21215 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
21216 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21217 | See \`config.log' for more details." >&5 | |
21218 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21219 | See \`config.log' for more details." >&2;} | |
21220 | { (exit 1); exit 1; }; } ;; | |
21221 | esac | |
21222 | else | |
21223 | if test "$cross_compiling" = yes; then | |
3f60522a JS |
21224 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
21225 | See \`config.log' for more details." >&5 | |
21226 | echo "$as_me: error: cannot run test program while cross compiling | |
21227 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
21228 | { (exit 1); exit 1; }; } |
21229 | else | |
21230 | cat >conftest.$ac_ext <<_ACEOF | |
21231 | /* confdefs.h. */ | |
21232 | _ACEOF | |
21233 | cat confdefs.h >>conftest.$ac_ext | |
21234 | cat >>conftest.$ac_ext <<_ACEOF | |
21235 | /* end confdefs.h. */ | |
21236 | $ac_includes_default | |
21237 | long longval () { return (long) (sizeof (long long)); } | |
21238 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
21239 | #include <stdio.h> | |
21240 | #include <stdlib.h> | |
21241 | int | |
21242 | main () | |
21243 | { | |
21244 | ||
21245 | FILE *f = fopen ("conftest.val", "w"); | |
21246 | if (! f) | |
21247 | exit (1); | |
21248 | if (((long) (sizeof (long long))) < 0) | |
21249 | { | |
21250 | long i = longval (); | |
21251 | if (i != ((long) (sizeof (long long)))) | |
21252 | exit (1); | |
21253 | fprintf (f, "%ld\n", i); | |
21254 | } | |
21255 | else | |
21256 | { | |
21257 | unsigned long i = ulongval (); | |
21258 | if (i != ((long) (sizeof (long long)))) | |
21259 | exit (1); | |
21260 | fprintf (f, "%lu\n", i); | |
21261 | } | |
21262 | exit (ferror (f) || fclose (f) != 0); | |
21263 | ||
21264 | ; | |
21265 | return 0; | |
21266 | } | |
21267 | _ACEOF | |
21268 | rm -f conftest$ac_exeext | |
21269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21270 | (eval $ac_link) 2>&5 | |
21271 | ac_status=$? | |
21272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21273 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21275 | (eval $ac_try) 2>&5 | |
21276 | ac_status=$? | |
21277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21278 | (exit $ac_status); }; }; then | |
21279 | ac_cv_sizeof_long_long=`cat conftest.val` | |
21280 | else | |
21281 | echo "$as_me: program exited with status $ac_status" >&5 | |
21282 | echo "$as_me: failed program was:" >&5 | |
21283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21284 | ||
21285 | ( exit $ac_status ) | |
21286 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21287 | See \`config.log' for more details." >&5 | |
21288 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21289 | See \`config.log' for more details." >&2;} | |
21290 | { (exit 1); exit 1; }; } | |
21291 | fi | |
ac1cb8d3 | 21292 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21293 | fi |
21294 | fi | |
21295 | rm -f conftest.val | |
21296 | else | |
21297 | ac_cv_sizeof_long_long=0 | |
21298 | fi | |
21299 | fi | |
21300 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21301 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21302 | cat >>confdefs.h <<_ACEOF | |
21303 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21304 | _ACEOF | |
21305 | ||
21306 | ||
21307 | esac | |
21308 | ||
238ecede MW |
21309 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
21310 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
21311 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
21312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21313 | else | |
21314 | cat >conftest.$ac_ext <<_ACEOF | |
21315 | /* confdefs.h. */ | |
21316 | _ACEOF | |
21317 | cat confdefs.h >>conftest.$ac_ext | |
21318 | cat >>conftest.$ac_ext <<_ACEOF | |
21319 | /* end confdefs.h. */ | |
21320 | ||
83d8eb47 MW |
21321 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21322 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21323 | # error "fake wchar_t" |
21324 | #endif | |
21325 | #ifdef HAVE_WCHAR_H | |
21326 | # ifdef __CYGWIN__ | |
21327 | # include <stddef.h> | |
21328 | # endif | |
21329 | # include <wchar.h> | |
21330 | #endif | |
21331 | #ifdef HAVE_STDLIB_H | |
21332 | # include <stdlib.h> | |
21333 | #endif | |
21334 | #include <stdio.h> | |
21335 | ||
21336 | ||
21337 | ||
21338 | int | |
21339 | main () | |
21340 | { | |
21341 | if ((wchar_t *) 0) | |
21342 | return 0; | |
21343 | if (sizeof (wchar_t)) | |
21344 | return 0; | |
21345 | ; | |
21346 | return 0; | |
21347 | } | |
21348 | _ACEOF | |
21349 | rm -f conftest.$ac_objext | |
21350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21351 | (eval $ac_compile) 2>conftest.er1 | |
21352 | ac_status=$? | |
21353 | grep -v '^ *+' conftest.er1 >conftest.err | |
21354 | rm -f conftest.er1 | |
21355 | cat conftest.err >&5 | |
21356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21357 | (exit $ac_status); } && | |
3f60522a JS |
21358 | { ac_try='test -z "$ac_cxx_werror_flag" |
21359 | || test ! -s conftest.err' | |
238ecede MW |
21360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21361 | (eval $ac_try) 2>&5 | |
21362 | ac_status=$? | |
21363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21364 | (exit $ac_status); }; } && | |
21365 | { ac_try='test -s conftest.$ac_objext' | |
21366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21367 | (eval $ac_try) 2>&5 | |
21368 | ac_status=$? | |
21369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21370 | (exit $ac_status); }; }; then | |
21371 | ac_cv_type_wchar_t=yes | |
21372 | else | |
21373 | echo "$as_me: failed program was:" >&5 | |
21374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21375 | ||
21376 | ac_cv_type_wchar_t=no | |
21377 | fi | |
21378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21379 | fi | |
21380 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
21381 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
21382 | ||
a848cd7e SC |
21383 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
21384 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 21385 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
21386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21387 | else | |
238ecede MW |
21388 | if test "$ac_cv_type_wchar_t" = yes; then |
21389 | # The cast to unsigned long works around a bug in the HP C Compiler | |
21390 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21391 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21392 | # This bug is HP SR number 8606223364. | |
21393 | if test "$cross_compiling" = yes; then | |
21394 | # Depending upon the size, compute the lo and hi bounds. | |
21395 | cat >conftest.$ac_ext <<_ACEOF | |
21396 | /* confdefs.h. */ | |
21397 | _ACEOF | |
21398 | cat confdefs.h >>conftest.$ac_ext | |
21399 | cat >>conftest.$ac_ext <<_ACEOF | |
21400 | /* end confdefs.h. */ | |
21401 | ||
83d8eb47 MW |
21402 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21403 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21404 | # error "fake wchar_t" |
21405 | #endif | |
21406 | #ifdef HAVE_WCHAR_H | |
21407 | # ifdef __CYGWIN__ | |
21408 | # include <stddef.h> | |
21409 | # endif | |
21410 | # include <wchar.h> | |
21411 | #endif | |
21412 | #ifdef HAVE_STDLIB_H | |
21413 | # include <stdlib.h> | |
21414 | #endif | |
21415 | #include <stdio.h> | |
21416 | ||
21417 | ||
21418 | ||
21419 | int | |
21420 | main () | |
21421 | { | |
21422 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
21423 | test_array [0] = 0 | |
21424 | ||
21425 | ; | |
21426 | return 0; | |
21427 | } | |
21428 | _ACEOF | |
21429 | rm -f conftest.$ac_objext | |
21430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21431 | (eval $ac_compile) 2>conftest.er1 | |
21432 | ac_status=$? | |
21433 | grep -v '^ *+' conftest.er1 >conftest.err | |
21434 | rm -f conftest.er1 | |
21435 | cat conftest.err >&5 | |
21436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21437 | (exit $ac_status); } && | |
3f60522a JS |
21438 | { ac_try='test -z "$ac_cxx_werror_flag" |
21439 | || test ! -s conftest.err' | |
238ecede MW |
21440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21441 | (eval $ac_try) 2>&5 | |
21442 | ac_status=$? | |
21443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21444 | (exit $ac_status); }; } && | |
21445 | { ac_try='test -s conftest.$ac_objext' | |
21446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21447 | (eval $ac_try) 2>&5 | |
21448 | ac_status=$? | |
21449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21450 | (exit $ac_status); }; }; then | |
21451 | ac_lo=0 ac_mid=0 | |
21452 | while :; do | |
21453 | cat >conftest.$ac_ext <<_ACEOF | |
21454 | /* confdefs.h. */ | |
21455 | _ACEOF | |
21456 | cat confdefs.h >>conftest.$ac_ext | |
21457 | cat >>conftest.$ac_ext <<_ACEOF | |
21458 | /* end confdefs.h. */ | |
21459 | ||
83d8eb47 MW |
21460 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21461 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21462 | # error "fake wchar_t" |
21463 | #endif | |
21464 | #ifdef HAVE_WCHAR_H | |
21465 | # ifdef __CYGWIN__ | |
21466 | # include <stddef.h> | |
21467 | # endif | |
21468 | # include <wchar.h> | |
21469 | #endif | |
21470 | #ifdef HAVE_STDLIB_H | |
21471 | # include <stdlib.h> | |
21472 | #endif | |
21473 | #include <stdio.h> | |
21474 | ||
21475 | ||
21476 | ||
21477 | int | |
21478 | main () | |
21479 | { | |
21480 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21481 | test_array [0] = 0 | |
21482 | ||
21483 | ; | |
21484 | return 0; | |
21485 | } | |
21486 | _ACEOF | |
21487 | rm -f conftest.$ac_objext | |
21488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21489 | (eval $ac_compile) 2>conftest.er1 | |
21490 | ac_status=$? | |
21491 | grep -v '^ *+' conftest.er1 >conftest.err | |
21492 | rm -f conftest.er1 | |
21493 | cat conftest.err >&5 | |
21494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21495 | (exit $ac_status); } && | |
3f60522a JS |
21496 | { ac_try='test -z "$ac_cxx_werror_flag" |
21497 | || test ! -s conftest.err' | |
238ecede MW |
21498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21499 | (eval $ac_try) 2>&5 | |
21500 | ac_status=$? | |
21501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21502 | (exit $ac_status); }; } && | |
21503 | { ac_try='test -s conftest.$ac_objext' | |
21504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21505 | (eval $ac_try) 2>&5 | |
21506 | ac_status=$? | |
21507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21508 | (exit $ac_status); }; }; then | |
21509 | ac_hi=$ac_mid; break | |
21510 | else | |
21511 | echo "$as_me: failed program was:" >&5 | |
21512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21513 | ||
21514 | ac_lo=`expr $ac_mid + 1` | |
21515 | if test $ac_lo -le $ac_mid; then | |
21516 | ac_lo= ac_hi= | |
21517 | break | |
21518 | fi | |
21519 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21520 | fi | |
21521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21522 | done | |
21523 | else | |
21524 | echo "$as_me: failed program was:" >&5 | |
21525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21526 | ||
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 | ||
83d8eb47 MW |
21534 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21535 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21536 | # error "fake wchar_t" |
21537 | #endif | |
21538 | #ifdef HAVE_WCHAR_H | |
21539 | # ifdef __CYGWIN__ | |
21540 | # include <stddef.h> | |
21541 | # endif | |
21542 | # include <wchar.h> | |
21543 | #endif | |
21544 | #ifdef HAVE_STDLIB_H | |
21545 | # include <stdlib.h> | |
21546 | #endif | |
21547 | #include <stdio.h> | |
21548 | ||
21549 | ||
21550 | ||
21551 | int | |
21552 | main () | |
21553 | { | |
21554 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
21555 | test_array [0] = 0 | |
21556 | ||
21557 | ; | |
21558 | return 0; | |
21559 | } | |
21560 | _ACEOF | |
21561 | rm -f conftest.$ac_objext | |
21562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21563 | (eval $ac_compile) 2>conftest.er1 | |
21564 | ac_status=$? | |
21565 | grep -v '^ *+' conftest.er1 >conftest.err | |
21566 | rm -f conftest.er1 | |
21567 | cat conftest.err >&5 | |
21568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21569 | (exit $ac_status); } && | |
3f60522a JS |
21570 | { ac_try='test -z "$ac_cxx_werror_flag" |
21571 | || test ! -s conftest.err' | |
238ecede MW |
21572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21573 | (eval $ac_try) 2>&5 | |
21574 | ac_status=$? | |
21575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21576 | (exit $ac_status); }; } && | |
21577 | { ac_try='test -s conftest.$ac_objext' | |
21578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21579 | (eval $ac_try) 2>&5 | |
21580 | ac_status=$? | |
21581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21582 | (exit $ac_status); }; }; then | |
21583 | ac_hi=-1 ac_mid=-1 | |
21584 | while :; do | |
21585 | cat >conftest.$ac_ext <<_ACEOF | |
21586 | /* confdefs.h. */ | |
21587 | _ACEOF | |
21588 | cat confdefs.h >>conftest.$ac_ext | |
21589 | cat >>conftest.$ac_ext <<_ACEOF | |
21590 | /* end confdefs.h. */ | |
21591 | ||
83d8eb47 MW |
21592 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21593 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21594 | # error "fake wchar_t" |
21595 | #endif | |
21596 | #ifdef HAVE_WCHAR_H | |
21597 | # ifdef __CYGWIN__ | |
21598 | # include <stddef.h> | |
21599 | # endif | |
21600 | # include <wchar.h> | |
21601 | #endif | |
21602 | #ifdef HAVE_STDLIB_H | |
21603 | # include <stdlib.h> | |
21604 | #endif | |
21605 | #include <stdio.h> | |
21606 | ||
21607 | ||
21608 | ||
21609 | int | |
21610 | main () | |
21611 | { | |
21612 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
21613 | test_array [0] = 0 | |
21614 | ||
21615 | ; | |
21616 | return 0; | |
21617 | } | |
21618 | _ACEOF | |
21619 | rm -f conftest.$ac_objext | |
21620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21621 | (eval $ac_compile) 2>conftest.er1 | |
21622 | ac_status=$? | |
21623 | grep -v '^ *+' conftest.er1 >conftest.err | |
21624 | rm -f conftest.er1 | |
21625 | cat conftest.err >&5 | |
21626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21627 | (exit $ac_status); } && | |
3f60522a JS |
21628 | { ac_try='test -z "$ac_cxx_werror_flag" |
21629 | || test ! -s conftest.err' | |
238ecede MW |
21630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21631 | (eval $ac_try) 2>&5 | |
21632 | ac_status=$? | |
21633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21634 | (exit $ac_status); }; } && | |
21635 | { ac_try='test -s conftest.$ac_objext' | |
21636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21637 | (eval $ac_try) 2>&5 | |
21638 | ac_status=$? | |
21639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21640 | (exit $ac_status); }; }; then | |
21641 | ac_lo=$ac_mid; break | |
21642 | else | |
21643 | echo "$as_me: failed program was:" >&5 | |
21644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21645 | ||
21646 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
21647 | if test $ac_mid -le $ac_hi; then | |
21648 | ac_lo= ac_hi= | |
21649 | break | |
21650 | fi | |
21651 | ac_mid=`expr 2 '*' $ac_mid` | |
21652 | fi | |
21653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21654 | done | |
21655 | else | |
21656 | echo "$as_me: failed program was:" >&5 | |
21657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21658 | ||
21659 | ac_lo= ac_hi= | |
21660 | fi | |
21661 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21662 | fi | |
21663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21664 | # Binary search between lo and hi bounds. | |
21665 | while test "x$ac_lo" != "x$ac_hi"; do | |
21666 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21667 | cat >conftest.$ac_ext <<_ACEOF | |
21668 | /* confdefs.h. */ | |
21669 | _ACEOF | |
21670 | cat confdefs.h >>conftest.$ac_ext | |
21671 | cat >>conftest.$ac_ext <<_ACEOF | |
21672 | /* end confdefs.h. */ | |
21673 | ||
83d8eb47 MW |
21674 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21675 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21676 | # error "fake wchar_t" |
21677 | #endif | |
21678 | #ifdef HAVE_WCHAR_H | |
21679 | # ifdef __CYGWIN__ | |
21680 | # include <stddef.h> | |
21681 | # endif | |
21682 | # include <wchar.h> | |
21683 | #endif | |
21684 | #ifdef HAVE_STDLIB_H | |
21685 | # include <stdlib.h> | |
21686 | #endif | |
21687 | #include <stdio.h> | |
a848cd7e | 21688 | |
a848cd7e | 21689 | |
a848cd7e | 21690 | |
238ecede MW |
21691 | int |
21692 | main () | |
21693 | { | |
21694 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21695 | test_array [0] = 0 | |
a848cd7e | 21696 | |
238ecede MW |
21697 | ; |
21698 | return 0; | |
21699 | } | |
21700 | _ACEOF | |
21701 | rm -f conftest.$ac_objext | |
21702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21703 | (eval $ac_compile) 2>conftest.er1 | |
21704 | ac_status=$? | |
21705 | grep -v '^ *+' conftest.er1 >conftest.err | |
21706 | rm -f conftest.er1 | |
21707 | cat conftest.err >&5 | |
21708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21709 | (exit $ac_status); } && | |
3f60522a JS |
21710 | { ac_try='test -z "$ac_cxx_werror_flag" |
21711 | || test ! -s conftest.err' | |
238ecede MW |
21712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21713 | (eval $ac_try) 2>&5 | |
21714 | ac_status=$? | |
21715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21716 | (exit $ac_status); }; } && | |
21717 | { ac_try='test -s conftest.$ac_objext' | |
21718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21719 | (eval $ac_try) 2>&5 | |
21720 | ac_status=$? | |
21721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21722 | (exit $ac_status); }; }; then | |
21723 | ac_hi=$ac_mid | |
21724 | else | |
21725 | echo "$as_me: failed program was:" >&5 | |
21726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21727 | ||
21728 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21729 | fi | |
21730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21731 | done | |
21732 | case $ac_lo in | |
21733 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
21734 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
21735 | See \`config.log' for more details." >&5 | |
21736 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21737 | See \`config.log' for more details." >&2;} | |
21738 | { (exit 1); exit 1; }; } ;; | |
21739 | esac | |
21740 | else | |
21741 | if test "$cross_compiling" = yes; then | |
3f60522a JS |
21742 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
21743 | See \`config.log' for more details." >&5 | |
21744 | echo "$as_me: error: cannot run test program while cross compiling | |
21745 | See \`config.log' for more details." >&2;} | |
238ecede | 21746 | { (exit 1); exit 1; }; } |
a848cd7e SC |
21747 | else |
21748 | cat >conftest.$ac_ext <<_ACEOF | |
21749 | /* confdefs.h. */ | |
21750 | _ACEOF | |
21751 | cat confdefs.h >>conftest.$ac_ext | |
21752 | cat >>conftest.$ac_ext <<_ACEOF | |
21753 | /* end confdefs.h. */ | |
21754 | ||
83d8eb47 MW |
21755 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21756 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21757 | # error "fake wchar_t" |
21758 | #endif | |
21759 | #ifdef HAVE_WCHAR_H | |
21760 | # ifdef __CYGWIN__ | |
21761 | # include <stddef.h> | |
21762 | # endif | |
21763 | # include <wchar.h> | |
21764 | #endif | |
21765 | #ifdef HAVE_STDLIB_H | |
21766 | # include <stdlib.h> | |
21767 | #endif | |
21768 | #include <stdio.h> | |
21769 | ||
21770 | ||
21771 | ||
21772 | long longval () { return (long) (sizeof (wchar_t)); } | |
21773 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21774 | #include <stdio.h> | |
21775 | #include <stdlib.h> | |
21776 | int | |
21777 | main () | |
21778 | { | |
a848cd7e | 21779 | |
238ecede MW |
21780 | FILE *f = fopen ("conftest.val", "w"); |
21781 | if (! f) | |
21782 | exit (1); | |
21783 | if (((long) (sizeof (wchar_t))) < 0) | |
21784 | { | |
21785 | long i = longval (); | |
21786 | if (i != ((long) (sizeof (wchar_t)))) | |
21787 | exit (1); | |
21788 | fprintf (f, "%ld\n", i); | |
21789 | } | |
21790 | else | |
21791 | { | |
21792 | unsigned long i = ulongval (); | |
21793 | if (i != ((long) (sizeof (wchar_t)))) | |
21794 | exit (1); | |
21795 | fprintf (f, "%lu\n", i); | |
21796 | } | |
21797 | exit (ferror (f) || fclose (f) != 0); | |
21798 | ||
21799 | ; | |
21800 | return 0; | |
21801 | } | |
a848cd7e SC |
21802 | _ACEOF |
21803 | rm -f conftest$ac_exeext | |
21804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21805 | (eval $ac_link) 2>&5 | |
21806 | ac_status=$? | |
21807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21808 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21810 | (eval $ac_try) 2>&5 | |
21811 | ac_status=$? | |
21812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21813 | (exit $ac_status); }; }; then | |
238ecede | 21814 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
21815 | else |
21816 | echo "$as_me: program exited with status $ac_status" >&5 | |
21817 | echo "$as_me: failed program was:" >&5 | |
21818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21819 | ||
21820 | ( exit $ac_status ) | |
238ecede MW |
21821 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
21822 | See \`config.log' for more details." >&5 | |
21823 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21824 | See \`config.log' for more details." >&2;} | |
21825 | { (exit 1); exit 1; }; } | |
a848cd7e | 21826 | fi |
ac1cb8d3 | 21827 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21828 | fi |
a848cd7e | 21829 | fi |
238ecede MW |
21830 | rm -f conftest.val |
21831 | else | |
21832 | ac_cv_sizeof_wchar_t=0 | |
21833 | fi | |
21834 | fi | |
21835 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
21836 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 21837 | cat >>confdefs.h <<_ACEOF |
238ecede | 21838 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
21839 | _ACEOF |
21840 | ||
21841 | ||
47a7e797 MW |
21842 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
21843 | wxUSE_WCHAR_T=yes | |
21844 | else | |
21845 | wxUSE_WCHAR_T=no | |
21846 | fi | |
238ecede | 21847 | |
ba3d13e1 VZ |
21848 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
21849 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
21850 | if test "${wx_cv_func_va_copy+set}" = set; then | |
21851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21852 | else | |
21853 | ||
21854 | cat >conftest.$ac_ext <<_ACEOF | |
21855 | ||
21856 | #include <stdarg.h> | |
21857 | void foo(char *f, ...) | |
21858 | { | |
21859 | va_list ap1, ap2; | |
21860 | va_start(ap1, f); | |
21861 | va_copy(ap2, ap1); | |
21862 | va_end(ap2); | |
21863 | va_end(ap1); | |
21864 | } | |
5886b072 VZ |
21865 | int main() |
21866 | { | |
b902e639 VZ |
21867 | foo("hi", 17); |
21868 | return 0; | |
5886b072 | 21869 | } |
ba3d13e1 VZ |
21870 | _ACEOF |
21871 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21873 | (eval $ac_link) 2>conftest.er1 | |
21874 | ac_status=$? | |
21875 | grep -v '^ *+' conftest.er1 >conftest.err | |
21876 | rm -f conftest.er1 | |
21877 | cat conftest.err >&5 | |
21878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21879 | (exit $ac_status); } && | |
3f60522a JS |
21880 | { ac_try='test -z "$ac_cxx_werror_flag" |
21881 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
21882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21883 | (eval $ac_try) 2>&5 | |
21884 | ac_status=$? | |
21885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21886 | (exit $ac_status); }; } && | |
21887 | { ac_try='test -s conftest$ac_exeext' | |
21888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21889 | (eval $ac_try) 2>&5 | |
21890 | ac_status=$? | |
21891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21892 | (exit $ac_status); }; }; then | |
21893 | wx_cv_func_va_copy=yes | |
21894 | else | |
21895 | echo "$as_me: failed program was:" >&5 | |
21896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21897 | ||
21898 | wx_cv_func_va_copy=no | |
21899 | ||
21900 | fi | |
21901 | rm -f conftest.err conftest.$ac_objext \ | |
21902 | conftest$ac_exeext conftest.$ac_ext | |
21903 | ||
21904 | ||
21905 | fi | |
21906 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
21907 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
21908 | ||
21909 | if test $wx_cv_func_va_copy = "yes"; then | |
21910 | cat >>confdefs.h <<\_ACEOF | |
21911 | #define HAVE_VA_COPY 1 | |
21912 | _ACEOF | |
21913 | ||
21914 | else | |
21915 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
21916 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
21917 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
21918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21919 | else | |
21920 | ||
21921 | if test "$cross_compiling" = yes; then | |
21922 | wx_cv_type_va_list_lvalue=yes | |
21923 | ||
21924 | else | |
21925 | cat >conftest.$ac_ext <<_ACEOF | |
21926 | ||
21927 | #include <stdarg.h> | |
21928 | int foo(char *f, ...) | |
21929 | { | |
21930 | va_list ap1, ap2; | |
21931 | va_start(ap1, f); | |
21932 | ap2 = ap1; | |
21933 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
21934 | return 1; | |
21935 | va_end(ap2); | |
21936 | va_end(ap1); | |
21937 | return 0; | |
21938 | } | |
21939 | int main() | |
21940 | { | |
21941 | return foo("hi", 17); | |
21942 | } | |
21943 | _ACEOF | |
21944 | rm -f conftest$ac_exeext | |
21945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21946 | (eval $ac_link) 2>&5 | |
21947 | ac_status=$? | |
21948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21949 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21951 | (eval $ac_try) 2>&5 | |
21952 | ac_status=$? | |
21953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21954 | (exit $ac_status); }; }; then | |
21955 | wx_cv_type_va_list_lvalue=yes | |
21956 | else | |
21957 | echo "$as_me: program exited with status $ac_status" >&5 | |
21958 | echo "$as_me: failed program was:" >&5 | |
21959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21960 | ||
21961 | ( exit $ac_status ) | |
21962 | wx_cv_type_va_list_lvalue=no | |
21963 | fi | |
21964 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21965 | fi | |
21966 | ||
21967 | ||
21968 | fi | |
21969 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
21970 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
21971 | ||
21972 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
21973 | cat >>confdefs.h <<\_ACEOF | |
21974 | #define VA_LIST_IS_ARRAY 1 | |
21975 | _ACEOF | |
21976 | ||
21977 | fi | |
21978 | fi | |
21979 | ||
a848cd7e SC |
21980 | # Check whether --enable-largefile or --disable-largefile was given. |
21981 | if test "${enable_largefile+set}" = set; then | |
21982 | enableval="$enable_largefile" | |
21983 | ||
21984 | fi; | |
21985 | if test "$enable_largefile" != no; then | |
21986 | wx_largefile=no | |
21987 | ||
21988 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
21989 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
21990 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
21991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21992 | else | |
21993 | ||
21994 | cat >conftest.$ac_ext <<_ACEOF | |
21995 | /* confdefs.h. */ | |
21996 | _ACEOF | |
21997 | cat confdefs.h >>conftest.$ac_ext | |
21998 | cat >>conftest.$ac_ext <<_ACEOF | |
21999 | /* end confdefs.h. */ | |
22000 | #define _FILE_OFFSET_BITS 64 | |
22001 | #include <sys/types.h> | |
22002 | int | |
22003 | main () | |
22004 | { | |
22005 | typedef struct { | |
22006 | unsigned int field: sizeof(off_t) == 8; | |
22007 | } wxlf; | |
22008 | ||
22009 | ; | |
22010 | return 0; | |
22011 | } | |
22012 | _ACEOF | |
22013 | rm -f conftest.$ac_objext | |
22014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22016 | ac_status=$? |
ac1cb8d3 VS |
22017 | grep -v '^ *+' conftest.er1 >conftest.err |
22018 | rm -f conftest.er1 | |
22019 | cat conftest.err >&5 | |
a848cd7e SC |
22020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22021 | (exit $ac_status); } && | |
3f60522a JS |
22022 | { ac_try='test -z "$ac_cxx_werror_flag" |
22023 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22025 | (eval $ac_try) 2>&5 | |
22026 | ac_status=$? | |
22027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22028 | (exit $ac_status); }; } && | |
22029 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22031 | (eval $ac_try) 2>&5 | |
22032 | ac_status=$? | |
22033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22034 | (exit $ac_status); }; }; then | |
22035 | ac_cv_sys_file_offset_bits=64 | |
22036 | else | |
22037 | echo "$as_me: failed program was:" >&5 | |
22038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22039 | ||
22040 | ac_cv_sys_file_offset_bits=no | |
22041 | fi | |
ac1cb8d3 | 22042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22043 | |
22044 | ||
22045 | fi | |
22046 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
22047 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
22048 | ||
22049 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
22050 | wx_largefile=yes | |
22051 | cat >>confdefs.h <<_ACEOF | |
22052 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
22053 | _ACEOF | |
22054 | ||
22055 | fi | |
22056 | ||
22057 | if test "x$wx_largefile" != "xyes"; then | |
22058 | ||
22059 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
22060 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
22061 | if test "${ac_cv_sys_large_files+set}" = set; then | |
22062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22063 | else | |
22064 | ||
22065 | cat >conftest.$ac_ext <<_ACEOF | |
22066 | /* confdefs.h. */ | |
22067 | _ACEOF | |
22068 | cat confdefs.h >>conftest.$ac_ext | |
22069 | cat >>conftest.$ac_ext <<_ACEOF | |
22070 | /* end confdefs.h. */ | |
22071 | #define _LARGE_FILES 1 | |
22072 | #include <sys/types.h> | |
22073 | int | |
22074 | main () | |
22075 | { | |
22076 | typedef struct { | |
22077 | unsigned int field: sizeof(off_t) == 8; | |
22078 | } wxlf; | |
22079 | ||
22080 | ; | |
22081 | return 0; | |
22082 | } | |
22083 | _ACEOF | |
22084 | rm -f conftest.$ac_objext | |
22085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22086 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22087 | ac_status=$? |
ac1cb8d3 VS |
22088 | grep -v '^ *+' conftest.er1 >conftest.err |
22089 | rm -f conftest.er1 | |
22090 | cat conftest.err >&5 | |
a848cd7e SC |
22091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22092 | (exit $ac_status); } && | |
3f60522a JS |
22093 | { ac_try='test -z "$ac_cxx_werror_flag" |
22094 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22096 | (eval $ac_try) 2>&5 | |
22097 | ac_status=$? | |
22098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22099 | (exit $ac_status); }; } && | |
22100 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22102 | (eval $ac_try) 2>&5 | |
22103 | ac_status=$? | |
22104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22105 | (exit $ac_status); }; }; then | |
22106 | ac_cv_sys_large_files=1 | |
22107 | else | |
22108 | echo "$as_me: failed program was:" >&5 | |
22109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22110 | ||
22111 | ac_cv_sys_large_files=no | |
22112 | fi | |
ac1cb8d3 | 22113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22114 | |
22115 | ||
22116 | fi | |
22117 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
22118 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
22119 | ||
22120 | if test "$ac_cv_sys_large_files" != no; then | |
22121 | wx_largefile=yes | |
22122 | cat >>confdefs.h <<_ACEOF | |
22123 | #define _LARGE_FILES $ac_cv_sys_large_files | |
22124 | _ACEOF | |
22125 | ||
22126 | fi | |
22127 | ||
22128 | fi | |
22129 | ||
22130 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
22131 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
22132 | if test "x$wx_largefile" = "xyes"; then | |
22133 | cat >>confdefs.h <<\_ACEOF | |
22134 | #define HAVE_LARGEFILE_SUPPORT 1 | |
22135 | _ACEOF | |
22136 | ||
22137 | fi | |
22138 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
22139 | echo "${ECHO_T}$wx_largefile" >&6 | |
22140 | fi | |
22141 | ||
5b674b9d DE |
22142 | |
22143 | if test "x$wx_largefile" = "xyes"; then | |
22144 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 22145 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
22146 | |
22147 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
22148 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
22149 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
22150 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
22151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22152 | else | |
22153 | ||
00421666 MW |
22154 | cat >conftest.$ac_ext <<_ACEOF |
22155 | /* confdefs.h. */ | |
22156 | _ACEOF | |
22157 | cat confdefs.h >>conftest.$ac_ext | |
22158 | cat >>conftest.$ac_ext <<_ACEOF | |
22159 | /* end confdefs.h. */ | |
22160 | ||
22161 | int | |
22162 | main () | |
22163 | { | |
22164 | ||
22165 | #ifndef __STDC_EXT__ | |
22166 | choke me | |
22167 | #endif | |
22168 | ||
22169 | ; | |
22170 | return 0; | |
22171 | } | |
22172 | _ACEOF | |
22173 | rm -f conftest.$ac_objext | |
22174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22175 | (eval $ac_compile) 2>conftest.er1 | |
22176 | ac_status=$? | |
22177 | grep -v '^ *+' conftest.er1 >conftest.err | |
22178 | rm -f conftest.er1 | |
22179 | cat conftest.err >&5 | |
22180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22181 | (exit $ac_status); } && | |
3f60522a JS |
22182 | { ac_try='test -z "$ac_cxx_werror_flag" |
22183 | || test ! -s conftest.err' | |
00421666 MW |
22184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22185 | (eval $ac_try) 2>&5 | |
22186 | ac_status=$? | |
22187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22188 | (exit $ac_status); }; } && | |
22189 | { ac_try='test -s conftest.$ac_objext' | |
22190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22191 | (eval $ac_try) 2>&5 | |
22192 | ac_status=$? | |
22193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22194 | (exit $ac_status); }; }; then | |
22195 | wx_cv_STDC_EXT_required=no | |
22196 | else | |
22197 | echo "$as_me: failed program was:" >&5 | |
22198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22199 | ||
22200 | wx_cv_STDC_EXT_required=yes | |
22201 | ||
22202 | fi | |
22203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
00421666 MW |
22204 | |
22205 | ||
22206 | fi | |
22207 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
22208 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
22209 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 22210 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
22211 | fi |
22212 | fi | |
5b674b9d | 22213 | else |
5ff751d6 | 22214 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
22215 | fi |
22216 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
22217 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
22218 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
22219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22220 | else | |
22221 | while :; do | |
22222 | ac_cv_sys_largefile_source=no | |
22223 | cat >conftest.$ac_ext <<_ACEOF | |
22224 | /* confdefs.h. */ | |
22225 | _ACEOF | |
22226 | cat confdefs.h >>conftest.$ac_ext | |
22227 | cat >>conftest.$ac_ext <<_ACEOF | |
22228 | /* end confdefs.h. */ | |
22229 | #include <stdio.h> | |
22230 | int | |
22231 | main () | |
22232 | { | |
22233 | return !fseeko; | |
22234 | ; | |
22235 | return 0; | |
22236 | } | |
22237 | _ACEOF | |
22238 | rm -f conftest.$ac_objext | |
22239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22240 | (eval $ac_compile) 2>conftest.er1 | |
22241 | ac_status=$? | |
22242 | grep -v '^ *+' conftest.er1 >conftest.err | |
22243 | rm -f conftest.er1 | |
22244 | cat conftest.err >&5 | |
22245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22246 | (exit $ac_status); } && | |
3f60522a JS |
22247 | { ac_try='test -z "$ac_cxx_werror_flag" |
22248 | || test ! -s conftest.err' | |
5294a27e VZ |
22249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22250 | (eval $ac_try) 2>&5 | |
22251 | ac_status=$? | |
22252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22253 | (exit $ac_status); }; } && | |
22254 | { ac_try='test -s conftest.$ac_objext' | |
22255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22256 | (eval $ac_try) 2>&5 | |
22257 | ac_status=$? | |
22258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22259 | (exit $ac_status); }; }; then | |
22260 | break | |
22261 | else | |
22262 | echo "$as_me: failed program was:" >&5 | |
22263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22264 | ||
22265 | fi | |
22266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22267 | cat >conftest.$ac_ext <<_ACEOF | |
22268 | /* confdefs.h. */ | |
22269 | _ACEOF | |
22270 | cat confdefs.h >>conftest.$ac_ext | |
22271 | cat >>conftest.$ac_ext <<_ACEOF | |
22272 | /* end confdefs.h. */ | |
22273 | #define _LARGEFILE_SOURCE 1 | |
22274 | #include <stdio.h> | |
22275 | int | |
22276 | main () | |
22277 | { | |
22278 | return !fseeko; | |
22279 | ; | |
22280 | return 0; | |
22281 | } | |
22282 | _ACEOF | |
22283 | rm -f conftest.$ac_objext | |
22284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22285 | (eval $ac_compile) 2>conftest.er1 | |
22286 | ac_status=$? | |
22287 | grep -v '^ *+' conftest.er1 >conftest.err | |
22288 | rm -f conftest.er1 | |
22289 | cat conftest.err >&5 | |
22290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22291 | (exit $ac_status); } && | |
3f60522a JS |
22292 | { ac_try='test -z "$ac_cxx_werror_flag" |
22293 | || test ! -s conftest.err' | |
5294a27e VZ |
22294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22295 | (eval $ac_try) 2>&5 | |
22296 | ac_status=$? | |
22297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22298 | (exit $ac_status); }; } && | |
22299 | { ac_try='test -s conftest.$ac_objext' | |
22300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22301 | (eval $ac_try) 2>&5 | |
22302 | ac_status=$? | |
22303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22304 | (exit $ac_status); }; }; then | |
22305 | ac_cv_sys_largefile_source=1; break | |
22306 | else | |
22307 | echo "$as_me: failed program was:" >&5 | |
22308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22309 | ||
22310 | fi | |
22311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22312 | break | |
22313 | done | |
22314 | fi | |
22315 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
22316 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
22317 | if test "$ac_cv_sys_largefile_source" != no; then | |
22318 | ||
22319 | cat >>confdefs.h <<_ACEOF | |
22320 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
22321 | _ACEOF | |
22322 | ||
22323 | fi | |
22324 | rm -f conftest* | |
22325 | ||
22326 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
22327 | # in glibc 2.1.3, but that breaks too many other things. | |
22328 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
22329 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
22330 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
22331 | if test "${ac_cv_func_fseeko+set}" = set; then | |
22332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22333 | else | |
22334 | cat >conftest.$ac_ext <<_ACEOF | |
22335 | /* confdefs.h. */ | |
22336 | _ACEOF | |
22337 | cat confdefs.h >>conftest.$ac_ext | |
22338 | cat >>conftest.$ac_ext <<_ACEOF | |
22339 | /* end confdefs.h. */ | |
22340 | #include <stdio.h> | |
22341 | int | |
22342 | main () | |
22343 | { | |
22344 | return fseeko && fseeko (stdin, 0, 0); | |
22345 | ; | |
22346 | return 0; | |
22347 | } | |
22348 | _ACEOF | |
22349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22351 | (eval $ac_link) 2>conftest.er1 | |
22352 | ac_status=$? | |
22353 | grep -v '^ *+' conftest.er1 >conftest.err | |
22354 | rm -f conftest.er1 | |
22355 | cat conftest.err >&5 | |
22356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22357 | (exit $ac_status); } && | |
3f60522a JS |
22358 | { ac_try='test -z "$ac_cxx_werror_flag" |
22359 | || test ! -s conftest.err' | |
5294a27e VZ |
22360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22361 | (eval $ac_try) 2>&5 | |
22362 | ac_status=$? | |
22363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22364 | (exit $ac_status); }; } && | |
22365 | { ac_try='test -s conftest$ac_exeext' | |
22366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22367 | (eval $ac_try) 2>&5 | |
22368 | ac_status=$? | |
22369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22370 | (exit $ac_status); }; }; then | |
22371 | ac_cv_func_fseeko=yes | |
22372 | else | |
22373 | echo "$as_me: failed program was:" >&5 | |
22374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22375 | ||
22376 | ac_cv_func_fseeko=no | |
22377 | fi | |
22378 | rm -f conftest.err conftest.$ac_objext \ | |
22379 | conftest$ac_exeext conftest.$ac_ext | |
22380 | fi | |
22381 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
22382 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
22383 | if test $ac_cv_func_fseeko = yes; then | |
22384 | ||
22385 | cat >>confdefs.h <<\_ACEOF | |
22386 | #define HAVE_FSEEKO 1 | |
22387 | _ACEOF | |
22388 | ||
22389 | fi | |
22390 | ||
5b674b9d | 22391 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 22392 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 22393 | fi |
a848cd7e SC |
22394 | fi |
22395 | ||
22396 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
22397 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
22398 | if test "${ac_cv_c_bigendian+set}" = set; then | |
22399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22400 | else | |
22401 | ac_cv_c_bigendian=unknown | |
22402 | # See if sys/param.h defines the BYTE_ORDER macro. | |
22403 | cat >conftest.$ac_ext <<_ACEOF | |
22404 | /* confdefs.h. */ | |
22405 | _ACEOF | |
22406 | cat confdefs.h >>conftest.$ac_ext | |
22407 | cat >>conftest.$ac_ext <<_ACEOF | |
22408 | /* end confdefs.h. */ | |
22409 | #include <sys/types.h> | |
22410 | #include <sys/param.h> | |
22411 | int | |
22412 | main () | |
22413 | { | |
22414 | ||
22415 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
22416 | bogus endian macros | |
22417 | #endif | |
22418 | ; | |
22419 | return 0; | |
22420 | } | |
22421 | _ACEOF | |
22422 | rm -f conftest.$ac_objext | |
22423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22425 | ac_status=$? |
ac1cb8d3 VS |
22426 | grep -v '^ *+' conftest.er1 >conftest.err |
22427 | rm -f conftest.er1 | |
22428 | cat conftest.err >&5 | |
a848cd7e SC |
22429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22430 | (exit $ac_status); } && | |
3f60522a JS |
22431 | { ac_try='test -z "$ac_cxx_werror_flag" |
22432 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22434 | (eval $ac_try) 2>&5 | |
22435 | ac_status=$? | |
22436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22437 | (exit $ac_status); }; } && | |
22438 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22440 | (eval $ac_try) 2>&5 | |
22441 | ac_status=$? | |
22442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22443 | (exit $ac_status); }; }; then | |
22444 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
22445 | cat >conftest.$ac_ext <<_ACEOF | |
22446 | /* confdefs.h. */ | |
22447 | _ACEOF | |
22448 | cat confdefs.h >>conftest.$ac_ext | |
22449 | cat >>conftest.$ac_ext <<_ACEOF | |
22450 | /* end confdefs.h. */ | |
22451 | #include <sys/types.h> | |
22452 | #include <sys/param.h> | |
22453 | int | |
22454 | main () | |
22455 | { | |
22456 | ||
22457 | #if BYTE_ORDER != BIG_ENDIAN | |
22458 | not big endian | |
22459 | #endif | |
22460 | ; | |
22461 | return 0; | |
22462 | } | |
22463 | _ACEOF | |
22464 | rm -f conftest.$ac_objext | |
22465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22466 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22467 | ac_status=$? |
ac1cb8d3 VS |
22468 | grep -v '^ *+' conftest.er1 >conftest.err |
22469 | rm -f conftest.er1 | |
22470 | cat conftest.err >&5 | |
a848cd7e SC |
22471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22472 | (exit $ac_status); } && | |
3f60522a JS |
22473 | { ac_try='test -z "$ac_cxx_werror_flag" |
22474 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22476 | (eval $ac_try) 2>&5 | |
22477 | ac_status=$? | |
22478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22479 | (exit $ac_status); }; } && | |
22480 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22482 | (eval $ac_try) 2>&5 | |
22483 | ac_status=$? | |
22484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22485 | (exit $ac_status); }; }; then | |
22486 | ac_cv_c_bigendian=yes | |
22487 | else | |
22488 | echo "$as_me: failed program was:" >&5 | |
22489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22490 | ||
22491 | ac_cv_c_bigendian=no | |
22492 | fi | |
ac1cb8d3 | 22493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22494 | else |
22495 | echo "$as_me: failed program was:" >&5 | |
22496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22497 | ||
22498 | fi | |
ac1cb8d3 | 22499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22500 | if test $ac_cv_c_bigendian = unknown; then |
22501 | if test "$cross_compiling" = yes; then | |
22502 | ac_cv_c_bigendian=unknown | |
22503 | else | |
22504 | cat >conftest.$ac_ext <<_ACEOF | |
22505 | /* confdefs.h. */ | |
22506 | _ACEOF | |
22507 | cat confdefs.h >>conftest.$ac_ext | |
22508 | cat >>conftest.$ac_ext <<_ACEOF | |
22509 | /* end confdefs.h. */ | |
22510 | main () { | |
22511 | /* Are we little or big endian? From Harbison&Steele. */ | |
22512 | union | |
22513 | { | |
22514 | long l; | |
22515 | char c[sizeof (long)]; | |
22516 | } u; | |
22517 | u.l = 1; | |
22518 | exit (u.c[sizeof (long) - 1] == 1); | |
22519 | } | |
22520 | _ACEOF | |
22521 | rm -f conftest$ac_exeext | |
22522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22523 | (eval $ac_link) 2>&5 | |
22524 | ac_status=$? | |
22525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22526 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22528 | (eval $ac_try) 2>&5 | |
22529 | ac_status=$? | |
22530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22531 | (exit $ac_status); }; }; then | |
22532 | ac_cv_c_bigendian=no | |
22533 | else | |
22534 | echo "$as_me: program exited with status $ac_status" >&5 | |
22535 | echo "$as_me: failed program was:" >&5 | |
22536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22537 | ||
22538 | ( exit $ac_status ) | |
22539 | ac_cv_c_bigendian=yes | |
22540 | fi | |
ac1cb8d3 | 22541 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22542 | fi |
22543 | fi | |
22544 | fi | |
22545 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
22546 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
22547 | if test $ac_cv_c_bigendian = unknown; then | |
22548 | { 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 | |
22549 | 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;} | |
22550 | fi | |
22551 | if test $ac_cv_c_bigendian = yes; then | |
22552 | cat >>confdefs.h <<\_ACEOF | |
22553 | #define WORDS_BIGENDIAN 1 | |
22554 | _ACEOF | |
22555 | ||
22556 | fi | |
22557 | ||
22558 | ||
a848cd7e SC |
22559 | |
22560 | ||
22561 | ||
22562 | ac_ext=cc | |
22563 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22564 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22565 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22566 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22567 | ||
22568 | ||
22569 | ||
22570 | for ac_header in iostream | |
22571 | do | |
22572 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22573 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22574 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22578 | fi | |
22579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22580 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22581 | else | |
22582 | # Is the header compilable? | |
22583 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22584 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22585 | cat >conftest.$ac_ext <<_ACEOF | |
22586 | /* confdefs.h. */ | |
22587 | _ACEOF | |
22588 | cat confdefs.h >>conftest.$ac_ext | |
22589 | cat >>conftest.$ac_ext <<_ACEOF | |
22590 | /* end confdefs.h. */ | |
22591 | $ac_includes_default | |
22592 | #include <$ac_header> | |
22593 | _ACEOF | |
22594 | rm -f conftest.$ac_objext | |
22595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22596 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22597 | ac_status=$? |
ac1cb8d3 VS |
22598 | grep -v '^ *+' conftest.er1 >conftest.err |
22599 | rm -f conftest.er1 | |
22600 | cat conftest.err >&5 | |
a848cd7e SC |
22601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22602 | (exit $ac_status); } && | |
3f60522a JS |
22603 | { ac_try='test -z "$ac_cxx_werror_flag" |
22604 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22606 | (eval $ac_try) 2>&5 | |
22607 | ac_status=$? | |
22608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22609 | (exit $ac_status); }; } && | |
22610 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22612 | (eval $ac_try) 2>&5 | |
22613 | ac_status=$? | |
22614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22615 | (exit $ac_status); }; }; then | |
22616 | ac_header_compiler=yes | |
22617 | else | |
22618 | echo "$as_me: failed program was:" >&5 | |
22619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22620 | ||
22621 | ac_header_compiler=no | |
22622 | fi | |
ac1cb8d3 | 22623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22624 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22625 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22626 | ||
22627 | # Is the header present? | |
22628 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22629 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22630 | cat >conftest.$ac_ext <<_ACEOF | |
22631 | /* confdefs.h. */ | |
22632 | _ACEOF | |
22633 | cat confdefs.h >>conftest.$ac_ext | |
22634 | cat >>conftest.$ac_ext <<_ACEOF | |
22635 | /* end confdefs.h. */ | |
22636 | #include <$ac_header> | |
22637 | _ACEOF | |
22638 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22639 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22640 | ac_status=$? | |
22641 | grep -v '^ *+' conftest.er1 >conftest.err | |
22642 | rm -f conftest.er1 | |
22643 | cat conftest.err >&5 | |
22644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22645 | (exit $ac_status); } >/dev/null; then | |
22646 | if test -s conftest.err; then | |
22647 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22648 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22649 | else |
22650 | ac_cpp_err= | |
22651 | fi | |
22652 | else | |
22653 | ac_cpp_err=yes | |
22654 | fi | |
22655 | if test -z "$ac_cpp_err"; then | |
22656 | ac_header_preproc=yes | |
22657 | else | |
22658 | echo "$as_me: failed program was:" >&5 | |
22659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22660 | ||
22661 | ac_header_preproc=no | |
22662 | fi | |
22663 | rm -f conftest.err conftest.$ac_ext | |
22664 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22665 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22666 | ||
22667 | # So? What about this header? | |
ac1cb8d3 VS |
22668 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22669 | yes:no: ) | |
a848cd7e SC |
22670 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22671 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22672 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22673 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22674 | ac_header_preproc=yes | |
a848cd7e | 22675 | ;; |
ac1cb8d3 | 22676 | no:yes:* ) |
a848cd7e SC |
22677 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22678 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22679 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22680 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22681 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22682 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22683 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22684 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22686 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22687 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22688 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22689 | ( |
22690 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22691 | ## ----------------------------------------- ## |
22692 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22693 | ## ----------------------------------------- ## | |
a848cd7e SC |
22694 | _ASBOX |
22695 | ) | | |
22696 | sed "s/^/$as_me: WARNING: /" >&2 | |
22697 | ;; | |
22698 | esac | |
22699 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22700 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22701 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22703 | else | |
ac1cb8d3 | 22704 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22705 | fi |
22706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22707 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22708 | ||
22709 | fi | |
22710 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22711 | cat >>confdefs.h <<_ACEOF | |
22712 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22713 | _ACEOF | |
22714 | ||
22715 | fi | |
22716 | ||
22717 | done | |
22718 | ||
22719 | ||
22720 | if test "$ac_cv_header_iostream" = "yes" ; then | |
22721 | : | |
22722 | else | |
22723 | cat >>confdefs.h <<\_ACEOF | |
22724 | #define wxUSE_IOSTREAMH 1 | |
22725 | _ACEOF | |
22726 | ||
22727 | fi | |
22728 | ||
5d7b7554 VZ |
22729 | ac_ext=cc |
22730 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22731 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22732 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22733 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22734 | |
22735 | ||
22736 | ||
22737 | ||
22738 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
22739 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
22740 | if test "${wx_cv_cpp_bool+set}" = set; then | |
22741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22742 | else | |
22743 | ||
22744 | ||
22745 | ||
22746 | ac_ext=cc | |
22747 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22748 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22749 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22750 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22751 | ||
22752 | ||
22753 | cat >conftest.$ac_ext <<_ACEOF | |
22754 | /* confdefs.h. */ | |
22755 | _ACEOF | |
22756 | cat confdefs.h >>conftest.$ac_ext | |
22757 | cat >>conftest.$ac_ext <<_ACEOF | |
22758 | /* end confdefs.h. */ | |
22759 | ||
22760 | ||
22761 | int | |
22762 | main () | |
22763 | { | |
22764 | ||
22765 | bool b = true; | |
22766 | ||
22767 | return 0; | |
22768 | ||
22769 | ; | |
22770 | return 0; | |
22771 | } | |
22772 | _ACEOF | |
22773 | rm -f conftest.$ac_objext | |
22774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22775 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22776 | ac_status=$? |
ac1cb8d3 VS |
22777 | grep -v '^ *+' conftest.er1 >conftest.err |
22778 | rm -f conftest.er1 | |
22779 | cat conftest.err >&5 | |
a848cd7e SC |
22780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22781 | (exit $ac_status); } && | |
3f60522a JS |
22782 | { ac_try='test -z "$ac_cxx_werror_flag" |
22783 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22785 | (eval $ac_try) 2>&5 | |
22786 | ac_status=$? | |
22787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22788 | (exit $ac_status); }; } && | |
22789 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22791 | (eval $ac_try) 2>&5 | |
22792 | ac_status=$? | |
22793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22794 | (exit $ac_status); }; }; then | |
22795 | ||
22796 | wx_cv_cpp_bool=yes | |
22797 | ||
22798 | else | |
22799 | echo "$as_me: failed program was:" >&5 | |
22800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22801 | ||
22802 | ||
22803 | wx_cv_cpp_bool=no | |
22804 | ||
22805 | ||
22806 | fi | |
ac1cb8d3 | 22807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22808 | |
5d7b7554 VZ |
22809 | ac_ext=cc |
22810 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22814 | |
22815 | ||
22816 | fi | |
22817 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22818 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22819 | ||
22820 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22821 | cat >>confdefs.h <<\_ACEOF | |
22822 | #define HAVE_BOOL 1 | |
22823 | _ACEOF | |
22824 | ||
22825 | fi | |
22826 | ||
22827 | ||
22828 | ||
22829 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22830 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22831 | if test "${wx_cv_explicit+set}" = set; then | |
22832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22833 | else | |
22834 | ||
22835 | ||
22836 | ||
22837 | ac_ext=cc | |
22838 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22839 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22840 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22841 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22842 | ||
22843 | ||
22844 | cat >conftest.$ac_ext <<_ACEOF | |
22845 | /* confdefs.h. */ | |
22846 | _ACEOF | |
22847 | cat confdefs.h >>conftest.$ac_ext | |
22848 | cat >>conftest.$ac_ext <<_ACEOF | |
22849 | /* end confdefs.h. */ | |
22850 | ||
22851 | class Foo { public: explicit Foo(int) {} }; | |
22852 | ||
22853 | int | |
22854 | main () | |
22855 | { | |
22856 | ||
22857 | return 0; | |
22858 | ||
22859 | ; | |
22860 | return 0; | |
22861 | } | |
22862 | _ACEOF | |
22863 | rm -f conftest.$ac_objext | |
22864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22865 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22866 | ac_status=$? |
ac1cb8d3 VS |
22867 | grep -v '^ *+' conftest.er1 >conftest.err |
22868 | rm -f conftest.er1 | |
22869 | cat conftest.err >&5 | |
a848cd7e SC |
22870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22871 | (exit $ac_status); } && | |
3f60522a JS |
22872 | { ac_try='test -z "$ac_cxx_werror_flag" |
22873 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22875 | (eval $ac_try) 2>&5 | |
22876 | ac_status=$? | |
22877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22878 | (exit $ac_status); }; } && | |
22879 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22881 | (eval $ac_try) 2>&5 | |
22882 | ac_status=$? | |
22883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22884 | (exit $ac_status); }; }; then | |
22885 | ||
22886 | cat >conftest.$ac_ext <<_ACEOF | |
22887 | /* confdefs.h. */ | |
22888 | _ACEOF | |
22889 | cat confdefs.h >>conftest.$ac_ext | |
22890 | cat >>conftest.$ac_ext <<_ACEOF | |
22891 | /* end confdefs.h. */ | |
22892 | ||
22893 | class Foo { public: explicit Foo(int) {} }; | |
22894 | static void TakeFoo(const Foo& foo) { } | |
22895 | ||
22896 | int | |
22897 | main () | |
22898 | { | |
22899 | ||
22900 | TakeFoo(17); | |
22901 | return 0; | |
22902 | ||
22903 | ; | |
22904 | return 0; | |
22905 | } | |
22906 | _ACEOF | |
22907 | rm -f conftest.$ac_objext | |
22908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22909 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22910 | ac_status=$? |
ac1cb8d3 VS |
22911 | grep -v '^ *+' conftest.er1 >conftest.err |
22912 | rm -f conftest.er1 | |
22913 | cat conftest.err >&5 | |
a848cd7e SC |
22914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22915 | (exit $ac_status); } && | |
3f60522a JS |
22916 | { ac_try='test -z "$ac_cxx_werror_flag" |
22917 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22919 | (eval $ac_try) 2>&5 | |
22920 | ac_status=$? | |
22921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22922 | (exit $ac_status); }; } && | |
22923 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22925 | (eval $ac_try) 2>&5 | |
22926 | ac_status=$? | |
22927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22928 | (exit $ac_status); }; }; then | |
22929 | wx_cv_explicit=no | |
22930 | else | |
22931 | echo "$as_me: failed program was:" >&5 | |
22932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22933 | ||
22934 | wx_cv_explicit=yes | |
22935 | ||
22936 | fi | |
ac1cb8d3 | 22937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22938 | |
22939 | else | |
22940 | echo "$as_me: failed program was:" >&5 | |
22941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22942 | ||
22943 | wx_cv_explicit=no | |
22944 | ||
22945 | fi | |
ac1cb8d3 | 22946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22947 | |
5d7b7554 VZ |
22948 | ac_ext=cc |
22949 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22950 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22951 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22952 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22953 | |
22954 | ||
22955 | fi | |
22956 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22957 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22958 | ||
22959 | if test "$wx_cv_explicit" = "yes"; then | |
22960 | cat >>confdefs.h <<\_ACEOF | |
22961 | #define HAVE_EXPLICIT 1 | |
22962 | _ACEOF | |
22963 | ||
22964 | fi | |
22965 | ||
22966 | ||
22967 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22968 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22969 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22971 | else | |
22972 | ||
22973 | ||
22974 | ac_ext=cc | |
22975 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22976 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22977 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22978 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22979 | ||
22980 | cat >conftest.$ac_ext <<_ACEOF | |
22981 | /* confdefs.h. */ | |
22982 | _ACEOF | |
22983 | cat confdefs.h >>conftest.$ac_ext | |
22984 | cat >>conftest.$ac_ext <<_ACEOF | |
22985 | /* end confdefs.h. */ | |
22986 | ||
22987 | int | |
22988 | main () | |
22989 | { | |
22990 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
22991 | ; | |
22992 | return 0; | |
22993 | } | |
22994 | _ACEOF | |
22995 | rm -f conftest.$ac_objext | |
22996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22998 | ac_status=$? |
ac1cb8d3 VS |
22999 | grep -v '^ *+' conftest.er1 >conftest.err |
23000 | rm -f conftest.er1 | |
23001 | cat conftest.err >&5 | |
a848cd7e SC |
23002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23003 | (exit $ac_status); } && | |
3f60522a JS |
23004 | { ac_try='test -z "$ac_cxx_werror_flag" |
23005 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23007 | (eval $ac_try) 2>&5 | |
23008 | ac_status=$? | |
23009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23010 | (exit $ac_status); }; } && | |
23011 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23013 | (eval $ac_try) 2>&5 | |
23014 | ac_status=$? | |
23015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23016 | (exit $ac_status); }; }; then | |
23017 | ac_cv_cxx_const_cast=yes | |
23018 | else | |
23019 | echo "$as_me: failed program was:" >&5 | |
23020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23021 | ||
23022 | ac_cv_cxx_const_cast=no | |
23023 | fi | |
ac1cb8d3 | 23024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
23025 | ac_ext=cc |
23026 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23027 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23028 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23029 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23030 | |
23031 | ||
23032 | fi | |
23033 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
23034 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
23035 | if test "$ac_cv_cxx_const_cast" = yes; then | |
23036 | ||
23037 | cat >>confdefs.h <<\_ACEOF | |
23038 | #define HAVE_CONST_CAST | |
23039 | _ACEOF | |
23040 | ||
23041 | fi | |
23042 | ||
7714864e RL |
23043 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
23044 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
23045 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
23046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23047 | else | |
23048 | ||
23049 | ||
23050 | ac_ext=cc | |
23051 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23052 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23053 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23054 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23055 | ||
23056 | cat >conftest.$ac_ext <<_ACEOF | |
23057 | /* confdefs.h. */ | |
23058 | _ACEOF | |
23059 | cat confdefs.h >>conftest.$ac_ext | |
23060 | cat >>conftest.$ac_ext <<_ACEOF | |
23061 | /* end confdefs.h. */ | |
23062 | #include <typeinfo> | |
23063 | class Base { public : Base () {} virtual void f () = 0;}; | |
23064 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
23065 | class Unrelated { public : Unrelated () {} }; | |
23066 | int g (Unrelated&) { return 0; } | |
23067 | int | |
23068 | main () | |
23069 | { | |
23070 | ||
23071 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
23072 | ; | |
23073 | return 0; | |
23074 | } | |
23075 | _ACEOF | |
23076 | rm -f conftest.$ac_objext | |
23077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23078 | (eval $ac_compile) 2>conftest.er1 | |
23079 | ac_status=$? | |
23080 | grep -v '^ *+' conftest.er1 >conftest.err | |
23081 | rm -f conftest.er1 | |
23082 | cat conftest.err >&5 | |
23083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23084 | (exit $ac_status); } && | |
3f60522a JS |
23085 | { ac_try='test -z "$ac_cxx_werror_flag" |
23086 | || test ! -s conftest.err' | |
7714864e RL |
23087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23088 | (eval $ac_try) 2>&5 | |
23089 | ac_status=$? | |
23090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23091 | (exit $ac_status); }; } && | |
23092 | { ac_try='test -s conftest.$ac_objext' | |
23093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23094 | (eval $ac_try) 2>&5 | |
23095 | ac_status=$? | |
23096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23097 | (exit $ac_status); }; }; then | |
23098 | ac_cv_cxx_reinterpret_cast=yes | |
23099 | else | |
23100 | echo "$as_me: failed program was:" >&5 | |
23101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23102 | ||
23103 | ac_cv_cxx_reinterpret_cast=no | |
23104 | fi | |
23105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
23106 | ac_ext=cc |
23107 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23108 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23109 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23110 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7714864e RL |
23111 | |
23112 | ||
23113 | fi | |
23114 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
23115 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
23116 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
23117 | ||
23118 | cat >>confdefs.h <<\_ACEOF | |
23119 | #define HAVE_REINTERPRET_CAST | |
23120 | _ACEOF | |
23121 | ||
23122 | fi | |
23123 | ||
a848cd7e SC |
23124 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
23125 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
23126 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
23127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23128 | else | |
23129 | ||
23130 | ||
23131 | ac_ext=cc | |
23132 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23133 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23134 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23135 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23136 | ||
23137 | cat >conftest.$ac_ext <<_ACEOF | |
23138 | /* confdefs.h. */ | |
23139 | _ACEOF | |
23140 | cat confdefs.h >>conftest.$ac_ext | |
23141 | cat >>conftest.$ac_ext <<_ACEOF | |
23142 | /* end confdefs.h. */ | |
23143 | #include <typeinfo> | |
23144 | class Base { public : Base () {} virtual void f () = 0; }; | |
23145 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
23146 | int g (Derived&) { return 0; } | |
23147 | int | |
23148 | main () | |
23149 | { | |
23150 | ||
23151 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
23152 | ; | |
23153 | return 0; | |
23154 | } | |
23155 | _ACEOF | |
23156 | rm -f conftest.$ac_objext | |
23157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23158 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23159 | ac_status=$? |
ac1cb8d3 VS |
23160 | grep -v '^ *+' conftest.er1 >conftest.err |
23161 | rm -f conftest.er1 | |
23162 | cat conftest.err >&5 | |
a848cd7e SC |
23163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23164 | (exit $ac_status); } && | |
3f60522a JS |
23165 | { ac_try='test -z "$ac_cxx_werror_flag" |
23166 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23168 | (eval $ac_try) 2>&5 | |
23169 | ac_status=$? | |
23170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23171 | (exit $ac_status); }; } && | |
23172 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23174 | (eval $ac_try) 2>&5 | |
23175 | ac_status=$? | |
23176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23177 | (exit $ac_status); }; }; then | |
23178 | ac_cv_cxx_static_cast=yes | |
23179 | else | |
23180 | echo "$as_me: failed program was:" >&5 | |
23181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23182 | ||
23183 | ac_cv_cxx_static_cast=no | |
23184 | fi | |
ac1cb8d3 | 23185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
23186 | ac_ext=cc |
23187 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23188 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23189 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23190 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23191 | |
23192 | ||
23193 | fi | |
23194 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
23195 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
23196 | if test "$ac_cv_cxx_static_cast" = yes; then | |
23197 | ||
23198 | cat >>confdefs.h <<\_ACEOF | |
23199 | #define HAVE_STATIC_CAST | |
23200 | _ACEOF | |
23201 | ||
23202 | fi | |
23203 | ||
23204 | ||
3c28b7cb | 23205 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 23206 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
23207 | fi |
23208 | ||
9122d155 | 23209 | if test "x$SUNCC" = xyes; then |
c92ad099 | 23210 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
23211 | fi |
23212 | ||
0ad5d837 | 23213 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 23214 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
23215 | fi |
23216 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 23217 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
23218 | fi |
23219 | ||
2eef8513 | 23220 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 23221 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
23222 | fi |
23223 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 23224 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
23225 | fi |
23226 | ||
23227 | if test "x$COMPAQCXX" = "xyes"; then | |
23228 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
23229 | fi | |
23230 | ||
f56c22b4 | 23231 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
f56c22b4 MW |
23232 | if test "$wxUSE_UNICODE" = "yes"; then |
23233 | std_string="std::wstring" | |
23234 | char_type="wchar_t" | |
23235 | else | |
23236 | std_string="std::string" | |
23237 | char_type="char" | |
23238 | fi | |
23239 | ||
23240 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
23241 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
23242 | cat >conftest.$ac_ext <<_ACEOF |
23243 | /* confdefs.h. */ | |
23244 | _ACEOF | |
23245 | cat confdefs.h >>conftest.$ac_ext | |
23246 | cat >>conftest.$ac_ext <<_ACEOF | |
23247 | /* end confdefs.h. */ | |
23248 | #include <string> | |
a848cd7e SC |
23249 | int |
23250 | main () | |
23251 | { | |
f56c22b4 | 23252 | $std_string foo; |
a848cd7e SC |
23253 | ; |
23254 | return 0; | |
23255 | } | |
23256 | _ACEOF | |
23257 | rm -f conftest.$ac_objext | |
23258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23260 | ac_status=$? |
ac1cb8d3 VS |
23261 | grep -v '^ *+' conftest.er1 >conftest.err |
23262 | rm -f conftest.er1 | |
23263 | cat conftest.err >&5 | |
a848cd7e SC |
23264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23265 | (exit $ac_status); } && | |
3f60522a JS |
23266 | { ac_try='test -z "$ac_cxx_werror_flag" |
23267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23269 | (eval $ac_try) 2>&5 | |
23270 | ac_status=$? | |
23271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23272 | (exit $ac_status); }; } && | |
23273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23275 | (eval $ac_try) 2>&5 | |
23276 | ac_status=$? | |
23277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23278 | (exit $ac_status); }; }; then | |
23279 | echo "$as_me:$LINENO: result: yes" >&5 | |
23280 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
23281 | cat >>confdefs.h <<\_ACEOF |
23282 | #define HAVE_STD_WSTRING 1 | |
23283 | _ACEOF | |
23284 | ||
a848cd7e SC |
23285 | else |
23286 | echo "$as_me: failed program was:" >&5 | |
23287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23288 | ||
23289 | echo "$as_me:$LINENO: result: no" >&5 | |
23290 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
23291 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
23292 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
23293 | cat >conftest.$ac_ext <<_ACEOF |
23294 | /* confdefs.h. */ | |
23295 | _ACEOF | |
23296 | cat confdefs.h >>conftest.$ac_ext | |
23297 | cat >>conftest.$ac_ext <<_ACEOF | |
23298 | /* end confdefs.h. */ | |
23299 | ||
23300 | #ifdef HAVE_WCHAR_H | |
23301 | # ifdef __CYGWIN__ | |
23302 | # include <stddef.h> | |
23303 | # endif | |
23304 | # include <wchar.h> | |
23305 | #endif | |
23306 | #ifdef HAVE_STDLIB_H | |
23307 | # include <stdlib.h> | |
23308 | #endif | |
23309 | #include <stdio.h> | |
23310 | #include <string> | |
23311 | ||
23312 | int | |
23313 | main () | |
23314 | { | |
f56c22b4 MW |
23315 | std::basic_string<$char_type> foo; |
23316 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
23317 | ; |
23318 | return 0; | |
23319 | } | |
23320 | _ACEOF | |
23321 | rm -f conftest.$ac_objext | |
23322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23323 | (eval $ac_compile) 2>conftest.er1 | |
23324 | ac_status=$? | |
23325 | grep -v '^ *+' conftest.er1 >conftest.err | |
23326 | rm -f conftest.er1 | |
23327 | cat conftest.err >&5 | |
23328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23329 | (exit $ac_status); } && | |
3f60522a JS |
23330 | { ac_try='test -z "$ac_cxx_werror_flag" |
23331 | || test ! -s conftest.err' | |
0a08f02a MB |
23332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23333 | (eval $ac_try) 2>&5 | |
23334 | ac_status=$? | |
23335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23336 | (exit $ac_status); }; } && | |
23337 | { ac_try='test -s conftest.$ac_objext' | |
23338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23339 | (eval $ac_try) 2>&5 | |
23340 | ac_status=$? | |
23341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23342 | (exit $ac_status); }; }; then | |
23343 | echo "$as_me:$LINENO: result: yes" >&5 | |
23344 | echo "${ECHO_T}yes" >&6 | |
23345 | else | |
23346 | echo "$as_me: failed program was:" >&5 | |
23347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23348 | ||
23349 | echo "$as_me:$LINENO: result: no" >&5 | |
23350 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 23351 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
23352 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
23353 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
23354 | { (exit 1); exit 1; }; } | |
23355 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
23356 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
23357 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 23358 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
23359 | else |
23360 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
23361 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
23362 | wxUSE_STD_STRING=no | |
23363 | fi | |
23364 | ||
0a08f02a | 23365 | |
a848cd7e | 23366 | fi |
ac1cb8d3 | 23367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23368 | |
0a08f02a MB |
23369 | fi |
23370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f56c22b4 MW |
23371 | fi |
23372 | ||
23373 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
f56c22b4 MW |
23374 | echo "$as_me:$LINENO: checking for std::istream" >&5 |
23375 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
23376 | if test "${ac_cv_type_std__istream+set}" = set; then | |
23377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23378 | else | |
23379 | cat >conftest.$ac_ext <<_ACEOF | |
23380 | /* confdefs.h. */ | |
23381 | _ACEOF | |
23382 | cat confdefs.h >>conftest.$ac_ext | |
23383 | cat >>conftest.$ac_ext <<_ACEOF | |
23384 | /* end confdefs.h. */ | |
23385 | #include <iostream> | |
23386 | ||
23387 | int | |
23388 | main () | |
23389 | { | |
23390 | if ((std::istream *) 0) | |
23391 | return 0; | |
23392 | if (sizeof (std::istream)) | |
23393 | return 0; | |
23394 | ; | |
23395 | return 0; | |
23396 | } | |
23397 | _ACEOF | |
23398 | rm -f conftest.$ac_objext | |
23399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23400 | (eval $ac_compile) 2>conftest.er1 | |
23401 | ac_status=$? | |
23402 | grep -v '^ *+' conftest.er1 >conftest.err | |
23403 | rm -f conftest.er1 | |
23404 | cat conftest.err >&5 | |
23405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23406 | (exit $ac_status); } && | |
3f60522a JS |
23407 | { ac_try='test -z "$ac_cxx_werror_flag" |
23408 | || test ! -s conftest.err' | |
f56c22b4 MW |
23409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23410 | (eval $ac_try) 2>&5 | |
23411 | ac_status=$? | |
23412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23413 | (exit $ac_status); }; } && | |
23414 | { ac_try='test -s conftest.$ac_objext' | |
23415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23416 | (eval $ac_try) 2>&5 | |
23417 | ac_status=$? | |
23418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23419 | (exit $ac_status); }; }; then | |
23420 | ac_cv_type_std__istream=yes | |
23421 | else | |
23422 | echo "$as_me: failed program was:" >&5 | |
23423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23424 | ||
23425 | ac_cv_type_std__istream=no | |
23426 | fi | |
23427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23428 | fi | |
23429 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
23430 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
23431 | if test $ac_cv_type_std__istream = yes; then | |
23432 | ||
23433 | cat >>confdefs.h <<_ACEOF | |
23434 | #define HAVE_STD__ISTREAM 1 | |
23435 | _ACEOF | |
23436 | ||
23437 | ||
23438 | else | |
23439 | wxUSE_STD_IOSTREAM=no | |
23440 | fi | |
23441 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
23442 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
23443 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
23444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23445 | else | |
23446 | cat >conftest.$ac_ext <<_ACEOF | |
23447 | /* confdefs.h. */ | |
23448 | _ACEOF | |
23449 | cat confdefs.h >>conftest.$ac_ext | |
23450 | cat >>conftest.$ac_ext <<_ACEOF | |
23451 | /* end confdefs.h. */ | |
23452 | #include <iostream> | |
23453 | ||
23454 | int | |
23455 | main () | |
23456 | { | |
23457 | if ((std::ostream *) 0) | |
23458 | return 0; | |
23459 | if (sizeof (std::ostream)) | |
23460 | return 0; | |
23461 | ; | |
23462 | return 0; | |
23463 | } | |
23464 | _ACEOF | |
23465 | rm -f conftest.$ac_objext | |
23466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23467 | (eval $ac_compile) 2>conftest.er1 | |
23468 | ac_status=$? | |
23469 | grep -v '^ *+' conftest.er1 >conftest.err | |
23470 | rm -f conftest.er1 | |
23471 | cat conftest.err >&5 | |
23472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23473 | (exit $ac_status); } && | |
3f60522a JS |
23474 | { ac_try='test -z "$ac_cxx_werror_flag" |
23475 | || test ! -s conftest.err' | |
f56c22b4 MW |
23476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23477 | (eval $ac_try) 2>&5 | |
23478 | ac_status=$? | |
23479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23480 | (exit $ac_status); }; } && | |
23481 | { ac_try='test -s conftest.$ac_objext' | |
23482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23483 | (eval $ac_try) 2>&5 | |
23484 | ac_status=$? | |
23485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23486 | (exit $ac_status); }; }; then | |
23487 | ac_cv_type_std__ostream=yes | |
23488 | else | |
23489 | echo "$as_me: failed program was:" >&5 | |
23490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23491 | ||
23492 | ac_cv_type_std__ostream=no | |
23493 | fi | |
23494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23495 | fi | |
23496 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
23497 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
23498 | if test $ac_cv_type_std__ostream = yes; then | |
23499 | ||
23500 | cat >>confdefs.h <<_ACEOF | |
23501 | #define HAVE_STD__OSTREAM 1 | |
23502 | _ACEOF | |
23503 | ||
23504 | ||
23505 | else | |
23506 | wxUSE_STD_IOSTREAM=no | |
23507 | fi | |
23508 | ||
23509 | ||
23510 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
23511 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
23512 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
23513 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
23514 | { (exit 1); exit 1; }; } | |
23515 | else | |
23516 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23517 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23518 | fi |
f56c22b4 | 23519 | fi |
0a08f02a MB |
23520 | fi |
23521 | ||
23522 | if test "$wxUSE_STL" = "yes"; then | |
0a08f02a MB |
23523 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 |
23524 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23525 | cat >conftest.$ac_ext <<_ACEOF |
23526 | /* confdefs.h. */ | |
23527 | _ACEOF | |
23528 | cat confdefs.h >>conftest.$ac_ext | |
23529 | cat >>conftest.$ac_ext <<_ACEOF | |
23530 | /* end confdefs.h. */ | |
23531 | #include <string> | |
0a08f02a MB |
23532 | #include <functional> |
23533 | #include <algorithm> | |
23534 | #include <vector> | |
23535 | #include <list> | |
a848cd7e SC |
23536 | int |
23537 | main () | |
23538 | { | |
0a08f02a MB |
23539 | std::vector<int> moo; |
23540 | std::list<int> foo; | |
23541 | std::vector<int>::iterator it = | |
23542 | std::find_if(moo.begin(), moo.end(), | |
23543 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23544 | ; |
23545 | return 0; | |
23546 | } | |
23547 | _ACEOF | |
23548 | rm -f conftest.$ac_objext | |
23549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23550 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23551 | ac_status=$? |
ac1cb8d3 VS |
23552 | grep -v '^ *+' conftest.er1 >conftest.err |
23553 | rm -f conftest.er1 | |
23554 | cat conftest.err >&5 | |
a848cd7e SC |
23555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23556 | (exit $ac_status); } && | |
3f60522a JS |
23557 | { ac_try='test -z "$ac_cxx_werror_flag" |
23558 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23560 | (eval $ac_try) 2>&5 | |
23561 | ac_status=$? | |
23562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23563 | (exit $ac_status); }; } && | |
23564 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23566 | (eval $ac_try) 2>&5 | |
23567 | ac_status=$? | |
23568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23569 | (exit $ac_status); }; }; then | |
23570 | echo "$as_me:$LINENO: result: yes" >&5 | |
23571 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23572 | else |
23573 | echo "$as_me: failed program was:" >&5 | |
23574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23575 | ||
23576 | echo "$as_me:$LINENO: result: no" >&5 | |
23577 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23578 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23579 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23580 | { (exit 1); exit 1; }; } | |
a848cd7e | 23581 | fi |
ac1cb8d3 | 23582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23583 | |
23584 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23585 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23586 | cat >conftest.$ac_ext <<_ACEOF | |
23587 | /* confdefs.h. */ | |
23588 | _ACEOF | |
23589 | cat confdefs.h >>conftest.$ac_ext | |
23590 | cat >>conftest.$ac_ext <<_ACEOF | |
23591 | /* end confdefs.h. */ | |
23592 | #include <string> | |
23593 | int | |
23594 | main () | |
23595 | { | |
23596 | std::string foo, bar; | |
23597 | foo.compare(bar); | |
23598 | foo.compare(1, 1, bar); | |
23599 | foo.compare(1, 1, bar, 1, 1); | |
23600 | foo.compare(""); | |
23601 | foo.compare(1, 1, ""); | |
23602 | foo.compare(1, 1, "", 2); | |
23603 | ; | |
23604 | return 0; | |
23605 | } | |
23606 | _ACEOF | |
23607 | rm -f conftest.$ac_objext | |
23608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23610 | ac_status=$? |
ac1cb8d3 VS |
23611 | grep -v '^ *+' conftest.er1 >conftest.err |
23612 | rm -f conftest.er1 | |
23613 | cat conftest.err >&5 | |
a848cd7e SC |
23614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23615 | (exit $ac_status); } && | |
3f60522a JS |
23616 | { ac_try='test -z "$ac_cxx_werror_flag" |
23617 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23619 | (eval $ac_try) 2>&5 | |
23620 | ac_status=$? | |
23621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23622 | (exit $ac_status); }; } && | |
23623 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23625 | (eval $ac_try) 2>&5 | |
23626 | ac_status=$? | |
23627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23628 | (exit $ac_status); }; }; then | |
23629 | echo "$as_me:$LINENO: result: yes" >&5 | |
23630 | echo "${ECHO_T}yes" >&6 | |
23631 | cat >>confdefs.h <<\_ACEOF | |
23632 | #define HAVE_STD_STRING_COMPARE 1 | |
23633 | _ACEOF | |
23634 | ||
23635 | else | |
23636 | echo "$as_me: failed program was:" >&5 | |
23637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23638 | ||
23639 | echo "$as_me:$LINENO: result: no" >&5 | |
23640 | echo "${ECHO_T}no" >&6 | |
23641 | fi | |
ac1cb8d3 | 23642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23643 | |
23644 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23645 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23646 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23647 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23649 | fi | |
23650 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23651 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23652 | else | |
23653 | # Is the header compilable? | |
23654 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23655 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23656 | cat >conftest.$ac_ext <<_ACEOF | |
23657 | /* confdefs.h. */ | |
23658 | _ACEOF | |
23659 | cat confdefs.h >>conftest.$ac_ext | |
23660 | cat >>conftest.$ac_ext <<_ACEOF | |
23661 | /* end confdefs.h. */ | |
23662 | $ac_includes_default | |
23663 | #include <hash_map> | |
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 |
bdcade0a | 23668 | ac_status=$? |
ac1cb8d3 VS |
23669 | grep -v '^ *+' conftest.er1 >conftest.err |
23670 | rm -f conftest.er1 | |
23671 | cat conftest.err >&5 | |
bdcade0a MB |
23672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23673 | (exit $ac_status); } && | |
3f60522a JS |
23674 | { ac_try='test -z "$ac_cxx_werror_flag" |
23675 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23677 | (eval $ac_try) 2>&5 | |
23678 | ac_status=$? | |
23679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23680 | (exit $ac_status); }; } && | |
23681 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23683 | (eval $ac_try) 2>&5 | |
23684 | ac_status=$? | |
23685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23686 | (exit $ac_status); }; }; then | |
23687 | ac_header_compiler=yes | |
23688 | else | |
23689 | echo "$as_me: failed program was:" >&5 | |
23690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23691 | ||
23692 | ac_header_compiler=no | |
23693 | fi | |
ac1cb8d3 | 23694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23695 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23696 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23697 | ||
23698 | # Is the header present? | |
23699 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23700 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23701 | cat >conftest.$ac_ext <<_ACEOF | |
23702 | /* confdefs.h. */ | |
23703 | _ACEOF | |
23704 | cat confdefs.h >>conftest.$ac_ext | |
23705 | cat >>conftest.$ac_ext <<_ACEOF | |
23706 | /* end confdefs.h. */ | |
23707 | #include <hash_map> | |
23708 | _ACEOF | |
23709 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23710 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23711 | ac_status=$? | |
23712 | grep -v '^ *+' conftest.er1 >conftest.err | |
23713 | rm -f conftest.er1 | |
23714 | cat conftest.err >&5 | |
23715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23716 | (exit $ac_status); } >/dev/null; then | |
23717 | if test -s conftest.err; then | |
23718 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23719 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23720 | else |
23721 | ac_cpp_err= | |
23722 | fi | |
23723 | else | |
23724 | ac_cpp_err=yes | |
23725 | fi | |
23726 | if test -z "$ac_cpp_err"; then | |
23727 | ac_header_preproc=yes | |
23728 | else | |
23729 | echo "$as_me: failed program was:" >&5 | |
23730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23731 | ||
23732 | ac_header_preproc=no | |
23733 | fi | |
23734 | rm -f conftest.err conftest.$ac_ext | |
23735 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23736 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23737 | ||
23738 | # So? What about this header? | |
ac1cb8d3 VS |
23739 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23740 | yes:no: ) | |
bdcade0a MB |
23741 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23742 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23743 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23744 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23745 | ac_header_preproc=yes | |
bdcade0a | 23746 | ;; |
ac1cb8d3 | 23747 | no:yes:* ) |
bdcade0a MB |
23748 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23749 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23750 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23751 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23752 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23753 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23754 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23755 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23756 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23757 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23758 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23759 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23760 | ( |
23761 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23762 | ## ----------------------------------------- ## |
23763 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23764 | ## ----------------------------------------- ## | |
bdcade0a MB |
23765 | _ASBOX |
23766 | ) | | |
23767 | sed "s/^/$as_me: WARNING: /" >&2 | |
23768 | ;; | |
23769 | esac | |
23770 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23771 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23772 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23774 | else | |
23775 | ac_cv_header_hash_map=$ac_header_preproc | |
23776 | fi | |
23777 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23778 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23779 | ||
23780 | fi | |
23781 | if test $ac_cv_header_hash_map = yes; then | |
23782 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23783 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23784 | cat >conftest.$ac_ext <<_ACEOF | |
23785 | /* confdefs.h. */ | |
23786 | _ACEOF | |
23787 | cat confdefs.h >>conftest.$ac_ext | |
23788 | cat >>conftest.$ac_ext <<_ACEOF | |
23789 | /* end confdefs.h. */ | |
23790 | #include <hash_map> | |
23791 | #include <hash_set> | |
23792 | int | |
23793 | main () | |
23794 | { | |
23795 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23796 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23797 | ; | |
23798 | return 0; | |
23799 | } | |
23800 | _ACEOF | |
23801 | rm -f conftest.$ac_objext | |
23802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23803 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23804 | ac_status=$? |
ac1cb8d3 VS |
23805 | grep -v '^ *+' conftest.er1 >conftest.err |
23806 | rm -f conftest.er1 | |
23807 | cat conftest.err >&5 | |
bdcade0a MB |
23808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23809 | (exit $ac_status); } && | |
3f60522a JS |
23810 | { ac_try='test -z "$ac_cxx_werror_flag" |
23811 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23813 | (eval $ac_try) 2>&5 | |
23814 | ac_status=$? | |
23815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23816 | (exit $ac_status); }; } && | |
23817 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23819 | (eval $ac_try) 2>&5 | |
23820 | ac_status=$? | |
23821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23822 | (exit $ac_status); }; }; then | |
23823 | echo "$as_me:$LINENO: result: yes" >&5 | |
23824 | echo "${ECHO_T}yes" >&6 | |
23825 | cat >>confdefs.h <<\_ACEOF | |
23826 | #define HAVE_HASH_MAP 1 | |
23827 | _ACEOF | |
23828 | ||
23829 | cat >>confdefs.h <<\_ACEOF | |
23830 | #define HAVE_STD_HASH_MAP 1 | |
23831 | _ACEOF | |
23832 | ||
23833 | else | |
23834 | echo "$as_me: failed program was:" >&5 | |
23835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23836 | ||
23837 | echo "$as_me:$LINENO: result: no" >&5 | |
23838 | echo "${ECHO_T}no" >&6 | |
23839 | fi | |
ac1cb8d3 | 23840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23841 | |
23842 | fi | |
23843 | ||
23844 | ||
23845 | ||
23846 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23847 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23848 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23849 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23851 | fi | |
23852 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23853 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23854 | else | |
23855 | # Is the header compilable? | |
23856 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23857 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23858 | cat >conftest.$ac_ext <<_ACEOF | |
23859 | /* confdefs.h. */ | |
23860 | _ACEOF | |
23861 | cat confdefs.h >>conftest.$ac_ext | |
23862 | cat >>conftest.$ac_ext <<_ACEOF | |
23863 | /* end confdefs.h. */ | |
23864 | $ac_includes_default | |
23865 | #include <ext/hash_map> | |
23866 | _ACEOF | |
23867 | rm -f conftest.$ac_objext | |
23868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23869 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23870 | ac_status=$? |
ac1cb8d3 VS |
23871 | grep -v '^ *+' conftest.er1 >conftest.err |
23872 | rm -f conftest.er1 | |
23873 | cat conftest.err >&5 | |
bdcade0a MB |
23874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23875 | (exit $ac_status); } && | |
3f60522a JS |
23876 | { ac_try='test -z "$ac_cxx_werror_flag" |
23877 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23879 | (eval $ac_try) 2>&5 | |
23880 | ac_status=$? | |
23881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23882 | (exit $ac_status); }; } && | |
23883 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23885 | (eval $ac_try) 2>&5 | |
23886 | ac_status=$? | |
23887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23888 | (exit $ac_status); }; }; then | |
23889 | ac_header_compiler=yes | |
23890 | else | |
23891 | echo "$as_me: failed program was:" >&5 | |
23892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23893 | ||
23894 | ac_header_compiler=no | |
23895 | fi | |
ac1cb8d3 | 23896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23897 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23898 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23899 | ||
23900 | # Is the header present? | |
23901 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23902 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23903 | cat >conftest.$ac_ext <<_ACEOF | |
23904 | /* confdefs.h. */ | |
23905 | _ACEOF | |
23906 | cat confdefs.h >>conftest.$ac_ext | |
23907 | cat >>conftest.$ac_ext <<_ACEOF | |
23908 | /* end confdefs.h. */ | |
23909 | #include <ext/hash_map> | |
23910 | _ACEOF | |
23911 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23913 | ac_status=$? | |
23914 | grep -v '^ *+' conftest.er1 >conftest.err | |
23915 | rm -f conftest.er1 | |
23916 | cat conftest.err >&5 | |
23917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23918 | (exit $ac_status); } >/dev/null; then | |
23919 | if test -s conftest.err; then | |
23920 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23921 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23922 | else |
23923 | ac_cpp_err= | |
23924 | fi | |
23925 | else | |
23926 | ac_cpp_err=yes | |
23927 | fi | |
23928 | if test -z "$ac_cpp_err"; then | |
23929 | ac_header_preproc=yes | |
23930 | else | |
23931 | echo "$as_me: failed program was:" >&5 | |
23932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23933 | ||
23934 | ac_header_preproc=no | |
23935 | fi | |
23936 | rm -f conftest.err conftest.$ac_ext | |
23937 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23938 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23939 | ||
23940 | # So? What about this header? | |
ac1cb8d3 VS |
23941 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23942 | yes:no: ) | |
bdcade0a MB |
23943 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23944 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23945 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23946 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23947 | ac_header_preproc=yes | |
bdcade0a | 23948 | ;; |
ac1cb8d3 | 23949 | no:yes:* ) |
bdcade0a MB |
23950 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23951 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23952 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23953 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23954 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23955 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23956 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23957 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23958 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23959 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23960 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23961 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23962 | ( |
23963 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23964 | ## ----------------------------------------- ## |
23965 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23966 | ## ----------------------------------------- ## | |
bdcade0a MB |
23967 | _ASBOX |
23968 | ) | | |
23969 | sed "s/^/$as_me: WARNING: /" >&2 | |
23970 | ;; | |
23971 | esac | |
23972 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23973 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23974 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23976 | else | |
23977 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23978 | fi | |
23979 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23980 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23981 | ||
23982 | fi | |
23983 | if test $ac_cv_header_ext_hash_map = yes; then | |
23984 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23985 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23986 | cat >conftest.$ac_ext <<_ACEOF | |
23987 | /* confdefs.h. */ | |
23988 | _ACEOF | |
23989 | cat confdefs.h >>conftest.$ac_ext | |
23990 | cat >>conftest.$ac_ext <<_ACEOF | |
23991 | /* end confdefs.h. */ | |
23992 | #include <ext/hash_map> | |
23993 | #include <ext/hash_set> | |
23994 | int | |
23995 | main () | |
23996 | { | |
23997 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23998 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23999 | ; | |
24000 | return 0; | |
24001 | } | |
24002 | _ACEOF | |
24003 | rm -f conftest.$ac_objext | |
24004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24005 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 24006 | ac_status=$? |
ac1cb8d3 VS |
24007 | grep -v '^ *+' conftest.er1 >conftest.err |
24008 | rm -f conftest.er1 | |
24009 | cat conftest.err >&5 | |
bdcade0a MB |
24010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24011 | (exit $ac_status); } && | |
3f60522a JS |
24012 | { ac_try='test -z "$ac_cxx_werror_flag" |
24013 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24015 | (eval $ac_try) 2>&5 | |
24016 | ac_status=$? | |
24017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24018 | (exit $ac_status); }; } && | |
24019 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
24020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24021 | (eval $ac_try) 2>&5 | |
24022 | ac_status=$? | |
24023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24024 | (exit $ac_status); }; }; then | |
24025 | echo "$as_me:$LINENO: result: yes" >&5 | |
24026 | echo "${ECHO_T}yes" >&6 | |
24027 | cat >>confdefs.h <<\_ACEOF | |
24028 | #define HAVE_EXT_HASH_MAP 1 | |
24029 | _ACEOF | |
24030 | ||
24031 | cat >>confdefs.h <<\_ACEOF | |
24032 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
24033 | _ACEOF | |
24034 | ||
24035 | else | |
24036 | echo "$as_me: failed program was:" >&5 | |
24037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24038 | ||
24039 | echo "$as_me:$LINENO: result: no" >&5 | |
24040 | echo "${ECHO_T}no" >&6 | |
24041 | fi | |
ac1cb8d3 | 24042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24043 | |
24044 | fi | |
24045 | ||
24046 | ||
a848cd7e SC |
24047 | fi |
24048 | ||
24049 | ||
24050 | SEARCH_INCLUDE="\ | |
24051 | /usr/local/include \ | |
24052 | \ | |
24053 | /usr/Motif-2.1/include \ | |
24054 | /usr/Motif-1.2/include \ | |
24055 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
24056 | \ |
24057 | /usr/dt/include \ | |
24058 | /usr/openwin/include \ | |
24059 | \ | |
24060 | /usr/include/Xm \ | |
24061 | \ | |
24062 | /usr/X11R6/include \ | |
24063 | /usr/X11R6.4/include \ | |
24064 | /usr/X11R5/include \ | |
24065 | /usr/X11R4/include \ | |
24066 | \ | |
24067 | /usr/include/X11R6 \ | |
24068 | /usr/include/X11R5 \ | |
24069 | /usr/include/X11R4 \ | |
24070 | \ | |
24071 | /usr/local/X11R6/include \ | |
24072 | /usr/local/X11R5/include \ | |
24073 | /usr/local/X11R4/include \ | |
24074 | \ | |
24075 | /usr/local/include/X11R6 \ | |
24076 | /usr/local/include/X11R5 \ | |
24077 | /usr/local/include/X11R4 \ | |
24078 | \ | |
24079 | /usr/X11/include \ | |
24080 | /usr/include/X11 \ | |
24081 | /usr/local/X11/include \ | |
24082 | /usr/local/include/X11 \ | |
24083 | \ | |
a848cd7e | 24084 | /usr/XFree86/include/X11 \ |
e051b34e MW |
24085 | /usr/pkg/include \ |
24086 | \ | |
a848cd7e SC |
24087 | /usr/openwin/share/include" |
24088 | ||
6f9cf1e6 | 24089 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 24090 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
24091 | |
24092 | case "${host}" in | |
24093 | *-*-irix6* ) | |
24094 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
24095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24096 | else | |
24097 | ||
c687b303 VZ |
24098 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
24099 | for e in a so sl dylib dll.a; do | |
24100 | libc="$d/libc.$e" | |
24101 | if test -f $libc; then | |
24102 | save_LIBS="$LIBS" | |
24103 | LIBS="$libc" | |
24104 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
24105 | int main() { return 0; } |
24106 | _ACEOF | |
24107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24109 | (eval $ac_link) 2>conftest.er1 | |
24110 | ac_status=$? | |
24111 | grep -v '^ *+' conftest.er1 >conftest.err | |
24112 | rm -f conftest.er1 | |
24113 | cat conftest.err >&5 | |
24114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24115 | (exit $ac_status); } && | |
3f60522a JS |
24116 | { ac_try='test -z "$ac_cxx_werror_flag" |
24117 | || test ! -s conftest.err' | |
0ad5d837 VZ |
24118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24119 | (eval $ac_try) 2>&5 | |
24120 | ac_status=$? | |
24121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24122 | (exit $ac_status); }; } && | |
24123 | { ac_try='test -s conftest$ac_exeext' | |
24124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24125 | (eval $ac_try) 2>&5 | |
24126 | ac_status=$? | |
24127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24128 | (exit $ac_status); }; }; then | |
24129 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
24130 | else | |
24131 | echo "$as_me: failed program was:" >&5 | |
24132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24133 | ||
24134 | fi | |
24135 | rm -f conftest.err conftest.$ac_objext \ | |
24136 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
24137 | LIBS="$save_LIBS" |
24138 | if test "x$wx_cv_std_libpath" != "x"; then | |
24139 | break 2 | |
24140 | fi | |
24141 | fi | |
24142 | done | |
24143 | done | |
24144 | if test "x$wx_cv_std_libpath" = "x"; then | |
24145 | wx_cv_std_libpath="lib" | |
0ad5d837 | 24146 | fi |
0ad5d837 VZ |
24147 | |
24148 | ||
24149 | fi | |
6f9cf1e6 MW |
24150 | |
24151 | ;; | |
24152 | ||
24153 | *-*-solaris2* ) | |
24154 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
24155 | wx_cv_std_libpath="lib/64" | |
24156 | else | |
24157 | wx_cv_std_libpath="lib" | |
24158 | fi | |
24159 | ;; | |
24160 | ||
24161 | *-*-linux* ) | |
24162 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
24163 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
24164 | wx_cv_std_libpath="lib64" | |
24165 | else | |
24166 | wx_cv_std_libpath="lib" | |
24167 | fi | |
c687b303 VZ |
24168 | ;; |
24169 | ||
24170 | *) | |
24171 | wx_cv_std_libpath="lib"; | |
24172 | ;; | |
24173 | esac | |
0ad5d837 | 24174 | |
6f9cf1e6 MW |
24175 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
24176 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
24177 | ||
24178 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 24179 | |
3eca31dc MW |
24180 | if test "$build" != "$host" -a "$GCC" = yes; then |
24181 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
24182 | cross_root=`dirname $cross_root` | |
24183 | cross_root=`dirname $cross_root` | |
24184 | ||
24185 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
24186 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 24187 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
24188 | |
24189 | if test -z "$PKG_CONFIG_PATH"; then | |
24190 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
24191 | export PKG_CONFIG_PATH | |
24192 | fi | |
24193 | ||
24194 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
24195 | ||
24196 | ac_find_includes= | |
24197 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24198 | do | |
24199 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
24200 | ac_find_includes=$ac_dir | |
24201 | break | |
24202 | fi | |
24203 | done | |
24204 | ||
24205 | x_includes=$ac_find_includes | |
24206 | fi | |
24207 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
24208 | ||
0ad5d837 VZ |
24209 | ac_find_libraries= |
24210 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
24211 | do |
24212 | for ac_extension in a so sl dylib dll.a; do | |
24213 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
24214 | ac_find_libraries=$ac_dir | |
24215 | break 2 | |
24216 | fi | |
24217 | done | |
24218 | done | |
24219 | ||
24220 | x_libraries=$ac_find_libraries | |
24221 | fi | |
24222 | fi | |
24223 | fi | |
24224 | ||
a848cd7e SC |
24225 | |
24226 | cat >confcache <<\_ACEOF | |
24227 | # This file is a shell script that caches the results of configure | |
24228 | # tests run on this system so they can be shared between configure | |
24229 | # scripts and configure runs, see configure's option --config-cache. | |
24230 | # It is not useful on other systems. If it contains results you don't | |
24231 | # want to keep, you may remove or edit it. | |
24232 | # | |
24233 | # config.status only pays attention to the cache file if you give it | |
24234 | # the --recheck option to rerun configure. | |
24235 | # | |
24236 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
24237 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24238 | # following values. | |
24239 | ||
24240 | _ACEOF | |
24241 | ||
24242 | # The following way of writing the cache mishandles newlines in values, | |
24243 | # but we know of no workaround that is simple, portable, and efficient. | |
24244 | # So, don't put newlines in cache variables' values. | |
24245 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
24246 | # and sets the high bit in the cache file unless we assign to the vars. | |
24247 | { | |
24248 | (set) 2>&1 | | |
24249 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
24250 | *ac_space=\ *) | |
24251 | # `set' does not quote correctly, so add quotes (double-quote | |
24252 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24253 | sed -n \ | |
ac1cb8d3 VS |
24254 | "s/'/'\\\\''/g; |
24255 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
24256 | ;; |
24257 | *) | |
24258 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
24259 | sed -n \ | |
ac1cb8d3 | 24260 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
24261 | ;; |
24262 | esac; | |
24263 | } | | |
24264 | sed ' | |
24265 | t clear | |
24266 | : clear | |
24267 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
24268 | t end | |
24269 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
24270 | : end' >>confcache | |
24271 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
24272 | if test -w $cache_file; then | |
24273 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
24274 | cat confcache >$cache_file | |
24275 | else | |
24276 | echo "not updating unwritable cache $cache_file" | |
24277 | fi | |
24278 | fi | |
24279 | rm -f confcache | |
24280 | ||
24281 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
24282 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
24283 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
24284 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
24285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24286 | else | |
24287 | ||
24288 | cat >conftest.$ac_ext <<_ACEOF | |
24289 | /* confdefs.h. */ | |
24290 | _ACEOF | |
24291 | cat confdefs.h >>conftest.$ac_ext | |
24292 | cat >>conftest.$ac_ext <<_ACEOF | |
24293 | /* end confdefs.h. */ | |
24294 | #include <features.h> | |
24295 | int | |
24296 | main () | |
24297 | { | |
24298 | ||
24299 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 24300 | not glibc 2.1 |
a848cd7e SC |
24301 | #endif |
24302 | ||
24303 | ; | |
24304 | return 0; | |
24305 | } | |
24306 | _ACEOF | |
24307 | rm -f conftest.$ac_objext | |
24308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24309 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24310 | ac_status=$? |
ac1cb8d3 VS |
24311 | grep -v '^ *+' conftest.er1 >conftest.err |
24312 | rm -f conftest.er1 | |
24313 | cat conftest.err >&5 | |
a848cd7e SC |
24314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24315 | (exit $ac_status); } && | |
3f60522a JS |
24316 | { ac_try='test -z "$ac_cxx_werror_flag" |
24317 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24319 | (eval $ac_try) 2>&5 | |
24320 | ac_status=$? | |
24321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24322 | (exit $ac_status); }; } && | |
24323 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24325 | (eval $ac_try) 2>&5 | |
24326 | ac_status=$? | |
24327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24328 | (exit $ac_status); }; }; then | |
24329 | ||
24330 | wx_cv_lib_glibc21=yes | |
24331 | ||
24332 | else | |
24333 | echo "$as_me: failed program was:" >&5 | |
24334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24335 | ||
24336 | ||
24337 | wx_cv_lib_glibc21=no | |
24338 | ||
24339 | ||
24340 | fi | |
ac1cb8d3 | 24341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24342 | |
24343 | fi | |
24344 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
24345 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
24346 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
24347 | cat >>confdefs.h <<\_ACEOF | |
24348 | #define wxHAVE_GLIBC2 1 | |
24349 | _ACEOF | |
24350 | ||
24351 | fi | |
24352 | fi | |
24353 | ||
24354 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
24355 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
24356 | cat >>confdefs.h <<\_ACEOF | |
24357 | #define _GNU_SOURCE 1 | |
24358 | _ACEOF | |
24359 | ||
24360 | fi | |
24361 | fi | |
24362 | ||
5d7b7554 VZ |
24363 | have_cos=0 |
24364 | have_floor=0 | |
a848cd7e | 24365 | |
5d7b7554 VZ |
24366 | for ac_func in cos |
24367 | do | |
24368 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24369 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24370 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24371 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a848cd7e | 24372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 24373 | else |
5d7b7554 | 24374 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
24375 | /* confdefs.h. */ |
24376 | _ACEOF | |
24377 | cat confdefs.h >>conftest.$ac_ext | |
24378 | cat >>conftest.$ac_ext <<_ACEOF | |
24379 | /* end confdefs.h. */ | |
5d7b7554 VZ |
24380 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24381 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24382 | #define $ac_func innocuous_$ac_func | |
24383 | ||
24384 | /* System header to define __stub macros and hopefully few prototypes, | |
24385 | which can conflict with char $ac_func (); below. | |
24386 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24387 | <limits.h> exists even on freestanding compilers. */ | |
24388 | ||
24389 | #ifdef __STDC__ | |
24390 | # include <limits.h> | |
24391 | #else | |
24392 | # include <assert.h> | |
24393 | #endif | |
24394 | ||
24395 | #undef $ac_func | |
24396 | ||
24397 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24398 | #ifdef __cplusplus | |
24399 | extern "C" | |
24400 | { | |
24401 | #endif | |
24402 | /* We use char because int might match the return type of a gcc2 | |
24403 | builtin and then its argument prototype would still apply. */ | |
24404 | char $ac_func (); | |
24405 | /* The GNU C library defines this for functions which it implements | |
24406 | to always fail with ENOSYS. Some functions are actually named | |
24407 | something starting with __ and the normal name is an alias. */ | |
24408 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24409 | choke me | |
24410 | #else | |
24411 | char (*f) () = $ac_func; | |
24412 | #endif | |
24413 | #ifdef __cplusplus | |
24414 | } | |
24415 | #endif | |
24416 | ||
24417 | int | |
24418 | main () | |
24419 | { | |
24420 | return f != $ac_func; | |
24421 | ; | |
24422 | return 0; | |
24423 | } | |
a848cd7e | 24424 | _ACEOF |
5d7b7554 VZ |
24425 | rm -f conftest.$ac_objext conftest$ac_exeext |
24426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24427 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24428 | ac_status=$? |
ac1cb8d3 VS |
24429 | grep -v '^ *+' conftest.er1 >conftest.err |
24430 | rm -f conftest.er1 | |
24431 | cat conftest.err >&5 | |
a848cd7e SC |
24432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24433 | (exit $ac_status); } && | |
3f60522a JS |
24434 | { ac_try='test -z "$ac_cxx_werror_flag" |
24435 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24437 | (eval $ac_try) 2>&5 | |
24438 | ac_status=$? | |
24439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24440 | (exit $ac_status); }; } && | |
5d7b7554 | 24441 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24443 | (eval $ac_try) 2>&5 | |
24444 | ac_status=$? | |
24445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24446 | (exit $ac_status); }; }; then | |
5d7b7554 | 24447 | eval "$as_ac_var=yes" |
a848cd7e SC |
24448 | else |
24449 | echo "$as_me: failed program was:" >&5 | |
24450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24451 | ||
5d7b7554 | 24452 | eval "$as_ac_var=no" |
a848cd7e | 24453 | fi |
5d7b7554 VZ |
24454 | rm -f conftest.err conftest.$ac_objext \ |
24455 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 24456 | fi |
5d7b7554 VZ |
24457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
24458 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24459 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24460 | cat >>confdefs.h <<_ACEOF | |
24461 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24462 | _ACEOF | |
24463 | have_cos=1 | |
a848cd7e | 24464 | fi |
5d7b7554 | 24465 | done |
a848cd7e | 24466 | |
ab0f0edd | 24467 | |
5d7b7554 | 24468 | for ac_func in floor |
a848cd7e SC |
24469 | do |
24470 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24471 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24472 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24473 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24475 | else | |
24476 | cat >conftest.$ac_ext <<_ACEOF | |
24477 | /* confdefs.h. */ | |
24478 | _ACEOF | |
24479 | cat confdefs.h >>conftest.$ac_ext | |
24480 | cat >>conftest.$ac_ext <<_ACEOF | |
24481 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24482 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24483 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24484 | #define $ac_func innocuous_$ac_func | |
24485 | ||
a848cd7e SC |
24486 | /* System header to define __stub macros and hopefully few prototypes, |
24487 | which can conflict with char $ac_func (); below. | |
24488 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24489 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24490 | |
a848cd7e SC |
24491 | #ifdef __STDC__ |
24492 | # include <limits.h> | |
24493 | #else | |
24494 | # include <assert.h> | |
24495 | #endif | |
ac1cb8d3 VS |
24496 | |
24497 | #undef $ac_func | |
24498 | ||
a848cd7e SC |
24499 | /* Override any gcc2 internal prototype to avoid an error. */ |
24500 | #ifdef __cplusplus | |
24501 | extern "C" | |
24502 | { | |
24503 | #endif | |
24504 | /* We use char because int might match the return type of a gcc2 | |
24505 | builtin and then its argument prototype would still apply. */ | |
24506 | char $ac_func (); | |
24507 | /* The GNU C library defines this for functions which it implements | |
24508 | to always fail with ENOSYS. Some functions are actually named | |
24509 | something starting with __ and the normal name is an alias. */ | |
24510 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24511 | choke me | |
24512 | #else | |
24513 | char (*f) () = $ac_func; | |
24514 | #endif | |
24515 | #ifdef __cplusplus | |
24516 | } | |
24517 | #endif | |
24518 | ||
24519 | int | |
24520 | main () | |
24521 | { | |
24522 | return f != $ac_func; | |
24523 | ; | |
24524 | return 0; | |
24525 | } | |
24526 | _ACEOF | |
24527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24529 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24530 | ac_status=$? |
ac1cb8d3 VS |
24531 | grep -v '^ *+' conftest.er1 >conftest.err |
24532 | rm -f conftest.er1 | |
24533 | cat conftest.err >&5 | |
a848cd7e SC |
24534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24535 | (exit $ac_status); } && | |
3f60522a JS |
24536 | { ac_try='test -z "$ac_cxx_werror_flag" |
24537 | || test ! -s conftest.err' | |
5d7b7554 VZ |
24538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24539 | (eval $ac_try) 2>&5 | |
24540 | ac_status=$? | |
24541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24542 | (exit $ac_status); }; } && | |
24543 | { ac_try='test -s conftest$ac_exeext' | |
24544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24545 | (eval $ac_try) 2>&5 | |
24546 | ac_status=$? | |
24547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24548 | (exit $ac_status); }; }; then | |
24549 | eval "$as_ac_var=yes" | |
24550 | else | |
24551 | echo "$as_me: failed program was:" >&5 | |
24552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24553 | ||
24554 | eval "$as_ac_var=no" | |
24555 | fi | |
24556 | rm -f conftest.err conftest.$ac_objext \ | |
24557 | conftest$ac_exeext conftest.$ac_ext | |
24558 | fi | |
24559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24560 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24561 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24562 | cat >>confdefs.h <<_ACEOF | |
24563 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24564 | _ACEOF | |
24565 | have_floor=1 | |
24566 | fi | |
24567 | done | |
24568 | ||
24569 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
24570 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
24571 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
24572 | echo "$as_me:$LINENO: result: yes" >&5 | |
24573 | echo "${ECHO_T}yes" >&6 | |
24574 | else | |
24575 | echo "$as_me:$LINENO: result: no" >&5 | |
24576 | echo "${ECHO_T}no" >&6 | |
24577 | LIBS="$LIBS -lm" | |
24578 | # use different functions to avoid configure caching | |
24579 | have_sin=0 | |
24580 | have_ceil=0 | |
24581 | ||
24582 | for ac_func in sin | |
24583 | do | |
24584 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24585 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24586 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24587 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24589 | else | |
24590 | cat >conftest.$ac_ext <<_ACEOF | |
24591 | /* confdefs.h. */ | |
24592 | _ACEOF | |
24593 | cat confdefs.h >>conftest.$ac_ext | |
24594 | cat >>conftest.$ac_ext <<_ACEOF | |
24595 | /* end confdefs.h. */ | |
24596 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24597 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24598 | #define $ac_func innocuous_$ac_func | |
24599 | ||
24600 | /* System header to define __stub macros and hopefully few prototypes, | |
24601 | which can conflict with char $ac_func (); below. | |
24602 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24603 | <limits.h> exists even on freestanding compilers. */ | |
24604 | ||
24605 | #ifdef __STDC__ | |
24606 | # include <limits.h> | |
24607 | #else | |
24608 | # include <assert.h> | |
24609 | #endif | |
24610 | ||
24611 | #undef $ac_func | |
24612 | ||
24613 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24614 | #ifdef __cplusplus | |
24615 | extern "C" | |
24616 | { | |
24617 | #endif | |
24618 | /* We use char because int might match the return type of a gcc2 | |
24619 | builtin and then its argument prototype would still apply. */ | |
24620 | char $ac_func (); | |
24621 | /* The GNU C library defines this for functions which it implements | |
24622 | to always fail with ENOSYS. Some functions are actually named | |
24623 | something starting with __ and the normal name is an alias. */ | |
24624 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24625 | choke me | |
24626 | #else | |
24627 | char (*f) () = $ac_func; | |
24628 | #endif | |
24629 | #ifdef __cplusplus | |
24630 | } | |
24631 | #endif | |
24632 | ||
24633 | int | |
24634 | main () | |
24635 | { | |
24636 | return f != $ac_func; | |
24637 | ; | |
24638 | return 0; | |
24639 | } | |
24640 | _ACEOF | |
24641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24643 | (eval $ac_link) 2>conftest.er1 | |
24644 | ac_status=$? | |
24645 | grep -v '^ *+' conftest.er1 >conftest.err | |
24646 | rm -f conftest.er1 | |
24647 | cat conftest.err >&5 | |
24648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24649 | (exit $ac_status); } && | |
3f60522a JS |
24650 | { ac_try='test -z "$ac_cxx_werror_flag" |
24651 | || test ! -s conftest.err' | |
5d7b7554 VZ |
24652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24653 | (eval $ac_try) 2>&5 | |
24654 | ac_status=$? | |
24655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24656 | (exit $ac_status); }; } && | |
24657 | { ac_try='test -s conftest$ac_exeext' | |
24658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24659 | (eval $ac_try) 2>&5 | |
24660 | ac_status=$? | |
24661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24662 | (exit $ac_status); }; }; then | |
24663 | eval "$as_ac_var=yes" | |
24664 | else | |
24665 | echo "$as_me: failed program was:" >&5 | |
24666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24667 | ||
24668 | eval "$as_ac_var=no" | |
24669 | fi | |
24670 | rm -f conftest.err conftest.$ac_objext \ | |
24671 | conftest$ac_exeext conftest.$ac_ext | |
24672 | fi | |
24673 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24674 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24675 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24676 | cat >>confdefs.h <<_ACEOF | |
24677 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24678 | _ACEOF | |
24679 | have_sin=1 | |
24680 | fi | |
24681 | done | |
24682 | ||
24683 | ||
24684 | for ac_func in ceil | |
24685 | do | |
24686 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24687 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24688 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24689 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24691 | else | |
24692 | cat >conftest.$ac_ext <<_ACEOF | |
24693 | /* confdefs.h. */ | |
24694 | _ACEOF | |
24695 | cat confdefs.h >>conftest.$ac_ext | |
24696 | cat >>conftest.$ac_ext <<_ACEOF | |
24697 | /* end confdefs.h. */ | |
24698 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24699 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24700 | #define $ac_func innocuous_$ac_func | |
24701 | ||
24702 | /* System header to define __stub macros and hopefully few prototypes, | |
24703 | which can conflict with char $ac_func (); below. | |
24704 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24705 | <limits.h> exists even on freestanding compilers. */ | |
24706 | ||
24707 | #ifdef __STDC__ | |
24708 | # include <limits.h> | |
24709 | #else | |
24710 | # include <assert.h> | |
24711 | #endif | |
24712 | ||
24713 | #undef $ac_func | |
24714 | ||
24715 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24716 | #ifdef __cplusplus | |
24717 | extern "C" | |
24718 | { | |
24719 | #endif | |
24720 | /* We use char because int might match the return type of a gcc2 | |
24721 | builtin and then its argument prototype would still apply. */ | |
24722 | char $ac_func (); | |
24723 | /* The GNU C library defines this for functions which it implements | |
24724 | to always fail with ENOSYS. Some functions are actually named | |
24725 | something starting with __ and the normal name is an alias. */ | |
24726 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24727 | choke me | |
24728 | #else | |
24729 | char (*f) () = $ac_func; | |
24730 | #endif | |
24731 | #ifdef __cplusplus | |
24732 | } | |
24733 | #endif | |
24734 | ||
24735 | int | |
24736 | main () | |
24737 | { | |
24738 | return f != $ac_func; | |
24739 | ; | |
24740 | return 0; | |
24741 | } | |
24742 | _ACEOF | |
24743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24745 | (eval $ac_link) 2>conftest.er1 | |
24746 | ac_status=$? | |
24747 | grep -v '^ *+' conftest.er1 >conftest.err | |
24748 | rm -f conftest.er1 | |
24749 | cat conftest.err >&5 | |
24750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24751 | (exit $ac_status); } && | |
3f60522a JS |
24752 | { ac_try='test -z "$ac_cxx_werror_flag" |
24753 | || test ! -s conftest.err' | |
5d7b7554 VZ |
24754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24755 | (eval $ac_try) 2>&5 | |
24756 | ac_status=$? | |
24757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24758 | (exit $ac_status); }; } && | |
24759 | { ac_try='test -s conftest$ac_exeext' | |
24760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24761 | (eval $ac_try) 2>&5 | |
24762 | ac_status=$? | |
24763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24764 | (exit $ac_status); }; }; then | |
24765 | eval "$as_ac_var=yes" | |
24766 | else | |
24767 | echo "$as_me: failed program was:" >&5 | |
24768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24769 | ||
24770 | eval "$as_ac_var=no" | |
24771 | fi | |
24772 | rm -f conftest.err conftest.$ac_objext \ | |
24773 | conftest$ac_exeext conftest.$ac_ext | |
24774 | fi | |
24775 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24776 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24777 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24778 | cat >>confdefs.h <<_ACEOF | |
24779 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24780 | _ACEOF | |
24781 | have_ceil=1 | |
24782 | fi | |
24783 | done | |
24784 | ||
24785 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
24786 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
24787 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
24788 | echo "$as_me:$LINENO: result: yes" >&5 | |
24789 | echo "${ECHO_T}yes" >&6 | |
24790 | else | |
24791 | echo "$as_me:$LINENO: result: no" >&5 | |
24792 | echo "${ECHO_T}no" >&6 | |
24793 | # not sure we should warn the user, crash, etc. | |
24794 | fi | |
24795 | fi | |
24796 | ||
24797 | ||
24798 | ||
24799 | if test "$wxUSE_REGEX" != "no"; then | |
24800 | cat >>confdefs.h <<\_ACEOF | |
24801 | #define wxUSE_REGEX 1 | |
24802 | _ACEOF | |
24803 | ||
24804 | ||
24805 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
24806 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
24807 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
24808 | wxUSE_REGEX=builtin | |
24809 | fi | |
24810 | ||
24811 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
24812 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24813 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24814 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24815 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24817 | fi | |
24818 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24819 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24820 | else | |
24821 | # Is the header compilable? | |
24822 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
24823 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
24824 | cat >conftest.$ac_ext <<_ACEOF | |
24825 | /* confdefs.h. */ | |
24826 | _ACEOF | |
24827 | cat confdefs.h >>conftest.$ac_ext | |
24828 | cat >>conftest.$ac_ext <<_ACEOF | |
24829 | /* end confdefs.h. */ | |
24830 | $ac_includes_default | |
24831 | #include <regex.h> | |
24832 | _ACEOF | |
24833 | rm -f conftest.$ac_objext | |
24834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24835 | (eval $ac_compile) 2>conftest.er1 | |
24836 | ac_status=$? | |
24837 | grep -v '^ *+' conftest.er1 >conftest.err | |
24838 | rm -f conftest.er1 | |
24839 | cat conftest.err >&5 | |
24840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24841 | (exit $ac_status); } && | |
3f60522a JS |
24842 | { ac_try='test -z "$ac_cxx_werror_flag" |
24843 | || test ! -s conftest.err' | |
5d7b7554 VZ |
24844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24845 | (eval $ac_try) 2>&5 | |
24846 | ac_status=$? | |
24847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24848 | (exit $ac_status); }; } && | |
24849 | { ac_try='test -s conftest.$ac_objext' | |
24850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24851 | (eval $ac_try) 2>&5 | |
24852 | ac_status=$? | |
24853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24854 | (exit $ac_status); }; }; then | |
24855 | ac_header_compiler=yes | |
24856 | else | |
24857 | echo "$as_me: failed program was:" >&5 | |
24858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24859 | ||
24860 | ac_header_compiler=no | |
24861 | fi | |
24862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24863 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24864 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24865 | ||
24866 | # Is the header present? | |
24867 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
24868 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
24869 | cat >conftest.$ac_ext <<_ACEOF | |
24870 | /* confdefs.h. */ | |
24871 | _ACEOF | |
24872 | cat confdefs.h >>conftest.$ac_ext | |
24873 | cat >>conftest.$ac_ext <<_ACEOF | |
24874 | /* end confdefs.h. */ | |
24875 | #include <regex.h> | |
24876 | _ACEOF | |
24877 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24878 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24879 | ac_status=$? | |
24880 | grep -v '^ *+' conftest.er1 >conftest.err | |
24881 | rm -f conftest.er1 | |
24882 | cat conftest.err >&5 | |
24883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24884 | (exit $ac_status); } >/dev/null; then | |
24885 | if test -s conftest.err; then | |
24886 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
24887 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
24888 | else | |
24889 | ac_cpp_err= | |
24890 | fi | |
24891 | else | |
24892 | ac_cpp_err=yes | |
24893 | fi | |
24894 | if test -z "$ac_cpp_err"; then | |
24895 | ac_header_preproc=yes | |
24896 | else | |
24897 | echo "$as_me: failed program was:" >&5 | |
24898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24899 | ||
24900 | ac_header_preproc=no | |
24901 | fi | |
24902 | rm -f conftest.err conftest.$ac_ext | |
24903 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24904 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24905 | ||
24906 | # So? What about this header? | |
24907 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
24908 | yes:no: ) | |
24909 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24910 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24911 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 | |
24912 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
24913 | ac_header_preproc=yes | |
24914 | ;; | |
24915 | no:yes:* ) | |
24916 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
24917 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
24918 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
24919 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
24920 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
24921 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
24922 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24923 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24924 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
24925 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
24926 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 | |
24927 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
24928 | ( | |
24929 | cat <<\_ASBOX | |
24930 | ## ----------------------------------------- ## | |
24931 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24932 | ## ----------------------------------------- ## | |
24933 | _ASBOX | |
24934 | ) | | |
24935 | sed "s/^/$as_me: WARNING: /" >&2 | |
24936 | ;; | |
24937 | esac | |
24938 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24939 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24940 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24942 | else | |
24943 | ac_cv_header_regex_h=$ac_header_preproc | |
24944 | fi | |
24945 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24946 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24947 | ||
24948 | fi | |
24949 | if test $ac_cv_header_regex_h = yes; then | |
24950 | ||
24951 | ||
24952 | for ac_func in regcomp re_search | |
24953 | do | |
24954 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24955 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24956 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24957 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24959 | else | |
24960 | cat >conftest.$ac_ext <<_ACEOF | |
24961 | /* confdefs.h. */ | |
24962 | _ACEOF | |
24963 | cat confdefs.h >>conftest.$ac_ext | |
24964 | cat >>conftest.$ac_ext <<_ACEOF | |
24965 | /* end confdefs.h. */ | |
24966 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24968 | #define $ac_func innocuous_$ac_func | |
24969 | ||
24970 | /* System header to define __stub macros and hopefully few prototypes, | |
24971 | which can conflict with char $ac_func (); below. | |
24972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24973 | <limits.h> exists even on freestanding compilers. */ | |
24974 | ||
24975 | #ifdef __STDC__ | |
24976 | # include <limits.h> | |
24977 | #else | |
24978 | # include <assert.h> | |
24979 | #endif | |
24980 | ||
24981 | #undef $ac_func | |
24982 | ||
24983 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24984 | #ifdef __cplusplus | |
24985 | extern "C" | |
24986 | { | |
24987 | #endif | |
24988 | /* We use char because int might match the return type of a gcc2 | |
24989 | builtin and then its argument prototype would still apply. */ | |
24990 | char $ac_func (); | |
24991 | /* The GNU C library defines this for functions which it implements | |
24992 | to always fail with ENOSYS. Some functions are actually named | |
24993 | something starting with __ and the normal name is an alias. */ | |
24994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24995 | choke me | |
24996 | #else | |
24997 | char (*f) () = $ac_func; | |
24998 | #endif | |
24999 | #ifdef __cplusplus | |
25000 | } | |
25001 | #endif | |
25002 | ||
25003 | int | |
25004 | main () | |
25005 | { | |
25006 | return f != $ac_func; | |
25007 | ; | |
25008 | return 0; | |
25009 | } | |
25010 | _ACEOF | |
25011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25013 | (eval $ac_link) 2>conftest.er1 | |
25014 | ac_status=$? | |
25015 | grep -v '^ *+' conftest.er1 >conftest.err | |
25016 | rm -f conftest.er1 | |
25017 | cat conftest.err >&5 | |
25018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25019 | (exit $ac_status); } && | |
3f60522a JS |
25020 | { ac_try='test -z "$ac_cxx_werror_flag" |
25021 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25023 | (eval $ac_try) 2>&5 | |
25024 | ac_status=$? | |
25025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25026 | (exit $ac_status); }; } && | |
25027 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25029 | (eval $ac_try) 2>&5 | |
25030 | ac_status=$? | |
25031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25032 | (exit $ac_status); }; }; then | |
25033 | eval "$as_ac_var=yes" | |
25034 | else | |
25035 | echo "$as_me: failed program was:" >&5 | |
25036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25037 | ||
25038 | eval "$as_ac_var=no" | |
25039 | fi | |
ac1cb8d3 VS |
25040 | rm -f conftest.err conftest.$ac_objext \ |
25041 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25042 | fi |
25043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25044 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25045 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25046 | cat >>confdefs.h <<_ACEOF | |
25047 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25048 | _ACEOF | |
25049 | ||
25050 | fi | |
25051 | done | |
25052 | ||
25053 | fi | |
25054 | ||
25055 | ||
25056 | ||
25057 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
25058 | if test "$wxUSE_REGEX" = "sys" ; then | |
25059 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
25060 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
25061 | { (exit 1); exit 1; }; } | |
25062 | else | |
25063 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
25064 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
25065 | wxUSE_REGEX=builtin | |
25066 | fi | |
25067 | else | |
25068 | wxUSE_REGEX=sys | |
25069 | cat >>confdefs.h <<\_ACEOF | |
25070 | #define WX_NO_REGEX_ADVANCED 1 | |
25071 | _ACEOF | |
25072 | ||
25073 | fi | |
25074 | fi | |
25075 | fi | |
25076 | ||
25077 | ||
25078 | ZLIB_LINK= | |
25079 | if test "$wxUSE_ZLIB" != "no" ; then | |
25080 | cat >>confdefs.h <<\_ACEOF | |
25081 | #define wxUSE_ZLIB 1 | |
25082 | _ACEOF | |
25083 | ||
25084 | ||
25085 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
25086 | if test "$USE_DARWIN" = 1; then | |
25087 | system_zlib_h_ok="yes" | |
25088 | else | |
25089 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
25090 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
25091 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25093 | else | |
25094 | if test "$cross_compiling" = yes; then | |
25095 | unset ac_cv_header_zlib_h | |
25096 | ||
25097 | else | |
25098 | cat >conftest.$ac_ext <<_ACEOF | |
25099 | /* confdefs.h. */ | |
25100 | _ACEOF | |
25101 | cat confdefs.h >>conftest.$ac_ext | |
25102 | cat >>conftest.$ac_ext <<_ACEOF | |
25103 | /* end confdefs.h. */ | |
25104 | ||
25105 | #include <zlib.h> | |
25106 | #include <stdio.h> | |
25107 | ||
25108 | int main() | |
25109 | { | |
25110 | FILE *f=fopen("conftestval", "w"); | |
25111 | if (!f) exit(1); | |
25112 | fprintf(f, "%s", | |
25113 | ZLIB_VERSION[0] == '1' && | |
25114 | (ZLIB_VERSION[2] > '1' || | |
25115 | (ZLIB_VERSION[2] == '1' && | |
25116 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
25117 | exit(0); | |
25118 | } | |
25119 | ||
25120 | _ACEOF | |
25121 | rm -f conftest$ac_exeext | |
25122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25123 | (eval $ac_link) 2>&5 | |
25124 | ac_status=$? | |
25125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25126 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25128 | (eval $ac_try) 2>&5 | |
25129 | ac_status=$? | |
25130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25131 | (exit $ac_status); }; }; then | |
25132 | ac_cv_header_zlib_h=`cat conftestval` | |
25133 | else | |
25134 | echo "$as_me: program exited with status $ac_status" >&5 | |
25135 | echo "$as_me: failed program was:" >&5 | |
25136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25137 | ||
25138 | ( exit $ac_status ) | |
25139 | ac_cv_header_zlib_h=no | |
25140 | fi | |
ac1cb8d3 | 25141 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25142 | fi |
25143 | ||
25144 | fi | |
25145 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25146 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25147 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25148 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
25149 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
25150 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25152 | fi | |
25153 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25154 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25155 | else | |
25156 | # Is the header compilable? | |
25157 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
25158 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
25159 | cat >conftest.$ac_ext <<_ACEOF | |
25160 | /* confdefs.h. */ | |
25161 | _ACEOF | |
25162 | cat confdefs.h >>conftest.$ac_ext | |
25163 | cat >>conftest.$ac_ext <<_ACEOF | |
25164 | /* end confdefs.h. */ | |
25165 | $ac_includes_default | |
25166 | #include <zlib.h> | |
25167 | _ACEOF | |
25168 | rm -f conftest.$ac_objext | |
25169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25170 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25171 | ac_status=$? |
ac1cb8d3 VS |
25172 | grep -v '^ *+' conftest.er1 >conftest.err |
25173 | rm -f conftest.er1 | |
25174 | cat conftest.err >&5 | |
a848cd7e SC |
25175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25176 | (exit $ac_status); } && | |
3f60522a JS |
25177 | { ac_try='test -z "$ac_cxx_werror_flag" |
25178 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25180 | (eval $ac_try) 2>&5 | |
25181 | ac_status=$? | |
25182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25183 | (exit $ac_status); }; } && | |
25184 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25186 | (eval $ac_try) 2>&5 | |
25187 | ac_status=$? | |
25188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25189 | (exit $ac_status); }; }; then | |
25190 | ac_header_compiler=yes | |
25191 | else | |
25192 | echo "$as_me: failed program was:" >&5 | |
25193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25194 | ||
25195 | ac_header_compiler=no | |
25196 | fi | |
ac1cb8d3 | 25197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25198 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25199 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25200 | ||
25201 | # Is the header present? | |
25202 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
25203 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
25204 | cat >conftest.$ac_ext <<_ACEOF | |
25205 | /* confdefs.h. */ | |
25206 | _ACEOF | |
25207 | cat confdefs.h >>conftest.$ac_ext | |
25208 | cat >>conftest.$ac_ext <<_ACEOF | |
25209 | /* end confdefs.h. */ | |
25210 | #include <zlib.h> | |
25211 | _ACEOF | |
25212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25214 | ac_status=$? | |
25215 | grep -v '^ *+' conftest.er1 >conftest.err | |
25216 | rm -f conftest.er1 | |
25217 | cat conftest.err >&5 | |
25218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25219 | (exit $ac_status); } >/dev/null; then | |
25220 | if test -s conftest.err; then | |
5d7b7554 VZ |
25221 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25222 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25223 | else |
25224 | ac_cpp_err= | |
25225 | fi | |
25226 | else | |
25227 | ac_cpp_err=yes | |
25228 | fi | |
25229 | if test -z "$ac_cpp_err"; then | |
25230 | ac_header_preproc=yes | |
25231 | else | |
25232 | echo "$as_me: failed program was:" >&5 | |
25233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25234 | ||
25235 | ac_header_preproc=no | |
25236 | fi | |
25237 | rm -f conftest.err conftest.$ac_ext | |
25238 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25239 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25240 | ||
25241 | # So? What about this header? | |
5d7b7554 | 25242 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25243 | yes:no: ) |
a848cd7e SC |
25244 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25245 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25246 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
25247 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
25248 | ac_header_preproc=yes | |
a848cd7e | 25249 | ;; |
ac1cb8d3 | 25250 | no:yes:* ) |
a848cd7e SC |
25251 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
25252 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25253 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
25254 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
25255 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
25256 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
25257 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25258 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25259 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
25260 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25261 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
25262 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25263 | ( |
25264 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25265 | ## ----------------------------------------- ## |
25266 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25267 | ## ----------------------------------------- ## | |
a848cd7e SC |
25268 | _ASBOX |
25269 | ) | | |
25270 | sed "s/^/$as_me: WARNING: /" >&2 | |
25271 | ;; | |
25272 | esac | |
25273 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
25274 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
25275 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25277 | else | |
25278 | ac_cv_header_zlib_h=$ac_header_preproc | |
25279 | fi | |
25280 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25281 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25282 | ||
25283 | fi | |
25284 | ||
25285 | ||
25286 | ||
25287 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
25288 | fi | |
25289 | ||
25290 | if test "$system_zlib_h_ok" = "yes"; then | |
25291 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
25292 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
25293 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
25294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25295 | else | |
25296 | ac_check_lib_save_LIBS=$LIBS | |
25297 | LIBS="-lz $LIBS" | |
25298 | cat >conftest.$ac_ext <<_ACEOF | |
25299 | /* confdefs.h. */ | |
25300 | _ACEOF | |
25301 | cat confdefs.h >>conftest.$ac_ext | |
25302 | cat >>conftest.$ac_ext <<_ACEOF | |
25303 | /* end confdefs.h. */ | |
25304 | ||
25305 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25306 | #ifdef __cplusplus | |
25307 | extern "C" | |
25308 | #endif | |
25309 | /* We use char because int might match the return type of a gcc2 | |
25310 | builtin and then its argument prototype would still apply. */ | |
25311 | char deflate (); | |
25312 | int | |
25313 | main () | |
25314 | { | |
25315 | deflate (); | |
25316 | ; | |
25317 | return 0; | |
25318 | } | |
25319 | _ACEOF | |
25320 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25322 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25323 | ac_status=$? |
ac1cb8d3 VS |
25324 | grep -v '^ *+' conftest.er1 >conftest.err |
25325 | rm -f conftest.er1 | |
25326 | cat conftest.err >&5 | |
a848cd7e SC |
25327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25328 | (exit $ac_status); } && | |
3f60522a JS |
25329 | { ac_try='test -z "$ac_cxx_werror_flag" |
25330 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25332 | (eval $ac_try) 2>&5 | |
25333 | ac_status=$? | |
25334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25335 | (exit $ac_status); }; } && | |
25336 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25338 | (eval $ac_try) 2>&5 | |
25339 | ac_status=$? | |
25340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25341 | (exit $ac_status); }; }; then | |
25342 | ac_cv_lib_z_deflate=yes | |
25343 | else | |
25344 | echo "$as_me: failed program was:" >&5 | |
25345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25346 | ||
25347 | ac_cv_lib_z_deflate=no | |
25348 | fi | |
ac1cb8d3 VS |
25349 | rm -f conftest.err conftest.$ac_objext \ |
25350 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25351 | LIBS=$ac_check_lib_save_LIBS |
25352 | fi | |
25353 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
25354 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
25355 | if test $ac_cv_lib_z_deflate = yes; then | |
25356 | ZLIB_LINK=" -lz" | |
25357 | fi | |
25358 | ||
25359 | fi | |
25360 | ||
25361 | if test "x$ZLIB_LINK" = "x" ; then | |
25362 | if test "$wxUSE_ZLIB" = "sys" ; then | |
25363 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
25364 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
25365 | { (exit 1); exit 1; }; } | |
25366 | else | |
25367 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
25368 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
25369 | wxUSE_ZLIB=builtin | |
25370 | fi | |
25371 | else | |
25372 | wxUSE_ZLIB=sys | |
25373 | fi | |
25374 | fi | |
25375 | fi | |
25376 | ||
25377 | ||
25378 | PNG_LINK= | |
25379 | if test "$wxUSE_LIBPNG" != "no" ; then | |
25380 | cat >>confdefs.h <<\_ACEOF | |
25381 | #define wxUSE_LIBPNG 1 | |
25382 | _ACEOF | |
25383 | ||
25384 | ||
25385 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
25386 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
25387 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
25388 | wxUSE_LIBPNG=sys | |
25389 | fi | |
25390 | ||
25391 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
25392 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
25393 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
25394 | wxUSE_LIBPNG=builtin | |
25395 | fi | |
25396 | ||
25397 | if test "$wxUSE_MGL" != 1 ; then | |
25398 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
25399 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
25400 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
25401 | if test "${ac_cv_header_png_h+set}" = set; then | |
25402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25403 | else | |
25404 | if test "$cross_compiling" = yes; then | |
25405 | unset ac_cv_header_png_h | |
25406 | ||
25407 | else | |
25408 | cat >conftest.$ac_ext <<_ACEOF | |
25409 | /* confdefs.h. */ | |
25410 | _ACEOF | |
25411 | cat confdefs.h >>conftest.$ac_ext | |
25412 | cat >>conftest.$ac_ext <<_ACEOF | |
25413 | /* end confdefs.h. */ | |
25414 | ||
25415 | #include <png.h> | |
25416 | #include <stdio.h> | |
25417 | ||
25418 | int main() | |
25419 | { | |
25420 | FILE *f=fopen("conftestval", "w"); | |
25421 | if (!f) exit(1); | |
25422 | fprintf(f, "%s", | |
25423 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
25424 | exit(0); | |
25425 | } | |
25426 | ||
25427 | _ACEOF | |
25428 | rm -f conftest$ac_exeext | |
25429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25430 | (eval $ac_link) 2>&5 | |
25431 | ac_status=$? | |
25432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25433 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25435 | (eval $ac_try) 2>&5 | |
25436 | ac_status=$? | |
25437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25438 | (exit $ac_status); }; }; then | |
25439 | ac_cv_header_png_h=`cat conftestval` | |
25440 | else | |
25441 | echo "$as_me: program exited with status $ac_status" >&5 | |
25442 | echo "$as_me: failed program was:" >&5 | |
25443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25444 | ||
25445 | ( exit $ac_status ) | |
25446 | ac_cv_header_png_h=no | |
25447 | fi | |
ac1cb8d3 | 25448 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25449 | fi |
25450 | ||
25451 | fi | |
25452 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25453 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25454 | if test "${ac_cv_header_png_h+set}" = set; then | |
25455 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25456 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25457 | if test "${ac_cv_header_png_h+set}" = set; then | |
25458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25459 | fi | |
25460 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25461 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25462 | else | |
25463 | # Is the header compilable? | |
25464 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
25465 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
25466 | cat >conftest.$ac_ext <<_ACEOF | |
25467 | /* confdefs.h. */ | |
25468 | _ACEOF | |
25469 | cat confdefs.h >>conftest.$ac_ext | |
25470 | cat >>conftest.$ac_ext <<_ACEOF | |
25471 | /* end confdefs.h. */ | |
25472 | $ac_includes_default | |
25473 | #include <png.h> | |
25474 | _ACEOF | |
25475 | rm -f conftest.$ac_objext | |
25476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25477 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25478 | ac_status=$? |
ac1cb8d3 VS |
25479 | grep -v '^ *+' conftest.er1 >conftest.err |
25480 | rm -f conftest.er1 | |
25481 | cat conftest.err >&5 | |
a848cd7e SC |
25482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25483 | (exit $ac_status); } && | |
3f60522a JS |
25484 | { ac_try='test -z "$ac_cxx_werror_flag" |
25485 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25487 | (eval $ac_try) 2>&5 | |
25488 | ac_status=$? | |
25489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25490 | (exit $ac_status); }; } && | |
25491 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25493 | (eval $ac_try) 2>&5 | |
25494 | ac_status=$? | |
25495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25496 | (exit $ac_status); }; }; then | |
25497 | ac_header_compiler=yes | |
25498 | else | |
25499 | echo "$as_me: failed program was:" >&5 | |
25500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25501 | ||
25502 | ac_header_compiler=no | |
25503 | fi | |
ac1cb8d3 | 25504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25505 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25506 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25507 | ||
25508 | # Is the header present? | |
25509 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
25510 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
25511 | cat >conftest.$ac_ext <<_ACEOF | |
25512 | /* confdefs.h. */ | |
25513 | _ACEOF | |
25514 | cat confdefs.h >>conftest.$ac_ext | |
25515 | cat >>conftest.$ac_ext <<_ACEOF | |
25516 | /* end confdefs.h. */ | |
25517 | #include <png.h> | |
25518 | _ACEOF | |
25519 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25520 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25521 | ac_status=$? | |
25522 | grep -v '^ *+' conftest.er1 >conftest.err | |
25523 | rm -f conftest.er1 | |
25524 | cat conftest.err >&5 | |
25525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25526 | (exit $ac_status); } >/dev/null; then | |
25527 | if test -s conftest.err; then | |
5d7b7554 VZ |
25528 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25529 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25530 | else |
25531 | ac_cpp_err= | |
25532 | fi | |
25533 | else | |
25534 | ac_cpp_err=yes | |
25535 | fi | |
25536 | if test -z "$ac_cpp_err"; then | |
25537 | ac_header_preproc=yes | |
25538 | else | |
25539 | echo "$as_me: failed program was:" >&5 | |
25540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25541 | ||
25542 | ac_header_preproc=no | |
25543 | fi | |
25544 | rm -f conftest.err conftest.$ac_ext | |
25545 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25546 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25547 | ||
25548 | # So? What about this header? | |
5d7b7554 | 25549 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25550 | yes:no: ) |
a848cd7e SC |
25551 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25552 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25553 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
25554 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
25555 | ac_header_preproc=yes | |
a848cd7e | 25556 | ;; |
ac1cb8d3 | 25557 | no:yes:* ) |
a848cd7e SC |
25558 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
25559 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25560 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
25561 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
25562 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
25563 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
25564 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25565 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25566 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
25567 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25568 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
25569 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25570 | ( |
25571 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25572 | ## ----------------------------------------- ## |
25573 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25574 | ## ----------------------------------------- ## | |
a848cd7e SC |
25575 | _ASBOX |
25576 | ) | | |
25577 | sed "s/^/$as_me: WARNING: /" >&2 | |
25578 | ;; | |
25579 | esac | |
25580 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25581 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25582 | if test "${ac_cv_header_png_h+set}" = set; then | |
25583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25584 | else | |
25585 | ac_cv_header_png_h=$ac_header_preproc | |
25586 | fi | |
25587 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25588 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25589 | ||
25590 | fi | |
25591 | ||
25592 | ||
25593 | ||
25594 | if test "$ac_cv_header_png_h" = "yes"; then | |
25595 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
25596 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
25597 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
25598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25599 | else | |
25600 | ac_check_lib_save_LIBS=$LIBS | |
25601 | LIBS="-lpng -lz -lm $LIBS" | |
25602 | cat >conftest.$ac_ext <<_ACEOF | |
25603 | /* confdefs.h. */ | |
25604 | _ACEOF | |
25605 | cat confdefs.h >>conftest.$ac_ext | |
25606 | cat >>conftest.$ac_ext <<_ACEOF | |
25607 | /* end confdefs.h. */ | |
25608 | ||
25609 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25610 | #ifdef __cplusplus | |
25611 | extern "C" | |
25612 | #endif | |
25613 | /* We use char because int might match the return type of a gcc2 | |
25614 | builtin and then its argument prototype would still apply. */ | |
25615 | char png_check_sig (); | |
25616 | int | |
25617 | main () | |
25618 | { | |
25619 | png_check_sig (); | |
25620 | ; | |
25621 | return 0; | |
25622 | } | |
25623 | _ACEOF | |
25624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25626 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25627 | ac_status=$? |
ac1cb8d3 VS |
25628 | grep -v '^ *+' conftest.er1 >conftest.err |
25629 | rm -f conftest.er1 | |
25630 | cat conftest.err >&5 | |
a848cd7e SC |
25631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25632 | (exit $ac_status); } && | |
3f60522a JS |
25633 | { ac_try='test -z "$ac_cxx_werror_flag" |
25634 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25636 | (eval $ac_try) 2>&5 | |
25637 | ac_status=$? | |
25638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25639 | (exit $ac_status); }; } && | |
25640 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25642 | (eval $ac_try) 2>&5 | |
25643 | ac_status=$? | |
25644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25645 | (exit $ac_status); }; }; then | |
25646 | ac_cv_lib_png_png_check_sig=yes | |
25647 | else | |
25648 | echo "$as_me: failed program was:" >&5 | |
25649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25650 | ||
25651 | ac_cv_lib_png_png_check_sig=no | |
25652 | fi | |
ac1cb8d3 VS |
25653 | rm -f conftest.err conftest.$ac_objext \ |
25654 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25655 | LIBS=$ac_check_lib_save_LIBS |
25656 | fi | |
25657 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
25658 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
25659 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
25660 | PNG_LINK=" -lpng -lz" | |
25661 | fi | |
25662 | ||
25663 | fi | |
25664 | ||
25665 | if test "x$PNG_LINK" = "x" ; then | |
25666 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
25667 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
25668 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
25669 | { (exit 1); exit 1; }; } | |
25670 | else | |
25671 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
25672 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
25673 | wxUSE_LIBPNG=builtin | |
25674 | fi | |
25675 | else | |
25676 | wxUSE_LIBPNG=sys | |
25677 | fi | |
25678 | fi | |
25679 | fi | |
25680 | ||
25681 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
25682 | fi | |
25683 | ||
25684 | ||
25685 | JPEG_LINK= | |
25686 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
25687 | cat >>confdefs.h <<\_ACEOF | |
25688 | #define wxUSE_LIBJPEG 1 | |
25689 | _ACEOF | |
25690 | ||
25691 | ||
25692 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
25693 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
25694 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
25695 | wxUSE_LIBJPEG=sys | |
25696 | fi | |
25697 | ||
25698 | if test "$wxUSE_MGL" != 1 ; then | |
25699 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
25700 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
25701 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
25702 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
25703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25704 | else | |
25705 | cat >conftest.$ac_ext <<_ACEOF | |
25706 | /* confdefs.h. */ | |
25707 | _ACEOF | |
25708 | cat confdefs.h >>conftest.$ac_ext | |
25709 | cat >>conftest.$ac_ext <<_ACEOF | |
25710 | /* end confdefs.h. */ | |
25711 | ||
25712 | #undef HAVE_STDLIB_H | |
25713 | #include <stdio.h> | |
25714 | #include <jpeglib.h> | |
25715 | ||
25716 | int | |
25717 | main () | |
25718 | { | |
25719 | ||
25720 | ||
25721 | ; | |
25722 | return 0; | |
25723 | } | |
25724 | _ACEOF | |
25725 | rm -f conftest.$ac_objext | |
25726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25727 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25728 | ac_status=$? |
ac1cb8d3 VS |
25729 | grep -v '^ *+' conftest.er1 >conftest.err |
25730 | rm -f conftest.er1 | |
25731 | cat conftest.err >&5 | |
a848cd7e SC |
25732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25733 | (exit $ac_status); } && | |
3f60522a JS |
25734 | { ac_try='test -z "$ac_cxx_werror_flag" |
25735 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25737 | (eval $ac_try) 2>&5 | |
25738 | ac_status=$? | |
25739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25740 | (exit $ac_status); }; } && | |
25741 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25743 | (eval $ac_try) 2>&5 | |
25744 | ac_status=$? | |
25745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25746 | (exit $ac_status); }; }; then | |
25747 | ac_cv_header_jpeglib_h=yes | |
25748 | else | |
25749 | echo "$as_me: failed program was:" >&5 | |
25750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25751 | ||
25752 | ac_cv_header_jpeglib_h=no | |
25753 | ||
25754 | fi | |
ac1cb8d3 | 25755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25756 | |
25757 | fi | |
25758 | ||
25759 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
25760 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
25761 | ||
25762 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
25763 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
25764 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
25765 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
25766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25767 | else | |
25768 | ac_check_lib_save_LIBS=$LIBS | |
25769 | LIBS="-ljpeg $LIBS" | |
25770 | cat >conftest.$ac_ext <<_ACEOF | |
25771 | /* confdefs.h. */ | |
25772 | _ACEOF | |
25773 | cat confdefs.h >>conftest.$ac_ext | |
25774 | cat >>conftest.$ac_ext <<_ACEOF | |
25775 | /* end confdefs.h. */ | |
25776 | ||
25777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25778 | #ifdef __cplusplus | |
25779 | extern "C" | |
25780 | #endif | |
25781 | /* We use char because int might match the return type of a gcc2 | |
25782 | builtin and then its argument prototype would still apply. */ | |
25783 | char jpeg_read_header (); | |
25784 | int | |
25785 | main () | |
25786 | { | |
25787 | jpeg_read_header (); | |
25788 | ; | |
25789 | return 0; | |
25790 | } | |
25791 | _ACEOF | |
25792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25794 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25795 | ac_status=$? |
ac1cb8d3 VS |
25796 | grep -v '^ *+' conftest.er1 >conftest.err |
25797 | rm -f conftest.er1 | |
25798 | cat conftest.err >&5 | |
a848cd7e SC |
25799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25800 | (exit $ac_status); } && | |
3f60522a JS |
25801 | { ac_try='test -z "$ac_cxx_werror_flag" |
25802 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25804 | (eval $ac_try) 2>&5 | |
25805 | ac_status=$? | |
25806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25807 | (exit $ac_status); }; } && | |
25808 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25810 | (eval $ac_try) 2>&5 | |
25811 | ac_status=$? | |
25812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25813 | (exit $ac_status); }; }; then | |
25814 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
25815 | else | |
25816 | echo "$as_me: failed program was:" >&5 | |
25817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25818 | ||
25819 | ac_cv_lib_jpeg_jpeg_read_header=no | |
25820 | fi | |
ac1cb8d3 VS |
25821 | rm -f conftest.err conftest.$ac_objext \ |
25822 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25823 | LIBS=$ac_check_lib_save_LIBS |
25824 | fi | |
25825 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
25826 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
25827 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
25828 | JPEG_LINK=" -ljpeg" | |
25829 | fi | |
25830 | ||
25831 | fi | |
25832 | ||
25833 | if test "x$JPEG_LINK" = "x" ; then | |
25834 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
25835 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
25836 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
25837 | { (exit 1); exit 1; }; } | |
25838 | else | |
25839 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
25840 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
25841 | wxUSE_LIBJPEG=builtin | |
25842 | fi | |
25843 | else | |
25844 | wxUSE_LIBJPEG=sys | |
25845 | fi | |
25846 | fi | |
25847 | fi | |
25848 | fi | |
25849 | ||
25850 | ||
25851 | TIFF_LINK= | |
25852 | TIFF_PREREQ_LINKS=-lm | |
25853 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
25854 | cat >>confdefs.h <<\_ACEOF | |
25855 | #define wxUSE_LIBTIFF 1 | |
25856 | _ACEOF | |
25857 | ||
25858 | ||
25859 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
25860 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
25861 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
25862 | fi | |
25863 | if test "$wxUSE_ZLIB" = "sys"; then | |
25864 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
25865 | fi | |
25866 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25867 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25868 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25869 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25871 | fi | |
25872 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25873 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25874 | else | |
25875 | # Is the header compilable? | |
25876 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
25877 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
25878 | cat >conftest.$ac_ext <<_ACEOF | |
25879 | /* confdefs.h. */ | |
25880 | _ACEOF | |
25881 | cat confdefs.h >>conftest.$ac_ext | |
25882 | cat >>conftest.$ac_ext <<_ACEOF | |
25883 | /* end confdefs.h. */ | |
25884 | $ac_includes_default | |
25885 | #include <tiffio.h> | |
25886 | _ACEOF | |
25887 | rm -f conftest.$ac_objext | |
25888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25889 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25890 | ac_status=$? |
ac1cb8d3 VS |
25891 | grep -v '^ *+' conftest.er1 >conftest.err |
25892 | rm -f conftest.er1 | |
25893 | cat conftest.err >&5 | |
a848cd7e SC |
25894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25895 | (exit $ac_status); } && | |
3f60522a JS |
25896 | { ac_try='test -z "$ac_cxx_werror_flag" |
25897 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25899 | (eval $ac_try) 2>&5 | |
25900 | ac_status=$? | |
25901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25902 | (exit $ac_status); }; } && | |
25903 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25905 | (eval $ac_try) 2>&5 | |
25906 | ac_status=$? | |
25907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25908 | (exit $ac_status); }; }; then | |
25909 | ac_header_compiler=yes | |
25910 | else | |
25911 | echo "$as_me: failed program was:" >&5 | |
25912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25913 | ||
25914 | ac_header_compiler=no | |
25915 | fi | |
ac1cb8d3 | 25916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25917 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25918 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25919 | ||
25920 | # Is the header present? | |
25921 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
25922 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
25923 | cat >conftest.$ac_ext <<_ACEOF | |
25924 | /* confdefs.h. */ | |
25925 | _ACEOF | |
25926 | cat confdefs.h >>conftest.$ac_ext | |
25927 | cat >>conftest.$ac_ext <<_ACEOF | |
25928 | /* end confdefs.h. */ | |
25929 | #include <tiffio.h> | |
25930 | _ACEOF | |
25931 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25932 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25933 | ac_status=$? | |
25934 | grep -v '^ *+' conftest.er1 >conftest.err | |
25935 | rm -f conftest.er1 | |
25936 | cat conftest.err >&5 | |
25937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25938 | (exit $ac_status); } >/dev/null; then | |
25939 | if test -s conftest.err; then | |
5d7b7554 VZ |
25940 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25941 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25942 | else |
25943 | ac_cpp_err= | |
25944 | fi | |
25945 | else | |
25946 | ac_cpp_err=yes | |
25947 | fi | |
25948 | if test -z "$ac_cpp_err"; then | |
25949 | ac_header_preproc=yes | |
25950 | else | |
25951 | echo "$as_me: failed program was:" >&5 | |
25952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25953 | ||
25954 | ac_header_preproc=no | |
25955 | fi | |
25956 | rm -f conftest.err conftest.$ac_ext | |
25957 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25958 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25959 | ||
25960 | # So? What about this header? | |
5d7b7554 | 25961 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25962 | yes:no: ) |
a848cd7e SC |
25963 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25964 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25965 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
25966 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
25967 | ac_header_preproc=yes | |
a848cd7e | 25968 | ;; |
ac1cb8d3 | 25969 | no:yes:* ) |
a848cd7e SC |
25970 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
25971 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25972 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
25973 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
25974 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
25975 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
25976 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25977 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25978 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
25979 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25980 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
25981 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25982 | ( |
25983 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25984 | ## ----------------------------------------- ## |
25985 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25986 | ## ----------------------------------------- ## | |
a848cd7e SC |
25987 | _ASBOX |
25988 | ) | | |
25989 | sed "s/^/$as_me: WARNING: /" >&2 | |
25990 | ;; | |
25991 | esac | |
25992 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25993 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25994 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25996 | else | |
25997 | ac_cv_header_tiffio_h=$ac_header_preproc | |
25998 | fi | |
25999 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
26000 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
26001 | ||
26002 | fi | |
26003 | if test $ac_cv_header_tiffio_h = yes; then | |
26004 | ||
26005 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
26006 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
26007 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
26008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26009 | else | |
26010 | ac_check_lib_save_LIBS=$LIBS | |
26011 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
26012 | cat >conftest.$ac_ext <<_ACEOF | |
26013 | /* confdefs.h. */ | |
26014 | _ACEOF | |
26015 | cat confdefs.h >>conftest.$ac_ext | |
26016 | cat >>conftest.$ac_ext <<_ACEOF | |
26017 | /* end confdefs.h. */ | |
26018 | ||
26019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26020 | #ifdef __cplusplus | |
26021 | extern "C" | |
26022 | #endif | |
26023 | /* We use char because int might match the return type of a gcc2 | |
26024 | builtin and then its argument prototype would still apply. */ | |
26025 | char TIFFError (); | |
26026 | int | |
26027 | main () | |
26028 | { | |
26029 | TIFFError (); | |
26030 | ; | |
26031 | return 0; | |
26032 | } | |
26033 | _ACEOF | |
26034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26036 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26037 | ac_status=$? |
ac1cb8d3 VS |
26038 | grep -v '^ *+' conftest.er1 >conftest.err |
26039 | rm -f conftest.er1 | |
26040 | cat conftest.err >&5 | |
a848cd7e SC |
26041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26042 | (exit $ac_status); } && | |
3f60522a JS |
26043 | { ac_try='test -z "$ac_cxx_werror_flag" |
26044 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26046 | (eval $ac_try) 2>&5 | |
26047 | ac_status=$? | |
26048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26049 | (exit $ac_status); }; } && | |
26050 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26052 | (eval $ac_try) 2>&5 | |
26053 | ac_status=$? | |
26054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26055 | (exit $ac_status); }; }; then | |
26056 | ac_cv_lib_tiff_TIFFError=yes | |
26057 | else | |
26058 | echo "$as_me: failed program was:" >&5 | |
26059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26060 | ||
26061 | ac_cv_lib_tiff_TIFFError=no | |
26062 | fi | |
ac1cb8d3 VS |
26063 | rm -f conftest.err conftest.$ac_objext \ |
26064 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26065 | LIBS=$ac_check_lib_save_LIBS |
26066 | fi | |
26067 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
26068 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
26069 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
26070 | TIFF_LINK=" -ltiff" | |
26071 | fi | |
26072 | ||
26073 | ||
26074 | ||
26075 | fi | |
26076 | ||
26077 | ||
26078 | ||
26079 | if test "x$TIFF_LINK" = "x" ; then | |
26080 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
26081 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
26082 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
26083 | { (exit 1); exit 1; }; } | |
26084 | else | |
26085 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
26086 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
26087 | wxUSE_LIBTIFF=builtin | |
26088 | fi | |
26089 | else | |
26090 | wxUSE_LIBTIFF=sys | |
26091 | fi | |
26092 | fi | |
26093 | fi | |
26094 | ||
26095 | ||
47a7e797 MW |
26096 | if test "$wxUSE_WCHAR_T" != "yes"; then |
26097 | if test "$wxUSE_EXPAT" != "no"; then | |
26098 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
26099 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
26100 | wxUSE_EXPAT=no | |
26101 | fi | |
26102 | if test "$wxUSE_XML" != "no"; then | |
26103 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
26104 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
26105 | wxUSE_XML=no | |
26106 | fi | |
26107 | fi | |
26108 | ||
a848cd7e SC |
26109 | if test "$wxUSE_EXPAT" != "no"; then |
26110 | wxUSE_XML=yes | |
26111 | cat >>confdefs.h <<\_ACEOF | |
26112 | #define wxUSE_EXPAT 1 | |
26113 | _ACEOF | |
26114 | ||
26115 | cat >>confdefs.h <<\_ACEOF | |
26116 | #define wxUSE_XML 1 | |
26117 | _ACEOF | |
26118 | ||
26119 | ||
26120 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
26121 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26122 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
26123 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
26124 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26126 | fi | |
26127 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
26128 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
26129 | else | |
26130 | # Is the header compilable? | |
26131 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
26132 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
26133 | cat >conftest.$ac_ext <<_ACEOF | |
26134 | /* confdefs.h. */ | |
26135 | _ACEOF | |
26136 | cat confdefs.h >>conftest.$ac_ext | |
26137 | cat >>conftest.$ac_ext <<_ACEOF | |
26138 | /* end confdefs.h. */ | |
26139 | $ac_includes_default | |
26140 | #include <expat.h> | |
26141 | _ACEOF | |
26142 | rm -f conftest.$ac_objext | |
26143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26144 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26145 | ac_status=$? |
ac1cb8d3 VS |
26146 | grep -v '^ *+' conftest.er1 >conftest.err |
26147 | rm -f conftest.er1 | |
26148 | cat conftest.err >&5 | |
a848cd7e SC |
26149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26150 | (exit $ac_status); } && | |
3f60522a JS |
26151 | { ac_try='test -z "$ac_cxx_werror_flag" |
26152 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26154 | (eval $ac_try) 2>&5 | |
26155 | ac_status=$? | |
26156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26157 | (exit $ac_status); }; } && | |
26158 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26160 | (eval $ac_try) 2>&5 | |
26161 | ac_status=$? | |
26162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26163 | (exit $ac_status); }; }; then | |
26164 | ac_header_compiler=yes | |
26165 | else | |
26166 | echo "$as_me: failed program was:" >&5 | |
26167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26168 | ||
26169 | ac_header_compiler=no | |
26170 | fi | |
ac1cb8d3 | 26171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26172 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26173 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26174 | ||
26175 | # Is the header present? | |
26176 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
26177 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
26178 | cat >conftest.$ac_ext <<_ACEOF | |
26179 | /* confdefs.h. */ | |
26180 | _ACEOF | |
26181 | cat confdefs.h >>conftest.$ac_ext | |
26182 | cat >>conftest.$ac_ext <<_ACEOF | |
26183 | /* end confdefs.h. */ | |
26184 | #include <expat.h> | |
26185 | _ACEOF | |
26186 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26187 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26188 | ac_status=$? | |
26189 | grep -v '^ *+' conftest.er1 >conftest.err | |
26190 | rm -f conftest.er1 | |
26191 | cat conftest.err >&5 | |
26192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26193 | (exit $ac_status); } >/dev/null; then | |
26194 | if test -s conftest.err; then | |
5d7b7554 VZ |
26195 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26196 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26197 | else |
26198 | ac_cpp_err= | |
26199 | fi | |
26200 | else | |
26201 | ac_cpp_err=yes | |
26202 | fi | |
26203 | if test -z "$ac_cpp_err"; then | |
26204 | ac_header_preproc=yes | |
26205 | else | |
26206 | echo "$as_me: failed program was:" >&5 | |
26207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26208 | ||
26209 | ac_header_preproc=no | |
26210 | fi | |
26211 | rm -f conftest.err conftest.$ac_ext | |
26212 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26213 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26214 | ||
26215 | # So? What about this header? | |
5d7b7554 | 26216 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26217 | yes:no: ) |
a848cd7e SC |
26218 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26219 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26220 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
26221 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
26222 | ac_header_preproc=yes | |
a848cd7e | 26223 | ;; |
ac1cb8d3 | 26224 | no:yes:* ) |
a848cd7e SC |
26225 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
26226 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26227 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
26228 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
26229 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
26230 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
26231 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26232 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26233 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
26234 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26235 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
26236 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26237 | ( |
26238 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26239 | ## ----------------------------------------- ## |
26240 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26241 | ## ----------------------------------------- ## | |
a848cd7e SC |
26242 | _ASBOX |
26243 | ) | | |
26244 | sed "s/^/$as_me: WARNING: /" >&2 | |
26245 | ;; | |
26246 | esac | |
26247 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
26248 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
26249 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26251 | else | |
26252 | ac_cv_header_expat_h=$ac_header_preproc | |
26253 | fi | |
26254 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
26255 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
26256 | ||
26257 | fi | |
26258 | if test $ac_cv_header_expat_h = yes; then | |
26259 | found_expat_h=1 | |
26260 | fi | |
26261 | ||
26262 | ||
26263 | if test "x$found_expat_h" = "x1"; then | |
26264 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
26265 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
26266 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
26267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26268 | else | |
26269 | ||
a848cd7e SC |
26270 | cat >conftest.$ac_ext <<_ACEOF |
26271 | /* confdefs.h. */ | |
26272 | _ACEOF | |
26273 | cat confdefs.h >>conftest.$ac_ext | |
26274 | cat >>conftest.$ac_ext <<_ACEOF | |
26275 | /* end confdefs.h. */ | |
26276 | #include <expat.h> | |
26277 | int | |
26278 | main () | |
26279 | { | |
26280 | ||
26281 | ; | |
26282 | return 0; | |
26283 | } | |
26284 | _ACEOF | |
26285 | rm -f conftest.$ac_objext | |
26286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26287 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26288 | ac_status=$? |
ac1cb8d3 VS |
26289 | grep -v '^ *+' conftest.er1 >conftest.err |
26290 | rm -f conftest.er1 | |
26291 | cat conftest.err >&5 | |
a848cd7e SC |
26292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26293 | (exit $ac_status); } && | |
3f60522a JS |
26294 | { ac_try='test -z "$ac_cxx_werror_flag" |
26295 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26297 | (eval $ac_try) 2>&5 | |
26298 | ac_status=$? | |
26299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26300 | (exit $ac_status); }; } && | |
26301 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26303 | (eval $ac_try) 2>&5 | |
26304 | ac_status=$? | |
26305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26306 | (exit $ac_status); }; }; then | |
26307 | wx_cv_expat_is_not_broken=yes | |
26308 | else | |
26309 | echo "$as_me: failed program was:" >&5 | |
26310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26311 | ||
26312 | wx_cv_expat_is_not_broken=no | |
26313 | ||
26314 | fi | |
ac1cb8d3 | 26315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26316 | |
26317 | ||
26318 | fi | |
26319 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
26320 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
26321 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
26322 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
26323 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
26324 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
26325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26326 | else | |
26327 | ac_check_lib_save_LIBS=$LIBS | |
26328 | LIBS="-lexpat $LIBS" | |
26329 | cat >conftest.$ac_ext <<_ACEOF | |
26330 | /* confdefs.h. */ | |
26331 | _ACEOF | |
26332 | cat confdefs.h >>conftest.$ac_ext | |
26333 | cat >>conftest.$ac_ext <<_ACEOF | |
26334 | /* end confdefs.h. */ | |
26335 | ||
26336 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26337 | #ifdef __cplusplus | |
26338 | extern "C" | |
26339 | #endif | |
26340 | /* We use char because int might match the return type of a gcc2 | |
26341 | builtin and then its argument prototype would still apply. */ | |
26342 | char XML_ParserCreate (); | |
26343 | int | |
26344 | main () | |
26345 | { | |
26346 | XML_ParserCreate (); | |
26347 | ; | |
26348 | return 0; | |
26349 | } | |
26350 | _ACEOF | |
26351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26353 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26354 | ac_status=$? |
ac1cb8d3 VS |
26355 | grep -v '^ *+' conftest.er1 >conftest.err |
26356 | rm -f conftest.er1 | |
26357 | cat conftest.err >&5 | |
a848cd7e SC |
26358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26359 | (exit $ac_status); } && | |
3f60522a JS |
26360 | { ac_try='test -z "$ac_cxx_werror_flag" |
26361 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26363 | (eval $ac_try) 2>&5 | |
26364 | ac_status=$? | |
26365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26366 | (exit $ac_status); }; } && | |
26367 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26369 | (eval $ac_try) 2>&5 | |
26370 | ac_status=$? | |
26371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26372 | (exit $ac_status); }; }; then | |
26373 | ac_cv_lib_expat_XML_ParserCreate=yes | |
26374 | else | |
26375 | echo "$as_me: failed program was:" >&5 | |
26376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26377 | ||
26378 | ac_cv_lib_expat_XML_ParserCreate=no | |
26379 | fi | |
ac1cb8d3 VS |
26380 | rm -f conftest.err conftest.$ac_objext \ |
26381 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26382 | LIBS=$ac_check_lib_save_LIBS |
26383 | fi | |
26384 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
26385 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
26386 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
26387 | EXPAT_LINK=" -lexpat" | |
26388 | fi | |
26389 | ||
26390 | fi | |
26391 | fi | |
26392 | if test "x$EXPAT_LINK" = "x" ; then | |
26393 | if test "$wxUSE_EXPAT" = "sys" ; then | |
26394 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
26395 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
26396 | { (exit 1); exit 1; }; } | |
26397 | else | |
26398 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
26399 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
26400 | wxUSE_EXPAT=builtin | |
26401 | fi | |
26402 | else | |
26403 | wxUSE_EXPAT=sys | |
26404 | fi | |
26405 | fi | |
26406 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
26407 | ||
26408 | ||
26409 | subdirs="$subdirs src/expat" | |
26410 | ||
26411 | fi | |
26412 | fi | |
26413 | ||
26414 | ||
26415 | ||
26416 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
26417 | if test "${ac_cv_header_mspack_h+set}" = set; then |
26418 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26419 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26420 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26422 | fi | |
26423 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26424 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26425 | else | |
26426 | # Is the header compilable? | |
26427 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
26428 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
26429 | cat >conftest.$ac_ext <<_ACEOF | |
26430 | /* confdefs.h. */ | |
26431 | _ACEOF | |
26432 | cat confdefs.h >>conftest.$ac_ext | |
26433 | cat >>conftest.$ac_ext <<_ACEOF | |
26434 | /* end confdefs.h. */ | |
26435 | $ac_includes_default | |
26436 | #include <mspack.h> | |
26437 | _ACEOF | |
26438 | rm -f conftest.$ac_objext | |
26439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26440 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26441 | ac_status=$? |
ac1cb8d3 VS |
26442 | grep -v '^ *+' conftest.er1 >conftest.err |
26443 | rm -f conftest.er1 | |
26444 | cat conftest.err >&5 | |
a848cd7e SC |
26445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26446 | (exit $ac_status); } && | |
3f60522a JS |
26447 | { ac_try='test -z "$ac_cxx_werror_flag" |
26448 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26450 | (eval $ac_try) 2>&5 | |
26451 | ac_status=$? | |
26452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26453 | (exit $ac_status); }; } && | |
26454 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26456 | (eval $ac_try) 2>&5 | |
26457 | ac_status=$? | |
26458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26459 | (exit $ac_status); }; }; then | |
26460 | ac_header_compiler=yes | |
26461 | else | |
26462 | echo "$as_me: failed program was:" >&5 | |
26463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26464 | ||
26465 | ac_header_compiler=no | |
26466 | fi | |
ac1cb8d3 | 26467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26468 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26469 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26470 | ||
26471 | # Is the header present? | |
26472 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
26473 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
26474 | cat >conftest.$ac_ext <<_ACEOF | |
26475 | /* confdefs.h. */ | |
26476 | _ACEOF | |
26477 | cat confdefs.h >>conftest.$ac_ext | |
26478 | cat >>conftest.$ac_ext <<_ACEOF | |
26479 | /* end confdefs.h. */ | |
26480 | #include <mspack.h> | |
26481 | _ACEOF | |
26482 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26483 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26484 | ac_status=$? | |
26485 | grep -v '^ *+' conftest.er1 >conftest.err | |
26486 | rm -f conftest.er1 | |
26487 | cat conftest.err >&5 | |
26488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26489 | (exit $ac_status); } >/dev/null; then | |
26490 | if test -s conftest.err; then | |
5d7b7554 VZ |
26491 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26492 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26493 | else |
26494 | ac_cpp_err= | |
26495 | fi | |
26496 | else | |
26497 | ac_cpp_err=yes | |
26498 | fi | |
26499 | if test -z "$ac_cpp_err"; then | |
26500 | ac_header_preproc=yes | |
26501 | else | |
26502 | echo "$as_me: failed program was:" >&5 | |
26503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26504 | ||
26505 | ac_header_preproc=no | |
26506 | fi | |
26507 | rm -f conftest.err conftest.$ac_ext | |
26508 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26509 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26510 | ||
26511 | # So? What about this header? | |
5d7b7554 | 26512 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26513 | yes:no: ) |
a848cd7e SC |
26514 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26515 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26516 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
26517 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
26518 | ac_header_preproc=yes | |
a848cd7e | 26519 | ;; |
ac1cb8d3 | 26520 | no:yes:* ) |
a848cd7e SC |
26521 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
26522 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26523 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
26524 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
26525 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
26526 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
26527 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26528 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26529 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
26530 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26531 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
26532 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26533 | ( |
26534 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26535 | ## ----------------------------------------- ## |
26536 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26537 | ## ----------------------------------------- ## | |
a848cd7e SC |
26538 | _ASBOX |
26539 | ) | | |
26540 | sed "s/^/$as_me: WARNING: /" >&2 | |
26541 | ;; | |
26542 | esac | |
26543 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26544 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26545 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26547 | else | |
26548 | ac_cv_header_mspack_h=$ac_header_preproc | |
26549 | fi | |
26550 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26551 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26552 | ||
26553 | fi | |
26554 | if test $ac_cv_header_mspack_h = yes; then | |
26555 | found_mspack_h=1 | |
26556 | fi | |
26557 | ||
26558 | ||
26559 | if test "x$found_mspack_h" = "x1"; then | |
26560 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
26561 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
26562 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
26563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26564 | else | |
26565 | ac_check_lib_save_LIBS=$LIBS | |
26566 | LIBS="-lmspack $LIBS" | |
26567 | cat >conftest.$ac_ext <<_ACEOF | |
26568 | /* confdefs.h. */ | |
26569 | _ACEOF | |
26570 | cat confdefs.h >>conftest.$ac_ext | |
26571 | cat >>conftest.$ac_ext <<_ACEOF | |
26572 | /* end confdefs.h. */ | |
26573 | ||
26574 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26575 | #ifdef __cplusplus | |
26576 | extern "C" | |
26577 | #endif | |
26578 | /* We use char because int might match the return type of a gcc2 | |
26579 | builtin and then its argument prototype would still apply. */ | |
26580 | char mspack_create_chm_decompressor (); | |
26581 | int | |
26582 | main () | |
26583 | { | |
26584 | mspack_create_chm_decompressor (); | |
26585 | ; | |
26586 | return 0; | |
26587 | } | |
26588 | _ACEOF | |
26589 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26591 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26592 | ac_status=$? |
ac1cb8d3 VS |
26593 | grep -v '^ *+' conftest.er1 >conftest.err |
26594 | rm -f conftest.er1 | |
26595 | cat conftest.err >&5 | |
a848cd7e SC |
26596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26597 | (exit $ac_status); } && | |
3f60522a JS |
26598 | { ac_try='test -z "$ac_cxx_werror_flag" |
26599 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26601 | (eval $ac_try) 2>&5 | |
26602 | ac_status=$? | |
26603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26604 | (exit $ac_status); }; } && | |
26605 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26607 | (eval $ac_try) 2>&5 | |
26608 | ac_status=$? | |
26609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26610 | (exit $ac_status); }; }; then | |
26611 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
26612 | else | |
26613 | echo "$as_me: failed program was:" >&5 | |
26614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26615 | ||
26616 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
26617 | fi | |
ac1cb8d3 VS |
26618 | rm -f conftest.err conftest.$ac_objext \ |
26619 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26620 | LIBS=$ac_check_lib_save_LIBS |
26621 | fi | |
26622 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
26623 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
26624 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
26625 | MSPACK_LINK=" -lmspack" | |
26626 | fi | |
26627 | ||
26628 | fi | |
26629 | if test "x$MSPACK_LINK" = "x" ; then | |
26630 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
26631 | fi |
26632 | fi | |
26633 | ||
26634 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
26635 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
26636 | #define wxUSE_LIBMSPACK 1 |
26637 | _ACEOF | |
26638 | ||
a848cd7e SC |
26639 | fi |
26640 | ||
26641 | ||
26642 | ||
26643 | AFMINSTALL= | |
26644 | WIN32INSTALL= | |
26645 | ||
26646 | TOOLKIT= | |
26647 | TOOLKIT_INCLUDE= | |
26648 | WIDGET_SET= | |
26649 | ||
26650 | if test "$USE_WIN32" = 1 ; then | |
26651 | ||
26652 | for ac_header in w32api.h | |
26653 | do | |
26654 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26656 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26657 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26658 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26660 | fi | |
26661 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26662 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26663 | else | |
26664 | # Is the header compilable? | |
26665 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
26666 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
26667 | cat >conftest.$ac_ext <<_ACEOF | |
26668 | /* confdefs.h. */ | |
26669 | _ACEOF | |
26670 | cat confdefs.h >>conftest.$ac_ext | |
26671 | cat >>conftest.$ac_ext <<_ACEOF | |
26672 | /* end confdefs.h. */ | |
26673 | $ac_includes_default | |
26674 | #include <$ac_header> | |
26675 | _ACEOF | |
26676 | rm -f conftest.$ac_objext | |
26677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26678 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26679 | ac_status=$? |
ac1cb8d3 VS |
26680 | grep -v '^ *+' conftest.er1 >conftest.err |
26681 | rm -f conftest.er1 | |
26682 | cat conftest.err >&5 | |
a848cd7e SC |
26683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26684 | (exit $ac_status); } && | |
3f60522a JS |
26685 | { ac_try='test -z "$ac_cxx_werror_flag" |
26686 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26688 | (eval $ac_try) 2>&5 | |
26689 | ac_status=$? | |
26690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26691 | (exit $ac_status); }; } && | |
26692 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26694 | (eval $ac_try) 2>&5 | |
26695 | ac_status=$? | |
26696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26697 | (exit $ac_status); }; }; then | |
26698 | ac_header_compiler=yes | |
26699 | else | |
26700 | echo "$as_me: failed program was:" >&5 | |
26701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26702 | ||
26703 | ac_header_compiler=no | |
26704 | fi | |
ac1cb8d3 | 26705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26706 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26707 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26708 | ||
26709 | # Is the header present? | |
26710 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
26711 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
26712 | cat >conftest.$ac_ext <<_ACEOF | |
26713 | /* confdefs.h. */ | |
26714 | _ACEOF | |
26715 | cat confdefs.h >>conftest.$ac_ext | |
26716 | cat >>conftest.$ac_ext <<_ACEOF | |
26717 | /* end confdefs.h. */ | |
26718 | #include <$ac_header> | |
26719 | _ACEOF | |
26720 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26721 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26722 | ac_status=$? | |
26723 | grep -v '^ *+' conftest.er1 >conftest.err | |
26724 | rm -f conftest.er1 | |
26725 | cat conftest.err >&5 | |
26726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26727 | (exit $ac_status); } >/dev/null; then | |
26728 | if test -s conftest.err; then | |
5d7b7554 VZ |
26729 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26730 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26731 | else |
26732 | ac_cpp_err= | |
26733 | fi | |
26734 | else | |
26735 | ac_cpp_err=yes | |
26736 | fi | |
26737 | if test -z "$ac_cpp_err"; then | |
26738 | ac_header_preproc=yes | |
26739 | else | |
26740 | echo "$as_me: failed program was:" >&5 | |
26741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26742 | ||
26743 | ac_header_preproc=no | |
26744 | fi | |
26745 | rm -f conftest.err conftest.$ac_ext | |
26746 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26747 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26748 | ||
26749 | # So? What about this header? | |
5d7b7554 | 26750 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26751 | yes:no: ) |
a848cd7e SC |
26752 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
26753 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26754 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
26755 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
26756 | ac_header_preproc=yes | |
a848cd7e | 26757 | ;; |
ac1cb8d3 | 26758 | no:yes:* ) |
a848cd7e SC |
26759 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
26760 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26761 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
26762 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
26763 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
26764 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
26765 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
26766 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26767 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
26768 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26769 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
26770 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26771 | ( |
26772 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26773 | ## ----------------------------------------- ## |
26774 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26775 | ## ----------------------------------------- ## | |
a848cd7e SC |
26776 | _ASBOX |
26777 | ) | | |
26778 | sed "s/^/$as_me: WARNING: /" >&2 | |
26779 | ;; | |
26780 | esac | |
26781 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26785 | else | |
ac1cb8d3 | 26786 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
26787 | fi |
26788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26789 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26790 | ||
26791 | fi | |
26792 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
26793 | cat >>confdefs.h <<_ACEOF | |
26794 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
26795 | _ACEOF | |
26796 | ||
26797 | fi | |
26798 | ||
26799 | done | |
26800 | ||
26801 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26802 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26803 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26804 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26806 | fi | |
26807 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26808 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26809 | else | |
26810 | # Is the header compilable? | |
26811 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
26812 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
26813 | cat >conftest.$ac_ext <<_ACEOF | |
26814 | /* confdefs.h. */ | |
26815 | _ACEOF | |
26816 | cat confdefs.h >>conftest.$ac_ext | |
26817 | cat >>conftest.$ac_ext <<_ACEOF | |
26818 | /* end confdefs.h. */ | |
26819 | $ac_includes_default | |
26820 | #include <windows.h> | |
26821 | _ACEOF | |
26822 | rm -f conftest.$ac_objext | |
26823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26824 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26825 | ac_status=$? |
ac1cb8d3 VS |
26826 | grep -v '^ *+' conftest.er1 >conftest.err |
26827 | rm -f conftest.er1 | |
26828 | cat conftest.err >&5 | |
a848cd7e SC |
26829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26830 | (exit $ac_status); } && | |
3f60522a JS |
26831 | { ac_try='test -z "$ac_cxx_werror_flag" |
26832 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26834 | (eval $ac_try) 2>&5 | |
26835 | ac_status=$? | |
26836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26837 | (exit $ac_status); }; } && | |
26838 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26840 | (eval $ac_try) 2>&5 | |
26841 | ac_status=$? | |
26842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26843 | (exit $ac_status); }; }; then | |
26844 | ac_header_compiler=yes | |
26845 | else | |
26846 | echo "$as_me: failed program was:" >&5 | |
26847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26848 | ||
26849 | ac_header_compiler=no | |
26850 | fi | |
ac1cb8d3 | 26851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26852 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26853 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26854 | ||
26855 | # Is the header present? | |
26856 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
26857 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
26858 | cat >conftest.$ac_ext <<_ACEOF | |
26859 | /* confdefs.h. */ | |
26860 | _ACEOF | |
26861 | cat confdefs.h >>conftest.$ac_ext | |
26862 | cat >>conftest.$ac_ext <<_ACEOF | |
26863 | /* end confdefs.h. */ | |
26864 | #include <windows.h> | |
26865 | _ACEOF | |
26866 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26867 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26868 | ac_status=$? | |
26869 | grep -v '^ *+' conftest.er1 >conftest.err | |
26870 | rm -f conftest.er1 | |
26871 | cat conftest.err >&5 | |
26872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26873 | (exit $ac_status); } >/dev/null; then | |
26874 | if test -s conftest.err; then | |
5d7b7554 VZ |
26875 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26876 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26877 | else |
26878 | ac_cpp_err= | |
26879 | fi | |
26880 | else | |
26881 | ac_cpp_err=yes | |
26882 | fi | |
26883 | if test -z "$ac_cpp_err"; then | |
26884 | ac_header_preproc=yes | |
26885 | else | |
26886 | echo "$as_me: failed program was:" >&5 | |
26887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26888 | ||
26889 | ac_header_preproc=no | |
26890 | fi | |
26891 | rm -f conftest.err conftest.$ac_ext | |
26892 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26893 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26894 | ||
26895 | # So? What about this header? | |
5d7b7554 | 26896 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26897 | yes:no: ) |
a848cd7e SC |
26898 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26899 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26900 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
26901 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
26902 | ac_header_preproc=yes | |
a848cd7e | 26903 | ;; |
ac1cb8d3 | 26904 | no:yes:* ) |
a848cd7e SC |
26905 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
26906 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26907 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
26908 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
26909 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
26910 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
26911 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26912 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26913 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
26914 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26915 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
26916 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26917 | ( |
26918 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26919 | ## ----------------------------------------- ## |
26920 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26921 | ## ----------------------------------------- ## | |
a848cd7e SC |
26922 | _ASBOX |
26923 | ) | | |
26924 | sed "s/^/$as_me: WARNING: /" >&2 | |
26925 | ;; | |
26926 | esac | |
26927 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26928 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26929 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26931 | else | |
26932 | ac_cv_header_windows_h=$ac_header_preproc | |
26933 | fi | |
26934 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26935 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26936 | ||
26937 | fi | |
26938 | if test $ac_cv_header_windows_h = yes; then | |
26939 | : | |
26940 | else | |
26941 | ||
26942 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
26943 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
26944 | { (exit 1); exit 1; }; } | |
26945 | ||
26946 | fi | |
26947 | ||
26948 | ||
26949 | ||
26950 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
26951 | ||
26952 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
26953 | LIBS="$LIBS -loleacc" | |
26954 | fi | |
26955 | ||
26956 | case "${host}" in | |
26957 | *-*-cygwin* ) | |
26958 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
26959 | esac |
26960 | ||
26961 | if test "$wxUSE_ODBC" = "sys" ; then | |
26962 | wxUSE_ODBC = "yes" | |
26963 | fi | |
26964 | if test "$wxUSE_ODBC" = "yes" ; then | |
26965 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
26966 | cat >>confdefs.h <<\_ACEOF | |
26967 | #define wxUSE_ODBC 1 | |
26968 | _ACEOF | |
26969 | ||
26970 | fi | |
26971 | ||
370d2fd7 | 26972 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
26973 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
26974 | ||
004ee6da | 26975 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 26976 | |
a848cd7e SC |
26977 | WIN32INSTALL=win32install |
26978 | fi | |
26979 | ||
26980 | if test "$wxUSE_GUI" = "yes"; then | |
26981 | USE_GUI=1 | |
26982 | ||
26983 | GUI_TK_LIBRARY= | |
26984 | ||
26985 | WXGTK12= | |
26986 | WXGTK127= | |
26987 | WXGTK20= | |
26988 | WXGPE= | |
26989 | ||
207bc66c RN |
26990 | if test "$wxUSE_COCOA" = 1 ; then |
26991 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
26992 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
26993 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
26994 | wxUSE_PRINTING_ARCHITECTURE=no | |
26995 | fi | |
26996 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
26997 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
26998 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
26999 | wxUSE_DRAG_AND_DROP=no | |
27000 | fi | |
27001 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
27002 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
27003 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
27004 | wxUSE_DRAGIMAGE=no | |
27005 | fi | |
27006 | fi | |
27007 | ||
a848cd7e SC |
27008 | if test "$wxUSE_MSW" = 1 ; then |
27009 | TOOLKIT=MSW | |
27010 | GUIDIST=MSW_DIST | |
27011 | ||
ceec2216 | 27012 | case "${host}" in |
a848cd7e SC |
27013 | *-*-mingw32* ) |
27014 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
27015 | esac | |
27016 | fi | |
27017 | ||
27018 | if test "$wxUSE_GTK" = 1; then | |
5d7b7554 VZ |
27019 | ac_ext=c |
27020 | ac_cpp='$CPP $CPPFLAGS' | |
27021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
27024 | ||
27025 | ||
a848cd7e SC |
27026 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
27027 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
27028 | ||
27029 | gtk_version_cached=1 | |
27030 | if test "${wx_cv_lib_gtk+set}" = set; then | |
27031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27032 | else | |
27033 | ||
27034 | gtk_version_cached=0 | |
27035 | echo "$as_me:$LINENO: result: " >&5 | |
27036 | echo "${ECHO_T}" >&6 | |
27037 | ||
27038 | GTK_MODULES= | |
27039 | if test "$wxUSE_THREADS" = "yes"; then | |
27040 | GTK_MODULES=gthread | |
27041 | fi | |
27042 | ||
f597b41c | 27043 | wx_cv_lib_gtk= |
5001df0d MW |
27044 | if test "x$wxGTK_VERSION" != "x1" |
27045 | then | |
27046 | case "${host}" in | |
27047 | *-*-solaris2* ) | |
27048 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 27049 | enable_gtktest=no |
5001df0d MW |
27050 | fi |
27051 | esac | |
27052 | ||
a848cd7e SC |
27053 | # Check whether --enable-gtktest or --disable-gtktest was given. |
27054 | if test "${enable_gtktest+set}" = set; then | |
27055 | enableval="$enable_gtktest" | |
27056 | ||
27057 | else | |
27058 | enable_gtktest=yes | |
27059 | fi; | |
27060 | ||
27061 | pkg_config_args=gtk+-2.0 | |
27062 | for module in . $GTK_MODULES | |
27063 | do | |
27064 | case "$module" in | |
27065 | gthread) | |
27066 | pkg_config_args="$pkg_config_args gthread-2.0" | |
27067 | ;; | |
27068 | esac | |
27069 | done | |
27070 | ||
27071 | no_gtk="" | |
27072 | ||
27073 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27074 | set dummy pkg-config; ac_word=$2 | |
27075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27077 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27079 | else | |
27080 | case $PKG_CONFIG in | |
27081 | [\\/]* | ?:[\\/]*) | |
27082 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27083 | ;; | |
27084 | *) | |
27085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27086 | for as_dir in $PATH | |
27087 | do | |
27088 | IFS=$as_save_IFS | |
27089 | test -z "$as_dir" && as_dir=. | |
27090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27091 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27092 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27094 | break 2 | |
27095 | fi | |
27096 | done | |
27097 | done | |
27098 | ||
27099 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27100 | ;; | |
27101 | esac | |
27102 | fi | |
27103 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27104 | ||
27105 | if test -n "$PKG_CONFIG"; then | |
27106 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27107 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27108 | else | |
27109 | echo "$as_me:$LINENO: result: no" >&5 | |
27110 | echo "${ECHO_T}no" >&6 | |
27111 | fi | |
27112 | ||
27113 | ||
27114 | if test x$PKG_CONFIG != xno ; then | |
27115 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
27116 | : | |
27117 | else | |
c2218763 | 27118 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
27119 | no_gtk=yes |
27120 | PKG_CONFIG=no | |
27121 | fi | |
27122 | else | |
27123 | no_gtk=yes | |
27124 | fi | |
27125 | ||
27126 | min_gtk_version=2.0.0 | |
27127 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
27128 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
27129 | ||
27130 | if test x$PKG_CONFIG != xno ; then | |
27131 | ## don't try to run the test against uninstalled libtool libs | |
27132 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
27133 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
27134 | enable_gtktest=no | |
27135 | fi | |
27136 | ||
27137 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
27138 | : | |
27139 | else | |
27140 | no_gtk=yes | |
27141 | fi | |
27142 | fi | |
27143 | ||
27144 | if test x"$no_gtk" = x ; then | |
27145 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
27146 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
27147 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27148 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27149 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27150 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27151 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27152 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27153 | if test "x$enable_gtktest" = "xyes" ; then | |
27154 | ac_save_CFLAGS="$CFLAGS" | |
27155 | ac_save_LIBS="$LIBS" | |
27156 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27157 | LIBS="$GTK_LIBS $LIBS" | |
27158 | rm -f conf.gtktest | |
27159 | if test "$cross_compiling" = yes; then | |
27160 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27161 | else | |
27162 | cat >conftest.$ac_ext <<_ACEOF | |
27163 | /* confdefs.h. */ | |
27164 | _ACEOF | |
27165 | cat confdefs.h >>conftest.$ac_ext | |
27166 | cat >>conftest.$ac_ext <<_ACEOF | |
27167 | /* end confdefs.h. */ | |
27168 | ||
27169 | #include <gtk/gtk.h> | |
27170 | #include <stdio.h> | |
27171 | #include <stdlib.h> | |
27172 | ||
27173 | int | |
27174 | main () | |
27175 | { | |
27176 | int major, minor, micro; | |
27177 | char *tmp_version; | |
27178 | ||
27179 | system ("touch conf.gtktest"); | |
27180 | ||
27181 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27182 | tmp_version = g_strdup("$min_gtk_version"); | |
27183 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27184 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27185 | exit(1); | |
27186 | } | |
27187 | ||
27188 | if ((gtk_major_version != $gtk_config_major_version) || | |
27189 | (gtk_minor_version != $gtk_config_minor_version) || | |
27190 | (gtk_micro_version != $gtk_config_micro_version)) | |
27191 | { | |
27192 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27193 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27194 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27195 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
27196 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27197 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27198 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27199 | printf("*** required on your system.\n"); | |
27200 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
27201 | printf("*** to point to the correct configuration files\n"); | |
27202 | } | |
27203 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27204 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27205 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27206 | { | |
27207 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27208 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27209 | printf("*** library (version %d.%d.%d)\n", | |
27210 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27211 | } | |
27212 | else | |
27213 | { | |
27214 | if ((gtk_major_version > major) || | |
27215 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27216 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27217 | { | |
27218 | return 0; | |
27219 | } | |
27220 | else | |
27221 | { | |
27222 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27223 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27224 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27225 | major, minor, micro); | |
27226 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27227 | printf("***\n"); | |
27228 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27229 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
27230 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27231 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
27232 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
27233 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27234 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27235 | } | |
27236 | } | |
27237 | return 1; | |
27238 | } | |
27239 | ||
27240 | _ACEOF | |
27241 | rm -f conftest$ac_exeext | |
27242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27243 | (eval $ac_link) 2>&5 | |
27244 | ac_status=$? | |
27245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27246 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27248 | (eval $ac_try) 2>&5 | |
27249 | ac_status=$? | |
27250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27251 | (exit $ac_status); }; }; then | |
27252 | : | |
27253 | else | |
27254 | echo "$as_me: program exited with status $ac_status" >&5 | |
27255 | echo "$as_me: failed program was:" >&5 | |
27256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27257 | ||
27258 | ( exit $ac_status ) | |
27259 | no_gtk=yes | |
27260 | fi | |
ac1cb8d3 | 27261 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27262 | fi |
27263 | CFLAGS="$ac_save_CFLAGS" | |
27264 | LIBS="$ac_save_LIBS" | |
27265 | fi | |
27266 | fi | |
27267 | if test "x$no_gtk" = x ; then | |
27268 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
27269 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
27270 | wx_cv_lib_gtk=2.0 | |
27271 | else | |
27272 | echo "$as_me:$LINENO: result: no" >&5 | |
27273 | echo "${ECHO_T}no" >&6 | |
27274 | if test "$PKG_CONFIG" = "no" ; then | |
27275 | echo "*** A new enough version of pkg-config was not found." | |
27276 | echo "*** See http://pkgconfig.sourceforge.net" | |
27277 | else | |
27278 | if test -f conf.gtktest ; then | |
27279 | : | |
27280 | else | |
27281 | echo "*** Could not run GTK+ test program, checking why..." | |
27282 | ac_save_CFLAGS="$CFLAGS" | |
27283 | ac_save_LIBS="$LIBS" | |
27284 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27285 | LIBS="$LIBS $GTK_LIBS" | |
27286 | cat >conftest.$ac_ext <<_ACEOF | |
27287 | /* confdefs.h. */ | |
27288 | _ACEOF | |
27289 | cat confdefs.h >>conftest.$ac_ext | |
27290 | cat >>conftest.$ac_ext <<_ACEOF | |
27291 | /* end confdefs.h. */ | |
27292 | ||
27293 | #include <gtk/gtk.h> | |
27294 | #include <stdio.h> | |
27295 | ||
27296 | int | |
27297 | main () | |
27298 | { | |
27299 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27300 | ; | |
27301 | return 0; | |
27302 | } | |
27303 | _ACEOF | |
27304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27306 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27307 | ac_status=$? |
ac1cb8d3 VS |
27308 | grep -v '^ *+' conftest.er1 >conftest.err |
27309 | rm -f conftest.er1 | |
27310 | cat conftest.err >&5 | |
a848cd7e SC |
27311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27312 | (exit $ac_status); } && | |
3f60522a JS |
27313 | { ac_try='test -z "$ac_c_werror_flag" |
27314 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27316 | (eval $ac_try) 2>&5 | |
27317 | ac_status=$? | |
27318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27319 | (exit $ac_status); }; } && | |
27320 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27322 | (eval $ac_try) 2>&5 | |
27323 | ac_status=$? | |
27324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27325 | (exit $ac_status); }; }; then | |
27326 | echo "*** The test program compiled, but did not run. This usually means" | |
27327 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
27328 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
27329 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27330 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27331 | echo "*** is required on your system" | |
27332 | echo "***" | |
27333 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27334 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27335 | else | |
27336 | echo "$as_me: failed program was:" >&5 | |
27337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27338 | ||
27339 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27340 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
27341 | fi | |
ac1cb8d3 VS |
27342 | rm -f conftest.err conftest.$ac_objext \ |
27343 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27344 | CFLAGS="$ac_save_CFLAGS" |
27345 | LIBS="$ac_save_LIBS" | |
27346 | fi | |
27347 | fi | |
27348 | GTK_CFLAGS="" | |
27349 | GTK_LIBS="" | |
27350 | : | |
27351 | fi | |
27352 | ||
27353 | ||
27354 | rm -f conf.gtktest | |
27355 | ||
5001df0d MW |
27356 | |
27357 | case "${host}" in | |
27358 | *-*-solaris2* ) | |
27359 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
27360 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
27361 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
27362 | fi | |
27363 | if test "$wxUSE_SHARED" != "yes"; then | |
27364 | GTK_LIBS="$GTK_LIBS -lX11" | |
27365 | fi | |
27366 | esac | |
f597b41c MW |
27367 | fi |
27368 | ||
f34ca037 MW |
27369 | if test -z "$wx_cv_lib_gtk"; then |
27370 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
27371 | |
27372 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27373 | if test "${with_gtk_prefix+set}" = set; then | |
27374 | withval="$with_gtk_prefix" | |
27375 | gtk_config_prefix="$withval" | |
27376 | else | |
27377 | gtk_config_prefix="" | |
27378 | fi; | |
27379 | ||
27380 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27381 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27382 | withval="$with_gtk_exec_prefix" | |
27383 | gtk_config_exec_prefix="$withval" | |
27384 | else | |
27385 | gtk_config_exec_prefix="" | |
27386 | fi; | |
27387 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27388 | if test "${enable_gtktest+set}" = set; then | |
27389 | enableval="$enable_gtktest" | |
27390 | ||
27391 | else | |
27392 | enable_gtktest=yes | |
27393 | fi; | |
27394 | ||
27395 | for module in . $GTK_MODULES | |
27396 | do | |
27397 | case "$module" in | |
27398 | gthread) | |
27399 | gtk_config_args="$gtk_config_args gthread" | |
27400 | ;; | |
27401 | esac | |
27402 | done | |
27403 | ||
27404 | if test x$gtk_config_exec_prefix != x ; then | |
27405 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27406 | if test x${GTK_CONFIG+set} != xset ; then | |
27407 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27408 | fi | |
27409 | fi | |
27410 | if test x$gtk_config_prefix != x ; then | |
27411 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27412 | if test x${GTK_CONFIG+set} != xset ; then | |
27413 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27414 | fi | |
27415 | fi | |
27416 | ||
27417 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27418 | set dummy gtk-config; ac_word=$2 | |
27419 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27421 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27423 | else | |
27424 | case $GTK_CONFIG in | |
27425 | [\\/]* | ?:[\\/]*) | |
27426 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27427 | ;; | |
27428 | *) | |
27429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27430 | for as_dir in $PATH | |
27431 | do | |
27432 | IFS=$as_save_IFS | |
27433 | test -z "$as_dir" && as_dir=. | |
27434 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27435 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27436 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27437 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27438 | break 2 | |
27439 | fi | |
27440 | done | |
27441 | done | |
27442 | ||
27443 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27444 | ;; | |
27445 | esac | |
27446 | fi | |
27447 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27448 | ||
27449 | if test -n "$GTK_CONFIG"; then | |
27450 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27451 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27452 | else | |
27453 | echo "$as_me:$LINENO: result: no" >&5 | |
27454 | echo "${ECHO_T}no" >&6 | |
27455 | fi | |
27456 | ||
27457 | min_gtk_version=1.2.7 | |
27458 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27459 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27460 | no_gtk="" | |
27461 | if test "$GTK_CONFIG" = "no" ; then | |
27462 | no_gtk=yes | |
27463 | else | |
27464 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27465 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27466 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27467 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27468 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27469 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27470 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27471 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27472 | if test "x$enable_gtktest" = "xyes" ; then | |
27473 | ac_save_CFLAGS="$CFLAGS" | |
27474 | ac_save_LIBS="$LIBS" | |
27475 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27476 | LIBS="$GTK_LIBS $LIBS" | |
27477 | rm -f conf.gtktest | |
27478 | if test "$cross_compiling" = yes; then | |
27479 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27480 | else | |
27481 | cat >conftest.$ac_ext <<_ACEOF | |
27482 | /* confdefs.h. */ | |
27483 | _ACEOF | |
27484 | cat confdefs.h >>conftest.$ac_ext | |
27485 | cat >>conftest.$ac_ext <<_ACEOF | |
27486 | /* end confdefs.h. */ | |
27487 | ||
27488 | #include <gtk/gtk.h> | |
27489 | #include <stdio.h> | |
27490 | #include <stdlib.h> | |
27491 | ||
27492 | int | |
27493 | main () | |
27494 | { | |
27495 | int major, minor, micro; | |
27496 | char *tmp_version; | |
27497 | ||
27498 | system ("touch conf.gtktest"); | |
27499 | ||
27500 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27501 | tmp_version = g_strdup("$min_gtk_version"); | |
27502 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27503 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27504 | exit(1); | |
27505 | } | |
27506 | ||
27507 | if ((gtk_major_version != $gtk_config_major_version) || | |
27508 | (gtk_minor_version != $gtk_config_minor_version) || | |
27509 | (gtk_micro_version != $gtk_config_micro_version)) | |
27510 | { | |
27511 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27512 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27513 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27514 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27515 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27516 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27517 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27518 | printf("*** required on your system.\n"); | |
27519 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27520 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27521 | printf("*** before re-running configure\n"); | |
27522 | } | |
27523 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27524 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27525 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27526 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27527 | { | |
27528 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27529 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27530 | printf("*** library (version %d.%d.%d)\n", | |
27531 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27532 | } | |
27533 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27534 | else | |
27535 | { | |
27536 | if ((gtk_major_version > major) || | |
27537 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27538 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27539 | { | |
27540 | return 0; | |
27541 | } | |
27542 | else | |
27543 | { | |
27544 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27545 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27546 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27547 | major, minor, micro); | |
27548 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27549 | printf("***\n"); | |
27550 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27551 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27552 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27553 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27554 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27555 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27556 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27557 | } | |
27558 | } | |
27559 | return 1; | |
27560 | } | |
27561 | ||
27562 | _ACEOF | |
27563 | rm -f conftest$ac_exeext | |
27564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27565 | (eval $ac_link) 2>&5 | |
27566 | ac_status=$? | |
27567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27568 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27570 | (eval $ac_try) 2>&5 | |
27571 | ac_status=$? | |
27572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27573 | (exit $ac_status); }; }; then | |
27574 | : | |
27575 | else | |
27576 | echo "$as_me: program exited with status $ac_status" >&5 | |
27577 | echo "$as_me: failed program was:" >&5 | |
27578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27579 | ||
27580 | ( exit $ac_status ) | |
27581 | no_gtk=yes | |
27582 | fi | |
ac1cb8d3 | 27583 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27584 | fi |
27585 | CFLAGS="$ac_save_CFLAGS" | |
27586 | LIBS="$ac_save_LIBS" | |
27587 | fi | |
27588 | fi | |
27589 | if test "x$no_gtk" = x ; then | |
27590 | echo "$as_me:$LINENO: result: yes" >&5 | |
27591 | echo "${ECHO_T}yes" >&6 | |
27592 | wx_cv_lib_gtk=1.2.7 | |
27593 | else | |
27594 | echo "$as_me:$LINENO: result: no" >&5 | |
27595 | echo "${ECHO_T}no" >&6 | |
27596 | if test "$GTK_CONFIG" = "no" ; then | |
27597 | echo "*** The gtk-config script installed by GTK could not be found" | |
27598 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27599 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27600 | echo "*** full path to gtk-config." | |
27601 | else | |
27602 | if test -f conf.gtktest ; then | |
27603 | : | |
27604 | else | |
27605 | echo "*** Could not run GTK test program, checking why..." | |
27606 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27607 | LIBS="$LIBS $GTK_LIBS" | |
27608 | cat >conftest.$ac_ext <<_ACEOF | |
27609 | /* confdefs.h. */ | |
27610 | _ACEOF | |
27611 | cat confdefs.h >>conftest.$ac_ext | |
27612 | cat >>conftest.$ac_ext <<_ACEOF | |
27613 | /* end confdefs.h. */ | |
27614 | ||
27615 | #include <gtk/gtk.h> | |
27616 | #include <stdio.h> | |
27617 | ||
27618 | int | |
27619 | main () | |
27620 | { | |
27621 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27622 | ; | |
27623 | return 0; | |
27624 | } | |
27625 | _ACEOF | |
27626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27628 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27629 | ac_status=$? |
ac1cb8d3 VS |
27630 | grep -v '^ *+' conftest.er1 >conftest.err |
27631 | rm -f conftest.er1 | |
27632 | cat conftest.err >&5 | |
a848cd7e SC |
27633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27634 | (exit $ac_status); } && | |
3f60522a JS |
27635 | { ac_try='test -z "$ac_c_werror_flag" |
27636 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27638 | (eval $ac_try) 2>&5 | |
27639 | ac_status=$? | |
27640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27641 | (exit $ac_status); }; } && | |
27642 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27644 | (eval $ac_try) 2>&5 | |
27645 | ac_status=$? | |
27646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27647 | (exit $ac_status); }; }; then | |
27648 | echo "*** The test program compiled, but did not run. This usually means" | |
27649 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27650 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27651 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27652 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27653 | echo "*** is required on your system" | |
27654 | echo "***" | |
27655 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27656 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27657 | echo "***" | |
27658 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27659 | echo "*** came with the system with the command" | |
27660 | echo "***" | |
27661 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27662 | else | |
27663 | echo "$as_me: failed program was:" >&5 | |
27664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27665 | ||
27666 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27667 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27668 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27669 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27670 | fi | |
ac1cb8d3 VS |
27671 | rm -f conftest.err conftest.$ac_objext \ |
27672 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27673 | CFLAGS="$ac_save_CFLAGS" |
27674 | LIBS="$ac_save_LIBS" | |
27675 | fi | |
27676 | fi | |
27677 | GTK_CFLAGS="" | |
27678 | GTK_LIBS="" | |
27679 | : | |
27680 | fi | |
27681 | ||
27682 | ||
27683 | rm -f conf.gtktest | |
27684 | ||
27685 | ||
f34ca037 | 27686 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
27687 | |
27688 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27689 | if test "${with_gtk_prefix+set}" = set; then | |
27690 | withval="$with_gtk_prefix" | |
27691 | gtk_config_prefix="$withval" | |
27692 | else | |
27693 | gtk_config_prefix="" | |
27694 | fi; | |
27695 | ||
27696 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27697 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27698 | withval="$with_gtk_exec_prefix" | |
27699 | gtk_config_exec_prefix="$withval" | |
27700 | else | |
27701 | gtk_config_exec_prefix="" | |
27702 | fi; | |
27703 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27704 | if test "${enable_gtktest+set}" = set; then | |
27705 | enableval="$enable_gtktest" | |
27706 | ||
27707 | else | |
27708 | enable_gtktest=yes | |
27709 | fi; | |
27710 | ||
27711 | for module in . $GTK_MODULES | |
27712 | do | |
27713 | case "$module" in | |
27714 | gthread) | |
27715 | gtk_config_args="$gtk_config_args gthread" | |
27716 | ;; | |
27717 | esac | |
27718 | done | |
27719 | ||
27720 | if test x$gtk_config_exec_prefix != x ; then | |
27721 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27722 | if test x${GTK_CONFIG+set} != xset ; then | |
27723 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27724 | fi | |
27725 | fi | |
27726 | if test x$gtk_config_prefix != x ; then | |
27727 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27728 | if test x${GTK_CONFIG+set} != xset ; then | |
27729 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27730 | fi | |
27731 | fi | |
27732 | ||
27733 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27734 | set dummy gtk-config; ac_word=$2 | |
27735 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27737 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27739 | else | |
27740 | case $GTK_CONFIG in | |
27741 | [\\/]* | ?:[\\/]*) | |
27742 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27743 | ;; | |
27744 | *) | |
27745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27746 | for as_dir in $PATH | |
27747 | do | |
27748 | IFS=$as_save_IFS | |
27749 | test -z "$as_dir" && as_dir=. | |
27750 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27751 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27752 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27753 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27754 | break 2 | |
27755 | fi | |
27756 | done | |
27757 | done | |
27758 | ||
27759 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27760 | ;; | |
27761 | esac | |
27762 | fi | |
27763 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27764 | ||
27765 | if test -n "$GTK_CONFIG"; then | |
27766 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27767 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27768 | else | |
27769 | echo "$as_me:$LINENO: result: no" >&5 | |
27770 | echo "${ECHO_T}no" >&6 | |
27771 | fi | |
27772 | ||
27773 | min_gtk_version=1.2.3 | |
27774 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27775 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27776 | no_gtk="" | |
27777 | if test "$GTK_CONFIG" = "no" ; then | |
27778 | no_gtk=yes | |
27779 | else | |
27780 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27781 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27782 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27783 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27784 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27785 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27786 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27787 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27788 | if test "x$enable_gtktest" = "xyes" ; then | |
27789 | ac_save_CFLAGS="$CFLAGS" | |
27790 | ac_save_LIBS="$LIBS" | |
27791 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27792 | LIBS="$GTK_LIBS $LIBS" | |
27793 | rm -f conf.gtktest | |
27794 | if test "$cross_compiling" = yes; then | |
27795 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27796 | else | |
27797 | cat >conftest.$ac_ext <<_ACEOF | |
27798 | /* confdefs.h. */ | |
27799 | _ACEOF | |
27800 | cat confdefs.h >>conftest.$ac_ext | |
27801 | cat >>conftest.$ac_ext <<_ACEOF | |
27802 | /* end confdefs.h. */ | |
27803 | ||
27804 | #include <gtk/gtk.h> | |
27805 | #include <stdio.h> | |
27806 | #include <stdlib.h> | |
27807 | ||
27808 | int | |
27809 | main () | |
27810 | { | |
27811 | int major, minor, micro; | |
27812 | char *tmp_version; | |
27813 | ||
27814 | system ("touch conf.gtktest"); | |
27815 | ||
27816 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27817 | tmp_version = g_strdup("$min_gtk_version"); | |
27818 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27819 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27820 | exit(1); | |
27821 | } | |
27822 | ||
27823 | if ((gtk_major_version != $gtk_config_major_version) || | |
27824 | (gtk_minor_version != $gtk_config_minor_version) || | |
27825 | (gtk_micro_version != $gtk_config_micro_version)) | |
27826 | { | |
27827 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27828 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27829 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27830 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27831 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27832 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27833 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27834 | printf("*** required on your system.\n"); | |
27835 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27836 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27837 | printf("*** before re-running configure\n"); | |
27838 | } | |
27839 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27840 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27841 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27842 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27843 | { | |
27844 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27845 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27846 | printf("*** library (version %d.%d.%d)\n", | |
27847 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27848 | } | |
27849 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27850 | else | |
27851 | { | |
27852 | if ((gtk_major_version > major) || | |
27853 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27854 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27855 | { | |
27856 | return 0; | |
27857 | } | |
27858 | else | |
27859 | { | |
27860 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27861 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27862 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27863 | major, minor, micro); | |
27864 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27865 | printf("***\n"); | |
27866 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27867 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27868 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27869 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27870 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27871 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27872 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27873 | } | |
27874 | } | |
27875 | return 1; | |
27876 | } | |
27877 | ||
27878 | _ACEOF | |
27879 | rm -f conftest$ac_exeext | |
27880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27881 | (eval $ac_link) 2>&5 | |
27882 | ac_status=$? | |
27883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27884 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27886 | (eval $ac_try) 2>&5 | |
27887 | ac_status=$? | |
27888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27889 | (exit $ac_status); }; }; then | |
27890 | : | |
27891 | else | |
27892 | echo "$as_me: program exited with status $ac_status" >&5 | |
27893 | echo "$as_me: failed program was:" >&5 | |
27894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27895 | ||
27896 | ( exit $ac_status ) | |
27897 | no_gtk=yes | |
27898 | fi | |
ac1cb8d3 | 27899 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27900 | fi |
27901 | CFLAGS="$ac_save_CFLAGS" | |
27902 | LIBS="$ac_save_LIBS" | |
27903 | fi | |
27904 | fi | |
27905 | if test "x$no_gtk" = x ; then | |
27906 | echo "$as_me:$LINENO: result: yes" >&5 | |
27907 | echo "${ECHO_T}yes" >&6 | |
27908 | wx_cv_lib_gtk=1.2.3 | |
27909 | else | |
27910 | echo "$as_me:$LINENO: result: no" >&5 | |
27911 | echo "${ECHO_T}no" >&6 | |
27912 | if test "$GTK_CONFIG" = "no" ; then | |
27913 | echo "*** The gtk-config script installed by GTK could not be found" | |
27914 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27915 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27916 | echo "*** full path to gtk-config." | |
27917 | else | |
27918 | if test -f conf.gtktest ; then | |
27919 | : | |
27920 | else | |
27921 | echo "*** Could not run GTK test program, checking why..." | |
27922 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27923 | LIBS="$LIBS $GTK_LIBS" | |
27924 | cat >conftest.$ac_ext <<_ACEOF | |
27925 | /* confdefs.h. */ | |
27926 | _ACEOF | |
27927 | cat confdefs.h >>conftest.$ac_ext | |
27928 | cat >>conftest.$ac_ext <<_ACEOF | |
27929 | /* end confdefs.h. */ | |
27930 | ||
27931 | #include <gtk/gtk.h> | |
27932 | #include <stdio.h> | |
27933 | ||
27934 | int | |
27935 | main () | |
27936 | { | |
27937 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27938 | ; | |
27939 | return 0; | |
27940 | } | |
27941 | _ACEOF | |
27942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27944 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27945 | ac_status=$? |
ac1cb8d3 VS |
27946 | grep -v '^ *+' conftest.er1 >conftest.err |
27947 | rm -f conftest.er1 | |
27948 | cat conftest.err >&5 | |
a848cd7e SC |
27949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27950 | (exit $ac_status); } && | |
3f60522a JS |
27951 | { ac_try='test -z "$ac_c_werror_flag" |
27952 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27954 | (eval $ac_try) 2>&5 | |
27955 | ac_status=$? | |
27956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27957 | (exit $ac_status); }; } && | |
27958 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27960 | (eval $ac_try) 2>&5 | |
27961 | ac_status=$? | |
27962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27963 | (exit $ac_status); }; }; then | |
27964 | echo "*** The test program compiled, but did not run. This usually means" | |
27965 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27966 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27967 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27968 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27969 | echo "*** is required on your system" | |
27970 | echo "***" | |
27971 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27972 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27973 | echo "***" | |
27974 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27975 | echo "*** came with the system with the command" | |
27976 | echo "***" | |
27977 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27978 | else | |
27979 | echo "$as_me: failed program was:" >&5 | |
27980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27981 | ||
27982 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27983 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27984 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27985 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27986 | fi | |
ac1cb8d3 VS |
27987 | rm -f conftest.err conftest.$ac_objext \ |
27988 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27989 | CFLAGS="$ac_save_CFLAGS" |
27990 | LIBS="$ac_save_LIBS" | |
27991 | fi | |
27992 | fi | |
27993 | GTK_CFLAGS="" | |
27994 | GTK_LIBS="" | |
27995 | : | |
27996 | fi | |
27997 | ||
27998 | ||
27999 | rm -f conf.gtktest | |
28000 | ||
f34ca037 | 28001 | fi |
a848cd7e SC |
28002 | fi |
28003 | fi | |
28004 | ||
28005 | if test -z "$wx_cv_lib_gtk"; then | |
28006 | wx_cv_lib_gtk=none | |
28007 | else | |
28008 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 28009 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
28010 | fi |
28011 | ||
28012 | ||
28013 | fi | |
28014 | ||
28015 | ||
28016 | if test "$gtk_version_cached" = 1; then | |
28017 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
28018 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
28019 | fi | |
28020 | ||
28021 | case "$wx_cv_lib_gtk" in | |
28022 | 2.0) WXGTK20=1 | |
28023 | TOOLKIT_VERSION=2 | |
28024 | ;; | |
28025 | 1.2.7) WXGTK127=1 | |
28026 | WXGTK12=1 | |
28027 | ;; | |
28028 | 1.2.3) WXGTK12=1 | |
28029 | ;; | |
28030 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
28031 | The development files for GTK+ were not found. For GTK+ 2, please |
28032 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
28033 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
28034 | and that the version is 1.2.3 or above. Also check that the | |
28035 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
28036 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
28037 | " >&5 |
28038 | echo "$as_me: error: | |
f597b41c MW |
28039 | The development files for GTK+ were not found. For GTK+ 2, please |
28040 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
28041 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
28042 | and that the version is 1.2.3 or above. Also check that the | |
28043 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
28044 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
28045 | " >&2;} |
28046 | { (exit 1); exit 1; }; } | |
28047 | ;; | |
28048 | esac | |
28049 | ||
28050 | if test "$WXGTK20" = 1; then | |
6954625c | 28051 | save_CFLAGS="$CFLAGS" |
304205f1 | 28052 | save_LIBS="$LIBS" |
6954625c | 28053 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 28054 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 28055 | |
d12aef51 VZ |
28056 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
28057 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
28058 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
28059 | /* confdefs.h. */ |
28060 | _ACEOF | |
28061 | cat confdefs.h >>conftest.$ac_ext | |
28062 | cat >>conftest.$ac_ext <<_ACEOF | |
28063 | /* end confdefs.h. */ | |
304205f1 | 28064 | |
d12aef51 | 28065 | #include <gtk/gtk.h> |
304205f1 | 28066 | |
d12aef51 VZ |
28067 | int |
28068 | main () | |
28069 | { | |
304205f1 | 28070 | |
d12aef51 | 28071 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
28072 | |
28073 | ; | |
28074 | return 0; | |
28075 | } | |
28076 | _ACEOF | |
28077 | rm -f conftest.$ac_objext | |
28078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28079 | (eval $ac_compile) 2>conftest.er1 | |
28080 | ac_status=$? | |
28081 | grep -v '^ *+' conftest.er1 >conftest.err | |
28082 | rm -f conftest.er1 | |
28083 | cat conftest.err >&5 | |
28084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28085 | (exit $ac_status); } && | |
3f60522a JS |
28086 | { ac_try='test -z "$ac_c_werror_flag" |
28087 | || test ! -s conftest.err' | |
abc736fd MW |
28088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28089 | (eval $ac_try) 2>&5 | |
28090 | ac_status=$? | |
28091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28092 | (exit $ac_status); }; } && | |
28093 | { ac_try='test -s conftest.$ac_objext' | |
28094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28095 | (eval $ac_try) 2>&5 | |
28096 | ac_status=$? | |
28097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28098 | (exit $ac_status); }; }; then | |
28099 | ||
28100 | echo "$as_me:$LINENO: result: no" >&5 | |
28101 | echo "${ECHO_T}no" >&6 | |
28102 | ||
28103 | else | |
28104 | echo "$as_me: failed program was:" >&5 | |
28105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28106 | ||
28107 | ||
28108 | cat >>confdefs.h <<\_ACEOF | |
28109 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
28110 | _ACEOF | |
28111 | ||
28112 | echo "$as_me:$LINENO: result: yes" >&5 | |
28113 | echo "${ECHO_T}yes" >&6 | |
28114 | ||
28115 | fi | |
28116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28117 | ||
e9263684 VZ |
28118 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5 |
28119 | echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6 | |
28120 | cat >conftest.$ac_ext <<_ACEOF | |
28121 | /* confdefs.h. */ | |
28122 | _ACEOF | |
28123 | cat confdefs.h >>conftest.$ac_ext | |
28124 | cat >>conftest.$ac_ext <<_ACEOF | |
28125 | /* end confdefs.h. */ | |
28126 | ||
28127 | #include <gtk/gtk.h> | |
28128 | ||
28129 | int | |
28130 | main () | |
28131 | { | |
28132 | ||
28133 | #if !GTK_CHECK_VERSION(2,6,0) | |
28134 | Not GTK+ 2.6 | |
28135 | #endif | |
28136 | ||
28137 | ; | |
28138 | return 0; | |
28139 | } | |
28140 | _ACEOF | |
28141 | rm -f conftest.$ac_objext | |
28142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28143 | (eval $ac_compile) 2>conftest.er1 | |
28144 | ac_status=$? | |
28145 | grep -v '^ *+' conftest.er1 >conftest.err | |
28146 | rm -f conftest.er1 | |
28147 | cat conftest.err >&5 | |
28148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28149 | (exit $ac_status); } && | |
3f60522a JS |
28150 | { ac_try='test -z "$ac_c_werror_flag" |
28151 | || test ! -s conftest.err' | |
e9263684 VZ |
28152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28153 | (eval $ac_try) 2>&5 | |
28154 | ac_status=$? | |
28155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28156 | (exit $ac_status); }; } && | |
28157 | { ac_try='test -s conftest.$ac_objext' | |
28158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28159 | (eval $ac_try) 2>&5 | |
28160 | ac_status=$? | |
28161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28162 | (exit $ac_status); }; }; then | |
28163 | ||
28164 | cat >>confdefs.h <<\_ACEOF | |
28165 | #define __WXGTK26__ 1 | |
28166 | _ACEOF | |
28167 | ||
28168 | cat >>confdefs.h <<\_ACEOF | |
28169 | #define __WXGTK24__ 1 | |
28170 | _ACEOF | |
28171 | ||
28172 | echo "$as_me:$LINENO: result: yes" >&5 | |
28173 | echo "${ECHO_T}yes" >&6 | |
28174 | ac_wxgtk26=1 | |
28175 | ||
28176 | else | |
28177 | echo "$as_me: failed program was:" >&5 | |
28178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28179 | ||
28180 | ||
28181 | echo "$as_me:$LINENO: result: no" >&5 | |
28182 | echo "${ECHO_T}no" >&6 | |
28183 | ac_wxgtk26=0 | |
28184 | ||
28185 | fi | |
28186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28187 | ||
28188 | if test "$ac_wxgtk26" = 0; then | |
9755e73b VS |
28189 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
28190 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
28191 | cat >conftest.$ac_ext <<_ACEOF | |
28192 | /* confdefs.h. */ | |
28193 | _ACEOF | |
28194 | cat confdefs.h >>conftest.$ac_ext | |
28195 | cat >>conftest.$ac_ext <<_ACEOF | |
28196 | /* end confdefs.h. */ | |
28197 | ||
28198 | #include <gtk/gtk.h> | |
28199 | ||
28200 | int | |
28201 | main () | |
28202 | { | |
28203 | ||
28204 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 28205 | Not GTK+ 2.4 |
9755e73b VS |
28206 | #endif |
28207 | ||
28208 | ; | |
28209 | return 0; | |
28210 | } | |
28211 | _ACEOF | |
28212 | rm -f conftest.$ac_objext | |
28213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28214 | (eval $ac_compile) 2>conftest.er1 | |
28215 | ac_status=$? | |
28216 | grep -v '^ *+' conftest.er1 >conftest.err | |
28217 | rm -f conftest.er1 | |
28218 | cat conftest.err >&5 | |
28219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28220 | (exit $ac_status); } && | |
3f60522a JS |
28221 | { ac_try='test -z "$ac_c_werror_flag" |
28222 | || test ! -s conftest.err' | |
9755e73b VS |
28223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28224 | (eval $ac_try) 2>&5 | |
28225 | ac_status=$? | |
28226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28227 | (exit $ac_status); }; } && | |
28228 | { ac_try='test -s conftest.$ac_objext' | |
28229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28230 | (eval $ac_try) 2>&5 | |
28231 | ac_status=$? | |
28232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28233 | (exit $ac_status); }; }; then | |
28234 | ||
28235 | cat >>confdefs.h <<\_ACEOF | |
28236 | #define __WXGTK24__ 1 | |
28237 | _ACEOF | |
28238 | ||
28239 | echo "$as_me:$LINENO: result: yes" >&5 | |
28240 | echo "${ECHO_T}yes" >&6 | |
28241 | ||
28242 | else | |
28243 | echo "$as_me: failed program was:" >&5 | |
28244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28245 | ||
28246 | ||
28247 | echo "$as_me:$LINENO: result: no" >&5 | |
28248 | echo "${ECHO_T}no" >&6 | |
28249 | ||
28250 | fi | |
28251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
e9263684 | 28252 | fi |
9755e73b | 28253 | |
6954625c | 28254 | CFLAGS="$save_CFLAGS" |
304205f1 | 28255 | LIBS="$save_LIBS" |
a848cd7e SC |
28256 | else |
28257 | if test "$wxUSE_UNICODE" = "yes"; then | |
28258 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
28259 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
28260 | wxUSE_UNICODE=no | |
28261 | fi | |
28262 | fi | |
28263 | ||
e56f4f9e VZ |
28264 | ac_ext=cc |
28265 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28266 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28267 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28268 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28269 | ||
28270 | ||
a848cd7e SC |
28271 | if test "$USE_DARWIN" != 1; then |
28272 | ||
28273 | for ac_func in poll | |
28274 | do | |
28275 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28276 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28277 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28278 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28280 | else | |
28281 | cat >conftest.$ac_ext <<_ACEOF | |
28282 | /* confdefs.h. */ | |
28283 | _ACEOF | |
28284 | cat confdefs.h >>conftest.$ac_ext | |
28285 | cat >>conftest.$ac_ext <<_ACEOF | |
28286 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28287 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28288 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28289 | #define $ac_func innocuous_$ac_func | |
28290 | ||
a848cd7e SC |
28291 | /* System header to define __stub macros and hopefully few prototypes, |
28292 | which can conflict with char $ac_func (); below. | |
28293 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28294 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28295 | |
a848cd7e SC |
28296 | #ifdef __STDC__ |
28297 | # include <limits.h> | |
28298 | #else | |
28299 | # include <assert.h> | |
28300 | #endif | |
ac1cb8d3 VS |
28301 | |
28302 | #undef $ac_func | |
28303 | ||
a848cd7e SC |
28304 | /* Override any gcc2 internal prototype to avoid an error. */ |
28305 | #ifdef __cplusplus | |
28306 | extern "C" | |
28307 | { | |
28308 | #endif | |
28309 | /* We use char because int might match the return type of a gcc2 | |
28310 | builtin and then its argument prototype would still apply. */ | |
28311 | char $ac_func (); | |
28312 | /* The GNU C library defines this for functions which it implements | |
28313 | to always fail with ENOSYS. Some functions are actually named | |
28314 | something starting with __ and the normal name is an alias. */ | |
28315 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28316 | choke me | |
28317 | #else | |
28318 | char (*f) () = $ac_func; | |
28319 | #endif | |
28320 | #ifdef __cplusplus | |
28321 | } | |
28322 | #endif | |
28323 | ||
28324 | int | |
28325 | main () | |
28326 | { | |
28327 | return f != $ac_func; | |
28328 | ; | |
28329 | return 0; | |
28330 | } | |
28331 | _ACEOF | |
28332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28334 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28335 | ac_status=$? |
ac1cb8d3 VS |
28336 | grep -v '^ *+' conftest.er1 >conftest.err |
28337 | rm -f conftest.er1 | |
28338 | cat conftest.err >&5 | |
a848cd7e SC |
28339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28340 | (exit $ac_status); } && | |
3f60522a JS |
28341 | { ac_try='test -z "$ac_cxx_werror_flag" |
28342 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28344 | (eval $ac_try) 2>&5 | |
28345 | ac_status=$? | |
28346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28347 | (exit $ac_status); }; } && | |
28348 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28350 | (eval $ac_try) 2>&5 | |
28351 | ac_status=$? | |
28352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28353 | (exit $ac_status); }; }; then | |
28354 | eval "$as_ac_var=yes" | |
28355 | else | |
28356 | echo "$as_me: failed program was:" >&5 | |
28357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28358 | ||
28359 | eval "$as_ac_var=no" | |
28360 | fi | |
ac1cb8d3 VS |
28361 | rm -f conftest.err conftest.$ac_objext \ |
28362 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28363 | fi |
28364 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28365 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28366 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28367 | cat >>confdefs.h <<_ACEOF | |
28368 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28369 | _ACEOF | |
28370 | ||
28371 | fi | |
28372 | done | |
28373 | ||
28374 | fi | |
28375 | ||
28376 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
28377 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
28378 | ||
28379 | AFMINSTALL=afminstall | |
28380 | TOOLKIT=GTK | |
28381 | GUIDIST=GTK_DIST | |
28382 | ||
28383 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
28384 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
28385 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
28386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28387 | else | |
28388 | ac_check_lib_save_LIBS=$LIBS | |
28389 | LIBS="-lgdk $LIBS" | |
28390 | cat >conftest.$ac_ext <<_ACEOF | |
28391 | /* confdefs.h. */ | |
28392 | _ACEOF | |
28393 | cat confdefs.h >>conftest.$ac_ext | |
28394 | cat >>conftest.$ac_ext <<_ACEOF | |
28395 | /* end confdefs.h. */ | |
28396 | ||
28397 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28398 | #ifdef __cplusplus | |
28399 | extern "C" | |
28400 | #endif | |
28401 | /* We use char because int might match the return type of a gcc2 | |
28402 | builtin and then its argument prototype would still apply. */ | |
28403 | char gdk_im_open (); | |
28404 | int | |
28405 | main () | |
28406 | { | |
28407 | gdk_im_open (); | |
28408 | ; | |
28409 | return 0; | |
28410 | } | |
28411 | _ACEOF | |
28412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28414 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28415 | ac_status=$? |
ac1cb8d3 VS |
28416 | grep -v '^ *+' conftest.er1 >conftest.err |
28417 | rm -f conftest.er1 | |
28418 | cat conftest.err >&5 | |
a848cd7e SC |
28419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28420 | (exit $ac_status); } && | |
3f60522a JS |
28421 | { ac_try='test -z "$ac_cxx_werror_flag" |
28422 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28424 | (eval $ac_try) 2>&5 | |
28425 | ac_status=$? | |
28426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28427 | (exit $ac_status); }; } && | |
28428 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28430 | (eval $ac_try) 2>&5 | |
28431 | ac_status=$? | |
28432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28433 | (exit $ac_status); }; }; then | |
28434 | ac_cv_lib_gdk_gdk_im_open=yes | |
28435 | else | |
28436 | echo "$as_me: failed program was:" >&5 | |
28437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28438 | ||
28439 | ac_cv_lib_gdk_gdk_im_open=no | |
28440 | fi | |
ac1cb8d3 VS |
28441 | rm -f conftest.err conftest.$ac_objext \ |
28442 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28443 | LIBS=$ac_check_lib_save_LIBS |
28444 | fi | |
28445 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
28446 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
28447 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
28448 | cat >>confdefs.h <<\_ACEOF | |
28449 | #define HAVE_XIM 1 | |
28450 | _ACEOF | |
28451 | ||
28452 | fi | |
28453 | ||
28454 | ||
28455 | ||
28456 | if test "$wxUSE_GPE" = "yes"; then | |
28457 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
28458 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
28459 | ||
0ad5d837 VZ |
28460 | ac_find_libraries= |
28461 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 28462 | do |
3eca31dc | 28463 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
28464 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
28465 | ac_find_libraries=$ac_dir | |
28466 | break 2 | |
28467 | fi | |
28468 | done | |
28469 | done | |
28470 | ||
28471 | if test "$ac_find_libraries" != "" ; then | |
28472 | ||
0ad5d837 | 28473 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
28474 | ac_path_to_link="" |
28475 | else | |
0ad5d837 VZ |
28476 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
28477 | result=$? | |
28478 | if test $result = 0; then | |
28479 | ac_path_to_link="" | |
28480 | else | |
28481 | ac_path_to_link=" -L$ac_find_libraries" | |
28482 | fi | |
a848cd7e SC |
28483 | fi |
28484 | ||
28485 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
28486 | WXGPE=1 | |
0ad5d837 VZ |
28487 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
28488 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
28489 | else |
28490 | echo "$as_me:$LINENO: result: not found" >&5 | |
28491 | echo "${ECHO_T}not found" >&6 | |
28492 | fi | |
28493 | ||
28494 | fi | |
28495 | fi | |
28496 | ||
28497 | if test "$wxUSE_MGL" = 1; then | |
28498 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
28499 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
28500 | if test "x$MGL_ROOT" = x ; then | |
28501 | echo "$as_me:$LINENO: result: not found" >&5 | |
28502 | echo "${ECHO_T}not found" >&6 | |
28503 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
28504 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
28505 | { (exit 1); exit 1; }; } | |
28506 | else | |
28507 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
28508 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
28509 | fi | |
28510 | ||
28511 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
28512 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
28513 | case "${host}" in | |
28514 | *-*-linux* ) | |
28515 | if test "x$wxUSE_SHARED" = xyes ; then | |
28516 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
28517 | else | |
28518 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
28519 | fi | |
28520 | ;; | |
28521 | *-pc-msdosdjgpp ) | |
28522 | mgl_os_candidates="dos32/dj2" | |
28523 | ;; | |
28524 | *) | |
28525 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
28526 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
28527 | { (exit 1); exit 1; }; } | |
28528 | esac | |
28529 | ||
28530 | mgl_lib_type="" | |
28531 | mgl_os="" | |
28532 | ||
28533 | for mgl_os_i in $mgl_os_candidates ; do | |
28534 | if test "x$mgl_os" = x ; then | |
28535 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
28536 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
28537 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
28538 | mgl_lib_type=debug | |
28539 | mgl_os=$mgl_os_i | |
28540 | fi | |
28541 | fi | |
28542 | if test "x$mgl_lib_type" = x ; then | |
28543 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
28544 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
28545 | mgl_lib_type=release | |
28546 | mgl_os=$mgl_os_i | |
28547 | fi | |
28548 | fi | |
28549 | fi | |
28550 | done | |
28551 | ||
28552 | if test "x$mgl_os" = x ; then | |
28553 | echo "$as_me:$LINENO: result: not found" >&5 | |
28554 | echo "${ECHO_T}not found" >&6 | |
28555 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
28556 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
28557 | { (exit 1); exit 1; }; } | |
28558 | fi | |
28559 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
28560 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
28561 | ||
28562 | wxUSE_UNIVERSAL="yes" | |
28563 | ||
28564 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
28565 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
28566 | ||
28567 | AFMINSTALL=afminstall | |
28568 | TOOLKIT=MGL | |
28569 | GUIDIST=MGL_DIST | |
28570 | fi | |
28571 | ||
28572 | if test "$wxUSE_MICROWIN" = 1; then | |
28573 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
28574 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
28575 | if test "x$MICROWINDOWS" = x ; then | |
28576 | echo "$as_me:$LINENO: result: not found" >&5 | |
28577 | echo "${ECHO_T}not found" >&6 | |
28578 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
28579 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
28580 | { (exit 1); exit 1; }; } | |
28581 | else | |
28582 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
28583 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
28584 | fi | |
28585 | ||
28586 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
28587 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
28588 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
28589 | else | |
28590 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
28591 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
28592 | { (exit 1); exit 1; }; } | |
28593 | fi | |
28594 | ||
28595 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
28596 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
28597 | ||
28598 | wxUSE_UNIVERSAL="yes" | |
28599 | ||
28600 | AFMINSTALL=afminstall | |
28601 | TOOLKIT=MICROWIN | |
28602 | GUIDIST=MICROWIN_DIST | |
28603 | ||
28604 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
28605 | fi | |
28606 | ||
74b84332 | 28607 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
3f60522a | 28608 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
28609 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
28610 | ||
28611 | ||
28612 | # Check whether --with-x or --without-x was given. | |
28613 | if test "${with_x+set}" = set; then | |
28614 | withval="$with_x" | |
28615 | ||
28616 | fi; | |
28617 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
28618 | if test "x$with_x" = xno; then | |
28619 | # The user explicitly disabled X. | |
28620 | have_x=disabled | |
28621 | else | |
28622 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
28623 | # Both variables are already set. | |
28624 | have_x=yes | |
28625 | else | |
28626 | if test "${ac_cv_have_x+set}" = set; then | |
28627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28628 | else | |
28629 | # One or both of the vars are not set, and there is no cached value. | |
28630 | ac_x_includes=no ac_x_libraries=no | |
28631 | rm -fr conftest.dir | |
28632 | if mkdir conftest.dir; then | |
28633 | cd conftest.dir | |
28634 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
28635 | cat >Imakefile <<'_ACEOF' | |
28636 | acfindx: | |
28637 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
28638 | _ACEOF | |
28639 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
28640 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
28641 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
28642 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
28643 | for ac_extension in a so sl; do | |
28644 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
28645 | test -f $ac_im_libdir/libX11.$ac_extension; then |
28646 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
28647 | fi |
28648 | done | |
28649 | # Screen out bogus values from the imake configuration. They are | |
28650 | # bogus both because they are the default anyway, and because | |
28651 | # using them would break gcc on systems where it needs fixed includes. | |
28652 | case $ac_im_incroot in | |
28653 | /usr/include) ;; | |
28654 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
28655 | esac | |
28656 | case $ac_im_usrlibdir in | |
28657 | /usr/lib | /lib) ;; | |
28658 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
28659 | esac | |
28660 | fi | |
28661 | cd .. | |
28662 | rm -fr conftest.dir | |
28663 | fi | |
28664 | ||
28665 | # Standard set of common directories for X headers. | |
28666 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
28667 | ac_x_header_dirs=' | |
28668 | /usr/X11/include | |
28669 | /usr/X11R6/include | |
28670 | /usr/X11R5/include | |
28671 | /usr/X11R4/include | |
28672 | ||
28673 | /usr/include/X11 | |
28674 | /usr/include/X11R6 | |
28675 | /usr/include/X11R5 | |
28676 | /usr/include/X11R4 | |
28677 | ||
28678 | /usr/local/X11/include | |
28679 | /usr/local/X11R6/include | |
28680 | /usr/local/X11R5/include | |
28681 | /usr/local/X11R4/include | |
28682 | ||
28683 | /usr/local/include/X11 | |
28684 | /usr/local/include/X11R6 | |
28685 | /usr/local/include/X11R5 | |
28686 | /usr/local/include/X11R4 | |
28687 | ||
28688 | /usr/X386/include | |
28689 | /usr/x386/include | |
28690 | /usr/XFree86/include/X11 | |
28691 | ||
28692 | /usr/include | |
28693 | /usr/local/include | |
28694 | /usr/unsupported/include | |
28695 | /usr/athena/include | |
28696 | /usr/local/x11r5/include | |
28697 | /usr/lpp/Xamples/include | |
28698 | ||
28699 | /usr/openwin/include | |
28700 | /usr/openwin/share/include' | |
28701 | ||
28702 | if test "$ac_x_includes" = no; then | |
3f60522a | 28703 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
28704 | # First, try using that file with no special directory specified. |
28705 | cat >conftest.$ac_ext <<_ACEOF | |
28706 | /* confdefs.h. */ | |
28707 | _ACEOF | |
28708 | cat confdefs.h >>conftest.$ac_ext | |
28709 | cat >>conftest.$ac_ext <<_ACEOF | |
28710 | /* end confdefs.h. */ | |
d25774ab | 28711 | #include <X11/Intrinsic.h> |
a848cd7e SC |
28712 | _ACEOF |
28713 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28714 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28715 | ac_status=$? | |
28716 | grep -v '^ *+' conftest.er1 >conftest.err | |
28717 | rm -f conftest.er1 | |
28718 | cat conftest.err >&5 | |
28719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28720 | (exit $ac_status); } >/dev/null; then | |
28721 | if test -s conftest.err; then | |
5d7b7554 VZ |
28722 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
28723 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
28724 | else |
28725 | ac_cpp_err= | |
28726 | fi | |
28727 | else | |
28728 | ac_cpp_err=yes | |
28729 | fi | |
28730 | if test -z "$ac_cpp_err"; then | |
28731 | # We can compile using X headers with no special include directory. | |
28732 | ac_x_includes= | |
28733 | else | |
28734 | echo "$as_me: failed program was:" >&5 | |
28735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28736 | ||
28737 | for ac_dir in $ac_x_header_dirs; do | |
d25774ab | 28738 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
a848cd7e SC |
28739 | ac_x_includes=$ac_dir |
28740 | break | |
28741 | fi | |
28742 | done | |
28743 | fi | |
28744 | rm -f conftest.err conftest.$ac_ext | |
28745 | fi # $ac_x_includes = no | |
28746 | ||
28747 | if test "$ac_x_libraries" = no; then | |
28748 | # Check for the libraries. | |
28749 | # See if we find them without any special options. | |
28750 | # Don't add to $LIBS permanently. | |
28751 | ac_save_LIBS=$LIBS | |
d25774ab | 28752 | LIBS="-lXt $LIBS" |
a848cd7e SC |
28753 | cat >conftest.$ac_ext <<_ACEOF |
28754 | /* confdefs.h. */ | |
28755 | _ACEOF | |
28756 | cat confdefs.h >>conftest.$ac_ext | |
28757 | cat >>conftest.$ac_ext <<_ACEOF | |
28758 | /* end confdefs.h. */ | |
d25774ab | 28759 | #include <X11/Intrinsic.h> |
a848cd7e SC |
28760 | int |
28761 | main () | |
28762 | { | |
d25774ab | 28763 | XtMalloc (0) |
a848cd7e SC |
28764 | ; |
28765 | return 0; | |
28766 | } | |
28767 | _ACEOF | |
28768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28770 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28771 | ac_status=$? |
ac1cb8d3 VS |
28772 | grep -v '^ *+' conftest.er1 >conftest.err |
28773 | rm -f conftest.er1 | |
28774 | cat conftest.err >&5 | |
a848cd7e SC |
28775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28776 | (exit $ac_status); } && | |
3f60522a JS |
28777 | { ac_try='test -z "$ac_cxx_werror_flag" |
28778 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28780 | (eval $ac_try) 2>&5 | |
28781 | ac_status=$? | |
28782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28783 | (exit $ac_status); }; } && | |
28784 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28786 | (eval $ac_try) 2>&5 | |
28787 | ac_status=$? | |
28788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28789 | (exit $ac_status); }; }; then | |
28790 | LIBS=$ac_save_LIBS | |
28791 | # We can link X programs with no special library path. | |
28792 | ac_x_libraries= | |
28793 | else | |
28794 | echo "$as_me: failed program was:" >&5 | |
28795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28796 | ||
28797 | LIBS=$ac_save_LIBS | |
28798 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
28799 | do | |
28800 | # Don't even attempt the hair of trying to link an X program! | |
28801 | for ac_extension in a so sl; do | |
d25774ab | 28802 | if test -r $ac_dir/libXt.$ac_extension; then |
a848cd7e SC |
28803 | ac_x_libraries=$ac_dir |
28804 | break 2 | |
28805 | fi | |
28806 | done | |
28807 | done | |
28808 | fi | |
ac1cb8d3 VS |
28809 | rm -f conftest.err conftest.$ac_objext \ |
28810 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28811 | fi # $ac_x_libraries = no |
28812 | ||
28813 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
28814 | # Didn't find X anywhere. Cache the known absence of X. | |
28815 | ac_cv_have_x="have_x=no" | |
28816 | else | |
28817 | # Record where we found X for the cache. | |
28818 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 28819 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
28820 | fi |
28821 | fi | |
28822 | ||
28823 | fi | |
28824 | eval "$ac_cv_have_x" | |
28825 | fi # $with_x != no | |
28826 | ||
28827 | if test "$have_x" != yes; then | |
28828 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
28829 | echo "${ECHO_T}$have_x" >&6 | |
28830 | no_x=yes | |
28831 | else | |
28832 | # If each of the values was on the command line, it overrides each guess. | |
28833 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
28834 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
28835 | # Update the cache value to reflect the command line values. | |
28836 | ac_cv_have_x="have_x=yes \ | |
28837 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
3f60522a JS |
28838 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
28839 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
28840 | fi |
28841 | ||
28842 | if test "$no_x" = yes; then | |
28843 | # Not all programs may use this symbol, but it does not hurt to define it. | |
28844 | ||
28845 | cat >>confdefs.h <<\_ACEOF | |
28846 | #define X_DISPLAY_MISSING 1 | |
28847 | _ACEOF | |
28848 | ||
28849 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
28850 | else | |
28851 | if test -n "$x_includes"; then | |
28852 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
28853 | fi | |
28854 | ||
28855 | # It would also be nice to do this for all -L options, not just this one. | |
28856 | if test -n "$x_libraries"; then | |
28857 | X_LIBS="$X_LIBS -L$x_libraries" | |
28858 | # For Solaris; some versions of Sun CC require a space after -R and | |
28859 | # others require no space. Words are not sufficient . . . . | |
28860 | case `(uname -sr) 2>/dev/null` in | |
28861 | "SunOS 5"*) | |
28862 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
28863 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
28864 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
28865 | cat >conftest.$ac_ext <<_ACEOF | |
28866 | /* confdefs.h. */ | |
28867 | _ACEOF | |
28868 | cat confdefs.h >>conftest.$ac_ext | |
28869 | cat >>conftest.$ac_ext <<_ACEOF | |
28870 | /* end confdefs.h. */ | |
28871 | ||
28872 | int | |
28873 | main () | |
28874 | { | |
28875 | ||
28876 | ; | |
28877 | return 0; | |
28878 | } | |
28879 | _ACEOF | |
28880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28882 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28883 | ac_status=$? |
ac1cb8d3 VS |
28884 | grep -v '^ *+' conftest.er1 >conftest.err |
28885 | rm -f conftest.er1 | |
28886 | cat conftest.err >&5 | |
a848cd7e SC |
28887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28888 | (exit $ac_status); } && | |
3f60522a JS |
28889 | { ac_try='test -z "$ac_cxx_werror_flag" |
28890 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28892 | (eval $ac_try) 2>&5 | |
28893 | ac_status=$? | |
28894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28895 | (exit $ac_status); }; } && | |
28896 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28898 | (eval $ac_try) 2>&5 | |
28899 | ac_status=$? | |
28900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28901 | (exit $ac_status); }; }; then | |
28902 | ac_R_nospace=yes | |
28903 | else | |
28904 | echo "$as_me: failed program was:" >&5 | |
28905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28906 | ||
28907 | ac_R_nospace=no | |
28908 | fi | |
ac1cb8d3 VS |
28909 | rm -f conftest.err conftest.$ac_objext \ |
28910 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28911 | if test $ac_R_nospace = yes; then |
28912 | echo "$as_me:$LINENO: result: no" >&5 | |
28913 | echo "${ECHO_T}no" >&6 | |
28914 | X_LIBS="$X_LIBS -R$x_libraries" | |
28915 | else | |
28916 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
28917 | cat >conftest.$ac_ext <<_ACEOF | |
28918 | /* confdefs.h. */ | |
28919 | _ACEOF | |
28920 | cat confdefs.h >>conftest.$ac_ext | |
28921 | cat >>conftest.$ac_ext <<_ACEOF | |
28922 | /* end confdefs.h. */ | |
28923 | ||
28924 | int | |
28925 | main () | |
28926 | { | |
28927 | ||
28928 | ; | |
28929 | return 0; | |
28930 | } | |
28931 | _ACEOF | |
28932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28934 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28935 | ac_status=$? |
ac1cb8d3 VS |
28936 | grep -v '^ *+' conftest.er1 >conftest.err |
28937 | rm -f conftest.er1 | |
28938 | cat conftest.err >&5 | |
a848cd7e SC |
28939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28940 | (exit $ac_status); } && | |
3f60522a JS |
28941 | { ac_try='test -z "$ac_cxx_werror_flag" |
28942 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28944 | (eval $ac_try) 2>&5 | |
28945 | ac_status=$? | |
28946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28947 | (exit $ac_status); }; } && | |
28948 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28950 | (eval $ac_try) 2>&5 | |
28951 | ac_status=$? | |
28952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28953 | (exit $ac_status); }; }; then | |
28954 | ac_R_space=yes | |
28955 | else | |
28956 | echo "$as_me: failed program was:" >&5 | |
28957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28958 | ||
28959 | ac_R_space=no | |
28960 | fi | |
ac1cb8d3 VS |
28961 | rm -f conftest.err conftest.$ac_objext \ |
28962 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28963 | if test $ac_R_space = yes; then |
28964 | echo "$as_me:$LINENO: result: yes" >&5 | |
28965 | echo "${ECHO_T}yes" >&6 | |
28966 | X_LIBS="$X_LIBS -R $x_libraries" | |
28967 | else | |
28968 | echo "$as_me:$LINENO: result: neither works" >&5 | |
28969 | echo "${ECHO_T}neither works" >&6 | |
28970 | fi | |
28971 | fi | |
28972 | LIBS=$ac_xsave_LIBS | |
28973 | esac | |
28974 | fi | |
28975 | ||
28976 | # Check for system-dependent libraries X programs must link with. | |
28977 | # Do this before checking for the system-independent R6 libraries | |
28978 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
28979 | ||
28980 | if test "$ISC" = yes; then | |
28981 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
28982 | else | |
28983 | # Martyn Johnson says this is needed for Ultrix, if the X | |
28984 | # libraries were built with DECnet support. And Karl Berry says | |
28985 | # the Alpha needs dnet_stub (dnet does not exist). | |
28986 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
28987 | cat >conftest.$ac_ext <<_ACEOF | |
28988 | /* confdefs.h. */ | |
28989 | _ACEOF | |
28990 | cat confdefs.h >>conftest.$ac_ext | |
28991 | cat >>conftest.$ac_ext <<_ACEOF | |
28992 | /* end confdefs.h. */ | |
28993 | ||
28994 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28995 | #ifdef __cplusplus | |
28996 | extern "C" | |
28997 | #endif | |
28998 | /* We use char because int might match the return type of a gcc2 | |
28999 | builtin and then its argument prototype would still apply. */ | |
29000 | char XOpenDisplay (); | |
29001 | int | |
29002 | main () | |
29003 | { | |
29004 | XOpenDisplay (); | |
29005 | ; | |
29006 | return 0; | |
29007 | } | |
29008 | _ACEOF | |
29009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29011 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29012 | ac_status=$? |
ac1cb8d3 VS |
29013 | grep -v '^ *+' conftest.er1 >conftest.err |
29014 | rm -f conftest.er1 | |
29015 | cat conftest.err >&5 | |
a848cd7e SC |
29016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29017 | (exit $ac_status); } && | |
3f60522a JS |
29018 | { ac_try='test -z "$ac_cxx_werror_flag" |
29019 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29021 | (eval $ac_try) 2>&5 | |
29022 | ac_status=$? | |
29023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29024 | (exit $ac_status); }; } && | |
29025 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29027 | (eval $ac_try) 2>&5 | |
29028 | ac_status=$? | |
29029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29030 | (exit $ac_status); }; }; then | |
29031 | : | |
29032 | else | |
29033 | echo "$as_me: failed program was:" >&5 | |
29034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29035 | ||
29036 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
29037 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
29038 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
29039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29040 | else | |
29041 | ac_check_lib_save_LIBS=$LIBS | |
29042 | LIBS="-ldnet $LIBS" | |
29043 | cat >conftest.$ac_ext <<_ACEOF | |
29044 | /* confdefs.h. */ | |
29045 | _ACEOF | |
29046 | cat confdefs.h >>conftest.$ac_ext | |
29047 | cat >>conftest.$ac_ext <<_ACEOF | |
29048 | /* end confdefs.h. */ | |
29049 | ||
29050 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29051 | #ifdef __cplusplus | |
29052 | extern "C" | |
29053 | #endif | |
29054 | /* We use char because int might match the return type of a gcc2 | |
29055 | builtin and then its argument prototype would still apply. */ | |
29056 | char dnet_ntoa (); | |
29057 | int | |
29058 | main () | |
29059 | { | |
29060 | dnet_ntoa (); | |
29061 | ; | |
29062 | return 0; | |
29063 | } | |
29064 | _ACEOF | |
29065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29067 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29068 | ac_status=$? |
ac1cb8d3 VS |
29069 | grep -v '^ *+' conftest.er1 >conftest.err |
29070 | rm -f conftest.er1 | |
29071 | cat conftest.err >&5 | |
a848cd7e SC |
29072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29073 | (exit $ac_status); } && | |
3f60522a JS |
29074 | { ac_try='test -z "$ac_cxx_werror_flag" |
29075 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29077 | (eval $ac_try) 2>&5 | |
29078 | ac_status=$? | |
29079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29080 | (exit $ac_status); }; } && | |
29081 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29083 | (eval $ac_try) 2>&5 | |
29084 | ac_status=$? | |
29085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29086 | (exit $ac_status); }; }; then | |
29087 | ac_cv_lib_dnet_dnet_ntoa=yes | |
29088 | else | |
29089 | echo "$as_me: failed program was:" >&5 | |
29090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29091 | ||
29092 | ac_cv_lib_dnet_dnet_ntoa=no | |
29093 | fi | |
ac1cb8d3 VS |
29094 | rm -f conftest.err conftest.$ac_objext \ |
29095 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29096 | LIBS=$ac_check_lib_save_LIBS |
29097 | fi | |
29098 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
29099 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
29100 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
29101 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
29102 | fi | |
29103 | ||
29104 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
29105 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
29106 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
29107 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
29108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29109 | else | |
29110 | ac_check_lib_save_LIBS=$LIBS | |
29111 | LIBS="-ldnet_stub $LIBS" | |
29112 | cat >conftest.$ac_ext <<_ACEOF | |
29113 | /* confdefs.h. */ | |
29114 | _ACEOF | |
29115 | cat confdefs.h >>conftest.$ac_ext | |
29116 | cat >>conftest.$ac_ext <<_ACEOF | |
29117 | /* end confdefs.h. */ | |
29118 | ||
29119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29120 | #ifdef __cplusplus | |
29121 | extern "C" | |
29122 | #endif | |
29123 | /* We use char because int might match the return type of a gcc2 | |
29124 | builtin and then its argument prototype would still apply. */ | |
29125 | char dnet_ntoa (); | |
29126 | int | |
29127 | main () | |
29128 | { | |
29129 | dnet_ntoa (); | |
29130 | ; | |
29131 | return 0; | |
29132 | } | |
29133 | _ACEOF | |
29134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29136 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29137 | ac_status=$? |
ac1cb8d3 VS |
29138 | grep -v '^ *+' conftest.er1 >conftest.err |
29139 | rm -f conftest.er1 | |
29140 | cat conftest.err >&5 | |
a848cd7e SC |
29141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29142 | (exit $ac_status); } && | |
3f60522a JS |
29143 | { ac_try='test -z "$ac_cxx_werror_flag" |
29144 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29146 | (eval $ac_try) 2>&5 | |
29147 | ac_status=$? | |
29148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29149 | (exit $ac_status); }; } && | |
29150 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29152 | (eval $ac_try) 2>&5 | |
29153 | ac_status=$? | |
29154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29155 | (exit $ac_status); }; }; then | |
29156 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
29157 | else | |
29158 | echo "$as_me: failed program was:" >&5 | |
29159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29160 | ||
29161 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
29162 | fi | |
ac1cb8d3 VS |
29163 | rm -f conftest.err conftest.$ac_objext \ |
29164 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29165 | LIBS=$ac_check_lib_save_LIBS |
29166 | fi | |
29167 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
29168 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
29169 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
29170 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
29171 | fi | |
29172 | ||
29173 | fi | |
29174 | fi | |
ac1cb8d3 VS |
29175 | rm -f conftest.err conftest.$ac_objext \ |
29176 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29177 | LIBS="$ac_xsave_LIBS" |
29178 | ||
29179 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
29180 | # to get the SysV transport functions. | |
29181 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
29182 | # needs -lnsl. | |
29183 | # The nsl library prevents programs from opening the X display | |
29184 | # on Irix 5.2, according to T.E. Dickey. | |
29185 | # The functions gethostbyname, getservbyname, and inet_addr are | |
29186 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
29187 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
29188 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
29189 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
29190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29191 | else | |
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. */ | |
ac1cb8d3 VS |
29198 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
29199 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29200 | #define gethostbyname innocuous_gethostbyname | |
29201 | ||
a848cd7e SC |
29202 | /* System header to define __stub macros and hopefully few prototypes, |
29203 | which can conflict with char gethostbyname (); below. | |
29204 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29205 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29206 | |
a848cd7e SC |
29207 | #ifdef __STDC__ |
29208 | # include <limits.h> | |
29209 | #else | |
29210 | # include <assert.h> | |
29211 | #endif | |
ac1cb8d3 VS |
29212 | |
29213 | #undef gethostbyname | |
29214 | ||
a848cd7e SC |
29215 | /* Override any gcc2 internal prototype to avoid an error. */ |
29216 | #ifdef __cplusplus | |
29217 | extern "C" | |
29218 | { | |
29219 | #endif | |
29220 | /* We use char because int might match the return type of a gcc2 | |
29221 | builtin and then its argument prototype would still apply. */ | |
29222 | char gethostbyname (); | |
29223 | /* The GNU C library defines this for functions which it implements | |
29224 | to always fail with ENOSYS. Some functions are actually named | |
29225 | something starting with __ and the normal name is an alias. */ | |
29226 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
29227 | choke me | |
29228 | #else | |
29229 | char (*f) () = gethostbyname; | |
29230 | #endif | |
29231 | #ifdef __cplusplus | |
29232 | } | |
29233 | #endif | |
29234 | ||
29235 | int | |
29236 | main () | |
29237 | { | |
29238 | return f != gethostbyname; | |
29239 | ; | |
29240 | return 0; | |
29241 | } | |
29242 | _ACEOF | |
29243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29245 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29246 | ac_status=$? |
ac1cb8d3 VS |
29247 | grep -v '^ *+' conftest.er1 >conftest.err |
29248 | rm -f conftest.er1 | |
29249 | cat conftest.err >&5 | |
a848cd7e SC |
29250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29251 | (exit $ac_status); } && | |
3f60522a JS |
29252 | { ac_try='test -z "$ac_cxx_werror_flag" |
29253 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29255 | (eval $ac_try) 2>&5 | |
29256 | ac_status=$? | |
29257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29258 | (exit $ac_status); }; } && | |
29259 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29261 | (eval $ac_try) 2>&5 | |
29262 | ac_status=$? | |
29263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29264 | (exit $ac_status); }; }; then | |
29265 | ac_cv_func_gethostbyname=yes | |
29266 | else | |
29267 | echo "$as_me: failed program was:" >&5 | |
29268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29269 | ||
29270 | ac_cv_func_gethostbyname=no | |
29271 | fi | |
ac1cb8d3 VS |
29272 | rm -f conftest.err conftest.$ac_objext \ |
29273 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29274 | fi |
29275 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
29276 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
29277 | ||
29278 | if test $ac_cv_func_gethostbyname = no; then | |
29279 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
29280 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
29281 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
29282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29283 | else | |
29284 | ac_check_lib_save_LIBS=$LIBS | |
29285 | LIBS="-lnsl $LIBS" | |
29286 | cat >conftest.$ac_ext <<_ACEOF | |
29287 | /* confdefs.h. */ | |
29288 | _ACEOF | |
29289 | cat confdefs.h >>conftest.$ac_ext | |
29290 | cat >>conftest.$ac_ext <<_ACEOF | |
29291 | /* end confdefs.h. */ | |
29292 | ||
29293 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29294 | #ifdef __cplusplus | |
29295 | extern "C" | |
29296 | #endif | |
29297 | /* We use char because int might match the return type of a gcc2 | |
29298 | builtin and then its argument prototype would still apply. */ | |
29299 | char gethostbyname (); | |
29300 | int | |
29301 | main () | |
29302 | { | |
29303 | gethostbyname (); | |
29304 | ; | |
29305 | return 0; | |
29306 | } | |
29307 | _ACEOF | |
29308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
29310 | (eval $ac_link) 2>conftest.er1 |
29311 | ac_status=$? | |
29312 | grep -v '^ *+' conftest.er1 >conftest.err | |
29313 | rm -f conftest.er1 | |
29314 | cat conftest.err >&5 | |
29315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29316 | (exit $ac_status); } && | |
3f60522a JS |
29317 | { ac_try='test -z "$ac_cxx_werror_flag" |
29318 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29320 | (eval $ac_try) 2>&5 | |
29321 | ac_status=$? | |
29322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29323 | (exit $ac_status); }; } && | |
29324 | { ac_try='test -s conftest$ac_exeext' | |
29325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29326 | (eval $ac_try) 2>&5 | |
29327 | ac_status=$? | |
29328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29329 | (exit $ac_status); }; }; then | |
29330 | ac_cv_lib_nsl_gethostbyname=yes | |
29331 | else | |
29332 | echo "$as_me: failed program was:" >&5 | |
29333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29334 | ||
29335 | ac_cv_lib_nsl_gethostbyname=no | |
29336 | fi | |
29337 | rm -f conftest.err conftest.$ac_objext \ | |
29338 | conftest$ac_exeext conftest.$ac_ext | |
29339 | LIBS=$ac_check_lib_save_LIBS | |
29340 | fi | |
29341 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
29342 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
29343 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
29344 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
29345 | fi | |
29346 | ||
29347 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
29348 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
29349 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
29350 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
29351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29352 | else | |
29353 | ac_check_lib_save_LIBS=$LIBS | |
29354 | LIBS="-lbsd $LIBS" | |
29355 | cat >conftest.$ac_ext <<_ACEOF | |
29356 | /* confdefs.h. */ | |
29357 | _ACEOF | |
29358 | cat confdefs.h >>conftest.$ac_ext | |
29359 | cat >>conftest.$ac_ext <<_ACEOF | |
29360 | /* end confdefs.h. */ | |
29361 | ||
29362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29363 | #ifdef __cplusplus | |
29364 | extern "C" | |
29365 | #endif | |
29366 | /* We use char because int might match the return type of a gcc2 | |
29367 | builtin and then its argument prototype would still apply. */ | |
29368 | char gethostbyname (); | |
29369 | int | |
29370 | main () | |
29371 | { | |
29372 | gethostbyname (); | |
29373 | ; | |
29374 | return 0; | |
29375 | } | |
29376 | _ACEOF | |
29377 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29379 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 29380 | ac_status=$? |
ac1cb8d3 VS |
29381 | grep -v '^ *+' conftest.er1 >conftest.err |
29382 | rm -f conftest.er1 | |
29383 | cat conftest.err >&5 | |
a848cd7e SC |
29384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29385 | (exit $ac_status); } && | |
3f60522a JS |
29386 | { ac_try='test -z "$ac_cxx_werror_flag" |
29387 | || test ! -s conftest.err' | |
a848cd7e SC |
29388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29389 | (eval $ac_try) 2>&5 | |
29390 | ac_status=$? | |
29391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
29392 | (exit $ac_status); }; } && |
29393 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29395 | (eval $ac_try) 2>&5 | |
29396 | ac_status=$? | |
29397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29398 | (exit $ac_status); }; }; then | |
29399 | ac_cv_lib_bsd_gethostbyname=yes | |
29400 | else | |
29401 | echo "$as_me: failed program was:" >&5 | |
29402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29403 | ||
29404 | ac_cv_lib_bsd_gethostbyname=no | |
29405 | fi | |
ac1cb8d3 VS |
29406 | rm -f conftest.err conftest.$ac_objext \ |
29407 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29408 | LIBS=$ac_check_lib_save_LIBS |
29409 | fi | |
29410 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
29411 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
29412 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
29413 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
29414 | fi | |
29415 | ||
29416 | fi | |
29417 | fi | |
29418 | ||
29419 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
29420 | # socket/setsockopt and other routines are undefined under SCO ODT | |
29421 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
29422 | # on later versions), says Simon Leinen: it contains gethostby* | |
29423 | # variants that don't use the name server (or something). -lsocket | |
29424 | # must be given before -lnsl if both are needed. We assume that | |
29425 | # if connect needs -lnsl, so does gethostbyname. | |
29426 | echo "$as_me:$LINENO: checking for connect" >&5 | |
29427 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
29428 | if test "${ac_cv_func_connect+set}" = set; then | |
29429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29430 | else | |
29431 | cat >conftest.$ac_ext <<_ACEOF | |
29432 | /* confdefs.h. */ | |
29433 | _ACEOF | |
29434 | cat confdefs.h >>conftest.$ac_ext | |
29435 | cat >>conftest.$ac_ext <<_ACEOF | |
29436 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29437 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
29438 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29439 | #define connect innocuous_connect | |
29440 | ||
a848cd7e SC |
29441 | /* System header to define __stub macros and hopefully few prototypes, |
29442 | which can conflict with char connect (); below. | |
29443 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29444 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29445 | |
a848cd7e SC |
29446 | #ifdef __STDC__ |
29447 | # include <limits.h> | |
29448 | #else | |
29449 | # include <assert.h> | |
29450 | #endif | |
ac1cb8d3 VS |
29451 | |
29452 | #undef connect | |
29453 | ||
a848cd7e SC |
29454 | /* Override any gcc2 internal prototype to avoid an error. */ |
29455 | #ifdef __cplusplus | |
29456 | extern "C" | |
29457 | { | |
29458 | #endif | |
29459 | /* We use char because int might match the return type of a gcc2 | |
29460 | builtin and then its argument prototype would still apply. */ | |
29461 | char connect (); | |
29462 | /* The GNU C library defines this for functions which it implements | |
29463 | to always fail with ENOSYS. Some functions are actually named | |
29464 | something starting with __ and the normal name is an alias. */ | |
29465 | #if defined (__stub_connect) || defined (__stub___connect) | |
29466 | choke me | |
29467 | #else | |
29468 | char (*f) () = connect; | |
29469 | #endif | |
29470 | #ifdef __cplusplus | |
29471 | } | |
29472 | #endif | |
29473 | ||
29474 | int | |
29475 | main () | |
29476 | { | |
29477 | return f != connect; | |
29478 | ; | |
29479 | return 0; | |
29480 | } | |
29481 | _ACEOF | |
29482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29484 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29485 | ac_status=$? |
ac1cb8d3 VS |
29486 | grep -v '^ *+' conftest.er1 >conftest.err |
29487 | rm -f conftest.er1 | |
29488 | cat conftest.err >&5 | |
a848cd7e SC |
29489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29490 | (exit $ac_status); } && | |
3f60522a JS |
29491 | { ac_try='test -z "$ac_cxx_werror_flag" |
29492 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29494 | (eval $ac_try) 2>&5 | |
29495 | ac_status=$? | |
29496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29497 | (exit $ac_status); }; } && | |
29498 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29500 | (eval $ac_try) 2>&5 | |
29501 | ac_status=$? | |
29502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29503 | (exit $ac_status); }; }; then | |
29504 | ac_cv_func_connect=yes | |
29505 | else | |
29506 | echo "$as_me: failed program was:" >&5 | |
29507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29508 | ||
29509 | ac_cv_func_connect=no | |
29510 | fi | |
ac1cb8d3 VS |
29511 | rm -f conftest.err conftest.$ac_objext \ |
29512 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29513 | fi |
29514 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
29515 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
29516 | ||
29517 | if test $ac_cv_func_connect = no; then | |
29518 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
29519 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
29520 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
29521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29522 | else | |
29523 | ac_check_lib_save_LIBS=$LIBS | |
29524 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
29525 | cat >conftest.$ac_ext <<_ACEOF | |
29526 | /* confdefs.h. */ | |
29527 | _ACEOF | |
29528 | cat confdefs.h >>conftest.$ac_ext | |
29529 | cat >>conftest.$ac_ext <<_ACEOF | |
29530 | /* end confdefs.h. */ | |
29531 | ||
29532 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29533 | #ifdef __cplusplus | |
29534 | extern "C" | |
29535 | #endif | |
29536 | /* We use char because int might match the return type of a gcc2 | |
29537 | builtin and then its argument prototype would still apply. */ | |
29538 | char connect (); | |
29539 | int | |
29540 | main () | |
29541 | { | |
29542 | connect (); | |
29543 | ; | |
29544 | return 0; | |
29545 | } | |
29546 | _ACEOF | |
29547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29549 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29550 | ac_status=$? |
ac1cb8d3 VS |
29551 | grep -v '^ *+' conftest.er1 >conftest.err |
29552 | rm -f conftest.er1 | |
29553 | cat conftest.err >&5 | |
a848cd7e SC |
29554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29555 | (exit $ac_status); } && | |
3f60522a JS |
29556 | { ac_try='test -z "$ac_cxx_werror_flag" |
29557 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29559 | (eval $ac_try) 2>&5 | |
29560 | ac_status=$? | |
29561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29562 | (exit $ac_status); }; } && | |
29563 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29565 | (eval $ac_try) 2>&5 | |
29566 | ac_status=$? | |
29567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29568 | (exit $ac_status); }; }; then | |
29569 | ac_cv_lib_socket_connect=yes | |
29570 | else | |
29571 | echo "$as_me: failed program was:" >&5 | |
29572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29573 | ||
29574 | ac_cv_lib_socket_connect=no | |
29575 | fi | |
ac1cb8d3 VS |
29576 | rm -f conftest.err conftest.$ac_objext \ |
29577 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29578 | LIBS=$ac_check_lib_save_LIBS |
29579 | fi | |
29580 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
29581 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
29582 | if test $ac_cv_lib_socket_connect = yes; then | |
29583 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
29584 | fi | |
29585 | ||
29586 | fi | |
29587 | ||
29588 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
29589 | echo "$as_me:$LINENO: checking for remove" >&5 | |
29590 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
29591 | if test "${ac_cv_func_remove+set}" = set; then | |
29592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29593 | else | |
29594 | cat >conftest.$ac_ext <<_ACEOF | |
29595 | /* confdefs.h. */ | |
29596 | _ACEOF | |
29597 | cat confdefs.h >>conftest.$ac_ext | |
29598 | cat >>conftest.$ac_ext <<_ACEOF | |
29599 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29600 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
29601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29602 | #define remove innocuous_remove | |
29603 | ||
a848cd7e SC |
29604 | /* System header to define __stub macros and hopefully few prototypes, |
29605 | which can conflict with char remove (); below. | |
29606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29607 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29608 | |
a848cd7e SC |
29609 | #ifdef __STDC__ |
29610 | # include <limits.h> | |
29611 | #else | |
29612 | # include <assert.h> | |
29613 | #endif | |
ac1cb8d3 VS |
29614 | |
29615 | #undef remove | |
29616 | ||
a848cd7e SC |
29617 | /* Override any gcc2 internal prototype to avoid an error. */ |
29618 | #ifdef __cplusplus | |
29619 | extern "C" | |
29620 | { | |
29621 | #endif | |
29622 | /* We use char because int might match the return type of a gcc2 | |
29623 | builtin and then its argument prototype would still apply. */ | |
29624 | char remove (); | |
29625 | /* The GNU C library defines this for functions which it implements | |
29626 | to always fail with ENOSYS. Some functions are actually named | |
29627 | something starting with __ and the normal name is an alias. */ | |
29628 | #if defined (__stub_remove) || defined (__stub___remove) | |
29629 | choke me | |
29630 | #else | |
29631 | char (*f) () = remove; | |
29632 | #endif | |
29633 | #ifdef __cplusplus | |
29634 | } | |
29635 | #endif | |
29636 | ||
29637 | int | |
29638 | main () | |
29639 | { | |
29640 | return f != remove; | |
29641 | ; | |
29642 | return 0; | |
29643 | } | |
29644 | _ACEOF | |
29645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29647 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29648 | ac_status=$? |
ac1cb8d3 VS |
29649 | grep -v '^ *+' conftest.er1 >conftest.err |
29650 | rm -f conftest.er1 | |
29651 | cat conftest.err >&5 | |
a848cd7e SC |
29652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29653 | (exit $ac_status); } && | |
3f60522a JS |
29654 | { ac_try='test -z "$ac_cxx_werror_flag" |
29655 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29657 | (eval $ac_try) 2>&5 | |
29658 | ac_status=$? | |
29659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29660 | (exit $ac_status); }; } && | |
29661 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29663 | (eval $ac_try) 2>&5 | |
29664 | ac_status=$? | |
29665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29666 | (exit $ac_status); }; }; then | |
29667 | ac_cv_func_remove=yes | |
29668 | else | |
29669 | echo "$as_me: failed program was:" >&5 | |
29670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29671 | ||
29672 | ac_cv_func_remove=no | |
29673 | fi | |
ac1cb8d3 VS |
29674 | rm -f conftest.err conftest.$ac_objext \ |
29675 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29676 | fi |
29677 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
29678 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
29679 | ||
29680 | if test $ac_cv_func_remove = no; then | |
29681 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
29682 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
29683 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
29684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29685 | else | |
29686 | ac_check_lib_save_LIBS=$LIBS | |
29687 | LIBS="-lposix $LIBS" | |
29688 | cat >conftest.$ac_ext <<_ACEOF | |
29689 | /* confdefs.h. */ | |
29690 | _ACEOF | |
29691 | cat confdefs.h >>conftest.$ac_ext | |
29692 | cat >>conftest.$ac_ext <<_ACEOF | |
29693 | /* end confdefs.h. */ | |
29694 | ||
29695 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29696 | #ifdef __cplusplus | |
29697 | extern "C" | |
29698 | #endif | |
29699 | /* We use char because int might match the return type of a gcc2 | |
29700 | builtin and then its argument prototype would still apply. */ | |
29701 | char remove (); | |
29702 | int | |
29703 | main () | |
29704 | { | |
29705 | remove (); | |
29706 | ; | |
29707 | return 0; | |
29708 | } | |
29709 | _ACEOF | |
29710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29712 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29713 | ac_status=$? |
ac1cb8d3 VS |
29714 | grep -v '^ *+' conftest.er1 >conftest.err |
29715 | rm -f conftest.er1 | |
29716 | cat conftest.err >&5 | |
a848cd7e SC |
29717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29718 | (exit $ac_status); } && | |
3f60522a JS |
29719 | { ac_try='test -z "$ac_cxx_werror_flag" |
29720 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29722 | (eval $ac_try) 2>&5 | |
29723 | ac_status=$? | |
29724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29725 | (exit $ac_status); }; } && | |
29726 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29728 | (eval $ac_try) 2>&5 | |
29729 | ac_status=$? | |
29730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29731 | (exit $ac_status); }; }; then | |
29732 | ac_cv_lib_posix_remove=yes | |
29733 | else | |
29734 | echo "$as_me: failed program was:" >&5 | |
29735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29736 | ||
29737 | ac_cv_lib_posix_remove=no | |
29738 | fi | |
ac1cb8d3 VS |
29739 | rm -f conftest.err conftest.$ac_objext \ |
29740 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29741 | LIBS=$ac_check_lib_save_LIBS |
29742 | fi | |
29743 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
29744 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
29745 | if test $ac_cv_lib_posix_remove = yes; then | |
29746 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
29747 | fi | |
29748 | ||
29749 | fi | |
29750 | ||
29751 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
29752 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
29753 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
29754 | if test "${ac_cv_func_shmat+set}" = set; then | |
29755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29756 | else | |
29757 | cat >conftest.$ac_ext <<_ACEOF | |
29758 | /* confdefs.h. */ | |
29759 | _ACEOF | |
29760 | cat confdefs.h >>conftest.$ac_ext | |
29761 | cat >>conftest.$ac_ext <<_ACEOF | |
29762 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29763 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
29764 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29765 | #define shmat innocuous_shmat | |
29766 | ||
a848cd7e SC |
29767 | /* System header to define __stub macros and hopefully few prototypes, |
29768 | which can conflict with char shmat (); below. | |
29769 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29770 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29771 | |
a848cd7e SC |
29772 | #ifdef __STDC__ |
29773 | # include <limits.h> | |
29774 | #else | |
29775 | # include <assert.h> | |
29776 | #endif | |
ac1cb8d3 VS |
29777 | |
29778 | #undef shmat | |
29779 | ||
a848cd7e SC |
29780 | /* Override any gcc2 internal prototype to avoid an error. */ |
29781 | #ifdef __cplusplus | |
29782 | extern "C" | |
29783 | { | |
29784 | #endif | |
29785 | /* We use char because int might match the return type of a gcc2 | |
29786 | builtin and then its argument prototype would still apply. */ | |
29787 | char shmat (); | |
29788 | /* The GNU C library defines this for functions which it implements | |
29789 | to always fail with ENOSYS. Some functions are actually named | |
29790 | something starting with __ and the normal name is an alias. */ | |
29791 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
29792 | choke me | |
29793 | #else | |
29794 | char (*f) () = shmat; | |
29795 | #endif | |
29796 | #ifdef __cplusplus | |
29797 | } | |
29798 | #endif | |
29799 | ||
29800 | int | |
29801 | main () | |
29802 | { | |
29803 | return f != shmat; | |
29804 | ; | |
29805 | return 0; | |
29806 | } | |
29807 | _ACEOF | |
29808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29810 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29811 | ac_status=$? |
ac1cb8d3 VS |
29812 | grep -v '^ *+' conftest.er1 >conftest.err |
29813 | rm -f conftest.er1 | |
29814 | cat conftest.err >&5 | |
a848cd7e SC |
29815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29816 | (exit $ac_status); } && | |
3f60522a JS |
29817 | { ac_try='test -z "$ac_cxx_werror_flag" |
29818 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29820 | (eval $ac_try) 2>&5 | |
29821 | ac_status=$? | |
29822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29823 | (exit $ac_status); }; } && | |
29824 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29826 | (eval $ac_try) 2>&5 | |
29827 | ac_status=$? | |
29828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29829 | (exit $ac_status); }; }; then | |
29830 | ac_cv_func_shmat=yes | |
29831 | else | |
29832 | echo "$as_me: failed program was:" >&5 | |
29833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29834 | ||
29835 | ac_cv_func_shmat=no | |
29836 | fi | |
ac1cb8d3 VS |
29837 | rm -f conftest.err conftest.$ac_objext \ |
29838 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29839 | fi |
29840 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
29841 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
29842 | ||
29843 | if test $ac_cv_func_shmat = no; then | |
29844 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
29845 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
29846 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
29847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29848 | else | |
29849 | ac_check_lib_save_LIBS=$LIBS | |
29850 | LIBS="-lipc $LIBS" | |
29851 | cat >conftest.$ac_ext <<_ACEOF | |
29852 | /* confdefs.h. */ | |
29853 | _ACEOF | |
29854 | cat confdefs.h >>conftest.$ac_ext | |
29855 | cat >>conftest.$ac_ext <<_ACEOF | |
29856 | /* end confdefs.h. */ | |
29857 | ||
29858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29859 | #ifdef __cplusplus | |
29860 | extern "C" | |
29861 | #endif | |
29862 | /* We use char because int might match the return type of a gcc2 | |
29863 | builtin and then its argument prototype would still apply. */ | |
29864 | char shmat (); | |
29865 | int | |
29866 | main () | |
29867 | { | |
29868 | shmat (); | |
29869 | ; | |
29870 | return 0; | |
29871 | } | |
29872 | _ACEOF | |
29873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29875 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29876 | ac_status=$? |
ac1cb8d3 VS |
29877 | grep -v '^ *+' conftest.er1 >conftest.err |
29878 | rm -f conftest.er1 | |
29879 | cat conftest.err >&5 | |
a848cd7e SC |
29880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29881 | (exit $ac_status); } && | |
3f60522a JS |
29882 | { ac_try='test -z "$ac_cxx_werror_flag" |
29883 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29885 | (eval $ac_try) 2>&5 | |
29886 | ac_status=$? | |
29887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29888 | (exit $ac_status); }; } && | |
29889 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29891 | (eval $ac_try) 2>&5 | |
29892 | ac_status=$? | |
29893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29894 | (exit $ac_status); }; }; then | |
29895 | ac_cv_lib_ipc_shmat=yes | |
29896 | else | |
29897 | echo "$as_me: failed program was:" >&5 | |
29898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29899 | ||
29900 | ac_cv_lib_ipc_shmat=no | |
29901 | fi | |
ac1cb8d3 VS |
29902 | rm -f conftest.err conftest.$ac_objext \ |
29903 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29904 | LIBS=$ac_check_lib_save_LIBS |
29905 | fi | |
29906 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
29907 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
29908 | if test $ac_cv_lib_ipc_shmat = yes; then | |
29909 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
29910 | fi | |
29911 | ||
29912 | fi | |
29913 | fi | |
29914 | ||
29915 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
29916 | ac_save_LDFLAGS=$LDFLAGS | |
29917 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
29918 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
29919 | # check for ICE first), but we must link in the order -lSM -lICE or | |
29920 | # we get undefined symbols. So assume we have SM if we have ICE. | |
29921 | # These have to be linked with before -lX11, unlike the other | |
29922 | # libraries we check for below, so use a different variable. | |
29923 | # John Interrante, Karl Berry | |
29924 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
29925 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
29926 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
29927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29928 | else | |
29929 | ac_check_lib_save_LIBS=$LIBS | |
29930 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
29931 | cat >conftest.$ac_ext <<_ACEOF | |
29932 | /* confdefs.h. */ | |
29933 | _ACEOF | |
29934 | cat confdefs.h >>conftest.$ac_ext | |
29935 | cat >>conftest.$ac_ext <<_ACEOF | |
29936 | /* end confdefs.h. */ | |
29937 | ||
29938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29939 | #ifdef __cplusplus | |
29940 | extern "C" | |
29941 | #endif | |
29942 | /* We use char because int might match the return type of a gcc2 | |
29943 | builtin and then its argument prototype would still apply. */ | |
29944 | char IceConnectionNumber (); | |
29945 | int | |
29946 | main () | |
29947 | { | |
29948 | IceConnectionNumber (); | |
29949 | ; | |
29950 | return 0; | |
29951 | } | |
29952 | _ACEOF | |
29953 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29955 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29956 | ac_status=$? |
ac1cb8d3 VS |
29957 | grep -v '^ *+' conftest.er1 >conftest.err |
29958 | rm -f conftest.er1 | |
29959 | cat conftest.err >&5 | |
a848cd7e SC |
29960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29961 | (exit $ac_status); } && | |
3f60522a JS |
29962 | { ac_try='test -z "$ac_cxx_werror_flag" |
29963 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29965 | (eval $ac_try) 2>&5 | |
29966 | ac_status=$? | |
29967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29968 | (exit $ac_status); }; } && | |
29969 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29971 | (eval $ac_try) 2>&5 | |
29972 | ac_status=$? | |
29973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29974 | (exit $ac_status); }; }; then | |
29975 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
29976 | else | |
29977 | echo "$as_me: failed program was:" >&5 | |
29978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29979 | ||
29980 | ac_cv_lib_ICE_IceConnectionNumber=no | |
29981 | fi | |
ac1cb8d3 VS |
29982 | rm -f conftest.err conftest.$ac_objext \ |
29983 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29984 | LIBS=$ac_check_lib_save_LIBS |
29985 | fi | |
29986 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
29987 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
29988 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
29989 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
29990 | fi | |
29991 | ||
29992 | LDFLAGS=$ac_save_LDFLAGS | |
29993 | ||
29994 | fi | |
29995 | ||
29996 | ||
29997 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
29998 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
29999 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
30000 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
30001 | fi |
30002 | ||
74b84332 VS |
30003 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
30004 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
30005 | AFMINSTALL=afminstall |
30006 | COMPILED_X_PROGRAM=0 | |
30007 | ||
74b84332 VS |
30008 | fi |
30009 | ||
30010 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
30011 | if test "$wxUSE_NANOX" = "yes"; then |
30012 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
30013 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
30014 | if test "x$MICROWIN" = x ; then | |
30015 | echo "$as_me:$LINENO: result: not found" >&5 | |
30016 | echo "${ECHO_T}not found" >&6 | |
30017 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
30018 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
30019 | { (exit 1); exit 1; }; } | |
30020 | else | |
30021 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
30022 | echo "${ECHO_T}$MICROWIN" >&6 | |
30023 | cat >>confdefs.h <<\_ACEOF | |
30024 | #define wxUSE_NANOX 1 | |
30025 | _ACEOF | |
30026 | ||
30027 | fi | |
30028 | fi | |
30029 | ||
30030 | if test "$wxUSE_UNICODE" = "yes"; then | |
30031 | ||
30032 | succeeded=no | |
30033 | ||
30034 | if test -z "$PKG_CONFIG"; then | |
30035 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
30036 | set dummy pkg-config; ac_word=$2 | |
30037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30039 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
30040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30041 | else | |
30042 | case $PKG_CONFIG in | |
30043 | [\\/]* | ?:[\\/]*) | |
30044 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
30045 | ;; | |
30046 | *) | |
30047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30048 | for as_dir in $PATH | |
30049 | do | |
30050 | IFS=$as_save_IFS | |
30051 | test -z "$as_dir" && as_dir=. | |
30052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30054 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
30055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30056 | break 2 | |
30057 | fi | |
30058 | done | |
30059 | done | |
30060 | ||
30061 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
30062 | ;; | |
30063 | esac | |
30064 | fi | |
30065 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
30066 | ||
30067 | if test -n "$PKG_CONFIG"; then | |
30068 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
30069 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
30070 | else | |
30071 | echo "$as_me:$LINENO: result: no" >&5 | |
30072 | echo "${ECHO_T}no" >&6 | |
30073 | fi | |
30074 | ||
30075 | fi | |
30076 | ||
30077 | if test "$PKG_CONFIG" = "no" ; then | |
30078 | echo "*** The pkg-config script could not be found. Make sure it is" | |
30079 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
30080 | echo "*** to the full path to pkg-config." | |
30081 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
30082 | else | |
30083 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
30084 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
30085 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
30086 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
30087 | ||
30088 | if $PKG_CONFIG --exists "pangox" ; then | |
30089 | echo "$as_me:$LINENO: result: yes" >&5 | |
30090 | echo "${ECHO_T}yes" >&6 | |
30091 | succeeded=yes | |
30092 | ||
30093 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
30094 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
30095 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
30096 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
30097 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
30098 | ||
30099 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
30100 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
30101 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
30102 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
30103 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
30104 | else | |
30105 | PANGOX_CFLAGS="" | |
30106 | PANGOX_LIBS="" | |
30107 | ## If we have a custom action on failure, don't print errors, but | |
30108 | ## do set a variable so people can do so. | |
30109 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
30110 | ||
30111 | fi | |
30112 | ||
30113 | ||
30114 | ||
30115 | else | |
30116 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
30117 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
30118 | fi | |
30119 | fi | |
30120 | ||
30121 | if test $succeeded = yes; then | |
30122 | ||
c92ad099 | 30123 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
a848cd7e SC |
30124 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
30125 | ||
30126 | else | |
30127 | ||
30128 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
30129 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
30130 | { (exit 1); exit 1; }; } | |
30131 | ||
30132 | ||
30133 | fi | |
30134 | ||
30135 | ||
30136 | succeeded=no | |
30137 | ||
30138 | if test -z "$PKG_CONFIG"; then | |
30139 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
30140 | set dummy pkg-config; ac_word=$2 | |
30141 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30143 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
30144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30145 | else | |
30146 | case $PKG_CONFIG in | |
30147 | [\\/]* | ?:[\\/]*) | |
30148 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
30149 | ;; | |
30150 | *) | |
30151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30152 | for as_dir in $PATH | |
30153 | do | |
30154 | IFS=$as_save_IFS | |
30155 | test -z "$as_dir" && as_dir=. | |
30156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30157 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30158 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
30159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30160 | break 2 | |
30161 | fi | |
30162 | done | |
30163 | done | |
30164 | ||
30165 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
30166 | ;; | |
30167 | esac | |
30168 | fi | |
30169 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
30170 | ||
30171 | if test -n "$PKG_CONFIG"; then | |
30172 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
30173 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
30174 | else | |
30175 | echo "$as_me:$LINENO: result: no" >&5 | |
30176 | echo "${ECHO_T}no" >&6 | |
30177 | fi | |
30178 | ||
30179 | fi | |
30180 | ||
30181 | if test "$PKG_CONFIG" = "no" ; then | |
30182 | echo "*** The pkg-config script could not be found. Make sure it is" | |
30183 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
30184 | echo "*** to the full path to pkg-config." | |
30185 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
30186 | else | |
30187 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
30188 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
30189 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
30190 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
30191 | ||
30192 | if $PKG_CONFIG --exists "pangoft2" ; then | |
30193 | echo "$as_me:$LINENO: result: yes" >&5 | |
30194 | echo "${ECHO_T}yes" >&6 | |
30195 | succeeded=yes | |
30196 | ||
30197 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
30198 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
30199 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
30200 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
30201 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
30202 | ||
30203 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
30204 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
30205 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
30206 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
30207 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
30208 | else | |
30209 | PANGOFT2_CFLAGS="" | |
30210 | PANGOFT2_LIBS="" | |
30211 | ## If we have a custom action on failure, don't print errors, but | |
30212 | ## do set a variable so people can do so. | |
30213 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
30214 | ||
30215 | fi | |
30216 | ||
30217 | ||
30218 | ||
30219 | else | |
30220 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
30221 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
30222 | fi | |
30223 | fi | |
30224 | ||
30225 | if test $succeeded = yes; then | |
30226 | ||
c92ad099 | 30227 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
a848cd7e SC |
30228 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
30229 | ||
30230 | else | |
30231 | ||
30232 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
30233 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
30234 | wxUSE_PRINTING_ARCHITECTURE="no" | |
30235 | ||
30236 | ||
30237 | fi | |
30238 | ||
30239 | ||
30240 | succeeded=no | |
30241 | ||
30242 | if test -z "$PKG_CONFIG"; then | |
30243 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
30244 | set dummy pkg-config; ac_word=$2 | |
30245 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
30246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
30247 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
30248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30249 | else | |
30250 | case $PKG_CONFIG in | |
30251 | [\\/]* | ?:[\\/]*) | |
30252 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
30253 | ;; | |
30254 | *) | |
30255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
30256 | for as_dir in $PATH | |
30257 | do | |
30258 | IFS=$as_save_IFS | |
30259 | test -z "$as_dir" && as_dir=. | |
30260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
30261 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
30262 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
30263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
30264 | break 2 | |
30265 | fi | |
30266 | done | |
30267 | done | |
30268 | ||
30269 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
30270 | ;; | |
30271 | esac | |
30272 | fi | |
30273 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
30274 | ||
30275 | if test -n "$PKG_CONFIG"; then | |
30276 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
30277 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
30278 | else | |
30279 | echo "$as_me:$LINENO: result: no" >&5 | |
30280 | echo "${ECHO_T}no" >&6 | |
30281 | fi | |
30282 | ||
30283 | fi | |
30284 | ||
30285 | if test "$PKG_CONFIG" = "no" ; then | |
30286 | echo "*** The pkg-config script could not be found. Make sure it is" | |
30287 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
30288 | echo "*** to the full path to pkg-config." | |
30289 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
30290 | else | |
30291 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
30292 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
30293 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
30294 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
30295 | ||
30296 | if $PKG_CONFIG --exists "pangoxft" ; then | |
30297 | echo "$as_me:$LINENO: result: yes" >&5 | |
30298 | echo "${ECHO_T}yes" >&6 | |
30299 | succeeded=yes | |
30300 | ||
30301 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
30302 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
30303 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
30304 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
30305 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
30306 | ||
30307 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
30308 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
30309 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
30310 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
30311 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
30312 | else | |
30313 | PANGOXFT_CFLAGS="" | |
30314 | PANGOXFT_LIBS="" | |
30315 | ## If we have a custom action on failure, don't print errors, but | |
30316 | ## do set a variable so people can do so. | |
30317 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
30318 | ||
30319 | fi | |
30320 | ||
30321 | ||
30322 | ||
30323 | else | |
30324 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
30325 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
30326 | fi | |
30327 | fi | |
30328 | ||
30329 | if test $succeeded = yes; then | |
30330 | ||
4ae1af05 MB |
30331 | cat >>confdefs.h <<\_ACEOF |
30332 | #define HAVE_PANGO_XFT 1 | |
30333 | _ACEOF | |
30334 | ||
c92ad099 | 30335 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
30336 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
30337 | ||
30338 | else | |
30339 | ||
30340 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
30341 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
30342 | ||
30343 | ||
30344 | fi | |
30345 | ||
e56f4f9e | 30346 | save_CXXFLAGS="$CXXFLAGS" |
304205f1 | 30347 | save_LIBS="$LIBS" |
e56f4f9e | 30348 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
304205f1 VS |
30349 | LIBS="$LIBS $PANGOX_LIBS" |
30350 | ||
30351 | for ac_func in pango_font_family_is_monospace | |
30352 | do | |
30353 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30354 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30355 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30356 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30358 | else | |
30359 | cat >conftest.$ac_ext <<_ACEOF | |
30360 | /* confdefs.h. */ | |
30361 | _ACEOF | |
30362 | cat confdefs.h >>conftest.$ac_ext | |
30363 | cat >>conftest.$ac_ext <<_ACEOF | |
30364 | /* end confdefs.h. */ | |
30365 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
30366 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30367 | #define $ac_func innocuous_$ac_func | |
30368 | ||
30369 | /* System header to define __stub macros and hopefully few prototypes, | |
30370 | which can conflict with char $ac_func (); below. | |
30371 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30372 | <limits.h> exists even on freestanding compilers. */ | |
30373 | ||
30374 | #ifdef __STDC__ | |
30375 | # include <limits.h> | |
30376 | #else | |
30377 | # include <assert.h> | |
30378 | #endif | |
30379 | ||
30380 | #undef $ac_func | |
30381 | ||
30382 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30383 | #ifdef __cplusplus | |
30384 | extern "C" | |
30385 | { | |
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 $ac_func (); | |
30390 | /* The GNU C library defines this for functions which it implements | |
30391 | to always fail with ENOSYS. Some functions are actually named | |
30392 | something starting with __ and the normal name is an alias. */ | |
30393 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30394 | choke me | |
30395 | #else | |
30396 | char (*f) () = $ac_func; | |
30397 | #endif | |
30398 | #ifdef __cplusplus | |
30399 | } | |
30400 | #endif | |
30401 | ||
30402 | int | |
30403 | main () | |
30404 | { | |
30405 | return f != $ac_func; | |
30406 | ; | |
30407 | return 0; | |
30408 | } | |
30409 | _ACEOF | |
30410 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30412 | (eval $ac_link) 2>conftest.er1 | |
30413 | ac_status=$? | |
30414 | grep -v '^ *+' conftest.er1 >conftest.err | |
30415 | rm -f conftest.er1 | |
30416 | cat conftest.err >&5 | |
30417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30418 | (exit $ac_status); } && | |
3f60522a JS |
30419 | { ac_try='test -z "$ac_cxx_werror_flag" |
30420 | || test ! -s conftest.err' | |
304205f1 VS |
30421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30422 | (eval $ac_try) 2>&5 | |
30423 | ac_status=$? | |
30424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30425 | (exit $ac_status); }; } && | |
30426 | { ac_try='test -s conftest$ac_exeext' | |
30427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30428 | (eval $ac_try) 2>&5 | |
30429 | ac_status=$? | |
30430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30431 | (exit $ac_status); }; }; then | |
30432 | eval "$as_ac_var=yes" | |
30433 | else | |
30434 | echo "$as_me: failed program was:" >&5 | |
30435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30436 | ||
30437 | eval "$as_ac_var=no" | |
30438 | fi | |
30439 | rm -f conftest.err conftest.$ac_objext \ | |
30440 | conftest$ac_exeext conftest.$ac_ext | |
30441 | fi | |
30442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30443 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30444 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30445 | cat >>confdefs.h <<_ACEOF | |
30446 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30447 | _ACEOF | |
30448 | ||
30449 | fi | |
30450 | done | |
30451 | ||
e56f4f9e | 30452 | CXXFLAGS="$save_CXXFLAGS" |
304205f1 | 30453 | LIBS="$save_LIBS" |
a848cd7e SC |
30454 | fi |
30455 | ||
30456 | wxUSE_UNIVERSAL="yes" | |
30457 | ||
30458 | if test "$wxUSE_NANOX" = "yes"; then | |
30459 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
30460 | 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" | |
30461 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
30462 | else | |
30463 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
30464 | fi | |
30465 | ||
a848cd7e SC |
30466 | TOOLKIT=X11 |
30467 | GUIDIST=X11_DIST | |
30468 | fi | |
30469 | ||
30470 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
30471 | if test "$wxUSE_UNICODE" = "yes"; then |
30472 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
30473 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
30474 | { (exit 1); exit 1; }; } | |
30475 | fi | |
30476 | ||
74b84332 VS |
30477 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
30478 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 30479 | |
74b84332 VS |
30480 | ac_find_includes= |
30481 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
30482 | do | |
30483 | if test -f "$ac_dir/Xm/Xm.h"; then | |
30484 | ac_find_includes=$ac_dir | |
30485 | break | |
30486 | fi | |
30487 | done | |
a848cd7e | 30488 | |
74b84332 VS |
30489 | if test "$ac_find_includes" != "" ; then |
30490 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
30491 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
30492 | ||
30493 | if test "x$ac_find_includes" = "x/usr/include"; then | |
30494 | ac_path_to_include="" | |
30495 | else | |
30496 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
30497 | result=$? | |
30498 | if test $result = 0; then | |
30499 | ac_path_to_include="" | |
30500 | else | |
30501 | ac_path_to_include=" -I$ac_find_includes" | |
30502 | fi | |
a848cd7e SC |
30503 | fi |
30504 | ||
74b84332 VS |
30505 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
30506 | else | |
e56f4f9e VZ |
30507 | save_CXXFLAGS=$CXXFLAGS |
30508 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
e051b34e | 30509 | |
74b84332 | 30510 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
30511 | /* confdefs.h. */ |
30512 | _ACEOF | |
30513 | cat confdefs.h >>conftest.$ac_ext | |
30514 | cat >>conftest.$ac_ext <<_ACEOF | |
30515 | /* end confdefs.h. */ | |
30516 | ||
74b84332 VS |
30517 | #include <Xm/Xm.h> |
30518 | ||
a848cd7e SC |
30519 | int |
30520 | main () | |
30521 | { | |
30522 | ||
74b84332 VS |
30523 | int version; |
30524 | version = xmUseVersion; | |
30525 | ||
a848cd7e SC |
30526 | ; |
30527 | return 0; | |
30528 | } | |
30529 | _ACEOF | |
74b84332 VS |
30530 | rm -f conftest.$ac_objext |
30531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30532 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 30533 | ac_status=$? |
ac1cb8d3 VS |
30534 | grep -v '^ *+' conftest.er1 >conftest.err |
30535 | rm -f conftest.er1 | |
30536 | cat conftest.err >&5 | |
a848cd7e SC |
30537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30538 | (exit $ac_status); } && | |
3f60522a JS |
30539 | { ac_try='test -z "$ac_cxx_werror_flag" |
30540 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30542 | (eval $ac_try) 2>&5 | |
30543 | ac_status=$? | |
30544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30545 | (exit $ac_status); }; } && | |
74b84332 | 30546 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
30547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30548 | (eval $ac_try) 2>&5 | |
30549 | ac_status=$? | |
30550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30551 | (exit $ac_status); }; }; then | |
74b84332 VS |
30552 | |
30553 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
30554 | echo "${ECHO_T}found in default search path" >&6 | |
30555 | COMPILED_X_PROGRAM=1 | |
30556 | ||
a848cd7e SC |
30557 | else |
30558 | echo "$as_me: failed program was:" >&5 | |
30559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30560 | ||
a848cd7e | 30561 | |
74b84332 VS |
30562 | echo "$as_me:$LINENO: result: no" >&5 |
30563 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
30564 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
30565 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 30566 | { (exit 1); exit 1; }; } |
a848cd7e | 30567 | |
a848cd7e | 30568 | |
a848cd7e | 30569 | fi |
74b84332 | 30570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e | 30571 | |
e56f4f9e | 30572 | CXXFLAGS=$save_CXXFLAGS |
74b84332 VS |
30573 | fi |
30574 | ||
0ad5d837 VZ |
30575 | |
30576 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
30577 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
30578 | ||
0ad5d837 VZ |
30579 | ac_find_libraries= |
30580 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 30581 | do |
3eca31dc | 30582 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
30583 | if test -f "$ac_dir/libXm.$ac_extension"; then |
30584 | ac_find_libraries=$ac_dir | |
30585 | break 2 | |
a848cd7e | 30586 | fi |
74b84332 VS |
30587 | done |
30588 | done | |
a848cd7e | 30589 | |
0ad5d837 VZ |
30590 | |
30591 | if test "x$ac_find_libraries" != "x" ; then | |
30592 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
30593 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 30594 | |
74b84332 | 30595 | |
0ad5d837 | 30596 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 30597 | ac_path_to_link="" |
a848cd7e | 30598 | else |
0ad5d837 VZ |
30599 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30600 | result=$? | |
30601 | if test $result = 0; then | |
30602 | ac_path_to_link="" | |
30603 | else | |
30604 | ac_path_to_link=" -L$ac_find_libraries" | |
30605 | fi | |
74b84332 VS |
30606 | fi |
30607 | ||
0ad5d837 VZ |
30608 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
30609 | else | |
e56f4f9e VZ |
30610 | save_CXXFLAGS=$CXXFLAGS |
30611 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
6f9cf1e6 MW |
30612 | save_LIBS="$LIBS" |
30613 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 30614 | |
0ad5d837 | 30615 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
30616 | /* confdefs.h. */ |
30617 | _ACEOF | |
30618 | cat confdefs.h >>conftest.$ac_ext | |
30619 | cat >>conftest.$ac_ext <<_ACEOF | |
30620 | /* end confdefs.h. */ | |
30621 | ||
0ad5d837 | 30622 | #include <Xm/Xm.h> |
74b84332 | 30623 | |
a848cd7e SC |
30624 | int |
30625 | main () | |
30626 | { | |
74b84332 | 30627 | |
0ad5d837 VZ |
30628 | int version; |
30629 | version = xmUseVersion; | |
74b84332 | 30630 | |
a848cd7e SC |
30631 | ; |
30632 | return 0; | |
30633 | } | |
30634 | _ACEOF | |
0ad5d837 VZ |
30635 | rm -f conftest.$ac_objext conftest$ac_exeext |
30636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30637 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 30638 | ac_status=$? |
ac1cb8d3 VS |
30639 | grep -v '^ *+' conftest.er1 >conftest.err |
30640 | rm -f conftest.er1 | |
30641 | cat conftest.err >&5 | |
a848cd7e SC |
30642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30643 | (exit $ac_status); } && | |
3f60522a JS |
30644 | { ac_try='test -z "$ac_cxx_werror_flag" |
30645 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30647 | (eval $ac_try) 2>&5 | |
30648 | ac_status=$? | |
30649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30650 | (exit $ac_status); }; } && | |
0ad5d837 | 30651 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30653 | (eval $ac_try) 2>&5 | |
30654 | ac_status=$? | |
30655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30656 | (exit $ac_status); }; }; then | |
74b84332 | 30657 | |
0ad5d837 | 30658 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 30659 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 30660 | COMPILED_X_PROGRAM=1 |
74b84332 | 30661 | |
a848cd7e SC |
30662 | else |
30663 | echo "$as_me: failed program was:" >&5 | |
30664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30665 | ||
74b84332 | 30666 | |
6f9cf1e6 | 30667 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 30668 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 30669 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
30670 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
30671 | { (exit 1); exit 1; }; } | |
30672 | ||
30673 | ||
30674 | fi | |
0ad5d837 VZ |
30675 | rm -f conftest.err conftest.$ac_objext \ |
30676 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 30677 | |
e56f4f9e | 30678 | CXXFLAGS=$save_CXXFLAGS |
6f9cf1e6 | 30679 | LIBS="$save_LIBS" |
74b84332 VS |
30680 | fi |
30681 | ||
30682 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
30683 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
30684 | libp_link="" | |
30685 | libsm_ice_link="" | |
30686 | libs_found=0 | |
30687 | for libp in "" " -lXp"; do | |
30688 | if test "$libs_found" = "0"; then | |
30689 | for libsm_ice in "" " -lSM -lICE"; do | |
30690 | if test "$libs_found" = "0"; then | |
30691 | save_LIBS="$LIBS" | |
30692 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
e56f4f9e VZ |
30693 | save_CXXFLAGS=$CXXFLAGS |
30694 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
74b84332 VS |
30695 | |
30696 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30697 | /* confdefs.h. */ |
30698 | _ACEOF | |
30699 | cat confdefs.h >>conftest.$ac_ext | |
30700 | cat >>conftest.$ac_ext <<_ACEOF | |
30701 | /* end confdefs.h. */ | |
30702 | ||
74b84332 VS |
30703 | #include <Xm/Xm.h> |
30704 | #include <Xm/List.h> | |
30705 | ||
a848cd7e SC |
30706 | int |
30707 | main () | |
30708 | { | |
74b84332 VS |
30709 | |
30710 | XmString string = NULL; | |
30711 | Widget w = NULL; | |
30712 | int position = 0; | |
30713 | XmListAddItem(w, string, position); | |
30714 | ||
a848cd7e SC |
30715 | ; |
30716 | return 0; | |
30717 | } | |
30718 | _ACEOF | |
30719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30721 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30722 | ac_status=$? |
ac1cb8d3 VS |
30723 | grep -v '^ *+' conftest.er1 >conftest.err |
30724 | rm -f conftest.er1 | |
30725 | cat conftest.err >&5 | |
a848cd7e SC |
30726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30727 | (exit $ac_status); } && | |
3f60522a JS |
30728 | { ac_try='test -z "$ac_cxx_werror_flag" |
30729 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30731 | (eval $ac_try) 2>&5 | |
30732 | ac_status=$? | |
30733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30734 | (exit $ac_status); }; } && | |
30735 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30737 | (eval $ac_try) 2>&5 | |
30738 | ac_status=$? | |
30739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30740 | (exit $ac_status); }; }; then | |
30741 | ||
30742 | libp_link="$libp" | |
30743 | libsm_ice_link="$libsm_ice" | |
30744 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
30745 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
30746 | libs_found=1 | |
30747 | ||
30748 | else | |
30749 | echo "$as_me: failed program was:" >&5 | |
30750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30751 | ||
30752 | ||
30753 | ||
30754 | fi | |
ac1cb8d3 VS |
30755 | rm -f conftest.err conftest.$ac_objext \ |
30756 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30757 | |
30758 | LIBS="$save_LIBS" | |
e56f4f9e | 30759 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
30760 | fi |
30761 | done | |
30762 | fi | |
30763 | done | |
30764 | ||
30765 | if test "$libs_found" = "0"; then | |
30766 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
30767 | echo "${ECHO_T}can't find the right libraries" >&6 | |
30768 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
30769 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
30770 | { (exit 1); exit 1; }; } | |
30771 | fi | |
30772 | ||
62fa8b3a MW |
30773 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
30774 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
30775 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
30776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30777 | else | |
30778 | ac_check_lib_save_LIBS=$LIBS | |
30779 | LIBS="-lSgm $LIBS" | |
30780 | cat >conftest.$ac_ext <<_ACEOF | |
30781 | /* confdefs.h. */ | |
30782 | _ACEOF | |
30783 | cat confdefs.h >>conftest.$ac_ext | |
30784 | cat >>conftest.$ac_ext <<_ACEOF | |
30785 | /* end confdefs.h. */ | |
30786 | ||
30787 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30788 | #ifdef __cplusplus | |
30789 | extern "C" | |
30790 | #endif | |
30791 | /* We use char because int might match the return type of a gcc2 | |
30792 | builtin and then its argument prototype would still apply. */ | |
30793 | char SgCreateList (); | |
30794 | int | |
30795 | main () | |
30796 | { | |
30797 | SgCreateList (); | |
30798 | ; | |
30799 | return 0; | |
30800 | } | |
30801 | _ACEOF | |
30802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30804 | (eval $ac_link) 2>conftest.er1 | |
30805 | ac_status=$? | |
30806 | grep -v '^ *+' conftest.er1 >conftest.err | |
30807 | rm -f conftest.er1 | |
30808 | cat conftest.err >&5 | |
30809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30810 | (exit $ac_status); } && | |
3f60522a JS |
30811 | { ac_try='test -z "$ac_cxx_werror_flag" |
30812 | || test ! -s conftest.err' | |
62fa8b3a MW |
30813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30814 | (eval $ac_try) 2>&5 | |
30815 | ac_status=$? | |
30816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30817 | (exit $ac_status); }; } && | |
30818 | { ac_try='test -s conftest$ac_exeext' | |
30819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30820 | (eval $ac_try) 2>&5 | |
30821 | ac_status=$? | |
30822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30823 | (exit $ac_status); }; }; then | |
30824 | ac_cv_lib_Sgm_SgCreateList=yes | |
30825 | else | |
30826 | echo "$as_me: failed program was:" >&5 | |
30827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30828 | ||
30829 | ac_cv_lib_Sgm_SgCreateList=no | |
30830 | fi | |
30831 | rm -f conftest.err conftest.$ac_objext \ | |
30832 | conftest$ac_exeext conftest.$ac_ext | |
30833 | LIBS=$ac_check_lib_save_LIBS | |
30834 | fi | |
30835 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
30836 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
30837 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
30838 | libsgm_link=" -lSgm" | |
30839 | fi | |
30840 | ||
30841 | ||
e56f4f9e VZ |
30842 | save_CXXFLAGS=$CXXFLAGS |
30843 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
0ad5d837 | 30844 | |
a848cd7e SC |
30845 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
30846 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
30847 | if test "${wx_cv_lib_motif2+set}" = set; then |
30848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30849 | else | |
30850 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30851 | /* confdefs.h. */ |
30852 | _ACEOF | |
30853 | cat confdefs.h >>conftest.$ac_ext | |
30854 | cat >>conftest.$ac_ext <<_ACEOF | |
30855 | /* end confdefs.h. */ | |
30856 | ||
0ad5d837 | 30857 | #include <Xm/Xm.h> |
a848cd7e SC |
30858 | |
30859 | int | |
30860 | main () | |
30861 | { | |
30862 | ||
0ad5d837 VZ |
30863 | #if XmVersion < 2000 |
30864 | Not Motif 2 | |
30865 | #endif | |
a848cd7e SC |
30866 | |
30867 | ; | |
30868 | return 0; | |
30869 | } | |
30870 | _ACEOF | |
30871 | rm -f conftest.$ac_objext | |
30872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30873 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30874 | ac_status=$? |
ac1cb8d3 VS |
30875 | grep -v '^ *+' conftest.er1 >conftest.err |
30876 | rm -f conftest.er1 | |
30877 | cat conftest.err >&5 | |
a848cd7e SC |
30878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30879 | (exit $ac_status); } && | |
3f60522a JS |
30880 | { ac_try='test -z "$ac_cxx_werror_flag" |
30881 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30883 | (eval $ac_try) 2>&5 | |
30884 | ac_status=$? | |
30885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30886 | (exit $ac_status); }; } && | |
30887 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30889 | (eval $ac_try) 2>&5 | |
30890 | ac_status=$? | |
30891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30892 | (exit $ac_status); }; }; then | |
0ad5d837 | 30893 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
30894 | else |
30895 | echo "$as_me: failed program was:" >&5 | |
30896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30897 | ||
0ad5d837 VZ |
30898 | wx_cv_lib_motif2="no" |
30899 | fi | |
30900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30901 | fi | |
30902 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
30903 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
30904 | if test "$wx_cv_lib_motif2" = "yes"; then | |
30905 | cat >>confdefs.h <<\_ACEOF | |
30906 | #define __WXMOTIF20__ 1 | |
30907 | _ACEOF | |
a848cd7e | 30908 | |
0ad5d837 VZ |
30909 | else |
30910 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30911 | #define __WXMOTIF20__ 0 |
30912 | _ACEOF | |
30913 | ||
0ad5d837 | 30914 | fi |
2113bc77 MW |
30915 | |
30916 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
30917 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
30918 | if test "${wx_cv_lib_lesstif+set}" = set; then |
30919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30920 | else | |
30921 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
30922 | /* confdefs.h. */ |
30923 | _ACEOF | |
30924 | cat confdefs.h >>conftest.$ac_ext | |
30925 | cat >>conftest.$ac_ext <<_ACEOF | |
30926 | /* end confdefs.h. */ | |
30927 | ||
0ad5d837 | 30928 | #include <Xm/Xm.h> |
2113bc77 MW |
30929 | |
30930 | int | |
30931 | main () | |
30932 | { | |
30933 | ||
0ad5d837 VZ |
30934 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
30935 | Not Lesstif | |
30936 | #endif | |
2113bc77 MW |
30937 | |
30938 | ; | |
30939 | return 0; | |
30940 | } | |
30941 | _ACEOF | |
30942 | rm -f conftest.$ac_objext | |
30943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30944 | (eval $ac_compile) 2>conftest.er1 | |
30945 | ac_status=$? | |
30946 | grep -v '^ *+' conftest.er1 >conftest.err | |
30947 | rm -f conftest.er1 | |
30948 | cat conftest.err >&5 | |
30949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30950 | (exit $ac_status); } && | |
3f60522a JS |
30951 | { ac_try='test -z "$ac_cxx_werror_flag" |
30952 | || test ! -s conftest.err' | |
2113bc77 MW |
30953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30954 | (eval $ac_try) 2>&5 | |
30955 | ac_status=$? | |
30956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30957 | (exit $ac_status); }; } && | |
30958 | { ac_try='test -s conftest.$ac_objext' | |
30959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30960 | (eval $ac_try) 2>&5 | |
30961 | ac_status=$? | |
30962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30963 | (exit $ac_status); }; }; then | |
0ad5d837 | 30964 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
30965 | else |
30966 | echo "$as_me: failed program was:" >&5 | |
30967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30968 | ||
0ad5d837 VZ |
30969 | wx_cv_lib_lesstif="no" |
30970 | fi | |
30971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 30972 | |
0ad5d837 VZ |
30973 | fi |
30974 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
30975 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
30976 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
30977 | cat >>confdefs.h <<\_ACEOF | |
30978 | #define __WXLESSTIF__ 1 | |
30979 | _ACEOF | |
30980 | ||
30981 | else | |
30982 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
30983 | #define __WXLESSTIF__ 0 |
30984 | _ACEOF | |
30985 | ||
0ad5d837 | 30986 | fi |
2113bc77 | 30987 | |
e56f4f9e | 30988 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e | 30989 | |
62fa8b3a | 30990 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
30991 | TOOLKIT=MOTIF |
30992 | GUIDIST=MOTIF_DIST | |
30993 | fi | |
30994 | ||
74b84332 | 30995 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
30996 | if test "$wxUSE_LIBXPM" = "sys"; then |
30997 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
30998 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
30999 | ||
0ad5d837 VZ |
31000 | ac_find_libraries= |
31001 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31002 | do |
3eca31dc | 31003 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31004 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
31005 | ac_find_libraries=$ac_dir | |
31006 | break 2 | |
31007 | fi | |
31008 | done | |
31009 | done | |
31010 | ||
31011 | if test "$ac_find_libraries" != "" ; then | |
31012 | ||
0ad5d837 | 31013 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31014 | ac_path_to_link="" |
31015 | else | |
0ad5d837 VZ |
31016 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
31017 | result=$? | |
31018 | if test $result = 0; then | |
31019 | ac_path_to_link="" | |
31020 | else | |
31021 | ac_path_to_link=" -L$ac_find_libraries" | |
31022 | fi | |
a848cd7e SC |
31023 | fi |
31024 | ||
31025 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
31026 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
31027 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
31028 | |
31029 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
31030 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
31031 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
31032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31033 | else | |
31034 | ||
e56f4f9e VZ |
31035 | save_CXXFLAGS=$CXXFLAGS |
31036 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
31037 | |
31038 | cat >conftest.$ac_ext <<_ACEOF | |
31039 | /* confdefs.h. */ | |
31040 | _ACEOF | |
31041 | cat confdefs.h >>conftest.$ac_ext | |
31042 | cat >>conftest.$ac_ext <<_ACEOF | |
31043 | /* end confdefs.h. */ | |
31044 | ||
31045 | #include <X11/xpm.h> | |
31046 | ||
31047 | int | |
31048 | main () | |
31049 | { | |
31050 | ||
31051 | int version; | |
31052 | version = XpmLibraryVersion(); | |
31053 | ||
31054 | ; | |
31055 | return 0; | |
31056 | } | |
31057 | _ACEOF | |
31058 | rm -f conftest.$ac_objext | |
31059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31060 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31061 | ac_status=$? |
ac1cb8d3 VS |
31062 | grep -v '^ *+' conftest.er1 >conftest.err |
31063 | rm -f conftest.er1 | |
31064 | cat conftest.err >&5 | |
a848cd7e SC |
31065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31066 | (exit $ac_status); } && | |
3f60522a JS |
31067 | { ac_try='test -z "$ac_cxx_werror_flag" |
31068 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31070 | (eval $ac_try) 2>&5 | |
31071 | ac_status=$? | |
31072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31073 | (exit $ac_status); }; } && | |
31074 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31076 | (eval $ac_try) 2>&5 | |
31077 | ac_status=$? | |
31078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31079 | (exit $ac_status); }; }; then | |
31080 | wx_cv_x11_xpm_h=yes | |
31081 | else | |
31082 | echo "$as_me: failed program was:" >&5 | |
31083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31084 | ||
31085 | wx_cv_x11_xpm_h=no | |
31086 | ||
31087 | fi | |
ac1cb8d3 | 31088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 31089 | |
e56f4f9e | 31090 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
31091 | |
31092 | ||
31093 | fi | |
31094 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
31095 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
31096 | ||
31097 | if test $wx_cv_x11_xpm_h = "yes"; then | |
31098 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
31099 | cat >>confdefs.h <<\_ACEOF | |
31100 | #define wxHAVE_LIB_XPM 1 | |
31101 | _ACEOF | |
31102 | ||
31103 | else | |
31104 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
31105 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
31106 | fi | |
31107 | fi | |
31108 | ||
31109 | fi | |
31110 | ||
31111 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
31112 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
31113 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
31114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31115 | else | |
31116 | ac_check_lib_save_LIBS=$LIBS | |
31117 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
31118 | cat >conftest.$ac_ext <<_ACEOF | |
31119 | /* confdefs.h. */ | |
31120 | _ACEOF | |
31121 | cat confdefs.h >>conftest.$ac_ext | |
31122 | cat >>conftest.$ac_ext <<_ACEOF | |
31123 | /* end confdefs.h. */ | |
31124 | ||
31125 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31126 | #ifdef __cplusplus | |
31127 | extern "C" | |
31128 | #endif | |
31129 | /* We use char because int might match the return type of a gcc2 | |
31130 | builtin and then its argument prototype would still apply. */ | |
31131 | char XShapeQueryExtension (); | |
31132 | int | |
31133 | main () | |
31134 | { | |
31135 | XShapeQueryExtension (); | |
31136 | ; | |
31137 | return 0; | |
31138 | } | |
31139 | _ACEOF | |
31140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31142 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31143 | ac_status=$? |
ac1cb8d3 VS |
31144 | grep -v '^ *+' conftest.er1 >conftest.err |
31145 | rm -f conftest.er1 | |
31146 | cat conftest.err >&5 | |
a848cd7e SC |
31147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31148 | (exit $ac_status); } && | |
3f60522a JS |
31149 | { ac_try='test -z "$ac_cxx_werror_flag" |
31150 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31152 | (eval $ac_try) 2>&5 | |
31153 | ac_status=$? | |
31154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31155 | (exit $ac_status); }; } && | |
31156 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31158 | (eval $ac_try) 2>&5 | |
31159 | ac_status=$? | |
31160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31161 | (exit $ac_status); }; }; then | |
31162 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
31163 | else | |
31164 | echo "$as_me: failed program was:" >&5 | |
31165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31166 | ||
31167 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
31168 | fi | |
ac1cb8d3 VS |
31169 | rm -f conftest.err conftest.$ac_objext \ |
31170 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31171 | LIBS=$ac_check_lib_save_LIBS |
31172 | fi | |
31173 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
31174 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
31175 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
31176 | ||
31177 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
31178 | wxHAVE_XEXT_LIB=1 | |
31179 | ||
31180 | fi | |
31181 | ||
31182 | ||
31183 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
e56f4f9e VZ |
31184 | save_CXXFLAGS="$CXXFLAGS" |
31185 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
31186 | |
31187 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
31188 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
31189 | cat >conftest.$ac_ext <<_ACEOF | |
31190 | /* confdefs.h. */ | |
31191 | _ACEOF | |
31192 | cat confdefs.h >>conftest.$ac_ext | |
31193 | cat >>conftest.$ac_ext <<_ACEOF | |
31194 | /* end confdefs.h. */ | |
31195 | ||
31196 | #include <X11/Xlib.h> | |
31197 | #include <X11/extensions/shape.h> | |
31198 | ||
31199 | int | |
31200 | main () | |
31201 | { | |
31202 | ||
31203 | int dummy1, dummy2; | |
31204 | XShapeQueryExtension((Display*)NULL, | |
31205 | (int*)NULL, (int*)NULL); | |
31206 | ||
31207 | ; | |
31208 | return 0; | |
31209 | } | |
31210 | _ACEOF | |
31211 | rm -f conftest.$ac_objext | |
31212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31213 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31214 | ac_status=$? |
ac1cb8d3 VS |
31215 | grep -v '^ *+' conftest.er1 >conftest.err |
31216 | rm -f conftest.er1 | |
31217 | cat conftest.err >&5 | |
a848cd7e SC |
31218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31219 | (exit $ac_status); } && | |
3f60522a JS |
31220 | { ac_try='test -z "$ac_cxx_werror_flag" |
31221 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31223 | (eval $ac_try) 2>&5 | |
31224 | ac_status=$? | |
31225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31226 | (exit $ac_status); }; } && | |
31227 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31229 | (eval $ac_try) 2>&5 | |
31230 | ac_status=$? | |
31231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31232 | (exit $ac_status); }; }; then | |
31233 | ||
31234 | cat >>confdefs.h <<\_ACEOF | |
31235 | #define HAVE_XSHAPE 1 | |
31236 | _ACEOF | |
31237 | ||
31238 | echo "$as_me:$LINENO: result: found" >&5 | |
31239 | echo "${ECHO_T}found" >&6 | |
31240 | ||
31241 | else | |
31242 | echo "$as_me: failed program was:" >&5 | |
31243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31244 | ||
31245 | ||
31246 | echo "$as_me:$LINENO: result: not found" >&5 | |
31247 | echo "${ECHO_T}not found" >&6 | |
31248 | ||
31249 | fi | |
ac1cb8d3 | 31250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e56f4f9e | 31251 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
31252 | |
31253 | fi | |
31254 | fi | |
31255 | ||
31256 | if test "$wxUSE_MAC" = 1; then | |
31257 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
31258 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
31259 | if test "$GCC" = yes; then | |
31260 | echo "$as_me:$LINENO: result: gcc" >&5 | |
31261 | echo "${ECHO_T}gcc" >&6 | |
31262 | CPPFLAGS_PASCAL="-fpascal-strings" | |
31263 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
31264 | echo "$as_me:$LINENO: result: xlc" >&5 | |
31265 | echo "${ECHO_T}xlc" >&6 | |
31266 | CPPFLAGS_PASCAL="-qmacpstr" | |
31267 | else | |
31268 | echo "$as_me:$LINENO: result: none" >&5 | |
31269 | echo "${ECHO_T}none" >&6 | |
31270 | fi | |
31271 | ||
1e9e8aba | 31272 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 31273 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 31274 | else |
c92ad099 | 31275 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 31276 | fi |
a848cd7e | 31277 | |
a848cd7e SC |
31278 | TOOLKIT=MAC |
31279 | GUIDIST=MACX_DIST | |
dd21ced8 | 31280 | WXBASEPORT="_carbon" |
a848cd7e SC |
31281 | fi |
31282 | ||
31283 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
31284 | TOOLKIT=COCOA |
31285 | GUIDIST=COCOA_DIST | |
31286 | fi | |
31287 | ||
31288 | if test "$wxUSE_PM" = 1; then | |
31289 | TOOLKIT=PM | |
de59c161 RD |
31290 | GUIDIST=PM_DIST |
31291 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
31292 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
31293 | if test "${wx_cv_spbcdata+set}" = set; then | |
31294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31295 | else | |
31296 | ||
31297 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
31298 | /* confdefs.h. */ |
31299 | _ACEOF | |
31300 | cat confdefs.h >>conftest.$ac_ext | |
31301 | cat >>conftest.$ac_ext <<_ACEOF | |
31302 | /* end confdefs.h. */ | |
31303 | ||
31304 | #define INCL_PM | |
31305 | #include <os2.h> | |
31306 | ||
31307 | int | |
31308 | main () | |
31309 | { | |
31310 | ||
31311 | SPBCDATA test; | |
31312 | ||
31313 | ; | |
31314 | return 0; | |
31315 | } | |
31316 | _ACEOF | |
31317 | rm -f conftest.$ac_objext | |
31318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31319 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 31320 | ac_status=$? |
ac1cb8d3 VS |
31321 | grep -v '^ *+' conftest.er1 >conftest.err |
31322 | rm -f conftest.er1 | |
31323 | cat conftest.err >&5 | |
de59c161 RD |
31324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31325 | (exit $ac_status); } && | |
3f60522a JS |
31326 | { ac_try='test -z "$ac_cxx_werror_flag" |
31327 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31329 | (eval $ac_try) 2>&5 | |
31330 | ac_status=$? | |
31331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31332 | (exit $ac_status); }; } && | |
31333 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
31334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31335 | (eval $ac_try) 2>&5 | |
31336 | ac_status=$? | |
31337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31338 | (exit $ac_status); }; }; then | |
31339 | wx_cv_spbcdata=yes | |
31340 | else | |
31341 | echo "$as_me: failed program was:" >&5 | |
31342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31343 | ||
31344 | wx_cv_spbcdata=no | |
31345 | ||
31346 | fi | |
ac1cb8d3 | 31347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
31348 | |
31349 | ||
31350 | fi | |
31351 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
31352 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
31353 | ||
31354 | if test $wx_cv_spbcdata = "yes"; then | |
31355 | cat >>confdefs.h <<\_ACEOF | |
31356 | #define HAVE_SPBCDATA 1 | |
31357 | _ACEOF | |
31358 | ||
31359 | fi | |
a848cd7e SC |
31360 | fi |
31361 | ||
31362 | if test "$TOOLKIT" = "PM" ; then | |
31363 | TOOLKIT_DIR="os2" | |
31364 | else | |
31365 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
31366 | fi | |
31367 | ||
a848cd7e | 31368 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
31369 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
31370 | WIDGET_SET=univ | |
a848cd7e SC |
31371 | fi |
31372 | ||
31373 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
31374 | DISTDIR="wx\$(TOOLKIT)" | |
31375 | else | |
31376 | USE_GUI=0 | |
31377 | ||
31378 | TOOLKIT_DIR="base" | |
31379 | ||
31380 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 31381 | TOOLKIT="MSW" |
a848cd7e SC |
31382 | fi |
31383 | ||
a848cd7e SC |
31384 | GUIDIST="BASE_DIST" |
31385 | DISTDIR="wxBase" | |
31386 | fi | |
31387 | ||
31388 | ||
d12aef51 VZ |
31389 | if test "$wxUSE_GUI" = "yes"; then |
31390 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
31391 | ||
31392 | for ac_header in X11/Xlib.h | |
31393 | do | |
31394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31395 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31396 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31397 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31398 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31400 | fi | |
31401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31402 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31403 | else | |
31404 | # Is the header compilable? | |
31405 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31406 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31407 | cat >conftest.$ac_ext <<_ACEOF | |
31408 | /* confdefs.h. */ | |
31409 | _ACEOF | |
31410 | cat confdefs.h >>conftest.$ac_ext | |
31411 | cat >>conftest.$ac_ext <<_ACEOF | |
31412 | /* end confdefs.h. */ | |
31413 | $ac_includes_default | |
31414 | #include <$ac_header> | |
31415 | _ACEOF | |
31416 | rm -f conftest.$ac_objext | |
31417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31418 | (eval $ac_compile) 2>conftest.er1 | |
31419 | ac_status=$? | |
31420 | grep -v '^ *+' conftest.er1 >conftest.err | |
31421 | rm -f conftest.er1 | |
31422 | cat conftest.err >&5 | |
31423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31424 | (exit $ac_status); } && | |
3f60522a JS |
31425 | { ac_try='test -z "$ac_cxx_werror_flag" |
31426 | || test ! -s conftest.err' | |
d12aef51 VZ |
31427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31428 | (eval $ac_try) 2>&5 | |
31429 | ac_status=$? | |
31430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31431 | (exit $ac_status); }; } && | |
31432 | { ac_try='test -s conftest.$ac_objext' | |
31433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31434 | (eval $ac_try) 2>&5 | |
31435 | ac_status=$? | |
31436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31437 | (exit $ac_status); }; }; then | |
31438 | ac_header_compiler=yes | |
31439 | else | |
31440 | echo "$as_me: failed program was:" >&5 | |
31441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31442 | ||
31443 | ac_header_compiler=no | |
31444 | fi | |
31445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31446 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31447 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31448 | ||
31449 | # Is the header present? | |
31450 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31451 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31452 | cat >conftest.$ac_ext <<_ACEOF | |
31453 | /* confdefs.h. */ | |
31454 | _ACEOF | |
31455 | cat confdefs.h >>conftest.$ac_ext | |
31456 | cat >>conftest.$ac_ext <<_ACEOF | |
31457 | /* end confdefs.h. */ | |
31458 | #include <$ac_header> | |
31459 | _ACEOF | |
31460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31462 | ac_status=$? | |
31463 | grep -v '^ *+' conftest.er1 >conftest.err | |
31464 | rm -f conftest.er1 | |
31465 | cat conftest.err >&5 | |
31466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31467 | (exit $ac_status); } >/dev/null; then | |
31468 | if test -s conftest.err; then | |
5d7b7554 VZ |
31469 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31470 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
d12aef51 VZ |
31471 | else |
31472 | ac_cpp_err= | |
31473 | fi | |
31474 | else | |
31475 | ac_cpp_err=yes | |
31476 | fi | |
31477 | if test -z "$ac_cpp_err"; then | |
31478 | ac_header_preproc=yes | |
31479 | else | |
31480 | echo "$as_me: failed program was:" >&5 | |
31481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31482 | ||
31483 | ac_header_preproc=no | |
31484 | fi | |
31485 | rm -f conftest.err conftest.$ac_ext | |
31486 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31487 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31488 | ||
31489 | # So? What about this header? | |
5d7b7554 | 31490 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
d12aef51 VZ |
31491 | yes:no: ) |
31492 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31493 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31494 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
31495 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31496 | ac_header_preproc=yes | |
31497 | ;; | |
31498 | no:yes:* ) | |
31499 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31500 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31501 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31502 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31503 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31504 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31505 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31506 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
31507 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31508 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31509 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
31510 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
31511 | ( | |
31512 | cat <<\_ASBOX | |
31513 | ## ----------------------------------------- ## | |
31514 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31515 | ## ----------------------------------------- ## | |
31516 | _ASBOX | |
31517 | ) | | |
31518 | sed "s/^/$as_me: WARNING: /" >&2 | |
31519 | ;; | |
31520 | esac | |
31521 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31525 | else | |
31526 | eval "$as_ac_Header=\$ac_header_preproc" | |
31527 | fi | |
31528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31529 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31530 | ||
31531 | fi | |
31532 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31533 | cat >>confdefs.h <<_ACEOF | |
31534 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31535 | _ACEOF | |
31536 | ||
31537 | fi | |
31538 | ||
31539 | done | |
31540 | ||
31541 | ||
31542 | for ac_header in X11/XKBlib.h | |
31543 | do | |
31544 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31545 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31549 | else | |
31550 | cat >conftest.$ac_ext <<_ACEOF | |
31551 | /* confdefs.h. */ | |
31552 | _ACEOF | |
31553 | cat confdefs.h >>conftest.$ac_ext | |
31554 | cat >>conftest.$ac_ext <<_ACEOF | |
31555 | /* end confdefs.h. */ | |
31556 | ||
31557 | #if HAVE_X11_XLIB_H | |
31558 | #include <X11/Xlib.h> | |
31559 | #endif | |
31560 | ||
31561 | ||
31562 | #include <$ac_header> | |
31563 | _ACEOF | |
31564 | rm -f conftest.$ac_objext | |
31565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31566 | (eval $ac_compile) 2>conftest.er1 | |
31567 | ac_status=$? | |
31568 | grep -v '^ *+' conftest.er1 >conftest.err | |
31569 | rm -f conftest.er1 | |
31570 | cat conftest.err >&5 | |
31571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31572 | (exit $ac_status); } && | |
3f60522a JS |
31573 | { ac_try='test -z "$ac_cxx_werror_flag" |
31574 | || test ! -s conftest.err' | |
d12aef51 VZ |
31575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31576 | (eval $ac_try) 2>&5 | |
31577 | ac_status=$? | |
31578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31579 | (exit $ac_status); }; } && | |
31580 | { ac_try='test -s conftest.$ac_objext' | |
31581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31582 | (eval $ac_try) 2>&5 | |
31583 | ac_status=$? | |
31584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31585 | (exit $ac_status); }; }; then | |
31586 | eval "$as_ac_Header=yes" | |
31587 | else | |
31588 | echo "$as_me: failed program was:" >&5 | |
31589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31590 | ||
31591 | eval "$as_ac_Header=no" | |
31592 | fi | |
31593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31594 | fi | |
31595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31596 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31597 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31598 | cat >>confdefs.h <<_ACEOF | |
31599 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31600 | _ACEOF | |
31601 | ||
31602 | fi | |
31603 | ||
31604 | done | |
31605 | ||
31606 | fi | |
31607 | fi | |
31608 | ||
a848cd7e SC |
31609 | |
31610 | ||
31611 | IODBC_C_SRC="" | |
31612 | ||
31613 | ||
31614 | if test "$TOOLKIT" != "MSW" ; then | |
31615 | ||
31616 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
31617 | ||
31618 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31619 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31620 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31621 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31623 | fi | |
31624 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31625 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31626 | else | |
31627 | # Is the header compilable? | |
31628 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
31629 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
31630 | cat >conftest.$ac_ext <<_ACEOF | |
31631 | /* confdefs.h. */ | |
31632 | _ACEOF | |
31633 | cat confdefs.h >>conftest.$ac_ext | |
31634 | cat >>conftest.$ac_ext <<_ACEOF | |
31635 | /* end confdefs.h. */ | |
31636 | $ac_includes_default | |
31637 | #include <sql.h> | |
31638 | _ACEOF | |
31639 | rm -f conftest.$ac_objext | |
31640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31641 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31642 | ac_status=$? |
ac1cb8d3 VS |
31643 | grep -v '^ *+' conftest.er1 >conftest.err |
31644 | rm -f conftest.er1 | |
31645 | cat conftest.err >&5 | |
a848cd7e SC |
31646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31647 | (exit $ac_status); } && | |
3f60522a JS |
31648 | { ac_try='test -z "$ac_cxx_werror_flag" |
31649 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31651 | (eval $ac_try) 2>&5 | |
31652 | ac_status=$? | |
31653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31654 | (exit $ac_status); }; } && | |
31655 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31657 | (eval $ac_try) 2>&5 | |
31658 | ac_status=$? | |
31659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31660 | (exit $ac_status); }; }; then | |
31661 | ac_header_compiler=yes | |
31662 | else | |
31663 | echo "$as_me: failed program was:" >&5 | |
31664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31665 | ||
31666 | ac_header_compiler=no | |
31667 | fi | |
ac1cb8d3 | 31668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31669 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31670 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31671 | ||
31672 | # Is the header present? | |
31673 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
31674 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
31675 | cat >conftest.$ac_ext <<_ACEOF | |
31676 | /* confdefs.h. */ | |
31677 | _ACEOF | |
31678 | cat confdefs.h >>conftest.$ac_ext | |
31679 | cat >>conftest.$ac_ext <<_ACEOF | |
31680 | /* end confdefs.h. */ | |
31681 | #include <sql.h> | |
31682 | _ACEOF | |
31683 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31684 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31685 | ac_status=$? | |
31686 | grep -v '^ *+' conftest.er1 >conftest.err | |
31687 | rm -f conftest.er1 | |
31688 | cat conftest.err >&5 | |
31689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31690 | (exit $ac_status); } >/dev/null; then | |
31691 | if test -s conftest.err; then | |
5d7b7554 VZ |
31692 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31693 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
31694 | else |
31695 | ac_cpp_err= | |
31696 | fi | |
31697 | else | |
31698 | ac_cpp_err=yes | |
31699 | fi | |
31700 | if test -z "$ac_cpp_err"; then | |
31701 | ac_header_preproc=yes | |
31702 | else | |
31703 | echo "$as_me: failed program was:" >&5 | |
31704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31705 | ||
31706 | ac_header_preproc=no | |
31707 | fi | |
31708 | rm -f conftest.err conftest.$ac_ext | |
31709 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31710 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31711 | ||
31712 | # So? What about this header? | |
5d7b7554 | 31713 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 31714 | yes:no: ) |
a848cd7e SC |
31715 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31716 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31717 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
31718 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
31719 | ac_header_preproc=yes | |
a848cd7e | 31720 | ;; |
ac1cb8d3 | 31721 | no:yes:* ) |
a848cd7e SC |
31722 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
31723 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31724 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
31725 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
31726 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
31727 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
31728 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31729 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31730 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
31731 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31732 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
31733 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31734 | ( |
31735 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31736 | ## ----------------------------------------- ## |
31737 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31738 | ## ----------------------------------------- ## | |
a848cd7e SC |
31739 | _ASBOX |
31740 | ) | | |
31741 | sed "s/^/$as_me: WARNING: /" >&2 | |
31742 | ;; | |
31743 | esac | |
31744 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31745 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31746 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31748 | else | |
31749 | ac_cv_header_sql_h=$ac_header_preproc | |
31750 | fi | |
31751 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31752 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31753 | ||
31754 | fi | |
31755 | if test $ac_cv_header_sql_h = yes; then | |
31756 | found_sql_h=1 | |
31757 | fi | |
31758 | ||
31759 | ||
31760 | if test "x$found_sql_h" = "x1" ; then | |
31761 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
31762 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
31763 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
31764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31765 | else | |
31766 | ac_check_lib_save_LIBS=$LIBS | |
31767 | LIBS="-liodbc $LIBS" | |
31768 | cat >conftest.$ac_ext <<_ACEOF | |
31769 | /* confdefs.h. */ | |
31770 | _ACEOF | |
31771 | cat confdefs.h >>conftest.$ac_ext | |
31772 | cat >>conftest.$ac_ext <<_ACEOF | |
31773 | /* end confdefs.h. */ | |
31774 | ||
31775 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31776 | #ifdef __cplusplus | |
31777 | extern "C" | |
31778 | #endif | |
31779 | /* We use char because int might match the return type of a gcc2 | |
31780 | builtin and then its argument prototype would still apply. */ | |
31781 | char SQLAllocEnv (); | |
31782 | int | |
31783 | main () | |
31784 | { | |
31785 | SQLAllocEnv (); | |
31786 | ; | |
31787 | return 0; | |
31788 | } | |
31789 | _ACEOF | |
31790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31792 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31793 | ac_status=$? |
ac1cb8d3 VS |
31794 | grep -v '^ *+' conftest.er1 >conftest.err |
31795 | rm -f conftest.er1 | |
31796 | cat conftest.err >&5 | |
a848cd7e SC |
31797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31798 | (exit $ac_status); } && | |
3f60522a JS |
31799 | { ac_try='test -z "$ac_cxx_werror_flag" |
31800 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31802 | (eval $ac_try) 2>&5 | |
31803 | ac_status=$? | |
31804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31805 | (exit $ac_status); }; } && | |
31806 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31808 | (eval $ac_try) 2>&5 | |
31809 | ac_status=$? | |
31810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31811 | (exit $ac_status); }; }; then | |
31812 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
31813 | else | |
31814 | echo "$as_me: failed program was:" >&5 | |
31815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31816 | ||
31817 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
31818 | fi | |
ac1cb8d3 VS |
31819 | rm -f conftest.err conftest.$ac_objext \ |
31820 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31821 | LIBS=$ac_check_lib_save_LIBS |
31822 | fi | |
31823 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
31824 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
31825 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
31826 | ODBC_LINK=" -liodbc" | |
31827 | else | |
31828 | ||
31829 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
31830 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
31831 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
31832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31833 | else | |
31834 | ac_check_lib_save_LIBS=$LIBS | |
31835 | LIBS="-lunixodbc $LIBS" | |
31836 | cat >conftest.$ac_ext <<_ACEOF | |
31837 | /* confdefs.h. */ | |
31838 | _ACEOF | |
31839 | cat confdefs.h >>conftest.$ac_ext | |
31840 | cat >>conftest.$ac_ext <<_ACEOF | |
31841 | /* end confdefs.h. */ | |
31842 | ||
31843 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31844 | #ifdef __cplusplus | |
31845 | extern "C" | |
31846 | #endif | |
31847 | /* We use char because int might match the return type of a gcc2 | |
31848 | builtin and then its argument prototype would still apply. */ | |
31849 | char SQLAllocEnv (); | |
31850 | int | |
31851 | main () | |
31852 | { | |
31853 | SQLAllocEnv (); | |
31854 | ; | |
31855 | return 0; | |
31856 | } | |
31857 | _ACEOF | |
31858 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31860 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31861 | ac_status=$? |
ac1cb8d3 VS |
31862 | grep -v '^ *+' conftest.er1 >conftest.err |
31863 | rm -f conftest.er1 | |
31864 | cat conftest.err >&5 | |
a848cd7e SC |
31865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31866 | (exit $ac_status); } && | |
3f60522a JS |
31867 | { ac_try='test -z "$ac_cxx_werror_flag" |
31868 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31870 | (eval $ac_try) 2>&5 | |
31871 | ac_status=$? | |
31872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31873 | (exit $ac_status); }; } && | |
31874 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31876 | (eval $ac_try) 2>&5 | |
31877 | ac_status=$? | |
31878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31879 | (exit $ac_status); }; }; then | |
31880 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
31881 | else | |
31882 | echo "$as_me: failed program was:" >&5 | |
31883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31884 | ||
31885 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
31886 | fi | |
ac1cb8d3 VS |
31887 | rm -f conftest.err conftest.$ac_objext \ |
31888 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31889 | LIBS=$ac_check_lib_save_LIBS |
31890 | fi | |
31891 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
31892 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
31893 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
31894 | ODBC_LINK=" -lunixodbc" | |
31895 | else | |
31896 | ||
31897 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
31898 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
31899 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
31900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31901 | else | |
31902 | ac_check_lib_save_LIBS=$LIBS | |
31903 | LIBS="-lodbc $LIBS" | |
31904 | cat >conftest.$ac_ext <<_ACEOF | |
31905 | /* confdefs.h. */ | |
31906 | _ACEOF | |
31907 | cat confdefs.h >>conftest.$ac_ext | |
31908 | cat >>conftest.$ac_ext <<_ACEOF | |
31909 | /* end confdefs.h. */ | |
31910 | ||
31911 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31912 | #ifdef __cplusplus | |
31913 | extern "C" | |
31914 | #endif | |
31915 | /* We use char because int might match the return type of a gcc2 | |
31916 | builtin and then its argument prototype would still apply. */ | |
31917 | char SQLAllocEnv (); | |
31918 | int | |
31919 | main () | |
31920 | { | |
31921 | SQLAllocEnv (); | |
31922 | ; | |
31923 | return 0; | |
31924 | } | |
31925 | _ACEOF | |
31926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31928 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31929 | ac_status=$? |
ac1cb8d3 VS |
31930 | grep -v '^ *+' conftest.er1 >conftest.err |
31931 | rm -f conftest.er1 | |
31932 | cat conftest.err >&5 | |
a848cd7e SC |
31933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31934 | (exit $ac_status); } && | |
3f60522a JS |
31935 | { ac_try='test -z "$ac_cxx_werror_flag" |
31936 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31938 | (eval $ac_try) 2>&5 | |
31939 | ac_status=$? | |
31940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31941 | (exit $ac_status); }; } && | |
31942 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31944 | (eval $ac_try) 2>&5 | |
31945 | ac_status=$? | |
31946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31947 | (exit $ac_status); }; }; then | |
31948 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
31949 | else | |
31950 | echo "$as_me: failed program was:" >&5 | |
31951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31952 | ||
31953 | ac_cv_lib_odbc_SQLAllocEnv=no | |
31954 | fi | |
ac1cb8d3 VS |
31955 | rm -f conftest.err conftest.$ac_objext \ |
31956 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31957 | LIBS=$ac_check_lib_save_LIBS |
31958 | fi | |
31959 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
31960 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
31961 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
31962 | ODBC_LINK=" -lodbc" | |
31963 | fi | |
31964 | ||
31965 | ||
31966 | fi | |
31967 | ||
31968 | ||
31969 | fi | |
31970 | ||
31971 | fi | |
31972 | if test "x$ODBC_LINK" = "x" ; then | |
31973 | if test "$wxUSE_ODBC" = "sys" ; then | |
31974 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
31975 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
31976 | { (exit 1); exit 1; }; } | |
31977 | else | |
31978 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
31979 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
31980 | wxUSE_ODBC=builtin | |
31981 | fi | |
31982 | else | |
31983 | wxUSE_ODBC=sys | |
31984 | fi | |
31985 | fi | |
a848cd7e | 31986 | |
2da0c077 RD |
31987 | if test "$wxUSE_ODBC" = "builtin" ; then |
31988 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
31989 | #define wxUSE_BUILTIN_IODBC 1 |
31990 | _ACEOF | |
31991 | ||
a848cd7e SC |
31992 | fi |
31993 | fi | |
31994 | ||
2da0c077 RD |
31995 | if test "$wxUSE_ODBC" != "no" ; then |
31996 | cat >>confdefs.h <<\_ACEOF | |
31997 | #define wxUSE_ODBC 1 | |
31998 | _ACEOF | |
31999 | ||
32000 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
32001 | ||
5ff751d6 | 32002 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 32003 | fi |
a848cd7e | 32004 | |
01cb68df | 32005 | |
a848cd7e | 32006 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 32007 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
32008 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
32009 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
32010 | ||
0ad5d837 VZ |
32011 | ac_find_libraries= |
32012 | for ac_dir in $SEARCH_LIB; | |
32013 | do | |
32014 | for ac_extension in a so sl dylib dll.a; do | |
32015 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
32016 | ac_find_libraries=$ac_dir | |
32017 | break 2 | |
32018 | fi | |
32019 | done | |
32020 | done | |
32021 | ||
a848cd7e SC |
32022 | if test "$ac_find_libraries" != "" ; then |
32023 | ||
0ad5d837 | 32024 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32025 | ac_path_to_link="" |
32026 | else | |
0ad5d837 VZ |
32027 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32028 | result=$? | |
32029 | if test $result = 0; then | |
32030 | ac_path_to_link="" | |
32031 | else | |
32032 | ac_path_to_link=" -L$ac_find_libraries" | |
32033 | fi | |
a848cd7e SC |
32034 | fi |
32035 | ||
32036 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
32037 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
32038 | fi | |
32039 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
32040 | echo "$as_me:$LINENO: result: yes" >&5 | |
32041 | echo "${ECHO_T}yes" >&6 | |
32042 | ||
32043 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
32044 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
32045 | ||
0ad5d837 VZ |
32046 | ac_find_libraries= |
32047 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32048 | do |
3eca31dc | 32049 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32050 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
32051 | ac_find_libraries=$ac_dir | |
32052 | break 2 | |
32053 | fi | |
32054 | done | |
32055 | done | |
32056 | ||
32057 | if test "$ac_find_libraries" != "" ; then | |
32058 | echo "$as_me:$LINENO: result: yes" >&5 | |
32059 | echo "${ECHO_T}yes" >&6 | |
32060 | ||
32061 | for ac_header in X11/extensions/xf86vmode.h | |
32062 | do | |
32063 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32068 | else | |
32069 | cat >conftest.$ac_ext <<_ACEOF | |
32070 | /* confdefs.h. */ | |
32071 | _ACEOF | |
32072 | cat confdefs.h >>conftest.$ac_ext | |
32073 | cat >>conftest.$ac_ext <<_ACEOF | |
32074 | /* end confdefs.h. */ | |
32075 | ||
32076 | #if HAVE_X11_XLIB_H | |
32077 | #include <X11/Xlib.h> | |
32078 | #endif | |
32079 | ||
32080 | ||
32081 | #include <$ac_header> | |
32082 | _ACEOF | |
32083 | rm -f conftest.$ac_objext | |
32084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32085 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32086 | ac_status=$? |
ac1cb8d3 VS |
32087 | grep -v '^ *+' conftest.er1 >conftest.err |
32088 | rm -f conftest.er1 | |
32089 | cat conftest.err >&5 | |
a848cd7e SC |
32090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32091 | (exit $ac_status); } && | |
3f60522a JS |
32092 | { ac_try='test -z "$ac_cxx_werror_flag" |
32093 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32095 | (eval $ac_try) 2>&5 | |
32096 | ac_status=$? | |
32097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32098 | (exit $ac_status); }; } && | |
32099 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
32105 | eval "$as_ac_Header=yes" | |
32106 | else | |
32107 | echo "$as_me: failed program was:" >&5 | |
32108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32109 | ||
32110 | eval "$as_ac_Header=no" | |
32111 | fi | |
ac1cb8d3 | 32112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32113 | fi |
32114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32115 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32116 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32117 | cat >>confdefs.h <<_ACEOF | |
32118 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32119 | _ACEOF | |
32120 | ||
32121 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
32122 | ||
32123 | fi | |
32124 | ||
32125 | done | |
32126 | ||
32127 | else | |
32128 | echo "$as_me:$LINENO: result: no" >&5 | |
32129 | echo "${ECHO_T}no" >&6 | |
32130 | fi | |
32131 | ||
32132 | else | |
32133 | echo "$as_me:$LINENO: result: no" >&5 | |
32134 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
32135 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
32136 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
32137 | wxUSE_DISPLAY="no" |
32138 | fi | |
01cb68df RG |
32139 | elif test "$wxUSE_MSW" = 1; then |
32140 | ||
e5efa97e | 32141 | for ac_header in ddraw.h |
01cb68df RG |
32142 | do |
32143 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 32144 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
32145 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
32146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 32148 | else |
5294a27e | 32149 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
32150 | /* confdefs.h. */ |
32151 | _ACEOF | |
32152 | cat confdefs.h >>conftest.$ac_ext | |
32153 | cat >>conftest.$ac_ext <<_ACEOF | |
32154 | /* end confdefs.h. */ | |
5294a27e VZ |
32155 | #include <windows.h> |
32156 | ||
01cb68df RG |
32157 | #include <$ac_header> |
32158 | _ACEOF | |
32159 | rm -f conftest.$ac_objext | |
32160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32161 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 32162 | ac_status=$? |
ac1cb8d3 VS |
32163 | grep -v '^ *+' conftest.er1 >conftest.err |
32164 | rm -f conftest.er1 | |
32165 | cat conftest.err >&5 | |
01cb68df RG |
32166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32167 | (exit $ac_status); } && | |
3f60522a JS |
32168 | { ac_try='test -z "$ac_cxx_werror_flag" |
32169 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32171 | (eval $ac_try) 2>&5 | |
32172 | ac_status=$? | |
32173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32174 | (exit $ac_status); }; } && | |
32175 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
32176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32177 | (eval $ac_try) 2>&5 | |
32178 | ac_status=$? | |
32179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32180 | (exit $ac_status); }; }; then | |
5294a27e | 32181 | eval "$as_ac_Header=yes" |
01cb68df RG |
32182 | else |
32183 | echo "$as_me: failed program was:" >&5 | |
32184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32185 | ||
5294a27e | 32186 | eval "$as_ac_Header=no" |
01cb68df | 32187 | fi |
ac1cb8d3 | 32188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
32189 | fi |
32190 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32191 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
32192 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32193 | cat >>confdefs.h <<_ACEOF | |
32194 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32195 | _ACEOF | |
32196 | ||
01cb68df RG |
32197 | fi |
32198 | ||
32199 | done | |
32200 | ||
a848cd7e SC |
32201 | fi |
32202 | fi | |
32203 | ||
32204 | ||
32205 | USE_OPENGL=0 | |
32206 | if test "$wxUSE_OPENGL" = "yes"; then | |
32207 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
32208 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
32209 | elif test "$wxUSE_MSW" = 1; then | |
32210 | OPENGL_LIBS="-lopengl32 -lglu32" | |
32211 | else | |
32212 | ||
32213 | ||
32214 | ac_find_includes= | |
32215 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
32216 | do | |
32217 | if test -f "$ac_dir/GL/gl.h"; then | |
32218 | ac_find_includes=$ac_dir | |
32219 | break | |
32220 | fi | |
32221 | done | |
32222 | ||
32223 | if test "$ac_find_includes" != "" ; then | |
32224 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
32225 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
32226 | ||
32227 | if test "x$ac_find_includes" = "x/usr/include"; then | |
32228 | ac_path_to_include="" | |
32229 | else | |
32230 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
32231 | result=$? | |
32232 | if test $result = 0; then | |
32233 | ac_path_to_include="" | |
32234 | else | |
32235 | ac_path_to_include=" -I$ac_find_includes" | |
32236 | fi | |
32237 | fi | |
32238 | ||
c92ad099 | 32239 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
32240 | fi |
32241 | ||
32242 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32243 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
32244 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
32245 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32247 | fi | |
32248 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
32249 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
32250 | else | |
32251 | # Is the header compilable? | |
32252 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
32253 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
32254 | cat >conftest.$ac_ext <<_ACEOF | |
32255 | /* confdefs.h. */ | |
32256 | _ACEOF | |
32257 | cat confdefs.h >>conftest.$ac_ext | |
32258 | cat >>conftest.$ac_ext <<_ACEOF | |
32259 | /* end confdefs.h. */ | |
32260 | $ac_includes_default | |
32261 | #include <GL/gl.h> | |
32262 | _ACEOF | |
32263 | rm -f conftest.$ac_objext | |
32264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32265 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32266 | ac_status=$? |
ac1cb8d3 VS |
32267 | grep -v '^ *+' conftest.er1 >conftest.err |
32268 | rm -f conftest.er1 | |
32269 | cat conftest.err >&5 | |
a848cd7e SC |
32270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32271 | (exit $ac_status); } && | |
3f60522a JS |
32272 | { ac_try='test -z "$ac_cxx_werror_flag" |
32273 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32275 | (eval $ac_try) 2>&5 | |
32276 | ac_status=$? | |
32277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32278 | (exit $ac_status); }; } && | |
32279 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32281 | (eval $ac_try) 2>&5 | |
32282 | ac_status=$? | |
32283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32284 | (exit $ac_status); }; }; then | |
32285 | ac_header_compiler=yes | |
32286 | else | |
32287 | echo "$as_me: failed program was:" >&5 | |
32288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32289 | ||
32290 | ac_header_compiler=no | |
32291 | fi | |
ac1cb8d3 | 32292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32293 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32294 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32295 | ||
32296 | # Is the header present? | |
32297 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
32298 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
32299 | cat >conftest.$ac_ext <<_ACEOF | |
32300 | /* confdefs.h. */ | |
32301 | _ACEOF | |
32302 | cat confdefs.h >>conftest.$ac_ext | |
32303 | cat >>conftest.$ac_ext <<_ACEOF | |
32304 | /* end confdefs.h. */ | |
32305 | #include <GL/gl.h> | |
32306 | _ACEOF | |
32307 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32308 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32309 | ac_status=$? | |
32310 | grep -v '^ *+' conftest.er1 >conftest.err | |
32311 | rm -f conftest.er1 | |
32312 | cat conftest.err >&5 | |
32313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32314 | (exit $ac_status); } >/dev/null; then | |
32315 | if test -s conftest.err; then | |
5d7b7554 VZ |
32316 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
32317 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
32318 | else |
32319 | ac_cpp_err= | |
32320 | fi | |
32321 | else | |
32322 | ac_cpp_err=yes | |
32323 | fi | |
32324 | if test -z "$ac_cpp_err"; then | |
32325 | ac_header_preproc=yes | |
32326 | else | |
32327 | echo "$as_me: failed program was:" >&5 | |
32328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32329 | ||
32330 | ac_header_preproc=no | |
32331 | fi | |
32332 | rm -f conftest.err conftest.$ac_ext | |
32333 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32334 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32335 | ||
32336 | # So? What about this header? | |
5d7b7554 | 32337 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 32338 | yes:no: ) |
a848cd7e SC |
32339 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
32340 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32341 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
32342 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
32343 | ac_header_preproc=yes | |
a848cd7e | 32344 | ;; |
ac1cb8d3 | 32345 | no:yes:* ) |
a848cd7e SC |
32346 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
32347 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32348 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
32349 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
32350 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
32351 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
32352 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
32353 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32354 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
32355 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32356 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
32357 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32358 | ( |
32359 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32360 | ## ----------------------------------------- ## |
32361 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32362 | ## ----------------------------------------- ## | |
a848cd7e SC |
32363 | _ASBOX |
32364 | ) | | |
32365 | sed "s/^/$as_me: WARNING: /" >&2 | |
32366 | ;; | |
32367 | esac | |
32368 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
32369 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
32370 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32372 | else | |
32373 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
32374 | fi | |
32375 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
32376 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
32377 | ||
32378 | fi | |
32379 | if test $ac_cv_header_GL_gl_h = yes; then | |
32380 | ||
32381 | found_gl=0 | |
32382 | ||
32383 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
32384 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
32385 | ||
0ad5d837 VZ |
32386 | ac_find_libraries= |
32387 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32388 | do |
3eca31dc | 32389 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32390 | if test -f "$ac_dir/libGL.$ac_extension"; then |
32391 | ac_find_libraries=$ac_dir | |
32392 | break 2 | |
32393 | fi | |
32394 | done | |
32395 | done | |
32396 | ||
32397 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
32398 | echo "$as_me:$LINENO: result: yes" >&5 |
32399 | echo "${ECHO_T}yes" >&6 | |
32400 | ||
a848cd7e | 32401 | |
0ad5d837 | 32402 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32403 | ac_path_to_link="" |
32404 | else | |
0ad5d837 VZ |
32405 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32406 | result=$? | |
32407 | if test $result = 0; then | |
32408 | ac_path_to_link="" | |
32409 | else | |
32410 | ac_path_to_link=" -L$ac_find_libraries" | |
32411 | fi | |
a848cd7e SC |
32412 | fi |
32413 | ||
32414 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
32415 | LDFLAGS_GL="$ac_path_to_link" | |
32416 | fi | |
32417 | ||
69120ee4 VZ |
32418 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
32419 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 32420 | |
0ad5d837 VZ |
32421 | ac_find_libraries= |
32422 | for ac_dir in $SEARCH_LIB; | |
32423 | do | |
32424 | for ac_extension in a so sl dylib dll.a; do | |
32425 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
32426 | ac_find_libraries=$ac_dir | |
32427 | break 2 | |
32428 | fi | |
32429 | done | |
32430 | done | |
32431 | ||
a848cd7e SC |
32432 | if test "$ac_find_libraries" != "" ; then |
32433 | ||
0ad5d837 | 32434 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32435 | ac_path_to_link="" |
32436 | else | |
0ad5d837 VZ |
32437 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32438 | result=$? | |
32439 | if test $result = 0; then | |
32440 | ac_path_to_link="" | |
32441 | else | |
32442 | ac_path_to_link=" -L$ac_find_libraries" | |
32443 | fi | |
a848cd7e SC |
32444 | fi |
32445 | ||
32446 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
32447 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
32448 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
32449 | fi | |
32450 | ||
32451 | found_gl=1 | |
32452 | OPENGL_LIBS="-lGL -lGLU" | |
32453 | echo "$as_me:$LINENO: result: yes" >&5 | |
32454 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
32455 | else |
32456 | echo "$as_me:$LINENO: result: no" >&5 | |
32457 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 32458 | fi |
69120ee4 VZ |
32459 | else |
32460 | echo "$as_me:$LINENO: result: no" >&5 | |
32461 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
32462 | fi |
32463 | ||
32464 | if test "$found_gl" != 1; then | |
a848cd7e SC |
32465 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
32466 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
32467 | ||
0ad5d837 VZ |
32468 | ac_find_libraries= |
32469 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32470 | do |
3eca31dc | 32471 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32472 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
32473 | ac_find_libraries=$ac_dir | |
32474 | break 2 | |
32475 | fi | |
32476 | done | |
32477 | done | |
32478 | ||
32479 | if test "$ac_find_libraries" != "" ; then | |
32480 | ||
0ad5d837 | 32481 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32482 | ac_path_to_link="" |
32483 | else | |
0ad5d837 VZ |
32484 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32485 | result=$? | |
32486 | if test $result = 0; then | |
32487 | ac_path_to_link="" | |
32488 | else | |
32489 | ac_path_to_link=" -L$ac_find_libraries" | |
32490 | fi | |
a848cd7e SC |
32491 | fi |
32492 | ||
32493 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
32494 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
32495 | echo "$as_me:$LINENO: result: yes" >&5 | |
32496 | echo "${ECHO_T}yes" >&6 | |
32497 | else | |
32498 | echo "$as_me:$LINENO: result: no" >&5 | |
32499 | echo "${ECHO_T}no" >&6 | |
32500 | fi | |
32501 | fi | |
32502 | ||
32503 | fi | |
32504 | ||
32505 | ||
32506 | ||
32507 | if test "x$OPENGL_LIBS" = "x"; then | |
32508 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
32509 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
32510 | { (exit 1); exit 1; }; } | |
32511 | fi | |
32512 | fi | |
32513 | ||
32514 | if test "$wxUSE_OPENGL" = "yes"; then | |
32515 | USE_OPENGL=1 | |
32516 | cat >>confdefs.h <<\_ACEOF | |
32517 | #define wxUSE_OPENGL 1 | |
32518 | _ACEOF | |
32519 | ||
32520 | cat >>confdefs.h <<\_ACEOF | |
32521 | #define wxUSE_GLCANVAS 1 | |
32522 | _ACEOF | |
32523 | ||
32524 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
32525 | fi | |
32526 | fi | |
32527 | ||
a848cd7e SC |
32528 | |
32529 | if test -n "$TOOLKIT" ; then | |
32530 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
32531 | fi | |
32532 | ||
a848cd7e SC |
32533 | |
32534 | ||
32535 | if test "$wxUSE_SHARED" = "yes"; then | |
32536 | case "${host}" in | |
32537 | *-pc-msdosdjgpp ) | |
32538 | wxUSE_SHARED=no | |
32539 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
32540 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
32541 | ;; | |
32542 | esac | |
32543 | fi | |
32544 | ||
a848cd7e | 32545 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
32546 | |
32547 | ||
32548 | found_versioning=no | |
32549 | ||
32550 | ||
32551 | if test $found_versioning = no ; then | |
32552 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
32553 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
32554 | if test "${wx_cv_version_script+set}" = set; then | |
32555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32556 | else | |
32557 | ||
32558 | echo "VER_1 { *; };" >conftest.sym | |
32559 | echo "int main() { return 0; }" >conftest.cpp | |
32560 | ||
32561 | if { ac_try=' | |
32562 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32563 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
32564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32565 | (eval $ac_try) 2>&5 | |
32566 | ac_status=$? | |
32567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32568 | (exit $ac_status); }; } ; then | |
32569 | if test -s conftest.stderr ; then | |
32570 | wx_cv_version_script=no | |
32571 | else | |
32572 | wx_cv_version_script=yes | |
32573 | fi | |
32574 | else | |
32575 | wx_cv_version_script=no | |
32576 | fi | |
e5d4b470 MW |
32577 | |
32578 | if test $wx_cv_version_script = yes | |
32579 | then | |
32580 | echo "struct B { virtual ~B() { } }; \ | |
32581 | struct D : public B { }; \ | |
32582 | void F() { D d; }" > conftest.cpp | |
32583 | ||
32584 | if { ac_try=' | |
32585 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32586 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
32587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32588 | (eval $ac_try) 2>&5 | |
32589 | ac_status=$? | |
32590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32591 | (exit $ac_status); }; } && | |
32592 | { ac_try=' | |
32593 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32594 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
32595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32596 | (eval $ac_try) 2>&5 | |
32597 | ac_status=$? | |
32598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32599 | (exit $ac_status); }; } | |
32600 | then | |
32601 | if { ac_try=' | |
32602 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32603 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
32604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32605 | (eval $ac_try) 2>&5 | |
32606 | ac_status=$? | |
32607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32608 | (exit $ac_status); }; } | |
32609 | then | |
32610 | wx_cv_version_script=yes | |
32611 | else | |
32612 | wx_cv_version_script=no | |
32613 | fi | |
32614 | fi | |
32615 | fi | |
32616 | ||
a848cd7e | 32617 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 32618 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
32619 | |
32620 | fi | |
32621 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
32622 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
32623 | if test $wx_cv_version_script = yes ; then | |
32624 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
32625 | fi | |
32626 | fi | |
32627 | ||
32628 | ||
32629 | case "${host}" in | |
32630 | *-*-linux* | *-*-gnu* ) | |
32631 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32632 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 32633 | ;; |
a848cd7e SC |
32634 | |
32635 | *-*-solaris2* ) | |
32636 | if test "$GCC" = yes ; then | |
c92ad099 | 32637 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
32638 | |
32639 | saveLdflags="$LDFLAGS" | |
32640 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
32641 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
32642 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
32643 | cat >conftest.$ac_ext <<_ACEOF | |
32644 | /* confdefs.h. */ | |
32645 | _ACEOF | |
32646 | cat confdefs.h >>conftest.$ac_ext | |
32647 | cat >>conftest.$ac_ext <<_ACEOF | |
32648 | /* end confdefs.h. */ | |
32649 | ||
32650 | int | |
32651 | main () | |
32652 | { | |
32653 | ||
32654 | ; | |
32655 | return 0; | |
32656 | } | |
32657 | _ACEOF | |
32658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32660 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32661 | ac_status=$? |
ac1cb8d3 VS |
32662 | grep -v '^ *+' conftest.er1 >conftest.err |
32663 | rm -f conftest.er1 | |
32664 | cat conftest.err >&5 | |
a848cd7e SC |
32665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32666 | (exit $ac_status); } && | |
3f60522a JS |
32667 | { ac_try='test -z "$ac_cxx_werror_flag" |
32668 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32670 | (eval $ac_try) 2>&5 | |
32671 | ac_status=$? | |
32672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32673 | (exit $ac_status); }; } && | |
32674 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32676 | (eval $ac_try) 2>&5 | |
32677 | ac_status=$? | |
32678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32679 | (exit $ac_status); }; }; then | |
32680 | ||
32681 | echo "$as_me:$LINENO: result: yes" >&5 | |
32682 | echo "${ECHO_T}yes" >&6 | |
32683 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32684 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
32685 | |
32686 | else | |
32687 | echo "$as_me: failed program was:" >&5 | |
32688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32689 | ||
32690 | ||
32691 | echo "$as_me:$LINENO: result: no" >&5 | |
32692 | echo "${ECHO_T}no" >&6 | |
32693 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
32694 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
32695 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
32696 | cat >conftest.$ac_ext <<_ACEOF | |
32697 | /* confdefs.h. */ | |
32698 | _ACEOF | |
32699 | cat confdefs.h >>conftest.$ac_ext | |
32700 | cat >>conftest.$ac_ext <<_ACEOF | |
32701 | /* end confdefs.h. */ | |
32702 | ||
32703 | int | |
32704 | main () | |
32705 | { | |
32706 | ||
32707 | ; | |
32708 | return 0; | |
32709 | } | |
32710 | _ACEOF | |
32711 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32713 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32714 | ac_status=$? |
ac1cb8d3 VS |
32715 | grep -v '^ *+' conftest.er1 >conftest.err |
32716 | rm -f conftest.er1 | |
32717 | cat conftest.err >&5 | |
a848cd7e SC |
32718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32719 | (exit $ac_status); } && | |
3f60522a JS |
32720 | { ac_try='test -z "$ac_cxx_werror_flag" |
32721 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32723 | (eval $ac_try) 2>&5 | |
32724 | ac_status=$? | |
32725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32726 | (exit $ac_status); }; } && | |
32727 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32729 | (eval $ac_try) 2>&5 | |
32730 | ac_status=$? | |
32731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32732 | (exit $ac_status); }; }; then | |
32733 | ||
ffa0583f | 32734 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 32735 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
32736 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
32737 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
32738 | ||
a848cd7e SC |
32739 | else |
32740 | echo "$as_me: failed program was:" >&5 | |
32741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32742 | ||
32743 | ||
32744 | echo "$as_me:$LINENO: result: no" >&5 | |
32745 | echo "${ECHO_T}no" >&6 | |
32746 | ||
32747 | fi | |
ac1cb8d3 VS |
32748 | rm -f conftest.err conftest.$ac_objext \ |
32749 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32750 | |
32751 | fi | |
ac1cb8d3 VS |
32752 | rm -f conftest.err conftest.$ac_objext \ |
32753 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32754 | LDFLAGS="$saveLdflags" |
32755 | else | |
a848cd7e | 32756 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 32757 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
32758 | fi |
32759 | ;; | |
32760 | ||
cfda0ea8 | 32761 | *-*-darwin* ) |
0caebc27 MW |
32762 | install_name_tool=`which install_name_tool` |
32763 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
32764 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
32765 | cat <<EOF >change-install-names | |
a848cd7e SC |
32766 | #!/bin/sh |
32767 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
32768 | inst_cmd="install_name_tool " | |
32769 | for i in \${libnames} ; do | |
32770 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
32771 | done | |
32772 | \${inst_cmd} \${3} | |
32773 | EOF | |
0caebc27 MW |
32774 | chmod +x change-install-names |
32775 | fi | |
a848cd7e SC |
32776 | ;; |
32777 | ||
32778 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
32779 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
32780 | ;; | |
a848cd7e | 32781 | |
81f90336 MW |
32782 | *-*-hpux* ) |
32783 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
32784 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 32785 | ;; |
81f90336 | 32786 | |
a848cd7e | 32787 | esac |
ceec2216 | 32788 | |
ffa0583f RL |
32789 | if test $wxUSE_RPATH = "no"; then |
32790 | SAMPLES_RPATH_FLAG='' | |
32791 | SAMPLES_RPATH_POSTLINK='' | |
32792 | WXCONFIG_RPATH='' | |
32793 | fi | |
32794 | ||
32795 | SHARED=1 | |
32796 | ||
32797 | else | |
32798 | ||
ceec2216 RL |
32799 | config_linkage_component="-static" |
32800 | SHARED=0 | |
ffa0583f | 32801 | |
ceec2216 | 32802 | fi |
a848cd7e | 32803 | |
a848cd7e | 32804 | |
ceec2216 RL |
32805 | UNICODE=0 |
32806 | lib_unicode_suffix= | |
32807 | WX_CHARTYPE="ansi" | |
32808 | if test "$wxUSE_UNICODE" = "yes"; then | |
32809 | lib_unicode_suffix=u | |
32810 | WX_CHARTYPE="unicode" | |
32811 | UNICODE=1 | |
a848cd7e SC |
32812 | fi |
32813 | ||
ceec2216 RL |
32814 | lib_debug_suffix= |
32815 | WX_DEBUGTYPE="release" | |
32816 | DEBUG_FLAG=0 | |
32817 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
32818 | lib_debug_suffix=d | |
32819 | WX_DEBUGTYPE="debug" | |
32820 | DEBUG_FLAG=1 | |
32821 | fi | |
a848cd7e | 32822 | |
ceec2216 RL |
32823 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
32824 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 32825 | |
ceec2216 RL |
32826 | DEBUG_INFO=0 |
32827 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
32828 | DEBUG_INFO=1 | |
32829 | fi | |
a848cd7e | 32830 | |
ceec2216 | 32831 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 32832 | |
ceec2216 | 32833 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 32834 | |
ceec2216 | 32835 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 32836 | |
ceec2216 RL |
32837 | if test "$cross_compiling" = "yes"; then |
32838 | HOST_SUFFIX="-$host_alias" | |
32839 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
32840 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
32841 | fi |
32842 | ||
dd21ced8 | 32843 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
32844 | if test "${TOOLKIT_DIR}" = "os2"; then |
32845 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32846 | else | |
32847 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32848 | fi | |
ceec2216 RL |
32849 | |
32850 | ||
32851 | ||
1d1af5ea DE |
32852 | if test "$wxUSE_COCOA" = 1; then |
32853 | ||
32854 | ||
32855 | ac_ext=c | |
32856 | ac_cpp='$CPP $CPPFLAGS' | |
32857 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32858 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32859 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32860 | ||
32861 | ac_ext=m | |
32862 | ||
32863 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
32864 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
32865 | cat >conftest.$ac_ext <<_ACEOF | |
32866 | /* confdefs.h. */ | |
32867 | _ACEOF | |
32868 | cat confdefs.h >>conftest.$ac_ext | |
32869 | cat >>conftest.$ac_ext <<_ACEOF | |
32870 | /* end confdefs.h. */ | |
32871 | #include <AppKit/NSEvent.h> | |
32872 | #include <CoreFoundation/CoreFoundation.h> | |
32873 | ||
32874 | int | |
32875 | main () | |
32876 | { | |
32877 | ||
32878 | ; | |
32879 | return 0; | |
32880 | } | |
32881 | _ACEOF | |
32882 | rm -f conftest.$ac_objext | |
32883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32884 | (eval $ac_compile) 2>conftest.er1 | |
32885 | ac_status=$? | |
32886 | grep -v '^ *+' conftest.er1 >conftest.err | |
32887 | rm -f conftest.er1 | |
32888 | cat conftest.err >&5 | |
32889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32890 | (exit $ac_status); } && | |
3f60522a JS |
32891 | { ac_try='test -z "$ac_c_werror_flag" |
32892 | || test ! -s conftest.err' | |
1d1af5ea DE |
32893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32894 | (eval $ac_try) 2>&5 | |
32895 | ac_status=$? | |
32896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32897 | (exit $ac_status); }; } && | |
32898 | { ac_try='test -s conftest.$ac_objext' | |
32899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32900 | (eval $ac_try) 2>&5 | |
32901 | ac_status=$? | |
32902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32903 | (exit $ac_status); }; }; then | |
32904 | echo "$as_me:$LINENO: result: no" >&5 | |
32905 | echo "${ECHO_T}no" >&6 | |
32906 | else | |
32907 | echo "$as_me: failed program was:" >&5 | |
32908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32909 | ||
32910 | echo "$as_me:$LINENO: result: yes" >&5 | |
32911 | echo "${ECHO_T}yes" >&6 | |
32912 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
32913 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
32914 | cat >conftest.$ac_ext <<_ACEOF | |
32915 | /* confdefs.h. */ | |
32916 | _ACEOF | |
32917 | cat confdefs.h >>conftest.$ac_ext | |
32918 | cat >>conftest.$ac_ext <<_ACEOF | |
32919 | /* end confdefs.h. */ | |
32920 | #define __Point__ 1 | |
32921 | #include <AppKit/NSEvent.h> | |
32922 | #include <CoreFoundation/CoreFoundation.h> | |
32923 | ||
32924 | int | |
32925 | main () | |
32926 | { | |
32927 | ||
32928 | ; | |
32929 | return 0; | |
32930 | } | |
32931 | _ACEOF | |
32932 | rm -f conftest.$ac_objext | |
32933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32934 | (eval $ac_compile) 2>conftest.er1 | |
32935 | ac_status=$? | |
32936 | grep -v '^ *+' conftest.er1 >conftest.err | |
32937 | rm -f conftest.er1 | |
32938 | cat conftest.err >&5 | |
32939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32940 | (exit $ac_status); } && | |
3f60522a JS |
32941 | { ac_try='test -z "$ac_c_werror_flag" |
32942 | || test ! -s conftest.err' | |
1d1af5ea DE |
32943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32944 | (eval $ac_try) 2>&5 | |
32945 | ac_status=$? | |
32946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32947 | (exit $ac_status); }; } && | |
32948 | { ac_try='test -s conftest.$ac_objext' | |
32949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32950 | (eval $ac_try) 2>&5 | |
32951 | ac_status=$? | |
32952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32953 | (exit $ac_status); }; }; then | |
32954 | echo "$as_me:$LINENO: result: yes" >&5 | |
32955 | echo "${ECHO_T}yes" >&6 | |
32956 | cat >>confdefs.h <<\_ACEOF | |
32957 | #define __Point__ 1 | |
32958 | _ACEOF | |
32959 | ||
32960 | ||
32961 | else | |
32962 | echo "$as_me: failed program was:" >&5 | |
32963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32964 | ||
32965 | { { echo "$as_me:$LINENO: error: no | |
32966 | See \`config.log' for more details." >&5 | |
32967 | echo "$as_me: error: no | |
32968 | See \`config.log' for more details." >&2;} | |
32969 | { (exit 1); exit 1; }; } | |
32970 | ||
32971 | fi | |
32972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32973 | ||
32974 | fi | |
32975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
32976 | ac_ext=cc |
32977 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32978 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32979 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32980 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1d1af5ea DE |
32981 | |
32982 | fi | |
32983 | ||
a848cd7e | 32984 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
32985 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
32986 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 32987 | |
a848cd7e | 32988 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
32989 | |
32990 | # Extract the first word of "Rez", so it can be a program name with args. | |
32991 | set dummy Rez; ac_word=$2 | |
32992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 32994 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
32995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32996 | else | |
8ced02f6 DE |
32997 | if test -n "$REZ"; then |
32998 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
32999 | else |
33000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33001 | for as_dir in $PATH | |
33002 | do | |
33003 | IFS=$as_save_IFS | |
33004 | test -z "$as_dir" && as_dir=. | |
33005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33006 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 33007 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
33008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
33009 | break 2 | |
33010 | fi | |
33011 | done | |
33012 | done | |
33013 | ||
8ced02f6 | 33014 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
33015 | fi |
33016 | fi | |
8ced02f6 DE |
33017 | REZ=$ac_cv_prog_REZ |
33018 | if test -n "$REZ"; then | |
33019 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
33020 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
33021 | else |
33022 | echo "$as_me:$LINENO: result: no" >&5 | |
33023 | echo "${ECHO_T}no" >&6 | |
33024 | fi | |
33025 | ||
33026 | # Extract the first word of "DeRez", so it can be a program name with args. | |
33027 | set dummy DeRez; ac_word=$2 | |
33028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33030 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
33031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33032 | else | |
33033 | if test -n "$DEREZ"; then | |
33034 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
33035 | else | |
33036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33037 | for as_dir in $PATH | |
33038 | do | |
33039 | IFS=$as_save_IFS | |
33040 | test -z "$as_dir" && as_dir=. | |
33041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33042 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33043 | ac_cv_prog_DEREZ="DeRez" | |
33044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33045 | break 2 | |
33046 | fi | |
33047 | done | |
33048 | done | |
33049 | ||
33050 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
33051 | fi | |
33052 | fi | |
33053 | DEREZ=$ac_cv_prog_DEREZ | |
33054 | if test -n "$DEREZ"; then | |
33055 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
33056 | echo "${ECHO_T}$DEREZ" >&6 | |
33057 | else | |
33058 | echo "$as_me:$LINENO: result: no" >&5 | |
33059 | echo "${ECHO_T}no" >&6 | |
33060 | fi | |
33061 | ||
33062 | # Extract the first word of "SetFile", so it can be a program name with args. | |
33063 | set dummy SetFile; ac_word=$2 | |
33064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33066 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
33067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33068 | else | |
33069 | if test -n "$SETFILE"; then | |
33070 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
33071 | else | |
33072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33073 | for as_dir in $PATH | |
33074 | do | |
33075 | IFS=$as_save_IFS | |
33076 | test -z "$as_dir" && as_dir=. | |
33077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33079 | ac_cv_prog_SETFILE="SetFile" | |
33080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33081 | break 2 | |
33082 | fi | |
33083 | done | |
33084 | done | |
33085 | ||
33086 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
33087 | fi | |
33088 | fi | |
33089 | SETFILE=$ac_cv_prog_SETFILE | |
33090 | if test -n "$SETFILE"; then | |
33091 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
33092 | echo "${ECHO_T}$SETFILE" >&6 | |
33093 | else | |
33094 | echo "$as_me:$LINENO: result: no" >&5 | |
33095 | echo "${ECHO_T}no" >&6 | |
33096 | fi | |
33097 | ||
33098 | ||
33099 | MACSETFILE="\$(SETFILE)" | |
33100 | ||
33101 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 33102 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
33103 | RESCOMP="$REZ" |
33104 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 33105 | else |
004ee6da RL |
33106 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
33107 | RESCOMP="echo -n \| $REZ" | |
33108 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 33109 | fi |
004ee6da | 33110 | |
a848cd7e | 33111 | else |
ffa0583f | 33112 | MACSETFILE="@true" |
a848cd7e | 33113 | |
8ced02f6 | 33114 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
33115 | RESCOMP="emxbind" |
33116 | WXCONFIG_RESFLAGS="-ep" | |
33117 | ||
33118 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 33119 | else |
8ced02f6 | 33120 | POSTLINK_COMMAND="@true" |
a848cd7e | 33121 | fi |
004ee6da | 33122 | |
a848cd7e SC |
33123 | fi |
33124 | ||
33125 | ||
33126 | ||
33127 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
33128 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
33129 | if test "${ac_cv_type_mode_t+set}" = set; then | |
33130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33131 | else | |
33132 | cat >conftest.$ac_ext <<_ACEOF | |
33133 | /* confdefs.h. */ | |
33134 | _ACEOF | |
33135 | cat confdefs.h >>conftest.$ac_ext | |
33136 | cat >>conftest.$ac_ext <<_ACEOF | |
33137 | /* end confdefs.h. */ | |
33138 | $ac_includes_default | |
33139 | int | |
33140 | main () | |
33141 | { | |
33142 | if ((mode_t *) 0) | |
33143 | return 0; | |
33144 | if (sizeof (mode_t)) | |
33145 | return 0; | |
33146 | ; | |
33147 | return 0; | |
33148 | } | |
33149 | _ACEOF | |
33150 | rm -f conftest.$ac_objext | |
33151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33152 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33153 | ac_status=$? |
ac1cb8d3 VS |
33154 | grep -v '^ *+' conftest.er1 >conftest.err |
33155 | rm -f conftest.er1 | |
33156 | cat conftest.err >&5 | |
a848cd7e SC |
33157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33158 | (exit $ac_status); } && | |
3f60522a JS |
33159 | { ac_try='test -z "$ac_cxx_werror_flag" |
33160 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33162 | (eval $ac_try) 2>&5 | |
33163 | ac_status=$? | |
33164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33165 | (exit $ac_status); }; } && | |
33166 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33168 | (eval $ac_try) 2>&5 | |
33169 | ac_status=$? | |
33170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33171 | (exit $ac_status); }; }; then | |
33172 | ac_cv_type_mode_t=yes | |
33173 | else | |
33174 | echo "$as_me: failed program was:" >&5 | |
33175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33176 | ||
33177 | ac_cv_type_mode_t=no | |
33178 | fi | |
ac1cb8d3 | 33179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33180 | fi |
33181 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
33182 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
33183 | if test $ac_cv_type_mode_t = yes; then | |
33184 | : | |
33185 | else | |
33186 | ||
33187 | cat >>confdefs.h <<_ACEOF | |
33188 | #define mode_t int | |
33189 | _ACEOF | |
33190 | ||
33191 | fi | |
33192 | ||
33193 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
33194 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
33195 | if test "${ac_cv_type_off_t+set}" = set; then | |
33196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33197 | else | |
33198 | cat >conftest.$ac_ext <<_ACEOF | |
33199 | /* confdefs.h. */ | |
33200 | _ACEOF | |
33201 | cat confdefs.h >>conftest.$ac_ext | |
33202 | cat >>conftest.$ac_ext <<_ACEOF | |
33203 | /* end confdefs.h. */ | |
33204 | $ac_includes_default | |
33205 | int | |
33206 | main () | |
33207 | { | |
33208 | if ((off_t *) 0) | |
33209 | return 0; | |
33210 | if (sizeof (off_t)) | |
33211 | return 0; | |
33212 | ; | |
33213 | return 0; | |
33214 | } | |
33215 | _ACEOF | |
33216 | rm -f conftest.$ac_objext | |
33217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33218 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33219 | ac_status=$? |
ac1cb8d3 VS |
33220 | grep -v '^ *+' conftest.er1 >conftest.err |
33221 | rm -f conftest.er1 | |
33222 | cat conftest.err >&5 | |
a848cd7e SC |
33223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33224 | (exit $ac_status); } && | |
3f60522a JS |
33225 | { ac_try='test -z "$ac_cxx_werror_flag" |
33226 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33228 | (eval $ac_try) 2>&5 | |
33229 | ac_status=$? | |
33230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33231 | (exit $ac_status); }; } && | |
33232 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33234 | (eval $ac_try) 2>&5 | |
33235 | ac_status=$? | |
33236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33237 | (exit $ac_status); }; }; then | |
33238 | ac_cv_type_off_t=yes | |
33239 | else | |
33240 | echo "$as_me: failed program was:" >&5 | |
33241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33242 | ||
33243 | ac_cv_type_off_t=no | |
33244 | fi | |
ac1cb8d3 | 33245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33246 | fi |
33247 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
33248 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
33249 | if test $ac_cv_type_off_t = yes; then | |
33250 | : | |
33251 | else | |
33252 | ||
33253 | cat >>confdefs.h <<_ACEOF | |
33254 | #define off_t long | |
33255 | _ACEOF | |
33256 | ||
33257 | fi | |
33258 | ||
33259 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
33260 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
33261 | if test "${ac_cv_type_pid_t+set}" = set; then | |
33262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33263 | else | |
33264 | cat >conftest.$ac_ext <<_ACEOF | |
33265 | /* confdefs.h. */ | |
33266 | _ACEOF | |
33267 | cat confdefs.h >>conftest.$ac_ext | |
33268 | cat >>conftest.$ac_ext <<_ACEOF | |
33269 | /* end confdefs.h. */ | |
33270 | $ac_includes_default | |
33271 | int | |
33272 | main () | |
33273 | { | |
33274 | if ((pid_t *) 0) | |
33275 | return 0; | |
33276 | if (sizeof (pid_t)) | |
33277 | return 0; | |
33278 | ; | |
33279 | return 0; | |
33280 | } | |
33281 | _ACEOF | |
33282 | rm -f conftest.$ac_objext | |
33283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33285 | ac_status=$? |
ac1cb8d3 VS |
33286 | grep -v '^ *+' conftest.er1 >conftest.err |
33287 | rm -f conftest.er1 | |
33288 | cat conftest.err >&5 | |
a848cd7e SC |
33289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33290 | (exit $ac_status); } && | |
3f60522a JS |
33291 | { ac_try='test -z "$ac_cxx_werror_flag" |
33292 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33294 | (eval $ac_try) 2>&5 | |
33295 | ac_status=$? | |
33296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33297 | (exit $ac_status); }; } && | |
33298 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33300 | (eval $ac_try) 2>&5 | |
33301 | ac_status=$? | |
33302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33303 | (exit $ac_status); }; }; then | |
33304 | ac_cv_type_pid_t=yes | |
33305 | else | |
33306 | echo "$as_me: failed program was:" >&5 | |
33307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33308 | ||
33309 | ac_cv_type_pid_t=no | |
33310 | fi | |
ac1cb8d3 | 33311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33312 | fi |
33313 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
33314 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
33315 | if test $ac_cv_type_pid_t = yes; then | |
33316 | : | |
33317 | else | |
33318 | ||
33319 | cat >>confdefs.h <<_ACEOF | |
33320 | #define pid_t int | |
33321 | _ACEOF | |
33322 | ||
33323 | fi | |
33324 | ||
33325 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
33326 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
33327 | if test "${ac_cv_type_size_t+set}" = set; then | |
33328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33329 | else | |
33330 | cat >conftest.$ac_ext <<_ACEOF | |
33331 | /* confdefs.h. */ | |
33332 | _ACEOF | |
33333 | cat confdefs.h >>conftest.$ac_ext | |
33334 | cat >>conftest.$ac_ext <<_ACEOF | |
33335 | /* end confdefs.h. */ | |
33336 | $ac_includes_default | |
33337 | int | |
33338 | main () | |
33339 | { | |
33340 | if ((size_t *) 0) | |
33341 | return 0; | |
33342 | if (sizeof (size_t)) | |
33343 | return 0; | |
33344 | ; | |
33345 | return 0; | |
33346 | } | |
33347 | _ACEOF | |
33348 | rm -f conftest.$ac_objext | |
33349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33350 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33351 | ac_status=$? |
ac1cb8d3 VS |
33352 | grep -v '^ *+' conftest.er1 >conftest.err |
33353 | rm -f conftest.er1 | |
33354 | cat conftest.err >&5 | |
a848cd7e SC |
33355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33356 | (exit $ac_status); } && | |
3f60522a JS |
33357 | { ac_try='test -z "$ac_cxx_werror_flag" |
33358 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33360 | (eval $ac_try) 2>&5 | |
33361 | ac_status=$? | |
33362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33363 | (exit $ac_status); }; } && | |
33364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33366 | (eval $ac_try) 2>&5 | |
33367 | ac_status=$? | |
33368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33369 | (exit $ac_status); }; }; then | |
33370 | ac_cv_type_size_t=yes | |
33371 | else | |
33372 | echo "$as_me: failed program was:" >&5 | |
33373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33374 | ||
33375 | ac_cv_type_size_t=no | |
33376 | fi | |
ac1cb8d3 | 33377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33378 | fi |
33379 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
33380 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
33381 | if test $ac_cv_type_size_t = yes; then | |
33382 | : | |
33383 | else | |
33384 | ||
33385 | cat >>confdefs.h <<_ACEOF | |
33386 | #define size_t unsigned | |
33387 | _ACEOF | |
33388 | ||
33389 | fi | |
33390 | ||
33391 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
33392 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
33393 | if test "${ac_cv_type_uid_t+set}" = set; then | |
33394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33395 | else | |
33396 | cat >conftest.$ac_ext <<_ACEOF | |
33397 | /* confdefs.h. */ | |
33398 | _ACEOF | |
33399 | cat confdefs.h >>conftest.$ac_ext | |
33400 | cat >>conftest.$ac_ext <<_ACEOF | |
33401 | /* end confdefs.h. */ | |
33402 | #include <sys/types.h> | |
33403 | ||
33404 | _ACEOF | |
33405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
33406 | $EGREP "uid_t" >/dev/null 2>&1; then | |
33407 | ac_cv_type_uid_t=yes | |
33408 | else | |
33409 | ac_cv_type_uid_t=no | |
33410 | fi | |
33411 | rm -f conftest* | |
33412 | ||
33413 | fi | |
33414 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
33415 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
33416 | if test $ac_cv_type_uid_t = no; then | |
33417 | ||
33418 | cat >>confdefs.h <<\_ACEOF | |
33419 | #define uid_t int | |
33420 | _ACEOF | |
33421 | ||
33422 | ||
33423 | cat >>confdefs.h <<\_ACEOF | |
33424 | #define gid_t int | |
33425 | _ACEOF | |
33426 | ||
33427 | fi | |
33428 | ||
33429 | ||
d51253e8 RL |
33430 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
33431 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
33432 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
33433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33434 | else | |
33435 | cat >conftest.$ac_ext <<_ACEOF | |
33436 | /* confdefs.h. */ | |
33437 | _ACEOF | |
33438 | cat confdefs.h >>conftest.$ac_ext | |
33439 | cat >>conftest.$ac_ext <<_ACEOF | |
33440 | /* end confdefs.h. */ | |
33441 | $ac_includes_default | |
33442 | int | |
33443 | main () | |
33444 | { | |
33445 | if ((ssize_t *) 0) | |
33446 | return 0; | |
33447 | if (sizeof (ssize_t)) | |
33448 | return 0; | |
33449 | ; | |
33450 | return 0; | |
33451 | } | |
33452 | _ACEOF | |
33453 | rm -f conftest.$ac_objext | |
33454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33455 | (eval $ac_compile) 2>conftest.er1 | |
33456 | ac_status=$? | |
33457 | grep -v '^ *+' conftest.er1 >conftest.err | |
33458 | rm -f conftest.er1 | |
33459 | cat conftest.err >&5 | |
33460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33461 | (exit $ac_status); } && | |
3f60522a JS |
33462 | { ac_try='test -z "$ac_cxx_werror_flag" |
33463 | || test ! -s conftest.err' | |
d51253e8 RL |
33464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33465 | (eval $ac_try) 2>&5 | |
33466 | ac_status=$? | |
33467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33468 | (exit $ac_status); }; } && | |
33469 | { ac_try='test -s conftest.$ac_objext' | |
33470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33471 | (eval $ac_try) 2>&5 | |
33472 | ac_status=$? | |
33473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33474 | (exit $ac_status); }; }; then | |
33475 | ac_cv_type_ssize_t=yes | |
33476 | else | |
33477 | echo "$as_me: failed program was:" >&5 | |
33478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33479 | ||
33480 | ac_cv_type_ssize_t=no | |
33481 | fi | |
33482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33483 | fi | |
33484 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
33485 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
33486 | if test $ac_cv_type_ssize_t = yes; then | |
33487 | ||
33488 | cat >>confdefs.h <<_ACEOF | |
33489 | #define HAVE_SSIZE_T 1 | |
33490 | _ACEOF | |
33491 | ||
33492 | ||
33493 | fi | |
33494 | ||
33495 | ||
a848cd7e SC |
33496 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 |
33497 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
33498 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
33499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33500 | else | |
33501 | ||
33502 | cat >conftest.$ac_ext <<_ACEOF | |
33503 | /* confdefs.h. */ | |
33504 | _ACEOF | |
33505 | cat confdefs.h >>conftest.$ac_ext | |
33506 | cat >>conftest.$ac_ext <<_ACEOF | |
33507 | /* end confdefs.h. */ | |
33508 | #include <stddef.h> | |
33509 | int | |
33510 | main () | |
33511 | { | |
33512 | ||
33513 | return 0; } | |
33514 | ||
33515 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
33516 | ||
33517 | int bar() { | |
33518 | ||
33519 | ; | |
33520 | return 0; | |
33521 | } | |
33522 | _ACEOF | |
33523 | rm -f conftest.$ac_objext | |
33524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33525 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33526 | ac_status=$? |
ac1cb8d3 VS |
33527 | grep -v '^ *+' conftest.er1 >conftest.err |
33528 | rm -f conftest.er1 | |
33529 | cat conftest.err >&5 | |
a848cd7e SC |
33530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33531 | (exit $ac_status); } && | |
3f60522a JS |
33532 | { ac_try='test -z "$ac_cxx_werror_flag" |
33533 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33535 | (eval $ac_try) 2>&5 | |
33536 | ac_status=$? | |
33537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33538 | (exit $ac_status); }; } && | |
33539 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33541 | (eval $ac_try) 2>&5 | |
33542 | ac_status=$? | |
33543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33544 | (exit $ac_status); }; }; then | |
33545 | wx_cv_size_t_is_uint=no | |
33546 | else | |
33547 | echo "$as_me: failed program was:" >&5 | |
33548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33549 | ||
33550 | wx_cv_size_t_is_uint=yes | |
33551 | ||
33552 | fi | |
ac1cb8d3 | 33553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33554 | |
33555 | ||
33556 | fi | |
33557 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
33558 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
33559 | ||
33560 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
33561 | cat >>confdefs.h <<\_ACEOF | |
33562 | #define wxSIZE_T_IS_UINT 1 | |
33563 | _ACEOF | |
33564 | ||
33565 | else | |
33566 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
33567 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
33568 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
33569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33570 | else | |
33571 | cat >conftest.$ac_ext <<_ACEOF | |
33572 | /* confdefs.h. */ | |
33573 | _ACEOF | |
33574 | cat confdefs.h >>conftest.$ac_ext | |
33575 | cat >>conftest.$ac_ext <<_ACEOF | |
33576 | /* end confdefs.h. */ | |
33577 | #include <stddef.h> | |
33578 | int | |
33579 | main () | |
33580 | { | |
33581 | ||
33582 | return 0; } | |
33583 | ||
33584 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
33585 | ||
33586 | int bar() { | |
33587 | ||
33588 | ; | |
33589 | return 0; | |
33590 | } | |
33591 | _ACEOF | |
33592 | rm -f conftest.$ac_objext | |
33593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33594 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33595 | ac_status=$? |
ac1cb8d3 VS |
33596 | grep -v '^ *+' conftest.er1 >conftest.err |
33597 | rm -f conftest.er1 | |
33598 | cat conftest.err >&5 | |
a848cd7e SC |
33599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33600 | (exit $ac_status); } && | |
3f60522a JS |
33601 | { ac_try='test -z "$ac_cxx_werror_flag" |
33602 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33604 | (eval $ac_try) 2>&5 | |
33605 | ac_status=$? | |
33606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33607 | (exit $ac_status); }; } && | |
33608 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33610 | (eval $ac_try) 2>&5 | |
33611 | ac_status=$? | |
33612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33613 | (exit $ac_status); }; }; then | |
33614 | wx_cv_size_t_is_ulong=no | |
33615 | else | |
33616 | echo "$as_me: failed program was:" >&5 | |
33617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33618 | ||
33619 | wx_cv_size_t_is_ulong=yes | |
33620 | ||
33621 | fi | |
ac1cb8d3 | 33622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33623 | |
33624 | fi | |
33625 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
33626 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
33627 | ||
33628 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
33629 | cat >>confdefs.h <<\_ACEOF | |
33630 | #define wxSIZE_T_IS_ULONG 1 | |
33631 | _ACEOF | |
33632 | ||
33633 | fi | |
33634 | fi | |
33635 | ||
a848cd7e SC |
33636 | |
33637 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
33638 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
33639 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
33640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33641 | else | |
33642 | ||
33643 | cat >conftest.$ac_ext <<_ACEOF | |
33644 | /* confdefs.h. */ | |
33645 | _ACEOF | |
33646 | cat confdefs.h >>conftest.$ac_ext | |
33647 | cat >>conftest.$ac_ext <<_ACEOF | |
33648 | /* end confdefs.h. */ | |
33649 | #include <pwd.h> | |
33650 | int | |
33651 | main () | |
33652 | { | |
33653 | ||
33654 | char *p; | |
33655 | struct passwd *pw; | |
33656 | p = pw->pw_gecos; | |
33657 | ||
33658 | ; | |
33659 | return 0; | |
33660 | } | |
33661 | _ACEOF | |
33662 | rm -f conftest.$ac_objext | |
33663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33664 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33665 | ac_status=$? |
ac1cb8d3 VS |
33666 | grep -v '^ *+' conftest.er1 >conftest.err |
33667 | rm -f conftest.er1 | |
33668 | cat conftest.err >&5 | |
a848cd7e SC |
33669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33670 | (exit $ac_status); } && | |
3f60522a JS |
33671 | { ac_try='test -z "$ac_cxx_werror_flag" |
33672 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33674 | (eval $ac_try) 2>&5 | |
33675 | ac_status=$? | |
33676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33677 | (exit $ac_status); }; } && | |
33678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33680 | (eval $ac_try) 2>&5 | |
33681 | ac_status=$? | |
33682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33683 | (exit $ac_status); }; }; then | |
33684 | ||
33685 | wx_cv_struct_pw_gecos=yes | |
33686 | ||
33687 | else | |
33688 | echo "$as_me: failed program was:" >&5 | |
33689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33690 | ||
33691 | ||
33692 | wx_cv_struct_pw_gecos=no | |
33693 | ||
33694 | ||
33695 | fi | |
ac1cb8d3 | 33696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33697 | |
33698 | ||
33699 | fi | |
33700 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
33701 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
33702 | ||
33703 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
33704 | cat >>confdefs.h <<\_ACEOF | |
33705 | #define HAVE_PW_GECOS 1 | |
33706 | _ACEOF | |
33707 | ||
33708 | fi | |
33709 | ||
33710 | ||
47a7e797 | 33711 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
33712 | cat >>confdefs.h <<\_ACEOF |
33713 | #define wxUSE_WCHAR_T 1 | |
33714 | _ACEOF | |
33715 | ||
33716 | ||
33717 | WCSLEN_FOUND=0 | |
33718 | WCHAR_LINK= | |
33719 | ||
33720 | for ac_func in wcslen | |
33721 | do | |
33722 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33723 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33724 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33725 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33727 | else | |
33728 | cat >conftest.$ac_ext <<_ACEOF | |
33729 | /* confdefs.h. */ | |
33730 | _ACEOF | |
33731 | cat confdefs.h >>conftest.$ac_ext | |
33732 | cat >>conftest.$ac_ext <<_ACEOF | |
33733 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33734 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33735 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33736 | #define $ac_func innocuous_$ac_func | |
33737 | ||
a848cd7e SC |
33738 | /* System header to define __stub macros and hopefully few prototypes, |
33739 | which can conflict with char $ac_func (); below. | |
33740 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33741 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33742 | |
a848cd7e SC |
33743 | #ifdef __STDC__ |
33744 | # include <limits.h> | |
33745 | #else | |
33746 | # include <assert.h> | |
33747 | #endif | |
ac1cb8d3 VS |
33748 | |
33749 | #undef $ac_func | |
33750 | ||
a848cd7e SC |
33751 | /* Override any gcc2 internal prototype to avoid an error. */ |
33752 | #ifdef __cplusplus | |
33753 | extern "C" | |
33754 | { | |
33755 | #endif | |
33756 | /* We use char because int might match the return type of a gcc2 | |
33757 | builtin and then its argument prototype would still apply. */ | |
33758 | char $ac_func (); | |
33759 | /* The GNU C library defines this for functions which it implements | |
33760 | to always fail with ENOSYS. Some functions are actually named | |
33761 | something starting with __ and the normal name is an alias. */ | |
33762 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33763 | choke me | |
33764 | #else | |
33765 | char (*f) () = $ac_func; | |
33766 | #endif | |
33767 | #ifdef __cplusplus | |
33768 | } | |
33769 | #endif | |
33770 | ||
33771 | int | |
33772 | main () | |
33773 | { | |
33774 | return f != $ac_func; | |
33775 | ; | |
33776 | return 0; | |
33777 | } | |
33778 | _ACEOF | |
33779 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33781 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33782 | ac_status=$? |
ac1cb8d3 VS |
33783 | grep -v '^ *+' conftest.er1 >conftest.err |
33784 | rm -f conftest.er1 | |
33785 | cat conftest.err >&5 | |
a848cd7e SC |
33786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33787 | (exit $ac_status); } && | |
3f60522a JS |
33788 | { ac_try='test -z "$ac_cxx_werror_flag" |
33789 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33791 | (eval $ac_try) 2>&5 | |
33792 | ac_status=$? | |
33793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33794 | (exit $ac_status); }; } && | |
33795 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33797 | (eval $ac_try) 2>&5 | |
33798 | ac_status=$? | |
33799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33800 | (exit $ac_status); }; }; then | |
33801 | eval "$as_ac_var=yes" | |
33802 | else | |
33803 | echo "$as_me: failed program was:" >&5 | |
33804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33805 | ||
33806 | eval "$as_ac_var=no" | |
33807 | fi | |
ac1cb8d3 VS |
33808 | rm -f conftest.err conftest.$ac_objext \ |
33809 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33810 | fi |
33811 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33812 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33813 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33814 | cat >>confdefs.h <<_ACEOF | |
33815 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33816 | _ACEOF | |
33817 | WCSLEN_FOUND=1 | |
33818 | fi | |
33819 | done | |
33820 | ||
33821 | ||
33822 | if test "$WCSLEN_FOUND" = 0; then | |
33823 | if test "$TOOLKIT" = "MSW"; then | |
33824 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
33825 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
33826 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
33827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33828 | else | |
33829 | ac_check_lib_save_LIBS=$LIBS | |
33830 | LIBS="-lmsvcrt $LIBS" | |
33831 | cat >conftest.$ac_ext <<_ACEOF | |
33832 | /* confdefs.h. */ | |
33833 | _ACEOF | |
33834 | cat confdefs.h >>conftest.$ac_ext | |
33835 | cat >>conftest.$ac_ext <<_ACEOF | |
33836 | /* end confdefs.h. */ | |
33837 | ||
33838 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33839 | #ifdef __cplusplus | |
33840 | extern "C" | |
33841 | #endif | |
33842 | /* We use char because int might match the return type of a gcc2 | |
33843 | builtin and then its argument prototype would still apply. */ | |
33844 | char wcslen (); | |
33845 | int | |
33846 | main () | |
33847 | { | |
33848 | wcslen (); | |
33849 | ; | |
33850 | return 0; | |
33851 | } | |
33852 | _ACEOF | |
33853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33855 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33856 | ac_status=$? |
ac1cb8d3 VS |
33857 | grep -v '^ *+' conftest.er1 >conftest.err |
33858 | rm -f conftest.er1 | |
33859 | cat conftest.err >&5 | |
a848cd7e SC |
33860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33861 | (exit $ac_status); } && | |
3f60522a JS |
33862 | { ac_try='test -z "$ac_cxx_werror_flag" |
33863 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33865 | (eval $ac_try) 2>&5 | |
33866 | ac_status=$? | |
33867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33868 | (exit $ac_status); }; } && | |
33869 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33871 | (eval $ac_try) 2>&5 | |
33872 | ac_status=$? | |
33873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33874 | (exit $ac_status); }; }; then | |
33875 | ac_cv_lib_msvcrt_wcslen=yes | |
33876 | else | |
33877 | echo "$as_me: failed program was:" >&5 | |
33878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33879 | ||
33880 | ac_cv_lib_msvcrt_wcslen=no | |
33881 | fi | |
ac1cb8d3 VS |
33882 | rm -f conftest.err conftest.$ac_objext \ |
33883 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33884 | LIBS=$ac_check_lib_save_LIBS |
33885 | fi | |
33886 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
33887 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
33888 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
33889 | WCHAR_OK=1 | |
33890 | fi | |
33891 | ||
33892 | else | |
33893 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
33894 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
33895 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
33896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33897 | else | |
33898 | ac_check_lib_save_LIBS=$LIBS | |
33899 | LIBS="-lw $LIBS" | |
33900 | cat >conftest.$ac_ext <<_ACEOF | |
33901 | /* confdefs.h. */ | |
33902 | _ACEOF | |
33903 | cat confdefs.h >>conftest.$ac_ext | |
33904 | cat >>conftest.$ac_ext <<_ACEOF | |
33905 | /* end confdefs.h. */ | |
33906 | ||
33907 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33908 | #ifdef __cplusplus | |
33909 | extern "C" | |
33910 | #endif | |
33911 | /* We use char because int might match the return type of a gcc2 | |
33912 | builtin and then its argument prototype would still apply. */ | |
33913 | char wcslen (); | |
33914 | int | |
33915 | main () | |
33916 | { | |
33917 | wcslen (); | |
33918 | ; | |
33919 | return 0; | |
33920 | } | |
33921 | _ACEOF | |
33922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33924 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33925 | ac_status=$? |
ac1cb8d3 VS |
33926 | grep -v '^ *+' conftest.er1 >conftest.err |
33927 | rm -f conftest.er1 | |
33928 | cat conftest.err >&5 | |
a848cd7e SC |
33929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33930 | (exit $ac_status); } && | |
3f60522a JS |
33931 | { ac_try='test -z "$ac_cxx_werror_flag" |
33932 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33934 | (eval $ac_try) 2>&5 | |
33935 | ac_status=$? | |
33936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33937 | (exit $ac_status); }; } && | |
33938 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33940 | (eval $ac_try) 2>&5 | |
33941 | ac_status=$? | |
33942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33943 | (exit $ac_status); }; }; then | |
33944 | ac_cv_lib_w_wcslen=yes | |
33945 | else | |
33946 | echo "$as_me: failed program was:" >&5 | |
33947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33948 | ||
33949 | ac_cv_lib_w_wcslen=no | |
33950 | fi | |
ac1cb8d3 VS |
33951 | rm -f conftest.err conftest.$ac_objext \ |
33952 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33953 | LIBS=$ac_check_lib_save_LIBS |
33954 | fi | |
33955 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
33956 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
33957 | if test $ac_cv_lib_w_wcslen = yes; then | |
33958 | ||
33959 | WCHAR_LINK=" -lw" | |
33960 | WCSLEN_FOUND=1 | |
33961 | ||
33962 | fi | |
33963 | ||
33964 | fi | |
33965 | fi | |
33966 | ||
33967 | if test "$WCSLEN_FOUND" = 1; then | |
33968 | cat >>confdefs.h <<\_ACEOF | |
33969 | #define HAVE_WCSLEN 1 | |
33970 | _ACEOF | |
33971 | ||
33972 | fi | |
33973 | ||
efdf6afe | 33974 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 33975 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
33976 | fi |
33977 | ||
efdf6afe VZ |
33978 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
33979 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
33980 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
33981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33982 | else | |
33983 | cat >conftest.$ac_ext <<_ACEOF | |
33984 | /* confdefs.h. */ | |
33985 | _ACEOF | |
33986 | cat confdefs.h >>conftest.$ac_ext | |
33987 | cat >>conftest.$ac_ext <<_ACEOF | |
33988 | /* end confdefs.h. */ | |
33989 | #include <wchar.h> | |
33990 | ||
33991 | int | |
33992 | main () | |
33993 | { | |
33994 | if ((mbstate_t *) 0) | |
33995 | return 0; | |
33996 | if (sizeof (mbstate_t)) | |
33997 | return 0; | |
33998 | ; | |
33999 | return 0; | |
34000 | } | |
34001 | _ACEOF | |
34002 | rm -f conftest.$ac_objext | |
34003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34004 | (eval $ac_compile) 2>conftest.er1 | |
34005 | ac_status=$? | |
34006 | grep -v '^ *+' conftest.er1 >conftest.err | |
34007 | rm -f conftest.er1 | |
34008 | cat conftest.err >&5 | |
34009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34010 | (exit $ac_status); } && | |
3f60522a JS |
34011 | { ac_try='test -z "$ac_cxx_werror_flag" |
34012 | || test ! -s conftest.err' | |
efdf6afe VZ |
34013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34014 | (eval $ac_try) 2>&5 | |
34015 | ac_status=$? | |
34016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34017 | (exit $ac_status); }; } && | |
34018 | { ac_try='test -s conftest.$ac_objext' | |
34019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34020 | (eval $ac_try) 2>&5 | |
34021 | ac_status=$? | |
34022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34023 | (exit $ac_status); }; }; then | |
34024 | ac_cv_type_mbstate_t=yes | |
34025 | else | |
34026 | echo "$as_me: failed program was:" >&5 | |
34027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34028 | ||
34029 | ac_cv_type_mbstate_t=no | |
34030 | fi | |
34031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34032 | fi | |
34033 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
34034 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
34035 | if test $ac_cv_type_mbstate_t = yes; then | |
34036 | ||
34037 | cat >>confdefs.h <<_ACEOF | |
34038 | #define HAVE_MBSTATE_T 1 | |
34039 | _ACEOF | |
34040 | ||
a848cd7e SC |
34041 | |
34042 | for ac_func in wcsrtombs | |
34043 | do | |
34044 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34045 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34046 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34047 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34049 | else | |
34050 | cat >conftest.$ac_ext <<_ACEOF | |
34051 | /* confdefs.h. */ | |
34052 | _ACEOF | |
34053 | cat confdefs.h >>conftest.$ac_ext | |
34054 | cat >>conftest.$ac_ext <<_ACEOF | |
34055 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34056 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34057 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34058 | #define $ac_func innocuous_$ac_func | |
34059 | ||
a848cd7e SC |
34060 | /* System header to define __stub macros and hopefully few prototypes, |
34061 | which can conflict with char $ac_func (); below. | |
34062 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34063 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34064 | |
a848cd7e SC |
34065 | #ifdef __STDC__ |
34066 | # include <limits.h> | |
34067 | #else | |
34068 | # include <assert.h> | |
34069 | #endif | |
ac1cb8d3 VS |
34070 | |
34071 | #undef $ac_func | |
34072 | ||
a848cd7e SC |
34073 | /* Override any gcc2 internal prototype to avoid an error. */ |
34074 | #ifdef __cplusplus | |
34075 | extern "C" | |
34076 | { | |
34077 | #endif | |
34078 | /* We use char because int might match the return type of a gcc2 | |
34079 | builtin and then its argument prototype would still apply. */ | |
34080 | char $ac_func (); | |
34081 | /* The GNU C library defines this for functions which it implements | |
34082 | to always fail with ENOSYS. Some functions are actually named | |
34083 | something starting with __ and the normal name is an alias. */ | |
34084 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34085 | choke me | |
34086 | #else | |
34087 | char (*f) () = $ac_func; | |
34088 | #endif | |
34089 | #ifdef __cplusplus | |
34090 | } | |
34091 | #endif | |
34092 | ||
34093 | int | |
34094 | main () | |
34095 | { | |
34096 | return f != $ac_func; | |
34097 | ; | |
34098 | return 0; | |
34099 | } | |
34100 | _ACEOF | |
34101 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34103 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34104 | ac_status=$? |
ac1cb8d3 VS |
34105 | grep -v '^ *+' conftest.er1 >conftest.err |
34106 | rm -f conftest.er1 | |
34107 | cat conftest.err >&5 | |
a848cd7e SC |
34108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34109 | (exit $ac_status); } && | |
3f60522a JS |
34110 | { ac_try='test -z "$ac_cxx_werror_flag" |
34111 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34113 | (eval $ac_try) 2>&5 | |
34114 | ac_status=$? | |
34115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34116 | (exit $ac_status); }; } && | |
34117 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34119 | (eval $ac_try) 2>&5 | |
34120 | ac_status=$? | |
34121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34122 | (exit $ac_status); }; }; then | |
34123 | eval "$as_ac_var=yes" | |
34124 | else | |
34125 | echo "$as_me: failed program was:" >&5 | |
34126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34127 | ||
34128 | eval "$as_ac_var=no" | |
34129 | fi | |
ac1cb8d3 VS |
34130 | rm -f conftest.err conftest.$ac_objext \ |
34131 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34132 | fi |
34133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34134 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34135 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34136 | cat >>confdefs.h <<_ACEOF | |
34137 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34138 | _ACEOF | |
34139 | ||
34140 | fi | |
34141 | done | |
34142 | ||
efdf6afe VZ |
34143 | fi |
34144 | ||
a848cd7e SC |
34145 | else |
34146 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
34147 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
34148 | fi | |
34149 | ||
a848cd7e | 34150 | |
4a767dd5 VZ |
34151 | |
34152 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
34153 | do |
34154 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34155 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34156 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34157 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34159 | else | |
34160 | cat >conftest.$ac_ext <<_ACEOF | |
34161 | /* confdefs.h. */ | |
34162 | _ACEOF | |
34163 | cat confdefs.h >>conftest.$ac_ext | |
34164 | cat >>conftest.$ac_ext <<_ACEOF | |
34165 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34166 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34167 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34168 | #define $ac_func innocuous_$ac_func | |
34169 | ||
a848cd7e SC |
34170 | /* System header to define __stub macros and hopefully few prototypes, |
34171 | which can conflict with char $ac_func (); below. | |
34172 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34173 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34174 | |
a848cd7e SC |
34175 | #ifdef __STDC__ |
34176 | # include <limits.h> | |
34177 | #else | |
34178 | # include <assert.h> | |
34179 | #endif | |
ac1cb8d3 VS |
34180 | |
34181 | #undef $ac_func | |
34182 | ||
a848cd7e SC |
34183 | /* Override any gcc2 internal prototype to avoid an error. */ |
34184 | #ifdef __cplusplus | |
34185 | extern "C" | |
34186 | { | |
34187 | #endif | |
34188 | /* We use char because int might match the return type of a gcc2 | |
34189 | builtin and then its argument prototype would still apply. */ | |
34190 | char $ac_func (); | |
34191 | /* The GNU C library defines this for functions which it implements | |
34192 | to always fail with ENOSYS. Some functions are actually named | |
34193 | something starting with __ and the normal name is an alias. */ | |
34194 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34195 | choke me | |
34196 | #else | |
34197 | char (*f) () = $ac_func; | |
34198 | #endif | |
34199 | #ifdef __cplusplus | |
34200 | } | |
34201 | #endif | |
34202 | ||
34203 | int | |
34204 | main () | |
34205 | { | |
34206 | return f != $ac_func; | |
34207 | ; | |
34208 | return 0; | |
34209 | } | |
34210 | _ACEOF | |
34211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34213 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34214 | ac_status=$? |
ac1cb8d3 VS |
34215 | grep -v '^ *+' conftest.er1 >conftest.err |
34216 | rm -f conftest.er1 | |
34217 | cat conftest.err >&5 | |
a848cd7e SC |
34218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34219 | (exit $ac_status); } && | |
3f60522a JS |
34220 | { ac_try='test -z "$ac_cxx_werror_flag" |
34221 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34223 | (eval $ac_try) 2>&5 | |
34224 | ac_status=$? | |
34225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34226 | (exit $ac_status); }; } && | |
34227 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34229 | (eval $ac_try) 2>&5 | |
34230 | ac_status=$? | |
34231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34232 | (exit $ac_status); }; }; then | |
34233 | eval "$as_ac_var=yes" | |
34234 | else | |
34235 | echo "$as_me: failed program was:" >&5 | |
34236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34237 | ||
34238 | eval "$as_ac_var=no" | |
34239 | fi | |
ac1cb8d3 VS |
34240 | rm -f conftest.err conftest.$ac_objext \ |
34241 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34242 | fi |
34243 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34244 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34245 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34246 | cat >>confdefs.h <<_ACEOF | |
34247 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34248 | _ACEOF | |
34249 | ||
34250 | fi | |
34251 | done | |
34252 | ||
34253 | ||
34254 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
34255 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
34256 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
34257 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
34258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34259 | else | |
34260 | ||
efdf6afe | 34261 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
34262 | /* confdefs.h. */ |
34263 | _ACEOF | |
34264 | cat confdefs.h >>conftest.$ac_ext | |
34265 | cat >>conftest.$ac_ext <<_ACEOF | |
34266 | /* end confdefs.h. */ | |
34267 | ||
34268 | #include <stdio.h> | |
34269 | #include <stdarg.h> | |
efdf6afe VZ |
34270 | #ifdef __MSL__ |
34271 | #if __MSL__ >= 0x6000 | |
34272 | namespace std {} | |
34273 | using namespace std; | |
34274 | #endif | |
34275 | #endif | |
a848cd7e SC |
34276 | |
34277 | int | |
34278 | main () | |
34279 | { | |
34280 | ||
34281 | char *buf; | |
34282 | va_list ap; | |
62fa8b3a | 34283 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
34284 | |
34285 | ; | |
34286 | return 0; | |
34287 | } | |
34288 | _ACEOF | |
34289 | rm -f conftest.$ac_objext | |
34290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34291 | (eval $ac_compile) 2>conftest.er1 | |
34292 | ac_status=$? | |
34293 | grep -v '^ *+' conftest.er1 >conftest.err | |
34294 | rm -f conftest.er1 | |
34295 | cat conftest.err >&5 | |
34296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34297 | (exit $ac_status); } && | |
3f60522a JS |
34298 | { ac_try='test -z "$ac_cxx_werror_flag" |
34299 | || test ! -s conftest.err' | |
c122b164 DE |
34300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34301 | (eval $ac_try) 2>&5 | |
34302 | ac_status=$? | |
34303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34304 | (exit $ac_status); }; } && | |
34305 | { ac_try='test -s conftest.$ac_objext' | |
34306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34307 | (eval $ac_try) 2>&5 | |
34308 | ac_status=$? | |
34309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34310 | (exit $ac_status); }; }; then | |
34311 | wx_cv_func_vsnprintf_decl=yes | |
34312 | else | |
34313 | echo "$as_me: failed program was:" >&5 | |
34314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34315 | ||
a848cd7e SC |
34316 | wx_cv_func_vsnprintf_decl=no |
34317 | ||
34318 | fi | |
ac1cb8d3 | 34319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34320 | |
34321 | ||
34322 | fi | |
34323 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
34324 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
34325 | ||
34326 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
34327 | cat >>confdefs.h <<\_ACEOF | |
34328 | #define HAVE_VSNPRINTF_DECL 1 | |
34329 | _ACEOF | |
34330 | ||
62fa8b3a MW |
34331 | |
34332 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
34333 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
34334 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
34335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34336 | else | |
34337 | ||
34338 | cat >conftest.$ac_ext <<_ACEOF | |
34339 | /* confdefs.h. */ | |
34340 | _ACEOF | |
34341 | cat confdefs.h >>conftest.$ac_ext | |
34342 | cat >>conftest.$ac_ext <<_ACEOF | |
34343 | /* end confdefs.h. */ | |
34344 | ||
34345 | #include <stdio.h> | |
34346 | #include <stdarg.h> | |
34347 | #ifdef __MSL__ | |
34348 | #if __MSL__ >= 0x6000 | |
34349 | namespace std {} | |
34350 | using namespace std; | |
34351 | #endif | |
34352 | #endif | |
34353 | ||
34354 | int | |
34355 | main () | |
34356 | { | |
34357 | ||
34358 | char *buf; | |
34359 | va_list ap; | |
34360 | const char *fmt = "%s"; | |
34361 | vsnprintf(buf, 10u, fmt, ap); | |
34362 | ||
34363 | ; | |
34364 | return 0; | |
34365 | } | |
34366 | _ACEOF | |
34367 | rm -f conftest.$ac_objext | |
34368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34369 | (eval $ac_compile) 2>conftest.er1 | |
34370 | ac_status=$? | |
34371 | grep -v '^ *+' conftest.er1 >conftest.err | |
34372 | rm -f conftest.er1 | |
34373 | cat conftest.err >&5 | |
34374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34375 | (exit $ac_status); } && | |
3f60522a JS |
34376 | { ac_try='test -z "$ac_cxx_werror_flag" |
34377 | || test ! -s conftest.err' | |
62fa8b3a MW |
34378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34379 | (eval $ac_try) 2>&5 | |
34380 | ac_status=$? | |
34381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34382 | (exit $ac_status); }; } && | |
34383 | { ac_try='test -s conftest.$ac_objext' | |
34384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34385 | (eval $ac_try) 2>&5 | |
34386 | ac_status=$? | |
34387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34388 | (exit $ac_status); }; }; then | |
34389 | wx_cv_func_broken_vsnprintf_decl=no | |
34390 | else | |
34391 | echo "$as_me: failed program was:" >&5 | |
34392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34393 | ||
34394 | wx_cv_func_broken_vsnprintf_decl=yes | |
34395 | ||
34396 | fi | |
34397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34398 | ||
34399 | ||
34400 | fi | |
34401 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
34402 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
34403 | ||
34404 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
34405 | cat >>confdefs.h <<\_ACEOF | |
34406 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
34407 | _ACEOF | |
34408 | ||
34409 | fi | |
a848cd7e SC |
34410 | fi |
34411 | fi | |
34412 | ||
4a767dd5 VZ |
34413 | if test "$ac_cv_func_snprintf" = "yes"; then |
34414 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
34415 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
34416 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
34417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34418 | else | |
34419 | ||
34420 | cat >conftest.$ac_ext <<_ACEOF | |
34421 | /* confdefs.h. */ | |
34422 | _ACEOF | |
34423 | cat confdefs.h >>conftest.$ac_ext | |
34424 | cat >>conftest.$ac_ext <<_ACEOF | |
34425 | /* end confdefs.h. */ | |
34426 | ||
34427 | #include <stdio.h> | |
34428 | #include <stdarg.h> | |
34429 | #ifdef __MSL__ | |
34430 | #if __MSL__ >= 0x6000 | |
34431 | namespace std {} | |
34432 | using namespace std; | |
34433 | #endif | |
34434 | #endif | |
34435 | ||
34436 | int | |
34437 | main () | |
34438 | { | |
34439 | ||
34440 | char *buf; | |
62fa8b3a | 34441 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
34442 | |
34443 | ; | |
34444 | return 0; | |
34445 | } | |
34446 | _ACEOF | |
34447 | rm -f conftest.$ac_objext | |
34448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34449 | (eval $ac_compile) 2>conftest.er1 | |
34450 | ac_status=$? | |
34451 | grep -v '^ *+' conftest.er1 >conftest.err | |
34452 | rm -f conftest.er1 | |
34453 | cat conftest.err >&5 | |
34454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34455 | (exit $ac_status); } && | |
3f60522a JS |
34456 | { ac_try='test -z "$ac_cxx_werror_flag" |
34457 | || test ! -s conftest.err' | |
4a767dd5 VZ |
34458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34459 | (eval $ac_try) 2>&5 | |
34460 | ac_status=$? | |
34461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34462 | (exit $ac_status); }; } && | |
34463 | { ac_try='test -s conftest.$ac_objext' | |
34464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34465 | (eval $ac_try) 2>&5 | |
34466 | ac_status=$? | |
34467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34468 | (exit $ac_status); }; }; then | |
34469 | wx_cv_func_snprintf_decl=yes | |
34470 | else | |
34471 | echo "$as_me: failed program was:" >&5 | |
34472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34473 | ||
34474 | wx_cv_func_snprintf_decl=no | |
34475 | ||
34476 | fi | |
34477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34478 | ||
34479 | ||
34480 | fi | |
34481 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
34482 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
34483 | ||
34484 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
34485 | cat >>confdefs.h <<\_ACEOF | |
34486 | #define HAVE_SNPRINTF_DECL 1 | |
34487 | _ACEOF | |
34488 | ||
62fa8b3a MW |
34489 | |
34490 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
34491 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
34492 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
34493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34494 | else | |
34495 | ||
34496 | cat >conftest.$ac_ext <<_ACEOF | |
34497 | /* confdefs.h. */ | |
34498 | _ACEOF | |
34499 | cat confdefs.h >>conftest.$ac_ext | |
34500 | cat >>conftest.$ac_ext <<_ACEOF | |
34501 | /* end confdefs.h. */ | |
34502 | ||
34503 | #include <stdio.h> | |
34504 | #include <stdarg.h> | |
34505 | #ifdef __MSL__ | |
34506 | #if __MSL__ >= 0x6000 | |
34507 | namespace std {} | |
34508 | using namespace std; | |
34509 | #endif | |
34510 | #endif | |
34511 | ||
34512 | int | |
34513 | main () | |
34514 | { | |
34515 | ||
34516 | char *buf; | |
34517 | const char *fmt = "%s"; | |
34518 | snprintf(buf, 10u, fmt, "wx"); | |
34519 | ||
34520 | ; | |
34521 | return 0; | |
34522 | } | |
34523 | _ACEOF | |
34524 | rm -f conftest.$ac_objext | |
34525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34526 | (eval $ac_compile) 2>conftest.er1 | |
34527 | ac_status=$? | |
34528 | grep -v '^ *+' conftest.er1 >conftest.err | |
34529 | rm -f conftest.er1 | |
34530 | cat conftest.err >&5 | |
34531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34532 | (exit $ac_status); } && | |
3f60522a JS |
34533 | { ac_try='test -z "$ac_cxx_werror_flag" |
34534 | || test ! -s conftest.err' | |
62fa8b3a MW |
34535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34536 | (eval $ac_try) 2>&5 | |
34537 | ac_status=$? | |
34538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34539 | (exit $ac_status); }; } && | |
34540 | { ac_try='test -s conftest.$ac_objext' | |
34541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34542 | (eval $ac_try) 2>&5 | |
34543 | ac_status=$? | |
34544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34545 | (exit $ac_status); }; }; then | |
34546 | wx_cv_func_broken_snprintf_decl=no | |
34547 | else | |
34548 | echo "$as_me: failed program was:" >&5 | |
34549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34550 | ||
34551 | wx_cv_func_broken_snprintf_decl=yes | |
34552 | ||
34553 | fi | |
34554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34555 | ||
34556 | ||
34557 | fi | |
34558 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
34559 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
34560 | ||
34561 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
34562 | cat >>confdefs.h <<\_ACEOF | |
34563 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
8b6682b9 JS |
34564 | _ACEOF |
34565 | ||
34566 | fi | |
34567 | fi | |
34568 | ||
34569 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then | |
34570 | ||
34571 | echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5 | |
34572 | echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6 | |
34573 | if test "${wx_cv_func_snprintf_pos_params+set}" = set; then | |
34574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34575 | else | |
34576 | ||
34577 | if test "$cross_compiling" = yes; then | |
34578 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
34579 | See \`config.log' for more details." >&5 | |
34580 | echo "$as_me: error: cannot run test program while cross compiling | |
34581 | See \`config.log' for more details." >&2;} | |
34582 | { (exit 1); exit 1; }; } | |
34583 | else | |
34584 | cat >conftest.$ac_ext <<_ACEOF | |
34585 | /* confdefs.h. */ | |
34586 | _ACEOF | |
34587 | cat confdefs.h >>conftest.$ac_ext | |
34588 | cat >>conftest.$ac_ext <<_ACEOF | |
34589 | /* end confdefs.h. */ | |
34590 | ||
34591 | #include <stdio.h> | |
34592 | ||
34593 | int main (void) | |
34594 | { | |
34595 | char buffer[128]; | |
34596 | snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3); | |
34597 | if (strcmp ("2 3 1", buffer) == 0) | |
34598 | exit (0); | |
34599 | exit (1); | |
34600 | } | |
34601 | ||
34602 | _ACEOF | |
34603 | rm -f conftest$ac_exeext | |
34604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34605 | (eval $ac_link) 2>&5 | |
34606 | ac_status=$? | |
34607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34608 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34610 | (eval $ac_try) 2>&5 | |
34611 | ac_status=$? | |
34612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34613 | (exit $ac_status); }; }; then | |
34614 | wx_cv_func_snprintf_pos_params=no | |
34615 | else | |
34616 | echo "$as_me: program exited with status $ac_status" >&5 | |
34617 | echo "$as_me: failed program was:" >&5 | |
34618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34619 | ||
34620 | ( exit $ac_status ) | |
34621 | wx_cv_func_snprintf_pos_params=yes | |
34622 | ||
34623 | fi | |
34624 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
34625 | fi | |
34626 | ||
34627 | ||
34628 | fi | |
34629 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5 | |
34630 | echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6 | |
34631 | ||
34632 | if test "$wx_cv_func_snprintf_pos_params" = "yes"; then | |
34633 | cat >>confdefs.h <<\_ACEOF | |
34634 | #define HAVE_UNIX98_PRINTF 1 | |
62fa8b3a MW |
34635 | _ACEOF |
34636 | ||
34637 | fi | |
4a767dd5 VZ |
34638 | fi |
34639 | fi | |
34640 | ||
8b6682b9 | 34641 | |
a848cd7e SC |
34642 | if test "$wxUSE_UNICODE" = yes; then |
34643 | ||
34644 | ||
34645 | ||
fbe47c7b VS |
34646 | |
34647 | ||
34648 | ||
34649 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
34650 | do |
34651 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34652 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34653 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34654 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34656 | else | |
34657 | cat >conftest.$ac_ext <<_ACEOF | |
34658 | /* confdefs.h. */ | |
34659 | _ACEOF | |
34660 | cat confdefs.h >>conftest.$ac_ext | |
34661 | cat >>conftest.$ac_ext <<_ACEOF | |
34662 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34663 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34664 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34665 | #define $ac_func innocuous_$ac_func | |
34666 | ||
a848cd7e SC |
34667 | /* System header to define __stub macros and hopefully few prototypes, |
34668 | which can conflict with char $ac_func (); below. | |
34669 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34670 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34671 | |
a848cd7e SC |
34672 | #ifdef __STDC__ |
34673 | # include <limits.h> | |
34674 | #else | |
34675 | # include <assert.h> | |
34676 | #endif | |
ac1cb8d3 VS |
34677 | |
34678 | #undef $ac_func | |
34679 | ||
a848cd7e SC |
34680 | /* Override any gcc2 internal prototype to avoid an error. */ |
34681 | #ifdef __cplusplus | |
34682 | extern "C" | |
34683 | { | |
34684 | #endif | |
34685 | /* We use char because int might match the return type of a gcc2 | |
34686 | builtin and then its argument prototype would still apply. */ | |
34687 | char $ac_func (); | |
34688 | /* The GNU C library defines this for functions which it implements | |
34689 | to always fail with ENOSYS. Some functions are actually named | |
34690 | something starting with __ and the normal name is an alias. */ | |
34691 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34692 | choke me | |
34693 | #else | |
34694 | char (*f) () = $ac_func; | |
34695 | #endif | |
34696 | #ifdef __cplusplus | |
34697 | } | |
34698 | #endif | |
34699 | ||
34700 | int | |
34701 | main () | |
34702 | { | |
34703 | return f != $ac_func; | |
34704 | ; | |
34705 | return 0; | |
34706 | } | |
34707 | _ACEOF | |
34708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34710 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34711 | ac_status=$? |
ac1cb8d3 VS |
34712 | grep -v '^ *+' conftest.er1 >conftest.err |
34713 | rm -f conftest.er1 | |
34714 | cat conftest.err >&5 | |
a848cd7e SC |
34715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34716 | (exit $ac_status); } && | |
3f60522a JS |
34717 | { ac_try='test -z "$ac_cxx_werror_flag" |
34718 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34720 | (eval $ac_try) 2>&5 | |
34721 | ac_status=$? | |
34722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34723 | (exit $ac_status); }; } && | |
34724 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34726 | (eval $ac_try) 2>&5 | |
34727 | ac_status=$? | |
34728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34729 | (exit $ac_status); }; }; then | |
34730 | eval "$as_ac_var=yes" | |
34731 | else | |
34732 | echo "$as_me: failed program was:" >&5 | |
34733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34734 | ||
34735 | eval "$as_ac_var=no" | |
34736 | fi | |
ac1cb8d3 VS |
34737 | rm -f conftest.err conftest.$ac_objext \ |
34738 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34739 | fi |
34740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34741 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34742 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34743 | cat >>confdefs.h <<_ACEOF | |
34744 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34745 | _ACEOF | |
34746 | ||
34747 | fi | |
34748 | done | |
34749 | ||
34750 | ||
34751 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
34752 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
34753 | cat >conftest.$ac_ext <<_ACEOF | |
34754 | /* confdefs.h. */ | |
34755 | _ACEOF | |
34756 | cat confdefs.h >>conftest.$ac_ext | |
34757 | cat >>conftest.$ac_ext <<_ACEOF | |
34758 | /* end confdefs.h. */ | |
34759 | #include <wchar.h> | |
34760 | int | |
34761 | main () | |
34762 | { | |
34763 | &_vsnwprintf; | |
34764 | ; | |
34765 | return 0; | |
34766 | } | |
34767 | _ACEOF | |
34768 | rm -f conftest.$ac_objext | |
34769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34770 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34771 | ac_status=$? |
ac1cb8d3 VS |
34772 | grep -v '^ *+' conftest.er1 >conftest.err |
34773 | rm -f conftest.er1 | |
34774 | cat conftest.err >&5 | |
a848cd7e SC |
34775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34776 | (exit $ac_status); } && | |
3f60522a JS |
34777 | { ac_try='test -z "$ac_cxx_werror_flag" |
34778 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34780 | (eval $ac_try) 2>&5 | |
34781 | ac_status=$? | |
34782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34783 | (exit $ac_status); }; } && | |
34784 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34786 | (eval $ac_try) 2>&5 | |
34787 | ac_status=$? | |
34788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34789 | (exit $ac_status); }; }; then | |
34790 | echo "$as_me:$LINENO: result: yes" >&5 | |
34791 | echo "${ECHO_T}yes" >&6 | |
34792 | cat >>confdefs.h <<\_ACEOF | |
34793 | #define HAVE__VSNWPRINTF 1 | |
34794 | _ACEOF | |
34795 | ||
34796 | else | |
34797 | echo "$as_me: failed program was:" >&5 | |
34798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34799 | ||
34800 | echo "$as_me:$LINENO: result: no" >&5 | |
34801 | echo "${ECHO_T}no" >&6 | |
34802 | fi | |
ac1cb8d3 | 34803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
34804 | fi |
34805 | ||
6ebeb4c7 VZ |
34806 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
34807 | ||
34808 | for ac_func in fnmatch | |
34809 | do | |
34810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34811 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34813 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34815 | else | |
34816 | cat >conftest.$ac_ext <<_ACEOF | |
34817 | /* confdefs.h. */ | |
34818 | _ACEOF | |
34819 | cat confdefs.h >>conftest.$ac_ext | |
34820 | cat >>conftest.$ac_ext <<_ACEOF | |
34821 | /* end confdefs.h. */ | |
34822 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34823 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34824 | #define $ac_func innocuous_$ac_func | |
34825 | ||
34826 | /* System header to define __stub macros and hopefully few prototypes, | |
34827 | which can conflict with char $ac_func (); below. | |
34828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34829 | <limits.h> exists even on freestanding compilers. */ | |
34830 | ||
34831 | #ifdef __STDC__ | |
34832 | # include <limits.h> | |
34833 | #else | |
34834 | # include <assert.h> | |
34835 | #endif | |
34836 | ||
34837 | #undef $ac_func | |
34838 | ||
34839 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34840 | #ifdef __cplusplus | |
34841 | extern "C" | |
34842 | { | |
34843 | #endif | |
34844 | /* We use char because int might match the return type of a gcc2 | |
34845 | builtin and then its argument prototype would still apply. */ | |
34846 | char $ac_func (); | |
34847 | /* The GNU C library defines this for functions which it implements | |
34848 | to always fail with ENOSYS. Some functions are actually named | |
34849 | something starting with __ and the normal name is an alias. */ | |
34850 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34851 | choke me | |
34852 | #else | |
34853 | char (*f) () = $ac_func; | |
34854 | #endif | |
34855 | #ifdef __cplusplus | |
34856 | } | |
34857 | #endif | |
34858 | ||
34859 | int | |
34860 | main () | |
34861 | { | |
34862 | return f != $ac_func; | |
34863 | ; | |
34864 | return 0; | |
34865 | } | |
34866 | _ACEOF | |
34867 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34869 | (eval $ac_link) 2>conftest.er1 | |
34870 | ac_status=$? | |
34871 | grep -v '^ *+' conftest.er1 >conftest.err | |
34872 | rm -f conftest.er1 | |
34873 | cat conftest.err >&5 | |
34874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34875 | (exit $ac_status); } && | |
3f60522a JS |
34876 | { ac_try='test -z "$ac_cxx_werror_flag" |
34877 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
34878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34879 | (eval $ac_try) 2>&5 | |
34880 | ac_status=$? | |
34881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34882 | (exit $ac_status); }; } && | |
34883 | { ac_try='test -s conftest$ac_exeext' | |
34884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34885 | (eval $ac_try) 2>&5 | |
34886 | ac_status=$? | |
34887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34888 | (exit $ac_status); }; }; then | |
34889 | eval "$as_ac_var=yes" | |
34890 | else | |
34891 | echo "$as_me: failed program was:" >&5 | |
34892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34893 | ||
34894 | eval "$as_ac_var=no" | |
34895 | fi | |
34896 | rm -f conftest.err conftest.$ac_objext \ | |
34897 | conftest$ac_exeext conftest.$ac_ext | |
34898 | fi | |
34899 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34900 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34901 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34902 | cat >>confdefs.h <<_ACEOF | |
34903 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34904 | _ACEOF | |
34905 | ||
34906 | fi | |
34907 | done | |
34908 | ||
34909 | fi | |
34910 | ||
34911 | if test "$wxUSE_FILE" = "yes"; then | |
34912 | ||
34913 | for ac_func in fsync | |
34914 | do | |
34915 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34916 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34917 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34918 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34920 | else | |
34921 | cat >conftest.$ac_ext <<_ACEOF | |
34922 | /* confdefs.h. */ | |
34923 | _ACEOF | |
34924 | cat confdefs.h >>conftest.$ac_ext | |
34925 | cat >>conftest.$ac_ext <<_ACEOF | |
34926 | /* end confdefs.h. */ | |
34927 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34928 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34929 | #define $ac_func innocuous_$ac_func | |
34930 | ||
34931 | /* System header to define __stub macros and hopefully few prototypes, | |
34932 | which can conflict with char $ac_func (); below. | |
34933 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34934 | <limits.h> exists even on freestanding compilers. */ | |
34935 | ||
34936 | #ifdef __STDC__ | |
34937 | # include <limits.h> | |
34938 | #else | |
34939 | # include <assert.h> | |
34940 | #endif | |
34941 | ||
34942 | #undef $ac_func | |
34943 | ||
34944 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34945 | #ifdef __cplusplus | |
34946 | extern "C" | |
34947 | { | |
34948 | #endif | |
34949 | /* We use char because int might match the return type of a gcc2 | |
34950 | builtin and then its argument prototype would still apply. */ | |
34951 | char $ac_func (); | |
34952 | /* The GNU C library defines this for functions which it implements | |
34953 | to always fail with ENOSYS. Some functions are actually named | |
34954 | something starting with __ and the normal name is an alias. */ | |
34955 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34956 | choke me | |
34957 | #else | |
34958 | char (*f) () = $ac_func; | |
34959 | #endif | |
34960 | #ifdef __cplusplus | |
34961 | } | |
34962 | #endif | |
34963 | ||
34964 | int | |
34965 | main () | |
34966 | { | |
34967 | return f != $ac_func; | |
34968 | ; | |
34969 | return 0; | |
34970 | } | |
34971 | _ACEOF | |
34972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34974 | (eval $ac_link) 2>conftest.er1 | |
34975 | ac_status=$? | |
34976 | grep -v '^ *+' conftest.er1 >conftest.err | |
34977 | rm -f conftest.er1 | |
34978 | cat conftest.err >&5 | |
34979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34980 | (exit $ac_status); } && | |
3f60522a JS |
34981 | { ac_try='test -z "$ac_cxx_werror_flag" |
34982 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
34983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34984 | (eval $ac_try) 2>&5 | |
34985 | ac_status=$? | |
34986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34987 | (exit $ac_status); }; } && | |
34988 | { ac_try='test -s conftest$ac_exeext' | |
34989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34990 | (eval $ac_try) 2>&5 | |
34991 | ac_status=$? | |
34992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34993 | (exit $ac_status); }; }; then | |
34994 | eval "$as_ac_var=yes" | |
34995 | else | |
34996 | echo "$as_me: failed program was:" >&5 | |
34997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34998 | ||
34999 | eval "$as_ac_var=no" | |
35000 | fi | |
35001 | rm -f conftest.err conftest.$ac_objext \ | |
35002 | conftest$ac_exeext conftest.$ac_ext | |
35003 | fi | |
35004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35005 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35006 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35007 | cat >>confdefs.h <<_ACEOF | |
35008 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35009 | _ACEOF | |
35010 | ||
35011 | fi | |
35012 | done | |
35013 | ||
35014 | fi | |
a848cd7e SC |
35015 | |
35016 | ||
35017 | if test "$TOOLKIT" != "MSW"; then | |
35018 | ||
35019 | ||
a848cd7e SC |
35020 | |
35021 | ||
35022 | ||
35023 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
35024 | if test "${with_libiconv_prefix+set}" = set; then | |
35025 | withval="$with_libiconv_prefix" | |
35026 | ||
35027 | for dir in `echo "$withval" | tr : ' '`; do | |
35028 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
35029 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
35030 | done | |
35031 | ||
35032 | fi; | |
35033 | ||
35034 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
35035 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
35036 | if test "${am_cv_func_iconv+set}" = set; then | |
35037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35038 | else | |
35039 | ||
35040 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
35041 | am_cv_lib_iconv=no | |
35042 | cat >conftest.$ac_ext <<_ACEOF | |
35043 | /* confdefs.h. */ | |
35044 | _ACEOF | |
35045 | cat confdefs.h >>conftest.$ac_ext | |
35046 | cat >>conftest.$ac_ext <<_ACEOF | |
35047 | /* end confdefs.h. */ | |
35048 | #include <stdlib.h> | |
35049 | #include <iconv.h> | |
35050 | int | |
35051 | main () | |
35052 | { | |
35053 | iconv_t cd = iconv_open("",""); | |
35054 | iconv(cd,NULL,NULL,NULL,NULL); | |
35055 | iconv_close(cd); | |
35056 | ; | |
35057 | return 0; | |
35058 | } | |
35059 | _ACEOF | |
35060 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35062 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35063 | ac_status=$? |
ac1cb8d3 VS |
35064 | grep -v '^ *+' conftest.er1 >conftest.err |
35065 | rm -f conftest.er1 | |
35066 | cat conftest.err >&5 | |
a848cd7e SC |
35067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35068 | (exit $ac_status); } && | |
3f60522a JS |
35069 | { ac_try='test -z "$ac_cxx_werror_flag" |
35070 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35072 | (eval $ac_try) 2>&5 | |
35073 | ac_status=$? | |
35074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35075 | (exit $ac_status); }; } && | |
35076 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35078 | (eval $ac_try) 2>&5 | |
35079 | ac_status=$? | |
35080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35081 | (exit $ac_status); }; }; then | |
35082 | am_cv_func_iconv=yes | |
35083 | else | |
35084 | echo "$as_me: failed program was:" >&5 | |
35085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35086 | ||
35087 | fi | |
ac1cb8d3 VS |
35088 | rm -f conftest.err conftest.$ac_objext \ |
35089 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35090 | if test "$am_cv_func_iconv" != yes; then |
35091 | am_save_LIBS="$LIBS" | |
35092 | LIBS="$LIBS -liconv" | |
35093 | cat >conftest.$ac_ext <<_ACEOF | |
35094 | /* confdefs.h. */ | |
35095 | _ACEOF | |
35096 | cat confdefs.h >>conftest.$ac_ext | |
35097 | cat >>conftest.$ac_ext <<_ACEOF | |
35098 | /* end confdefs.h. */ | |
35099 | #include <stdlib.h> | |
35100 | #include <iconv.h> | |
35101 | int | |
35102 | main () | |
35103 | { | |
35104 | iconv_t cd = iconv_open("",""); | |
35105 | iconv(cd,NULL,NULL,NULL,NULL); | |
35106 | iconv_close(cd); | |
35107 | ; | |
35108 | return 0; | |
35109 | } | |
35110 | _ACEOF | |
35111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35113 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35114 | ac_status=$? |
ac1cb8d3 VS |
35115 | grep -v '^ *+' conftest.er1 >conftest.err |
35116 | rm -f conftest.er1 | |
35117 | cat conftest.err >&5 | |
a848cd7e SC |
35118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35119 | (exit $ac_status); } && | |
3f60522a JS |
35120 | { ac_try='test -z "$ac_cxx_werror_flag" |
35121 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35123 | (eval $ac_try) 2>&5 | |
35124 | ac_status=$? | |
35125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35126 | (exit $ac_status); }; } && | |
35127 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
35133 | am_cv_lib_iconv=yes | |
35134 | am_cv_func_iconv=yes | |
35135 | else | |
35136 | echo "$as_me: failed program was:" >&5 | |
35137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35138 | ||
35139 | fi | |
ac1cb8d3 VS |
35140 | rm -f conftest.err conftest.$ac_objext \ |
35141 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35142 | LIBS="$am_save_LIBS" |
35143 | fi | |
35144 | ||
35145 | fi | |
35146 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
35147 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
35148 | if test "$am_cv_func_iconv" = yes; then | |
35149 | ||
35150 | cat >>confdefs.h <<\_ACEOF | |
35151 | #define HAVE_ICONV 1 | |
35152 | _ACEOF | |
35153 | ||
35154 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
35155 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
35156 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
35157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35158 | else | |
35159 | cat >conftest.$ac_ext <<_ACEOF | |
35160 | /* confdefs.h. */ | |
35161 | _ACEOF | |
35162 | cat confdefs.h >>conftest.$ac_ext | |
35163 | cat >>conftest.$ac_ext <<_ACEOF | |
35164 | /* end confdefs.h. */ | |
35165 | ||
35166 | #include <stdlib.h> | |
35167 | #include <iconv.h> | |
35168 | extern | |
35169 | #ifdef __cplusplus | |
35170 | "C" | |
35171 | #endif | |
35172 | #if defined(__STDC__) || defined(__cplusplus) | |
35173 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
35174 | #else | |
35175 | size_t iconv(); | |
35176 | #endif | |
35177 | ||
35178 | int | |
35179 | main () | |
35180 | { | |
35181 | ||
35182 | ; | |
35183 | return 0; | |
35184 | } | |
35185 | _ACEOF | |
35186 | rm -f conftest.$ac_objext | |
35187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35188 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35189 | ac_status=$? |
ac1cb8d3 VS |
35190 | grep -v '^ *+' conftest.er1 >conftest.err |
35191 | rm -f conftest.er1 | |
35192 | cat conftest.err >&5 | |
a848cd7e SC |
35193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35194 | (exit $ac_status); } && | |
3f60522a JS |
35195 | { ac_try='test -z "$ac_cxx_werror_flag" |
35196 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35198 | (eval $ac_try) 2>&5 | |
35199 | ac_status=$? | |
35200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35201 | (exit $ac_status); }; } && | |
35202 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35204 | (eval $ac_try) 2>&5 | |
35205 | ac_status=$? | |
35206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35207 | (exit $ac_status); }; }; then | |
35208 | wx_cv_func_iconv_const="no" | |
35209 | else | |
35210 | echo "$as_me: failed program was:" >&5 | |
35211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35212 | ||
35213 | wx_cv_func_iconv_const="yes" | |
35214 | ||
35215 | fi | |
ac1cb8d3 | 35216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35217 | |
35218 | fi | |
35219 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
35220 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
35221 | ||
35222 | iconv_const= | |
35223 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
35224 | iconv_const="const" | |
35225 | fi | |
35226 | ||
35227 | ||
35228 | cat >>confdefs.h <<_ACEOF | |
35229 | #define ICONV_CONST $iconv_const | |
35230 | _ACEOF | |
35231 | ||
35232 | fi | |
35233 | LIBICONV= | |
35234 | if test "$am_cv_lib_iconv" = yes; then | |
35235 | LIBICONV="-liconv" | |
35236 | fi | |
35237 | ||
35238 | ||
35239 | LIBS="$LIBICONV $LIBS" | |
a848cd7e SC |
35240 | |
35241 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
35242 | ||
35243 | for ac_func in sigaction | |
35244 | do | |
35245 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35246 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35247 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35248 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35250 | else | |
35251 | cat >conftest.$ac_ext <<_ACEOF | |
35252 | /* confdefs.h. */ | |
35253 | _ACEOF | |
35254 | cat confdefs.h >>conftest.$ac_ext | |
35255 | cat >>conftest.$ac_ext <<_ACEOF | |
35256 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35257 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35258 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35259 | #define $ac_func innocuous_$ac_func | |
35260 | ||
a848cd7e SC |
35261 | /* System header to define __stub macros and hopefully few prototypes, |
35262 | which can conflict with char $ac_func (); below. | |
35263 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35264 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35265 | |
a848cd7e SC |
35266 | #ifdef __STDC__ |
35267 | # include <limits.h> | |
35268 | #else | |
35269 | # include <assert.h> | |
35270 | #endif | |
ac1cb8d3 VS |
35271 | |
35272 | #undef $ac_func | |
35273 | ||
a848cd7e SC |
35274 | /* Override any gcc2 internal prototype to avoid an error. */ |
35275 | #ifdef __cplusplus | |
35276 | extern "C" | |
35277 | { | |
35278 | #endif | |
35279 | /* We use char because int might match the return type of a gcc2 | |
35280 | builtin and then its argument prototype would still apply. */ | |
35281 | char $ac_func (); | |
35282 | /* The GNU C library defines this for functions which it implements | |
35283 | to always fail with ENOSYS. Some functions are actually named | |
35284 | something starting with __ and the normal name is an alias. */ | |
35285 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35286 | choke me | |
35287 | #else | |
35288 | char (*f) () = $ac_func; | |
35289 | #endif | |
35290 | #ifdef __cplusplus | |
35291 | } | |
35292 | #endif | |
35293 | ||
35294 | int | |
35295 | main () | |
35296 | { | |
35297 | return f != $ac_func; | |
35298 | ; | |
35299 | return 0; | |
35300 | } | |
35301 | _ACEOF | |
35302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35304 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35305 | ac_status=$? |
ac1cb8d3 VS |
35306 | grep -v '^ *+' conftest.er1 >conftest.err |
35307 | rm -f conftest.er1 | |
35308 | cat conftest.err >&5 | |
a848cd7e SC |
35309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35310 | (exit $ac_status); } && | |
3f60522a JS |
35311 | { ac_try='test -z "$ac_cxx_werror_flag" |
35312 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35314 | (eval $ac_try) 2>&5 | |
35315 | ac_status=$? | |
35316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35317 | (exit $ac_status); }; } && | |
35318 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35320 | (eval $ac_try) 2>&5 | |
35321 | ac_status=$? | |
35322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35323 | (exit $ac_status); }; }; then | |
35324 | eval "$as_ac_var=yes" | |
35325 | else | |
35326 | echo "$as_me: failed program was:" >&5 | |
35327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35328 | ||
35329 | eval "$as_ac_var=no" | |
35330 | fi | |
ac1cb8d3 VS |
35331 | rm -f conftest.err conftest.$ac_objext \ |
35332 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35333 | fi |
35334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35335 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35336 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35337 | cat >>confdefs.h <<_ACEOF | |
35338 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35339 | _ACEOF | |
35340 | ||
35341 | fi | |
35342 | done | |
35343 | ||
35344 | ||
35345 | if test "$ac_cv_func_sigaction" = "no"; then | |
35346 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
35347 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
35348 | wxUSE_ON_FATAL_EXCEPTION=no | |
35349 | fi | |
35350 | ||
35351 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a848cd7e SC |
35352 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
35353 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
35354 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
35355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35356 | else | |
35357 | ||
35358 | cat >conftest.$ac_ext <<_ACEOF | |
35359 | /* confdefs.h. */ | |
35360 | _ACEOF | |
35361 | cat confdefs.h >>conftest.$ac_ext | |
35362 | cat >>conftest.$ac_ext <<_ACEOF | |
35363 | /* end confdefs.h. */ | |
35364 | #include <signal.h> | |
35365 | int | |
35366 | main () | |
35367 | { | |
35368 | ||
35369 | extern void testSigHandler(int); | |
35370 | ||
35371 | struct sigaction sa; | |
35372 | sa.sa_handler = testSigHandler; | |
35373 | ||
35374 | ; | |
35375 | return 0; | |
35376 | } | |
35377 | _ACEOF | |
35378 | rm -f conftest.$ac_objext | |
35379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35380 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35381 | ac_status=$? |
ac1cb8d3 VS |
35382 | grep -v '^ *+' conftest.er1 >conftest.err |
35383 | rm -f conftest.er1 | |
35384 | cat conftest.err >&5 | |
a848cd7e SC |
35385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35386 | (exit $ac_status); } && | |
3f60522a JS |
35387 | { ac_try='test -z "$ac_cxx_werror_flag" |
35388 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35390 | (eval $ac_try) 2>&5 | |
35391 | ac_status=$? | |
35392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35393 | (exit $ac_status); }; } && | |
35394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35396 | (eval $ac_try) 2>&5 | |
35397 | ac_status=$? | |
35398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35399 | (exit $ac_status); }; }; then | |
35400 | ||
35401 | wx_cv_type_sa_handler=int | |
35402 | ||
35403 | else | |
35404 | echo "$as_me: failed program was:" >&5 | |
35405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35406 | ||
35407 | ||
35408 | wx_cv_type_sa_handler=void | |
35409 | ||
35410 | fi | |
ac1cb8d3 | 35411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35412 | |
35413 | fi | |
35414 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
35415 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
35416 | ||
a848cd7e SC |
35417 | cat >>confdefs.h <<_ACEOF |
35418 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
35419 | _ACEOF | |
35420 | ||
35421 | fi | |
35422 | fi | |
35423 | ||
eaff0f0d | 35424 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
eaff0f0d VZ |
35425 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 |
35426 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
35427 | if test "${wx_cv_func_backtrace+set}" = set; then | |
35428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35429 | else | |
35430 | ||
35431 | cat >conftest.$ac_ext <<_ACEOF | |
35432 | /* confdefs.h. */ | |
35433 | _ACEOF | |
35434 | cat confdefs.h >>conftest.$ac_ext | |
35435 | cat >>conftest.$ac_ext <<_ACEOF | |
35436 | /* end confdefs.h. */ | |
35437 | #include <execinfo.h> | |
35438 | int | |
35439 | main () | |
35440 | { | |
35441 | ||
35442 | void *trace[1]; | |
35443 | char **messages; | |
35444 | ||
35445 | backtrace(trace, 1); | |
35446 | messages = backtrace_symbols(trace, 1); | |
35447 | ||
35448 | ; | |
35449 | return 0; | |
35450 | } | |
35451 | _ACEOF | |
35452 | rm -f conftest.$ac_objext | |
35453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35454 | (eval $ac_compile) 2>conftest.er1 | |
35455 | ac_status=$? | |
35456 | grep -v '^ *+' conftest.er1 >conftest.err | |
35457 | rm -f conftest.er1 | |
35458 | cat conftest.err >&5 | |
35459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35460 | (exit $ac_status); } && | |
3f60522a JS |
35461 | { ac_try='test -z "$ac_cxx_werror_flag" |
35462 | || test ! -s conftest.err' | |
eaff0f0d VZ |
35463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35464 | (eval $ac_try) 2>&5 | |
35465 | ac_status=$? | |
35466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35467 | (exit $ac_status); }; } && | |
35468 | { ac_try='test -s conftest.$ac_objext' | |
35469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35470 | (eval $ac_try) 2>&5 | |
35471 | ac_status=$? | |
35472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35473 | (exit $ac_status); }; }; then | |
35474 | wx_cv_func_backtrace=yes | |
35475 | else | |
35476 | echo "$as_me: failed program was:" >&5 | |
35477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35478 | ||
35479 | wx_cv_func_backtrace=no | |
35480 | ||
35481 | fi | |
35482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35483 | ||
35484 | ||
35485 | fi | |
35486 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
35487 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
35488 | ||
35489 | ||
35490 | if test "$wx_cv_func_backtrace" = "no"; then | |
35491 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
35492 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
35493 | wxUSE_STACKWALKER=no | |
35494 | else | |
35495 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
35496 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
35497 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
35498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35499 | else | |
35500 | ||
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. */ | |
35507 | #include <cxxabi.h> | |
35508 | int | |
35509 | main () | |
35510 | { | |
35511 | ||
35512 | int rc; | |
35513 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
35514 | ||
35515 | ; | |
35516 | return 0; | |
35517 | } | |
35518 | _ACEOF | |
dfe0c803 JS |
35519 | rm -f conftest.$ac_objext conftest$ac_exeext |
35520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35521 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
35522 | ac_status=$? |
35523 | grep -v '^ *+' conftest.er1 >conftest.err | |
35524 | rm -f conftest.er1 | |
35525 | cat conftest.err >&5 | |
35526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35527 | (exit $ac_status); } && | |
3f60522a JS |
35528 | { ac_try='test -z "$ac_cxx_werror_flag" |
35529 | || test ! -s conftest.err' | |
eaff0f0d VZ |
35530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35531 | (eval $ac_try) 2>&5 | |
35532 | ac_status=$? | |
35533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35534 | (exit $ac_status); }; } && | |
dfe0c803 | 35535 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
35536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35537 | (eval $ac_try) 2>&5 | |
35538 | ac_status=$? | |
35539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35540 | (exit $ac_status); }; }; then | |
35541 | wx_cv_func_cxa_demangle=yes | |
35542 | else | |
35543 | echo "$as_me: failed program was:" >&5 | |
35544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35545 | ||
35546 | wx_cv_func_cxa_demangle=no | |
35547 | ||
35548 | fi | |
dfe0c803 JS |
35549 | rm -f conftest.err conftest.$ac_objext \ |
35550 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
35551 | |
35552 | ||
35553 | fi | |
35554 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
35555 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
35556 | ||
35557 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
35558 | cat >>confdefs.h <<\_ACEOF | |
35559 | #define HAVE_CXA_DEMANGLE 1 | |
35560 | _ACEOF | |
35561 | ||
35562 | fi | |
35563 | fi | |
eaff0f0d VZ |
35564 | fi |
35565 | ||
898beab1 DE |
35566 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
35567 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
35568 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
35569 | wxUSE_STACKWALKER=no | |
35570 | fi | |
35571 | ||
35572 | ||
a848cd7e SC |
35573 | |
35574 | ||
35575 | for ac_func in mkstemp mktemp | |
35576 | do | |
35577 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35578 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35579 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35580 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35582 | else | |
35583 | cat >conftest.$ac_ext <<_ACEOF | |
35584 | /* confdefs.h. */ | |
35585 | _ACEOF | |
35586 | cat confdefs.h >>conftest.$ac_ext | |
35587 | cat >>conftest.$ac_ext <<_ACEOF | |
35588 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35589 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35590 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35591 | #define $ac_func innocuous_$ac_func | |
35592 | ||
a848cd7e SC |
35593 | /* System header to define __stub macros and hopefully few prototypes, |
35594 | which can conflict with char $ac_func (); below. | |
35595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35596 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35597 | |
a848cd7e SC |
35598 | #ifdef __STDC__ |
35599 | # include <limits.h> | |
35600 | #else | |
35601 | # include <assert.h> | |
35602 | #endif | |
ac1cb8d3 VS |
35603 | |
35604 | #undef $ac_func | |
35605 | ||
a848cd7e SC |
35606 | /* Override any gcc2 internal prototype to avoid an error. */ |
35607 | #ifdef __cplusplus | |
35608 | extern "C" | |
35609 | { | |
35610 | #endif | |
35611 | /* We use char because int might match the return type of a gcc2 | |
35612 | builtin and then its argument prototype would still apply. */ | |
35613 | char $ac_func (); | |
35614 | /* The GNU C library defines this for functions which it implements | |
35615 | to always fail with ENOSYS. Some functions are actually named | |
35616 | something starting with __ and the normal name is an alias. */ | |
35617 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35618 | choke me | |
35619 | #else | |
35620 | char (*f) () = $ac_func; | |
35621 | #endif | |
35622 | #ifdef __cplusplus | |
35623 | } | |
35624 | #endif | |
35625 | ||
35626 | int | |
35627 | main () | |
35628 | { | |
35629 | return f != $ac_func; | |
35630 | ; | |
35631 | return 0; | |
35632 | } | |
35633 | _ACEOF | |
35634 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35636 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35637 | ac_status=$? |
ac1cb8d3 VS |
35638 | grep -v '^ *+' conftest.er1 >conftest.err |
35639 | rm -f conftest.er1 | |
35640 | cat conftest.err >&5 | |
a848cd7e SC |
35641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35642 | (exit $ac_status); } && | |
3f60522a JS |
35643 | { ac_try='test -z "$ac_cxx_werror_flag" |
35644 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35646 | (eval $ac_try) 2>&5 | |
35647 | ac_status=$? | |
35648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35649 | (exit $ac_status); }; } && | |
35650 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35652 | (eval $ac_try) 2>&5 | |
35653 | ac_status=$? | |
35654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35655 | (exit $ac_status); }; }; then | |
35656 | eval "$as_ac_var=yes" | |
35657 | else | |
35658 | echo "$as_me: failed program was:" >&5 | |
35659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35660 | ||
35661 | eval "$as_ac_var=no" | |
35662 | fi | |
ac1cb8d3 VS |
35663 | rm -f conftest.err conftest.$ac_objext \ |
35664 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35665 | fi |
35666 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35667 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35668 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35669 | cat >>confdefs.h <<_ACEOF | |
35670 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35671 | _ACEOF | |
35672 | break | |
35673 | fi | |
35674 | done | |
35675 | ||
35676 | ||
35677 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
35678 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
35679 | if test "${wx_cv_func_statfs+set}" = set; then | |
35680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35681 | else | |
35682 | cat >conftest.$ac_ext <<_ACEOF | |
35683 | /* confdefs.h. */ | |
35684 | _ACEOF | |
35685 | cat confdefs.h >>conftest.$ac_ext | |
35686 | cat >>conftest.$ac_ext <<_ACEOF | |
35687 | /* end confdefs.h. */ | |
35688 | ||
35689 | #if defined(__BSD__) | |
84ae7ca4 VZ |
35690 | #include <sys/param.h> |
35691 | #include <sys/mount.h> | |
a848cd7e | 35692 | #else |
84ae7ca4 | 35693 | #include <sys/vfs.h> |
a848cd7e SC |
35694 | #endif |
35695 | ||
35696 | int | |
35697 | main () | |
35698 | { | |
35699 | ||
35700 | long l; | |
35701 | struct statfs fs; | |
35702 | statfs("/", &fs); | |
35703 | l = fs.f_bsize; | |
35704 | l += fs.f_blocks; | |
35705 | l += fs.f_bavail; | |
35706 | ||
35707 | ; | |
35708 | return 0; | |
35709 | } | |
35710 | _ACEOF | |
35711 | rm -f conftest.$ac_objext | |
35712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35713 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35714 | ac_status=$? |
ac1cb8d3 VS |
35715 | grep -v '^ *+' conftest.er1 >conftest.err |
35716 | rm -f conftest.er1 | |
35717 | cat conftest.err >&5 | |
a848cd7e SC |
35718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35719 | (exit $ac_status); } && | |
3f60522a JS |
35720 | { ac_try='test -z "$ac_cxx_werror_flag" |
35721 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35723 | (eval $ac_try) 2>&5 | |
35724 | ac_status=$? | |
35725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35726 | (exit $ac_status); }; } && | |
35727 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35729 | (eval $ac_try) 2>&5 | |
35730 | ac_status=$? | |
35731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35732 | (exit $ac_status); }; }; then | |
84ae7ca4 | 35733 | wx_cv_func_statfs=yes |
a848cd7e SC |
35734 | else |
35735 | echo "$as_me: failed program was:" >&5 | |
35736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35737 | ||
84ae7ca4 | 35738 | wx_cv_func_statfs=no |
a848cd7e SC |
35739 | |
35740 | fi | |
ac1cb8d3 | 35741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35742 | |
35743 | fi | |
35744 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
35745 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
35746 | ||
35747 | if test "$wx_cv_func_statfs" = "yes"; then | |
5d7b7554 | 35748 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 |
84ae7ca4 VZ |
35749 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 |
35750 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
35751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35752 | else | |
0683aca6 VZ |
35753 | cat >conftest.$ac_ext <<_ACEOF |
35754 | /* confdefs.h. */ | |
35755 | _ACEOF | |
35756 | cat confdefs.h >>conftest.$ac_ext | |
35757 | cat >>conftest.$ac_ext <<_ACEOF | |
35758 | /* end confdefs.h. */ | |
84ae7ca4 | 35759 | |
0683aca6 VZ |
35760 | #if defined(__BSD__) |
35761 | #include <sys/param.h> | |
35762 | #include <sys/mount.h> | |
35763 | #else | |
35764 | #include <sys/vfs.h> | |
35765 | #endif | |
35766 | ||
35767 | int | |
35768 | main () | |
35769 | { | |
35770 | ||
35771 | struct statfs fs; | |
35772 | statfs("", &fs); | |
35773 | ||
35774 | ; | |
35775 | return 0; | |
35776 | } | |
35777 | _ACEOF | |
35778 | rm -f conftest.$ac_objext | |
35779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35780 | (eval $ac_compile) 2>conftest.er1 | |
35781 | ac_status=$? | |
35782 | grep -v '^ *+' conftest.er1 >conftest.err | |
35783 | rm -f conftest.er1 | |
35784 | cat conftest.err >&5 | |
35785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35786 | (exit $ac_status); } && | |
3f60522a JS |
35787 | { ac_try='test -z "$ac_cxx_werror_flag" |
35788 | || test ! -s conftest.err' | |
0683aca6 VZ |
35789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35790 | (eval $ac_try) 2>&5 | |
35791 | ac_status=$? | |
35792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35793 | (exit $ac_status); }; } && | |
35794 | { ac_try='test -s conftest.$ac_objext' | |
35795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35796 | (eval $ac_try) 2>&5 | |
35797 | ac_status=$? | |
35798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35799 | (exit $ac_status); }; }; then | |
35800 | wx_cv_func_statfs_decl=yes | |
35801 | else | |
35802 | echo "$as_me: failed program was:" >&5 | |
35803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35804 | ||
35805 | wx_cv_func_statfs_decl=no | |
35806 | ||
35807 | fi | |
35808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
35809 | |
35810 | fi | |
35811 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
35812 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
84ae7ca4 VZ |
35813 | |
35814 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
35815 | cat >>confdefs.h <<\_ACEOF | |
35816 | #define HAVE_STATFS_DECL 1 | |
35817 | _ACEOF | |
35818 | ||
35819 | fi | |
35820 | ||
a848cd7e SC |
35821 | wx_cv_type_statvfs_t="struct statfs" |
35822 | cat >>confdefs.h <<\_ACEOF | |
35823 | #define HAVE_STATFS 1 | |
35824 | _ACEOF | |
35825 | ||
35826 | else | |
35827 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
35828 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
35829 | if test "${wx_cv_func_statvfs+set}" = set; then | |
35830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35831 | else | |
35832 | cat >conftest.$ac_ext <<_ACEOF | |
35833 | /* confdefs.h. */ | |
35834 | _ACEOF | |
35835 | cat confdefs.h >>conftest.$ac_ext | |
35836 | cat >>conftest.$ac_ext <<_ACEOF | |
35837 | /* end confdefs.h. */ | |
35838 | ||
35839 | #include <stddef.h> | |
35840 | #include <sys/statvfs.h> | |
35841 | ||
35842 | int | |
35843 | main () | |
35844 | { | |
35845 | ||
35846 | statvfs("/", NULL); | |
35847 | ||
35848 | ; | |
35849 | return 0; | |
35850 | } | |
35851 | _ACEOF | |
35852 | rm -f conftest.$ac_objext | |
35853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35854 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35855 | ac_status=$? |
ac1cb8d3 VS |
35856 | grep -v '^ *+' conftest.er1 >conftest.err |
35857 | rm -f conftest.er1 | |
35858 | cat conftest.err >&5 | |
a848cd7e SC |
35859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35860 | (exit $ac_status); } && | |
3f60522a JS |
35861 | { ac_try='test -z "$ac_cxx_werror_flag" |
35862 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35864 | (eval $ac_try) 2>&5 | |
35865 | ac_status=$? | |
35866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35867 | (exit $ac_status); }; } && | |
35868 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35870 | (eval $ac_try) 2>&5 | |
35871 | ac_status=$? | |
35872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35873 | (exit $ac_status); }; }; then | |
35874 | wx_cv_func_statvfs=yes | |
35875 | else | |
35876 | echo "$as_me: failed program was:" >&5 | |
35877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35878 | ||
35879 | wx_cv_func_statvfs=no | |
35880 | ||
35881 | fi | |
ac1cb8d3 | 35882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35883 | |
35884 | fi | |
35885 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
35886 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
35887 | ||
35888 | if test "$wx_cv_func_statvfs" = "yes"; then | |
5d7b7554 | 35889 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
a848cd7e SC |
35890 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 |
35891 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
35892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35893 | else | |
35894 | cat >conftest.$ac_ext <<_ACEOF | |
35895 | /* confdefs.h. */ | |
35896 | _ACEOF | |
35897 | cat confdefs.h >>conftest.$ac_ext | |
35898 | cat >>conftest.$ac_ext <<_ACEOF | |
35899 | /* end confdefs.h. */ | |
35900 | ||
35901 | #include <sys/statvfs.h> | |
35902 | ||
35903 | int | |
35904 | main () | |
35905 | { | |
35906 | ||
35907 | long l; | |
35908 | statvfs_t fs; | |
35909 | statvfs("/", &fs); | |
35910 | l = fs.f_bsize; | |
35911 | l += fs.f_blocks; | |
35912 | l += fs.f_bavail; | |
35913 | ||
35914 | ; | |
35915 | return 0; | |
35916 | } | |
35917 | _ACEOF | |
35918 | rm -f conftest.$ac_objext | |
35919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35920 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35921 | ac_status=$? |
ac1cb8d3 VS |
35922 | grep -v '^ *+' conftest.er1 >conftest.err |
35923 | rm -f conftest.er1 | |
35924 | cat conftest.err >&5 | |
a848cd7e SC |
35925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35926 | (exit $ac_status); } && | |
3f60522a JS |
35927 | { ac_try='test -z "$ac_cxx_werror_flag" |
35928 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35930 | (eval $ac_try) 2>&5 | |
35931 | ac_status=$? | |
35932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35933 | (exit $ac_status); }; } && | |
35934 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35936 | (eval $ac_try) 2>&5 | |
35937 | ac_status=$? | |
35938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35939 | (exit $ac_status); }; }; then | |
35940 | wx_cv_type_statvfs_t=statvfs_t | |
35941 | else | |
35942 | echo "$as_me: failed program was:" >&5 | |
35943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35944 | ||
35945 | ||
35946 | cat >conftest.$ac_ext <<_ACEOF | |
35947 | /* confdefs.h. */ | |
35948 | _ACEOF | |
35949 | cat confdefs.h >>conftest.$ac_ext | |
35950 | cat >>conftest.$ac_ext <<_ACEOF | |
35951 | /* end confdefs.h. */ | |
35952 | ||
35953 | #include <sys/statvfs.h> | |
35954 | ||
35955 | int | |
35956 | main () | |
35957 | { | |
35958 | ||
35959 | long l; | |
35960 | struct statvfs fs; | |
35961 | statvfs("/", &fs); | |
35962 | l = fs.f_bsize; | |
35963 | l += fs.f_blocks; | |
35964 | l += fs.f_bavail; | |
35965 | ||
35966 | ; | |
35967 | return 0; | |
35968 | } | |
35969 | _ACEOF | |
35970 | rm -f conftest.$ac_objext | |
35971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35972 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35973 | ac_status=$? |
ac1cb8d3 VS |
35974 | grep -v '^ *+' conftest.er1 >conftest.err |
35975 | rm -f conftest.er1 | |
35976 | cat conftest.err >&5 | |
a848cd7e SC |
35977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35978 | (exit $ac_status); } && | |
3f60522a JS |
35979 | { ac_try='test -z "$ac_cxx_werror_flag" |
35980 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35982 | (eval $ac_try) 2>&5 | |
35983 | ac_status=$? | |
35984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35985 | (exit $ac_status); }; } && | |
35986 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35988 | (eval $ac_try) 2>&5 | |
35989 | ac_status=$? | |
35990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35991 | (exit $ac_status); }; }; then | |
35992 | wx_cv_type_statvfs_t="struct statvfs" | |
35993 | else | |
35994 | echo "$as_me: failed program was:" >&5 | |
35995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35996 | ||
35997 | wx_cv_type_statvfs_t="unknown" | |
35998 | ||
35999 | fi | |
ac1cb8d3 | 36000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36001 | |
36002 | ||
36003 | fi | |
ac1cb8d3 | 36004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36005 | |
36006 | fi | |
36007 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
36008 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
36009 | ||
a848cd7e SC |
36010 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
36011 | cat >>confdefs.h <<\_ACEOF | |
36012 | #define HAVE_STATVFS 1 | |
36013 | _ACEOF | |
36014 | ||
36015 | fi | |
36016 | else | |
36017 | wx_cv_type_statvfs_t="unknown" | |
36018 | fi | |
36019 | fi | |
36020 | ||
36021 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
36022 | cat >>confdefs.h <<_ACEOF | |
36023 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
36024 | _ACEOF | |
36025 | ||
36026 | else | |
36027 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
36028 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
36029 | fi | |
36030 | ||
36031 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
36032 | ||
36033 | ||
36034 | for ac_func in fcntl flock | |
36035 | do | |
36036 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36037 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36038 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36039 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36041 | else | |
36042 | cat >conftest.$ac_ext <<_ACEOF | |
36043 | /* confdefs.h. */ | |
36044 | _ACEOF | |
36045 | cat confdefs.h >>conftest.$ac_ext | |
36046 | cat >>conftest.$ac_ext <<_ACEOF | |
36047 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36048 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36049 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36050 | #define $ac_func innocuous_$ac_func | |
36051 | ||
a848cd7e SC |
36052 | /* System header to define __stub macros and hopefully few prototypes, |
36053 | which can conflict with char $ac_func (); below. | |
36054 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36055 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36056 | |
a848cd7e SC |
36057 | #ifdef __STDC__ |
36058 | # include <limits.h> | |
36059 | #else | |
36060 | # include <assert.h> | |
36061 | #endif | |
ac1cb8d3 VS |
36062 | |
36063 | #undef $ac_func | |
36064 | ||
a848cd7e SC |
36065 | /* Override any gcc2 internal prototype to avoid an error. */ |
36066 | #ifdef __cplusplus | |
36067 | extern "C" | |
36068 | { | |
36069 | #endif | |
36070 | /* We use char because int might match the return type of a gcc2 | |
36071 | builtin and then its argument prototype would still apply. */ | |
36072 | char $ac_func (); | |
36073 | /* The GNU C library defines this for functions which it implements | |
36074 | to always fail with ENOSYS. Some functions are actually named | |
36075 | something starting with __ and the normal name is an alias. */ | |
36076 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36077 | choke me | |
36078 | #else | |
36079 | char (*f) () = $ac_func; | |
36080 | #endif | |
36081 | #ifdef __cplusplus | |
36082 | } | |
36083 | #endif | |
36084 | ||
36085 | int | |
36086 | main () | |
36087 | { | |
36088 | return f != $ac_func; | |
36089 | ; | |
36090 | return 0; | |
36091 | } | |
36092 | _ACEOF | |
36093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36095 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36096 | ac_status=$? |
ac1cb8d3 VS |
36097 | grep -v '^ *+' conftest.er1 >conftest.err |
36098 | rm -f conftest.er1 | |
36099 | cat conftest.err >&5 | |
a848cd7e SC |
36100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36101 | (exit $ac_status); } && | |
3f60522a JS |
36102 | { ac_try='test -z "$ac_cxx_werror_flag" |
36103 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36105 | (eval $ac_try) 2>&5 | |
36106 | ac_status=$? | |
36107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36108 | (exit $ac_status); }; } && | |
36109 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36111 | (eval $ac_try) 2>&5 | |
36112 | ac_status=$? | |
36113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36114 | (exit $ac_status); }; }; then | |
36115 | eval "$as_ac_var=yes" | |
36116 | else | |
36117 | echo "$as_me: failed program was:" >&5 | |
36118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36119 | ||
36120 | eval "$as_ac_var=no" | |
36121 | fi | |
ac1cb8d3 VS |
36122 | rm -f conftest.err conftest.$ac_objext \ |
36123 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36124 | fi |
36125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36126 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36127 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36128 | cat >>confdefs.h <<_ACEOF | |
36129 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36130 | _ACEOF | |
36131 | break | |
36132 | fi | |
36133 | done | |
36134 | ||
36135 | ||
36136 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
36137 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
36138 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
36139 | wxUSE_SNGLINST_CHECKER=no | |
36140 | fi | |
36141 | fi | |
36142 | ||
36143 | ||
36144 | for ac_func in timegm | |
36145 | do | |
36146 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36147 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36148 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36149 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36151 | else | |
36152 | cat >conftest.$ac_ext <<_ACEOF | |
36153 | /* confdefs.h. */ | |
36154 | _ACEOF | |
36155 | cat confdefs.h >>conftest.$ac_ext | |
36156 | cat >>conftest.$ac_ext <<_ACEOF | |
36157 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36158 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36159 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36160 | #define $ac_func innocuous_$ac_func | |
36161 | ||
a848cd7e SC |
36162 | /* System header to define __stub macros and hopefully few prototypes, |
36163 | which can conflict with char $ac_func (); below. | |
36164 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36165 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36166 | |
a848cd7e SC |
36167 | #ifdef __STDC__ |
36168 | # include <limits.h> | |
36169 | #else | |
36170 | # include <assert.h> | |
36171 | #endif | |
ac1cb8d3 VS |
36172 | |
36173 | #undef $ac_func | |
36174 | ||
a848cd7e SC |
36175 | /* Override any gcc2 internal prototype to avoid an error. */ |
36176 | #ifdef __cplusplus | |
36177 | extern "C" | |
36178 | { | |
36179 | #endif | |
36180 | /* We use char because int might match the return type of a gcc2 | |
36181 | builtin and then its argument prototype would still apply. */ | |
36182 | char $ac_func (); | |
36183 | /* The GNU C library defines this for functions which it implements | |
36184 | to always fail with ENOSYS. Some functions are actually named | |
36185 | something starting with __ and the normal name is an alias. */ | |
36186 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36187 | choke me | |
36188 | #else | |
36189 | char (*f) () = $ac_func; | |
36190 | #endif | |
36191 | #ifdef __cplusplus | |
36192 | } | |
36193 | #endif | |
36194 | ||
36195 | int | |
36196 | main () | |
36197 | { | |
36198 | return f != $ac_func; | |
36199 | ; | |
36200 | return 0; | |
36201 | } | |
36202 | _ACEOF | |
36203 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36205 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36206 | ac_status=$? |
ac1cb8d3 VS |
36207 | grep -v '^ *+' conftest.er1 >conftest.err |
36208 | rm -f conftest.er1 | |
36209 | cat conftest.err >&5 | |
a848cd7e SC |
36210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36211 | (exit $ac_status); } && | |
3f60522a JS |
36212 | { ac_try='test -z "$ac_cxx_werror_flag" |
36213 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36215 | (eval $ac_try) 2>&5 | |
36216 | ac_status=$? | |
36217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36218 | (exit $ac_status); }; } && | |
36219 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36221 | (eval $ac_try) 2>&5 | |
36222 | ac_status=$? | |
36223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36224 | (exit $ac_status); }; }; then | |
36225 | eval "$as_ac_var=yes" | |
36226 | else | |
36227 | echo "$as_me: failed program was:" >&5 | |
36228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36229 | ||
36230 | eval "$as_ac_var=no" | |
36231 | fi | |
ac1cb8d3 VS |
36232 | rm -f conftest.err conftest.$ac_objext \ |
36233 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36234 | fi |
36235 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36236 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36237 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36238 | cat >>confdefs.h <<_ACEOF | |
36239 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36240 | _ACEOF | |
36241 | ||
36242 | fi | |
36243 | done | |
36244 | ||
36245 | ||
36246 | ||
36247 | ||
36248 | for ac_func in putenv setenv | |
36249 | do | |
36250 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36251 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36252 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36253 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36255 | else | |
36256 | cat >conftest.$ac_ext <<_ACEOF | |
36257 | /* confdefs.h. */ | |
36258 | _ACEOF | |
36259 | cat confdefs.h >>conftest.$ac_ext | |
36260 | cat >>conftest.$ac_ext <<_ACEOF | |
36261 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36262 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36264 | #define $ac_func innocuous_$ac_func | |
36265 | ||
a848cd7e SC |
36266 | /* System header to define __stub macros and hopefully few prototypes, |
36267 | which can conflict with char $ac_func (); below. | |
36268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36269 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36270 | |
a848cd7e SC |
36271 | #ifdef __STDC__ |
36272 | # include <limits.h> | |
36273 | #else | |
36274 | # include <assert.h> | |
36275 | #endif | |
ac1cb8d3 VS |
36276 | |
36277 | #undef $ac_func | |
36278 | ||
a848cd7e SC |
36279 | /* Override any gcc2 internal prototype to avoid an error. */ |
36280 | #ifdef __cplusplus | |
36281 | extern "C" | |
36282 | { | |
36283 | #endif | |
36284 | /* We use char because int might match the return type of a gcc2 | |
36285 | builtin and then its argument prototype would still apply. */ | |
36286 | char $ac_func (); | |
36287 | /* The GNU C library defines this for functions which it implements | |
36288 | to always fail with ENOSYS. Some functions are actually named | |
36289 | something starting with __ and the normal name is an alias. */ | |
36290 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36291 | choke me | |
36292 | #else | |
36293 | char (*f) () = $ac_func; | |
36294 | #endif | |
36295 | #ifdef __cplusplus | |
36296 | } | |
36297 | #endif | |
36298 | ||
36299 | int | |
36300 | main () | |
36301 | { | |
36302 | return f != $ac_func; | |
36303 | ; | |
36304 | return 0; | |
36305 | } | |
36306 | _ACEOF | |
36307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36309 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36310 | ac_status=$? |
ac1cb8d3 VS |
36311 | grep -v '^ *+' conftest.er1 >conftest.err |
36312 | rm -f conftest.er1 | |
36313 | cat conftest.err >&5 | |
a848cd7e SC |
36314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36315 | (exit $ac_status); } && | |
3f60522a JS |
36316 | { ac_try='test -z "$ac_cxx_werror_flag" |
36317 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36319 | (eval $ac_try) 2>&5 | |
36320 | ac_status=$? | |
36321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36322 | (exit $ac_status); }; } && | |
36323 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36325 | (eval $ac_try) 2>&5 | |
36326 | ac_status=$? | |
36327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36328 | (exit $ac_status); }; }; then | |
36329 | eval "$as_ac_var=yes" | |
36330 | else | |
36331 | echo "$as_me: failed program was:" >&5 | |
36332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36333 | ||
36334 | eval "$as_ac_var=no" | |
36335 | fi | |
ac1cb8d3 VS |
36336 | rm -f conftest.err conftest.$ac_objext \ |
36337 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36338 | fi |
36339 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36340 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36341 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36342 | cat >>confdefs.h <<_ACEOF | |
36343 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36344 | _ACEOF | |
36345 | break | |
36346 | fi | |
36347 | done | |
36348 | ||
36349 | ||
36350 | HAVE_SOME_SLEEP_FUNC=0 | |
36351 | if test "$USE_BEOS" = 1; then | |
36352 | cat >>confdefs.h <<\_ACEOF | |
36353 | #define HAVE_SLEEP 1 | |
36354 | _ACEOF | |
36355 | ||
36356 | HAVE_SOME_SLEEP_FUNC=1 | |
36357 | fi | |
36358 | ||
36359 | if test "$USE_DARWIN" = 1; then | |
36360 | cat >>confdefs.h <<\_ACEOF | |
36361 | #define HAVE_USLEEP 1 | |
36362 | _ACEOF | |
36363 | ||
36364 | HAVE_SOME_SLEEP_FUNC=1 | |
36365 | fi | |
36366 | ||
36367 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
36368 | POSIX4_LINK= | |
36369 | ||
36370 | for ac_func in nanosleep | |
36371 | do | |
36372 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36373 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36374 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36375 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36377 | else | |
36378 | cat >conftest.$ac_ext <<_ACEOF | |
36379 | /* confdefs.h. */ | |
36380 | _ACEOF | |
36381 | cat confdefs.h >>conftest.$ac_ext | |
36382 | cat >>conftest.$ac_ext <<_ACEOF | |
36383 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36384 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36385 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36386 | #define $ac_func innocuous_$ac_func | |
36387 | ||
a848cd7e SC |
36388 | /* System header to define __stub macros and hopefully few prototypes, |
36389 | which can conflict with char $ac_func (); below. | |
36390 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36391 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36392 | |
a848cd7e SC |
36393 | #ifdef __STDC__ |
36394 | # include <limits.h> | |
36395 | #else | |
36396 | # include <assert.h> | |
36397 | #endif | |
ac1cb8d3 VS |
36398 | |
36399 | #undef $ac_func | |
36400 | ||
a848cd7e SC |
36401 | /* Override any gcc2 internal prototype to avoid an error. */ |
36402 | #ifdef __cplusplus | |
36403 | extern "C" | |
36404 | { | |
36405 | #endif | |
36406 | /* We use char because int might match the return type of a gcc2 | |
36407 | builtin and then its argument prototype would still apply. */ | |
36408 | char $ac_func (); | |
36409 | /* The GNU C library defines this for functions which it implements | |
36410 | to always fail with ENOSYS. Some functions are actually named | |
36411 | something starting with __ and the normal name is an alias. */ | |
36412 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36413 | choke me | |
36414 | #else | |
36415 | char (*f) () = $ac_func; | |
36416 | #endif | |
36417 | #ifdef __cplusplus | |
36418 | } | |
36419 | #endif | |
36420 | ||
36421 | int | |
36422 | main () | |
36423 | { | |
36424 | return f != $ac_func; | |
36425 | ; | |
36426 | return 0; | |
36427 | } | |
36428 | _ACEOF | |
36429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36431 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36432 | ac_status=$? |
ac1cb8d3 VS |
36433 | grep -v '^ *+' conftest.er1 >conftest.err |
36434 | rm -f conftest.er1 | |
36435 | cat conftest.err >&5 | |
a848cd7e SC |
36436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36437 | (exit $ac_status); } && | |
3f60522a JS |
36438 | { ac_try='test -z "$ac_cxx_werror_flag" |
36439 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36441 | (eval $ac_try) 2>&5 | |
36442 | ac_status=$? | |
36443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36444 | (exit $ac_status); }; } && | |
36445 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36447 | (eval $ac_try) 2>&5 | |
36448 | ac_status=$? | |
36449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36450 | (exit $ac_status); }; }; then | |
36451 | eval "$as_ac_var=yes" | |
36452 | else | |
36453 | echo "$as_me: failed program was:" >&5 | |
36454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36455 | ||
36456 | eval "$as_ac_var=no" | |
36457 | fi | |
ac1cb8d3 VS |
36458 | rm -f conftest.err conftest.$ac_objext \ |
36459 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36460 | fi |
36461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36462 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36463 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36464 | cat >>confdefs.h <<_ACEOF | |
36465 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36466 | _ACEOF | |
36467 | cat >>confdefs.h <<\_ACEOF | |
36468 | #define HAVE_NANOSLEEP 1 | |
36469 | _ACEOF | |
36470 | ||
36471 | else | |
36472 | ||
36473 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
36474 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
36475 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
36476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36477 | else | |
36478 | ac_check_lib_save_LIBS=$LIBS | |
36479 | LIBS="-lposix4 $LIBS" | |
36480 | cat >conftest.$ac_ext <<_ACEOF | |
36481 | /* confdefs.h. */ | |
36482 | _ACEOF | |
36483 | cat confdefs.h >>conftest.$ac_ext | |
36484 | cat >>conftest.$ac_ext <<_ACEOF | |
36485 | /* end confdefs.h. */ | |
36486 | ||
36487 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36488 | #ifdef __cplusplus | |
36489 | extern "C" | |
36490 | #endif | |
36491 | /* We use char because int might match the return type of a gcc2 | |
36492 | builtin and then its argument prototype would still apply. */ | |
36493 | char nanosleep (); | |
36494 | int | |
36495 | main () | |
36496 | { | |
36497 | nanosleep (); | |
36498 | ; | |
36499 | return 0; | |
36500 | } | |
36501 | _ACEOF | |
36502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36504 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36505 | ac_status=$? |
ac1cb8d3 VS |
36506 | grep -v '^ *+' conftest.er1 >conftest.err |
36507 | rm -f conftest.er1 | |
36508 | cat conftest.err >&5 | |
a848cd7e SC |
36509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36510 | (exit $ac_status); } && | |
3f60522a JS |
36511 | { ac_try='test -z "$ac_cxx_werror_flag" |
36512 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36514 | (eval $ac_try) 2>&5 | |
36515 | ac_status=$? | |
36516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36517 | (exit $ac_status); }; } && | |
36518 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36520 | (eval $ac_try) 2>&5 | |
36521 | ac_status=$? | |
36522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36523 | (exit $ac_status); }; }; then | |
36524 | ac_cv_lib_posix4_nanosleep=yes | |
36525 | else | |
36526 | echo "$as_me: failed program was:" >&5 | |
36527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36528 | ||
36529 | ac_cv_lib_posix4_nanosleep=no | |
36530 | fi | |
ac1cb8d3 VS |
36531 | rm -f conftest.err conftest.$ac_objext \ |
36532 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36533 | LIBS=$ac_check_lib_save_LIBS |
36534 | fi | |
36535 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
36536 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
36537 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
36538 | ||
36539 | cat >>confdefs.h <<\_ACEOF | |
36540 | #define HAVE_NANOSLEEP 1 | |
36541 | _ACEOF | |
36542 | ||
36543 | POSIX4_LINK=" -lposix4" | |
36544 | ||
36545 | else | |
36546 | ||
36547 | ||
36548 | for ac_func in usleep | |
36549 | do | |
36550 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36551 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36552 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36553 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36555 | else | |
36556 | cat >conftest.$ac_ext <<_ACEOF | |
36557 | /* confdefs.h. */ | |
36558 | _ACEOF | |
36559 | cat confdefs.h >>conftest.$ac_ext | |
36560 | cat >>conftest.$ac_ext <<_ACEOF | |
36561 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36562 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36563 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36564 | #define $ac_func innocuous_$ac_func | |
36565 | ||
a848cd7e SC |
36566 | /* System header to define __stub macros and hopefully few prototypes, |
36567 | which can conflict with char $ac_func (); below. | |
36568 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36569 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36570 | |
a848cd7e SC |
36571 | #ifdef __STDC__ |
36572 | # include <limits.h> | |
36573 | #else | |
36574 | # include <assert.h> | |
36575 | #endif | |
ac1cb8d3 VS |
36576 | |
36577 | #undef $ac_func | |
36578 | ||
a848cd7e SC |
36579 | /* Override any gcc2 internal prototype to avoid an error. */ |
36580 | #ifdef __cplusplus | |
36581 | extern "C" | |
36582 | { | |
36583 | #endif | |
36584 | /* We use char because int might match the return type of a gcc2 | |
36585 | builtin and then its argument prototype would still apply. */ | |
36586 | char $ac_func (); | |
36587 | /* The GNU C library defines this for functions which it implements | |
36588 | to always fail with ENOSYS. Some functions are actually named | |
36589 | something starting with __ and the normal name is an alias. */ | |
36590 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36591 | choke me | |
36592 | #else | |
36593 | char (*f) () = $ac_func; | |
36594 | #endif | |
36595 | #ifdef __cplusplus | |
36596 | } | |
36597 | #endif | |
36598 | ||
36599 | int | |
36600 | main () | |
36601 | { | |
36602 | return f != $ac_func; | |
36603 | ; | |
36604 | return 0; | |
36605 | } | |
36606 | _ACEOF | |
36607 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36609 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36610 | ac_status=$? |
ac1cb8d3 VS |
36611 | grep -v '^ *+' conftest.er1 >conftest.err |
36612 | rm -f conftest.er1 | |
36613 | cat conftest.err >&5 | |
a848cd7e SC |
36614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36615 | (exit $ac_status); } && | |
3f60522a JS |
36616 | { ac_try='test -z "$ac_cxx_werror_flag" |
36617 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36619 | (eval $ac_try) 2>&5 | |
36620 | ac_status=$? | |
36621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36622 | (exit $ac_status); }; } && | |
36623 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36625 | (eval $ac_try) 2>&5 | |
36626 | ac_status=$? | |
36627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36628 | (exit $ac_status); }; }; then | |
36629 | eval "$as_ac_var=yes" | |
36630 | else | |
36631 | echo "$as_me: failed program was:" >&5 | |
36632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36633 | ||
36634 | eval "$as_ac_var=no" | |
36635 | fi | |
ac1cb8d3 VS |
36636 | rm -f conftest.err conftest.$ac_objext \ |
36637 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36638 | fi |
36639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36640 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36641 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36642 | cat >>confdefs.h <<_ACEOF | |
36643 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36644 | _ACEOF | |
36645 | cat >>confdefs.h <<\_ACEOF | |
36646 | #define HAVE_USLEEP 1 | |
36647 | _ACEOF | |
36648 | ||
36649 | else | |
36650 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
36651 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
36652 | ||
36653 | fi | |
36654 | done | |
36655 | ||
36656 | ||
36657 | ||
36658 | fi | |
36659 | ||
36660 | ||
36661 | ||
36662 | fi | |
36663 | done | |
36664 | ||
36665 | fi | |
36666 | ||
36667 | ||
36668 | ||
36669 | for ac_func in uname gethostname | |
36670 | do | |
36671 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36672 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36673 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36674 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36676 | else | |
36677 | cat >conftest.$ac_ext <<_ACEOF | |
36678 | /* confdefs.h. */ | |
36679 | _ACEOF | |
36680 | cat confdefs.h >>conftest.$ac_ext | |
36681 | cat >>conftest.$ac_ext <<_ACEOF | |
36682 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36683 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36684 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36685 | #define $ac_func innocuous_$ac_func | |
36686 | ||
a848cd7e SC |
36687 | /* System header to define __stub macros and hopefully few prototypes, |
36688 | which can conflict with char $ac_func (); below. | |
36689 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36690 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36691 | |
a848cd7e SC |
36692 | #ifdef __STDC__ |
36693 | # include <limits.h> | |
36694 | #else | |
36695 | # include <assert.h> | |
36696 | #endif | |
ac1cb8d3 VS |
36697 | |
36698 | #undef $ac_func | |
36699 | ||
a848cd7e SC |
36700 | /* Override any gcc2 internal prototype to avoid an error. */ |
36701 | #ifdef __cplusplus | |
36702 | extern "C" | |
36703 | { | |
36704 | #endif | |
36705 | /* We use char because int might match the return type of a gcc2 | |
36706 | builtin and then its argument prototype would still apply. */ | |
36707 | char $ac_func (); | |
36708 | /* The GNU C library defines this for functions which it implements | |
36709 | to always fail with ENOSYS. Some functions are actually named | |
36710 | something starting with __ and the normal name is an alias. */ | |
36711 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36712 | choke me | |
36713 | #else | |
36714 | char (*f) () = $ac_func; | |
36715 | #endif | |
36716 | #ifdef __cplusplus | |
36717 | } | |
36718 | #endif | |
36719 | ||
36720 | int | |
36721 | main () | |
36722 | { | |
36723 | return f != $ac_func; | |
36724 | ; | |
36725 | return 0; | |
36726 | } | |
36727 | _ACEOF | |
36728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36730 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36731 | ac_status=$? |
ac1cb8d3 VS |
36732 | grep -v '^ *+' conftest.er1 >conftest.err |
36733 | rm -f conftest.er1 | |
36734 | cat conftest.err >&5 | |
a848cd7e SC |
36735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36736 | (exit $ac_status); } && | |
3f60522a JS |
36737 | { ac_try='test -z "$ac_cxx_werror_flag" |
36738 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36740 | (eval $ac_try) 2>&5 | |
36741 | ac_status=$? | |
36742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36743 | (exit $ac_status); }; } && | |
36744 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36746 | (eval $ac_try) 2>&5 | |
36747 | ac_status=$? | |
36748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36749 | (exit $ac_status); }; }; then | |
36750 | eval "$as_ac_var=yes" | |
36751 | else | |
36752 | echo "$as_me: failed program was:" >&5 | |
36753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36754 | ||
36755 | eval "$as_ac_var=no" | |
36756 | fi | |
ac1cb8d3 VS |
36757 | rm -f conftest.err conftest.$ac_objext \ |
36758 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36759 | fi |
36760 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36761 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36762 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36763 | cat >>confdefs.h <<_ACEOF | |
36764 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36765 | _ACEOF | |
36766 | break | |
36767 | fi | |
36768 | done | |
36769 | ||
36770 | ||
a848cd7e SC |
36771 | |
36772 | for ac_func in strtok_r | |
36773 | do | |
36774 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36775 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36776 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36777 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36779 | else | |
36780 | cat >conftest.$ac_ext <<_ACEOF | |
36781 | /* confdefs.h. */ | |
36782 | _ACEOF | |
36783 | cat confdefs.h >>conftest.$ac_ext | |
36784 | cat >>conftest.$ac_ext <<_ACEOF | |
36785 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36786 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36788 | #define $ac_func innocuous_$ac_func | |
36789 | ||
a848cd7e SC |
36790 | /* System header to define __stub macros and hopefully few prototypes, |
36791 | which can conflict with char $ac_func (); below. | |
36792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36793 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36794 | |
a848cd7e SC |
36795 | #ifdef __STDC__ |
36796 | # include <limits.h> | |
36797 | #else | |
36798 | # include <assert.h> | |
36799 | #endif | |
ac1cb8d3 VS |
36800 | |
36801 | #undef $ac_func | |
36802 | ||
a848cd7e SC |
36803 | /* Override any gcc2 internal prototype to avoid an error. */ |
36804 | #ifdef __cplusplus | |
36805 | extern "C" | |
36806 | { | |
36807 | #endif | |
36808 | /* We use char because int might match the return type of a gcc2 | |
36809 | builtin and then its argument prototype would still apply. */ | |
36810 | char $ac_func (); | |
36811 | /* The GNU C library defines this for functions which it implements | |
36812 | to always fail with ENOSYS. Some functions are actually named | |
36813 | something starting with __ and the normal name is an alias. */ | |
36814 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36815 | choke me | |
36816 | #else | |
36817 | char (*f) () = $ac_func; | |
36818 | #endif | |
36819 | #ifdef __cplusplus | |
36820 | } | |
36821 | #endif | |
36822 | ||
36823 | int | |
36824 | main () | |
36825 | { | |
36826 | return f != $ac_func; | |
36827 | ; | |
36828 | return 0; | |
36829 | } | |
36830 | _ACEOF | |
36831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36833 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36834 | ac_status=$? |
ac1cb8d3 VS |
36835 | grep -v '^ *+' conftest.er1 >conftest.err |
36836 | rm -f conftest.er1 | |
36837 | cat conftest.err >&5 | |
a848cd7e SC |
36838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36839 | (exit $ac_status); } && | |
3f60522a JS |
36840 | { ac_try='test -z "$ac_cxx_werror_flag" |
36841 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36843 | (eval $ac_try) 2>&5 | |
36844 | ac_status=$? | |
36845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36846 | (exit $ac_status); }; } && | |
36847 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36849 | (eval $ac_try) 2>&5 | |
36850 | ac_status=$? | |
36851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36852 | (exit $ac_status); }; }; then | |
36853 | eval "$as_ac_var=yes" | |
36854 | else | |
36855 | echo "$as_me: failed program was:" >&5 | |
36856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36857 | ||
36858 | eval "$as_ac_var=no" | |
36859 | fi | |
ac1cb8d3 VS |
36860 | rm -f conftest.err conftest.$ac_objext \ |
36861 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36862 | fi |
36863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36864 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36865 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36866 | cat >>confdefs.h <<_ACEOF | |
36867 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36868 | _ACEOF | |
36869 | ||
36870 | fi | |
36871 | done | |
36872 | ||
36873 | ||
a848cd7e SC |
36874 | INET_LINK= |
36875 | ||
36876 | for ac_func in inet_addr | |
36877 | do | |
36878 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36879 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36880 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36881 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36883 | else | |
36884 | cat >conftest.$ac_ext <<_ACEOF | |
36885 | /* confdefs.h. */ | |
36886 | _ACEOF | |
36887 | cat confdefs.h >>conftest.$ac_ext | |
36888 | cat >>conftest.$ac_ext <<_ACEOF | |
36889 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36890 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36891 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36892 | #define $ac_func innocuous_$ac_func | |
36893 | ||
a848cd7e SC |
36894 | /* System header to define __stub macros and hopefully few prototypes, |
36895 | which can conflict with char $ac_func (); below. | |
36896 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36897 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36898 | |
a848cd7e SC |
36899 | #ifdef __STDC__ |
36900 | # include <limits.h> | |
36901 | #else | |
36902 | # include <assert.h> | |
36903 | #endif | |
ac1cb8d3 VS |
36904 | |
36905 | #undef $ac_func | |
36906 | ||
a848cd7e SC |
36907 | /* Override any gcc2 internal prototype to avoid an error. */ |
36908 | #ifdef __cplusplus | |
36909 | extern "C" | |
36910 | { | |
36911 | #endif | |
36912 | /* We use char because int might match the return type of a gcc2 | |
36913 | builtin and then its argument prototype would still apply. */ | |
36914 | char $ac_func (); | |
36915 | /* The GNU C library defines this for functions which it implements | |
36916 | to always fail with ENOSYS. Some functions are actually named | |
36917 | something starting with __ and the normal name is an alias. */ | |
36918 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36919 | choke me | |
36920 | #else | |
36921 | char (*f) () = $ac_func; | |
36922 | #endif | |
36923 | #ifdef __cplusplus | |
36924 | } | |
36925 | #endif | |
36926 | ||
36927 | int | |
36928 | main () | |
36929 | { | |
36930 | return f != $ac_func; | |
36931 | ; | |
36932 | return 0; | |
36933 | } | |
36934 | _ACEOF | |
36935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36937 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36938 | ac_status=$? |
ac1cb8d3 VS |
36939 | grep -v '^ *+' conftest.er1 >conftest.err |
36940 | rm -f conftest.er1 | |
36941 | cat conftest.err >&5 | |
a848cd7e SC |
36942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36943 | (exit $ac_status); } && | |
3f60522a JS |
36944 | { ac_try='test -z "$ac_cxx_werror_flag" |
36945 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36947 | (eval $ac_try) 2>&5 | |
36948 | ac_status=$? | |
36949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36950 | (exit $ac_status); }; } && | |
36951 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36953 | (eval $ac_try) 2>&5 | |
36954 | ac_status=$? | |
36955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36956 | (exit $ac_status); }; }; then | |
36957 | eval "$as_ac_var=yes" | |
36958 | else | |
36959 | echo "$as_me: failed program was:" >&5 | |
36960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36961 | ||
36962 | eval "$as_ac_var=no" | |
36963 | fi | |
ac1cb8d3 VS |
36964 | rm -f conftest.err conftest.$ac_objext \ |
36965 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36966 | fi |
36967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36968 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36969 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36970 | cat >>confdefs.h <<_ACEOF | |
36971 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36972 | _ACEOF | |
36973 | cat >>confdefs.h <<\_ACEOF | |
36974 | #define HAVE_INET_ADDR 1 | |
36975 | _ACEOF | |
36976 | ||
36977 | else | |
36978 | ||
36979 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
36980 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
36981 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
36982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36983 | else | |
36984 | ac_check_lib_save_LIBS=$LIBS | |
36985 | LIBS="-lnsl $LIBS" | |
36986 | cat >conftest.$ac_ext <<_ACEOF | |
36987 | /* confdefs.h. */ | |
36988 | _ACEOF | |
36989 | cat confdefs.h >>conftest.$ac_ext | |
36990 | cat >>conftest.$ac_ext <<_ACEOF | |
36991 | /* end confdefs.h. */ | |
36992 | ||
36993 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36994 | #ifdef __cplusplus | |
36995 | extern "C" | |
36996 | #endif | |
36997 | /* We use char because int might match the return type of a gcc2 | |
36998 | builtin and then its argument prototype would still apply. */ | |
36999 | char inet_addr (); | |
37000 | int | |
37001 | main () | |
37002 | { | |
37003 | inet_addr (); | |
37004 | ; | |
37005 | return 0; | |
37006 | } | |
37007 | _ACEOF | |
37008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37010 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37011 | ac_status=$? |
ac1cb8d3 VS |
37012 | grep -v '^ *+' conftest.er1 >conftest.err |
37013 | rm -f conftest.er1 | |
37014 | cat conftest.err >&5 | |
a848cd7e SC |
37015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37016 | (exit $ac_status); } && | |
3f60522a JS |
37017 | { ac_try='test -z "$ac_cxx_werror_flag" |
37018 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37020 | (eval $ac_try) 2>&5 | |
37021 | ac_status=$? | |
37022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37023 | (exit $ac_status); }; } && | |
37024 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37026 | (eval $ac_try) 2>&5 | |
37027 | ac_status=$? | |
37028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37029 | (exit $ac_status); }; }; then | |
37030 | ac_cv_lib_nsl_inet_addr=yes | |
37031 | else | |
37032 | echo "$as_me: failed program was:" >&5 | |
37033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37034 | ||
37035 | ac_cv_lib_nsl_inet_addr=no | |
37036 | fi | |
ac1cb8d3 VS |
37037 | rm -f conftest.err conftest.$ac_objext \ |
37038 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37039 | LIBS=$ac_check_lib_save_LIBS |
37040 | fi | |
37041 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
37042 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
37043 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
37044 | INET_LINK="nsl" | |
37045 | else | |
37046 | ||
37047 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
37048 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
37049 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
37050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37051 | else | |
37052 | ac_check_lib_save_LIBS=$LIBS | |
37053 | LIBS="-lresolv $LIBS" | |
37054 | cat >conftest.$ac_ext <<_ACEOF | |
37055 | /* confdefs.h. */ | |
37056 | _ACEOF | |
37057 | cat confdefs.h >>conftest.$ac_ext | |
37058 | cat >>conftest.$ac_ext <<_ACEOF | |
37059 | /* end confdefs.h. */ | |
37060 | ||
37061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37062 | #ifdef __cplusplus | |
37063 | extern "C" | |
37064 | #endif | |
37065 | /* We use char because int might match the return type of a gcc2 | |
37066 | builtin and then its argument prototype would still apply. */ | |
37067 | char inet_addr (); | |
37068 | int | |
37069 | main () | |
37070 | { | |
37071 | inet_addr (); | |
37072 | ; | |
37073 | return 0; | |
37074 | } | |
37075 | _ACEOF | |
37076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37078 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37079 | ac_status=$? |
ac1cb8d3 VS |
37080 | grep -v '^ *+' conftest.er1 >conftest.err |
37081 | rm -f conftest.er1 | |
37082 | cat conftest.err >&5 | |
a848cd7e SC |
37083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37084 | (exit $ac_status); } && | |
3f60522a JS |
37085 | { ac_try='test -z "$ac_cxx_werror_flag" |
37086 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37088 | (eval $ac_try) 2>&5 | |
37089 | ac_status=$? | |
37090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37091 | (exit $ac_status); }; } && | |
37092 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37094 | (eval $ac_try) 2>&5 | |
37095 | ac_status=$? | |
37096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37097 | (exit $ac_status); }; }; then | |
37098 | ac_cv_lib_resolv_inet_addr=yes | |
37099 | else | |
37100 | echo "$as_me: failed program was:" >&5 | |
37101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37102 | ||
37103 | ac_cv_lib_resolv_inet_addr=no | |
37104 | fi | |
ac1cb8d3 VS |
37105 | rm -f conftest.err conftest.$ac_objext \ |
37106 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37107 | LIBS=$ac_check_lib_save_LIBS |
37108 | fi | |
37109 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
37110 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
37111 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
37112 | INET_LINK="resolv" | |
37113 | else | |
37114 | ||
37115 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
37116 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
37117 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
37118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37119 | else | |
37120 | ac_check_lib_save_LIBS=$LIBS | |
37121 | LIBS="-lsocket $LIBS" | |
37122 | cat >conftest.$ac_ext <<_ACEOF | |
37123 | /* confdefs.h. */ | |
37124 | _ACEOF | |
37125 | cat confdefs.h >>conftest.$ac_ext | |
37126 | cat >>conftest.$ac_ext <<_ACEOF | |
37127 | /* end confdefs.h. */ | |
37128 | ||
37129 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37130 | #ifdef __cplusplus | |
37131 | extern "C" | |
37132 | #endif | |
37133 | /* We use char because int might match the return type of a gcc2 | |
37134 | builtin and then its argument prototype would still apply. */ | |
37135 | char inet_addr (); | |
37136 | int | |
37137 | main () | |
37138 | { | |
37139 | inet_addr (); | |
37140 | ; | |
37141 | return 0; | |
37142 | } | |
37143 | _ACEOF | |
37144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37146 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37147 | ac_status=$? |
ac1cb8d3 VS |
37148 | grep -v '^ *+' conftest.er1 >conftest.err |
37149 | rm -f conftest.er1 | |
37150 | cat conftest.err >&5 | |
a848cd7e SC |
37151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37152 | (exit $ac_status); } && | |
3f60522a JS |
37153 | { ac_try='test -z "$ac_cxx_werror_flag" |
37154 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37156 | (eval $ac_try) 2>&5 | |
37157 | ac_status=$? | |
37158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37159 | (exit $ac_status); }; } && | |
37160 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37162 | (eval $ac_try) 2>&5 | |
37163 | ac_status=$? | |
37164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37165 | (exit $ac_status); }; }; then | |
37166 | ac_cv_lib_socket_inet_addr=yes | |
37167 | else | |
37168 | echo "$as_me: failed program was:" >&5 | |
37169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37170 | ||
37171 | ac_cv_lib_socket_inet_addr=no | |
37172 | fi | |
ac1cb8d3 VS |
37173 | rm -f conftest.err conftest.$ac_objext \ |
37174 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37175 | LIBS=$ac_check_lib_save_LIBS |
37176 | fi | |
37177 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
37178 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
37179 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
37180 | INET_LINK="socket" | |
37181 | ||
37182 | fi | |
37183 | ||
37184 | ||
37185 | ||
37186 | fi | |
37187 | ||
37188 | ||
37189 | ||
37190 | fi | |
37191 | ||
37192 | ||
37193 | ||
37194 | fi | |
37195 | done | |
37196 | ||
37197 | ||
37198 | ||
37199 | for ac_func in inet_aton | |
37200 | do | |
37201 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37202 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37203 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37204 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37206 | else | |
37207 | cat >conftest.$ac_ext <<_ACEOF | |
37208 | /* confdefs.h. */ | |
37209 | _ACEOF | |
37210 | cat confdefs.h >>conftest.$ac_ext | |
37211 | cat >>conftest.$ac_ext <<_ACEOF | |
37212 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37213 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37214 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37215 | #define $ac_func innocuous_$ac_func | |
37216 | ||
a848cd7e SC |
37217 | /* System header to define __stub macros and hopefully few prototypes, |
37218 | which can conflict with char $ac_func (); below. | |
37219 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37220 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37221 | |
a848cd7e SC |
37222 | #ifdef __STDC__ |
37223 | # include <limits.h> | |
37224 | #else | |
37225 | # include <assert.h> | |
37226 | #endif | |
ac1cb8d3 VS |
37227 | |
37228 | #undef $ac_func | |
37229 | ||
a848cd7e SC |
37230 | /* Override any gcc2 internal prototype to avoid an error. */ |
37231 | #ifdef __cplusplus | |
37232 | extern "C" | |
37233 | { | |
37234 | #endif | |
37235 | /* We use char because int might match the return type of a gcc2 | |
37236 | builtin and then its argument prototype would still apply. */ | |
37237 | char $ac_func (); | |
37238 | /* The GNU C library defines this for functions which it implements | |
37239 | to always fail with ENOSYS. Some functions are actually named | |
37240 | something starting with __ and the normal name is an alias. */ | |
37241 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37242 | choke me | |
37243 | #else | |
37244 | char (*f) () = $ac_func; | |
37245 | #endif | |
37246 | #ifdef __cplusplus | |
37247 | } | |
37248 | #endif | |
37249 | ||
37250 | int | |
37251 | main () | |
37252 | { | |
37253 | return f != $ac_func; | |
37254 | ; | |
37255 | return 0; | |
37256 | } | |
37257 | _ACEOF | |
37258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37260 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37261 | ac_status=$? |
ac1cb8d3 VS |
37262 | grep -v '^ *+' conftest.er1 >conftest.err |
37263 | rm -f conftest.er1 | |
37264 | cat conftest.err >&5 | |
a848cd7e SC |
37265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37266 | (exit $ac_status); } && | |
3f60522a JS |
37267 | { ac_try='test -z "$ac_cxx_werror_flag" |
37268 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37270 | (eval $ac_try) 2>&5 | |
37271 | ac_status=$? | |
37272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37273 | (exit $ac_status); }; } && | |
37274 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37276 | (eval $ac_try) 2>&5 | |
37277 | ac_status=$? | |
37278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37279 | (exit $ac_status); }; }; then | |
37280 | eval "$as_ac_var=yes" | |
37281 | else | |
37282 | echo "$as_me: failed program was:" >&5 | |
37283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37284 | ||
37285 | eval "$as_ac_var=no" | |
37286 | fi | |
ac1cb8d3 VS |
37287 | rm -f conftest.err conftest.$ac_objext \ |
37288 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37289 | fi |
37290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37291 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37292 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37293 | cat >>confdefs.h <<_ACEOF | |
37294 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37295 | _ACEOF | |
37296 | cat >>confdefs.h <<\_ACEOF | |
37297 | #define HAVE_INET_ATON 1 | |
37298 | _ACEOF | |
37299 | ||
37300 | else | |
37301 | ||
37302 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
37303 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
37304 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
37305 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
37306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37307 | else | |
37308 | ac_check_lib_save_LIBS=$LIBS | |
37309 | LIBS="-l$INET_LINK $LIBS" | |
37310 | cat >conftest.$ac_ext <<_ACEOF | |
37311 | /* confdefs.h. */ | |
37312 | _ACEOF | |
37313 | cat confdefs.h >>conftest.$ac_ext | |
37314 | cat >>conftest.$ac_ext <<_ACEOF | |
37315 | /* end confdefs.h. */ | |
37316 | ||
37317 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37318 | #ifdef __cplusplus | |
37319 | extern "C" | |
37320 | #endif | |
37321 | /* We use char because int might match the return type of a gcc2 | |
37322 | builtin and then its argument prototype would still apply. */ | |
37323 | char inet_aton (); | |
37324 | int | |
37325 | main () | |
37326 | { | |
37327 | inet_aton (); | |
37328 | ; | |
37329 | return 0; | |
37330 | } | |
37331 | _ACEOF | |
37332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37334 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37335 | ac_status=$? |
ac1cb8d3 VS |
37336 | grep -v '^ *+' conftest.er1 >conftest.err |
37337 | rm -f conftest.er1 | |
37338 | cat conftest.err >&5 | |
a848cd7e SC |
37339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37340 | (exit $ac_status); } && | |
3f60522a JS |
37341 | { ac_try='test -z "$ac_cxx_werror_flag" |
37342 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37344 | (eval $ac_try) 2>&5 | |
37345 | ac_status=$? | |
37346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37347 | (exit $ac_status); }; } && | |
37348 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37350 | (eval $ac_try) 2>&5 | |
37351 | ac_status=$? | |
37352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37353 | (exit $ac_status); }; }; then | |
37354 | eval "$as_ac_Lib=yes" | |
37355 | else | |
37356 | echo "$as_me: failed program was:" >&5 | |
37357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37358 | ||
37359 | eval "$as_ac_Lib=no" | |
37360 | fi | |
ac1cb8d3 VS |
37361 | rm -f conftest.err conftest.$ac_objext \ |
37362 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37363 | LIBS=$ac_check_lib_save_LIBS |
37364 | fi | |
37365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
37366 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
37367 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
37368 | cat >>confdefs.h <<\_ACEOF | |
37369 | #define HAVE_INET_ATON 1 | |
37370 | _ACEOF | |
37371 | ||
37372 | fi | |
37373 | ||
37374 | ||
37375 | fi | |
37376 | done | |
37377 | ||
37378 | ||
37379 | if test "x$INET_LINK" != "x"; then | |
37380 | cat >>confdefs.h <<\_ACEOF | |
37381 | #define HAVE_INET_ADDR 1 | |
37382 | _ACEOF | |
37383 | ||
37384 | INET_LINK=" -l$INET_LINK" | |
37385 | fi | |
37386 | ||
37387 | fi | |
37388 | ||
37389 | ||
37390 | ||
37391 | EXTRALIBS_ESD= | |
37392 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
37393 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
37394 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
37395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37396 | else | |
37397 | ac_check_lib_save_LIBS=$LIBS | |
37398 | LIBS="-lesd $LIBS" | |
37399 | cat >conftest.$ac_ext <<_ACEOF | |
37400 | /* confdefs.h. */ | |
37401 | _ACEOF | |
37402 | cat confdefs.h >>conftest.$ac_ext | |
37403 | cat >>conftest.$ac_ext <<_ACEOF | |
37404 | /* end confdefs.h. */ | |
37405 | ||
37406 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37407 | #ifdef __cplusplus | |
37408 | extern "C" | |
37409 | #endif | |
37410 | /* We use char because int might match the return type of a gcc2 | |
37411 | builtin and then its argument prototype would still apply. */ | |
37412 | char esd_close (); | |
37413 | int | |
37414 | main () | |
37415 | { | |
37416 | esd_close (); | |
37417 | ; | |
37418 | return 0; | |
37419 | } | |
37420 | _ACEOF | |
37421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37423 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37424 | ac_status=$? |
ac1cb8d3 VS |
37425 | grep -v '^ *+' conftest.er1 >conftest.err |
37426 | rm -f conftest.er1 | |
37427 | cat conftest.err >&5 | |
a848cd7e SC |
37428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37429 | (exit $ac_status); } && | |
3f60522a JS |
37430 | { ac_try='test -z "$ac_cxx_werror_flag" |
37431 | || 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 | ac_cv_lib_esd_esd_close=yes | |
37444 | else | |
37445 | echo "$as_me: failed program was:" >&5 | |
37446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37447 | ||
37448 | ac_cv_lib_esd_esd_close=no | |
37449 | fi | |
ac1cb8d3 VS |
37450 | rm -f conftest.err conftest.$ac_objext \ |
37451 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37452 | LIBS=$ac_check_lib_save_LIBS |
37453 | fi | |
37454 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
37455 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
37456 | if test $ac_cv_lib_esd_esd_close = yes; then | |
37457 | ||
37458 | ||
37459 | for ac_header in esd.h | |
37460 | do | |
37461 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37467 | fi | |
37468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37469 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37470 | else | |
37471 | # Is the header compilable? | |
37472 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37473 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37474 | cat >conftest.$ac_ext <<_ACEOF | |
37475 | /* confdefs.h. */ | |
37476 | _ACEOF | |
37477 | cat confdefs.h >>conftest.$ac_ext | |
37478 | cat >>conftest.$ac_ext <<_ACEOF | |
37479 | /* end confdefs.h. */ | |
37480 | $ac_includes_default | |
37481 | #include <$ac_header> | |
37482 | _ACEOF | |
37483 | rm -f conftest.$ac_objext | |
37484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37485 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37486 | ac_status=$? |
ac1cb8d3 VS |
37487 | grep -v '^ *+' conftest.er1 >conftest.err |
37488 | rm -f conftest.er1 | |
37489 | cat conftest.err >&5 | |
a848cd7e SC |
37490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37491 | (exit $ac_status); } && | |
3f60522a JS |
37492 | { ac_try='test -z "$ac_cxx_werror_flag" |
37493 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37495 | (eval $ac_try) 2>&5 | |
37496 | ac_status=$? | |
37497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37498 | (exit $ac_status); }; } && | |
37499 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37501 | (eval $ac_try) 2>&5 | |
37502 | ac_status=$? | |
37503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37504 | (exit $ac_status); }; }; then | |
37505 | ac_header_compiler=yes | |
37506 | else | |
37507 | echo "$as_me: failed program was:" >&5 | |
37508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37509 | ||
37510 | ac_header_compiler=no | |
37511 | fi | |
ac1cb8d3 | 37512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37513 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37514 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37515 | ||
37516 | # Is the header present? | |
37517 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37518 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37519 | cat >conftest.$ac_ext <<_ACEOF | |
37520 | /* confdefs.h. */ | |
37521 | _ACEOF | |
37522 | cat confdefs.h >>conftest.$ac_ext | |
37523 | cat >>conftest.$ac_ext <<_ACEOF | |
37524 | /* end confdefs.h. */ | |
37525 | #include <$ac_header> | |
37526 | _ACEOF | |
37527 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37528 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37529 | ac_status=$? | |
37530 | grep -v '^ *+' conftest.er1 >conftest.err | |
37531 | rm -f conftest.er1 | |
37532 | cat conftest.err >&5 | |
37533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37534 | (exit $ac_status); } >/dev/null; then | |
37535 | if test -s conftest.err; then | |
5d7b7554 VZ |
37536 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
37537 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
37538 | else |
37539 | ac_cpp_err= | |
37540 | fi | |
37541 | else | |
37542 | ac_cpp_err=yes | |
37543 | fi | |
37544 | if test -z "$ac_cpp_err"; then | |
37545 | ac_header_preproc=yes | |
37546 | else | |
37547 | echo "$as_me: failed program was:" >&5 | |
37548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37549 | ||
37550 | ac_header_preproc=no | |
37551 | fi | |
37552 | rm -f conftest.err conftest.$ac_ext | |
37553 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37554 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37555 | ||
37556 | # So? What about this header? | |
5d7b7554 | 37557 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 37558 | yes:no: ) |
a848cd7e SC |
37559 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37560 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37561 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37562 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37563 | ac_header_preproc=yes | |
a848cd7e | 37564 | ;; |
ac1cb8d3 | 37565 | no:yes:* ) |
a848cd7e SC |
37566 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37567 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37568 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37569 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37570 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37571 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37572 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37573 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37575 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37576 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37577 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37578 | ( |
37579 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37580 | ## ----------------------------------------- ## |
37581 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37582 | ## ----------------------------------------- ## | |
a848cd7e SC |
37583 | _ASBOX |
37584 | ) | | |
37585 | sed "s/^/$as_me: WARNING: /" >&2 | |
37586 | ;; | |
37587 | esac | |
37588 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37589 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37590 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37592 | else | |
ac1cb8d3 | 37593 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37594 | fi |
37595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37596 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37597 | ||
37598 | fi | |
37599 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37600 | cat >>confdefs.h <<_ACEOF | |
37601 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37602 | _ACEOF | |
37603 | ||
37604 | EXTRALIBS_ESD="-lesd" | |
37605 | ||
37606 | fi | |
37607 | ||
37608 | done | |
37609 | ||
37610 | ||
37611 | fi | |
37612 | ||
37613 | ||
37614 | ||
37615 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
37616 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
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 | #ifdef __linux__ | |
37624 | #include <linux/cdrom.h> | |
37625 | #else | |
37626 | /* For Solaris */ | |
37627 | #include <sys/cdio.h> | |
37628 | #endif | |
37629 | ||
37630 | int | |
37631 | main () | |
37632 | { | |
37633 | struct cdrom_tocentry entry, old_entry; | |
37634 | ; | |
37635 | return 0; | |
37636 | } | |
37637 | _ACEOF | |
37638 | rm -f conftest.$ac_objext | |
37639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37640 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37641 | ac_status=$? |
ac1cb8d3 VS |
37642 | grep -v '^ *+' conftest.er1 >conftest.err |
37643 | rm -f conftest.er1 | |
37644 | cat conftest.err >&5 | |
a848cd7e SC |
37645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37646 | (exit $ac_status); } && | |
3f60522a JS |
37647 | { ac_try='test -z "$ac_cxx_werror_flag" |
37648 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37650 | (eval $ac_try) 2>&5 | |
37651 | ac_status=$? | |
37652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37653 | (exit $ac_status); }; } && | |
37654 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37656 | (eval $ac_try) 2>&5 | |
37657 | ac_status=$? | |
37658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37659 | (exit $ac_status); }; }; then | |
37660 | echo "$as_me:$LINENO: result: yes" >&5 | |
37661 | echo "${ECHO_T}yes" >&6 | |
37662 | cat >>confdefs.h <<\_ACEOF | |
37663 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
37664 | _ACEOF | |
37665 | ||
37666 | else | |
37667 | echo "$as_me: failed program was:" >&5 | |
37668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37669 | ||
37670 | echo "$as_me:$LINENO: result: no" >&5 | |
37671 | echo "${ECHO_T}no" >&6 | |
37672 | fi | |
ac1cb8d3 | 37673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37674 | |
37675 | ||
37676 | cat >confcache <<\_ACEOF | |
37677 | # This file is a shell script that caches the results of configure | |
37678 | # tests run on this system so they can be shared between configure | |
37679 | # scripts and configure runs, see configure's option --config-cache. | |
37680 | # It is not useful on other systems. If it contains results you don't | |
37681 | # want to keep, you may remove or edit it. | |
37682 | # | |
37683 | # config.status only pays attention to the cache file if you give it | |
37684 | # the --recheck option to rerun configure. | |
37685 | # | |
37686 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
37687 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
37688 | # following values. | |
37689 | ||
37690 | _ACEOF | |
37691 | ||
37692 | # The following way of writing the cache mishandles newlines in values, | |
37693 | # but we know of no workaround that is simple, portable, and efficient. | |
37694 | # So, don't put newlines in cache variables' values. | |
37695 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
37696 | # and sets the high bit in the cache file unless we assign to the vars. | |
37697 | { | |
37698 | (set) 2>&1 | | |
37699 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
37700 | *ac_space=\ *) | |
37701 | # `set' does not quote correctly, so add quotes (double-quote | |
37702 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
37703 | sed -n \ | |
ac1cb8d3 VS |
37704 | "s/'/'\\\\''/g; |
37705 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
37706 | ;; |
37707 | *) | |
37708 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
37709 | sed -n \ | |
ac1cb8d3 | 37710 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
37711 | ;; |
37712 | esac; | |
37713 | } | | |
37714 | sed ' | |
37715 | t clear | |
37716 | : clear | |
37717 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
37718 | t end | |
37719 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
37720 | : end' >>confcache | |
37721 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
37722 | if test -w $cache_file; then | |
37723 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
37724 | cat confcache >$cache_file | |
37725 | else | |
37726 | echo "not updating unwritable cache $cache_file" | |
37727 | fi | |
37728 | fi | |
37729 | rm -f confcache | |
37730 | ||
37731 | ||
a848cd7e SC |
37732 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
37733 | ||
37734 | ||
37735 | THREADS_LINK= | |
e56f4f9e | 37736 | THREADS_CXXFLAGS= |
a848cd7e SC |
37737 | |
37738 | if test "$wxUSE_THREADS" = "yes" ; then | |
37739 | if test "$USE_BEOS" = 1; then | |
37740 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
37741 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
37742 | wxUSE_THREADS="no" | |
37743 | fi | |
37744 | fi | |
37745 | ||
37746 | if test "$wxUSE_THREADS" = "yes" ; then | |
37747 | ||
37748 | ||
37749 | THREAD_OPTS="-pthread" | |
37750 | case "${host}" in | |
37751 | *-*-solaris2* | *-*-sunos4* ) | |
37752 | if test "x$GCC" = "xyes"; then | |
37753 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
37754 | else | |
37755 | THREAD_OPTS="-mt $THREAD_OPTS" | |
37756 | fi | |
37757 | ;; | |
37758 | *-*-freebsd*) | |
37759 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
37760 | ;; | |
37761 | *-*-darwin* | *-*-cygwin* ) | |
37762 | THREAD_OPTS="" | |
37763 | ;; | |
37764 | *-*-aix*) | |
37765 | THREAD_OPTS="pthreads" | |
37766 | ;; | |
37767 | *-hp-hpux* ) | |
00421666 MW |
37768 | if test "x$GCC" = "xyes"; then |
37769 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
37770 | THREAD_OPTS="" | |
37771 | else | |
0093c2fc | 37772 | THREAD_OPTS="-mt" |
a848cd7e SC |
37773 | fi |
37774 | ;; | |
37775 | ||
37776 | *-*-irix* ) | |
37777 | if test "x$GCC" = "xyes"; then | |
37778 | THREAD_OPTS="" | |
37779 | fi | |
37780 | ;; | |
37781 | ||
37782 | *-*-*UnixWare*) | |
37783 | if test "x$GCC" != "xyes"; then | |
37784 | THREAD_OPTS="-Ethread" | |
37785 | fi | |
37786 | ;; | |
37787 | esac | |
37788 | ||
37789 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
37790 | ||
37791 | THREADS_OK=no | |
37792 | for flag in $THREAD_OPTS; do | |
37793 | case $flag in | |
37794 | none) | |
37795 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
37796 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
37797 | ;; | |
37798 | ||
37799 | -*) | |
37800 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
37801 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
e56f4f9e | 37802 | THREADS_CXXFLAGS="$flag" |
a848cd7e SC |
37803 | ;; |
37804 | ||
37805 | *) | |
37806 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
37807 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
37808 | THREADS_LINK="-l$flag" | |
37809 | ;; | |
37810 | esac | |
37811 | ||
37812 | save_LIBS="$LIBS" | |
e56f4f9e | 37813 | save_CXXFLAGS="$CXXFLAGS" |
a848cd7e | 37814 | LIBS="$THREADS_LINK $LIBS" |
e56f4f9e | 37815 | CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS" |
a848cd7e SC |
37816 | |
37817 | cat >conftest.$ac_ext <<_ACEOF | |
37818 | /* confdefs.h. */ | |
37819 | _ACEOF | |
37820 | cat confdefs.h >>conftest.$ac_ext | |
37821 | cat >>conftest.$ac_ext <<_ACEOF | |
37822 | /* end confdefs.h. */ | |
37823 | #include <pthread.h> | |
37824 | int | |
37825 | main () | |
37826 | { | |
37827 | pthread_create(0,0,0,0); | |
37828 | ; | |
37829 | return 0; | |
37830 | } | |
37831 | _ACEOF | |
37832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37834 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37835 | ac_status=$? |
ac1cb8d3 VS |
37836 | grep -v '^ *+' conftest.er1 >conftest.err |
37837 | rm -f conftest.er1 | |
37838 | cat conftest.err >&5 | |
a848cd7e SC |
37839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37840 | (exit $ac_status); } && | |
3f60522a JS |
37841 | { ac_try='test -z "$ac_cxx_werror_flag" |
37842 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37844 | (eval $ac_try) 2>&5 | |
37845 | ac_status=$? | |
37846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37847 | (exit $ac_status); }; } && | |
37848 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37850 | (eval $ac_try) 2>&5 | |
37851 | ac_status=$? | |
37852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37853 | (exit $ac_status); }; }; then | |
37854 | THREADS_OK=yes | |
37855 | else | |
37856 | echo "$as_me: failed program was:" >&5 | |
37857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37858 | ||
37859 | fi | |
ac1cb8d3 VS |
37860 | rm -f conftest.err conftest.$ac_objext \ |
37861 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37862 | |
37863 | LIBS="$save_LIBS" | |
e56f4f9e | 37864 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
37865 | |
37866 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
37867 | echo "${ECHO_T}$THREADS_OK" >&6 | |
37868 | if test "x$THREADS_OK" = "xyes"; then | |
37869 | break; | |
37870 | fi | |
37871 | ||
37872 | THREADS_LINK="" | |
e56f4f9e | 37873 | THREADS_CXXFLAGS="" |
a848cd7e SC |
37874 | done |
37875 | ||
37876 | if test "x$THREADS_OK" != "xyes"; then | |
37877 | wxUSE_THREADS=no | |
37878 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
37879 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
37880 | else | |
e56f4f9e | 37881 | LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS" |
a848cd7e SC |
37882 | LIBS="$THREADS_LINK $LIBS" |
37883 | ||
37884 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
37885 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
37886 | flag=no | |
37887 | case "${host}" in | |
37888 | *-aix*) | |
37889 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
37890 | flag="-D_THREAD_SAFE" | |
37891 | ;; | |
37892 | *-freebsd*) | |
37893 | flag="-D_THREAD_SAFE" | |
37894 | ;; | |
37895 | *-hp-hpux* ) | |
37896 | flag="-D_REENTRANT" | |
37897 | if test "x$GCC" != "xyes"; then | |
37898 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
37899 | fi | |
37900 | ;; | |
37901 | *solaris* | alpha*-osf*) | |
37902 | flag="-D_REENTRANT" | |
37903 | ;; | |
37904 | esac | |
37905 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
37906 | echo "${ECHO_T}${flag}" >&6 | |
37907 | if test "x$flag" != xno; then | |
e56f4f9e | 37908 | THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag" |
a848cd7e SC |
37909 | fi |
37910 | ||
e56f4f9e | 37911 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS" |
a848cd7e SC |
37912 | fi |
37913 | fi | |
37914 | ||
37915 | if test "$wxUSE_THREADS" = "yes" ; then | |
37916 | ||
37917 | for ac_func in thr_setconcurrency | |
37918 | do | |
37919 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37920 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37921 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37922 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37924 | else | |
37925 | cat >conftest.$ac_ext <<_ACEOF | |
37926 | /* confdefs.h. */ | |
37927 | _ACEOF | |
37928 | cat confdefs.h >>conftest.$ac_ext | |
37929 | cat >>conftest.$ac_ext <<_ACEOF | |
37930 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37931 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37932 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37933 | #define $ac_func innocuous_$ac_func | |
37934 | ||
a848cd7e SC |
37935 | /* System header to define __stub macros and hopefully few prototypes, |
37936 | which can conflict with char $ac_func (); below. | |
37937 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37938 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37939 | |
a848cd7e SC |
37940 | #ifdef __STDC__ |
37941 | # include <limits.h> | |
37942 | #else | |
37943 | # include <assert.h> | |
37944 | #endif | |
ac1cb8d3 VS |
37945 | |
37946 | #undef $ac_func | |
37947 | ||
a848cd7e SC |
37948 | /* Override any gcc2 internal prototype to avoid an error. */ |
37949 | #ifdef __cplusplus | |
37950 | extern "C" | |
37951 | { | |
37952 | #endif | |
37953 | /* We use char because int might match the return type of a gcc2 | |
37954 | builtin and then its argument prototype would still apply. */ | |
37955 | char $ac_func (); | |
37956 | /* The GNU C library defines this for functions which it implements | |
37957 | to always fail with ENOSYS. Some functions are actually named | |
37958 | something starting with __ and the normal name is an alias. */ | |
37959 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37960 | choke me | |
37961 | #else | |
37962 | char (*f) () = $ac_func; | |
37963 | #endif | |
37964 | #ifdef __cplusplus | |
37965 | } | |
37966 | #endif | |
37967 | ||
37968 | int | |
37969 | main () | |
37970 | { | |
37971 | return f != $ac_func; | |
37972 | ; | |
37973 | return 0; | |
37974 | } | |
37975 | _ACEOF | |
37976 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37978 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37979 | ac_status=$? |
ac1cb8d3 VS |
37980 | grep -v '^ *+' conftest.er1 >conftest.err |
37981 | rm -f conftest.er1 | |
37982 | cat conftest.err >&5 | |
a848cd7e SC |
37983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37984 | (exit $ac_status); } && | |
3f60522a JS |
37985 | { ac_try='test -z "$ac_cxx_werror_flag" |
37986 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37988 | (eval $ac_try) 2>&5 | |
37989 | ac_status=$? | |
37990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37991 | (exit $ac_status); }; } && | |
37992 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37994 | (eval $ac_try) 2>&5 | |
37995 | ac_status=$? | |
37996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37997 | (exit $ac_status); }; }; then | |
37998 | eval "$as_ac_var=yes" | |
37999 | else | |
38000 | echo "$as_me: failed program was:" >&5 | |
38001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38002 | ||
38003 | eval "$as_ac_var=no" | |
38004 | fi | |
ac1cb8d3 VS |
38005 | rm -f conftest.err conftest.$ac_objext \ |
38006 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38007 | fi |
38008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38009 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38010 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38011 | cat >>confdefs.h <<_ACEOF | |
38012 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38013 | _ACEOF | |
38014 | ||
38015 | fi | |
38016 | done | |
38017 | ||
38018 | ||
6ebeb4c7 VZ |
38019 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
38020 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
38021 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
38022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38023 | else | |
38024 | ||
38025 | cat >conftest.$ac_ext <<_ACEOF | |
38026 | /* confdefs.h. */ | |
38027 | _ACEOF | |
38028 | cat confdefs.h >>conftest.$ac_ext | |
38029 | cat >>conftest.$ac_ext <<_ACEOF | |
38030 | /* end confdefs.h. */ | |
38031 | #include <pthread.h> | |
38032 | void ThreadCleanupFunc(void *p); | |
38033 | ||
38034 | int | |
38035 | main () | |
38036 | { | |
38037 | ||
38038 | void *p; | |
38039 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
38040 | pthread_cleanup_pop(0); | |
38041 | ||
38042 | ; | |
38043 | return 0; | |
38044 | } | |
38045 | _ACEOF | |
38046 | rm -f conftest.$ac_objext | |
38047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38048 | (eval $ac_compile) 2>conftest.er1 | |
38049 | ac_status=$? | |
38050 | grep -v '^ *+' conftest.er1 >conftest.err | |
38051 | rm -f conftest.er1 | |
38052 | cat conftest.err >&5 | |
38053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38054 | (exit $ac_status); } && | |
3f60522a JS |
38055 | { ac_try='test -z "$ac_cxx_werror_flag" |
38056 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
38057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38058 | (eval $ac_try) 2>&5 | |
38059 | ac_status=$? | |
38060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38061 | (exit $ac_status); }; } && | |
38062 | { ac_try='test -s conftest.$ac_objext' | |
38063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38064 | (eval $ac_try) 2>&5 | |
38065 | ac_status=$? | |
38066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38067 | (exit $ac_status); }; }; then | |
38068 | ||
38069 | wx_cv_func_pthread_cleanup=yes | |
38070 | ||
38071 | else | |
38072 | echo "$as_me: failed program was:" >&5 | |
38073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38074 | ||
38075 | ||
38076 | wx_cv_func_pthread_cleanup=no | |
38077 | ||
38078 | ||
38079 | fi | |
38080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38081 | ||
38082 | fi | |
38083 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
38084 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
38085 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
38086 | cat >>confdefs.h <<\_ACEOF | |
38087 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
38088 | _ACEOF | |
38089 | ||
38090 | fi | |
38091 | ||
a848cd7e SC |
38092 | |
38093 | for ac_header in sched.h | |
38094 | do | |
38095 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38097 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38099 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38101 | fi | |
38102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38103 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38104 | else | |
38105 | # Is the header compilable? | |
38106 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38107 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38108 | cat >conftest.$ac_ext <<_ACEOF | |
38109 | /* confdefs.h. */ | |
38110 | _ACEOF | |
38111 | cat confdefs.h >>conftest.$ac_ext | |
38112 | cat >>conftest.$ac_ext <<_ACEOF | |
38113 | /* end confdefs.h. */ | |
38114 | $ac_includes_default | |
38115 | #include <$ac_header> | |
38116 | _ACEOF | |
38117 | rm -f conftest.$ac_objext | |
38118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38119 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38120 | ac_status=$? |
ac1cb8d3 VS |
38121 | grep -v '^ *+' conftest.er1 >conftest.err |
38122 | rm -f conftest.er1 | |
38123 | cat conftest.err >&5 | |
a848cd7e SC |
38124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38125 | (exit $ac_status); } && | |
3f60522a JS |
38126 | { ac_try='test -z "$ac_cxx_werror_flag" |
38127 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38129 | (eval $ac_try) 2>&5 | |
38130 | ac_status=$? | |
38131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38132 | (exit $ac_status); }; } && | |
38133 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38135 | (eval $ac_try) 2>&5 | |
38136 | ac_status=$? | |
38137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38138 | (exit $ac_status); }; }; then | |
38139 | ac_header_compiler=yes | |
38140 | else | |
38141 | echo "$as_me: failed program was:" >&5 | |
38142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38143 | ||
38144 | ac_header_compiler=no | |
38145 | fi | |
ac1cb8d3 | 38146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38147 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38148 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38149 | ||
38150 | # Is the header present? | |
38151 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38152 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38153 | cat >conftest.$ac_ext <<_ACEOF | |
38154 | /* confdefs.h. */ | |
38155 | _ACEOF | |
38156 | cat confdefs.h >>conftest.$ac_ext | |
38157 | cat >>conftest.$ac_ext <<_ACEOF | |
38158 | /* end confdefs.h. */ | |
38159 | #include <$ac_header> | |
38160 | _ACEOF | |
38161 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38162 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38163 | ac_status=$? | |
38164 | grep -v '^ *+' conftest.er1 >conftest.err | |
38165 | rm -f conftest.er1 | |
38166 | cat conftest.err >&5 | |
38167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38168 | (exit $ac_status); } >/dev/null; then | |
38169 | if test -s conftest.err; then | |
5d7b7554 VZ |
38170 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
38171 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
38172 | else |
38173 | ac_cpp_err= | |
38174 | fi | |
38175 | else | |
38176 | ac_cpp_err=yes | |
38177 | fi | |
38178 | if test -z "$ac_cpp_err"; then | |
38179 | ac_header_preproc=yes | |
38180 | else | |
38181 | echo "$as_me: failed program was:" >&5 | |
38182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38183 | ||
38184 | ac_header_preproc=no | |
38185 | fi | |
38186 | rm -f conftest.err conftest.$ac_ext | |
38187 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38188 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38189 | ||
38190 | # So? What about this header? | |
5d7b7554 | 38191 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 38192 | yes:no: ) |
a848cd7e SC |
38193 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38194 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38196 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38197 | ac_header_preproc=yes | |
a848cd7e | 38198 | ;; |
ac1cb8d3 | 38199 | no:yes:* ) |
a848cd7e SC |
38200 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38201 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38202 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38203 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38204 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38205 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38206 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38207 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38208 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38209 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38210 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38211 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38212 | ( |
38213 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38214 | ## ----------------------------------------- ## |
38215 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38216 | ## ----------------------------------------- ## | |
a848cd7e SC |
38217 | _ASBOX |
38218 | ) | | |
38219 | sed "s/^/$as_me: WARNING: /" >&2 | |
38220 | ;; | |
38221 | esac | |
38222 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38226 | else | |
ac1cb8d3 | 38227 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38228 | fi |
38229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38230 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38231 | ||
38232 | fi | |
38233 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38234 | cat >>confdefs.h <<_ACEOF | |
38235 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38236 | _ACEOF | |
38237 | ||
38238 | fi | |
38239 | ||
38240 | done | |
38241 | ||
38242 | if test "$ac_cv_header_sched_h" = "yes"; then | |
38243 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
38244 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
38245 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
38246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38247 | else | |
38248 | cat >conftest.$ac_ext <<_ACEOF | |
38249 | /* confdefs.h. */ | |
38250 | _ACEOF | |
38251 | cat confdefs.h >>conftest.$ac_ext | |
38252 | cat >>conftest.$ac_ext <<_ACEOF | |
38253 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38254 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
38255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38256 | #define sched_yield innocuous_sched_yield | |
38257 | ||
a848cd7e SC |
38258 | /* System header to define __stub macros and hopefully few prototypes, |
38259 | which can conflict with char sched_yield (); below. | |
38260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38261 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38262 | |
a848cd7e SC |
38263 | #ifdef __STDC__ |
38264 | # include <limits.h> | |
38265 | #else | |
38266 | # include <assert.h> | |
38267 | #endif | |
ac1cb8d3 VS |
38268 | |
38269 | #undef sched_yield | |
38270 | ||
a848cd7e SC |
38271 | /* Override any gcc2 internal prototype to avoid an error. */ |
38272 | #ifdef __cplusplus | |
38273 | extern "C" | |
38274 | { | |
38275 | #endif | |
38276 | /* We use char because int might match the return type of a gcc2 | |
38277 | builtin and then its argument prototype would still apply. */ | |
38278 | char sched_yield (); | |
38279 | /* The GNU C library defines this for functions which it implements | |
38280 | to always fail with ENOSYS. Some functions are actually named | |
38281 | something starting with __ and the normal name is an alias. */ | |
38282 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
38283 | choke me | |
38284 | #else | |
38285 | char (*f) () = sched_yield; | |
38286 | #endif | |
38287 | #ifdef __cplusplus | |
38288 | } | |
38289 | #endif | |
38290 | ||
38291 | int | |
38292 | main () | |
38293 | { | |
38294 | return f != sched_yield; | |
38295 | ; | |
38296 | return 0; | |
38297 | } | |
38298 | _ACEOF | |
38299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38301 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38302 | ac_status=$? |
ac1cb8d3 VS |
38303 | grep -v '^ *+' conftest.er1 >conftest.err |
38304 | rm -f conftest.er1 | |
38305 | cat conftest.err >&5 | |
a848cd7e SC |
38306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38307 | (exit $ac_status); } && | |
3f60522a JS |
38308 | { ac_try='test -z "$ac_cxx_werror_flag" |
38309 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38311 | (eval $ac_try) 2>&5 | |
38312 | ac_status=$? | |
38313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38314 | (exit $ac_status); }; } && | |
38315 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38317 | (eval $ac_try) 2>&5 | |
38318 | ac_status=$? | |
38319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38320 | (exit $ac_status); }; }; then | |
38321 | ac_cv_func_sched_yield=yes | |
38322 | else | |
38323 | echo "$as_me: failed program was:" >&5 | |
38324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38325 | ||
38326 | ac_cv_func_sched_yield=no | |
38327 | fi | |
ac1cb8d3 VS |
38328 | rm -f conftest.err conftest.$ac_objext \ |
38329 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38330 | fi |
38331 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
38332 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
38333 | if test $ac_cv_func_sched_yield = yes; then | |
38334 | cat >>confdefs.h <<\_ACEOF | |
38335 | #define HAVE_SCHED_YIELD 1 | |
38336 | _ACEOF | |
38337 | ||
38338 | else | |
38339 | ||
38340 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
38341 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
38342 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
38343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38344 | else | |
38345 | ac_check_lib_save_LIBS=$LIBS | |
38346 | LIBS="-lposix4 $LIBS" | |
38347 | cat >conftest.$ac_ext <<_ACEOF | |
38348 | /* confdefs.h. */ | |
38349 | _ACEOF | |
38350 | cat confdefs.h >>conftest.$ac_ext | |
38351 | cat >>conftest.$ac_ext <<_ACEOF | |
38352 | /* end confdefs.h. */ | |
38353 | ||
38354 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38355 | #ifdef __cplusplus | |
38356 | extern "C" | |
38357 | #endif | |
38358 | /* We use char because int might match the return type of a gcc2 | |
38359 | builtin and then its argument prototype would still apply. */ | |
38360 | char sched_yield (); | |
38361 | int | |
38362 | main () | |
38363 | { | |
38364 | sched_yield (); | |
38365 | ; | |
38366 | return 0; | |
38367 | } | |
38368 | _ACEOF | |
38369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38371 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38372 | ac_status=$? |
ac1cb8d3 VS |
38373 | grep -v '^ *+' conftest.er1 >conftest.err |
38374 | rm -f conftest.er1 | |
38375 | cat conftest.err >&5 | |
a848cd7e SC |
38376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38377 | (exit $ac_status); } && | |
3f60522a JS |
38378 | { ac_try='test -z "$ac_cxx_werror_flag" |
38379 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38381 | (eval $ac_try) 2>&5 | |
38382 | ac_status=$? | |
38383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38384 | (exit $ac_status); }; } && | |
38385 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38387 | (eval $ac_try) 2>&5 | |
38388 | ac_status=$? | |
38389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38390 | (exit $ac_status); }; }; then | |
38391 | ac_cv_lib_posix4_sched_yield=yes | |
38392 | else | |
38393 | echo "$as_me: failed program was:" >&5 | |
38394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38395 | ||
38396 | ac_cv_lib_posix4_sched_yield=no | |
38397 | fi | |
ac1cb8d3 VS |
38398 | rm -f conftest.err conftest.$ac_objext \ |
38399 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38400 | LIBS=$ac_check_lib_save_LIBS |
38401 | fi | |
38402 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
38403 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
38404 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
38405 | cat >>confdefs.h <<\_ACEOF | |
38406 | #define HAVE_SCHED_YIELD 1 | |
38407 | _ACEOF | |
38408 | POSIX4_LINK=" -lposix4" | |
38409 | else | |
38410 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
38411 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
38412 | ||
38413 | fi | |
38414 | ||
38415 | ||
38416 | ||
38417 | fi | |
38418 | ||
38419 | fi | |
38420 | ||
38421 | HAVE_PRIOR_FUNCS=0 | |
38422 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
38423 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
38424 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
38425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38426 | else | |
38427 | cat >conftest.$ac_ext <<_ACEOF | |
38428 | /* confdefs.h. */ | |
38429 | _ACEOF | |
38430 | cat confdefs.h >>conftest.$ac_ext | |
38431 | cat >>conftest.$ac_ext <<_ACEOF | |
38432 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38433 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
38434 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38435 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
38436 | ||
a848cd7e SC |
38437 | /* System header to define __stub macros and hopefully few prototypes, |
38438 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
38439 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38440 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38441 | |
a848cd7e SC |
38442 | #ifdef __STDC__ |
38443 | # include <limits.h> | |
38444 | #else | |
38445 | # include <assert.h> | |
38446 | #endif | |
ac1cb8d3 VS |
38447 | |
38448 | #undef pthread_attr_getschedpolicy | |
38449 | ||
a848cd7e SC |
38450 | /* Override any gcc2 internal prototype to avoid an error. */ |
38451 | #ifdef __cplusplus | |
38452 | extern "C" | |
38453 | { | |
38454 | #endif | |
38455 | /* We use char because int might match the return type of a gcc2 | |
38456 | builtin and then its argument prototype would still apply. */ | |
38457 | char pthread_attr_getschedpolicy (); | |
38458 | /* The GNU C library defines this for functions which it implements | |
38459 | to always fail with ENOSYS. Some functions are actually named | |
38460 | something starting with __ and the normal name is an alias. */ | |
38461 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
38462 | choke me | |
38463 | #else | |
38464 | char (*f) () = pthread_attr_getschedpolicy; | |
38465 | #endif | |
38466 | #ifdef __cplusplus | |
38467 | } | |
38468 | #endif | |
38469 | ||
38470 | int | |
38471 | main () | |
38472 | { | |
38473 | return f != pthread_attr_getschedpolicy; | |
38474 | ; | |
38475 | return 0; | |
38476 | } | |
38477 | _ACEOF | |
38478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38480 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38481 | ac_status=$? |
ac1cb8d3 VS |
38482 | grep -v '^ *+' conftest.er1 >conftest.err |
38483 | rm -f conftest.er1 | |
38484 | cat conftest.err >&5 | |
a848cd7e SC |
38485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38486 | (exit $ac_status); } && | |
3f60522a JS |
38487 | { ac_try='test -z "$ac_cxx_werror_flag" |
38488 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38490 | (eval $ac_try) 2>&5 | |
38491 | ac_status=$? | |
38492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38493 | (exit $ac_status); }; } && | |
38494 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38496 | (eval $ac_try) 2>&5 | |
38497 | ac_status=$? | |
38498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38499 | (exit $ac_status); }; }; then | |
38500 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
38501 | else | |
38502 | echo "$as_me: failed program was:" >&5 | |
38503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38504 | ||
38505 | ac_cv_func_pthread_attr_getschedpolicy=no | |
38506 | fi | |
ac1cb8d3 VS |
38507 | rm -f conftest.err conftest.$ac_objext \ |
38508 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38509 | fi |
38510 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
38511 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
38512 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
38513 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
38514 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
38515 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
38516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38517 | else | |
38518 | cat >conftest.$ac_ext <<_ACEOF | |
38519 | /* confdefs.h. */ | |
38520 | _ACEOF | |
38521 | cat confdefs.h >>conftest.$ac_ext | |
38522 | cat >>conftest.$ac_ext <<_ACEOF | |
38523 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38524 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
38525 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38526 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
38527 | ||
a848cd7e SC |
38528 | /* System header to define __stub macros and hopefully few prototypes, |
38529 | which can conflict with char pthread_attr_setschedparam (); below. | |
38530 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38531 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38532 | |
a848cd7e SC |
38533 | #ifdef __STDC__ |
38534 | # include <limits.h> | |
38535 | #else | |
38536 | # include <assert.h> | |
38537 | #endif | |
ac1cb8d3 VS |
38538 | |
38539 | #undef pthread_attr_setschedparam | |
38540 | ||
a848cd7e SC |
38541 | /* Override any gcc2 internal prototype to avoid an error. */ |
38542 | #ifdef __cplusplus | |
38543 | extern "C" | |
38544 | { | |
38545 | #endif | |
38546 | /* We use char because int might match the return type of a gcc2 | |
38547 | builtin and then its argument prototype would still apply. */ | |
38548 | char pthread_attr_setschedparam (); | |
38549 | /* The GNU C library defines this for functions which it implements | |
38550 | to always fail with ENOSYS. Some functions are actually named | |
38551 | something starting with __ and the normal name is an alias. */ | |
38552 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
38553 | choke me | |
38554 | #else | |
38555 | char (*f) () = pthread_attr_setschedparam; | |
38556 | #endif | |
38557 | #ifdef __cplusplus | |
38558 | } | |
38559 | #endif | |
38560 | ||
38561 | int | |
38562 | main () | |
38563 | { | |
38564 | return f != pthread_attr_setschedparam; | |
38565 | ; | |
38566 | return 0; | |
38567 | } | |
38568 | _ACEOF | |
38569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38571 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38572 | ac_status=$? |
ac1cb8d3 VS |
38573 | grep -v '^ *+' conftest.er1 >conftest.err |
38574 | rm -f conftest.er1 | |
38575 | cat conftest.err >&5 | |
a848cd7e SC |
38576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38577 | (exit $ac_status); } && | |
3f60522a JS |
38578 | { ac_try='test -z "$ac_cxx_werror_flag" |
38579 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38581 | (eval $ac_try) 2>&5 | |
38582 | ac_status=$? | |
38583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38584 | (exit $ac_status); }; } && | |
38585 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38587 | (eval $ac_try) 2>&5 | |
38588 | ac_status=$? | |
38589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38590 | (exit $ac_status); }; }; then | |
38591 | ac_cv_func_pthread_attr_setschedparam=yes | |
38592 | else | |
38593 | echo "$as_me: failed program was:" >&5 | |
38594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38595 | ||
38596 | ac_cv_func_pthread_attr_setschedparam=no | |
38597 | fi | |
ac1cb8d3 VS |
38598 | rm -f conftest.err conftest.$ac_objext \ |
38599 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38600 | fi |
38601 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
38602 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
38603 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
38604 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
38605 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
38606 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
38607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38608 | else | |
38609 | cat >conftest.$ac_ext <<_ACEOF | |
38610 | /* confdefs.h. */ | |
38611 | _ACEOF | |
38612 | cat confdefs.h >>conftest.$ac_ext | |
38613 | cat >>conftest.$ac_ext <<_ACEOF | |
38614 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38615 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
38616 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38617 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
38618 | ||
a848cd7e SC |
38619 | /* System header to define __stub macros and hopefully few prototypes, |
38620 | which can conflict with char sched_get_priority_max (); below. | |
38621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38622 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38623 | |
a848cd7e SC |
38624 | #ifdef __STDC__ |
38625 | # include <limits.h> | |
38626 | #else | |
38627 | # include <assert.h> | |
38628 | #endif | |
ac1cb8d3 VS |
38629 | |
38630 | #undef sched_get_priority_max | |
38631 | ||
a848cd7e SC |
38632 | /* Override any gcc2 internal prototype to avoid an error. */ |
38633 | #ifdef __cplusplus | |
38634 | extern "C" | |
38635 | { | |
38636 | #endif | |
38637 | /* We use char because int might match the return type of a gcc2 | |
38638 | builtin and then its argument prototype would still apply. */ | |
38639 | char sched_get_priority_max (); | |
38640 | /* The GNU C library defines this for functions which it implements | |
38641 | to always fail with ENOSYS. Some functions are actually named | |
38642 | something starting with __ and the normal name is an alias. */ | |
38643 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
38644 | choke me | |
38645 | #else | |
38646 | char (*f) () = sched_get_priority_max; | |
38647 | #endif | |
38648 | #ifdef __cplusplus | |
38649 | } | |
38650 | #endif | |
38651 | ||
38652 | int | |
38653 | main () | |
38654 | { | |
38655 | return f != sched_get_priority_max; | |
38656 | ; | |
38657 | return 0; | |
38658 | } | |
38659 | _ACEOF | |
38660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38662 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38663 | ac_status=$? |
ac1cb8d3 VS |
38664 | grep -v '^ *+' conftest.er1 >conftest.err |
38665 | rm -f conftest.er1 | |
38666 | cat conftest.err >&5 | |
a848cd7e SC |
38667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38668 | (exit $ac_status); } && | |
3f60522a JS |
38669 | { ac_try='test -z "$ac_cxx_werror_flag" |
38670 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38672 | (eval $ac_try) 2>&5 | |
38673 | ac_status=$? | |
38674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38675 | (exit $ac_status); }; } && | |
38676 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38678 | (eval $ac_try) 2>&5 | |
38679 | ac_status=$? | |
38680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38681 | (exit $ac_status); }; }; then | |
38682 | ac_cv_func_sched_get_priority_max=yes | |
38683 | else | |
38684 | echo "$as_me: failed program was:" >&5 | |
38685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38686 | ||
38687 | ac_cv_func_sched_get_priority_max=no | |
38688 | fi | |
ac1cb8d3 VS |
38689 | rm -f conftest.err conftest.$ac_objext \ |
38690 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38691 | fi |
38692 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
38693 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
38694 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
38695 | HAVE_PRIOR_FUNCS=1 | |
38696 | else | |
38697 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
38698 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
38699 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
38700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38701 | else | |
38702 | ac_check_lib_save_LIBS=$LIBS | |
38703 | LIBS="-lposix4 $LIBS" | |
38704 | cat >conftest.$ac_ext <<_ACEOF | |
38705 | /* confdefs.h. */ | |
38706 | _ACEOF | |
38707 | cat confdefs.h >>conftest.$ac_ext | |
38708 | cat >>conftest.$ac_ext <<_ACEOF | |
38709 | /* end confdefs.h. */ | |
38710 | ||
38711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38712 | #ifdef __cplusplus | |
38713 | extern "C" | |
38714 | #endif | |
38715 | /* We use char because int might match the return type of a gcc2 | |
38716 | builtin and then its argument prototype would still apply. */ | |
38717 | char sched_get_priority_max (); | |
38718 | int | |
38719 | main () | |
38720 | { | |
38721 | sched_get_priority_max (); | |
38722 | ; | |
38723 | return 0; | |
38724 | } | |
38725 | _ACEOF | |
38726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38728 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38729 | ac_status=$? |
ac1cb8d3 VS |
38730 | grep -v '^ *+' conftest.er1 >conftest.err |
38731 | rm -f conftest.er1 | |
38732 | cat conftest.err >&5 | |
a848cd7e SC |
38733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38734 | (exit $ac_status); } && | |
3f60522a JS |
38735 | { ac_try='test -z "$ac_cxx_werror_flag" |
38736 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38738 | (eval $ac_try) 2>&5 | |
38739 | ac_status=$? | |
38740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38741 | (exit $ac_status); }; } && | |
38742 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38744 | (eval $ac_try) 2>&5 | |
38745 | ac_status=$? | |
38746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38747 | (exit $ac_status); }; }; then | |
38748 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
38749 | else | |
38750 | echo "$as_me: failed program was:" >&5 | |
38751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38752 | ||
38753 | ac_cv_lib_posix4_sched_get_priority_max=no | |
38754 | fi | |
ac1cb8d3 VS |
38755 | rm -f conftest.err conftest.$ac_objext \ |
38756 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38757 | LIBS=$ac_check_lib_save_LIBS |
38758 | fi | |
38759 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
38760 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
38761 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
38762 | ||
38763 | HAVE_PRIOR_FUNCS=1 | |
38764 | POSIX4_LINK=" -lposix4" | |
38765 | ||
38766 | fi | |
38767 | ||
38768 | ||
38769 | fi | |
38770 | ||
38771 | ||
38772 | fi | |
38773 | ||
38774 | ||
38775 | fi | |
38776 | ||
38777 | ||
38778 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
38779 | cat >>confdefs.h <<\_ACEOF | |
38780 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
38781 | _ACEOF | |
38782 | ||
38783 | else | |
38784 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
38785 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
38786 | fi | |
38787 | ||
38788 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
38789 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
38790 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
38791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38792 | else | |
38793 | cat >conftest.$ac_ext <<_ACEOF | |
38794 | /* confdefs.h. */ | |
38795 | _ACEOF | |
38796 | cat confdefs.h >>conftest.$ac_ext | |
38797 | cat >>conftest.$ac_ext <<_ACEOF | |
38798 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38799 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
38800 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38801 | #define pthread_cancel innocuous_pthread_cancel | |
38802 | ||
a848cd7e SC |
38803 | /* System header to define __stub macros and hopefully few prototypes, |
38804 | which can conflict with char pthread_cancel (); below. | |
38805 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38806 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38807 | |
a848cd7e SC |
38808 | #ifdef __STDC__ |
38809 | # include <limits.h> | |
38810 | #else | |
38811 | # include <assert.h> | |
38812 | #endif | |
ac1cb8d3 VS |
38813 | |
38814 | #undef pthread_cancel | |
38815 | ||
a848cd7e SC |
38816 | /* Override any gcc2 internal prototype to avoid an error. */ |
38817 | #ifdef __cplusplus | |
38818 | extern "C" | |
38819 | { | |
38820 | #endif | |
38821 | /* We use char because int might match the return type of a gcc2 | |
38822 | builtin and then its argument prototype would still apply. */ | |
38823 | char pthread_cancel (); | |
38824 | /* The GNU C library defines this for functions which it implements | |
38825 | to always fail with ENOSYS. Some functions are actually named | |
38826 | something starting with __ and the normal name is an alias. */ | |
38827 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
38828 | choke me | |
38829 | #else | |
38830 | char (*f) () = pthread_cancel; | |
38831 | #endif | |
38832 | #ifdef __cplusplus | |
38833 | } | |
38834 | #endif | |
38835 | ||
38836 | int | |
38837 | main () | |
38838 | { | |
38839 | return f != pthread_cancel; | |
38840 | ; | |
38841 | return 0; | |
38842 | } | |
38843 | _ACEOF | |
38844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38846 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38847 | ac_status=$? |
ac1cb8d3 VS |
38848 | grep -v '^ *+' conftest.er1 >conftest.err |
38849 | rm -f conftest.er1 | |
38850 | cat conftest.err >&5 | |
a848cd7e SC |
38851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38852 | (exit $ac_status); } && | |
3f60522a JS |
38853 | { ac_try='test -z "$ac_cxx_werror_flag" |
38854 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38856 | (eval $ac_try) 2>&5 | |
38857 | ac_status=$? | |
38858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38859 | (exit $ac_status); }; } && | |
38860 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38862 | (eval $ac_try) 2>&5 | |
38863 | ac_status=$? | |
38864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38865 | (exit $ac_status); }; }; then | |
38866 | ac_cv_func_pthread_cancel=yes | |
38867 | else | |
38868 | echo "$as_me: failed program was:" >&5 | |
38869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38870 | ||
38871 | ac_cv_func_pthread_cancel=no | |
38872 | fi | |
ac1cb8d3 VS |
38873 | rm -f conftest.err conftest.$ac_objext \ |
38874 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38875 | fi |
38876 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
38877 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
38878 | if test $ac_cv_func_pthread_cancel = yes; then | |
38879 | cat >>confdefs.h <<\_ACEOF | |
38880 | #define HAVE_PTHREAD_CANCEL 1 | |
38881 | _ACEOF | |
38882 | ||
38883 | else | |
38884 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
38885 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
38886 | fi | |
38887 | ||
38888 | ||
abc736fd MW |
38889 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
38890 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
38891 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
38892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38893 | else | |
38894 | cat >conftest.$ac_ext <<_ACEOF | |
38895 | /* confdefs.h. */ | |
38896 | _ACEOF | |
38897 | cat confdefs.h >>conftest.$ac_ext | |
38898 | cat >>conftest.$ac_ext <<_ACEOF | |
38899 | /* end confdefs.h. */ | |
38900 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
38901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38902 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
38903 | ||
38904 | /* System header to define __stub macros and hopefully few prototypes, | |
38905 | which can conflict with char pthread_attr_setstacksize (); below. | |
38906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38907 | <limits.h> exists even on freestanding compilers. */ | |
38908 | ||
38909 | #ifdef __STDC__ | |
38910 | # include <limits.h> | |
38911 | #else | |
38912 | # include <assert.h> | |
38913 | #endif | |
38914 | ||
38915 | #undef pthread_attr_setstacksize | |
38916 | ||
38917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38918 | #ifdef __cplusplus | |
38919 | extern "C" | |
38920 | { | |
38921 | #endif | |
38922 | /* We use char because int might match the return type of a gcc2 | |
38923 | builtin and then its argument prototype would still apply. */ | |
38924 | char pthread_attr_setstacksize (); | |
38925 | /* The GNU C library defines this for functions which it implements | |
38926 | to always fail with ENOSYS. Some functions are actually named | |
38927 | something starting with __ and the normal name is an alias. */ | |
38928 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
38929 | choke me | |
38930 | #else | |
38931 | char (*f) () = pthread_attr_setstacksize; | |
38932 | #endif | |
38933 | #ifdef __cplusplus | |
38934 | } | |
38935 | #endif | |
38936 | ||
38937 | int | |
38938 | main () | |
38939 | { | |
38940 | return f != pthread_attr_setstacksize; | |
38941 | ; | |
38942 | return 0; | |
38943 | } | |
38944 | _ACEOF | |
38945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38947 | (eval $ac_link) 2>conftest.er1 | |
38948 | ac_status=$? | |
38949 | grep -v '^ *+' conftest.er1 >conftest.err | |
38950 | rm -f conftest.er1 | |
38951 | cat conftest.err >&5 | |
38952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38953 | (exit $ac_status); } && | |
3f60522a JS |
38954 | { ac_try='test -z "$ac_cxx_werror_flag" |
38955 | || test ! -s conftest.err' | |
abc736fd MW |
38956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38957 | (eval $ac_try) 2>&5 | |
38958 | ac_status=$? | |
38959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38960 | (exit $ac_status); }; } && | |
38961 | { ac_try='test -s conftest$ac_exeext' | |
38962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38963 | (eval $ac_try) 2>&5 | |
38964 | ac_status=$? | |
38965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38966 | (exit $ac_status); }; }; then | |
38967 | ac_cv_func_pthread_attr_setstacksize=yes | |
38968 | else | |
38969 | echo "$as_me: failed program was:" >&5 | |
38970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38971 | ||
38972 | ac_cv_func_pthread_attr_setstacksize=no | |
38973 | fi | |
38974 | rm -f conftest.err conftest.$ac_objext \ | |
38975 | conftest$ac_exeext conftest.$ac_ext | |
38976 | fi | |
38977 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
38978 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
38979 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
38980 | cat >>confdefs.h <<\_ACEOF | |
38981 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
38982 | _ACEOF | |
38983 | ||
38984 | fi | |
38985 | ||
a848cd7e SC |
38986 | |
38987 | ||
38988 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
38989 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
38990 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
38991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38992 | else | |
38993 | ||
38994 | cat >conftest.$ac_ext <<_ACEOF | |
38995 | /* confdefs.h. */ | |
38996 | _ACEOF | |
38997 | cat confdefs.h >>conftest.$ac_ext | |
38998 | cat >>conftest.$ac_ext <<_ACEOF | |
38999 | /* end confdefs.h. */ | |
39000 | #include <pthread.h> | |
39001 | int | |
39002 | main () | |
39003 | { | |
39004 | ||
39005 | pthread_mutexattr_t attr; | |
39006 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
39007 | ||
39008 | ; | |
39009 | return 0; | |
39010 | } | |
39011 | _ACEOF | |
39012 | rm -f conftest.$ac_objext | |
39013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39014 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39015 | ac_status=$? |
ac1cb8d3 VS |
39016 | grep -v '^ *+' conftest.er1 >conftest.err |
39017 | rm -f conftest.er1 | |
39018 | cat conftest.err >&5 | |
a848cd7e SC |
39019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39020 | (exit $ac_status); } && | |
3f60522a JS |
39021 | { ac_try='test -z "$ac_cxx_werror_flag" |
39022 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39024 | (eval $ac_try) 2>&5 | |
39025 | ac_status=$? | |
39026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39027 | (exit $ac_status); }; } && | |
39028 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39030 | (eval $ac_try) 2>&5 | |
39031 | ac_status=$? | |
39032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39033 | (exit $ac_status); }; }; then | |
123dca7d | 39034 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
39035 | else |
39036 | echo "$as_me: failed program was:" >&5 | |
39037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39038 | ||
123dca7d | 39039 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
39040 | |
39041 | fi | |
ac1cb8d3 | 39042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39043 | |
39044 | fi | |
39045 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
39046 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
39047 | ||
39048 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
39049 | cat >>confdefs.h <<\_ACEOF | |
39050 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
39051 | _ACEOF | |
39052 | ||
123dca7d VZ |
39053 | |
39054 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
39055 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
39056 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
39057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39058 | else | |
39059 | ||
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 | #include <pthread.h> | |
39067 | int | |
39068 | main () | |
39069 | { | |
39070 | ||
39071 | pthread_mutexattr_t attr; | |
39072 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
39073 | ||
39074 | ; | |
39075 | return 0; | |
39076 | } | |
39077 | _ACEOF | |
39078 | rm -f conftest.$ac_objext | |
39079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39080 | (eval $ac_compile) 2>conftest.er1 | |
39081 | ac_status=$? | |
39082 | grep -v '^ *+' conftest.er1 >conftest.err | |
39083 | rm -f conftest.er1 | |
39084 | cat conftest.err >&5 | |
39085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39086 | (exit $ac_status); } && | |
3f60522a JS |
39087 | { ac_try='test -z "$ac_cxx_werror_flag" |
39088 | || test ! -s conftest.err' | |
123dca7d VZ |
39089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39090 | (eval $ac_try) 2>&5 | |
39091 | ac_status=$? | |
39092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39093 | (exit $ac_status); }; } && | |
39094 | { ac_try='test -s conftest.$ac_objext' | |
39095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39096 | (eval $ac_try) 2>&5 | |
39097 | ac_status=$? | |
39098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39099 | (exit $ac_status); }; }; then | |
39100 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
39101 | else | |
39102 | echo "$as_me: failed program was:" >&5 | |
39103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39104 | ||
39105 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
39106 | ||
39107 | fi | |
39108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39109 | ||
39110 | fi | |
39111 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
39112 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
39113 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
39114 | cat >>confdefs.h <<\_ACEOF | |
39115 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
39116 | _ACEOF | |
39117 | ||
39118 | fi | |
a848cd7e SC |
39119 | else |
39120 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
39121 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
39122 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
39123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39124 | else | |
39125 | ||
39126 | cat >conftest.$ac_ext <<_ACEOF | |
39127 | /* confdefs.h. */ | |
39128 | _ACEOF | |
39129 | cat confdefs.h >>conftest.$ac_ext | |
39130 | cat >>conftest.$ac_ext <<_ACEOF | |
39131 | /* end confdefs.h. */ | |
39132 | #include <pthread.h> | |
39133 | int | |
39134 | main () | |
39135 | { | |
39136 | ||
39137 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
39138 | ||
39139 | ; | |
39140 | return 0; | |
39141 | } | |
39142 | _ACEOF | |
39143 | rm -f conftest.$ac_objext | |
39144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39145 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39146 | ac_status=$? |
ac1cb8d3 VS |
39147 | grep -v '^ *+' conftest.er1 >conftest.err |
39148 | rm -f conftest.er1 | |
39149 | cat conftest.err >&5 | |
a848cd7e SC |
39150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39151 | (exit $ac_status); } && | |
3f60522a JS |
39152 | { ac_try='test -z "$ac_cxx_werror_flag" |
39153 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39155 | (eval $ac_try) 2>&5 | |
39156 | ac_status=$? | |
39157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39158 | (exit $ac_status); }; } && | |
39159 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39161 | (eval $ac_try) 2>&5 | |
39162 | ac_status=$? | |
39163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39164 | (exit $ac_status); }; }; then | |
39165 | ||
39166 | wx_cv_type_pthread_rec_mutex_init=yes | |
39167 | ||
39168 | else | |
39169 | echo "$as_me: failed program was:" >&5 | |
39170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39171 | ||
39172 | ||
39173 | wx_cv_type_pthread_rec_mutex_init=no | |
39174 | ||
39175 | ||
39176 | fi | |
ac1cb8d3 | 39177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39178 | |
39179 | fi | |
39180 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
39181 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
39182 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
39183 | cat >>confdefs.h <<\_ACEOF | |
39184 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
39185 | _ACEOF | |
39186 | ||
39187 | else | |
39188 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
39189 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
39190 | fi | |
39191 | fi | |
39192 | fi | |
39193 | ||
39194 | else | |
39195 | if test "$wxUSE_THREADS" = "yes" ; then | |
39196 | case "${host}" in | |
39197 | *-*-mingw32* ) | |
39198 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
39199 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
39200 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
39201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39202 | else | |
39203 | ||
e56f4f9e VZ |
39204 | CXXFLAGS_OLD="$CXXFLAGS" |
39205 | CXXFLAGS="-mthreads $CXXFLAGS" | |
a848cd7e SC |
39206 | cat >conftest.$ac_ext <<_ACEOF |
39207 | /* confdefs.h. */ | |
39208 | _ACEOF | |
39209 | cat confdefs.h >>conftest.$ac_ext | |
39210 | cat >>conftest.$ac_ext <<_ACEOF | |
39211 | /* end confdefs.h. */ | |
39212 | ||
39213 | int | |
39214 | main () | |
39215 | { | |
39216 | ||
39217 | ; | |
39218 | return 0; | |
39219 | } | |
39220 | _ACEOF | |
39221 | rm -f conftest.$ac_objext | |
39222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39223 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39224 | ac_status=$? |
ac1cb8d3 VS |
39225 | grep -v '^ *+' conftest.er1 >conftest.err |
39226 | rm -f conftest.er1 | |
39227 | cat conftest.err >&5 | |
a848cd7e SC |
39228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39229 | (exit $ac_status); } && | |
3f60522a JS |
39230 | { ac_try='test -z "$ac_cxx_werror_flag" |
39231 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39233 | (eval $ac_try) 2>&5 | |
39234 | ac_status=$? | |
39235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39236 | (exit $ac_status); }; } && | |
39237 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39239 | (eval $ac_try) 2>&5 | |
39240 | ac_status=$? | |
39241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39242 | (exit $ac_status); }; }; then | |
39243 | wx_cv_cflags_mthread=yes | |
39244 | else | |
39245 | echo "$as_me: failed program was:" >&5 | |
39246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39247 | ||
39248 | wx_cv_cflags_mthread=no | |
39249 | ||
39250 | fi | |
ac1cb8d3 | 39251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39252 | |
39253 | ||
39254 | fi | |
39255 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
39256 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
39257 | ||
39258 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
e56f4f9e | 39259 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads" |
a848cd7e SC |
39260 | LDFLAGS="$LDFLAGS -mthreads" |
39261 | else | |
e56f4f9e | 39262 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
39263 | fi |
39264 | ;; | |
39265 | *-pc-os2*emx ) | |
5ff751d6 VZ |
39266 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
39267 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
39268 | LDFLAGS="$LDFLAGS -Zmt" |
39269 | ;; | |
39270 | esac | |
39271 | fi | |
39272 | fi | |
39273 | ||
004ee6da RL |
39274 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
39275 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
39276 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
39277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
39278 | else | |
39279 | cat >conftest.$ac_ext <<_ACEOF | |
39280 | /* confdefs.h. */ | |
39281 | _ACEOF | |
39282 | cat confdefs.h >>conftest.$ac_ext | |
39283 | cat >>conftest.$ac_ext <<_ACEOF | |
39284 | /* end confdefs.h. */ | |
004ee6da | 39285 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 39286 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 39287 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 39288 | |
a848cd7e | 39289 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 39290 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
39291 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
39292 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39293 | |
a848cd7e SC |
39294 | #ifdef __STDC__ |
39295 | # include <limits.h> | |
39296 | #else | |
39297 | # include <assert.h> | |
39298 | #endif | |
ac1cb8d3 | 39299 | |
004ee6da | 39300 | #undef localtime_r |
ac1cb8d3 | 39301 | |
a848cd7e SC |
39302 | /* Override any gcc2 internal prototype to avoid an error. */ |
39303 | #ifdef __cplusplus | |
39304 | extern "C" | |
39305 | { | |
39306 | #endif | |
39307 | /* We use char because int might match the return type of a gcc2 | |
39308 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 39309 | char localtime_r (); |
a848cd7e SC |
39310 | /* The GNU C library defines this for functions which it implements |
39311 | to always fail with ENOSYS. Some functions are actually named | |
39312 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 39313 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
39314 | choke me |
39315 | #else | |
004ee6da | 39316 | char (*f) () = localtime_r; |
a848cd7e SC |
39317 | #endif |
39318 | #ifdef __cplusplus | |
39319 | } | |
39320 | #endif | |
39321 | ||
39322 | int | |
39323 | main () | |
39324 | { | |
004ee6da RL |
39325 | return f != localtime_r; |
39326 | ; | |
39327 | return 0; | |
39328 | } | |
39329 | _ACEOF | |
39330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39332 | (eval $ac_link) 2>conftest.er1 | |
39333 | ac_status=$? | |
39334 | grep -v '^ *+' conftest.er1 >conftest.err | |
39335 | rm -f conftest.er1 | |
39336 | cat conftest.err >&5 | |
39337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39338 | (exit $ac_status); } && | |
3f60522a JS |
39339 | { ac_try='test -z "$ac_cxx_werror_flag" |
39340 | || test ! -s conftest.err' | |
004ee6da RL |
39341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39342 | (eval $ac_try) 2>&5 | |
39343 | ac_status=$? | |
39344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39345 | (exit $ac_status); }; } && | |
39346 | { ac_try='test -s conftest$ac_exeext' | |
39347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39348 | (eval $ac_try) 2>&5 | |
39349 | ac_status=$? | |
39350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39351 | (exit $ac_status); }; }; then | |
39352 | ac_cv_func_localtime_r=yes | |
39353 | else | |
39354 | echo "$as_me: failed program was:" >&5 | |
39355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39356 | ||
39357 | ac_cv_func_localtime_r=no | |
39358 | fi | |
39359 | rm -f conftest.err conftest.$ac_objext \ | |
39360 | conftest$ac_exeext conftest.$ac_ext | |
39361 | fi | |
39362 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
39363 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
39364 | if test $ac_cv_func_localtime_r = yes; then | |
39365 | cat >>confdefs.h <<\_ACEOF | |
39366 | #define HAVE_LOCALTIME_R 1 | |
39367 | _ACEOF | |
39368 | ||
39369 | fi | |
39370 | ||
39371 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
39372 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
39373 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
39374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39375 | else | |
39376 | cat >conftest.$ac_ext <<_ACEOF | |
39377 | /* confdefs.h. */ | |
39378 | _ACEOF | |
39379 | cat confdefs.h >>conftest.$ac_ext | |
39380 | cat >>conftest.$ac_ext <<_ACEOF | |
39381 | /* end confdefs.h. */ | |
39382 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
39383 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39384 | #define gmtime_r innocuous_gmtime_r | |
39385 | ||
39386 | /* System header to define __stub macros and hopefully few prototypes, | |
39387 | which can conflict with char gmtime_r (); below. | |
39388 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39389 | <limits.h> exists even on freestanding compilers. */ | |
39390 | ||
39391 | #ifdef __STDC__ | |
39392 | # include <limits.h> | |
39393 | #else | |
39394 | # include <assert.h> | |
39395 | #endif | |
39396 | ||
39397 | #undef gmtime_r | |
39398 | ||
39399 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39400 | #ifdef __cplusplus | |
39401 | extern "C" | |
39402 | { | |
39403 | #endif | |
39404 | /* We use char because int might match the return type of a gcc2 | |
39405 | builtin and then its argument prototype would still apply. */ | |
39406 | char gmtime_r (); | |
39407 | /* The GNU C library defines this for functions which it implements | |
39408 | to always fail with ENOSYS. Some functions are actually named | |
39409 | something starting with __ and the normal name is an alias. */ | |
39410 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
39411 | choke me | |
39412 | #else | |
39413 | char (*f) () = gmtime_r; | |
39414 | #endif | |
39415 | #ifdef __cplusplus | |
39416 | } | |
39417 | #endif | |
39418 | ||
39419 | int | |
39420 | main () | |
39421 | { | |
39422 | return f != gmtime_r; | |
39423 | ; | |
39424 | return 0; | |
39425 | } | |
39426 | _ACEOF | |
39427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39429 | (eval $ac_link) 2>conftest.er1 | |
39430 | ac_status=$? | |
39431 | grep -v '^ *+' conftest.er1 >conftest.err | |
39432 | rm -f conftest.er1 | |
39433 | cat conftest.err >&5 | |
39434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39435 | (exit $ac_status); } && | |
3f60522a JS |
39436 | { ac_try='test -z "$ac_cxx_werror_flag" |
39437 | || test ! -s conftest.err' | |
004ee6da RL |
39438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39439 | (eval $ac_try) 2>&5 | |
39440 | ac_status=$? | |
39441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39442 | (exit $ac_status); }; } && | |
39443 | { ac_try='test -s conftest$ac_exeext' | |
39444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39445 | (eval $ac_try) 2>&5 | |
39446 | ac_status=$? | |
39447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39448 | (exit $ac_status); }; }; then | |
39449 | ac_cv_func_gmtime_r=yes | |
39450 | else | |
39451 | echo "$as_me: failed program was:" >&5 | |
39452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39453 | ||
39454 | ac_cv_func_gmtime_r=no | |
39455 | fi | |
39456 | rm -f conftest.err conftest.$ac_objext \ | |
39457 | conftest$ac_exeext conftest.$ac_ext | |
39458 | fi | |
39459 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
39460 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
39461 | if test $ac_cv_func_gmtime_r = yes; then | |
39462 | cat >>confdefs.h <<\_ACEOF | |
39463 | #define HAVE_GMTIME_R 1 | |
39464 | _ACEOF | |
39465 | ||
39466 | fi | |
39467 | ||
39468 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
39469 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
39470 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
39471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39472 | else | |
39473 | cat >conftest.$ac_ext <<_ACEOF | |
39474 | /* confdefs.h. */ | |
39475 | _ACEOF | |
39476 | cat confdefs.h >>conftest.$ac_ext | |
39477 | cat >>conftest.$ac_ext <<_ACEOF | |
39478 | /* end confdefs.h. */ | |
39479 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
39480 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39481 | #define readdir_r innocuous_readdir_r | |
39482 | ||
39483 | /* System header to define __stub macros and hopefully few prototypes, | |
39484 | which can conflict with char readdir_r (); below. | |
39485 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39486 | <limits.h> exists even on freestanding compilers. */ | |
39487 | ||
39488 | #ifdef __STDC__ | |
39489 | # include <limits.h> | |
39490 | #else | |
39491 | # include <assert.h> | |
39492 | #endif | |
39493 | ||
39494 | #undef readdir_r | |
39495 | ||
39496 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39497 | #ifdef __cplusplus | |
39498 | extern "C" | |
39499 | { | |
39500 | #endif | |
39501 | /* We use char because int might match the return type of a gcc2 | |
39502 | builtin and then its argument prototype would still apply. */ | |
39503 | char readdir_r (); | |
39504 | /* The GNU C library defines this for functions which it implements | |
39505 | to always fail with ENOSYS. Some functions are actually named | |
39506 | something starting with __ and the normal name is an alias. */ | |
39507 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
39508 | choke me | |
39509 | #else | |
39510 | char (*f) () = readdir_r; | |
39511 | #endif | |
39512 | #ifdef __cplusplus | |
39513 | } | |
39514 | #endif | |
39515 | ||
39516 | int | |
39517 | main () | |
39518 | { | |
39519 | return f != readdir_r; | |
39520 | ; | |
39521 | return 0; | |
39522 | } | |
39523 | _ACEOF | |
39524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39526 | (eval $ac_link) 2>conftest.er1 | |
39527 | ac_status=$? | |
39528 | grep -v '^ *+' conftest.er1 >conftest.err | |
39529 | rm -f conftest.er1 | |
39530 | cat conftest.err >&5 | |
39531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39532 | (exit $ac_status); } && | |
3f60522a JS |
39533 | { ac_try='test -z "$ac_cxx_werror_flag" |
39534 | || test ! -s conftest.err' | |
004ee6da RL |
39535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39536 | (eval $ac_try) 2>&5 | |
39537 | ac_status=$? | |
39538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39539 | (exit $ac_status); }; } && | |
39540 | { ac_try='test -s conftest$ac_exeext' | |
39541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39542 | (eval $ac_try) 2>&5 | |
39543 | ac_status=$? | |
39544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39545 | (exit $ac_status); }; }; then | |
39546 | ac_cv_func_readdir_r=yes | |
39547 | else | |
39548 | echo "$as_me: failed program was:" >&5 | |
39549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39550 | ||
39551 | ac_cv_func_readdir_r=no | |
39552 | fi | |
39553 | rm -f conftest.err conftest.$ac_objext \ | |
39554 | conftest$ac_exeext conftest.$ac_ext | |
39555 | fi | |
39556 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
39557 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
39558 | if test $ac_cv_func_readdir_r = yes; then | |
39559 | cat >>confdefs.h <<\_ACEOF | |
39560 | #define HAVE_READDIR_R 1 | |
39561 | _ACEOF | |
39562 | ||
39563 | fi | |
39564 | ||
004ee6da | 39565 | |
004ee6da RL |
39566 | |
39567 | ||
39568 | ac_ext=c | |
39569 | ac_cpp='$CPP $CPPFLAGS' | |
39570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39573 | ||
39574 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
39575 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
39576 | ||
39577 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
39578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39579 | else | |
39580 | ||
39581 | ||
3f60522a | 39582 | ################################################################ |
004ee6da RL |
39583 | |
39584 | ac_cv_func_which_gethostbyname_r=unknown | |
39585 | ||
39586 | # | |
39587 | # ONE ARGUMENT (sanity check) | |
39588 | # | |
39589 | ||
39590 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
39591 | # a single argument. If it actually compiles, then we can assume that | |
39592 | # netdb.h is not declaring the function, and the compiler is thereby | |
39593 | # assuming an implicit prototype. In which case, we're out of luck. | |
39594 | # | |
39595 | cat >conftest.$ac_ext <<_ACEOF | |
39596 | /* confdefs.h. */ | |
39597 | _ACEOF | |
39598 | cat confdefs.h >>conftest.$ac_ext | |
39599 | cat >>conftest.$ac_ext <<_ACEOF | |
39600 | /* end confdefs.h. */ | |
39601 | #include <netdb.h> | |
39602 | int | |
39603 | main () | |
39604 | { | |
39605 | ||
39606 | char *name = "www.gnu.org"; | |
39607 | (void)gethostbyname_r(name) /* ; */ | |
39608 | ||
39609 | ; | |
39610 | return 0; | |
39611 | } | |
39612 | _ACEOF | |
39613 | rm -f conftest.$ac_objext | |
39614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39615 | (eval $ac_compile) 2>conftest.er1 | |
39616 | ac_status=$? | |
39617 | grep -v '^ *+' conftest.er1 >conftest.err | |
39618 | rm -f conftest.er1 | |
39619 | cat conftest.err >&5 | |
39620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39621 | (exit $ac_status); } && | |
3f60522a JS |
39622 | { ac_try='test -z "$ac_c_werror_flag" |
39623 | || test ! -s conftest.err' | |
004ee6da RL |
39624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39625 | (eval $ac_try) 2>&5 | |
39626 | ac_status=$? | |
39627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39628 | (exit $ac_status); }; } && | |
39629 | { ac_try='test -s conftest.$ac_objext' | |
39630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39631 | (eval $ac_try) 2>&5 | |
39632 | ac_status=$? | |
39633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39634 | (exit $ac_status); }; }; then | |
39635 | ac_cv_func_which_gethostbyname_r=no | |
39636 | else | |
39637 | echo "$as_me: failed program was:" >&5 | |
39638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39639 | ||
39640 | fi | |
39641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39642 | ||
39643 | # | |
39644 | # SIX ARGUMENTS | |
39645 | # (e.g. Linux) | |
39646 | # | |
39647 | ||
39648 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39649 | ||
39650 | cat >conftest.$ac_ext <<_ACEOF | |
39651 | /* confdefs.h. */ | |
39652 | _ACEOF | |
39653 | cat confdefs.h >>conftest.$ac_ext | |
39654 | cat >>conftest.$ac_ext <<_ACEOF | |
39655 | /* end confdefs.h. */ | |
39656 | #include <netdb.h> | |
39657 | int | |
39658 | main () | |
39659 | { | |
39660 | ||
39661 | char *name = "www.gnu.org"; | |
39662 | struct hostent ret, *retp; | |
39663 | char buf[1024]; | |
39664 | int buflen = 1024; | |
39665 | int my_h_errno; | |
39666 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
39667 | ||
39668 | ; | |
39669 | return 0; | |
39670 | } | |
39671 | _ACEOF | |
39672 | rm -f conftest.$ac_objext | |
39673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39674 | (eval $ac_compile) 2>conftest.er1 | |
39675 | ac_status=$? | |
39676 | grep -v '^ *+' conftest.er1 >conftest.err | |
39677 | rm -f conftest.er1 | |
39678 | cat conftest.err >&5 | |
39679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39680 | (exit $ac_status); } && | |
3f60522a JS |
39681 | { ac_try='test -z "$ac_c_werror_flag" |
39682 | || test ! -s conftest.err' | |
004ee6da RL |
39683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39684 | (eval $ac_try) 2>&5 | |
39685 | ac_status=$? | |
39686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39687 | (exit $ac_status); }; } && | |
39688 | { ac_try='test -s conftest.$ac_objext' | |
39689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39690 | (eval $ac_try) 2>&5 | |
39691 | ac_status=$? | |
39692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39693 | (exit $ac_status); }; }; then | |
39694 | ac_cv_func_which_gethostbyname_r=six | |
39695 | else | |
39696 | echo "$as_me: failed program was:" >&5 | |
39697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39698 | ||
39699 | fi | |
39700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39701 | ||
39702 | fi | |
39703 | ||
39704 | # | |
39705 | # FIVE ARGUMENTS | |
39706 | # (e.g. Solaris) | |
39707 | # | |
39708 | ||
39709 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39710 | ||
39711 | cat >conftest.$ac_ext <<_ACEOF | |
39712 | /* confdefs.h. */ | |
39713 | _ACEOF | |
39714 | cat confdefs.h >>conftest.$ac_ext | |
39715 | cat >>conftest.$ac_ext <<_ACEOF | |
39716 | /* end confdefs.h. */ | |
39717 | #include <netdb.h> | |
39718 | int | |
39719 | main () | |
39720 | { | |
39721 | ||
39722 | char *name = "www.gnu.org"; | |
39723 | struct hostent ret; | |
39724 | char buf[1024]; | |
39725 | int buflen = 1024; | |
39726 | int my_h_errno; | |
39727 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
39728 | ||
39729 | ; | |
39730 | return 0; | |
39731 | } | |
39732 | _ACEOF | |
39733 | rm -f conftest.$ac_objext | |
39734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39735 | (eval $ac_compile) 2>conftest.er1 | |
39736 | ac_status=$? | |
39737 | grep -v '^ *+' conftest.er1 >conftest.err | |
39738 | rm -f conftest.er1 | |
39739 | cat conftest.err >&5 | |
39740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39741 | (exit $ac_status); } && | |
3f60522a JS |
39742 | { ac_try='test -z "$ac_c_werror_flag" |
39743 | || test ! -s conftest.err' | |
004ee6da RL |
39744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39745 | (eval $ac_try) 2>&5 | |
39746 | ac_status=$? | |
39747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39748 | (exit $ac_status); }; } && | |
39749 | { ac_try='test -s conftest.$ac_objext' | |
39750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39751 | (eval $ac_try) 2>&5 | |
39752 | ac_status=$? | |
39753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39754 | (exit $ac_status); }; }; then | |
39755 | ac_cv_func_which_gethostbyname_r=five | |
39756 | else | |
39757 | echo "$as_me: failed program was:" >&5 | |
39758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39759 | ||
39760 | fi | |
39761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39762 | ||
39763 | fi | |
39764 | ||
39765 | # | |
39766 | # THREE ARGUMENTS | |
39767 | # (e.g. AIX, HP-UX, Tru64) | |
39768 | # | |
39769 | ||
39770 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39771 | ||
39772 | cat >conftest.$ac_ext <<_ACEOF | |
39773 | /* confdefs.h. */ | |
39774 | _ACEOF | |
39775 | cat confdefs.h >>conftest.$ac_ext | |
39776 | cat >>conftest.$ac_ext <<_ACEOF | |
39777 | /* end confdefs.h. */ | |
39778 | #include <netdb.h> | |
39779 | int | |
39780 | main () | |
39781 | { | |
39782 | ||
39783 | char *name = "www.gnu.org"; | |
39784 | struct hostent ret; | |
39785 | struct hostent_data data; | |
39786 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
39787 | ||
39788 | ; | |
39789 | return 0; | |
39790 | } | |
39791 | _ACEOF | |
39792 | rm -f conftest.$ac_objext | |
39793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39794 | (eval $ac_compile) 2>conftest.er1 | |
39795 | ac_status=$? | |
39796 | grep -v '^ *+' conftest.er1 >conftest.err | |
39797 | rm -f conftest.er1 | |
39798 | cat conftest.err >&5 | |
39799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39800 | (exit $ac_status); } && | |
3f60522a JS |
39801 | { ac_try='test -z "$ac_c_werror_flag" |
39802 | || test ! -s conftest.err' | |
004ee6da RL |
39803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39804 | (eval $ac_try) 2>&5 | |
39805 | ac_status=$? | |
39806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39807 | (exit $ac_status); }; } && | |
39808 | { ac_try='test -s conftest.$ac_objext' | |
39809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39810 | (eval $ac_try) 2>&5 | |
39811 | ac_status=$? | |
39812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39813 | (exit $ac_status); }; }; then | |
39814 | ac_cv_func_which_gethostbyname_r=three | |
39815 | else | |
39816 | echo "$as_me: failed program was:" >&5 | |
39817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39818 | ||
39819 | fi | |
39820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39821 | ||
39822 | fi | |
39823 | ||
3f60522a | 39824 | ################################################################ |
004ee6da RL |
39825 | |
39826 | ||
39827 | fi | |
39828 | ||
39829 | case "$ac_cv_func_which_gethostbyname_r" in | |
39830 | three) | |
39831 | echo "$as_me:$LINENO: result: three" >&5 | |
39832 | echo "${ECHO_T}three" >&6 | |
39833 | cat >>confdefs.h <<\_ACEOF | |
39834 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
39835 | _ACEOF | |
39836 | ||
39837 | ;; | |
39838 | ||
39839 | five) | |
39840 | echo "$as_me:$LINENO: result: five" >&5 | |
39841 | echo "${ECHO_T}five" >&6 | |
39842 | cat >>confdefs.h <<\_ACEOF | |
39843 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
39844 | _ACEOF | |
39845 | ||
39846 | ;; | |
39847 | ||
39848 | six) | |
39849 | echo "$as_me:$LINENO: result: six" >&5 | |
39850 | echo "${ECHO_T}six" >&6 | |
39851 | cat >>confdefs.h <<\_ACEOF | |
39852 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
39853 | _ACEOF | |
39854 | ||
39855 | ;; | |
39856 | ||
39857 | no) | |
39858 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
39859 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
39860 | ;; | |
39861 | ||
39862 | unknown) | |
39863 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
39864 | echo "${ECHO_T}can't tell" >&6 | |
39865 | ;; | |
39866 | ||
39867 | *) | |
39868 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
39869 | echo "$as_me: error: internal error" >&2;} | |
39870 | { (exit 1); exit 1; }; } | |
39871 | ;; | |
39872 | esac | |
39873 | ||
5ec3bc43 JS |
39874 | ac_ext=cc |
39875 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39876 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39877 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39878 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
004ee6da RL |
39879 | |
39880 | ||
39881 | ||
39882 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
39883 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
39884 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
39885 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
39886 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
39887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39888 | else | |
39889 | cat >conftest.$ac_ext <<_ACEOF | |
39890 | /* confdefs.h. */ | |
39891 | _ACEOF | |
39892 | cat confdefs.h >>conftest.$ac_ext | |
39893 | cat >>conftest.$ac_ext <<_ACEOF | |
39894 | /* end confdefs.h. */ | |
39895 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
39896 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39897 | #define gethostbyname innocuous_gethostbyname | |
39898 | ||
39899 | /* System header to define __stub macros and hopefully few prototypes, | |
39900 | which can conflict with char gethostbyname (); below. | |
39901 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39902 | <limits.h> exists even on freestanding compilers. */ | |
39903 | ||
39904 | #ifdef __STDC__ | |
39905 | # include <limits.h> | |
39906 | #else | |
39907 | # include <assert.h> | |
39908 | #endif | |
39909 | ||
39910 | #undef gethostbyname | |
39911 | ||
39912 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39913 | #ifdef __cplusplus | |
39914 | extern "C" | |
39915 | { | |
39916 | #endif | |
39917 | /* We use char because int might match the return type of a gcc2 | |
39918 | builtin and then its argument prototype would still apply. */ | |
39919 | char gethostbyname (); | |
39920 | /* The GNU C library defines this for functions which it implements | |
39921 | to always fail with ENOSYS. Some functions are actually named | |
39922 | something starting with __ and the normal name is an alias. */ | |
39923 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
39924 | choke me | |
39925 | #else | |
39926 | char (*f) () = gethostbyname; | |
39927 | #endif | |
39928 | #ifdef __cplusplus | |
39929 | } | |
39930 | #endif | |
39931 | ||
39932 | int | |
39933 | main () | |
39934 | { | |
39935 | return f != gethostbyname; | |
39936 | ; | |
39937 | return 0; | |
39938 | } | |
39939 | _ACEOF | |
39940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39942 | (eval $ac_link) 2>conftest.er1 | |
39943 | ac_status=$? | |
39944 | grep -v '^ *+' conftest.er1 >conftest.err | |
39945 | rm -f conftest.er1 | |
39946 | cat conftest.err >&5 | |
39947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39948 | (exit $ac_status); } && | |
3f60522a JS |
39949 | { ac_try='test -z "$ac_cxx_werror_flag" |
39950 | || test ! -s conftest.err' | |
004ee6da RL |
39951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39952 | (eval $ac_try) 2>&5 | |
39953 | ac_status=$? | |
39954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39955 | (exit $ac_status); }; } && | |
39956 | { ac_try='test -s conftest$ac_exeext' | |
39957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39958 | (eval $ac_try) 2>&5 | |
39959 | ac_status=$? | |
39960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39961 | (exit $ac_status); }; }; then | |
39962 | ac_cv_func_gethostbyname=yes | |
39963 | else | |
39964 | echo "$as_me: failed program was:" >&5 | |
39965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39966 | ||
39967 | ac_cv_func_gethostbyname=no | |
39968 | fi | |
39969 | rm -f conftest.err conftest.$ac_objext \ | |
39970 | conftest$ac_exeext conftest.$ac_ext | |
39971 | fi | |
39972 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
39973 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
39974 | if test $ac_cv_func_gethostbyname = yes; then | |
39975 | cat >>confdefs.h <<\_ACEOF | |
39976 | #define HAVE_GETHOSTBYNAME 1 | |
39977 | _ACEOF | |
39978 | ||
39979 | fi | |
39980 | ||
39981 | fi | |
39982 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
39983 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
004ee6da RL |
39984 | if test "${ac_cv_func_getservbyname_r+set}" = set; then |
39985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39986 | else | |
39987 | cat >conftest.$ac_ext <<_ACEOF | |
39988 | /* confdefs.h. */ | |
39989 | _ACEOF | |
39990 | cat confdefs.h >>conftest.$ac_ext | |
39991 | cat >>conftest.$ac_ext <<_ACEOF | |
39992 | /* end confdefs.h. */ | |
39993 | /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r. | |
39994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39995 | #define getservbyname_r innocuous_getservbyname_r | |
39996 | ||
39997 | /* System header to define __stub macros and hopefully few prototypes, | |
39998 | which can conflict with char getservbyname_r (); below. | |
39999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40000 | <limits.h> exists even on freestanding compilers. */ | |
40001 | ||
40002 | #ifdef __STDC__ | |
40003 | # include <limits.h> | |
40004 | #else | |
40005 | # include <assert.h> | |
40006 | #endif | |
40007 | ||
40008 | #undef getservbyname_r | |
40009 | ||
40010 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40011 | #ifdef __cplusplus | |
40012 | extern "C" | |
40013 | { | |
40014 | #endif | |
40015 | /* We use char because int might match the return type of a gcc2 | |
40016 | builtin and then its argument prototype would still apply. */ | |
40017 | char getservbyname_r (); | |
40018 | /* The GNU C library defines this for functions which it implements | |
40019 | to always fail with ENOSYS. Some functions are actually named | |
40020 | something starting with __ and the normal name is an alias. */ | |
40021 | #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) | |
40022 | choke me | |
40023 | #else | |
40024 | char (*f) () = getservbyname_r; | |
40025 | #endif | |
40026 | #ifdef __cplusplus | |
40027 | } | |
40028 | #endif | |
40029 | ||
40030 | int | |
40031 | main () | |
40032 | { | |
40033 | return f != getservbyname_r; | |
40034 | ; | |
40035 | return 0; | |
40036 | } | |
40037 | _ACEOF | |
40038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40040 | (eval $ac_link) 2>conftest.er1 | |
40041 | ac_status=$? | |
40042 | grep -v '^ *+' conftest.er1 >conftest.err | |
40043 | rm -f conftest.er1 | |
40044 | cat conftest.err >&5 | |
40045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40046 | (exit $ac_status); } && | |
3f60522a JS |
40047 | { ac_try='test -z "$ac_cxx_werror_flag" |
40048 | || test ! -s conftest.err' | |
004ee6da RL |
40049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40050 | (eval $ac_try) 2>&5 | |
40051 | ac_status=$? | |
40052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40053 | (exit $ac_status); }; } && | |
40054 | { ac_try='test -s conftest$ac_exeext' | |
40055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40056 | (eval $ac_try) 2>&5 | |
40057 | ac_status=$? | |
40058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40059 | (exit $ac_status); }; }; then | |
40060 | ac_cv_func_getservbyname_r=yes | |
40061 | else | |
40062 | echo "$as_me: failed program was:" >&5 | |
40063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40064 | ||
40065 | ac_cv_func_getservbyname_r=no | |
40066 | fi | |
40067 | rm -f conftest.err conftest.$ac_objext \ | |
40068 | conftest$ac_exeext conftest.$ac_ext | |
40069 | fi | |
40070 | echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5 | |
40071 | echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6 | |
40072 | if test $ac_cv_func_getservbyname_r = yes; then | |
99879bbf | 40073 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
40074 | /* confdefs.h. */ |
40075 | _ACEOF | |
40076 | cat confdefs.h >>conftest.$ac_ext | |
40077 | cat >>conftest.$ac_ext <<_ACEOF | |
40078 | /* end confdefs.h. */ | |
99879bbf | 40079 | #include <netdb.h> |
004ee6da RL |
40080 | int |
40081 | main () | |
40082 | { | |
40083 | ||
99879bbf MR |
40084 | char *name; |
40085 | char *proto; | |
40086 | struct servent *se; | |
40087 | struct servent_data data; | |
40088 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
40089 | |
40090 | ; | |
40091 | return 0; | |
40092 | } | |
40093 | _ACEOF | |
40094 | rm -f conftest.$ac_objext | |
40095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40096 | (eval $ac_compile) 2>conftest.er1 | |
40097 | ac_status=$? | |
40098 | grep -v '^ *+' conftest.er1 >conftest.err | |
40099 | rm -f conftest.er1 | |
40100 | cat conftest.err >&5 | |
40101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40102 | (exit $ac_status); } && | |
3f60522a JS |
40103 | { ac_try='test -z "$ac_cxx_werror_flag" |
40104 | || test ! -s conftest.err' | |
004ee6da RL |
40105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40106 | (eval $ac_try) 2>&5 | |
40107 | ac_status=$? | |
40108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40109 | (exit $ac_status); }; } && | |
40110 | { ac_try='test -s conftest.$ac_objext' | |
40111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40112 | (eval $ac_try) 2>&5 | |
40113 | ac_status=$? | |
40114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40115 | (exit $ac_status); }; }; then | |
40116 | ac_cv_func_which_getservbyname_r=four | |
40117 | else | |
40118 | echo "$as_me: failed program was:" >&5 | |
40119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40120 | ||
99879bbf | 40121 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
40122 | /* confdefs.h. */ |
40123 | _ACEOF | |
40124 | cat confdefs.h >>conftest.$ac_ext | |
40125 | cat >>conftest.$ac_ext <<_ACEOF | |
40126 | /* end confdefs.h. */ | |
99879bbf | 40127 | #include <netdb.h> |
004ee6da RL |
40128 | int |
40129 | main () | |
40130 | { | |
40131 | ||
99879bbf MR |
40132 | char *name; |
40133 | char *proto; | |
40134 | struct servent *se, *res; | |
40135 | char buffer[2048]; | |
40136 | int buflen = 2048; | |
40137 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res); | |
004ee6da RL |
40138 | |
40139 | ; | |
40140 | return 0; | |
40141 | } | |
40142 | _ACEOF | |
40143 | rm -f conftest.$ac_objext | |
40144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40145 | (eval $ac_compile) 2>conftest.er1 | |
40146 | ac_status=$? | |
40147 | grep -v '^ *+' conftest.er1 >conftest.err | |
40148 | rm -f conftest.er1 | |
40149 | cat conftest.err >&5 | |
40150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40151 | (exit $ac_status); } && | |
3f60522a JS |
40152 | { ac_try='test -z "$ac_cxx_werror_flag" |
40153 | || test ! -s conftest.err' | |
004ee6da RL |
40154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40155 | (eval $ac_try) 2>&5 | |
40156 | ac_status=$? | |
40157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40158 | (exit $ac_status); }; } && | |
40159 | { ac_try='test -s conftest.$ac_objext' | |
40160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40161 | (eval $ac_try) 2>&5 | |
40162 | ac_status=$? | |
40163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40164 | (exit $ac_status); }; }; then | |
40165 | ac_cv_func_which_getservbyname_r=six | |
40166 | else | |
40167 | echo "$as_me: failed program was:" >&5 | |
40168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40169 | ||
99879bbf | 40170 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
40171 | /* confdefs.h. */ |
40172 | _ACEOF | |
40173 | cat confdefs.h >>conftest.$ac_ext | |
40174 | cat >>conftest.$ac_ext <<_ACEOF | |
40175 | /* end confdefs.h. */ | |
99879bbf | 40176 | #include <netdb.h> |
004ee6da RL |
40177 | int |
40178 | main () | |
40179 | { | |
40180 | ||
99879bbf MR |
40181 | char *name; |
40182 | char *proto; | |
40183 | struct servent *se; | |
40184 | char buffer[2048]; | |
40185 | int buflen = 2048; | |
40186 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
40187 | |
40188 | ; | |
40189 | return 0; | |
40190 | } | |
40191 | _ACEOF | |
40192 | rm -f conftest.$ac_objext | |
40193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40194 | (eval $ac_compile) 2>conftest.er1 | |
40195 | ac_status=$? | |
40196 | grep -v '^ *+' conftest.er1 >conftest.err | |
40197 | rm -f conftest.er1 | |
40198 | cat conftest.err >&5 | |
40199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40200 | (exit $ac_status); } && | |
3f60522a JS |
40201 | { ac_try='test -z "$ac_cxx_werror_flag" |
40202 | || test ! -s conftest.err' | |
004ee6da RL |
40203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40204 | (eval $ac_try) 2>&5 | |
40205 | ac_status=$? | |
40206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40207 | (exit $ac_status); }; } && | |
40208 | { ac_try='test -s conftest.$ac_objext' | |
40209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40210 | (eval $ac_try) 2>&5 | |
40211 | ac_status=$? | |
40212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40213 | (exit $ac_status); }; }; then | |
40214 | ac_cv_func_which_getservbyname_r=five | |
40215 | else | |
40216 | echo "$as_me: failed program was:" >&5 | |
40217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40218 | ||
40219 | ac_cv_func_which_getservbyname_r=no | |
99879bbf | 40220 | |
004ee6da RL |
40221 | fi |
40222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40223 | ||
004ee6da RL |
40224 | fi |
40225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40226 | ||
004ee6da RL |
40227 | fi |
40228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
40229 | else |
40230 | ac_cv_func_which_getservbyname_r=no | |
40231 | fi | |
40232 | ||
004ee6da RL |
40233 | |
40234 | if test $ac_cv_func_which_getservbyname_r = six; then | |
40235 | cat >>confdefs.h <<\_ACEOF | |
40236 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
40237 | _ACEOF | |
40238 | ||
40239 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
40240 | cat >>confdefs.h <<\_ACEOF | |
40241 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
40242 | _ACEOF | |
40243 | ||
40244 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
40245 | cat >>confdefs.h <<\_ACEOF | |
40246 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
40247 | _ACEOF | |
40248 | ||
004ee6da RL |
40249 | fi |
40250 | ||
40251 | ||
40252 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
40253 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
40254 | ||
40255 | for ac_func in getservbyname | |
40256 | do | |
40257 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40258 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40259 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40260 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40262 | else | |
40263 | cat >conftest.$ac_ext <<_ACEOF | |
40264 | /* confdefs.h. */ | |
40265 | _ACEOF | |
40266 | cat confdefs.h >>conftest.$ac_ext | |
40267 | cat >>conftest.$ac_ext <<_ACEOF | |
40268 | /* end confdefs.h. */ | |
40269 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
40270 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40271 | #define $ac_func innocuous_$ac_func | |
40272 | ||
40273 | /* System header to define __stub macros and hopefully few prototypes, | |
40274 | which can conflict with char $ac_func (); below. | |
40275 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40276 | <limits.h> exists even on freestanding compilers. */ | |
40277 | ||
40278 | #ifdef __STDC__ | |
40279 | # include <limits.h> | |
40280 | #else | |
40281 | # include <assert.h> | |
40282 | #endif | |
40283 | ||
40284 | #undef $ac_func | |
40285 | ||
40286 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40287 | #ifdef __cplusplus | |
40288 | extern "C" | |
40289 | { | |
40290 | #endif | |
40291 | /* We use char because int might match the return type of a gcc2 | |
40292 | builtin and then its argument prototype would still apply. */ | |
40293 | char $ac_func (); | |
40294 | /* The GNU C library defines this for functions which it implements | |
40295 | to always fail with ENOSYS. Some functions are actually named | |
40296 | something starting with __ and the normal name is an alias. */ | |
40297 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40298 | choke me | |
40299 | #else | |
40300 | char (*f) () = $ac_func; | |
40301 | #endif | |
40302 | #ifdef __cplusplus | |
40303 | } | |
40304 | #endif | |
40305 | ||
40306 | int | |
40307 | main () | |
40308 | { | |
40309 | return f != $ac_func; | |
40310 | ; | |
40311 | return 0; | |
40312 | } | |
40313 | _ACEOF | |
40314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40316 | (eval $ac_link) 2>conftest.er1 | |
40317 | ac_status=$? | |
40318 | grep -v '^ *+' conftest.er1 >conftest.err | |
40319 | rm -f conftest.er1 | |
40320 | cat conftest.err >&5 | |
40321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40322 | (exit $ac_status); } && | |
3f60522a JS |
40323 | { ac_try='test -z "$ac_cxx_werror_flag" |
40324 | || test ! -s conftest.err' | |
004ee6da RL |
40325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40326 | (eval $ac_try) 2>&5 | |
40327 | ac_status=$? | |
40328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40329 | (exit $ac_status); }; } && | |
40330 | { ac_try='test -s conftest$ac_exeext' | |
40331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40332 | (eval $ac_try) 2>&5 | |
40333 | ac_status=$? | |
40334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40335 | (exit $ac_status); }; }; then | |
40336 | eval "$as_ac_var=yes" | |
40337 | else | |
40338 | echo "$as_me: failed program was:" >&5 | |
40339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40340 | ||
40341 | eval "$as_ac_var=no" | |
40342 | fi | |
40343 | rm -f conftest.err conftest.$ac_objext \ | |
40344 | conftest$ac_exeext conftest.$ac_ext | |
40345 | fi | |
40346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40347 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40348 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40349 | cat >>confdefs.h <<_ACEOF | |
40350 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40351 | _ACEOF | |
40352 | cat >>confdefs.h <<\_ACEOF | |
40353 | #define HAVE_GETSERVBYNAME 1 | |
40354 | _ACEOF | |
40355 | ||
40356 | fi | |
40357 | done | |
40358 | ||
40359 | fi | |
40360 | ||
004ee6da RL |
40361 | if test "$wxUSE_THREADS" = "yes"; then |
40362 | cat >>confdefs.h <<\_ACEOF | |
40363 | #define wxUSE_THREADS 1 | |
40364 | _ACEOF | |
40365 | ||
40366 | ||
40367 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
40368 | else | |
40369 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
40370 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
40371 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
40372 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
40373 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
40374 | echo "$as_me:$LINENO: result: yes" >&5 | |
40375 | echo "${ECHO_T}yes" >&6 | |
40376 | else | |
40377 | echo "$as_me:$LINENO: result: no" >&5 | |
40378 | echo "${ECHO_T}no" >&6 | |
40379 | fi | |
40380 | fi | |
40381 | fi | |
40382 | ||
40383 | if test "$WXGTK20" = 1 ; then | |
40384 | cat >>confdefs.h <<_ACEOF | |
40385 | #define __WXGTK20__ $WXGTK20 | |
40386 | _ACEOF | |
40387 | ||
40388 | WXGTK12=1 | |
40389 | fi | |
40390 | ||
40391 | if test "$WXGTK12" = 1 ; then | |
40392 | cat >>confdefs.h <<_ACEOF | |
40393 | #define __WXGTK12__ $WXGTK12 | |
40394 | _ACEOF | |
40395 | ||
40396 | fi | |
40397 | ||
40398 | if test "$WXGTK127" = 1 ; then | |
40399 | cat >>confdefs.h <<_ACEOF | |
40400 | #define __WXGTK127__ $WXGTK127 | |
40401 | _ACEOF | |
40402 | ||
40403 | fi | |
40404 | ||
40405 | if test "$WXGPE" = 1 ; then | |
40406 | cat >>confdefs.h <<_ACEOF | |
40407 | #define __WXGPE__ $WXGPE | |
40408 | _ACEOF | |
40409 | ||
40410 | fi | |
40411 | ||
40412 | DEBUG_CFLAGS= | |
40413 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
40414 | DEBUG_CFLAGS="-g" | |
40415 | wxUSE_OPTIMISE=no | |
40416 | fi | |
40417 | ||
40418 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
40419 | wxUSE_DEBUG_INFO=yes | |
40420 | if test "$GCC" = yes; then | |
40421 | DEBUG_CFLAGS="-ggdb" | |
40422 | fi | |
40423 | fi | |
40424 | ||
40425 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
40426 | cat >>confdefs.h <<\_ACEOF | |
40427 | #define WXDEBUG 1 | |
40428 | _ACEOF | |
40429 | ||
40430 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
40431 | else | |
40432 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
40433 | if test "x$wxGTK_VERSION" = "x1" ; then |
40434 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
40435 | fi | |
004ee6da RL |
40436 | fi |
40437 | fi | |
40438 | ||
40439 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
40440 | cat >>confdefs.h <<\_ACEOF | |
40441 | #define wxUSE_MEMORY_TRACING 1 | |
40442 | _ACEOF | |
40443 | ||
40444 | cat >>confdefs.h <<\_ACEOF | |
40445 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
40446 | _ACEOF | |
40447 | ||
40448 | cat >>confdefs.h <<\_ACEOF | |
40449 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
40450 | _ACEOF | |
40451 | ||
40452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
40453 | fi | |
40454 | ||
40455 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
40456 | DMALLOC_LIBS="-ldmallocthcxx" | |
40457 | fi | |
40458 | ||
40459 | PROFILE_FLAGS= | |
40460 | if test "$wxUSE_PROFILE" = "yes" ; then | |
40461 | PROFILE_FLAGS=" -pg" | |
40462 | fi | |
40463 | ||
40464 | if test "$GCC" = "yes" ; then | |
40465 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
40466 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
40467 | fi | |
40468 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
40469 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
40470 | fi | |
40471 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
40472 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
40473 | fi | |
40474 | ||
40475 | case "${host}" in | |
40476 | powerpc*-*-aix* ) | |
40477 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
40478 | ;; | |
40479 | *-hppa* ) | |
40480 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
40481 | ;; | |
40482 | esac | |
40483 | fi | |
40484 | ||
40485 | OPTIMISE_CFLAGS= | |
40486 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
40487 | if test "$GCC" = yes ; then | |
40488 | OPTIMISE_CFLAGS="-O0" | |
40489 | fi | |
40490 | else | |
40491 | if test "$GCC" = yes ; then | |
e5efa97e VZ |
40492 | case "${host}" in |
40493 | *-pc-os2_emx | *-pc-os2-emx ) | |
40494 | OPTIMISE_CFLAGS="-O2" | |
40495 | ;; | |
40496 | *) | |
40497 | OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing" | |
40498 | ;; | |
40499 | esac | |
004ee6da RL |
40500 | else |
40501 | OPTIMISE_CFLAGS="-O" | |
40502 | fi | |
40503 | fi | |
40504 | ||
40505 | ||
40506 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
40507 | cat >>confdefs.h <<\_ACEOF | |
40508 | #define WXWIN_COMPATIBILITY_2_4 1 | |
40509 | _ACEOF | |
40510 | ||
40511 | ||
40512 | WXWIN_COMPATIBILITY_2_6="yes" | |
40513 | fi | |
40514 | ||
40515 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
40516 | cat >>confdefs.h <<\_ACEOF | |
40517 | #define WXWIN_COMPATIBILITY_2_6 1 | |
40518 | _ACEOF | |
40519 | ||
40520 | fi | |
40521 | ||
40522 | ||
40523 | if test "$wxUSE_GUI" = "yes"; then | |
40524 | cat >>confdefs.h <<\_ACEOF | |
40525 | #define wxUSE_GUI 1 | |
40526 | _ACEOF | |
40527 | ||
40528 | ||
40529 | fi | |
40530 | ||
40531 | ||
40532 | if test "$wxUSE_UNIX" = "yes"; then | |
40533 | cat >>confdefs.h <<\_ACEOF | |
40534 | #define wxUSE_UNIX 1 | |
40535 | _ACEOF | |
40536 | ||
40537 | fi | |
40538 | ||
40539 | ||
40540 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
40541 | ||
40542 | HAVE_DL_FUNCS=0 | |
40543 | HAVE_SHL_FUNCS=0 | |
40544 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40545 | if test "$USE_DARWIN" = 1; then | |
40546 | HAVE_DL_FUNCS=1 | |
40547 | elif test "$USE_DOS" = 1; then | |
40548 | HAVE_DL_FUNCS=0 | |
40549 | else | |
40550 | ||
40551 | for ac_func in dlopen | |
40552 | do | |
40553 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40554 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40555 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40556 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40558 | else | |
40559 | cat >conftest.$ac_ext <<_ACEOF | |
40560 | /* confdefs.h. */ | |
40561 | _ACEOF | |
40562 | cat confdefs.h >>conftest.$ac_ext | |
40563 | cat >>conftest.$ac_ext <<_ACEOF | |
40564 | /* end confdefs.h. */ | |
40565 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
40566 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40567 | #define $ac_func innocuous_$ac_func | |
40568 | ||
40569 | /* System header to define __stub macros and hopefully few prototypes, | |
40570 | which can conflict with char $ac_func (); below. | |
40571 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40572 | <limits.h> exists even on freestanding compilers. */ | |
40573 | ||
40574 | #ifdef __STDC__ | |
40575 | # include <limits.h> | |
40576 | #else | |
40577 | # include <assert.h> | |
40578 | #endif | |
40579 | ||
40580 | #undef $ac_func | |
40581 | ||
40582 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40583 | #ifdef __cplusplus | |
40584 | extern "C" | |
40585 | { | |
40586 | #endif | |
40587 | /* We use char because int might match the return type of a gcc2 | |
40588 | builtin and then its argument prototype would still apply. */ | |
40589 | char $ac_func (); | |
40590 | /* The GNU C library defines this for functions which it implements | |
40591 | to always fail with ENOSYS. Some functions are actually named | |
40592 | something starting with __ and the normal name is an alias. */ | |
40593 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40594 | choke me | |
40595 | #else | |
40596 | char (*f) () = $ac_func; | |
40597 | #endif | |
40598 | #ifdef __cplusplus | |
40599 | } | |
40600 | #endif | |
40601 | ||
40602 | int | |
40603 | main () | |
40604 | { | |
40605 | return f != $ac_func; | |
a848cd7e SC |
40606 | ; |
40607 | return 0; | |
40608 | } | |
40609 | _ACEOF | |
40610 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40612 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40613 | ac_status=$? |
ac1cb8d3 VS |
40614 | grep -v '^ *+' conftest.er1 >conftest.err |
40615 | rm -f conftest.er1 | |
40616 | cat conftest.err >&5 | |
a848cd7e SC |
40617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40618 | (exit $ac_status); } && | |
3f60522a JS |
40619 | { ac_try='test -z "$ac_cxx_werror_flag" |
40620 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40622 | (eval $ac_try) 2>&5 | |
40623 | ac_status=$? | |
40624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40625 | (exit $ac_status); }; } && | |
40626 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40628 | (eval $ac_try) 2>&5 | |
40629 | ac_status=$? | |
40630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40631 | (exit $ac_status); }; }; then | |
40632 | eval "$as_ac_var=yes" | |
40633 | else | |
40634 | echo "$as_me: failed program was:" >&5 | |
40635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40636 | ||
40637 | eval "$as_ac_var=no" | |
40638 | fi | |
ac1cb8d3 VS |
40639 | rm -f conftest.err conftest.$ac_objext \ |
40640 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40641 | fi |
40642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40643 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40644 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40645 | cat >>confdefs.h <<_ACEOF | |
40646 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40647 | _ACEOF | |
40648 | ||
40649 | cat >>confdefs.h <<\_ACEOF | |
40650 | #define HAVE_DLOPEN 1 | |
40651 | _ACEOF | |
40652 | ||
40653 | HAVE_DL_FUNCS=1 | |
40654 | ||
40655 | else | |
40656 | ||
40657 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
40658 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
40659 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
40660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40661 | else | |
40662 | ac_check_lib_save_LIBS=$LIBS | |
40663 | LIBS="-ldl $LIBS" | |
40664 | cat >conftest.$ac_ext <<_ACEOF | |
40665 | /* confdefs.h. */ | |
40666 | _ACEOF | |
40667 | cat confdefs.h >>conftest.$ac_ext | |
40668 | cat >>conftest.$ac_ext <<_ACEOF | |
40669 | /* end confdefs.h. */ | |
40670 | ||
40671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40672 | #ifdef __cplusplus | |
40673 | extern "C" | |
40674 | #endif | |
40675 | /* We use char because int might match the return type of a gcc2 | |
40676 | builtin and then its argument prototype would still apply. */ | |
40677 | char dlopen (); | |
40678 | int | |
40679 | main () | |
40680 | { | |
40681 | dlopen (); | |
40682 | ; | |
40683 | return 0; | |
40684 | } | |
40685 | _ACEOF | |
40686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40688 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40689 | ac_status=$? |
ac1cb8d3 VS |
40690 | grep -v '^ *+' conftest.er1 >conftest.err |
40691 | rm -f conftest.er1 | |
40692 | cat conftest.err >&5 | |
a848cd7e SC |
40693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40694 | (exit $ac_status); } && | |
3f60522a JS |
40695 | { ac_try='test -z "$ac_cxx_werror_flag" |
40696 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40698 | (eval $ac_try) 2>&5 | |
40699 | ac_status=$? | |
40700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40701 | (exit $ac_status); }; } && | |
40702 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40704 | (eval $ac_try) 2>&5 | |
40705 | ac_status=$? | |
40706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40707 | (exit $ac_status); }; }; then | |
40708 | ac_cv_lib_dl_dlopen=yes | |
40709 | else | |
40710 | echo "$as_me: failed program was:" >&5 | |
40711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40712 | ||
40713 | ac_cv_lib_dl_dlopen=no | |
40714 | fi | |
ac1cb8d3 VS |
40715 | rm -f conftest.err conftest.$ac_objext \ |
40716 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40717 | LIBS=$ac_check_lib_save_LIBS |
40718 | fi | |
40719 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
40720 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
40721 | if test $ac_cv_lib_dl_dlopen = yes; then | |
40722 | ||
40723 | cat >>confdefs.h <<\_ACEOF | |
40724 | #define HAVE_DLOPEN 1 | |
40725 | _ACEOF | |
40726 | ||
40727 | HAVE_DL_FUNCS=1 | |
40728 | DL_LINK=" -ldl$DL_LINK" | |
40729 | ||
40730 | else | |
40731 | ||
40732 | ||
40733 | for ac_func in shl_load | |
40734 | do | |
40735 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40736 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40737 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40738 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40740 | else | |
40741 | cat >conftest.$ac_ext <<_ACEOF | |
40742 | /* confdefs.h. */ | |
40743 | _ACEOF | |
40744 | cat confdefs.h >>conftest.$ac_ext | |
40745 | cat >>conftest.$ac_ext <<_ACEOF | |
40746 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40747 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40748 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40749 | #define $ac_func innocuous_$ac_func | |
40750 | ||
a848cd7e SC |
40751 | /* System header to define __stub macros and hopefully few prototypes, |
40752 | which can conflict with char $ac_func (); below. | |
40753 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40754 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40755 | |
a848cd7e SC |
40756 | #ifdef __STDC__ |
40757 | # include <limits.h> | |
40758 | #else | |
40759 | # include <assert.h> | |
40760 | #endif | |
ac1cb8d3 VS |
40761 | |
40762 | #undef $ac_func | |
40763 | ||
a848cd7e SC |
40764 | /* Override any gcc2 internal prototype to avoid an error. */ |
40765 | #ifdef __cplusplus | |
40766 | extern "C" | |
40767 | { | |
40768 | #endif | |
40769 | /* We use char because int might match the return type of a gcc2 | |
40770 | builtin and then its argument prototype would still apply. */ | |
40771 | char $ac_func (); | |
40772 | /* The GNU C library defines this for functions which it implements | |
40773 | to always fail with ENOSYS. Some functions are actually named | |
40774 | something starting with __ and the normal name is an alias. */ | |
40775 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40776 | choke me | |
40777 | #else | |
40778 | char (*f) () = $ac_func; | |
40779 | #endif | |
40780 | #ifdef __cplusplus | |
40781 | } | |
40782 | #endif | |
40783 | ||
40784 | int | |
40785 | main () | |
40786 | { | |
40787 | return f != $ac_func; | |
40788 | ; | |
40789 | return 0; | |
40790 | } | |
40791 | _ACEOF | |
40792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40794 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40795 | ac_status=$? |
ac1cb8d3 VS |
40796 | grep -v '^ *+' conftest.er1 >conftest.err |
40797 | rm -f conftest.er1 | |
40798 | cat conftest.err >&5 | |
a848cd7e SC |
40799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40800 | (exit $ac_status); } && | |
3f60522a JS |
40801 | { ac_try='test -z "$ac_cxx_werror_flag" |
40802 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40804 | (eval $ac_try) 2>&5 | |
40805 | ac_status=$? | |
40806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40807 | (exit $ac_status); }; } && | |
40808 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40810 | (eval $ac_try) 2>&5 | |
40811 | ac_status=$? | |
40812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40813 | (exit $ac_status); }; }; then | |
40814 | eval "$as_ac_var=yes" | |
40815 | else | |
40816 | echo "$as_me: failed program was:" >&5 | |
40817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40818 | ||
40819 | eval "$as_ac_var=no" | |
40820 | fi | |
ac1cb8d3 VS |
40821 | rm -f conftest.err conftest.$ac_objext \ |
40822 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40823 | fi |
40824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40825 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40826 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40827 | cat >>confdefs.h <<_ACEOF | |
40828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40829 | _ACEOF | |
40830 | ||
40831 | cat >>confdefs.h <<\_ACEOF | |
40832 | #define HAVE_SHL_LOAD 1 | |
40833 | _ACEOF | |
40834 | ||
40835 | HAVE_SHL_FUNCS=1 | |
40836 | ||
40837 | else | |
40838 | ||
40839 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
40840 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
40841 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
40842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40843 | else | |
40844 | ac_check_lib_save_LIBS=$LIBS | |
40845 | LIBS="-lshl_load $LIBS" | |
40846 | cat >conftest.$ac_ext <<_ACEOF | |
40847 | /* confdefs.h. */ | |
40848 | _ACEOF | |
40849 | cat confdefs.h >>conftest.$ac_ext | |
40850 | cat >>conftest.$ac_ext <<_ACEOF | |
40851 | /* end confdefs.h. */ | |
40852 | ||
40853 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40854 | #ifdef __cplusplus | |
40855 | extern "C" | |
40856 | #endif | |
40857 | /* We use char because int might match the return type of a gcc2 | |
40858 | builtin and then its argument prototype would still apply. */ | |
40859 | char dld (); | |
40860 | int | |
40861 | main () | |
40862 | { | |
40863 | dld (); | |
40864 | ; | |
40865 | return 0; | |
40866 | } | |
40867 | _ACEOF | |
40868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40870 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40871 | ac_status=$? |
ac1cb8d3 VS |
40872 | grep -v '^ *+' conftest.er1 >conftest.err |
40873 | rm -f conftest.er1 | |
40874 | cat conftest.err >&5 | |
a848cd7e SC |
40875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40876 | (exit $ac_status); } && | |
3f60522a JS |
40877 | { ac_try='test -z "$ac_cxx_werror_flag" |
40878 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40880 | (eval $ac_try) 2>&5 | |
40881 | ac_status=$? | |
40882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40883 | (exit $ac_status); }; } && | |
40884 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40886 | (eval $ac_try) 2>&5 | |
40887 | ac_status=$? | |
40888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40889 | (exit $ac_status); }; }; then | |
40890 | ac_cv_lib_shl_load_dld=yes | |
40891 | else | |
40892 | echo "$as_me: failed program was:" >&5 | |
40893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40894 | ||
40895 | ac_cv_lib_shl_load_dld=no | |
40896 | fi | |
ac1cb8d3 VS |
40897 | rm -f conftest.err conftest.$ac_objext \ |
40898 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40899 | LIBS=$ac_check_lib_save_LIBS |
40900 | fi | |
40901 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
40902 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
40903 | if test $ac_cv_lib_shl_load_dld = yes; then | |
40904 | ||
40905 | HAVE_SHL_FUNCS=1 | |
40906 | DL_LINK=" -ldld$DL_LINK" | |
40907 | ||
40908 | fi | |
40909 | ||
40910 | ||
40911 | fi | |
40912 | done | |
40913 | ||
40914 | ||
40915 | fi | |
40916 | ||
40917 | ||
40918 | fi | |
40919 | done | |
40920 | ||
40921 | ||
40922 | if test "$HAVE_DL_FUNCS" = 1; then | |
40923 | ||
40924 | for ac_func in dlerror | |
40925 | do | |
40926 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40927 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40928 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40929 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40931 | else | |
40932 | cat >conftest.$ac_ext <<_ACEOF | |
40933 | /* confdefs.h. */ | |
40934 | _ACEOF | |
40935 | cat confdefs.h >>conftest.$ac_ext | |
40936 | cat >>conftest.$ac_ext <<_ACEOF | |
40937 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40938 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40939 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40940 | #define $ac_func innocuous_$ac_func | |
40941 | ||
a848cd7e SC |
40942 | /* System header to define __stub macros and hopefully few prototypes, |
40943 | which can conflict with char $ac_func (); below. | |
40944 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40945 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40946 | |
a848cd7e SC |
40947 | #ifdef __STDC__ |
40948 | # include <limits.h> | |
40949 | #else | |
40950 | # include <assert.h> | |
40951 | #endif | |
ac1cb8d3 VS |
40952 | |
40953 | #undef $ac_func | |
40954 | ||
a848cd7e SC |
40955 | /* Override any gcc2 internal prototype to avoid an error. */ |
40956 | #ifdef __cplusplus | |
40957 | extern "C" | |
40958 | { | |
40959 | #endif | |
40960 | /* We use char because int might match the return type of a gcc2 | |
40961 | builtin and then its argument prototype would still apply. */ | |
40962 | char $ac_func (); | |
40963 | /* The GNU C library defines this for functions which it implements | |
40964 | to always fail with ENOSYS. Some functions are actually named | |
40965 | something starting with __ and the normal name is an alias. */ | |
40966 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40967 | choke me | |
40968 | #else | |
40969 | char (*f) () = $ac_func; | |
40970 | #endif | |
40971 | #ifdef __cplusplus | |
40972 | } | |
40973 | #endif | |
40974 | ||
40975 | int | |
40976 | main () | |
40977 | { | |
40978 | return f != $ac_func; | |
40979 | ; | |
40980 | return 0; | |
40981 | } | |
40982 | _ACEOF | |
40983 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40985 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40986 | ac_status=$? |
ac1cb8d3 VS |
40987 | grep -v '^ *+' conftest.er1 >conftest.err |
40988 | rm -f conftest.er1 | |
40989 | cat conftest.err >&5 | |
a848cd7e SC |
40990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40991 | (exit $ac_status); } && | |
3f60522a JS |
40992 | { ac_try='test -z "$ac_cxx_werror_flag" |
40993 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40995 | (eval $ac_try) 2>&5 | |
40996 | ac_status=$? | |
40997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40998 | (exit $ac_status); }; } && | |
40999 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41001 | (eval $ac_try) 2>&5 | |
41002 | ac_status=$? | |
41003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41004 | (exit $ac_status); }; }; then | |
41005 | eval "$as_ac_var=yes" | |
41006 | else | |
41007 | echo "$as_me: failed program was:" >&5 | |
41008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41009 | ||
41010 | eval "$as_ac_var=no" | |
41011 | fi | |
ac1cb8d3 VS |
41012 | rm -f conftest.err conftest.$ac_objext \ |
41013 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41014 | fi |
41015 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41016 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41017 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41018 | cat >>confdefs.h <<_ACEOF | |
41019 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41020 | _ACEOF | |
41021 | cat >>confdefs.h <<\_ACEOF | |
41022 | #define HAVE_DLERROR 1 | |
41023 | _ACEOF | |
41024 | ||
41025 | else | |
41026 | ||
41027 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
41028 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
41029 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
41030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41031 | else | |
41032 | ac_check_lib_save_LIBS=$LIBS | |
41033 | LIBS="-ldl $LIBS" | |
41034 | cat >conftest.$ac_ext <<_ACEOF | |
41035 | /* confdefs.h. */ | |
41036 | _ACEOF | |
41037 | cat confdefs.h >>conftest.$ac_ext | |
41038 | cat >>conftest.$ac_ext <<_ACEOF | |
41039 | /* end confdefs.h. */ | |
41040 | ||
41041 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41042 | #ifdef __cplusplus | |
41043 | extern "C" | |
41044 | #endif | |
41045 | /* We use char because int might match the return type of a gcc2 | |
41046 | builtin and then its argument prototype would still apply. */ | |
41047 | char dlerror (); | |
41048 | int | |
41049 | main () | |
41050 | { | |
41051 | dlerror (); | |
41052 | ; | |
41053 | return 0; | |
41054 | } | |
41055 | _ACEOF | |
41056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41058 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41059 | ac_status=$? |
ac1cb8d3 VS |
41060 | grep -v '^ *+' conftest.er1 >conftest.err |
41061 | rm -f conftest.er1 | |
41062 | cat conftest.err >&5 | |
a848cd7e SC |
41063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41064 | (exit $ac_status); } && | |
3f60522a JS |
41065 | { ac_try='test -z "$ac_cxx_werror_flag" |
41066 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41068 | (eval $ac_try) 2>&5 | |
41069 | ac_status=$? | |
41070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41071 | (exit $ac_status); }; } && | |
41072 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41074 | (eval $ac_try) 2>&5 | |
41075 | ac_status=$? | |
41076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41077 | (exit $ac_status); }; }; then | |
41078 | ac_cv_lib_dl_dlerror=yes | |
41079 | else | |
41080 | echo "$as_me: failed program was:" >&5 | |
41081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41082 | ||
41083 | ac_cv_lib_dl_dlerror=no | |
41084 | fi | |
ac1cb8d3 VS |
41085 | rm -f conftest.err conftest.$ac_objext \ |
41086 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41087 | LIBS=$ac_check_lib_save_LIBS |
41088 | fi | |
41089 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
41090 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
41091 | if test $ac_cv_lib_dl_dlerror = yes; then | |
41092 | cat >>confdefs.h <<\_ACEOF | |
41093 | #define HAVE_DLERROR 1 | |
41094 | _ACEOF | |
41095 | ||
41096 | fi | |
41097 | ||
41098 | ||
41099 | ||
41100 | fi | |
41101 | done | |
41102 | ||
41103 | fi | |
41104 | fi | |
41105 | ||
41106 | if test "$HAVE_DL_FUNCS" = 0; then | |
41107 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 41108 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
41109 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
41110 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
41111 | wxUSE_DYNAMIC_LOADER=no | |
41112 | wxUSE_DYNLIB_CLASS=no | |
41113 | else | |
41114 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
41115 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
41116 | fi | |
41117 | fi | |
41118 | fi | |
41119 | fi | |
41120 | fi | |
41121 | ||
41122 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
41123 | cat >>confdefs.h <<\_ACEOF | |
41124 | #define wxUSE_DYNAMIC_LOADER 1 | |
41125 | _ACEOF | |
41126 | ||
41127 | fi | |
41128 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
41129 | cat >>confdefs.h <<\_ACEOF | |
41130 | #define wxUSE_DYNLIB_CLASS 1 | |
41131 | _ACEOF | |
41132 | ||
41133 | fi | |
41134 | ||
41135 | ||
41136 | ||
41137 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
41138 | if test "$wxUSE_SHARED" = "no" ; then | |
41139 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
41140 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
41141 | wxUSE_PLUGINS=no | |
41142 | fi | |
41143 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
41144 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
41145 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
41146 | wxUSE_PLUGINS=no | |
41147 | fi | |
41148 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
41149 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
41150 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
41151 | wxUSE_PLUGINS=no | |
41152 | fi | |
41153 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
41154 | cat >>confdefs.h <<\_ACEOF | |
41155 | #define wxUSE_PLUGINS 1 | |
41156 | _ACEOF | |
41157 | ||
41158 | fi | |
41159 | fi | |
41160 | ||
41161 | ||
41162 | if test "$wxUSE_STL" = "yes"; then | |
41163 | cat >>confdefs.h <<\_ACEOF | |
41164 | #define wxUSE_STL 1 | |
41165 | _ACEOF | |
41166 | ||
41167 | fi | |
41168 | ||
41169 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
41170 | cat >>confdefs.h <<\_ACEOF | |
41171 | #define wxUSE_APPLE_IEEE 1 | |
41172 | _ACEOF | |
41173 | ||
41174 | fi | |
41175 | ||
41176 | if test "$wxUSE_TIMER" = "yes"; then | |
41177 | cat >>confdefs.h <<\_ACEOF | |
41178 | #define wxUSE_TIMER 1 | |
41179 | _ACEOF | |
41180 | ||
41181 | fi | |
41182 | ||
9c112555 | 41183 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
41184 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
41185 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
41186 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 41187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 41188 | else |
d12aef51 VZ |
41189 | |
41190 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
41191 | /* confdefs.h. */ |
41192 | _ACEOF | |
41193 | cat confdefs.h >>conftest.$ac_ext | |
41194 | cat >>conftest.$ac_ext <<_ACEOF | |
41195 | /* end confdefs.h. */ | |
d12aef51 VZ |
41196 | |
41197 | #include <sys/soundcard.h> | |
41198 | ||
41199 | int | |
41200 | main () | |
41201 | { | |
41202 | ||
41203 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
41204 | ||
41205 | ; | |
41206 | return 0; | |
41207 | } | |
a848cd7e | 41208 | _ACEOF |
d12aef51 VZ |
41209 | rm -f conftest.$ac_objext conftest$ac_exeext |
41210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41211 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 41212 | ac_status=$? |
ac1cb8d3 VS |
41213 | grep -v '^ *+' conftest.er1 >conftest.err |
41214 | rm -f conftest.er1 | |
41215 | cat conftest.err >&5 | |
a848cd7e SC |
41216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41217 | (exit $ac_status); } && | |
3f60522a JS |
41218 | { ac_try='test -z "$ac_cxx_werror_flag" |
41219 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41221 | (eval $ac_try) 2>&5 | |
41222 | ac_status=$? | |
41223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41224 | (exit $ac_status); }; } && | |
d12aef51 | 41225 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
41226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41227 | (eval $ac_try) 2>&5 | |
41228 | ac_status=$? | |
41229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41230 | (exit $ac_status); }; }; then | |
d12aef51 | 41231 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
41232 | else |
41233 | echo "$as_me: failed program was:" >&5 | |
41234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41235 | ||
a848cd7e | 41236 | |
d12aef51 VZ |
41237 | saveLibs="$LIBS" |
41238 | LIBS="$saveLibs -lossaudio" | |
41239 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
41240 | /* confdefs.h. */ |
41241 | _ACEOF | |
41242 | cat confdefs.h >>conftest.$ac_ext | |
41243 | cat >>conftest.$ac_ext <<_ACEOF | |
41244 | /* end confdefs.h. */ | |
d12aef51 VZ |
41245 | |
41246 | #include <sys/soundcard.h> | |
41247 | ||
41248 | int | |
41249 | main () | |
41250 | { | |
41251 | ||
41252 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
41253 | ||
41254 | ; | |
41255 | return 0; | |
41256 | } | |
a848cd7e | 41257 | _ACEOF |
d12aef51 VZ |
41258 | rm -f conftest.$ac_objext conftest$ac_exeext |
41259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41260 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
41261 | ac_status=$? |
41262 | grep -v '^ *+' conftest.er1 >conftest.err | |
41263 | rm -f conftest.er1 | |
41264 | cat conftest.err >&5 | |
41265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 41266 | (exit $ac_status); } && |
3f60522a JS |
41267 | { ac_try='test -z "$ac_cxx_werror_flag" |
41268 | || test ! -s conftest.err' | |
d12aef51 VZ |
41269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41270 | (eval $ac_try) 2>&5 | |
41271 | ac_status=$? | |
41272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41273 | (exit $ac_status); }; } && | |
41274 | { ac_try='test -s conftest$ac_exeext' | |
41275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41276 | (eval $ac_try) 2>&5 | |
41277 | ac_status=$? | |
41278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41279 | (exit $ac_status); }; }; then | |
41280 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
41281 | else |
41282 | echo "$as_me: failed program was:" >&5 | |
41283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41284 | ||
a848cd7e | 41285 | |
d12aef51 VZ |
41286 | LIBS="$saveLibs" |
41287 | ac_cv_header_sys_soundcard=no | |
41288 | ||
41289 | ||
a848cd7e | 41290 | fi |
d12aef51 VZ |
41291 | rm -f conftest.err conftest.$ac_objext \ |
41292 | conftest$ac_exeext conftest.$ac_ext | |
41293 | ||
a848cd7e SC |
41294 | |
41295 | fi | |
d12aef51 VZ |
41296 | rm -f conftest.err conftest.$ac_objext \ |
41297 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41298 | |
41299 | fi | |
d12aef51 VZ |
41300 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
41301 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 41302 | |
d12aef51 VZ |
41303 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
41304 | cat >>confdefs.h <<\_ACEOF | |
41305 | #define HAVE_SYS_SOUNDCARD_H 1 | |
41306 | _ACEOF | |
a848cd7e | 41307 | |
d12aef51 VZ |
41308 | else |
41309 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
41310 | fi | |
9c112555 MW |
41311 | fi |
41312 | WITH_PLUGIN_SDL=0 | |
41313 | if test "$wxUSE_SOUND" = "yes"; then | |
41314 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
41315 | if test "$wxUSE_LIBSDL" != "no"; then |
41316 | ||
41317 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
41318 | if test "${with_sdl_prefix+set}" = set; then | |
41319 | withval="$with_sdl_prefix" | |
41320 | sdl_prefix="$withval" | |
41321 | else | |
41322 | sdl_prefix="" | |
41323 | fi; | |
41324 | ||
41325 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
41326 | if test "${with_sdl_exec_prefix+set}" = set; then | |
41327 | withval="$with_sdl_exec_prefix" | |
41328 | sdl_exec_prefix="$withval" | |
41329 | else | |
41330 | sdl_exec_prefix="" | |
41331 | fi; | |
41332 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
41333 | if test "${enable_sdltest+set}" = set; then | |
41334 | enableval="$enable_sdltest" | |
41335 | ||
41336 | else | |
41337 | enable_sdltest=yes | |
41338 | fi; | |
41339 | ||
41340 | if test x$sdl_exec_prefix != x ; then | |
41341 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
41342 | if test x${SDL_CONFIG+set} != xset ; then | |
41343 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
41344 | fi | |
41345 | fi | |
41346 | if test x$sdl_prefix != x ; then | |
41347 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
41348 | if test x${SDL_CONFIG+set} != xset ; then | |
41349 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
41350 | fi | |
41351 | fi | |
41352 | ||
41353 | ||
41354 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
41355 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
41356 | set dummy sdl-config; ac_word=$2 | |
41357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41359 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
41360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41361 | else | |
41362 | case $SDL_CONFIG in | |
41363 | [\\/]* | ?:[\\/]*) | |
41364 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
41365 | ;; | |
41366 | *) | |
41367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41368 | for as_dir in $PATH | |
41369 | do | |
41370 | IFS=$as_save_IFS | |
41371 | test -z "$as_dir" && as_dir=. | |
41372 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41373 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41374 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41375 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41376 | break 2 | |
41377 | fi | |
41378 | done | |
41379 | done | |
41380 | ||
41381 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
41382 | ;; | |
41383 | esac | |
41384 | fi | |
41385 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
41386 | ||
41387 | if test -n "$SDL_CONFIG"; then | |
41388 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
41389 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
41390 | else | |
41391 | echo "$as_me:$LINENO: result: no" >&5 | |
41392 | echo "${ECHO_T}no" >&6 | |
41393 | fi | |
41394 | ||
41395 | min_sdl_version=1.2.0 | |
41396 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
41397 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
41398 | no_sdl="" | |
41399 | if test "$SDL_CONFIG" = "no" ; then | |
41400 | no_sdl=yes | |
41401 | else | |
41402 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
41403 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
41404 | ||
41405 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
41406 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41407 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
41408 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41409 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
41410 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41411 | if test "x$enable_sdltest" = "xyes" ; then | |
41412 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 41413 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
41414 | ac_save_LIBS="$LIBS" |
41415 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 41416 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
41417 | LIBS="$LIBS $SDL_LIBS" |
41418 | rm -f conf.sdltest | |
41419 | if test "$cross_compiling" = yes; then | |
41420 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
41421 | else | |
41422 | cat >conftest.$ac_ext <<_ACEOF | |
41423 | /* confdefs.h. */ | |
41424 | _ACEOF | |
41425 | cat confdefs.h >>conftest.$ac_ext | |
41426 | cat >>conftest.$ac_ext <<_ACEOF | |
41427 | /* end confdefs.h. */ | |
41428 | ||
41429 | #include <stdio.h> | |
41430 | #include <stdlib.h> | |
41431 | #include <string.h> | |
41432 | #include "SDL.h" | |
41433 | ||
41434 | char* | |
41435 | my_strdup (char *str) | |
41436 | { | |
41437 | char *new_str; | |
41438 | ||
41439 | if (str) | |
41440 | { | |
41441 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
41442 | strcpy (new_str, str); | |
41443 | } | |
41444 | else | |
41445 | new_str = NULL; | |
41446 | ||
41447 | return new_str; | |
41448 | } | |
41449 | ||
41450 | int main (int argc, char *argv[]) | |
41451 | { | |
41452 | int major, minor, micro; | |
41453 | char *tmp_version; | |
41454 | ||
41455 | /* This hangs on some systems (?) | |
41456 | system ("touch conf.sdltest"); | |
41457 | */ | |
41458 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
41459 | ||
41460 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
41461 | tmp_version = my_strdup("$min_sdl_version"); | |
41462 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
41463 | printf("%s, bad version string\n", "$min_sdl_version"); | |
41464 | exit(1); | |
41465 | } | |
41466 | ||
41467 | if (($sdl_major_version > major) || | |
41468 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
41469 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
41470 | { | |
41471 | return 0; | |
41472 | } | |
41473 | else | |
41474 | { | |
41475 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
41476 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
41477 | printf("*** best to upgrade to the required version.\n"); | |
41478 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
41479 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
41480 | printf("*** config.cache before re-running configure\n"); | |
41481 | return 1; | |
41482 | } | |
41483 | } | |
41484 | ||
41485 | ||
41486 | _ACEOF | |
41487 | rm -f conftest$ac_exeext | |
41488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41489 | (eval $ac_link) 2>&5 | |
41490 | ac_status=$? | |
41491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41492 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
41493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41494 | (eval $ac_try) 2>&5 | |
41495 | ac_status=$? | |
41496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41497 | (exit $ac_status); }; }; then | |
41498 | : | |
41499 | else | |
41500 | echo "$as_me: program exited with status $ac_status" >&5 | |
41501 | echo "$as_me: failed program was:" >&5 | |
41502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41503 | ||
41504 | ( exit $ac_status ) | |
41505 | no_sdl=yes | |
41506 | fi | |
ac1cb8d3 | 41507 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41508 | fi |
41509 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 41510 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
41511 | LIBS="$ac_save_LIBS" |
41512 | fi | |
41513 | fi | |
41514 | if test "x$no_sdl" = x ; then | |
41515 | echo "$as_me:$LINENO: result: yes" >&5 | |
41516 | echo "${ECHO_T}yes" >&6 | |
41517 | ||
41518 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 41519 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
41520 | cat >>confdefs.h <<\_ACEOF |
41521 | #define wxUSE_LIBSDL 1 | |
41522 | _ACEOF | |
41523 | ||
41524 | ||
41525 | else | |
41526 | echo "$as_me:$LINENO: result: no" >&5 | |
41527 | echo "${ECHO_T}no" >&6 | |
41528 | if test "$SDL_CONFIG" = "no" ; then | |
41529 | echo "*** The sdl-config script installed by SDL could not be found" | |
41530 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
41531 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
41532 | echo "*** full path to sdl-config." | |
41533 | else | |
41534 | if test -f conf.sdltest ; then | |
41535 | : | |
41536 | else | |
41537 | echo "*** Could not run SDL test program, checking why..." | |
41538 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 41539 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
41540 | LIBS="$LIBS $SDL_LIBS" |
41541 | cat >conftest.$ac_ext <<_ACEOF | |
41542 | /* confdefs.h. */ | |
41543 | _ACEOF | |
41544 | cat confdefs.h >>conftest.$ac_ext | |
41545 | cat >>conftest.$ac_ext <<_ACEOF | |
41546 | /* end confdefs.h. */ | |
41547 | ||
41548 | #include <stdio.h> | |
41549 | #include "SDL.h" | |
41550 | ||
41551 | int main(int argc, char *argv[]) | |
41552 | { return 0; } | |
41553 | #undef main | |
41554 | #define main K_and_R_C_main | |
41555 | ||
41556 | int | |
41557 | main () | |
41558 | { | |
41559 | return 0; | |
41560 | ; | |
41561 | return 0; | |
41562 | } | |
41563 | _ACEOF | |
41564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41566 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41567 | ac_status=$? |
ac1cb8d3 VS |
41568 | grep -v '^ *+' conftest.er1 >conftest.err |
41569 | rm -f conftest.er1 | |
41570 | cat conftest.err >&5 | |
a848cd7e SC |
41571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41572 | (exit $ac_status); } && | |
3f60522a JS |
41573 | { ac_try='test -z "$ac_cxx_werror_flag" |
41574 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41576 | (eval $ac_try) 2>&5 | |
41577 | ac_status=$? | |
41578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41579 | (exit $ac_status); }; } && | |
41580 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41582 | (eval $ac_try) 2>&5 | |
41583 | ac_status=$? | |
41584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41585 | (exit $ac_status); }; }; then | |
41586 | echo "*** The test program compiled, but did not run. This usually means" | |
41587 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
41588 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
41589 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
41590 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
41591 | echo "*** is required on your system" | |
41592 | echo "***" | |
41593 | echo "*** If you have an old version installed, it is best to remove it, although" | |
41594 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
41595 | else | |
41596 | echo "$as_me: failed program was:" >&5 | |
41597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41598 | ||
41599 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
41600 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
41601 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
41602 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
41603 | fi | |
ac1cb8d3 VS |
41604 | rm -f conftest.err conftest.$ac_objext \ |
41605 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 41606 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 41607 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
41608 | LIBS="$ac_save_LIBS" |
41609 | fi | |
41610 | fi | |
41611 | SDL_CFLAGS="" | |
41612 | SDL_LIBS="" | |
41613 | wxUSE_LIBSDL="no" | |
41614 | fi | |
41615 | ||
41616 | ||
41617 | rm -f conf.sdltest | |
41618 | ||
41619 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
41620 | WITH_PLUGIN_SDL=1 | |
41621 | fi | |
41622 | fi | |
41623 | fi | |
41624 | ||
41625 | cat >>confdefs.h <<\_ACEOF | |
41626 | #define wxUSE_SOUND 1 | |
41627 | _ACEOF | |
41628 | ||
41629 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
41630 | fi | |
41631 | ||
d1c38808 VZ |
41632 | if test "$WXGTK20" = 1; then |
41633 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
41634 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
41635 | ||
41636 | ||
41637 | succeeded=no | |
41638 | ||
41639 | if test -z "$PKG_CONFIG"; then | |
41640 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41641 | set dummy pkg-config; ac_word=$2 | |
41642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41644 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41646 | else | |
41647 | case $PKG_CONFIG in | |
41648 | [\\/]* | ?:[\\/]*) | |
41649 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41650 | ;; | |
41651 | *) | |
41652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41653 | for as_dir in $PATH | |
41654 | do | |
41655 | IFS=$as_save_IFS | |
41656 | test -z "$as_dir" && as_dir=. | |
41657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41659 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41661 | break 2 | |
41662 | fi | |
41663 | done | |
41664 | done | |
41665 | ||
41666 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41667 | ;; | |
41668 | esac | |
41669 | fi | |
41670 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41671 | ||
41672 | if test -n "$PKG_CONFIG"; then | |
41673 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41674 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41675 | else | |
41676 | echo "$as_me:$LINENO: result: no" >&5 | |
41677 | echo "${ECHO_T}no" >&6 | |
41678 | fi | |
41679 | ||
41680 | fi | |
41681 | ||
41682 | if test "$PKG_CONFIG" = "no" ; then | |
41683 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41684 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41685 | echo "*** to the full path to pkg-config." | |
41686 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41687 | else | |
41688 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41689 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
41690 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
41691 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 41692 | |
ffa762ff | 41693 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
41694 | echo "$as_me:$LINENO: result: yes" >&5 |
41695 | echo "${ECHO_T}yes" >&6 | |
41696 | succeeded=yes | |
41697 | ||
41698 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
41699 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 41700 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
41701 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
41702 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
41703 | ||
41704 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
41705 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 41706 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
41707 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
41708 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
41709 | else | |
41710 | LIBGNOMEPRINTUI_CFLAGS="" | |
41711 | LIBGNOMEPRINTUI_LIBS="" | |
41712 | ## If we have a custom action on failure, don't print errors, but | |
41713 | ## do set a variable so people can do so. | |
ffa762ff | 41714 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
41715 | |
41716 | fi | |
41717 | ||
41718 | ||
41719 | ||
41720 | else | |
41721 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41722 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41723 | fi | |
41724 | fi | |
41725 | ||
41726 | if test $succeeded = yes; then | |
41727 | ||
c92ad099 | 41728 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
d1c38808 VZ |
41729 | cat >>confdefs.h <<\_ACEOF |
41730 | #define wxUSE_LIBGNOMEPRINT 1 | |
41731 | _ACEOF | |
41732 | ||
41733 | ||
41734 | else | |
41735 | ||
41736 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
41737 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
41738 | wxUSE_LIBGNOMEPRINT="no" | |
41739 | ||
41740 | ||
41741 | fi | |
41742 | ||
41743 | fi | |
41744 | fi | |
41745 | fi | |
41746 | ||
2b850ae1 RR |
41747 | if test "$WXGTK20" = 1; then |
41748 | if test "$wxUSE_MIMETYPE" = "yes" ; then | |
41749 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
41750 | ||
41751 | ||
41752 | succeeded=no | |
41753 | ||
41754 | if test -z "$PKG_CONFIG"; then | |
41755 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41756 | set dummy pkg-config; ac_word=$2 | |
41757 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41758 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41759 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41761 | else | |
41762 | case $PKG_CONFIG in | |
41763 | [\\/]* | ?:[\\/]*) | |
41764 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41765 | ;; | |
41766 | *) | |
41767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41768 | for as_dir in $PATH | |
41769 | do | |
41770 | IFS=$as_save_IFS | |
41771 | test -z "$as_dir" && as_dir=. | |
41772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41773 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41774 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41776 | break 2 | |
41777 | fi | |
41778 | done | |
41779 | done | |
41780 | ||
41781 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41782 | ;; | |
41783 | esac | |
41784 | fi | |
41785 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41786 | ||
41787 | if test -n "$PKG_CONFIG"; then | |
41788 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41789 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41790 | else | |
41791 | echo "$as_me:$LINENO: result: no" >&5 | |
41792 | echo "${ECHO_T}no" >&6 | |
41793 | fi | |
41794 | ||
41795 | fi | |
41796 | ||
41797 | if test "$PKG_CONFIG" = "no" ; then | |
41798 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41799 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41800 | echo "*** to the full path to pkg-config." | |
41801 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41802 | else | |
41803 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41804 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41805 | echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5 | |
41806 | echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6 | |
41807 | ||
41808 | if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then | |
41809 | echo "$as_me:$LINENO: result: yes" >&5 | |
41810 | echo "${ECHO_T}yes" >&6 | |
41811 | succeeded=yes | |
41812 | ||
41813 | echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5 | |
41814 | echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6 | |
41815 | GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"` | |
41816 | echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5 | |
41817 | echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6 | |
41818 | ||
41819 | echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5 | |
41820 | echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6 | |
41821 | GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"` | |
41822 | echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5 | |
41823 | echo "${ECHO_T}$GNOMEVFS_LIBS" >&6 | |
41824 | else | |
41825 | GNOMEVFS_CFLAGS="" | |
41826 | GNOMEVFS_LIBS="" | |
41827 | ## If we have a custom action on failure, don't print errors, but | |
41828 | ## do set a variable so people can do so. | |
41829 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
41830 | ||
41831 | fi | |
41832 | ||
41833 | ||
41834 | ||
41835 | else | |
41836 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41837 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41838 | fi | |
41839 | fi | |
41840 | ||
41841 | if test $succeeded = yes; then | |
41842 | ||
41843 | CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS" | |
41844 | cat >>confdefs.h <<\_ACEOF | |
41845 | #define wxUSE_LIBGNOMEVFS 1 | |
41846 | _ACEOF | |
41847 | ||
41848 | ||
41849 | else | |
41850 | ||
41851 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 | |
41852 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
41853 | wxUSE_LIBGNOMEVFS="no" | |
41854 | ||
41855 | ||
41856 | fi | |
41857 | ||
41858 | fi | |
41859 | fi | |
41860 | fi | |
41861 | ||
3565d135 RR |
41862 | if test "$WXGTK20" = 1; then |
41863 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
41864 | ||
41865 | succeeded=no | |
41866 | ||
41867 | if test -z "$PKG_CONFIG"; then | |
41868 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41869 | set dummy pkg-config; ac_word=$2 | |
41870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41872 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41874 | else | |
41875 | case $PKG_CONFIG in | |
41876 | [\\/]* | ?:[\\/]*) | |
41877 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41878 | ;; | |
41879 | *) | |
41880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41881 | for as_dir in $PATH | |
41882 | do | |
41883 | IFS=$as_save_IFS | |
41884 | test -z "$as_dir" && as_dir=. | |
41885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41887 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41889 | break 2 | |
41890 | fi | |
41891 | done | |
41892 | done | |
41893 | ||
41894 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41895 | ;; | |
41896 | esac | |
41897 | fi | |
41898 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41899 | ||
41900 | if test -n "$PKG_CONFIG"; then | |
41901 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41902 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41903 | else | |
41904 | echo "$as_me:$LINENO: result: no" >&5 | |
41905 | echo "${ECHO_T}no" >&6 | |
41906 | fi | |
41907 | ||
41908 | fi | |
41909 | ||
41910 | if test "$PKG_CONFIG" = "no" ; then | |
41911 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41912 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41913 | echo "*** to the full path to pkg-config." | |
41914 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41915 | else | |
41916 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41917 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41918 | echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5 | |
41919 | echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6 | |
41920 | ||
41921 | if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then | |
41922 | echo "$as_me:$LINENO: result: yes" >&5 | |
41923 | echo "${ECHO_T}yes" >&6 | |
41924 | succeeded=yes | |
41925 | ||
41926 | echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5 | |
41927 | echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6 | |
41928 | HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"` | |
41929 | echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5 | |
41930 | echo "${ECHO_T}$HILDON_CFLAGS" >&6 | |
41931 | ||
41932 | echo "$as_me:$LINENO: checking HILDON_LIBS" >&5 | |
41933 | echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6 | |
41934 | HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"` | |
41935 | echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5 | |
41936 | echo "${ECHO_T}$HILDON_LIBS" >&6 | |
41937 | else | |
41938 | HILDON_CFLAGS="" | |
41939 | HILDON_LIBS="" | |
41940 | ## If we have a custom action on failure, don't print errors, but | |
41941 | ## do set a variable so people can do so. | |
41942 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
41943 | ||
41944 | fi | |
41945 | ||
41946 | ||
41947 | ||
41948 | else | |
41949 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41950 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41951 | fi | |
41952 | fi | |
41953 | ||
41954 | if test $succeeded = yes; then | |
41955 | ||
41956 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
41957 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
41958 | cat >>confdefs.h <<\_ACEOF | |
41959 | #define wxUSE_LIBHILDON 1 | |
41960 | _ACEOF | |
41961 | ||
41962 | ||
41963 | else | |
41964 | ||
41965 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
41966 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
41967 | wxUSE_LIBHILDON="no" | |
41968 | ||
41969 | ||
41970 | fi | |
41971 | ||
41972 | fi | |
41973 | fi | |
d1c38808 | 41974 | |
a848cd7e SC |
41975 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
41976 | cat >>confdefs.h <<\_ACEOF | |
41977 | #define wxUSE_CMDLINE_PARSER 1 | |
41978 | _ACEOF | |
41979 | ||
41980 | fi | |
41981 | ||
41982 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
41983 | cat >>confdefs.h <<\_ACEOF | |
41984 | #define wxUSE_STOPWATCH 1 | |
41985 | _ACEOF | |
41986 | ||
41987 | fi | |
41988 | ||
41989 | if test "$wxUSE_DATETIME" = "yes"; then | |
41990 | cat >>confdefs.h <<\_ACEOF | |
41991 | #define wxUSE_DATETIME 1 | |
41992 | _ACEOF | |
41993 | ||
41994 | fi | |
41995 | ||
41996 | if test "$wxUSE_FILE" = "yes"; then | |
41997 | cat >>confdefs.h <<\_ACEOF | |
41998 | #define wxUSE_FILE 1 | |
41999 | _ACEOF | |
42000 | ||
42001 | fi | |
42002 | ||
42003 | if test "$wxUSE_FFILE" = "yes"; then | |
42004 | cat >>confdefs.h <<\_ACEOF | |
42005 | #define wxUSE_FFILE 1 | |
42006 | _ACEOF | |
42007 | ||
42008 | fi | |
42009 | ||
42010 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
42011 | cat >>confdefs.h <<\_ACEOF | |
42012 | #define wxUSE_FILESYSTEM 1 | |
42013 | _ACEOF | |
42014 | ||
42015 | fi | |
42016 | ||
42017 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
42018 | cat >>confdefs.h <<\_ACEOF | |
42019 | #define wxUSE_FS_ZIP 1 | |
42020 | _ACEOF | |
42021 | ||
42022 | fi | |
42023 | ||
9e8e867f | 42024 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 42025 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 42026 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
42027 | _ACEOF |
42028 | ||
42029 | fi | |
42030 | ||
42031 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 42032 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
42033 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
42034 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
42035 | elif test "$wxUSE_ZLIB" = "no"; then | |
42036 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
42037 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
42038 | else | |
42039 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42040 | #define wxUSE_ZIPSTREAM 1 |
42041 | _ACEOF | |
42042 | ||
81f90336 | 42043 | fi |
a848cd7e SC |
42044 | fi |
42045 | ||
a848cd7e | 42046 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
42047 | if test "$USE_UNIX" != 1; then |
42048 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
42049 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
42050 | wxUSE_ON_FATAL_EXCEPTION=no | |
42051 | else | |
42052 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42053 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
42054 | _ACEOF | |
42055 | ||
18228ab4 | 42056 | fi |
a848cd7e SC |
42057 | fi |
42058 | ||
eaff0f0d VZ |
42059 | if test "$wxUSE_STACKWALKER" = "yes"; then |
42060 | cat >>confdefs.h <<\_ACEOF | |
42061 | #define wxUSE_STACKWALKER 1 | |
42062 | _ACEOF | |
42063 | ||
42064 | fi | |
42065 | ||
36b6448c | 42066 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
42067 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
42068 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
42069 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
42070 | wxUSE_DEBUGREPORT=no |
42071 | else | |
42072 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
42073 | #define wxUSE_DEBUGREPORT 1 |
42074 | _ACEOF | |
42075 | ||
21dfc162 MW |
42076 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
42077 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
42078 | fi | |
dfe0c803 | 42079 | fi |
36b6448c VZ |
42080 | fi |
42081 | ||
a848cd7e SC |
42082 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
42083 | cat >>confdefs.h <<\_ACEOF | |
42084 | #define wxUSE_SNGLINST_CHECKER 1 | |
42085 | _ACEOF | |
42086 | ||
42087 | fi | |
42088 | ||
42089 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
42090 | cat >>confdefs.h <<\_ACEOF | |
42091 | #define wxUSE_BUSYINFO 1 | |
42092 | _ACEOF | |
42093 | ||
42094 | fi | |
42095 | ||
42096 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
42097 | cat >>confdefs.h <<\_ACEOF | |
42098 | #define wxUSE_STD_IOSTREAM 1 | |
42099 | _ACEOF | |
42100 | ||
42101 | fi | |
42102 | ||
59746b65 MW |
42103 | if test "$wxUSE_STD_STRING" = "yes"; then |
42104 | cat >>confdefs.h <<\_ACEOF | |
42105 | #define wxUSE_STD_STRING 1 | |
42106 | _ACEOF | |
42107 | ||
42108 | fi | |
42109 | ||
07158944 VZ |
42110 | if test "$wxUSE_STDPATHS" = "yes"; then |
42111 | cat >>confdefs.h <<\_ACEOF | |
42112 | #define wxUSE_STDPATHS 1 | |
42113 | _ACEOF | |
42114 | ||
42115 | fi | |
42116 | ||
a848cd7e SC |
42117 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
42118 | cat >>confdefs.h <<\_ACEOF | |
42119 | #define wxUSE_TEXTBUFFER 1 | |
42120 | _ACEOF | |
42121 | ||
42122 | fi | |
42123 | ||
42124 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
42125 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
42126 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
42127 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
42128 | else | |
42129 | cat >>confdefs.h <<\_ACEOF | |
42130 | #define wxUSE_TEXTFILE 1 | |
42131 | _ACEOF | |
42132 | ||
42133 | fi | |
42134 | fi | |
42135 | ||
42136 | if test "$wxUSE_CONFIG" = "yes" ; then | |
42137 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
42138 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
42139 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
42140 | else | |
42141 | cat >>confdefs.h <<\_ACEOF | |
42142 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
42143 | _ACEOF |
42144 | ||
42145 | cat >>confdefs.h <<\_ACEOF | |
42146 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
42147 | _ACEOF |
42148 | ||
42149 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
42150 | fi | |
42151 | fi | |
42152 | ||
42153 | if test "$wxUSE_INTL" = "yes" ; then | |
42154 | if test "$wxUSE_FILE" != "yes"; then | |
42155 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
42156 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
42157 | else | |
42158 | cat >>confdefs.h <<\_ACEOF | |
42159 | #define wxUSE_INTL 1 | |
42160 | _ACEOF | |
42161 | ||
42162 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
42163 | GUIDIST="$GUIDIST INTL_DIST" | |
42164 | fi | |
42165 | fi | |
42166 | ||
42167 | if test "$wxUSE_LOG" = "yes"; then | |
42168 | cat >>confdefs.h <<\_ACEOF | |
42169 | #define wxUSE_LOG 1 | |
42170 | _ACEOF | |
42171 | ||
42172 | ||
42173 | if test "$wxUSE_LOGGUI" = "yes"; then | |
42174 | cat >>confdefs.h <<\_ACEOF | |
42175 | #define wxUSE_LOGGUI 1 | |
42176 | _ACEOF | |
42177 | ||
42178 | fi | |
42179 | ||
42180 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
42181 | cat >>confdefs.h <<\_ACEOF | |
42182 | #define wxUSE_LOGWINDOW 1 | |
42183 | _ACEOF | |
42184 | ||
42185 | fi | |
42186 | ||
42187 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
42188 | cat >>confdefs.h <<\_ACEOF | |
42189 | #define wxUSE_LOG_DIALOG 1 | |
42190 | _ACEOF | |
42191 | ||
42192 | fi | |
0b78747f MW |
42193 | |
42194 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
42195 | fi |
42196 | ||
42197 | if test "$wxUSE_LONGLONG" = "yes"; then | |
42198 | cat >>confdefs.h <<\_ACEOF | |
42199 | #define wxUSE_LONGLONG 1 | |
42200 | _ACEOF | |
42201 | ||
42202 | fi | |
42203 | ||
42204 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
42205 | cat >>confdefs.h <<\_ACEOF | |
42206 | #define wxUSE_GEOMETRY 1 | |
42207 | _ACEOF | |
42208 | ||
42209 | fi | |
42210 | ||
a848cd7e SC |
42211 | if test "$wxUSE_STREAMS" = "yes" ; then |
42212 | cat >>confdefs.h <<\_ACEOF | |
42213 | #define wxUSE_STREAMS 1 | |
42214 | _ACEOF | |
42215 | ||
42216 | fi | |
42217 | ||
8b6682b9 JS |
42218 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then |
42219 | cat >>confdefs.h <<\_ACEOF | |
42220 | #define wxUSE_PRINTF_POS_PARAMS 1 | |
42221 | _ACEOF | |
42222 | ||
42223 | fi | |
42224 | ||
42225 | ||
a848cd7e SC |
42226 | |
42227 | if test "$wxUSE_DATETIME" = "yes"; then | |
42228 | ||
42229 | for ac_func in strptime | |
42230 | do | |
42231 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42232 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42233 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42234 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42236 | else | |
42237 | cat >conftest.$ac_ext <<_ACEOF | |
42238 | /* confdefs.h. */ | |
42239 | _ACEOF | |
42240 | cat confdefs.h >>conftest.$ac_ext | |
42241 | cat >>conftest.$ac_ext <<_ACEOF | |
42242 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42243 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42244 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42245 | #define $ac_func innocuous_$ac_func | |
42246 | ||
a848cd7e SC |
42247 | /* System header to define __stub macros and hopefully few prototypes, |
42248 | which can conflict with char $ac_func (); below. | |
42249 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42250 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42251 | |
a848cd7e SC |
42252 | #ifdef __STDC__ |
42253 | # include <limits.h> | |
42254 | #else | |
42255 | # include <assert.h> | |
42256 | #endif | |
ac1cb8d3 VS |
42257 | |
42258 | #undef $ac_func | |
42259 | ||
a848cd7e SC |
42260 | /* Override any gcc2 internal prototype to avoid an error. */ |
42261 | #ifdef __cplusplus | |
42262 | extern "C" | |
42263 | { | |
42264 | #endif | |
42265 | /* We use char because int might match the return type of a gcc2 | |
42266 | builtin and then its argument prototype would still apply. */ | |
42267 | char $ac_func (); | |
42268 | /* The GNU C library defines this for functions which it implements | |
42269 | to always fail with ENOSYS. Some functions are actually named | |
42270 | something starting with __ and the normal name is an alias. */ | |
42271 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42272 | choke me | |
42273 | #else | |
42274 | char (*f) () = $ac_func; | |
42275 | #endif | |
42276 | #ifdef __cplusplus | |
42277 | } | |
42278 | #endif | |
42279 | ||
42280 | int | |
42281 | main () | |
42282 | { | |
42283 | return f != $ac_func; | |
42284 | ; | |
42285 | return 0; | |
42286 | } | |
42287 | _ACEOF | |
42288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42290 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42291 | ac_status=$? |
ac1cb8d3 VS |
42292 | grep -v '^ *+' conftest.er1 >conftest.err |
42293 | rm -f conftest.er1 | |
42294 | cat conftest.err >&5 | |
a848cd7e SC |
42295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42296 | (exit $ac_status); } && | |
3f60522a JS |
42297 | { ac_try='test -z "$ac_cxx_werror_flag" |
42298 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42300 | (eval $ac_try) 2>&5 | |
42301 | ac_status=$? | |
42302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42303 | (exit $ac_status); }; } && | |
42304 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42306 | (eval $ac_try) 2>&5 | |
42307 | ac_status=$? | |
42308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42309 | (exit $ac_status); }; }; then | |
42310 | eval "$as_ac_var=yes" | |
42311 | else | |
42312 | echo "$as_me: failed program was:" >&5 | |
42313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42314 | ||
42315 | eval "$as_ac_var=no" | |
42316 | fi | |
ac1cb8d3 VS |
42317 | rm -f conftest.err conftest.$ac_objext \ |
42318 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42319 | fi |
42320 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42321 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42322 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42323 | cat >>confdefs.h <<_ACEOF | |
42324 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42325 | _ACEOF | |
42326 | ||
42327 | fi | |
42328 | done | |
42329 | ||
f536f005 VZ |
42330 | if test "$ac_cv_func_strptime" = "yes"; then |
42331 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
42332 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
42333 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
42334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42335 | else | |
42336 | ||
f536f005 VZ |
42337 | cat >conftest.$ac_ext <<_ACEOF |
42338 | /* confdefs.h. */ | |
42339 | _ACEOF | |
42340 | cat confdefs.h >>conftest.$ac_ext | |
42341 | cat >>conftest.$ac_ext <<_ACEOF | |
42342 | /* end confdefs.h. */ | |
42343 | ||
42344 | #include <time.h> | |
42345 | ||
42346 | int | |
42347 | main () | |
42348 | { | |
42349 | ||
42350 | struct tm t; | |
42351 | strptime("foo", "bar", &t); | |
42352 | ||
42353 | ; | |
42354 | return 0; | |
42355 | } | |
42356 | _ACEOF | |
42357 | rm -f conftest.$ac_objext | |
42358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42359 | (eval $ac_compile) 2>conftest.er1 | |
42360 | ac_status=$? | |
42361 | grep -v '^ *+' conftest.er1 >conftest.err | |
42362 | rm -f conftest.er1 | |
42363 | cat conftest.err >&5 | |
42364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42365 | (exit $ac_status); } && | |
3f60522a JS |
42366 | { ac_try='test -z "$ac_cxx_werror_flag" |
42367 | || test ! -s conftest.err' | |
f536f005 VZ |
42368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42369 | (eval $ac_try) 2>&5 | |
42370 | ac_status=$? | |
42371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42372 | (exit $ac_status); }; } && | |
42373 | { ac_try='test -s conftest.$ac_objext' | |
42374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42375 | (eval $ac_try) 2>&5 | |
42376 | ac_status=$? | |
42377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42378 | (exit $ac_status); }; }; then | |
42379 | wx_cv_func_strptime_decl=yes | |
42380 | else | |
42381 | echo "$as_me: failed program was:" >&5 | |
42382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42383 | ||
42384 | wx_cv_func_strptime_decl=no | |
42385 | ||
42386 | fi | |
42387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f536f005 VZ |
42388 | |
42389 | ||
42390 | fi | |
42391 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
42392 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
42393 | fi | |
42394 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
42395 | cat >>confdefs.h <<\_ACEOF | |
42396 | #define HAVE_STRPTIME_DECL 1 | |
42397 | _ACEOF | |
42398 | ||
42399 | fi | |
a848cd7e SC |
42400 | |
42401 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
42402 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
42403 | if test "${wx_cv_var_timezone+set}" = set; then | |
42404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42405 | else | |
42406 | ||
42407 | cat >conftest.$ac_ext <<_ACEOF | |
42408 | /* confdefs.h. */ | |
42409 | _ACEOF | |
42410 | cat confdefs.h >>conftest.$ac_ext | |
42411 | cat >>conftest.$ac_ext <<_ACEOF | |
42412 | /* end confdefs.h. */ | |
42413 | ||
42414 | #include <time.h> | |
42415 | ||
42416 | int | |
42417 | main () | |
42418 | { | |
42419 | ||
42420 | int tz; | |
42421 | tz = timezone; | |
42422 | ||
42423 | ; | |
42424 | return 0; | |
42425 | } | |
42426 | _ACEOF | |
42427 | rm -f conftest.$ac_objext | |
42428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42429 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42430 | ac_status=$? |
ac1cb8d3 VS |
42431 | grep -v '^ *+' conftest.er1 >conftest.err |
42432 | rm -f conftest.er1 | |
42433 | cat conftest.err >&5 | |
a848cd7e SC |
42434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42435 | (exit $ac_status); } && | |
3f60522a JS |
42436 | { ac_try='test -z "$ac_cxx_werror_flag" |
42437 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42439 | (eval $ac_try) 2>&5 | |
42440 | ac_status=$? | |
42441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42442 | (exit $ac_status); }; } && | |
42443 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42445 | (eval $ac_try) 2>&5 | |
42446 | ac_status=$? | |
42447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42448 | (exit $ac_status); }; }; then | |
42449 | ||
42450 | wx_cv_var_timezone=timezone | |
42451 | ||
42452 | else | |
42453 | echo "$as_me: failed program was:" >&5 | |
42454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42455 | ||
42456 | ||
42457 | cat >conftest.$ac_ext <<_ACEOF | |
42458 | /* confdefs.h. */ | |
42459 | _ACEOF | |
42460 | cat confdefs.h >>conftest.$ac_ext | |
42461 | cat >>conftest.$ac_ext <<_ACEOF | |
42462 | /* end confdefs.h. */ | |
42463 | ||
42464 | #include <time.h> | |
42465 | ||
42466 | int | |
42467 | main () | |
42468 | { | |
42469 | ||
42470 | int tz; | |
42471 | tz = _timezone; | |
42472 | ||
42473 | ; | |
42474 | return 0; | |
42475 | } | |
42476 | _ACEOF | |
42477 | rm -f conftest.$ac_objext | |
42478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42479 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42480 | ac_status=$? |
ac1cb8d3 VS |
42481 | grep -v '^ *+' conftest.er1 >conftest.err |
42482 | rm -f conftest.er1 | |
42483 | cat conftest.err >&5 | |
a848cd7e SC |
42484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42485 | (exit $ac_status); } && | |
3f60522a JS |
42486 | { ac_try='test -z "$ac_cxx_werror_flag" |
42487 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42489 | (eval $ac_try) 2>&5 | |
42490 | ac_status=$? | |
42491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42492 | (exit $ac_status); }; } && | |
42493 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42495 | (eval $ac_try) 2>&5 | |
42496 | ac_status=$? | |
42497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42498 | (exit $ac_status); }; }; then | |
42499 | ||
42500 | wx_cv_var_timezone=_timezone | |
42501 | ||
42502 | else | |
42503 | echo "$as_me: failed program was:" >&5 | |
42504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42505 | ||
42506 | ||
42507 | cat >conftest.$ac_ext <<_ACEOF | |
42508 | /* confdefs.h. */ | |
42509 | _ACEOF | |
42510 | cat confdefs.h >>conftest.$ac_ext | |
42511 | cat >>conftest.$ac_ext <<_ACEOF | |
42512 | /* end confdefs.h. */ | |
42513 | ||
42514 | #include <time.h> | |
42515 | ||
42516 | int | |
42517 | main () | |
42518 | { | |
42519 | ||
42520 | int tz; | |
42521 | tz = __timezone; | |
42522 | ||
42523 | ; | |
42524 | return 0; | |
42525 | } | |
42526 | _ACEOF | |
42527 | rm -f conftest.$ac_objext | |
42528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42529 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42530 | ac_status=$? |
ac1cb8d3 VS |
42531 | grep -v '^ *+' conftest.er1 >conftest.err |
42532 | rm -f conftest.er1 | |
42533 | cat conftest.err >&5 | |
a848cd7e SC |
42534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42535 | (exit $ac_status); } && | |
3f60522a JS |
42536 | { ac_try='test -z "$ac_cxx_werror_flag" |
42537 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42539 | (eval $ac_try) 2>&5 | |
42540 | ac_status=$? | |
42541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42542 | (exit $ac_status); }; } && | |
42543 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42545 | (eval $ac_try) 2>&5 | |
42546 | ac_status=$? | |
42547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42548 | (exit $ac_status); }; }; then | |
42549 | ||
42550 | wx_cv_var_timezone=__timezone | |
42551 | ||
42552 | else | |
42553 | echo "$as_me: failed program was:" >&5 | |
42554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42555 | ||
42556 | ||
42557 | if test "$USE_DOS" = 0 ; then | |
42558 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
42559 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
42560 | fi | |
42561 | ||
42562 | ||
42563 | fi | |
ac1cb8d3 | 42564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42565 | |
42566 | ||
42567 | fi | |
ac1cb8d3 | 42568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42569 | |
42570 | ||
42571 | fi | |
ac1cb8d3 | 42572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42573 | |
42574 | ||
42575 | fi | |
42576 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
42577 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
42578 | ||
42579 | if test "x$wx_cv_var_timezone" != x ; then | |
42580 | cat >>confdefs.h <<_ACEOF | |
42581 | #define WX_TIMEZONE $wx_cv_var_timezone | |
42582 | _ACEOF | |
42583 | ||
42584 | fi | |
42585 | ||
42586 | ||
42587 | for ac_func in localtime | |
42588 | do | |
42589 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42590 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42591 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42592 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42594 | else | |
42595 | cat >conftest.$ac_ext <<_ACEOF | |
42596 | /* confdefs.h. */ | |
42597 | _ACEOF | |
42598 | cat confdefs.h >>conftest.$ac_ext | |
42599 | cat >>conftest.$ac_ext <<_ACEOF | |
42600 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42601 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42602 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42603 | #define $ac_func innocuous_$ac_func | |
42604 | ||
a848cd7e SC |
42605 | /* System header to define __stub macros and hopefully few prototypes, |
42606 | which can conflict with char $ac_func (); below. | |
42607 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42608 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42609 | |
a848cd7e SC |
42610 | #ifdef __STDC__ |
42611 | # include <limits.h> | |
42612 | #else | |
42613 | # include <assert.h> | |
42614 | #endif | |
ac1cb8d3 VS |
42615 | |
42616 | #undef $ac_func | |
42617 | ||
a848cd7e SC |
42618 | /* Override any gcc2 internal prototype to avoid an error. */ |
42619 | #ifdef __cplusplus | |
42620 | extern "C" | |
42621 | { | |
42622 | #endif | |
42623 | /* We use char because int might match the return type of a gcc2 | |
42624 | builtin and then its argument prototype would still apply. */ | |
42625 | char $ac_func (); | |
42626 | /* The GNU C library defines this for functions which it implements | |
42627 | to always fail with ENOSYS. Some functions are actually named | |
42628 | something starting with __ and the normal name is an alias. */ | |
42629 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42630 | choke me | |
42631 | #else | |
42632 | char (*f) () = $ac_func; | |
42633 | #endif | |
42634 | #ifdef __cplusplus | |
42635 | } | |
42636 | #endif | |
42637 | ||
42638 | int | |
42639 | main () | |
42640 | { | |
42641 | return f != $ac_func; | |
42642 | ; | |
42643 | return 0; | |
42644 | } | |
42645 | _ACEOF | |
42646 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42648 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42649 | ac_status=$? |
ac1cb8d3 VS |
42650 | grep -v '^ *+' conftest.er1 >conftest.err |
42651 | rm -f conftest.er1 | |
42652 | cat conftest.err >&5 | |
a848cd7e SC |
42653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42654 | (exit $ac_status); } && | |
3f60522a JS |
42655 | { ac_try='test -z "$ac_cxx_werror_flag" |
42656 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42658 | (eval $ac_try) 2>&5 | |
42659 | ac_status=$? | |
42660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42661 | (exit $ac_status); }; } && | |
42662 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42664 | (eval $ac_try) 2>&5 | |
42665 | ac_status=$? | |
42666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42667 | (exit $ac_status); }; }; then | |
42668 | eval "$as_ac_var=yes" | |
42669 | else | |
42670 | echo "$as_me: failed program was:" >&5 | |
42671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42672 | ||
42673 | eval "$as_ac_var=no" | |
42674 | fi | |
ac1cb8d3 VS |
42675 | rm -f conftest.err conftest.$ac_objext \ |
42676 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42677 | fi |
42678 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42679 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42680 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42681 | cat >>confdefs.h <<_ACEOF | |
42682 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42683 | _ACEOF | |
42684 | ||
42685 | fi | |
42686 | done | |
42687 | ||
42688 | ||
42689 | if test "$ac_cv_func_localtime" = "yes"; then | |
42690 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
42691 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
42692 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
42693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42694 | else | |
42695 | ||
42696 | cat >conftest.$ac_ext <<_ACEOF | |
42697 | /* confdefs.h. */ | |
42698 | _ACEOF | |
42699 | cat confdefs.h >>conftest.$ac_ext | |
42700 | cat >>conftest.$ac_ext <<_ACEOF | |
42701 | /* end confdefs.h. */ | |
42702 | ||
42703 | #include <time.h> | |
42704 | ||
42705 | int | |
42706 | main () | |
42707 | { | |
42708 | ||
42709 | struct tm tm; | |
42710 | tm.tm_gmtoff++; | |
42711 | ||
42712 | ; | |
42713 | return 0; | |
42714 | } | |
42715 | _ACEOF | |
42716 | rm -f conftest.$ac_objext | |
42717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42718 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42719 | ac_status=$? |
ac1cb8d3 VS |
42720 | grep -v '^ *+' conftest.er1 >conftest.err |
42721 | rm -f conftest.er1 | |
42722 | cat conftest.err >&5 | |
a848cd7e SC |
42723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42724 | (exit $ac_status); } && | |
3f60522a JS |
42725 | { ac_try='test -z "$ac_cxx_werror_flag" |
42726 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42728 | (eval $ac_try) 2>&5 | |
42729 | ac_status=$? | |
42730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42731 | (exit $ac_status); }; } && | |
42732 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42734 | (eval $ac_try) 2>&5 | |
42735 | ac_status=$? | |
42736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42737 | (exit $ac_status); }; }; then | |
42738 | ||
42739 | wx_cv_struct_tm_has_gmtoff=yes | |
42740 | ||
42741 | else | |
42742 | echo "$as_me: failed program was:" >&5 | |
42743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42744 | ||
42745 | wx_cv_struct_tm_has_gmtoff=no | |
42746 | ||
42747 | fi | |
ac1cb8d3 | 42748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42749 | |
42750 | fi | |
42751 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
42752 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
42753 | fi | |
42754 | ||
42755 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
42756 | cat >>confdefs.h <<\_ACEOF | |
42757 | #define WX_GMTOFF_IN_TM 1 | |
42758 | _ACEOF | |
42759 | ||
42760 | fi | |
42761 | ||
42762 | ||
42763 | ||
42764 | for ac_func in gettimeofday ftime | |
42765 | do | |
42766 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42767 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42768 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42769 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42771 | else | |
42772 | cat >conftest.$ac_ext <<_ACEOF | |
42773 | /* confdefs.h. */ | |
42774 | _ACEOF | |
42775 | cat confdefs.h >>conftest.$ac_ext | |
42776 | cat >>conftest.$ac_ext <<_ACEOF | |
42777 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42778 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42779 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42780 | #define $ac_func innocuous_$ac_func | |
42781 | ||
a848cd7e SC |
42782 | /* System header to define __stub macros and hopefully few prototypes, |
42783 | which can conflict with char $ac_func (); below. | |
42784 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42785 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42786 | |
a848cd7e SC |
42787 | #ifdef __STDC__ |
42788 | # include <limits.h> | |
42789 | #else | |
42790 | # include <assert.h> | |
42791 | #endif | |
ac1cb8d3 VS |
42792 | |
42793 | #undef $ac_func | |
42794 | ||
a848cd7e SC |
42795 | /* Override any gcc2 internal prototype to avoid an error. */ |
42796 | #ifdef __cplusplus | |
42797 | extern "C" | |
42798 | { | |
42799 | #endif | |
42800 | /* We use char because int might match the return type of a gcc2 | |
42801 | builtin and then its argument prototype would still apply. */ | |
42802 | char $ac_func (); | |
42803 | /* The GNU C library defines this for functions which it implements | |
42804 | to always fail with ENOSYS. Some functions are actually named | |
42805 | something starting with __ and the normal name is an alias. */ | |
42806 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42807 | choke me | |
42808 | #else | |
42809 | char (*f) () = $ac_func; | |
42810 | #endif | |
42811 | #ifdef __cplusplus | |
42812 | } | |
42813 | #endif | |
42814 | ||
42815 | int | |
42816 | main () | |
42817 | { | |
42818 | return f != $ac_func; | |
42819 | ; | |
42820 | return 0; | |
42821 | } | |
42822 | _ACEOF | |
42823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42825 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42826 | ac_status=$? |
ac1cb8d3 VS |
42827 | grep -v '^ *+' conftest.er1 >conftest.err |
42828 | rm -f conftest.er1 | |
42829 | cat conftest.err >&5 | |
a848cd7e SC |
42830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42831 | (exit $ac_status); } && | |
3f60522a JS |
42832 | { ac_try='test -z "$ac_cxx_werror_flag" |
42833 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42835 | (eval $ac_try) 2>&5 | |
42836 | ac_status=$? | |
42837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42838 | (exit $ac_status); }; } && | |
42839 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42841 | (eval $ac_try) 2>&5 | |
42842 | ac_status=$? | |
42843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42844 | (exit $ac_status); }; }; then | |
42845 | eval "$as_ac_var=yes" | |
42846 | else | |
42847 | echo "$as_me: failed program was:" >&5 | |
42848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42849 | ||
42850 | eval "$as_ac_var=no" | |
42851 | fi | |
ac1cb8d3 VS |
42852 | rm -f conftest.err conftest.$ac_objext \ |
42853 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42854 | fi |
42855 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42856 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42857 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42858 | cat >>confdefs.h <<_ACEOF | |
42859 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42860 | _ACEOF | |
42861 | break | |
42862 | fi | |
42863 | done | |
42864 | ||
42865 | ||
42866 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
42867 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
42868 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
42869 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
42870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42871 | else | |
42872 | ||
5d7b7554 | 42873 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
42874 | /* confdefs.h. */ |
42875 | _ACEOF | |
42876 | cat confdefs.h >>conftest.$ac_ext | |
42877 | cat >>conftest.$ac_ext <<_ACEOF | |
42878 | /* end confdefs.h. */ | |
42879 | ||
42880 | #include <sys/time.h> | |
42881 | #include <unistd.h> | |
42882 | ||
42883 | int | |
42884 | main () | |
42885 | { | |
42886 | ||
42887 | struct timeval tv; | |
42888 | gettimeofday(&tv, NULL); | |
42889 | ||
42890 | ; | |
42891 | return 0; | |
42892 | } | |
42893 | _ACEOF | |
42894 | rm -f conftest.$ac_objext | |
42895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42896 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42897 | ac_status=$? |
ac1cb8d3 VS |
42898 | grep -v '^ *+' conftest.er1 >conftest.err |
42899 | rm -f conftest.er1 | |
42900 | cat conftest.err >&5 | |
a848cd7e SC |
42901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42902 | (exit $ac_status); } && | |
3f60522a JS |
42903 | { ac_try='test -z "$ac_cxx_werror_flag" |
42904 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42906 | (eval $ac_try) 2>&5 | |
42907 | ac_status=$? | |
42908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42909 | (exit $ac_status); }; } && | |
42910 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42912 | (eval $ac_try) 2>&5 | |
42913 | ac_status=$? | |
42914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42915 | (exit $ac_status); }; }; then | |
42916 | wx_cv_func_gettimeofday_has_2_args=yes | |
42917 | else | |
42918 | echo "$as_me: failed program was:" >&5 | |
42919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42920 | ||
42921 | cat >conftest.$ac_ext <<_ACEOF | |
42922 | /* confdefs.h. */ | |
42923 | _ACEOF | |
42924 | cat confdefs.h >>conftest.$ac_ext | |
42925 | cat >>conftest.$ac_ext <<_ACEOF | |
42926 | /* end confdefs.h. */ | |
42927 | ||
42928 | #include <sys/time.h> | |
42929 | #include <unistd.h> | |
42930 | ||
42931 | int | |
42932 | main () | |
42933 | { | |
42934 | ||
42935 | struct timeval tv; | |
42936 | gettimeofday(&tv); | |
42937 | ||
42938 | ; | |
42939 | return 0; | |
42940 | } | |
42941 | _ACEOF | |
42942 | rm -f conftest.$ac_objext | |
42943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42944 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42945 | ac_status=$? |
ac1cb8d3 VS |
42946 | grep -v '^ *+' conftest.er1 >conftest.err |
42947 | rm -f conftest.er1 | |
42948 | cat conftest.err >&5 | |
a848cd7e SC |
42949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42950 | (exit $ac_status); } && | |
3f60522a JS |
42951 | { ac_try='test -z "$ac_cxx_werror_flag" |
42952 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42954 | (eval $ac_try) 2>&5 | |
42955 | ac_status=$? | |
42956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42957 | (exit $ac_status); }; } && | |
42958 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42960 | (eval $ac_try) 2>&5 | |
42961 | ac_status=$? | |
42962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42963 | (exit $ac_status); }; }; then | |
42964 | wx_cv_func_gettimeofday_has_2_args=no | |
42965 | else | |
42966 | echo "$as_me: failed program was:" >&5 | |
42967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42968 | ||
42969 | ||
42970 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
42971 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
42972 | wx_cv_func_gettimeofday_has_2_args=unknown | |
42973 | ||
42974 | ||
42975 | fi | |
ac1cb8d3 | 42976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42977 | |
42978 | fi | |
ac1cb8d3 | 42979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42980 | |
42981 | fi | |
42982 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
42983 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
42984 | ||
42985 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
42986 | cat >>confdefs.h <<\_ACEOF | |
42987 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
42988 | _ACEOF | |
42989 | ||
42990 | fi | |
42991 | fi | |
42992 | ||
42993 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
42994 | fi | |
42995 | ||
42996 | ||
42997 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42998 | if test "$wxUSE_MGL" = "1"; then | |
42999 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
43000 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
43001 | wxUSE_SOCKETS="no" | |
43002 | fi | |
43003 | fi | |
43004 | ||
43005 | if test "$wxUSE_SOCKETS" = "yes"; then | |
43006 | if test "$TOOLKIT" != "MSW"; then | |
43007 | echo "$as_me:$LINENO: checking for socket" >&5 | |
43008 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
43009 | if test "${ac_cv_func_socket+set}" = set; then | |
43010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43011 | else | |
43012 | cat >conftest.$ac_ext <<_ACEOF | |
43013 | /* confdefs.h. */ | |
43014 | _ACEOF | |
43015 | cat confdefs.h >>conftest.$ac_ext | |
43016 | cat >>conftest.$ac_ext <<_ACEOF | |
43017 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43018 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
43019 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43020 | #define socket innocuous_socket | |
43021 | ||
a848cd7e SC |
43022 | /* System header to define __stub macros and hopefully few prototypes, |
43023 | which can conflict with char socket (); below. | |
43024 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43025 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43026 | |
a848cd7e SC |
43027 | #ifdef __STDC__ |
43028 | # include <limits.h> | |
43029 | #else | |
43030 | # include <assert.h> | |
43031 | #endif | |
ac1cb8d3 VS |
43032 | |
43033 | #undef socket | |
43034 | ||
a848cd7e SC |
43035 | /* Override any gcc2 internal prototype to avoid an error. */ |
43036 | #ifdef __cplusplus | |
43037 | extern "C" | |
43038 | { | |
43039 | #endif | |
43040 | /* We use char because int might match the return type of a gcc2 | |
43041 | builtin and then its argument prototype would still apply. */ | |
43042 | char socket (); | |
43043 | /* The GNU C library defines this for functions which it implements | |
43044 | to always fail with ENOSYS. Some functions are actually named | |
43045 | something starting with __ and the normal name is an alias. */ | |
43046 | #if defined (__stub_socket) || defined (__stub___socket) | |
43047 | choke me | |
43048 | #else | |
43049 | char (*f) () = socket; | |
43050 | #endif | |
43051 | #ifdef __cplusplus | |
43052 | } | |
43053 | #endif | |
43054 | ||
43055 | int | |
43056 | main () | |
43057 | { | |
43058 | return f != socket; | |
43059 | ; | |
43060 | return 0; | |
43061 | } | |
43062 | _ACEOF | |
43063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43065 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43066 | ac_status=$? |
ac1cb8d3 VS |
43067 | grep -v '^ *+' conftest.er1 >conftest.err |
43068 | rm -f conftest.er1 | |
43069 | cat conftest.err >&5 | |
a848cd7e SC |
43070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43071 | (exit $ac_status); } && | |
3f60522a JS |
43072 | { ac_try='test -z "$ac_cxx_werror_flag" |
43073 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43075 | (eval $ac_try) 2>&5 | |
43076 | ac_status=$? | |
43077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43078 | (exit $ac_status); }; } && | |
43079 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43081 | (eval $ac_try) 2>&5 | |
43082 | ac_status=$? | |
43083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43084 | (exit $ac_status); }; }; then | |
43085 | ac_cv_func_socket=yes | |
43086 | else | |
43087 | echo "$as_me: failed program was:" >&5 | |
43088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43089 | ||
43090 | ac_cv_func_socket=no | |
43091 | fi | |
ac1cb8d3 VS |
43092 | rm -f conftest.err conftest.$ac_objext \ |
43093 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43094 | fi |
43095 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
43096 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
43097 | if test $ac_cv_func_socket = yes; then | |
43098 | : | |
43099 | else | |
43100 | ||
43101 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
43102 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
43103 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
43104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43105 | else | |
43106 | ac_check_lib_save_LIBS=$LIBS | |
43107 | LIBS="-lsocket $LIBS" | |
43108 | cat >conftest.$ac_ext <<_ACEOF | |
43109 | /* confdefs.h. */ | |
43110 | _ACEOF | |
43111 | cat confdefs.h >>conftest.$ac_ext | |
43112 | cat >>conftest.$ac_ext <<_ACEOF | |
43113 | /* end confdefs.h. */ | |
43114 | ||
43115 | /* Override any gcc2 internal prototype to avoid an error. */ | |
43116 | #ifdef __cplusplus | |
43117 | extern "C" | |
43118 | #endif | |
43119 | /* We use char because int might match the return type of a gcc2 | |
43120 | builtin and then its argument prototype would still apply. */ | |
43121 | char socket (); | |
43122 | int | |
43123 | main () | |
43124 | { | |
43125 | socket (); | |
43126 | ; | |
43127 | return 0; | |
43128 | } | |
43129 | _ACEOF | |
43130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43132 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43133 | ac_status=$? |
ac1cb8d3 VS |
43134 | grep -v '^ *+' conftest.er1 >conftest.err |
43135 | rm -f conftest.er1 | |
43136 | cat conftest.err >&5 | |
a848cd7e SC |
43137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43138 | (exit $ac_status); } && | |
3f60522a JS |
43139 | { ac_try='test -z "$ac_cxx_werror_flag" |
43140 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43142 | (eval $ac_try) 2>&5 | |
43143 | ac_status=$? | |
43144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43145 | (exit $ac_status); }; } && | |
43146 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43148 | (eval $ac_try) 2>&5 | |
43149 | ac_status=$? | |
43150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43151 | (exit $ac_status); }; }; then | |
43152 | ac_cv_lib_socket_socket=yes | |
43153 | else | |
43154 | echo "$as_me: failed program was:" >&5 | |
43155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43156 | ||
43157 | ac_cv_lib_socket_socket=no | |
43158 | fi | |
ac1cb8d3 VS |
43159 | rm -f conftest.err conftest.$ac_objext \ |
43160 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43161 | LIBS=$ac_check_lib_save_LIBS |
43162 | fi | |
43163 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
43164 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
43165 | if test $ac_cv_lib_socket_socket = yes; then | |
43166 | if test "$INET_LINK" != " -lsocket"; then | |
43167 | INET_LINK="$INET_LINK -lsocket" | |
43168 | fi | |
43169 | else | |
43170 | ||
43171 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
43172 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
43173 | wxUSE_SOCKETS=no | |
43174 | ||
43175 | ||
43176 | fi | |
43177 | ||
43178 | ||
43179 | ||
43180 | fi | |
43181 | ||
43182 | fi | |
43183 | fi | |
43184 | ||
43185 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
43186 | if test "$TOOLKIT" != "MSW"; then | |
5d7b7554 | 43187 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
a848cd7e SC |
43188 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
43189 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
43190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43191 | else | |
43192 | ||
43193 | cat >conftest.$ac_ext <<_ACEOF | |
43194 | /* confdefs.h. */ | |
43195 | _ACEOF | |
43196 | cat confdefs.h >>conftest.$ac_ext | |
43197 | cat >>conftest.$ac_ext <<_ACEOF | |
43198 | /* end confdefs.h. */ | |
43199 | ||
43200 | #include <sys/types.h> | |
43201 | #include <sys/socket.h> | |
43202 | ||
43203 | int | |
43204 | main () | |
43205 | { | |
43206 | ||
43207 | socklen_t len; | |
43208 | getsockname(0, 0, &len); | |
43209 | ||
43210 | ; | |
43211 | return 0; | |
43212 | } | |
43213 | _ACEOF | |
43214 | rm -f conftest.$ac_objext | |
43215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43216 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43217 | ac_status=$? |
ac1cb8d3 VS |
43218 | grep -v '^ *+' conftest.er1 >conftest.err |
43219 | rm -f conftest.er1 | |
43220 | cat conftest.err >&5 | |
a848cd7e SC |
43221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43222 | (exit $ac_status); } && | |
3f60522a JS |
43223 | { ac_try='test -z "$ac_cxx_werror_flag" |
43224 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43226 | (eval $ac_try) 2>&5 | |
43227 | ac_status=$? | |
43228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43229 | (exit $ac_status); }; } && | |
43230 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43232 | (eval $ac_try) 2>&5 | |
43233 | ac_status=$? | |
43234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43235 | (exit $ac_status); }; }; then | |
43236 | wx_cv_type_getsockname3=socklen_t | |
43237 | else | |
43238 | echo "$as_me: failed program was:" >&5 | |
43239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43240 | ||
43241 | ||
6459a506 | 43242 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 43243 | if test "$GCC" = yes ; then |
c92ad099 | 43244 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
43245 | fi |
43246 | ||
43247 | cat >conftest.$ac_ext <<_ACEOF | |
43248 | /* confdefs.h. */ | |
43249 | _ACEOF | |
43250 | cat confdefs.h >>conftest.$ac_ext | |
43251 | cat >>conftest.$ac_ext <<_ACEOF | |
43252 | /* end confdefs.h. */ | |
43253 | ||
43254 | #include <sys/types.h> | |
43255 | #include <sys/socket.h> | |
43256 | ||
43257 | int | |
43258 | main () | |
43259 | { | |
43260 | ||
43261 | size_t len; | |
43262 | getsockname(0, 0, &len); | |
43263 | ||
43264 | ; | |
43265 | return 0; | |
43266 | } | |
43267 | _ACEOF | |
43268 | rm -f conftest.$ac_objext | |
43269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43270 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43271 | ac_status=$? |
ac1cb8d3 VS |
43272 | grep -v '^ *+' conftest.er1 >conftest.err |
43273 | rm -f conftest.er1 | |
43274 | cat conftest.err >&5 | |
a848cd7e SC |
43275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43276 | (exit $ac_status); } && | |
3f60522a JS |
43277 | { ac_try='test -z "$ac_cxx_werror_flag" |
43278 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43280 | (eval $ac_try) 2>&5 | |
43281 | ac_status=$? | |
43282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43283 | (exit $ac_status); }; } && | |
43284 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43286 | (eval $ac_try) 2>&5 | |
43287 | ac_status=$? | |
43288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43289 | (exit $ac_status); }; }; then | |
43290 | wx_cv_type_getsockname3=size_t | |
43291 | else | |
43292 | echo "$as_me: failed program was:" >&5 | |
43293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43294 | ||
43295 | cat >conftest.$ac_ext <<_ACEOF | |
43296 | /* confdefs.h. */ | |
43297 | _ACEOF | |
43298 | cat confdefs.h >>conftest.$ac_ext | |
43299 | cat >>conftest.$ac_ext <<_ACEOF | |
43300 | /* end confdefs.h. */ | |
43301 | ||
43302 | #include <sys/types.h> | |
43303 | #include <sys/socket.h> | |
43304 | ||
43305 | int | |
43306 | main () | |
43307 | { | |
43308 | ||
43309 | int len; | |
43310 | getsockname(0, 0, &len); | |
43311 | ||
43312 | ; | |
43313 | return 0; | |
43314 | } | |
43315 | _ACEOF | |
43316 | rm -f conftest.$ac_objext | |
43317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43318 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43319 | ac_status=$? |
ac1cb8d3 VS |
43320 | grep -v '^ *+' conftest.er1 >conftest.err |
43321 | rm -f conftest.er1 | |
43322 | cat conftest.err >&5 | |
a848cd7e SC |
43323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43324 | (exit $ac_status); } && | |
3f60522a JS |
43325 | { ac_try='test -z "$ac_cxx_werror_flag" |
43326 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43328 | (eval $ac_try) 2>&5 | |
43329 | ac_status=$? | |
43330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43331 | (exit $ac_status); }; } && | |
43332 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43334 | (eval $ac_try) 2>&5 | |
43335 | ac_status=$? | |
43336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43337 | (exit $ac_status); }; }; then | |
43338 | wx_cv_type_getsockname3=int | |
43339 | else | |
43340 | echo "$as_me: failed program was:" >&5 | |
43341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43342 | ||
43343 | wx_cv_type_getsockname3=unknown | |
43344 | ||
43345 | fi | |
ac1cb8d3 | 43346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43347 | |
43348 | fi | |
ac1cb8d3 | 43349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 43350 | |
6459a506 | 43351 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
43352 | |
43353 | ||
43354 | fi | |
ac1cb8d3 | 43355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43356 | |
43357 | fi | |
43358 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
43359 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
43360 | ||
43361 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
43362 | wxUSE_SOCKETS=no | |
43363 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
43364 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
43365 | else | |
43366 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 43367 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
43368 | _ACEOF |
43369 | ||
43370 | fi | |
43371 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
43372 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
43373 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
43374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43375 | else | |
43376 | ||
43377 | cat >conftest.$ac_ext <<_ACEOF | |
43378 | /* confdefs.h. */ | |
43379 | _ACEOF | |
43380 | cat confdefs.h >>conftest.$ac_ext | |
43381 | cat >>conftest.$ac_ext <<_ACEOF | |
43382 | /* end confdefs.h. */ | |
43383 | ||
43384 | #include <sys/types.h> | |
43385 | #include <sys/socket.h> | |
43386 | ||
43387 | int | |
43388 | main () | |
43389 | { | |
43390 | ||
43391 | socklen_t len; | |
43392 | getsockopt(0, 0, 0, 0, &len); | |
43393 | ||
43394 | ; | |
43395 | return 0; | |
43396 | } | |
43397 | _ACEOF | |
43398 | rm -f conftest.$ac_objext | |
43399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43400 | (eval $ac_compile) 2>conftest.er1 | |
43401 | ac_status=$? | |
43402 | grep -v '^ *+' conftest.er1 >conftest.err | |
43403 | rm -f conftest.er1 | |
43404 | cat conftest.err >&5 | |
43405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43406 | (exit $ac_status); } && | |
3f60522a JS |
43407 | { ac_try='test -z "$ac_cxx_werror_flag" |
43408 | || test ! -s conftest.err' | |
5b674b9d DE |
43409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43410 | (eval $ac_try) 2>&5 | |
43411 | ac_status=$? | |
43412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43413 | (exit $ac_status); }; } && | |
43414 | { ac_try='test -s conftest.$ac_objext' | |
43415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43416 | (eval $ac_try) 2>&5 | |
43417 | ac_status=$? | |
43418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43419 | (exit $ac_status); }; }; then | |
43420 | wx_cv_type_getsockopt5=socklen_t | |
43421 | else | |
43422 | echo "$as_me: failed program was:" >&5 | |
43423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43424 | ||
43425 | ||
6459a506 | 43426 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 43427 | if test "$GCC" = yes ; then |
c92ad099 | 43428 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
43429 | fi |
43430 | ||
43431 | cat >conftest.$ac_ext <<_ACEOF | |
43432 | /* confdefs.h. */ | |
43433 | _ACEOF | |
43434 | cat confdefs.h >>conftest.$ac_ext | |
43435 | cat >>conftest.$ac_ext <<_ACEOF | |
43436 | /* end confdefs.h. */ | |
43437 | ||
43438 | #include <sys/types.h> | |
43439 | #include <sys/socket.h> | |
43440 | ||
43441 | int | |
43442 | main () | |
43443 | { | |
43444 | ||
43445 | size_t len; | |
43446 | getsockopt(0, 0, 0, 0, &len); | |
43447 | ||
43448 | ; | |
43449 | return 0; | |
43450 | } | |
43451 | _ACEOF | |
43452 | rm -f conftest.$ac_objext | |
43453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43454 | (eval $ac_compile) 2>conftest.er1 | |
43455 | ac_status=$? | |
43456 | grep -v '^ *+' conftest.er1 >conftest.err | |
43457 | rm -f conftest.er1 | |
43458 | cat conftest.err >&5 | |
43459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43460 | (exit $ac_status); } && | |
3f60522a JS |
43461 | { ac_try='test -z "$ac_cxx_werror_flag" |
43462 | || test ! -s conftest.err' | |
5b674b9d DE |
43463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43464 | (eval $ac_try) 2>&5 | |
43465 | ac_status=$? | |
43466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43467 | (exit $ac_status); }; } && | |
43468 | { ac_try='test -s conftest.$ac_objext' | |
43469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43470 | (eval $ac_try) 2>&5 | |
43471 | ac_status=$? | |
43472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43473 | (exit $ac_status); }; }; then | |
43474 | wx_cv_type_getsockopt5=size_t | |
43475 | else | |
43476 | echo "$as_me: failed program was:" >&5 | |
43477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43478 | ||
43479 | cat >conftest.$ac_ext <<_ACEOF | |
43480 | /* confdefs.h. */ | |
43481 | _ACEOF | |
43482 | cat confdefs.h >>conftest.$ac_ext | |
43483 | cat >>conftest.$ac_ext <<_ACEOF | |
43484 | /* end confdefs.h. */ | |
43485 | ||
43486 | #include <sys/types.h> | |
43487 | #include <sys/socket.h> | |
43488 | ||
43489 | int | |
43490 | main () | |
43491 | { | |
43492 | ||
43493 | int len; | |
43494 | getsockopt(0, 0, 0, 0, &len); | |
43495 | ||
43496 | ; | |
43497 | return 0; | |
43498 | } | |
43499 | _ACEOF | |
43500 | rm -f conftest.$ac_objext | |
43501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43502 | (eval $ac_compile) 2>conftest.er1 | |
43503 | ac_status=$? | |
43504 | grep -v '^ *+' conftest.er1 >conftest.err | |
43505 | rm -f conftest.er1 | |
43506 | cat conftest.err >&5 | |
43507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43508 | (exit $ac_status); } && | |
3f60522a JS |
43509 | { ac_try='test -z "$ac_cxx_werror_flag" |
43510 | || test ! -s conftest.err' | |
5b674b9d DE |
43511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43512 | (eval $ac_try) 2>&5 | |
43513 | ac_status=$? | |
43514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43515 | (exit $ac_status); }; } && | |
43516 | { ac_try='test -s conftest.$ac_objext' | |
43517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43518 | (eval $ac_try) 2>&5 | |
43519 | ac_status=$? | |
43520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43521 | (exit $ac_status); }; }; then | |
43522 | wx_cv_type_getsockopt5=int | |
43523 | else | |
43524 | echo "$as_me: failed program was:" >&5 | |
43525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43526 | ||
43527 | wx_cv_type_getsockopt5=unknown | |
43528 | ||
43529 | fi | |
43530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43531 | ||
43532 | fi | |
43533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43534 | ||
6459a506 | 43535 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
43536 | |
43537 | ||
43538 | fi | |
43539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43540 | ||
43541 | fi | |
43542 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
43543 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
43544 | ||
43545 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
43546 | wxUSE_SOCKETS=no | |
43547 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
43548 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
43549 | else | |
43550 | cat >>confdefs.h <<_ACEOF | |
43551 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
43552 | _ACEOF |
43553 | ||
43554 | fi | |
43555 | fi | |
43556 | fi | |
43557 | ||
43558 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
43559 | cat >>confdefs.h <<\_ACEOF | |
43560 | #define wxUSE_SOCKETS 1 | |
43561 | _ACEOF | |
43562 | ||
43563 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
43564 | fi | |
43565 | ||
43566 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
43567 | if test "$wxUSE_SOCKETS" != "yes"; then | |
43568 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
43569 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
43570 | wxUSE_PROTOCOL=no | |
43571 | fi | |
43572 | fi | |
43573 | ||
43574 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
43575 | cat >>confdefs.h <<\_ACEOF | |
43576 | #define wxUSE_PROTOCOL 1 | |
43577 | _ACEOF | |
43578 | ||
43579 | ||
43580 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
43581 | cat >>confdefs.h <<\_ACEOF | |
43582 | #define wxUSE_PROTOCOL_HTTP 1 | |
43583 | _ACEOF | |
43584 | ||
43585 | fi | |
43586 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
43587 | cat >>confdefs.h <<\_ACEOF | |
43588 | #define wxUSE_PROTOCOL_FTP 1 | |
43589 | _ACEOF | |
43590 | ||
43591 | fi | |
43592 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
43593 | cat >>confdefs.h <<\_ACEOF | |
43594 | #define wxUSE_PROTOCOL_FILE 1 | |
43595 | _ACEOF | |
43596 | ||
43597 | fi | |
43598 | else | |
43599 | if test "$wxUSE_FS_INET" = "yes"; then | |
43600 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
43601 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
43602 | wxUSE_FS_INET="no" | |
43603 | fi | |
43604 | fi | |
43605 | ||
43606 | if test "$wxUSE_URL" = "yes"; then | |
43607 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
43608 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
43609 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
43610 | wxUSE_URL=no | |
43611 | fi | |
43612 | if test "$wxUSE_URL" = "yes"; then | |
43613 | cat >>confdefs.h <<\_ACEOF | |
43614 | #define wxUSE_URL 1 | |
43615 | _ACEOF | |
43616 | ||
43617 | fi | |
43618 | fi | |
43619 | ||
43620 | if test "$wxUSE_FS_INET" = "yes"; then | |
43621 | cat >>confdefs.h <<\_ACEOF | |
43622 | #define wxUSE_FS_INET 1 | |
43623 | _ACEOF | |
43624 | ||
43625 | fi | |
43626 | ||
43627 | ||
ee45c548 MW |
43628 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
43629 | wxUSE_JOYSTICK=no | |
43630 | ||
43631 | if test "$TOOLKIT" = "MSW"; then | |
43632 | wxUSE_JOYSTICK=yes | |
43633 | ||
43634 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
43635 | if test "$USE_DARWIN" = 1; then | |
43636 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
43637 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
ee45c548 MW |
43638 | cat >conftest.$ac_ext <<_ACEOF |
43639 | /* confdefs.h. */ | |
43640 | _ACEOF | |
43641 | cat confdefs.h >>conftest.$ac_ext | |
43642 | cat >>conftest.$ac_ext <<_ACEOF | |
43643 | /* end confdefs.h. */ | |
43644 | #include <IOKit/hid/IOHIDLib.h> | |
43645 | int | |
43646 | main () | |
43647 | { | |
43648 | IOHIDQueueInterface *qi = NULL; | |
43649 | IOHIDCallbackFunction cb = NULL; | |
43650 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
43651 | ; | |
43652 | return 0; | |
43653 | } | |
43654 | _ACEOF | |
43655 | rm -f conftest.$ac_objext | |
43656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43657 | (eval $ac_compile) 2>conftest.er1 | |
43658 | ac_status=$? | |
43659 | grep -v '^ *+' conftest.er1 >conftest.err | |
43660 | rm -f conftest.er1 | |
43661 | cat conftest.err >&5 | |
43662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43663 | (exit $ac_status); } && | |
3f60522a JS |
43664 | { ac_try='test -z "$ac_cxx_werror_flag" |
43665 | || test ! -s conftest.err' | |
ee45c548 MW |
43666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43667 | (eval $ac_try) 2>&5 | |
43668 | ac_status=$? | |
43669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43670 | (exit $ac_status); }; } && | |
43671 | { ac_try='test -s conftest.$ac_objext' | |
43672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43673 | (eval $ac_try) 2>&5 | |
43674 | ac_status=$? | |
43675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43676 | (exit $ac_status); }; }; then | |
43677 | wxUSE_JOYSTICK=yes | |
a848cd7e | 43678 | |
ee45c548 MW |
43679 | else |
43680 | echo "$as_me: failed program was:" >&5 | |
43681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43682 | ||
43683 | fi | |
43684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ee45c548 MW |
43685 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 |
43686 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
43687 | fi | |
43688 | ||
43689 | else | |
a848cd7e SC |
43690 | |
43691 | for ac_header in linux/joystick.h | |
43692 | do | |
43693 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43694 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43695 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43696 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43697 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43699 | fi | |
43700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43701 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43702 | else | |
43703 | # Is the header compilable? | |
43704 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43705 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43706 | cat >conftest.$ac_ext <<_ACEOF | |
43707 | /* confdefs.h. */ | |
43708 | _ACEOF | |
43709 | cat confdefs.h >>conftest.$ac_ext | |
43710 | cat >>conftest.$ac_ext <<_ACEOF | |
43711 | /* end confdefs.h. */ | |
43712 | $ac_includes_default | |
43713 | #include <$ac_header> | |
43714 | _ACEOF | |
43715 | rm -f conftest.$ac_objext | |
43716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43717 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43718 | ac_status=$? |
ac1cb8d3 VS |
43719 | grep -v '^ *+' conftest.er1 >conftest.err |
43720 | rm -f conftest.er1 | |
43721 | cat conftest.err >&5 | |
a848cd7e SC |
43722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43723 | (exit $ac_status); } && | |
3f60522a JS |
43724 | { ac_try='test -z "$ac_cxx_werror_flag" |
43725 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43727 | (eval $ac_try) 2>&5 | |
43728 | ac_status=$? | |
43729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43730 | (exit $ac_status); }; } && | |
43731 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43733 | (eval $ac_try) 2>&5 | |
43734 | ac_status=$? | |
43735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43736 | (exit $ac_status); }; }; then | |
43737 | ac_header_compiler=yes | |
43738 | else | |
43739 | echo "$as_me: failed program was:" >&5 | |
43740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43741 | ||
43742 | ac_header_compiler=no | |
43743 | fi | |
ac1cb8d3 | 43744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43745 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43746 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43747 | ||
43748 | # Is the header present? | |
43749 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43750 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43751 | cat >conftest.$ac_ext <<_ACEOF | |
43752 | /* confdefs.h. */ | |
43753 | _ACEOF | |
43754 | cat confdefs.h >>conftest.$ac_ext | |
43755 | cat >>conftest.$ac_ext <<_ACEOF | |
43756 | /* end confdefs.h. */ | |
43757 | #include <$ac_header> | |
43758 | _ACEOF | |
43759 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43760 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43761 | ac_status=$? | |
43762 | grep -v '^ *+' conftest.er1 >conftest.err | |
43763 | rm -f conftest.er1 | |
43764 | cat conftest.err >&5 | |
43765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43766 | (exit $ac_status); } >/dev/null; then | |
43767 | if test -s conftest.err; then | |
5d7b7554 VZ |
43768 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
43769 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
43770 | else |
43771 | ac_cpp_err= | |
43772 | fi | |
43773 | else | |
43774 | ac_cpp_err=yes | |
43775 | fi | |
43776 | if test -z "$ac_cpp_err"; then | |
43777 | ac_header_preproc=yes | |
43778 | else | |
43779 | echo "$as_me: failed program was:" >&5 | |
43780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43781 | ||
43782 | ac_header_preproc=no | |
43783 | fi | |
43784 | rm -f conftest.err conftest.$ac_ext | |
43785 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43786 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43787 | ||
43788 | # So? What about this header? | |
5d7b7554 | 43789 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 43790 | yes:no: ) |
a848cd7e SC |
43791 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43792 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43793 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43794 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43795 | ac_header_preproc=yes | |
a848cd7e | 43796 | ;; |
ac1cb8d3 | 43797 | no:yes:* ) |
a848cd7e SC |
43798 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43799 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43800 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43801 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43802 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43803 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43804 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43805 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43806 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43807 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43808 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43809 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43810 | ( |
43811 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43812 | ## ----------------------------------------- ## |
43813 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43814 | ## ----------------------------------------- ## | |
a848cd7e SC |
43815 | _ASBOX |
43816 | ) | | |
43817 | sed "s/^/$as_me: WARNING: /" >&2 | |
43818 | ;; | |
43819 | esac | |
43820 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43824 | else | |
ac1cb8d3 | 43825 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43826 | fi |
43827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43828 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43829 | ||
43830 | fi | |
43831 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43832 | cat >>confdefs.h <<_ACEOF | |
43833 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43834 | _ACEOF | |
ee45c548 | 43835 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
43836 | fi |
43837 | ||
43838 | done | |
43839 | ||
ee45c548 | 43840 | fi |
4cb1d3da | 43841 | |
ee45c548 MW |
43842 | if test "$wxUSE_JOYSTICK" = "yes"; then |
43843 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43844 | #define wxUSE_JOYSTICK 1 |
43845 | _ACEOF | |
43846 | ||
ee45c548 MW |
43847 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
43848 | else | |
43849 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
43850 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
43851 | fi |
43852 | fi | |
43853 | ||
43854 | ||
43855 | ||
43856 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
43857 | cat >>confdefs.h <<\_ACEOF | |
43858 | #define wxUSE_FONTMAP 1 | |
43859 | _ACEOF | |
43860 | ||
43861 | fi | |
43862 | ||
43863 | if test "$wxUSE_UNICODE" = "yes" ; then | |
43864 | cat >>confdefs.h <<\_ACEOF | |
43865 | #define wxUSE_UNICODE 1 | |
43866 | _ACEOF | |
43867 | ||
43868 | ||
43869 | if test "$USE_WIN32" != 1; then | |
43870 | wxUSE_UNICODE_MSLU=no | |
43871 | fi | |
43872 | ||
43873 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
43874 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
43875 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
43876 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
43877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43878 | else | |
43879 | ac_check_lib_save_LIBS=$LIBS | |
43880 | LIBS="-lunicows $LIBS" | |
43881 | cat >conftest.$ac_ext <<_ACEOF | |
43882 | /* confdefs.h. */ | |
43883 | _ACEOF | |
43884 | cat confdefs.h >>conftest.$ac_ext | |
43885 | cat >>conftest.$ac_ext <<_ACEOF | |
43886 | /* end confdefs.h. */ | |
43887 | ||
43888 | ||
43889 | int | |
43890 | main () | |
43891 | { | |
43892 | main (); | |
43893 | ; | |
43894 | return 0; | |
43895 | } | |
43896 | _ACEOF | |
43897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43899 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43900 | ac_status=$? |
ac1cb8d3 VS |
43901 | grep -v '^ *+' conftest.er1 >conftest.err |
43902 | rm -f conftest.er1 | |
43903 | cat conftest.err >&5 | |
a848cd7e SC |
43904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43905 | (exit $ac_status); } && | |
3f60522a JS |
43906 | { ac_try='test -z "$ac_cxx_werror_flag" |
43907 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43909 | (eval $ac_try) 2>&5 | |
43910 | ac_status=$? | |
43911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43912 | (exit $ac_status); }; } && | |
43913 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43915 | (eval $ac_try) 2>&5 | |
43916 | ac_status=$? | |
43917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43918 | (exit $ac_status); }; }; then | |
43919 | ac_cv_lib_unicows_main=yes | |
43920 | else | |
43921 | echo "$as_me: failed program was:" >&5 | |
43922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43923 | ||
43924 | ac_cv_lib_unicows_main=no | |
43925 | fi | |
ac1cb8d3 VS |
43926 | rm -f conftest.err conftest.$ac_objext \ |
43927 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43928 | LIBS=$ac_check_lib_save_LIBS |
43929 | fi | |
43930 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
43931 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
43932 | if test $ac_cv_lib_unicows_main = yes; then | |
43933 | ||
43934 | cat >>confdefs.h <<\_ACEOF | |
43935 | #define wxUSE_UNICODE_MSLU 1 | |
43936 | _ACEOF | |
43937 | ||
43938 | ||
43939 | else | |
43940 | ||
43941 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
43942 | Applications will only run on Windows NT/2000/XP!" >&5 | |
43943 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
43944 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
43945 | wxUSE_UNICODE_MSLU=no | |
43946 | ||
43947 | fi | |
43948 | ||
43949 | fi | |
43950 | fi | |
43951 | ||
43952 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
43953 | cat >>confdefs.h <<\_ACEOF | |
43954 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
43955 | _ACEOF | |
43956 | ||
43957 | fi | |
43958 | ||
43959 | ||
43960 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
43961 | cat >>confdefs.h <<\_ACEOF | |
43962 | #define wxUSE_POSTSCRIPT 1 | |
43963 | _ACEOF | |
43964 | ||
43965 | fi | |
43966 | ||
43967 | cat >>confdefs.h <<\_ACEOF | |
43968 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
43969 | _ACEOF | |
43970 | ||
43971 | ||
43972 | cat >>confdefs.h <<\_ACEOF | |
43973 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
43974 | _ACEOF | |
43975 | ||
43976 | ||
43977 | ||
43978 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
43979 | cat >>confdefs.h <<\_ACEOF | |
43980 | #define wxUSE_CONSTRAINTS 1 | |
43981 | _ACEOF | |
43982 | ||
43983 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
43984 | fi | |
43985 | ||
8a7b1113 VZ |
43986 | if test "$wxUSE_MDI" = "yes"; then |
43987 | cat >>confdefs.h <<\_ACEOF | |
43988 | #define wxUSE_MDI 1 | |
43989 | _ACEOF | |
43990 | ||
43991 | ||
43992 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43993 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43994 | #define wxUSE_MDI_ARCHITECTURE 1 |
43995 | _ACEOF | |
43996 | ||
8a7b1113 VZ |
43997 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
43998 | fi | |
a848cd7e SC |
43999 | fi |
44000 | ||
44001 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
44002 | cat >>confdefs.h <<\_ACEOF | |
44003 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
44004 | _ACEOF | |
44005 | ||
44006 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
44007 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
44008 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
44009 | fi | |
44010 | fi | |
44011 | ||
44012 | if test "$wxUSE_HELP" = "yes"; then | |
44013 | cat >>confdefs.h <<\_ACEOF | |
44014 | #define wxUSE_HELP 1 | |
44015 | _ACEOF | |
44016 | ||
44017 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
44018 | ||
44019 | if test "$wxUSE_MSW" = 1; then | |
44020 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
44021 | cat >>confdefs.h <<\_ACEOF | |
44022 | #define wxUSE_MS_HTML_HELP 1 | |
44023 | _ACEOF | |
44024 | ||
44025 | fi | |
44026 | fi | |
44027 | ||
44028 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
44029 | if test "$wxUSE_HTML" = "yes"; then | |
44030 | cat >>confdefs.h <<\_ACEOF | |
44031 | #define wxUSE_WXHTML_HELP 1 | |
44032 | _ACEOF | |
44033 | ||
44034 | else | |
44035 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
44036 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
44037 | wxUSE_WXHTML_HELP=no | |
44038 | fi | |
44039 | fi | |
44040 | fi | |
44041 | ||
44042 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
44043 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44044 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
44045 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
44046 | else | |
44047 | cat >>confdefs.h <<\_ACEOF | |
44048 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
44049 | _ACEOF | |
44050 | ||
44051 | fi | |
44052 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
44053 | fi | |
44054 | ||
44055 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
44056 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
44057 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
44058 | { (exit 1); exit 1; }; } | |
44059 | fi | |
44060 | ||
44061 | ||
efdf6afe VZ |
44062 | if test "$wxUSE_METAFILE" = "yes"; then |
44063 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
44064 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
44065 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
44066 | wxUSE_METAFILE=no | |
44067 | fi | |
44068 | fi | |
44069 | ||
44070 | ||
a848cd7e SC |
44071 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
44072 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
44073 | -o "$wxUSE_OLE" = "yes" \ | |
44074 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
44075 | ||
44076 | for ac_header in ole2.h | |
44077 | do | |
44078 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44079 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44080 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44081 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
44082 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44084 | fi | |
44085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44086 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
44087 | else | |
44088 | # Is the header compilable? | |
44089 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
44090 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
44091 | cat >conftest.$ac_ext <<_ACEOF | |
44092 | /* confdefs.h. */ | |
44093 | _ACEOF | |
44094 | cat confdefs.h >>conftest.$ac_ext | |
44095 | cat >>conftest.$ac_ext <<_ACEOF | |
44096 | /* end confdefs.h. */ | |
44097 | $ac_includes_default | |
44098 | #include <$ac_header> | |
44099 | _ACEOF | |
44100 | rm -f conftest.$ac_objext | |
44101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44102 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44103 | ac_status=$? |
ac1cb8d3 VS |
44104 | grep -v '^ *+' conftest.er1 >conftest.err |
44105 | rm -f conftest.er1 | |
44106 | cat conftest.err >&5 | |
a848cd7e SC |
44107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44108 | (exit $ac_status); } && | |
3f60522a JS |
44109 | { ac_try='test -z "$ac_cxx_werror_flag" |
44110 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44112 | (eval $ac_try) 2>&5 | |
44113 | ac_status=$? | |
44114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44115 | (exit $ac_status); }; } && | |
44116 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44118 | (eval $ac_try) 2>&5 | |
44119 | ac_status=$? | |
44120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44121 | (exit $ac_status); }; }; then | |
44122 | ac_header_compiler=yes | |
44123 | else | |
44124 | echo "$as_me: failed program was:" >&5 | |
44125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44126 | ||
44127 | ac_header_compiler=no | |
44128 | fi | |
ac1cb8d3 | 44129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44130 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
44131 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
44132 | ||
44133 | # Is the header present? | |
44134 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
44135 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
44136 | cat >conftest.$ac_ext <<_ACEOF | |
44137 | /* confdefs.h. */ | |
44138 | _ACEOF | |
44139 | cat confdefs.h >>conftest.$ac_ext | |
44140 | cat >>conftest.$ac_ext <<_ACEOF | |
44141 | /* end confdefs.h. */ | |
44142 | #include <$ac_header> | |
44143 | _ACEOF | |
44144 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
44145 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
44146 | ac_status=$? | |
44147 | grep -v '^ *+' conftest.er1 >conftest.err | |
44148 | rm -f conftest.er1 | |
44149 | cat conftest.err >&5 | |
44150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44151 | (exit $ac_status); } >/dev/null; then | |
44152 | if test -s conftest.err; then | |
5d7b7554 VZ |
44153 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
44154 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
44155 | else |
44156 | ac_cpp_err= | |
44157 | fi | |
44158 | else | |
44159 | ac_cpp_err=yes | |
44160 | fi | |
44161 | if test -z "$ac_cpp_err"; then | |
44162 | ac_header_preproc=yes | |
44163 | else | |
44164 | echo "$as_me: failed program was:" >&5 | |
44165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44166 | ||
44167 | ac_header_preproc=no | |
44168 | fi | |
44169 | rm -f conftest.err conftest.$ac_ext | |
44170 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
44171 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
44172 | ||
44173 | # So? What about this header? | |
5d7b7554 | 44174 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 44175 | yes:no: ) |
a848cd7e SC |
44176 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
44177 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
44178 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
44179 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
44180 | ac_header_preproc=yes | |
a848cd7e | 44181 | ;; |
ac1cb8d3 | 44182 | no:yes:* ) |
a848cd7e SC |
44183 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
44184 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
44185 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
44186 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
44187 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
44188 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
44189 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
44190 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
44191 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
44192 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
44193 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
44194 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
44195 | ( |
44196 | cat <<\_ASBOX | |
ac1cb8d3 VS |
44197 | ## ----------------------------------------- ## |
44198 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
44199 | ## ----------------------------------------- ## | |
a848cd7e SC |
44200 | _ASBOX |
44201 | ) | | |
44202 | sed "s/^/$as_me: WARNING: /" >&2 | |
44203 | ;; | |
44204 | esac | |
44205 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
44207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44209 | else | |
ac1cb8d3 | 44210 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
44211 | fi |
44212 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44213 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
44214 | ||
44215 | fi | |
44216 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
44217 | cat >>confdefs.h <<_ACEOF | |
44218 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
44219 | _ACEOF | |
44220 | ||
44221 | fi | |
44222 | ||
44223 | done | |
44224 | ||
44225 | ||
44226 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
44227 | if test "$GCC" = yes ; then | |
a848cd7e SC |
44228 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 |
44229 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
44230 | cat >conftest.$ac_ext <<_ACEOF | |
44231 | /* confdefs.h. */ | |
44232 | _ACEOF | |
44233 | cat confdefs.h >>conftest.$ac_ext | |
44234 | cat >>conftest.$ac_ext <<_ACEOF | |
44235 | /* end confdefs.h. */ | |
44236 | #include <windows.h> | |
44237 | #include <ole2.h> | |
44238 | int | |
44239 | main () | |
44240 | { | |
44241 | ||
44242 | ; | |
44243 | return 0; | |
44244 | } | |
44245 | _ACEOF | |
44246 | rm -f conftest.$ac_objext | |
44247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44248 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44249 | ac_status=$? |
ac1cb8d3 VS |
44250 | grep -v '^ *+' conftest.er1 >conftest.err |
44251 | rm -f conftest.er1 | |
44252 | cat conftest.err >&5 | |
a848cd7e SC |
44253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44254 | (exit $ac_status); } && | |
3f60522a JS |
44255 | { ac_try='test -z "$ac_cxx_werror_flag" |
44256 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44258 | (eval $ac_try) 2>&5 | |
44259 | ac_status=$? | |
44260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44261 | (exit $ac_status); }; } && | |
44262 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44264 | (eval $ac_try) 2>&5 | |
44265 | ac_status=$? | |
44266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44267 | (exit $ac_status); }; }; then | |
44268 | echo "$as_me:$LINENO: result: no" >&5 | |
44269 | echo "${ECHO_T}no" >&6 | |
44270 | else | |
44271 | echo "$as_me: failed program was:" >&5 | |
44272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44273 | ||
44274 | echo "$as_me:$LINENO: result: yes" >&5 | |
44275 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 44276 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 44277 | fi |
ac1cb8d3 | 44278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44279 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
44280 | if test "$wxUSE_OLE" = "yes" ; then | |
44281 | cat >>confdefs.h <<\_ACEOF | |
44282 | #define wxUSE_OLE 1 | |
44283 | _ACEOF | |
44284 | ||
0b78747f | 44285 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
44286 | fi |
44287 | fi | |
44288 | ||
44289 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
44290 | cat >>confdefs.h <<\_ACEOF | |
44291 | #define wxUSE_DATAOBJ 1 | |
44292 | _ACEOF | |
44293 | ||
44294 | fi | |
44295 | else | |
44296 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
44297 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
44298 | ||
44299 | wxUSE_CLIPBOARD=no | |
44300 | wxUSE_DRAG_AND_DROP=no | |
44301 | wxUSE_DATAOBJ=no | |
44302 | wxUSE_OLE=no | |
44303 | fi | |
44304 | ||
44305 | if test "$wxUSE_METAFILE" = "yes"; then | |
44306 | cat >>confdefs.h <<\_ACEOF | |
44307 | #define wxUSE_METAFILE 1 | |
44308 | _ACEOF | |
44309 | ||
44310 | ||
44311 | cat >>confdefs.h <<\_ACEOF | |
44312 | #define wxUSE_ENH_METAFILE 1 | |
44313 | _ACEOF | |
44314 | ||
44315 | fi | |
44316 | fi | |
44317 | ||
44318 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 44319 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
44320 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
44321 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 44322 | wxUSE_IPC=no |
a848cd7e SC |
44323 | fi |
44324 | ||
0b78747f MW |
44325 | if test "$wxUSE_IPC" = "yes"; then |
44326 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44327 | #define wxUSE_IPC 1 |
44328 | _ACEOF | |
44329 | ||
0b78747f MW |
44330 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
44331 | fi | |
a848cd7e SC |
44332 | fi |
44333 | ||
eb730a0c | 44334 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
44335 | if test "$wxUSE_MGL" = 1; then |
44336 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
44337 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
44338 | wxUSE_DATAOBJ=no | |
44339 | else | |
44340 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
44341 | #define wxUSE_DATAOBJ 1 |
44342 | _ACEOF | |
44343 | ||
2113bc77 | 44344 | fi |
eb730a0c JS |
44345 | else |
44346 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
44347 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
44348 | wxUSE_CLIPBOARD=no | |
44349 | wxUSE_DRAG_AND_DROP=no | |
44350 | fi | |
44351 | ||
a848cd7e SC |
44352 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
44353 | if test "$wxUSE_MGL" = 1; then | |
44354 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
44355 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
44356 | wxUSE_CLIPBOARD=no | |
44357 | fi | |
44358 | ||
44359 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
44360 | cat >>confdefs.h <<\_ACEOF | |
44361 | #define wxUSE_CLIPBOARD 1 | |
44362 | _ACEOF | |
44363 | ||
a848cd7e SC |
44364 | fi |
44365 | fi | |
44366 | ||
44367 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
44368 | if test "$wxUSE_GTK" = 1; then | |
44369 | if test "$WXGTK12" != 1; then | |
44370 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
44371 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
44372 | wxUSE_DRAG_AND_DROP=no | |
44373 | fi | |
44374 | fi | |
44375 | ||
44376 | if test "$wxUSE_MOTIF" = 1; then | |
44377 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
44378 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
44379 | wxUSE_DRAG_AND_DROP=no | |
44380 | fi | |
44381 | ||
44382 | if test "$wxUSE_X11" = 1; then | |
44383 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
44384 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
44385 | wxUSE_DRAG_AND_DROP=no | |
44386 | fi | |
44387 | ||
44388 | if test "$wxUSE_MGL" = 1; then | |
44389 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
44390 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
44391 | wxUSE_DRAG_AND_DROP=no | |
44392 | fi | |
44393 | ||
44394 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
44395 | cat >>confdefs.h <<\_ACEOF | |
44396 | #define wxUSE_DRAG_AND_DROP 1 | |
44397 | _ACEOF | |
44398 | ||
44399 | fi | |
44400 | ||
44401 | fi | |
44402 | ||
44403 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
44404 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
44405 | fi | |
44406 | ||
44407 | if test "$wxUSE_SPLINES" = "yes" ; then | |
44408 | cat >>confdefs.h <<\_ACEOF | |
44409 | #define wxUSE_SPLINES 1 | |
44410 | _ACEOF | |
44411 | ||
44412 | fi | |
44413 | ||
fbe2ca43 SN |
44414 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
44415 | cat >>confdefs.h <<\_ACEOF | |
44416 | #define wxUSE_MOUSEWHEEL 1 | |
44417 | _ACEOF | |
44418 | ||
44419 | fi | |
44420 | ||
a848cd7e SC |
44421 | |
44422 | USES_CONTROLS=0 | |
44423 | if test "$wxUSE_CONTROLS" = "yes"; then | |
44424 | USES_CONTROLS=1 | |
44425 | fi | |
44426 | ||
44427 | if test "$wxUSE_ACCEL" = "yes"; then | |
44428 | cat >>confdefs.h <<\_ACEOF | |
44429 | #define wxUSE_ACCEL 1 | |
44430 | _ACEOF | |
44431 | ||
44432 | USES_CONTROLS=1 | |
44433 | fi | |
44434 | ||
44435 | if test "$wxUSE_BUTTON" = "yes"; then | |
44436 | cat >>confdefs.h <<\_ACEOF | |
44437 | #define wxUSE_BUTTON 1 | |
44438 | _ACEOF | |
44439 | ||
44440 | USES_CONTROLS=1 | |
44441 | fi | |
44442 | ||
44443 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
44444 | cat >>confdefs.h <<\_ACEOF | |
44445 | #define wxUSE_BMPBUTTON 1 | |
44446 | _ACEOF | |
44447 | ||
44448 | USES_CONTROLS=1 | |
44449 | fi | |
44450 | ||
44451 | if test "$wxUSE_CALCTRL" = "yes"; then | |
44452 | cat >>confdefs.h <<\_ACEOF | |
44453 | #define wxUSE_CALENDARCTRL 1 | |
44454 | _ACEOF | |
44455 | ||
44456 | USES_CONTROLS=1 | |
44457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
44458 | fi | |
44459 | ||
44460 | if test "$wxUSE_CARET" = "yes"; then | |
44461 | cat >>confdefs.h <<\_ACEOF | |
44462 | #define wxUSE_CARET 1 | |
44463 | _ACEOF | |
44464 | ||
44465 | USES_CONTROLS=1 | |
44466 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
44467 | fi | |
44468 | ||
44469 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
44470 | cat >>confdefs.h <<\_ACEOF | |
44471 | #define wxUSE_COMBOBOX 1 | |
44472 | _ACEOF | |
44473 | ||
44474 | USES_CONTROLS=1 | |
44475 | fi | |
44476 | ||
a57d600f | 44477 | if test "$wxUSE_COMBOCTRL" = "yes"; then |
642bcba9 | 44478 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 44479 | #define wxUSE_COMBOCTRL 1 |
642bcba9 VZ |
44480 | _ACEOF |
44481 | ||
44482 | USES_CONTROLS=1 | |
44483 | fi | |
44484 | ||
a848cd7e SC |
44485 | if test "$wxUSE_CHOICE" = "yes"; then |
44486 | cat >>confdefs.h <<\_ACEOF | |
44487 | #define wxUSE_CHOICE 1 | |
44488 | _ACEOF | |
44489 | ||
44490 | USES_CONTROLS=1 | |
44491 | fi | |
44492 | ||
92bbdbcd WS |
44493 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
44494 | cat >>confdefs.h <<\_ACEOF | |
44495 | #define wxUSE_CHOICEBOOK 1 | |
44496 | _ACEOF | |
44497 | ||
44498 | USES_CONTROLS=1 | |
44499 | fi | |
44500 | ||
a848cd7e SC |
44501 | if test "$wxUSE_CHECKBOX" = "yes"; then |
44502 | cat >>confdefs.h <<\_ACEOF | |
44503 | #define wxUSE_CHECKBOX 1 | |
44504 | _ACEOF | |
44505 | ||
44506 | USES_CONTROLS=1 | |
44507 | fi | |
44508 | ||
44509 | if test "$wxUSE_CHECKLST" = "yes"; then | |
44510 | cat >>confdefs.h <<\_ACEOF | |
44511 | #define wxUSE_CHECKLISTBOX 1 | |
44512 | _ACEOF | |
44513 | ||
44514 | USES_CONTROLS=1 | |
44515 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
44516 | fi | |
44517 | ||
e9263684 VZ |
44518 | if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then |
44519 | cat >>confdefs.h <<\_ACEOF | |
44520 | #define wxUSE_COLOURPICKERCTRL 1 | |
44521 | _ACEOF | |
44522 | ||
44523 | USES_CONTROLS=1 | |
44524 | fi | |
44525 | ||
da98e9be VZ |
44526 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
44527 | cat >>confdefs.h <<\_ACEOF | |
44528 | #define wxUSE_DATEPICKCTRL 1 | |
44529 | _ACEOF | |
44530 | ||
44531 | USES_CONTROLS=1 | |
44532 | fi | |
44533 | ||
e9263684 VZ |
44534 | if test "$wxUSE_DIRPICKERCTRL" = "yes"; then |
44535 | cat >>confdefs.h <<\_ACEOF | |
44536 | #define wxUSE_DIRPICKERCTRL 1 | |
44537 | _ACEOF | |
44538 | ||
44539 | USES_CONTROLS=1 | |
44540 | fi | |
44541 | ||
44542 | if test "$wxUSE_FILEPICKERCTRL" = "yes"; then | |
44543 | cat >>confdefs.h <<\_ACEOF | |
44544 | #define wxUSE_FILEPICKERCTRL 1 | |
44545 | _ACEOF | |
44546 | ||
44547 | USES_CONTROLS=1 | |
44548 | fi | |
44549 | ||
44550 | if test "$wxUSE_FONTPICKERCTRL" = "yes"; then | |
44551 | cat >>confdefs.h <<\_ACEOF | |
44552 | #define wxUSE_FONTPICKERCTRL 1 | |
44553 | _ACEOF | |
44554 | ||
44555 | USES_CONTROLS=1 | |
44556 | fi | |
44557 | ||
a848cd7e SC |
44558 | if test "$wxUSE_DISPLAY" = "yes"; then |
44559 | cat >>confdefs.h <<\_ACEOF | |
44560 | #define wxUSE_DISPLAY 1 | |
44561 | _ACEOF | |
44562 | ||
0b78747f | 44563 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
44564 | fi |
44565 | ||
44566 | if test "$wxUSE_GAUGE" = "yes"; then | |
44567 | cat >>confdefs.h <<\_ACEOF | |
44568 | #define wxUSE_GAUGE 1 | |
44569 | _ACEOF | |
44570 | ||
44571 | USES_CONTROLS=1 | |
44572 | fi | |
44573 | ||
44574 | if test "$wxUSE_GRID" = "yes"; then | |
44575 | cat >>confdefs.h <<\_ACEOF | |
44576 | #define wxUSE_GRID 1 | |
44577 | _ACEOF | |
44578 | ||
44579 | USES_CONTROLS=1 | |
44580 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
44581 | fi | |
44582 | ||
6954625c VZ |
44583 | if test "$wxUSE_HYPERLINKCTRL" = "yes"; then |
44584 | cat >>confdefs.h <<\_ACEOF | |
44585 | #define wxUSE_HYPERLINKCTRL 1 | |
44586 | _ACEOF | |
44587 | ||
44588 | USES_CONTROLS=1 | |
44589 | fi | |
44590 | ||
20e34ecc RR |
44591 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
44592 | cat >>confdefs.h <<\_ACEOF | |
44593 | #define wxUSE_DATAVIEWCTRL 1 | |
44594 | _ACEOF | |
44595 | ||
44596 | USES_CONTROLS=1 | |
44597 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
44598 | fi | |
44599 | ||
a848cd7e SC |
44600 | if test "$wxUSE_IMAGLIST" = "yes"; then |
44601 | cat >>confdefs.h <<\_ACEOF | |
44602 | #define wxUSE_IMAGLIST 1 | |
44603 | _ACEOF | |
44604 | ||
44605 | fi | |
44606 | ||
44607 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
44608 | cat >>confdefs.h <<\_ACEOF | |
44609 | #define wxUSE_LISTBOOK 1 | |
44610 | _ACEOF | |
44611 | ||
44612 | USES_CONTROLS=1 | |
44613 | fi | |
44614 | ||
44615 | if test "$wxUSE_LISTBOX" = "yes"; then | |
44616 | cat >>confdefs.h <<\_ACEOF | |
44617 | #define wxUSE_LISTBOX 1 | |
44618 | _ACEOF | |
44619 | ||
44620 | USES_CONTROLS=1 | |
0b78747f | 44621 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
44622 | fi |
44623 | ||
44624 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
44625 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
44626 | cat >>confdefs.h <<\_ACEOF | |
44627 | #define wxUSE_LISTCTRL 1 | |
44628 | _ACEOF | |
44629 | ||
44630 | USES_CONTROLS=1 | |
44631 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
44632 | else | |
44633 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
44634 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
44635 | fi | |
44636 | fi | |
44637 | ||
44638 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
44639 | cat >>confdefs.h <<\_ACEOF | |
44640 | #define wxUSE_NOTEBOOK 1 | |
44641 | _ACEOF | |
44642 | ||
44643 | USES_CONTROLS=1 | |
44644 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
44645 | fi | |
44646 | ||
a57d600f | 44647 | if test "$wxUSE_ODCOMBOBOX" = "yes"; then |
642bcba9 | 44648 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 44649 | #define wxUSE_ODCOMBOBOX 1 |
642bcba9 VZ |
44650 | _ACEOF |
44651 | ||
44652 | USES_CONTROLS=1 | |
44653 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo" | |
44654 | fi | |
44655 | ||
a848cd7e SC |
44656 | |
44657 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
44658 | cat >>confdefs.h <<\_ACEOF | |
44659 | #define wxUSE_RADIOBOX 1 | |
44660 | _ACEOF | |
44661 | ||
44662 | USES_CONTROLS=1 | |
44663 | fi | |
44664 | ||
44665 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
44666 | cat >>confdefs.h <<\_ACEOF | |
44667 | #define wxUSE_RADIOBTN 1 | |
44668 | _ACEOF | |
44669 | ||
44670 | USES_CONTROLS=1 | |
44671 | fi | |
44672 | ||
44673 | if test "$wxUSE_SASH" = "yes"; then | |
44674 | cat >>confdefs.h <<\_ACEOF | |
44675 | #define wxUSE_SASH 1 | |
44676 | _ACEOF | |
44677 | ||
44678 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
44679 | fi | |
44680 | ||
44681 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
44682 | cat >>confdefs.h <<\_ACEOF | |
44683 | #define wxUSE_SCROLLBAR 1 | |
44684 | _ACEOF | |
44685 | ||
44686 | USES_CONTROLS=1 | |
44687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
44688 | fi | |
44689 | ||
44690 | if test "$wxUSE_SLIDER" = "yes"; then | |
44691 | cat >>confdefs.h <<\_ACEOF | |
44692 | #define wxUSE_SLIDER 1 | |
44693 | _ACEOF | |
44694 | ||
44695 | USES_CONTROLS=1 | |
44696 | fi | |
44697 | ||
44698 | if test "$wxUSE_SPINBTN" = "yes"; then | |
44699 | cat >>confdefs.h <<\_ACEOF | |
44700 | #define wxUSE_SPINBTN 1 | |
44701 | _ACEOF | |
44702 | ||
44703 | USES_CONTROLS=1 | |
44704 | fi | |
44705 | ||
44706 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
44707 | cat >>confdefs.h <<\_ACEOF | |
44708 | #define wxUSE_SPINCTRL 1 | |
44709 | _ACEOF | |
44710 | ||
44711 | USES_CONTROLS=1 | |
44712 | fi | |
44713 | ||
44714 | if test "$wxUSE_SPLITTER" = "yes"; then | |
44715 | cat >>confdefs.h <<\_ACEOF | |
44716 | #define wxUSE_SPLITTER 1 | |
44717 | _ACEOF | |
44718 | ||
44719 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
44720 | fi | |
44721 | ||
44722 | if test "$wxUSE_STATBMP" = "yes"; then | |
44723 | cat >>confdefs.h <<\_ACEOF | |
44724 | #define wxUSE_STATBMP 1 | |
44725 | _ACEOF | |
44726 | ||
44727 | USES_CONTROLS=1 | |
44728 | fi | |
44729 | ||
44730 | if test "$wxUSE_STATBOX" = "yes"; then | |
44731 | cat >>confdefs.h <<\_ACEOF | |
44732 | #define wxUSE_STATBOX 1 | |
44733 | _ACEOF | |
44734 | ||
44735 | USES_CONTROLS=1 | |
44736 | fi | |
44737 | ||
44738 | if test "$wxUSE_STATTEXT" = "yes"; then | |
44739 | cat >>confdefs.h <<\_ACEOF | |
44740 | #define wxUSE_STATTEXT 1 | |
44741 | _ACEOF | |
44742 | ||
44743 | USES_CONTROLS=1 | |
44744 | fi | |
44745 | ||
44746 | if test "$wxUSE_STATLINE" = "yes"; then | |
44747 | cat >>confdefs.h <<\_ACEOF | |
44748 | #define wxUSE_STATLINE 1 | |
44749 | _ACEOF | |
44750 | ||
44751 | USES_CONTROLS=1 | |
44752 | fi | |
44753 | ||
44754 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
44755 | cat >>confdefs.h <<\_ACEOF |
44756 | #define wxUSE_NATIVE_STATUSBAR 1 | |
44757 | _ACEOF | |
44758 | ||
a848cd7e SC |
44759 | cat >>confdefs.h <<\_ACEOF |
44760 | #define wxUSE_STATUSBAR 1 | |
44761 | _ACEOF | |
44762 | ||
44763 | USES_CONTROLS=1 | |
44764 | ||
44765 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
44766 | fi | |
44767 | ||
f10e38c4 | 44768 | if test "$wxUSE_TAB_DIALOG" = "yes"; then |
a848cd7e SC |
44769 | cat >>confdefs.h <<\_ACEOF |
44770 | #define wxUSE_TAB_DIALOG 1 | |
44771 | _ACEOF | |
44772 | ||
a848cd7e SC |
44773 | fi |
44774 | ||
44775 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
44776 | cat >>confdefs.h <<\_ACEOF | |
44777 | #define wxUSE_TEXTCTRL 1 | |
44778 | _ACEOF | |
44779 | ||
44780 | USES_CONTROLS=1 | |
44781 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
44782 | fi | |
44783 | ||
44784 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
44785 | if test "$wxUSE_COCOA" = 1 ; then | |
44786 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
44787 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
44788 | wxUSE_TOGGLEBTN=no | |
44789 | fi | |
a848cd7e SC |
44790 | |
44791 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
44792 | cat >>confdefs.h <<\_ACEOF | |
44793 | #define wxUSE_TOGGLEBTN 1 | |
44794 | _ACEOF | |
44795 | ||
44796 | USES_CONTROLS=1 | |
44797 | fi | |
44798 | fi | |
44799 | ||
44800 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
44801 | cat >>confdefs.h <<\_ACEOF | |
44802 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
44803 | _ACEOF | |
44804 | ||
44805 | wxUSE_TOOLBAR="yes" | |
44806 | USES_CONTROLS=1 | |
44807 | fi | |
44808 | ||
44809 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
44810 | cat >>confdefs.h <<\_ACEOF | |
44811 | #define wxUSE_TOOLBAR 1 | |
44812 | _ACEOF | |
44813 | ||
44814 | USES_CONTROLS=1 | |
44815 | ||
44816 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
44817 | wxUSE_TOOLBAR_NATIVE="yes" | |
44818 | fi | |
44819 | ||
44820 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
44821 | cat >>confdefs.h <<\_ACEOF | |
44822 | #define wxUSE_TOOLBAR_NATIVE 1 | |
44823 | _ACEOF | |
44824 | ||
44825 | USES_CONTROLS=1 | |
44826 | fi | |
44827 | ||
44828 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
44829 | fi | |
44830 | ||
44831 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
44832 | if test "$wxUSE_MOTIF" = 1; then | |
44833 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
44834 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
44835 | else | |
44836 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
44837 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
44838 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
44839 | else | |
44840 | cat >>confdefs.h <<\_ACEOF | |
44841 | #define wxUSE_TOOLTIPS 1 | |
44842 | _ACEOF | |
44843 | ||
44844 | fi | |
44845 | fi | |
44846 | fi | |
44847 | ||
0093c2fc VZ |
44848 | if test "$wxUSE_TREEBOOK" = "yes"; then |
44849 | cat >>confdefs.h <<\_ACEOF | |
44850 | #define wxUSE_TREEBOOK 1 | |
44851 | _ACEOF | |
44852 | ||
44853 | USES_CONTROLS=1 | |
44854 | fi | |
44855 | ||
5ec3bc43 JS |
44856 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
44857 | cat >>confdefs.h <<\_ACEOF | |
44858 | #define wxUSE_TOOLBOOK 1 | |
44859 | _ACEOF | |
44860 | ||
44861 | USES_CONTROLS=1 | |
44862 | fi | |
44863 | ||
a848cd7e SC |
44864 | if test "$wxUSE_TREECTRL" = "yes"; then |
44865 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
44866 | cat >>confdefs.h <<\_ACEOF | |
44867 | #define wxUSE_TREECTRL 1 | |
44868 | _ACEOF | |
44869 | ||
44870 | USES_CONTROLS=1 | |
44871 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
44872 | else | |
44873 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
44874 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
44875 | fi | |
44876 | fi | |
44877 | ||
44878 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
44879 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
44880 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
44881 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
44882 | else | |
44883 | if test "$wxUSE_PM" = 1; then | |
44884 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
44885 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
44886 | else | |
44887 | cat >>confdefs.h <<\_ACEOF | |
44888 | #define wxUSE_POPUPWIN 1 | |
44889 | _ACEOF | |
44890 | ||
0b78747f | 44891 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
44892 | |
44893 | USES_CONTROLS=1 | |
44894 | fi | |
44895 | fi | |
44896 | fi | |
44897 | ||
0dcd06dd | 44898 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
44899 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
44900 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
44901 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
44902 | else | |
44903 | cat >>confdefs.h <<\_ACEOF | |
44904 | #define wxUSE_DIALUP_MANAGER 1 | |
44905 | _ACEOF | |
44906 | ||
44907 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
44908 | fi | |
44909 | fi | |
44910 | ||
a848cd7e SC |
44911 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
44912 | if test "$wxUSE_PM" = 1; then | |
44913 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
44914 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
44915 | else | |
44916 | cat >>confdefs.h <<\_ACEOF | |
44917 | #define wxUSE_TIPWINDOW 1 | |
44918 | _ACEOF | |
44919 | ||
44920 | fi | |
44921 | fi | |
44922 | ||
44923 | if test "$USES_CONTROLS" = 1; then | |
44924 | cat >>confdefs.h <<\_ACEOF | |
44925 | #define wxUSE_CONTROLS 1 | |
44926 | _ACEOF | |
44927 | ||
44928 | fi | |
44929 | ||
44930 | ||
44931 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
44932 | cat >>confdefs.h <<\_ACEOF | |
44933 | #define wxUSE_ACCESSIBILITY 1 | |
44934 | _ACEOF | |
44935 | ||
44936 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
44937 | fi | |
44938 | ||
38b4a946 VZ |
44939 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
44940 | cat >>confdefs.h <<\_ACEOF | |
44941 | #define wxUSE_DC_CACHEING 1 | |
44942 | _ACEOF | |
44943 | ||
44944 | fi | |
44945 | ||
a848cd7e SC |
44946 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
44947 | cat >>confdefs.h <<\_ACEOF | |
44948 | #define wxUSE_DRAGIMAGE 1 | |
44949 | _ACEOF | |
44950 | ||
44951 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
44952 | fi | |
44953 | ||
44954 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
44955 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
44956 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
44957 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
44958 | else | |
44959 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44960 | #define wxUSE_EXCEPTIONS 1 |
44961 | _ACEOF | |
44962 | ||
07bea8f0 VS |
44963 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
44964 | fi | |
a848cd7e SC |
44965 | fi |
44966 | ||
44967 | USE_HTML=0 | |
44968 | if test "$wxUSE_HTML" = "yes"; then | |
44969 | cat >>confdefs.h <<\_ACEOF | |
44970 | #define wxUSE_HTML 1 | |
44971 | _ACEOF | |
44972 | ||
44973 | USE_HTML=1 | |
44974 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
44975 | if test "$wxUSE_MAC" = 1; then |
44976 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
44977 | fi | |
a848cd7e | 44978 | fi |
646b6ec1 | 44979 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 44980 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 44981 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 44982 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
44983 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
44984 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
44985 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
44986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44987 | else | |
44988 | cat >conftest.$ac_ext <<_ACEOF | |
44989 | /* confdefs.h. */ | |
44990 | _ACEOF | |
44991 | cat confdefs.h >>conftest.$ac_ext | |
44992 | cat >>conftest.$ac_ext <<_ACEOF | |
44993 | /* end confdefs.h. */ | |
44994 | #include <Carbon/Carbon.h> | |
44995 | ||
44996 | #include <WebKit/HIWebView.h> | |
44997 | _ACEOF | |
44998 | rm -f conftest.$ac_objext | |
44999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45000 | (eval $ac_compile) 2>conftest.er1 | |
45001 | ac_status=$? | |
45002 | grep -v '^ *+' conftest.er1 >conftest.err | |
45003 | rm -f conftest.er1 | |
45004 | cat conftest.err >&5 | |
45005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45006 | (exit $ac_status); } && | |
3f60522a JS |
45007 | { ac_try='test -z "$ac_cxx_werror_flag" |
45008 | || test ! -s conftest.err' | |
07bea8f0 VS |
45009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45010 | (eval $ac_try) 2>&5 | |
45011 | ac_status=$? | |
45012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45013 | (exit $ac_status); }; } && | |
45014 | { ac_try='test -s conftest.$ac_objext' | |
45015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45016 | (eval $ac_try) 2>&5 | |
45017 | ac_status=$? | |
45018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45019 | (exit $ac_status); }; }; then | |
45020 | ac_cv_header_WebKit_HIWebView_h=yes | |
45021 | else | |
45022 | echo "$as_me: failed program was:" >&5 | |
45023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45024 | ||
45025 | ac_cv_header_WebKit_HIWebView_h=no | |
45026 | fi | |
45027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
45028 | fi | |
45029 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
45030 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
45031 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
45032 | ||
45033 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
45034 | #define wxUSE_WEBKIT 1 |
45035 | _ACEOF | |
45036 | ||
07bea8f0 VS |
45037 | WEBKIT_LINK="-framework WebKit" |
45038 | ||
45039 | else | |
45040 | ||
45041 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
45042 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
45043 | wxUSE_WEBKIT=no | |
45044 | ||
646b6ec1 VS |
45045 | fi |
45046 | ||
07bea8f0 VS |
45047 | |
45048 | CPPFLAGS="$old_CPPFLAGS" | |
45049 | elif test "$wxUSE_COCOA" = 1; then | |
45050 | cat >>confdefs.h <<\_ACEOF | |
45051 | #define wxUSE_WEBKIT 1 | |
45052 | _ACEOF | |
45053 | ||
45054 | else | |
45055 | wxUSE_WEBKIT=no | |
45056 | fi | |
45057 | fi | |
45058 | ||
9a8f0513 VS |
45059 | USE_XRC=0 |
45060 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
45061 | if test "$wxUSE_XML" != "yes"; then |
45062 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
45063 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
45064 | wxUSE_XRC=no | |
45065 | else | |
45066 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
45067 | #define wxUSE_XRC 1 |
45068 | _ACEOF | |
45069 | ||
d2ebf0b7 VS |
45070 | USE_XRC=1 |
45071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
45072 | fi | |
9a8f0513 | 45073 | fi |
07bea8f0 | 45074 | |
3f60522a JS |
45075 | USE_AUI=0 |
45076 | if test "$wxUSE_AUI" = "yes"; then | |
45077 | cat >>confdefs.h <<\_ACEOF | |
45078 | #define wxUSE_AUI 1 | |
45079 | _ACEOF | |
45080 | ||
45081 | USE_AUI=1 | |
45082 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui" | |
45083 | fi | |
45084 | ||
a848cd7e SC |
45085 | if test "$wxUSE_MENUS" = "yes"; then |
45086 | cat >>confdefs.h <<\_ACEOF | |
45087 | #define wxUSE_MENUS 1 | |
45088 | _ACEOF | |
45089 | ||
45090 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
45091 | fi | |
45092 | ||
45093 | if test "$wxUSE_METAFILE" = "yes"; then | |
45094 | cat >>confdefs.h <<\_ACEOF | |
45095 | #define wxUSE_METAFILE 1 | |
45096 | _ACEOF | |
45097 | ||
45098 | fi | |
45099 | ||
45100 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
45101 | cat >>confdefs.h <<\_ACEOF | |
45102 | #define wxUSE_MIMETYPE 1 | |
45103 | _ACEOF | |
45104 | ||
45105 | fi | |
45106 | ||
45107 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
45108 | cat >>confdefs.h <<\_ACEOF | |
45109 | #define wxUSE_MINIFRAME 1 | |
45110 | _ACEOF | |
45111 | ||
45112 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
45113 | fi | |
45114 | ||
45115 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
45116 | cat >>confdefs.h <<\_ACEOF | |
45117 | #define wxUSE_SYSTEM_OPTIONS 1 | |
45118 | _ACEOF | |
45119 | ||
45120 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 45121 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
45122 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
45123 | fi | |
45124 | fi | |
45125 | ||
45126 | ||
45127 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
45128 | cat >>confdefs.h <<\_ACEOF | |
45129 | #define wxUSE_VALIDATORS 1 | |
45130 | _ACEOF | |
45131 | ||
45132 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
45133 | fi | |
45134 | ||
45135 | if test "$wxUSE_PALETTE" = "yes" ; then | |
45136 | cat >>confdefs.h <<\_ACEOF | |
45137 | #define wxUSE_PALETTE 1 | |
45138 | _ACEOF | |
45139 | ||
45140 | fi | |
45141 | ||
45142 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
45143 | LIBS=" -lunicows $LIBS" | |
45144 | fi | |
45145 | ||
91dea314 MW |
45146 | USE_RICHTEXT=0 |
45147 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
45148 | cat >>confdefs.h <<\_ACEOF | |
45149 | #define wxUSE_RICHTEXT 1 | |
45150 | _ACEOF | |
45151 | ||
45152 | USE_RICHTEXT=1 | |
45153 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
45154 | fi | |
45155 | ||
a848cd7e SC |
45156 | |
45157 | if test "$wxUSE_IMAGE" = "yes" ; then | |
45158 | cat >>confdefs.h <<\_ACEOF | |
45159 | #define wxUSE_IMAGE 1 | |
45160 | _ACEOF | |
45161 | ||
45162 | ||
45163 | if test "$wxUSE_GIF" = "yes" ; then | |
45164 | cat >>confdefs.h <<\_ACEOF | |
45165 | #define wxUSE_GIF 1 | |
45166 | _ACEOF | |
45167 | ||
45168 | fi | |
45169 | ||
45170 | if test "$wxUSE_PCX" = "yes" ; then | |
45171 | cat >>confdefs.h <<\_ACEOF | |
45172 | #define wxUSE_PCX 1 | |
45173 | _ACEOF | |
45174 | ||
45175 | fi | |
45176 | ||
45177 | if test "$wxUSE_IFF" = "yes" ; then | |
45178 | cat >>confdefs.h <<\_ACEOF | |
45179 | #define wxUSE_IFF 1 | |
45180 | _ACEOF | |
45181 | ||
45182 | fi | |
45183 | ||
45184 | if test "$wxUSE_PNM" = "yes" ; then | |
45185 | cat >>confdefs.h <<\_ACEOF | |
45186 | #define wxUSE_PNM 1 | |
45187 | _ACEOF | |
45188 | ||
45189 | fi | |
45190 | ||
45191 | if test "$wxUSE_XPM" = "yes" ; then | |
45192 | cat >>confdefs.h <<\_ACEOF | |
45193 | #define wxUSE_XPM 1 | |
45194 | _ACEOF | |
45195 | ||
45196 | fi | |
45197 | ||
45198 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
45199 | cat >>confdefs.h <<\_ACEOF | |
45200 | #define wxUSE_ICO_CUR 1 | |
45201 | _ACEOF | |
45202 | ||
45203 | fi | |
45204 | fi | |
45205 | ||
45206 | ||
45207 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
45208 | cat >>confdefs.h <<\_ACEOF | |
45209 | #define wxUSE_CHOICEDLG 1 | |
45210 | _ACEOF | |
45211 | ||
45212 | fi | |
45213 | ||
45214 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
45215 | cat >>confdefs.h <<\_ACEOF | |
45216 | #define wxUSE_COLOURDLG 1 | |
45217 | _ACEOF | |
45218 | ||
45219 | fi | |
45220 | ||
45221 | if test "$wxUSE_FILEDLG" = "yes"; then | |
45222 | cat >>confdefs.h <<\_ACEOF | |
45223 | #define wxUSE_FILEDLG 1 | |
45224 | _ACEOF | |
45225 | ||
45226 | fi | |
45227 | ||
45228 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
45229 | cat >>confdefs.h <<\_ACEOF | |
45230 | #define wxUSE_FINDREPLDLG 1 | |
45231 | _ACEOF | |
45232 | ||
45233 | fi | |
45234 | ||
45235 | if test "$wxUSE_FONTDLG" = "yes"; then | |
45236 | cat >>confdefs.h <<\_ACEOF | |
45237 | #define wxUSE_FONTDLG 1 | |
45238 | _ACEOF | |
45239 | ||
45240 | fi | |
45241 | ||
45242 | if test "$wxUSE_DIRDLG" = "yes"; then | |
45243 | if test "$wxUSE_TREECTRL" != "yes"; then | |
45244 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
45245 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
45246 | else | |
45247 | cat >>confdefs.h <<\_ACEOF | |
45248 | #define wxUSE_DIRDLG 1 | |
45249 | _ACEOF | |
45250 | ||
45251 | fi | |
45252 | fi | |
45253 | ||
45254 | if test "$wxUSE_MSGDLG" = "yes"; then | |
45255 | cat >>confdefs.h <<\_ACEOF | |
45256 | #define wxUSE_MSGDLG 1 | |
45257 | _ACEOF | |
45258 | ||
45259 | fi | |
45260 | ||
45261 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
45262 | cat >>confdefs.h <<\_ACEOF | |
45263 | #define wxUSE_NUMBERDLG 1 | |
45264 | _ACEOF | |
45265 | ||
45266 | fi | |
45267 | ||
45268 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
45269 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
45270 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
45271 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
45272 | else | |
45273 | cat >>confdefs.h <<\_ACEOF | |
45274 | #define wxUSE_PROGRESSDLG 1 | |
45275 | _ACEOF | |
45276 | ||
45277 | fi | |
45278 | fi | |
45279 | ||
45280 | if test "$wxUSE_SPLASH" = "yes"; then | |
45281 | cat >>confdefs.h <<\_ACEOF | |
45282 | #define wxUSE_SPLASH 1 | |
45283 | _ACEOF | |
45284 | ||
2057db16 | 45285 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
45286 | fi |
45287 | ||
45288 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
45289 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
45290 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
45291 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
45292 | else | |
45293 | cat >>confdefs.h <<\_ACEOF | |
45294 | #define wxUSE_STARTUP_TIPS 1 | |
45295 | _ACEOF | |
45296 | ||
45297 | fi | |
45298 | fi | |
45299 | ||
45300 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
45301 | cat >>confdefs.h <<\_ACEOF | |
45302 | #define wxUSE_TEXTDLG 1 | |
45303 | _ACEOF | |
45304 | ||
45305 | fi | |
45306 | ||
45307 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
45308 | cat >>confdefs.h <<\_ACEOF | |
45309 | #define wxUSE_WIZARDDLG 1 | |
45310 | _ACEOF | |
45311 | ||
45312 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
45313 | fi | |
45314 | ||
45315 | ||
f10e38c4 VZ |
45316 | USE_MEDIA=0 |
45317 | ||
ce756cb0 | 45318 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
45319 | if test "$wxUSE_GTK" = 1; then |
45320 | wxUSE_GSTREAMER="yes" | |
45321 | ||
f10e38c4 VZ |
45322 | GST_VERSION_MAJOR=0 |
45323 | GST_VERSION_MINOR=10 | |
45324 | GST_VERSION_RELEASE=0 | |
45325 | GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE | |
45326 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
45327 | ||
45328 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 45329 | |
dae87f93 | 45330 | succeeded=no |
ce756cb0 | 45331 | |
dae87f93 RN |
45332 | if test -z "$PKG_CONFIG"; then |
45333 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
45334 | set dummy pkg-config; ac_word=$2 | |
45335 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45337 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
45338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45339 | else | |
45340 | case $PKG_CONFIG in | |
45341 | [\\/]* | ?:[\\/]*) | |
45342 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
45343 | ;; | |
45344 | *) | |
45345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45346 | for as_dir in $PATH | |
45347 | do | |
45348 | IFS=$as_save_IFS | |
45349 | test -z "$as_dir" && as_dir=. | |
45350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45351 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45352 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
45353 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45354 | break 2 | |
45355 | fi | |
45356 | done | |
45357 | done | |
45358 | ||
45359 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
45360 | ;; | |
45361 | esac | |
45362 | fi | |
45363 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
45364 | ||
45365 | if test -n "$PKG_CONFIG"; then | |
45366 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
45367 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
45368 | else | |
45369 | echo "$as_me:$LINENO: result: no" >&5 | |
45370 | echo "${ECHO_T}no" >&6 | |
45371 | fi | |
45372 | ||
45373 | fi | |
45374 | ||
45375 | if test "$PKG_CONFIG" = "no" ; then | |
45376 | echo "*** The pkg-config script could not be found. Make sure it is" | |
45377 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
45378 | echo "*** to the full path to pkg-config." | |
45379 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
45380 | else | |
45381 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
45382 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
f10e38c4 VZ |
45383 | echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR |
45384 | gstreamer-plugins-base-$GST_MAJORMINOR | |
45385 | gconf-2.0" >&5 | |
45386 | echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR | |
45387 | gstreamer-plugins-base-$GST_MAJORMINOR | |
45388 | gconf-2.0... $ECHO_C" >&6 | |
45389 | ||
45390 | if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR | |
45391 | gstreamer-plugins-base-$GST_MAJORMINOR | |
45392 | gconf-2.0" ; then | |
dae87f93 | 45393 | echo "$as_me:$LINENO: result: yes" >&5 |
ce756cb0 | 45394 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 45395 | succeeded=yes |
ce756cb0 | 45396 | |
f10e38c4 VZ |
45397 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
45398 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
45399 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR | |
45400 | gstreamer-plugins-base-$GST_MAJORMINOR | |
45401 | gconf-2.0"` | |
45402 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 | |
45403 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
45404 | ||
45405 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
45406 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
45407 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR | |
45408 | gstreamer-plugins-base-$GST_MAJORMINOR | |
45409 | gconf-2.0"` | |
45410 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 | |
45411 | echo "${ECHO_T}$GST_LIBS" >&6 | |
dae87f93 | 45412 | else |
f10e38c4 VZ |
45413 | GST_CFLAGS="" |
45414 | GST_LIBS="" | |
dae87f93 RN |
45415 | ## If we have a custom action on failure, don't print errors, but |
45416 | ## do set a variable so people can do so. | |
f10e38c4 VZ |
45417 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR |
45418 | gstreamer-plugins-base-$GST_MAJORMINOR | |
45419 | gconf-2.0"` | |
ce756cb0 | 45420 | |
dae87f93 RN |
45421 | fi |
45422 | ||
45423 | ||
45424 | ||
45425 | else | |
45426 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
45427 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
45428 | fi | |
45429 | fi | |
45430 | ||
45431 | if test $succeeded = yes; then | |
45432 | ||
f10e38c4 VZ |
45433 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
45434 | LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR" | |
ce756cb0 | 45435 | |
ce756cb0 | 45436 | else |
dae87f93 | 45437 | |
f10e38c4 | 45438 | GST_VERSION_MINOR=8 |
dae87f93 RN |
45439 | |
45440 | fi | |
45441 | ||
f10e38c4 VZ |
45442 | else |
45443 | GST_VERSION_MINOR=8 | |
45444 | fi | |
dae87f93 | 45445 | |
f10e38c4 VZ |
45446 | GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE |
45447 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 45448 | |
f10e38c4 | 45449 | if test x$GST_VERSION_MINOR = x8; then |
dae87f93 | 45450 | |
f10e38c4 | 45451 | succeeded=no |
dae87f93 | 45452 | |
f10e38c4 VZ |
45453 | if test -z "$PKG_CONFIG"; then |
45454 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
45455 | set dummy pkg-config; ac_word=$2 | |
dae87f93 RN |
45456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
45457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f10e38c4 | 45458 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
dae87f93 RN |
45459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
45460 | else | |
f10e38c4 VZ |
45461 | case $PKG_CONFIG in |
45462 | [\\/]* | ?:[\\/]*) | |
45463 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
45464 | ;; | |
45465 | *) | |
45466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dae87f93 RN |
45467 | for as_dir in $PATH |
45468 | do | |
45469 | IFS=$as_save_IFS | |
45470 | test -z "$as_dir" && as_dir=. | |
45471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
f10e38c4 | 45473 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
dae87f93 RN |
45474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
45475 | break 2 | |
ce756cb0 | 45476 | fi |
dae87f93 RN |
45477 | done |
45478 | done | |
45479 | ||
f10e38c4 VZ |
45480 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
45481 | ;; | |
45482 | esac | |
dae87f93 | 45483 | fi |
f10e38c4 VZ |
45484 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
45485 | ||
45486 | if test -n "$PKG_CONFIG"; then | |
45487 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
45488 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
dae87f93 RN |
45489 | else |
45490 | echo "$as_me:$LINENO: result: no" >&5 | |
45491 | echo "${ECHO_T}no" >&6 | |
45492 | fi | |
45493 | ||
f10e38c4 | 45494 | fi |
ce756cb0 | 45495 | |
f10e38c4 VZ |
45496 | if test "$PKG_CONFIG" = "no" ; then |
45497 | echo "*** The pkg-config script could not be found. Make sure it is" | |
45498 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
45499 | echo "*** to the full path to pkg-config." | |
45500 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
45501 | else | |
45502 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
45503 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
45504 | echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR | |
45505 | gstreamer-interfaces-$GST_MAJORMINOR | |
45506 | gstreamer-gconf-$GST_MAJORMINOR" >&5 | |
45507 | echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR | |
45508 | gstreamer-interfaces-$GST_MAJORMINOR | |
45509 | gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6 | |
45510 | ||
45511 | if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR | |
45512 | gstreamer-interfaces-$GST_MAJORMINOR | |
45513 | gstreamer-gconf-$GST_MAJORMINOR" ; then | |
45514 | echo "$as_me:$LINENO: result: yes" >&5 | |
45515 | echo "${ECHO_T}yes" >&6 | |
45516 | succeeded=yes | |
dae87f93 | 45517 | |
f10e38c4 VZ |
45518 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
45519 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
45520 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR | |
45521 | gstreamer-interfaces-$GST_MAJORMINOR | |
45522 | gstreamer-gconf-$GST_MAJORMINOR"` | |
45523 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 | |
45524 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
45525 | ||
45526 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
45527 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
45528 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR | |
45529 | gstreamer-interfaces-$GST_MAJORMINOR | |
45530 | gstreamer-gconf-$GST_MAJORMINOR"` | |
45531 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 | |
45532 | echo "${ECHO_T}$GST_LIBS" >&6 | |
45533 | else | |
45534 | GST_CFLAGS="" | |
45535 | GST_LIBS="" | |
45536 | ## If we have a custom action on failure, don't print errors, but | |
45537 | ## do set a variable so people can do so. | |
45538 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR | |
45539 | gstreamer-interfaces-$GST_MAJORMINOR | |
45540 | gstreamer-gconf-$GST_MAJORMINOR"` | |
dae87f93 | 45541 | |
dae87f93 RN |
45542 | fi |
45543 | ||
45544 | ||
ce756cb0 | 45545 | |
f10e38c4 VZ |
45546 | else |
45547 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
45548 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
45549 | fi | |
45550 | fi | |
ce756cb0 | 45551 | |
f10e38c4 | 45552 | if test $succeeded = yes; then |
dae87f93 | 45553 | |
f10e38c4 VZ |
45554 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
45555 | LIBS="$LIBS $GST_LIBS" | |
dae87f93 | 45556 | |
f10e38c4 | 45557 | else |
ce756cb0 | 45558 | |
f10e38c4 VZ |
45559 | { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5 |
45560 | echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;} | |
45561 | wxUSE_GSTREAMER="no" | |
ce756cb0 | 45562 | |
f10e38c4 | 45563 | fi |
ce756cb0 | 45564 | |
dae87f93 | 45565 | fi |
ce756cb0 | 45566 | |
f10e38c4 | 45567 | |
dae87f93 RN |
45568 | if test "$wxUSE_GSTREAMER" = "yes"; then |
45569 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
45570 | #define wxUSE_GSTREAMER 1 |
45571 | _ACEOF | |
45572 | ||
dae87f93 RN |
45573 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
45574 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
45575 | fi |
45576 | fi | |
f10e38c4 | 45577 | USE_MEDIA=1 |
ce756cb0 RN |
45578 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" |
45579 | cat >>confdefs.h <<\_ACEOF | |
45580 | #define wxUSE_MEDIACTRL 1 | |
45581 | _ACEOF | |
45582 | ||
45583 | fi | |
45584 | ||
45585 | ||
a848cd7e SC |
45586 | if test "$cross_compiling" = "yes"; then |
45587 | OSINFO="\"$host\"" | |
45588 | else | |
45589 | OSINFO=`uname -s -r -m` | |
45590 | OSINFO="\"$OSINFO\"" | |
45591 | fi | |
45592 | ||
45593 | cat >>confdefs.h <<_ACEOF | |
45594 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
45595 | _ACEOF | |
45596 | ||
45597 | ||
45598 | ||
45599 | if test "x$prefix" != "xNONE"; then | |
45600 | wxPREFIX=$prefix | |
45601 | else | |
45602 | wxPREFIX=$ac_default_prefix | |
45603 | fi | |
45604 | ||
45605 | cat >>confdefs.h <<_ACEOF | |
45606 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
45607 | _ACEOF | |
45608 | ||
45609 | ||
a848cd7e SC |
45610 | |
45611 | ||
45612 | CORE_BASE_LIBS="net base" | |
45613 | CORE_GUI_LIBS="adv core" | |
45614 | ||
45615 | if test "$wxUSE_XML" = "yes" ; then | |
45616 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
45617 | fi | |
45618 | if test "$wxUSE_ODBC" != "no" ; then | |
45619 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
45620 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
45621 | fi | |
45622 | if test "$wxUSE_HTML" = "yes" ; then | |
45623 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
45624 | fi | |
61639efb VZ |
45625 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45626 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
45627 | fi | |
9a8f0513 VS |
45628 | if test "$wxUSE_XRC" = "yes" ; then |
45629 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
45630 | fi | |
3f60522a JS |
45631 | if test "$wxUSE_AUI" = "yes" ; then |
45632 | CORE_GUI_LIBS="aui $CORE_GUI_LIBS" | |
45633 | fi | |
a848cd7e SC |
45634 | |
45635 | if test "$wxUSE_GUI" != "yes"; then | |
45636 | CORE_GUI_LIBS="" | |
45637 | fi | |
45638 | ||
45639 | ||
45640 | ||
45641 | ||
45642 | ||
5d7b7554 VZ |
45643 | ac_ext=c |
45644 | ac_cpp='$CPP $CPPFLAGS' | |
45645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
45646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
45647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
45648 | ||
a848cd7e SC |
45649 | |
45650 | ||
a848cd7e | 45651 | if test "$wxUSE_MAC" = 1 ; then |
a98bf0c0 | 45652 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
45653 | if test "$USE_DARWIN" = 1; then |
45654 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
45655 | else | |
45656 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
45657 | fi | |
07bea8f0 | 45658 | fi |
5dcf30a0 | 45659 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
45660 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
45661 | else | |
45662 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 45663 | fi |
a848cd7e SC |
45664 | fi |
45665 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 45666 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
45667 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
45668 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
45669 | fi | |
a848cd7e | 45670 | fi |
19b27e78 MW |
45671 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
45672 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
45673 | fi | |
a848cd7e | 45674 | |
a848cd7e SC |
45675 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
45676 | ||
a848cd7e SC |
45677 | if test "$wxUSE_GUI" = "yes"; then |
45678 | ||
45679 | ||
8bce5cda MW |
45680 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
45681 | dynamic erase event exec font image minimal mobile \ | |
45682 | mobile/wxedit mobile/styles propsize render \ | |
9e39d889 | 45683 | rotate shaped vscroll widgets" |
a848cd7e SC |
45684 | |
45685 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
45686 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
45687 | fi | |
0b78747f | 45688 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
45689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
45690 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
45691 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
45692 | fi | |
45693 | fi | |
45694 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
45695 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 45696 | fi |
a848cd7e SC |
45697 | else |
45698 | SAMPLES_SUBDIRS="console" | |
45699 | fi | |
45700 | ||
45701 | ||
48f625bc | 45702 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
45703 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
45704 | elif test "$GCC" = yes ; then | |
45705 | CWARNINGS="-Wall -Wundef" | |
45706 | fi | |
45707 | ||
48f625bc | 45708 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 45709 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
45710 | elif test "$GXX" = yes ; then |
45711 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 45712 | fi |
a848cd7e | 45713 | |
a848cd7e | 45714 | |
5ff751d6 VZ |
45715 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
45716 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
45717 | ||
45718 | ||
c92ad099 | 45719 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 45720 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
45721 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
45722 | $CPPFLAGS ` | |
5ff751d6 | 45723 | |
8aeeb05c | 45724 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 45725 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 45726 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
45727 | |
45728 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
45729 | ||
a848cd7e | 45730 | |
95986553 DE |
45731 | if test "x$MWCC" = "xyes"; then |
45732 | ||
45733 | CC="$CC -cwd source -I-" | |
45734 | CXX="$CXX -cwd source -I-" | |
45735 | fi | |
45736 | ||
a848cd7e | 45737 | |
0c3c69fc | 45738 | LIBS=`echo $LIBS` |
a848cd7e SC |
45739 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
45740 | EXTRALIBS_XML="$EXPAT_LINK" | |
45741 | EXTRALIBS_HTML="$MSPACK_LINK" | |
45742 | EXTRALIBS_ODBC="$ODBC_LINK" | |
45743 | if test "$wxUSE_GUI" = "yes"; then | |
2b850ae1 | 45744 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
45745 | fi |
45746 | if test "$wxUSE_OPENGL" = "yes"; then | |
45747 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
45748 | fi | |
45749 | ||
8aeeb05c | 45750 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 45751 | |
5ff751d6 | 45752 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
45753 | |
45754 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 45755 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
45756 | fi |
45757 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 45758 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
45759 | fi |
45760 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 45761 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
45762 | fi |
45763 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 45764 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
45765 | fi |
45766 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 45767 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
45768 | fi |
45769 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 45770 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
45771 | fi |
45772 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 45773 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
45774 | fi |
45775 | ||
45776 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 45777 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
45778 | done |
45779 | ||
45780 | ||
45781 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
45782 | WXUNIV=1 | |
45783 | else | |
45784 | WXUNIV=0 | |
45785 | fi | |
45786 | ||
45787 | ||
45788 | ||
45789 | ||
45790 | ||
45791 | ||
45792 | ||
45793 | ||
45794 | ||
45795 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
45796 | MONOLITHIC=1 | |
45797 | else | |
45798 | MONOLITHIC=0 | |
45799 | fi | |
45800 | ||
45801 | if test $wxUSE_PLUGINS = "yes" ; then | |
45802 | USE_PLUGINS=1 | |
45803 | else | |
45804 | USE_PLUGINS=0 | |
45805 | fi | |
45806 | ||
45807 | if test $wxUSE_ODBC != "no" ; then | |
45808 | USE_ODBC=1 | |
45809 | else | |
45810 | USE_ODBC=0 | |
45811 | fi | |
45812 | ||
16358932 VZ |
45813 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45814 | USE_QA=1 | |
45815 | else | |
45816 | USE_QA=0 | |
45817 | fi | |
45818 | ||
a848cd7e SC |
45819 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
45820 | OFFICIAL_BUILD=1 | |
45821 | else | |
45822 | OFFICIAL_BUILD=0 | |
45823 | fi | |
45824 | ||
45825 | ||
45826 | ||
45827 | ||
45828 | ||
45829 | ||
45830 | ||
45831 | ||
45832 | ||
45833 | ||
45834 | ||
45835 | ||
45836 | ||
45837 | ||
45838 | ||
45839 | ||
45840 | ||
45841 | ||
45842 | ||
ceec2216 | 45843 | |
d1c38808 | 45844 | |
3565d135 | 45845 | |
2b850ae1 | 45846 | |
a848cd7e SC |
45847 | |
45848 | ||
45849 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
45850 | ||
45851 | ||
45852 | ||
45853 | ||
45854 | ||
45855 | ||
45856 | ||
45857 | ||
4d4ff94c VZ |
45858 | case "$TOOLKIT" in |
45859 | GTK) | |
45860 | TOOLKIT_USER="GTK+" | |
45861 | if test "$WXGTK20" = 1; then | |
45862 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
45863 | fi | |
9a8f0513 | 45864 | ;; |
4d4ff94c VZ |
45865 | |
45866 | *) | |
45867 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 45868 | ;; |
4d4ff94c | 45869 | esac |
a848cd7e | 45870 | |
fb00f58d JS |
45871 | if test "$wxUSE_WINE" = "yes"; then |
45872 | BAKEFILE_FORCE_PLATFORM=win32 | |
45873 | fi | |
45874 | ||
7afc46ab KO |
45875 | if test "$wxUSE_MAC" = 1 ; then |
45876 | if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then | |
45877 | CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS" | |
45878 | CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS" | |
45879 | LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS" | |
45880 | bk_use_pch=no | |
45881 | fi | |
45882 | # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)? | |
45883 | # The makefile currently uses AR and RANLIB, which libtool apparently supercedes. | |
45884 | # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it) | |
45885 | fi | |
45886 | ||
9a8f0513 | 45887 | |
1e9e8aba DE |
45888 | |
45889 | ||
a848cd7e | 45890 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 VZ |
45891 | if test "x${host}" = "x" ; then |
45892 | { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5 | |
45893 | echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;} | |
45894 | { (exit 1); exit 1; }; } | |
45895 | fi | |
45896 | ||
a848cd7e SC |
45897 | BAKEFILE_HOST="${host}" |
45898 | fi | |
45899 | ||
45900 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
45901 | ||
45902 | if test -n "$ac_tool_prefix"; then | |
45903 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
45904 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
45905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45907 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
45908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45909 | else | |
45910 | if test -n "$RANLIB"; then | |
45911 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
45912 | else | |
45913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45914 | for as_dir in $PATH | |
45915 | do | |
45916 | IFS=$as_save_IFS | |
45917 | test -z "$as_dir" && as_dir=. | |
45918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45920 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
45921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45922 | break 2 | |
45923 | fi | |
45924 | done | |
45925 | done | |
45926 | ||
45927 | fi | |
45928 | fi | |
45929 | RANLIB=$ac_cv_prog_RANLIB | |
45930 | if test -n "$RANLIB"; then | |
45931 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
45932 | echo "${ECHO_T}$RANLIB" >&6 | |
45933 | else | |
45934 | echo "$as_me:$LINENO: result: no" >&5 | |
45935 | echo "${ECHO_T}no" >&6 | |
45936 | fi | |
45937 | ||
45938 | fi | |
45939 | if test -z "$ac_cv_prog_RANLIB"; then | |
45940 | ac_ct_RANLIB=$RANLIB | |
45941 | # Extract the first word of "ranlib", so it can be a program name with args. | |
45942 | set dummy ranlib; ac_word=$2 | |
45943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45945 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
45946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45947 | else | |
45948 | if test -n "$ac_ct_RANLIB"; then | |
45949 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
45950 | else | |
45951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45952 | for as_dir in $PATH | |
45953 | do | |
45954 | IFS=$as_save_IFS | |
45955 | test -z "$as_dir" && as_dir=. | |
45956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45957 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45958 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
45959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45960 | break 2 | |
45961 | fi | |
45962 | done | |
45963 | done | |
45964 | ||
45965 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
45966 | fi | |
45967 | fi | |
45968 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
45969 | if test -n "$ac_ct_RANLIB"; then | |
45970 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
45971 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
45972 | else | |
45973 | echo "$as_me:$LINENO: result: no" >&5 | |
45974 | echo "${ECHO_T}no" >&6 | |
45975 | fi | |
45976 | ||
45977 | RANLIB=$ac_ct_RANLIB | |
45978 | else | |
45979 | RANLIB="$ac_cv_prog_RANLIB" | |
45980 | fi | |
45981 | ||
45982 | # Find a good install program. We prefer a C program (faster), | |
45983 | # so one script is as good as another. But avoid the broken or | |
45984 | # incompatible versions: | |
45985 | # SysV /etc/install, /usr/sbin/install | |
45986 | # SunOS /usr/etc/install | |
45987 | # IRIX /sbin/install | |
45988 | # AIX /bin/install | |
45989 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
45990 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
45991 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
45992 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 45993 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
45994 | # ./install, which can be erroneously created by make from ./install.sh. |
45995 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
45996 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
45997 | if test -z "$INSTALL"; then | |
45998 | if test "${ac_cv_path_install+set}" = set; then | |
45999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46000 | else | |
46001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46002 | for as_dir in $PATH | |
46003 | do | |
46004 | IFS=$as_save_IFS | |
46005 | test -z "$as_dir" && as_dir=. | |
46006 | # Account for people who put trailing slashes in PATH elements. | |
46007 | case $as_dir/ in | |
46008 | ./ | .// | /cC/* | \ | |
46009 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 46010 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
46011 | /usr/ucb/* ) ;; |
46012 | *) | |
46013 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
46014 | # Don't use installbsd from OSF since it installs stuff as root | |
46015 | # by default. | |
46016 | for ac_prog in ginstall scoinst install; do | |
46017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
46018 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
46019 | if test $ac_prog = install && | |
46020 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
46021 | # AIX install. It has an incompatible calling convention. | |
46022 | : | |
46023 | elif test $ac_prog = install && | |
46024 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
46025 | # program-specific install script used by HP pwplus--don't use. | |
46026 | : | |
46027 | else | |
46028 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
46029 | break 3 | |
46030 | fi | |
46031 | fi | |
a848cd7e SC |
46032 | done |
46033 | done | |
46034 | ;; | |
46035 | esac | |
46036 | done | |
46037 | ||
46038 | ||
46039 | fi | |
46040 | if test "${ac_cv_path_install+set}" = set; then | |
46041 | INSTALL=$ac_cv_path_install | |
46042 | else | |
46043 | # As a last resort, use the slow shell script. We don't cache a | |
46044 | # path for INSTALL within a source directory, because that will | |
46045 | # break other packages using the cache if that directory is | |
46046 | # removed, or if the path is relative. | |
46047 | INSTALL=$ac_install_sh | |
46048 | fi | |
46049 | fi | |
46050 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
46051 | echo "${ECHO_T}$INSTALL" >&6 | |
46052 | ||
46053 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
46054 | # It thinks the first close brace ends the variable substitution. | |
46055 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
46056 | ||
46057 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
46058 | ||
46059 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
46060 | ||
46061 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
46062 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
46063 | LN_S=$as_ln_s | |
46064 | if test "$LN_S" = "ln -s"; then | |
46065 | echo "$as_me:$LINENO: result: yes" >&5 | |
46066 | echo "${ECHO_T}yes" >&6 | |
46067 | else | |
46068 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
46069 | echo "${ECHO_T}no, using $LN_S" >&6 | |
46070 | fi | |
46071 | ||
46072 | ||
46073 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
46074 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 46075 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
46076 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
46077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46078 | else | |
46079 | cat >conftest.make <<\_ACEOF | |
46080 | all: | |
46081 | @echo 'ac_maketemp="$(MAKE)"' | |
46082 | _ACEOF | |
46083 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
46084 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
46085 | if test -n "$ac_maketemp"; then | |
46086 | eval ac_cv_prog_make_${ac_make}_set=yes | |
46087 | else | |
46088 | eval ac_cv_prog_make_${ac_make}_set=no | |
46089 | fi | |
46090 | rm -f conftest.make | |
46091 | fi | |
46092 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
46093 | echo "$as_me:$LINENO: result: yes" >&5 | |
46094 | echo "${ECHO_T}yes" >&6 | |
46095 | SET_MAKE= | |
46096 | else | |
46097 | echo "$as_me:$LINENO: result: no" >&5 | |
46098 | echo "${ECHO_T}no" >&6 | |
46099 | SET_MAKE="MAKE=${MAKE-make}" | |
46100 | fi | |
46101 | ||
46102 | ||
46103 | ||
46104 | if test -n "$ac_tool_prefix"; then | |
46105 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
46106 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
46107 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46109 | if test "${ac_cv_prog_AR+set}" = set; then | |
46110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46111 | else | |
46112 | if test -n "$AR"; then | |
46113 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
46114 | else | |
46115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46116 | for as_dir in $PATH | |
46117 | do | |
46118 | IFS=$as_save_IFS | |
46119 | test -z "$as_dir" && as_dir=. | |
46120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46121 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46122 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
46123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46124 | break 2 | |
46125 | fi | |
46126 | done | |
46127 | done | |
46128 | ||
46129 | fi | |
46130 | fi | |
46131 | AR=$ac_cv_prog_AR | |
46132 | if test -n "$AR"; then | |
46133 | echo "$as_me:$LINENO: result: $AR" >&5 | |
46134 | echo "${ECHO_T}$AR" >&6 | |
46135 | else | |
46136 | echo "$as_me:$LINENO: result: no" >&5 | |
46137 | echo "${ECHO_T}no" >&6 | |
46138 | fi | |
46139 | ||
46140 | fi | |
46141 | if test -z "$ac_cv_prog_AR"; then | |
46142 | ac_ct_AR=$AR | |
46143 | # Extract the first word of "ar", so it can be a program name with args. | |
46144 | set dummy ar; ac_word=$2 | |
46145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46147 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
46148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46149 | else | |
46150 | if test -n "$ac_ct_AR"; then | |
46151 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
46152 | else | |
46153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46154 | for as_dir in $PATH | |
46155 | do | |
46156 | IFS=$as_save_IFS | |
46157 | test -z "$as_dir" && as_dir=. | |
46158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46160 | ac_cv_prog_ac_ct_AR="ar" | |
46161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46162 | break 2 | |
46163 | fi | |
46164 | done | |
46165 | done | |
46166 | ||
46167 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
46168 | fi | |
46169 | fi | |
46170 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
46171 | if test -n "$ac_ct_AR"; then | |
46172 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
46173 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
46174 | else | |
46175 | echo "$as_me:$LINENO: result: no" >&5 | |
46176 | echo "${ECHO_T}no" >&6 | |
46177 | fi | |
46178 | ||
46179 | AR=$ac_ct_AR | |
46180 | else | |
46181 | AR="$ac_cv_prog_AR" | |
46182 | fi | |
46183 | ||
46184 | if test -n "$ac_tool_prefix"; then | |
46185 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
46186 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
46187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46189 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
46190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46191 | else | |
46192 | if test -n "$STRIP"; then | |
46193 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
46194 | else | |
46195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46196 | for as_dir in $PATH | |
46197 | do | |
46198 | IFS=$as_save_IFS | |
46199 | test -z "$as_dir" && as_dir=. | |
46200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46202 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
46203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46204 | break 2 | |
46205 | fi | |
46206 | done | |
46207 | done | |
46208 | ||
46209 | fi | |
46210 | fi | |
46211 | STRIP=$ac_cv_prog_STRIP | |
46212 | if test -n "$STRIP"; then | |
46213 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
46214 | echo "${ECHO_T}$STRIP" >&6 | |
46215 | else | |
46216 | echo "$as_me:$LINENO: result: no" >&5 | |
46217 | echo "${ECHO_T}no" >&6 | |
46218 | fi | |
46219 | ||
46220 | fi | |
46221 | if test -z "$ac_cv_prog_STRIP"; then | |
46222 | ac_ct_STRIP=$STRIP | |
46223 | # Extract the first word of "strip", so it can be a program name with args. | |
46224 | set dummy strip; ac_word=$2 | |
46225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46227 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
46228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46229 | else | |
46230 | if test -n "$ac_ct_STRIP"; then | |
46231 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
46232 | else | |
46233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46234 | for as_dir in $PATH | |
46235 | do | |
46236 | IFS=$as_save_IFS | |
46237 | test -z "$as_dir" && as_dir=. | |
46238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46240 | ac_cv_prog_ac_ct_STRIP="strip" | |
46241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46242 | break 2 | |
46243 | fi | |
46244 | done | |
46245 | done | |
46246 | ||
46247 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
46248 | fi | |
46249 | fi | |
46250 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
46251 | if test -n "$ac_ct_STRIP"; then | |
46252 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
46253 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
46254 | else | |
46255 | echo "$as_me:$LINENO: result: no" >&5 | |
46256 | echo "${ECHO_T}no" >&6 | |
46257 | fi | |
46258 | ||
46259 | STRIP=$ac_ct_STRIP | |
46260 | else | |
46261 | STRIP="$ac_cv_prog_STRIP" | |
46262 | fi | |
46263 | ||
46264 | if test -n "$ac_tool_prefix"; then | |
46265 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
46266 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
46267 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46269 | if test "${ac_cv_prog_NM+set}" = set; then | |
46270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46271 | else | |
46272 | if test -n "$NM"; then | |
46273 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
46274 | else | |
46275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46276 | for as_dir in $PATH | |
46277 | do | |
46278 | IFS=$as_save_IFS | |
46279 | test -z "$as_dir" && as_dir=. | |
46280 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46281 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46282 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
46283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46284 | break 2 | |
46285 | fi | |
46286 | done | |
46287 | done | |
46288 | ||
46289 | fi | |
46290 | fi | |
46291 | NM=$ac_cv_prog_NM | |
46292 | if test -n "$NM"; then | |
46293 | echo "$as_me:$LINENO: result: $NM" >&5 | |
46294 | echo "${ECHO_T}$NM" >&6 | |
46295 | else | |
46296 | echo "$as_me:$LINENO: result: no" >&5 | |
46297 | echo "${ECHO_T}no" >&6 | |
46298 | fi | |
46299 | ||
46300 | fi | |
46301 | if test -z "$ac_cv_prog_NM"; then | |
46302 | ac_ct_NM=$NM | |
46303 | # Extract the first word of "nm", so it can be a program name with args. | |
46304 | set dummy nm; ac_word=$2 | |
46305 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46307 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
46308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46309 | else | |
46310 | if test -n "$ac_ct_NM"; then | |
46311 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
46312 | else | |
46313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46314 | for as_dir in $PATH | |
46315 | do | |
46316 | IFS=$as_save_IFS | |
46317 | test -z "$as_dir" && as_dir=. | |
46318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46320 | ac_cv_prog_ac_ct_NM="nm" | |
46321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46322 | break 2 | |
46323 | fi | |
46324 | done | |
46325 | done | |
46326 | ||
46327 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
46328 | fi | |
46329 | fi | |
46330 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
46331 | if test -n "$ac_ct_NM"; then | |
46332 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
46333 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
46334 | else | |
46335 | echo "$as_me:$LINENO: result: no" >&5 | |
46336 | echo "${ECHO_T}no" >&6 | |
46337 | fi | |
46338 | ||
46339 | NM=$ac_ct_NM | |
46340 | else | |
46341 | NM="$ac_cv_prog_NM" | |
46342 | fi | |
46343 | ||
46344 | ||
46345 | case ${BAKEFILE_HOST} in | |
46346 | *-hp-hpux* ) | |
1e9e8aba | 46347 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
46348 | ;; |
46349 | *) INSTALL_DIR="$INSTALL -d" | |
46350 | ;; | |
46351 | esac | |
46352 | ||
46353 | ||
46354 | LDFLAGS_GUI= | |
46355 | case ${BAKEFILE_HOST} in | |
46356 | *-*-cygwin* | *-*-mingw32* ) | |
46357 | LDFLAGS_GUI="-mwindows" | |
46358 | esac | |
46359 | ||
46360 | ||
46361 | fi | |
46362 | ||
46363 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
46364 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
46365 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
46366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46367 | else | |
46368 | ||
46369 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
46370 | egrep -s GNU > /dev/null); then | |
46371 | bakefile_cv_prog_makeisgnu="yes" | |
46372 | else | |
46373 | bakefile_cv_prog_makeisgnu="no" | |
46374 | fi | |
46375 | ||
46376 | fi | |
46377 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
46378 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
46379 | ||
46380 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
46381 | IF_GNU_MAKE="" | |
46382 | else | |
46383 | IF_GNU_MAKE="#" | |
46384 | fi | |
46385 | ||
46386 | ||
46387 | ||
46388 | PLATFORM_UNIX=0 | |
46389 | PLATFORM_WIN32=0 | |
46390 | PLATFORM_MSDOS=0 | |
46391 | PLATFORM_MAC=0 | |
1e9e8aba | 46392 | PLATFORM_MACOS=0 |
a848cd7e SC |
46393 | PLATFORM_MACOSX=0 |
46394 | PLATFORM_OS2=0 | |
1e9e8aba | 46395 | PLATFORM_BEOS=0 |
a848cd7e SC |
46396 | |
46397 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
46398 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 46399 | *-*-mingw32* ) |
a848cd7e SC |
46400 | PLATFORM_WIN32=1 |
46401 | ;; | |
46402 | *-pc-msdosdjgpp ) | |
46403 | PLATFORM_MSDOS=1 | |
46404 | ;; | |
46405 | *-pc-os2_emx | *-pc-os2-emx ) | |
46406 | PLATFORM_OS2=1 | |
46407 | ;; | |
47bd5406 | 46408 | *-*-darwin* ) |
a848cd7e SC |
46409 | PLATFORM_MAC=1 |
46410 | PLATFORM_MACOSX=1 | |
46411 | ;; | |
1e9e8aba DE |
46412 | *-*-beos* ) |
46413 | PLATFORM_BEOS=1 | |
46414 | ;; | |
46415 | powerpc-apple-macos* ) | |
46416 | PLATFORM_MAC=1 | |
46417 | PLATFORM_MACOS=1 | |
46418 | ;; | |
a848cd7e SC |
46419 | * ) |
46420 | PLATFORM_UNIX=1 | |
46421 | ;; | |
46422 | esac | |
46423 | else | |
46424 | case "$BAKEFILE_FORCE_PLATFORM" in | |
46425 | win32 ) | |
46426 | PLATFORM_WIN32=1 | |
46427 | ;; | |
46428 | msdos ) | |
46429 | PLATFORM_MSDOS=1 | |
46430 | ;; | |
46431 | os2 ) | |
46432 | PLATFORM_OS2=1 | |
46433 | ;; | |
46434 | darwin ) | |
46435 | PLATFORM_MAC=1 | |
46436 | PLATFORM_MACOSX=1 | |
46437 | ;; | |
46438 | unix ) | |
46439 | PLATFORM_UNIX=1 | |
46440 | ;; | |
1e9e8aba DE |
46441 | beos ) |
46442 | PLATFORM_BEOS=1 | |
46443 | ;; | |
a848cd7e SC |
46444 | * ) |
46445 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
46446 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
46447 | { (exit 1); exit 1; }; } | |
46448 | ;; | |
46449 | esac | |
46450 | fi | |
46451 | ||
46452 | ||
46453 | ||
46454 | ||
46455 | ||
46456 | ||
46457 | ||
46458 | ||
46459 | ||
1e9e8aba DE |
46460 | |
46461 | ||
a848cd7e SC |
46462 | # Check whether --enable-omf or --disable-omf was given. |
46463 | if test "${enable_omf+set}" = set; then | |
46464 | enableval="$enable_omf" | |
46465 | bk_os2_use_omf="$enableval" | |
46466 | fi; | |
46467 | ||
46468 | case "${BAKEFILE_HOST}" in | |
46469 | *-*-darwin* ) | |
47bd5406 VZ |
46470 | if test "x$GCC" = "xyes"; then |
46471 | CFLAGS="$CFLAGS -fno-common" | |
46472 | CXXFLAGS="$CXXFLAGS -fno-common" | |
46473 | fi | |
46474 | if test "x$XLCC" = "xyes"; then | |
46475 | CFLAGS="$CFLAGS -qnocommon" | |
46476 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
46477 | fi | |
a848cd7e SC |
46478 | ;; |
46479 | ||
46480 | *-pc-os2_emx | *-pc-os2-emx ) | |
46481 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
46482 | AR=emxomfar | |
46483 | RANLIB=: | |
46484 | LDFLAGS="-Zomf $LDFLAGS" | |
46485 | CFLAGS="-Zomf $CFLAGS" | |
46486 | CXXFLAGS="-Zomf $CXXFLAGS" | |
46487 | OS2_LIBEXT="lib" | |
46488 | else | |
46489 | OS2_LIBEXT="a" | |
46490 | fi | |
46491 | ;; | |
1e9e8aba DE |
46492 | |
46493 | i*86-*-beos* ) | |
46494 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
46495 | ;; | |
a848cd7e SC |
46496 | esac |
46497 | ||
46498 | ||
46499 | SO_SUFFIX="so" | |
46500 | SO_SUFFIX_MODULE="so" | |
46501 | EXEEXT="" | |
46502 | LIBPREFIX="lib" | |
46503 | LIBEXT=".a" | |
46504 | DLLPREFIX="lib" | |
46505 | DLLPREFIX_MODULE="" | |
46506 | DLLIMP_SUFFIX="" | |
810b94f0 | 46507 | dlldir="$libdir" |
a848cd7e SC |
46508 | |
46509 | case "${BAKEFILE_HOST}" in | |
46510 | *-hp-hpux* ) | |
46511 | SO_SUFFIX="sl" | |
46512 | SO_SUFFIX_MODULE="sl" | |
46513 | ;; | |
46514 | *-*-aix* ) | |
46515 | SO_SUFFIX="a" | |
46516 | SO_SUFFIX_MODULE="a" | |
46517 | ;; | |
810b94f0 MW |
46518 | *-*-cygwin* ) |
46519 | SO_SUFFIX="dll" | |
46520 | SO_SUFFIX_MODULE="dll" | |
46521 | DLLIMP_SUFFIX="dll.a" | |
46522 | EXEEXT=".exe" | |
46523 | DLLPREFIX="cyg" | |
46524 | dlldir="$bindir" | |
46525 | ;; | |
46526 | *-*-mingw32* ) | |
a848cd7e SC |
46527 | SO_SUFFIX="dll" |
46528 | SO_SUFFIX_MODULE="dll" | |
46529 | DLLIMP_SUFFIX="dll.a" | |
46530 | EXEEXT=".exe" | |
46531 | DLLPREFIX="" | |
810b94f0 | 46532 | dlldir="$bindir" |
a848cd7e SC |
46533 | ;; |
46534 | *-pc-msdosdjgpp ) | |
46535 | EXEEXT=".exe" | |
46536 | DLLPREFIX="" | |
810b94f0 | 46537 | dlldir="$bindir" |
a848cd7e SC |
46538 | ;; |
46539 | *-pc-os2_emx | *-pc-os2-emx ) | |
46540 | SO_SUFFIX="dll" | |
46541 | SO_SUFFIX_MODULE="dll" | |
46542 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
46543 | EXEEXT=".exe" | |
46544 | DLLPREFIX="" | |
46545 | LIBPREFIX="" | |
46546 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 46547 | dlldir="$bindir" |
a848cd7e | 46548 | ;; |
47bd5406 | 46549 | *-*-darwin* ) |
a848cd7e SC |
46550 | SO_SUFFIX="dylib" |
46551 | SO_SUFFIX_MODULE="bundle" | |
46552 | ;; | |
46553 | esac | |
46554 | ||
46555 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
46556 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
46557 | fi | |
46558 | ||
46559 | ||
46560 | ||
46561 | ||
46562 | ||
46563 | ||
46564 | ||
46565 | ||
46566 | ||
46567 | ||
46568 | ||
810b94f0 | 46569 | |
1e9e8aba DE |
46570 | PIC_FLAG="" |
46571 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
46572 | PIC_FLAG="-fPIC" |
46573 | fi | |
46574 | ||
1e9e8aba DE |
46575 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
46576 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 46577 | WINDOWS_IMPLIB=0 |
1e9e8aba | 46578 | |
a848cd7e SC |
46579 | case "${BAKEFILE_HOST}" in |
46580 | *-hp-hpux* ) | |
1e9e8aba | 46581 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
46582 | LDFLAGS="$LDFLAGS -L/usr/lib" |
46583 | ||
46584 | SHARED_LD_CC="${CC} -b -o" | |
46585 | SHARED_LD_CXX="${CXX} -b -o" | |
46586 | PIC_FLAG="+Z" | |
46587 | fi | |
46588 | ;; | |
46589 | ||
46590 | *-*-linux* ) | |
46591 | if test "x$GCC" != "xyes"; then | |
46592 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
46593 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
46594 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
46595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46596 | else | |
46597 | ||
46598 | cat >conftest.$ac_ext <<_ACEOF | |
46599 | /* confdefs.h. */ | |
46600 | _ACEOF | |
46601 | cat confdefs.h >>conftest.$ac_ext | |
46602 | cat >>conftest.$ac_ext <<_ACEOF | |
46603 | /* end confdefs.h. */ | |
46604 | ||
46605 | int | |
46606 | main () | |
46607 | { | |
46608 | ||
46609 | #ifndef __INTEL_COMPILER | |
e5efa97e | 46610 | This is not ICC |
a848cd7e SC |
46611 | #endif |
46612 | ||
46613 | ; | |
46614 | return 0; | |
46615 | } | |
46616 | _ACEOF | |
46617 | rm -f conftest.$ac_objext | |
46618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 46619 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 46620 | ac_status=$? |
ac1cb8d3 VS |
46621 | grep -v '^ *+' conftest.er1 >conftest.err |
46622 | rm -f conftest.er1 | |
46623 | cat conftest.err >&5 | |
a848cd7e SC |
46624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
46625 | (exit $ac_status); } && | |
3f60522a JS |
46626 | { ac_try='test -z "$ac_c_werror_flag" |
46627 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
46628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46629 | (eval $ac_try) 2>&5 | |
46630 | ac_status=$? | |
46631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46632 | (exit $ac_status); }; } && | |
46633 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
46634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46635 | (eval $ac_try) 2>&5 | |
46636 | ac_status=$? | |
46637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46638 | (exit $ac_status); }; }; then | |
46639 | bakefile_cv_prog_icc=yes | |
46640 | else | |
46641 | echo "$as_me: failed program was:" >&5 | |
46642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46643 | ||
46644 | bakefile_cv_prog_icc=no | |
46645 | ||
46646 | fi | |
ac1cb8d3 | 46647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
46648 | |
46649 | fi | |
46650 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
46651 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
46652 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
46653 | PIC_FLAG="-KPIC" | |
46654 | fi | |
46655 | fi | |
46656 | ;; | |
46657 | ||
46658 | *-*-solaris2* ) | |
46659 | if test "x$GCC" != xyes ; then | |
46660 | SHARED_LD_CC="${CC} -G -o" | |
46661 | SHARED_LD_CXX="${CXX} -G -o" | |
46662 | PIC_FLAG="-KPIC" | |
46663 | fi | |
46664 | ;; | |
46665 | ||
46666 | *-*-darwin* ) | |
46667 | ||
473276a9 VS |
46668 | D='$' |
46669 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
46670 | #!/bin/sh |
46671 | #----------------------------------------------------------------------------- | |
46672 | #-- Name: distrib/mac/shared-ld-sh | |
46673 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
46674 | #-- Author: Gilles Depeyrot | |
46675 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
46676 | #-- Licence: any use permitted | |
46677 | #----------------------------------------------------------------------------- | |
46678 | ||
46679 | verbose=0 | |
46680 | args="" | |
46681 | objects="" | |
46682 | linking_flag="-dynamiclib" | |
810b94f0 | 46683 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 46684 | |
473276a9 VS |
46685 | while test ${D}# -gt 0; do |
46686 | case ${D}1 in | |
a848cd7e SC |
46687 | |
46688 | -v) | |
46689 | verbose=1 | |
46690 | ;; | |
46691 | ||
46692 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
46693 | # collect these options and values | |
473276a9 | 46694 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
46695 | shift |
46696 | ;; | |
46697 | ||
810b94f0 MW |
46698 | -s|-Wl,*) |
46699 | # collect these load args | |
46700 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 46701 | ;; |
810b94f0 MW |
46702 | |
46703 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 46704 | # collect these options |
473276a9 | 46705 | args="${D}{args} ${D}1" |
a848cd7e SC |
46706 | ;; |
46707 | ||
46708 | -dynamiclib|-bundle) | |
473276a9 | 46709 | linking_flag="${D}1" |
a848cd7e SC |
46710 | ;; |
46711 | ||
46712 | -*) | |
473276a9 | 46713 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
46714 | exit 1 |
46715 | ;; | |
46716 | ||
46717 | *.o | *.a | *.dylib) | |
46718 | # collect object files | |
473276a9 | 46719 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
46720 | ;; |
46721 | ||
46722 | *) | |
473276a9 | 46723 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
46724 | exit 1 |
46725 | ;; | |
46726 | ||
46727 | esac | |
46728 | shift | |
46729 | done | |
46730 | ||
810b94f0 MW |
46731 | status=0 |
46732 | ||
a848cd7e SC |
46733 | # |
46734 | # Link one module containing all the others | |
46735 | # | |
473276a9 | 46736 | if test ${D}{verbose} = 1; then |
810b94f0 | 46737 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 46738 | fi |
810b94f0 | 46739 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 46740 | status=${D}? |
a848cd7e SC |
46741 | |
46742 | # | |
810b94f0 MW |
46743 | # Link the shared library from the single module created, but only if the |
46744 | # previous command didn't fail: | |
a848cd7e | 46745 | # |
810b94f0 MW |
46746 | if test ${D}{status} = 0; then |
46747 | if test ${D}{verbose} = 1; then | |
46748 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
46749 | fi | |
46750 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
46751 | status=${D}? | |
a848cd7e SC |
46752 | fi |
46753 | ||
46754 | # | |
46755 | # Remove intermediate module | |
46756 | # | |
473276a9 | 46757 | rm -f master.${D}${D}.o |
a848cd7e | 46758 | |
810b94f0 | 46759 | exit ${D}status |
a848cd7e | 46760 | EOF |
473276a9 | 46761 | |
583d6b4b VZ |
46762 | chmod +x shared-ld-sh |
46763 | ||
46764 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
46765 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
46766 | ||
46767 | ||
46768 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
46769 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
46770 | if test "${bakefile_cv_gcc31+set}" = set; then | |
46771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46772 | else | |
46773 | ||
46774 | cat >conftest.$ac_ext <<_ACEOF | |
46775 | /* confdefs.h. */ | |
46776 | _ACEOF | |
46777 | cat confdefs.h >>conftest.$ac_ext | |
46778 | cat >>conftest.$ac_ext <<_ACEOF | |
46779 | /* end confdefs.h. */ | |
46780 | ||
46781 | int | |
46782 | main () | |
46783 | { | |
46784 | ||
46785 | #if (__GNUC__ < 3) || \ | |
46786 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
e5efa97e | 46787 | This is old gcc |
583d6b4b | 46788 | #endif |
a848cd7e | 46789 | |
583d6b4b VZ |
46790 | ; |
46791 | return 0; | |
46792 | } | |
46793 | _ACEOF | |
46794 | rm -f conftest.$ac_objext | |
46795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
46796 | (eval $ac_compile) 2>conftest.er1 | |
46797 | ac_status=$? | |
46798 | grep -v '^ *+' conftest.er1 >conftest.err | |
46799 | rm -f conftest.er1 | |
46800 | cat conftest.err >&5 | |
46801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46802 | (exit $ac_status); } && | |
3f60522a JS |
46803 | { ac_try='test -z "$ac_c_werror_flag" |
46804 | || test ! -s conftest.err' | |
583d6b4b VZ |
46805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46806 | (eval $ac_try) 2>&5 | |
46807 | ac_status=$? | |
46808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46809 | (exit $ac_status); }; } && | |
46810 | { ac_try='test -s conftest.$ac_objext' | |
46811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
46812 | (eval $ac_try) 2>&5 | |
46813 | ac_status=$? | |
46814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46815 | (exit $ac_status); }; }; then | |
46816 | ||
46817 | bakefile_cv_gcc31=yes | |
46818 | ||
46819 | else | |
46820 | echo "$as_me: failed program was:" >&5 | |
46821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46822 | ||
46823 | ||
46824 | bakefile_cv_gcc31=no | |
46825 | ||
46826 | ||
46827 | fi | |
46828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
46829 | ||
46830 | fi | |
46831 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
46832 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
46833 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 46834 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 46835 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
46836 | else |
46837 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 46838 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
46839 | fi |
46840 | ||
47bd5406 VZ |
46841 | if test "x$GCC" == "xyes"; then |
46842 | PIC_FLAG="-dynamic -fPIC" | |
46843 | fi | |
46844 | if test "x$XLCC" = "xyes"; then | |
46845 | PIC_FLAG="-dynamic -DPIC" | |
46846 | fi | |
a848cd7e SC |
46847 | ;; |
46848 | ||
46849 | *-*-aix* ) | |
f6b50c59 | 46850 | if test "x$GCC" = "xyes"; then |
583d6b4b | 46851 | PIC_FLAG="" |
f6b50c59 | 46852 | |
583d6b4b VZ |
46853 | case "${BAKEFILE_HOST}" in |
46854 | *-*-aix5* ) | |
46855 | LD_EXPFULL="-Wl,-bexpfull" | |
46856 | ;; | |
46857 | esac | |
f6b50c59 | 46858 | |
583d6b4b VZ |
46859 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
46860 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
46861 | else | |
46862 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
46863 | set dummy makeC++SharedLib; ac_word=$2 |
46864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46866 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
46867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46868 | else | |
46869 | if test -n "$AIX_CXX_LD"; then | |
46870 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
46871 | else | |
46872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46873 | for as_dir in $PATH | |
46874 | do | |
46875 | IFS=$as_save_IFS | |
46876 | test -z "$as_dir" && as_dir=. | |
46877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46878 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46879 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
46880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46881 | break 2 | |
46882 | fi | |
46883 | done | |
46884 | done | |
46885 | ||
46886 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
46887 | fi | |
46888 | fi | |
46889 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
46890 | if test -n "$AIX_CXX_LD"; then | |
46891 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
46892 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
46893 | else | |
46894 | echo "$as_me:$LINENO: result: no" >&5 | |
46895 | echo "${ECHO_T}no" >&6 | |
46896 | fi | |
46897 | ||
f6b50c59 | 46898 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
46899 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
46900 | fi | |
46901 | ;; | |
46902 | ||
46903 | *-*-beos* ) | |
1e9e8aba DE |
46904 | SHARED_LD_CC="${LD} -nostart -o" |
46905 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
46906 | ;; |
46907 | ||
46908 | *-*-irix* ) | |
46909 | if test "x$GCC" != "xyes"; then | |
46910 | PIC_FLAG="-KPIC" | |
46911 | fi | |
46912 | ;; | |
46913 | ||
46914 | *-*-cygwin* | *-*-mingw32* ) | |
46915 | PIC_FLAG="" | |
1e9e8aba DE |
46916 | SHARED_LD_CC="\$(CC) -shared -o" |
46917 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 46918 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
46919 | ;; |
46920 | ||
46921 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
46922 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
46923 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 46924 | PIC_FLAG="" |
473276a9 VS |
46925 | |
46926 | D='$' | |
46927 | cat <<EOF >dllar.sh | |
46928 | #!/bin/sh | |
46929 | # | |
46930 | # dllar - a tool to build both a .dll and an .a file | |
46931 | # from a set of object (.o) files for EMX/OS2. | |
46932 | # | |
46933 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
46934 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
46935 | # | |
46936 | # This script will accept a set of files on the command line. | |
46937 | # All the public symbols from the .o files will be exported into | |
46938 | # a .DEF file, then linker will be run (through gcc) against them to | |
46939 | # build a shared library consisting of all given .o files. All libraries | |
46940 | # (.a) will be first decompressed into component .o files then act as | |
46941 | # described above. You can optionally give a description (-d "description") | |
46942 | # which will be put into .DLL. To see the list of accepted options (as well | |
46943 | # as command-line format) simply run this program without options. The .DLL | |
46944 | # is built to be imported by name (there is no guarantee that new versions | |
46945 | # of the library you build will have same ordinals for same symbols). | |
46946 | # | |
46947 | # dllar is free software; you can redistribute it and/or modify | |
46948 | # it under the terms of the GNU General Public License as published by | |
46949 | # the Free Software Foundation; either version 2, or (at your option) | |
46950 | # any later version. | |
46951 | # | |
46952 | # dllar is distributed in the hope that it will be useful, | |
46953 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
46954 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46955 | # GNU General Public License for more details. | |
46956 | # | |
46957 | # You should have received a copy of the GNU General Public License | |
46958 | # along with dllar; see the file COPYING. If not, write to the Free | |
46959 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
46960 | # 02111-1307, USA. | |
46961 | ||
46962 | # To successfuly run this program you will need: | |
46963 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
46964 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
46965 | # - gcc | |
46966 | # (used to build the .dll) | |
46967 | # - emxexp | |
46968 | # (used to create .def file from .o files) | |
46969 | # - emximp | |
46970 | # (used to create .a file from .def file) | |
46971 | # - GNU text utilites (cat, sort, uniq) | |
46972 | # used to process emxexp output | |
46973 | # - GNU file utilities (mv, rm) | |
46974 | # - GNU sed | |
46975 | # - lxlite (optional, see flag below) | |
46976 | # (used for general .dll cleanup) | |
46977 | # | |
46978 | ||
46979 | flag_USE_LXLITE=1; | |
46980 | ||
46981 | # | |
46982 | # helper functions | |
46983 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
46984 | # second argument (suffix to remove) is given | |
46985 | basnam(){ | |
46986 | case ${D}# in | |
46987 | 1) | |
1e9e8aba | 46988 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
46989 | ;; |
46990 | 2) | |
46991 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
46992 | ;; | |
46993 | *) | |
46994 | echo "error in basnam ${D}*" | |
46995 | exit 8 | |
46996 | ;; | |
46997 | esac | |
46998 | } | |
46999 | ||
47000 | # Cleanup temporary files and output | |
47001 | CleanUp() { | |
47002 | cd ${D}curDir | |
47003 | for i in ${D}inputFiles ; do | |
47004 | case ${D}i in | |
47005 | *!) | |
47006 | rm -rf \`basnam ${D}i !\` | |
47007 | ;; | |
47008 | *) | |
47009 | ;; | |
47010 | esac | |
47011 | done | |
47012 | ||
47013 | # Kill result in case of failure as there is just to many stupid make/nmake | |
47014 | # things out there which doesn't do this. | |
1e9e8aba | 47015 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
47016 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
47017 | fi | |
47018 | } | |
47019 | ||
47020 | # Print usage and exit script with rc=1. | |
47021 | PrintHelp() { | |
b1d22ded DE |
47022 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
47023 | echo ' [-name-mangler-script script.sh]' | |
47024 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
47025 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
47026 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 47027 | echo ' [*.o] [*.a]' |
473276a9 VS |
47028 | echo '*> "output_file" should have no extension.' |
47029 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
47030 | echo ' The import library name is derived from this and is set to "name".a,' | |
47031 | echo ' unless overridden by -import' | |
47032 | echo '*> "importlib_name" should have no extension.' | |
47033 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
47034 | echo ' This name is used as the import library name and may be longer and' | |
47035 | echo ' more descriptive than the DLL name which has to follow the old ' | |
47036 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
47037 | echo '*> "script.sh may be given to override the output_file name by a' |
47038 | echo ' different name. It is mainly useful if the regular make process' | |
47039 | echo ' of some package does not take into account OS/2 restriction of' | |
47040 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
47041 | echo ' supposed to procude a shorter name as output. The script should' | |
47042 | echo ' expect to get importlib_name without extension and should produce' | |
47043 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
47044 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
47045 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
47046 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
47047 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
47048 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
47049 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
47050 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
47051 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 47052 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 47053 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 47054 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 47055 | echo ' C runtime DLLs.' |
b1d22ded | 47056 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
47057 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
47058 | echo ' unchanged to GCC at the end of command line.' | |
47059 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
47060 | echo ' the basename for DLL and import library will be set to library name,' | |
47061 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
47062 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
47063 | echo ' library will be renamed into gcc_s.a.' | |
47064 | echo '--------' | |
47065 | echo 'Example:' | |
47066 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
47067 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
47068 | CleanUp | |
47069 | exit 1 | |
47070 | } | |
47071 | ||
47072 | # Execute a command. | |
47073 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
47074 | # @Uses Whatever CleanUp() uses. | |
47075 | doCommand() { | |
47076 | echo "${D}*" | |
47077 | eval ${D}* | |
47078 | rcCmd=${D}? | |
47079 | ||
1e9e8aba | 47080 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
47081 | echo "command failed, exit code="${D}rcCmd |
47082 | CleanUp | |
47083 | exit ${D}rcCmd | |
47084 | fi | |
47085 | } | |
47086 | ||
47087 | # main routine | |
47088 | # setup globals | |
47089 | cmdLine=${D}* | |
47090 | outFile="" | |
47091 | outimpFile="" | |
47092 | inputFiles="" | |
b1d22ded | 47093 | renameScript="" |
473276a9 VS |
47094 | description="" |
47095 | CC=gcc.exe | |
47096 | CFLAGS="-s -Zcrtdll" | |
47097 | EXTRA_CFLAGS="" | |
47098 | EXPORT_BY_ORDINALS=0 | |
47099 | exclude_symbols="" | |
47100 | library_flags="" | |
47101 | curDir=\`pwd\` | |
47102 | curDirS=curDir | |
47103 | case ${D}curDirS in | |
47104 | */) | |
47105 | ;; | |
47106 | *) | |
47107 | curDirS=${D}{curDirS}"/" | |
47108 | ;; | |
47109 | esac | |
47110 | # Parse commandline | |
47111 | libsToLink=0 | |
b1d22ded | 47112 | omfLinking=0 |
1e9e8aba | 47113 | while [ ${D}1 ]; do |
473276a9 VS |
47114 | case ${D}1 in |
47115 | -ord*) | |
47116 | EXPORT_BY_ORDINALS=1; | |
47117 | ;; | |
47118 | -o*) | |
47119 | shift | |
47120 | outFile=${D}1 | |
47121 | ;; | |
47122 | -i*) | |
47123 | shift | |
47124 | outimpFile=${D}1 | |
47125 | ;; | |
b1d22ded DE |
47126 | -name-mangler-script) |
47127 | shift | |
47128 | renameScript=${D}1 | |
47129 | ;; | |
473276a9 VS |
47130 | -d*) |
47131 | shift | |
47132 | description=${D}1 | |
47133 | ;; | |
47134 | -f*) | |
47135 | shift | |
47136 | CFLAGS=${D}1 | |
47137 | ;; | |
47138 | -c*) | |
47139 | shift | |
47140 | CC=${D}1 | |
47141 | ;; | |
47142 | -h*) | |
47143 | PrintHelp | |
47144 | ;; | |
47145 | -ex*) | |
47146 | shift | |
47147 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
47148 | ;; | |
47149 | -libf*) | |
47150 | shift | |
47151 | library_flags=${D}{library_flags}${D}1" " | |
47152 | ;; | |
47153 | -nocrt*) | |
47154 | CFLAGS="-s" | |
47155 | ;; | |
47156 | -nolxl*) | |
47157 | flag_USE_LXLITE=0 | |
47158 | ;; | |
47159 | -* | /*) | |
47160 | case ${D}1 in | |
47161 | -L* | -l*) | |
47162 | libsToLink=1 | |
47163 | ;; | |
b1d22ded DE |
47164 | -Zomf) |
47165 | omfLinking=1 | |
47166 | ;; | |
473276a9 VS |
47167 | *) |
47168 | ;; | |
47169 | esac | |
47170 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
47171 | ;; | |
b1d22ded DE |
47172 | *.dll) |
47173 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
47174 | if [ ${D}omfLinking -eq 1 ]; then | |
47175 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
47176 | else | |
47177 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
47178 | fi | |
47179 | ;; | |
473276a9 VS |
47180 | *) |
47181 | found=0; | |
1e9e8aba | 47182 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
47183 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
47184 | else | |
47185 | for file in ${D}1 ; do | |
1e9e8aba | 47186 | if [ -f ${D}file ]; then |
473276a9 VS |
47187 | inputFiles="${D}{inputFiles} ${D}file" |
47188 | found=1 | |
47189 | fi | |
47190 | done | |
1e9e8aba | 47191 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
47192 | echo "ERROR: No file(s) found: "${D}1 |
47193 | exit 8 | |
47194 | fi | |
47195 | fi | |
47196 | ;; | |
47197 | esac | |
47198 | shift | |
47199 | done # iterate cmdline words | |
47200 | ||
47201 | # | |
1e9e8aba | 47202 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
47203 | echo "dllar: no input files" |
47204 | PrintHelp | |
47205 | fi | |
47206 | ||
47207 | # Now extract all .o files from .a files | |
47208 | newInputFiles="" | |
47209 | for file in ${D}inputFiles ; do | |
47210 | case ${D}file in | |
47211 | *.a | *.lib) | |
47212 | case ${D}file in | |
47213 | *.a) | |
47214 | suffix=".a" | |
47215 | AR="ar" | |
47216 | ;; | |
47217 | *.lib) | |
47218 | suffix=".lib" | |
47219 | AR="emxomfar" | |
47220 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
47221 | ;; | |
47222 | *) | |
47223 | ;; | |
47224 | esac | |
47225 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
47226 | mkdir ${D}dirname | |
1e9e8aba | 47227 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
47228 | echo "Failed to create subdirectory ./${D}dirname" |
47229 | CleanUp | |
47230 | exit 8; | |
47231 | fi | |
47232 | # Append '!' to indicate archive | |
47233 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
47234 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
47235 | cd ${D}curDir | |
47236 | found=0; | |
47237 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 47238 | if [ -f ${D}subfile ]; then |
473276a9 | 47239 | found=1 |
1e9e8aba | 47240 | if [ -s ${D}subfile ]; then |
473276a9 VS |
47241 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
47242 | newInputFiles="${D}newInputFiles ${D}subfile" | |
47243 | fi | |
47244 | fi | |
47245 | done | |
1e9e8aba DE |
47246 | if [ ${D}found -eq 0 ]; then |
47247 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
47248 | fi |
47249 | ;; | |
47250 | *) | |
47251 | newInputFiles="${D}{newInputFiles} ${D}file" | |
47252 | ;; | |
47253 | esac | |
47254 | done | |
47255 | inputFiles="${D}newInputFiles" | |
47256 | ||
47257 | # Output filename(s). | |
47258 | do_backup=0; | |
1e9e8aba | 47259 | if [ -z ${D}outFile ]; then |
473276a9 VS |
47260 | do_backup=1; |
47261 | set outFile ${D}inputFiles; outFile=${D}2 | |
47262 | fi | |
47263 | ||
47264 | # If it is an archive, remove the '!' and the '_%' suffixes | |
47265 | case ${D}outFile in | |
47266 | *_%!) | |
47267 | outFile=\`basnam ${D}outFile _%!\` | |
47268 | ;; | |
47269 | *) | |
47270 | ;; | |
47271 | esac | |
47272 | case ${D}outFile in | |
47273 | *.dll) | |
47274 | outFile=\`basnam ${D}outFile .dll\` | |
47275 | ;; | |
47276 | *.DLL) | |
47277 | outFile=\`basnam ${D}outFile .DLL\` | |
47278 | ;; | |
47279 | *.o) | |
47280 | outFile=\`basnam ${D}outFile .o\` | |
47281 | ;; | |
47282 | *.obj) | |
47283 | outFile=\`basnam ${D}outFile .obj\` | |
47284 | ;; | |
47285 | *.a) | |
47286 | outFile=\`basnam ${D}outFile .a\` | |
47287 | ;; | |
47288 | *.lib) | |
47289 | outFile=\`basnam ${D}outFile .lib\` | |
47290 | ;; | |
47291 | *) | |
47292 | ;; | |
47293 | esac | |
47294 | case ${D}outimpFile in | |
47295 | *.a) | |
47296 | outimpFile=\`basnam ${D}outimpFile .a\` | |
47297 | ;; | |
47298 | *.lib) | |
47299 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
47300 | ;; | |
47301 | *) | |
47302 | ;; | |
47303 | esac | |
1e9e8aba | 47304 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
47305 | outimpFile=${D}outFile |
47306 | fi | |
47307 | defFile="${D}{outFile}.def" | |
47308 | arcFile="${D}{outimpFile}.a" | |
47309 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
47310 | |
47311 | #create ${D}dllFile as something matching 8.3 restrictions, | |
47312 | if [ -z ${D}renameScript ] ; then | |
47313 | dllFile="${D}outFile" | |
47314 | else | |
47315 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
47316 | fi | |
473276a9 | 47317 | |
1e9e8aba DE |
47318 | if [ ${D}do_backup -ne 0 ] ; then |
47319 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
47320 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
47321 | fi | |
1e9e8aba | 47322 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
47323 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
47324 | fi | |
47325 | fi | |
47326 | ||
47327 | # Extract public symbols from all the object files. | |
47328 | tmpdefFile=${D}{defFile}_% | |
47329 | rm -f ${D}tmpdefFile | |
47330 | for file in ${D}inputFiles ; do | |
47331 | case ${D}file in | |
47332 | *!) | |
47333 | ;; | |
47334 | *) | |
47335 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
47336 | ;; | |
47337 | esac | |
47338 | done | |
47339 | ||
47340 | # Create the def file. | |
47341 | rm -f ${D}defFile | |
47342 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
47343 | dllFile="${D}{dllFile}.dll" |
47344 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 47345 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
47346 | fi |
47347 | echo "EXPORTS" >> ${D}defFile | |
47348 | ||
47349 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
47350 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
47351 | ||
47352 | # Checks if the export is ok or not. | |
47353 | for word in ${D}exclude_symbols; do | |
47354 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
47355 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
47356 | done | |
47357 | ||
47358 | ||
1e9e8aba DE |
47359 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
47360 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
47361 | sed ' |
47362 | N | |
47363 | : loop | |
1e9e8aba | 47364 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
47365 | t loop |
47366 | ' > ${D}{tmpdefFile}% | |
47367 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
47368 | else | |
47369 | rm -f ${D}{tmpdefFile}% | |
47370 | fi | |
47371 | cat ${D}tmpdefFile >> ${D}defFile | |
47372 | rm -f ${D}tmpdefFile | |
47373 | ||
47374 | # Do linking, create implib, and apply lxlite. | |
47375 | gccCmdl=""; | |
47376 | for file in ${D}inputFiles ; do | |
47377 | case ${D}file in | |
47378 | *!) | |
47379 | ;; | |
47380 | *) | |
47381 | gccCmdl="${D}gccCmdl ${D}file" | |
47382 | ;; | |
47383 | esac | |
47384 | done | |
47385 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
47386 | touch "${D}{outFile}.dll" | |
47387 | ||
47388 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 47389 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 47390 | add_flags=""; |
1e9e8aba | 47391 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
47392 | add_flags="-ynd" |
47393 | fi | |
47394 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
47395 | fi | |
47396 | doCommand "emxomf -s -l ${D}arcFile" | |
47397 | ||
47398 | # Successful exit. | |
47399 | CleanUp 1 | |
47400 | exit 0 | |
47401 | EOF | |
47402 | ||
47403 | chmod +x dllar.sh | |
a848cd7e SC |
47404 | ;; |
47405 | ||
1e9e8aba | 47406 | powerpc-apple-macos* | \ |
0ad5d837 | 47407 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
47408 | *-*-sunos4* | \ |
47409 | *-*-osf* | \ | |
47410 | *-*-dgux5* | \ | |
47a7e797 MW |
47411 | *-*-sysv5* | \ |
47412 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
47413 | ;; |
47414 | ||
47415 | *) | |
47416 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
47417 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
47418 | { (exit 1); exit 1; }; } | |
47419 | esac | |
47420 | ||
2057db16 VS |
47421 | if test "x$PIC_FLAG" != "x" ; then |
47422 | PIC_FLAG="$PIC_FLAG -DPIC" | |
47423 | fi | |
47424 | ||
a848cd7e SC |
47425 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
47426 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
47427 | fi | |
47428 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
47429 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
47430 | fi | |
47431 | ||
47432 | ||
47433 | ||
47434 | ||
47435 | ||
47436 | ||
47437 | ||
47438 | ||
810b94f0 | 47439 | |
a848cd7e SC |
47440 | USE_SOVERSION=0 |
47441 | USE_SOVERLINUX=0 | |
47442 | USE_SOVERSOLARIS=0 | |
810b94f0 | 47443 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
47444 | USE_SOSYMLINKS=0 |
47445 | USE_MACVERSION=0 | |
47446 | SONAME_FLAG= | |
47447 | ||
47448 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 47449 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
47450 | SONAME_FLAG="-Wl,-soname," |
47451 | USE_SOVERSION=1 | |
47452 | USE_SOVERLINUX=1 | |
47453 | USE_SOSYMLINKS=1 | |
47454 | ;; | |
47455 | ||
a848cd7e SC |
47456 | *-*-solaris2* ) |
47457 | SONAME_FLAG="-h " | |
47458 | USE_SOVERSION=1 | |
47459 | USE_SOVERSOLARIS=1 | |
47460 | USE_SOSYMLINKS=1 | |
47461 | ;; | |
47462 | ||
47463 | *-*-darwin* ) | |
47464 | USE_MACVERSION=1 | |
47465 | USE_SOVERSION=1 | |
47466 | USE_SOSYMLINKS=1 | |
47467 | ;; | |
810b94f0 MW |
47468 | |
47469 | *-*-cygwin* ) | |
47470 | USE_SOVERSION=1 | |
47471 | USE_SOVERCYGWIN=1 | |
47472 | ;; | |
a848cd7e SC |
47473 | esac |
47474 | ||
47475 | ||
47476 | ||
47477 | ||
47478 | ||
47479 | ||
47480 | ||
47481 | ||
47482 | ||
810b94f0 | 47483 | |
f10e38c4 VZ |
47484 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
47485 | if test "${enable_dependency_tracking+set}" = set; then | |
47486 | enableval="$enable_dependency_tracking" | |
47487 | bk_use_trackdeps="$enableval" | |
47488 | fi; | |
47489 | ||
a848cd7e SC |
47490 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
47491 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
a848cd7e | 47492 | |
f10e38c4 VZ |
47493 | if test "x$bk_use_trackdeps" = "xno" ; then |
47494 | DEPS_TRACKING=0 | |
47495 | echo "$as_me:$LINENO: result: disabled" >&5 | |
47496 | echo "${ECHO_T}disabled" >&6 | |
47497 | else | |
47498 | DEPS_TRACKING=1 | |
47499 | ||
47500 | if test "x$GCC" = "xyes"; then | |
47501 | DEPSMODE=gcc | |
47502 | case "${BAKEFILE_HOST}" in | |
47503 | *-*-darwin* ) | |
47504 | DEPSFLAG="-no-cpp-precomp -MMD" | |
47505 | ;; | |
47506 | * ) | |
47507 | DEPSFLAG="-MMD" | |
47508 | ;; | |
47509 | esac | |
47510 | echo "$as_me:$LINENO: result: gcc" >&5 | |
a848cd7e | 47511 | echo "${ECHO_T}gcc" >&6 |
f10e38c4 VZ |
47512 | elif test "x$MWCC" = "xyes"; then |
47513 | DEPSMODE=mwcc | |
47514 | DEPSFLAG="-MM" | |
47515 | echo "$as_me:$LINENO: result: mwcc" >&5 | |
b1d22ded | 47516 | echo "${ECHO_T}mwcc" >&6 |
f10e38c4 VZ |
47517 | elif test "x$SUNCC" = "xyes"; then |
47518 | DEPSMODE=unixcc | |
47519 | DEPSFLAG="-xM1" | |
47520 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
0ad5d837 | 47521 | echo "${ECHO_T}Sun cc" >&6 |
f10e38c4 VZ |
47522 | elif test "x$SGICC" = "xyes"; then |
47523 | DEPSMODE=unixcc | |
47524 | DEPSFLAG="-M" | |
47525 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
0ad5d837 | 47526 | echo "${ECHO_T}SGI cc" >&6 |
f10e38c4 VZ |
47527 | elif test "x$HPCC" = "xyes"; then |
47528 | DEPSMODE=unixcc | |
47529 | DEPSFLAG="+make" | |
47530 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
3006edc0 | 47531 | echo "${ECHO_T}HP cc" >&6 |
f10e38c4 VZ |
47532 | elif test "x$COMPAQCC" = "xyes"; then |
47533 | DEPSMODE=gcc | |
47534 | DEPSFLAG="-MD" | |
47535 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
a1aa0349 | 47536 | echo "${ECHO_T}Compaq cc" >&6 |
f10e38c4 VZ |
47537 | else |
47538 | DEPS_TRACKING=0 | |
47539 | echo "$as_me:$LINENO: result: none" >&5 | |
a848cd7e | 47540 | echo "${ECHO_T}none" >&6 |
f10e38c4 | 47541 | fi |
a848cd7e | 47542 | |
f10e38c4 | 47543 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
47544 | |
47545 | D='$' | |
47546 | cat <<EOF >bk-deps | |
a848cd7e SC |
47547 | #!/bin/sh |
47548 | ||
47549 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47550 | # script. It is used to track C/C++ files dependencies in portable way. | |
47551 | # | |
47552 | # Permission is given to use this file in any way. | |
47553 | ||
473276a9 | 47554 | DEPSMODE=${DEPSMODE} |
a848cd7e | 47555 | DEPSDIR=.deps |
0ad5d837 | 47556 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 47557 | |
473276a9 | 47558 | mkdir -p ${D}DEPSDIR |
a848cd7e | 47559 | |
473276a9 | 47560 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 47561 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
47562 | status=${D}? |
47563 | if test ${D}{status} != 0 ; then | |
47564 | exit ${D}{status} | |
a848cd7e SC |
47565 | fi |
47566 | # move created file to the location we want it in: | |
473276a9 VS |
47567 | while test ${D}# -gt 0; do |
47568 | case "${D}1" in | |
a848cd7e SC |
47569 | -o ) |
47570 | shift | |
473276a9 | 47571 | objfile=${D}1 |
a848cd7e SC |
47572 | ;; |
47573 | -* ) | |
47574 | ;; | |
47575 | * ) | |
473276a9 | 47576 | srcfile=${D}1 |
a848cd7e SC |
47577 | ;; |
47578 | esac | |
47579 | shift | |
47580 | done | |
1e9e8aba DE |
47581 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
47582 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
47583 | if test -f ${D}depfile ; then |
47584 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
47585 | rm -f ${D}depfile | |
a848cd7e | 47586 | else |
a1aa0349 | 47587 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 47588 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
47589 | if test ! -f ${D}depfile ; then |
47590 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
47591 | depfile="${D}objfile.d" | |
47592 | fi | |
473276a9 VS |
47593 | if test -f ${D}depfile ; then |
47594 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
47595 | rm -f ${D}depfile | |
a848cd7e SC |
47596 | fi |
47597 | fi | |
47598 | exit 0 | |
81f90336 | 47599 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 47600 | ${D}* || exit ${D}? |
81f90336 MW |
47601 | # Run mwcc again with -MM and redirect into the dep file we want |
47602 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
47603 | prevarg= | |
47604 | for arg in ${D}* ; do | |
47605 | if test "${D}prevarg" = "-o"; then | |
47606 | objfile=${D}arg | |
47607 | else | |
47608 | case "${D}arg" in | |
47609 | -* ) | |
47610 | ;; | |
47611 | * ) | |
47612 | srcfile=${D}arg | |
47613 | ;; | |
47614 | esac | |
47615 | fi | |
47616 | prevarg="${D}arg" | |
47617 | done | |
0ad5d837 | 47618 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 47619 | exit 0 |
0ad5d837 | 47620 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 47621 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
47622 | # Run compiler again with deps flag and redirect into the dep file. |
47623 | # It doesn't work if the '-o FILE' option is used, but without it the | |
47624 | # dependency file will contain the wrong name for the object. So it is | |
47625 | # removed from the command line, and the dep file is fixed with sed. | |
47626 | cmd="" | |
47627 | while test ${D}# -gt 0; do | |
47628 | case "${D}1" in | |
47629 | -o ) | |
47630 | shift | |
47631 | objfile=${D}1 | |
47632 | ;; | |
47633 | * ) | |
47634 | eval arg${D}#=\\${D}1 | |
47635 | cmd="${D}cmd \\${D}arg${D}#" | |
47636 | ;; | |
47637 | esac | |
47638 | shift | |
47639 | done | |
0ad5d837 | 47640 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 47641 | exit 0 |
a848cd7e | 47642 | else |
473276a9 VS |
47643 | ${D}* |
47644 | exit ${D}? | |
a848cd7e SC |
47645 | fi |
47646 | EOF | |
473276a9 | 47647 | |
f10e38c4 VZ |
47648 | chmod +x bk-deps |
47649 | fi | |
a848cd7e SC |
47650 | fi |
47651 | ||
47652 | ||
47653 | ||
47654 | ||
a848cd7e SC |
47655 | case ${BAKEFILE_HOST} in |
47656 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
47657 | if test -n "$ac_tool_prefix"; then |
47658 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
47659 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
47660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47662 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
47663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47664 | else | |
47665 | if test -n "$WINDRES"; then | |
47666 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
47667 | else | |
47668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47669 | for as_dir in $PATH | |
47670 | do | |
47671 | IFS=$as_save_IFS | |
47672 | test -z "$as_dir" && as_dir=. | |
47673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47674 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47675 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
47676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47677 | break 2 | |
47678 | fi | |
47679 | done | |
47680 | done | |
47681 | ||
47682 | fi | |
47683 | fi | |
47684 | WINDRES=$ac_cv_prog_WINDRES | |
47685 | if test -n "$WINDRES"; then | |
47686 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
47687 | echo "${ECHO_T}$WINDRES" >&6 | |
47688 | else | |
47689 | echo "$as_me:$LINENO: result: no" >&5 | |
47690 | echo "${ECHO_T}no" >&6 | |
47691 | fi | |
47692 | ||
47693 | fi | |
47694 | if test -z "$ac_cv_prog_WINDRES"; then | |
47695 | ac_ct_WINDRES=$WINDRES | |
47696 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
47697 | set dummy windres; ac_word=$2 |
47698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47700 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
47701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47702 | else | |
8ced02f6 DE |
47703 | if test -n "$ac_ct_WINDRES"; then |
47704 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
47705 | else |
47706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47707 | for as_dir in $PATH | |
47708 | do | |
47709 | IFS=$as_save_IFS | |
47710 | test -z "$as_dir" && as_dir=. | |
47711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47713 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
47714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47715 | break 2 | |
47716 | fi | |
47717 | done | |
47718 | done | |
47719 | ||
a848cd7e SC |
47720 | fi |
47721 | fi | |
8ced02f6 DE |
47722 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
47723 | if test -n "$ac_ct_WINDRES"; then | |
47724 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
47725 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
47726 | else |
47727 | echo "$as_me:$LINENO: result: no" >&5 | |
47728 | echo "${ECHO_T}no" >&6 | |
47729 | fi | |
47730 | ||
8ced02f6 DE |
47731 | WINDRES=$ac_ct_WINDRES |
47732 | else | |
47733 | WINDRES="$ac_cv_prog_WINDRES" | |
47734 | fi | |
47735 | ||
a848cd7e SC |
47736 | ;; |
47737 | ||
1e9e8aba | 47738 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
47739 | # Extract the first word of "Rez", so it can be a program name with args. |
47740 | set dummy Rez; ac_word=$2 | |
47741 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47743 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
47744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47745 | else | |
8ced02f6 DE |
47746 | if test -n "$REZ"; then |
47747 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
47748 | else |
47749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47750 | for as_dir in $PATH | |
47751 | do | |
47752 | IFS=$as_save_IFS | |
47753 | test -z "$as_dir" && as_dir=. | |
47754 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47756 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
47757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47758 | break 2 | |
47759 | fi | |
47760 | done | |
47761 | done | |
47762 | ||
8ced02f6 | 47763 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
47764 | fi |
47765 | fi | |
8ced02f6 DE |
47766 | REZ=$ac_cv_prog_REZ |
47767 | if test -n "$REZ"; then | |
47768 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
47769 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
47770 | else |
47771 | echo "$as_me:$LINENO: result: no" >&5 | |
47772 | echo "${ECHO_T}no" >&6 | |
47773 | fi | |
47774 | ||
47775 | # Extract the first word of "SetFile", so it can be a program name with args. | |
47776 | set dummy SetFile; ac_word=$2 | |
47777 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47779 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
47780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47781 | else | |
47782 | if test -n "$SETFILE"; then | |
47783 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
47784 | else | |
47785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47786 | for as_dir in $PATH | |
47787 | do | |
47788 | IFS=$as_save_IFS | |
47789 | test -z "$as_dir" && as_dir=. | |
47790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47792 | ac_cv_prog_SETFILE="SetFile" | |
47793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47794 | break 2 | |
47795 | fi | |
47796 | done | |
47797 | done | |
47798 | ||
47799 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
47800 | fi | |
47801 | fi | |
47802 | SETFILE=$ac_cv_prog_SETFILE | |
47803 | if test -n "$SETFILE"; then | |
47804 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
47805 | echo "${ECHO_T}$SETFILE" >&6 | |
47806 | else | |
47807 | echo "$as_me:$LINENO: result: no" >&5 | |
47808 | echo "${ECHO_T}no" >&6 | |
47809 | fi | |
47810 | ||
47811 | ;; | |
47812 | esac | |
47813 | ||
47814 | ||
47815 | ||
47816 | ||
47817 | ||
8ced02f6 | 47818 | |
f10e38c4 | 47819 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.0" |
a848cd7e | 47820 | |
dcc1b6ad | 47821 | |
f10e38c4 | 47822 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0" |
a848cd7e | 47823 | |
646b6ec1 | 47824 | |
74b84332 | 47825 | |
a848cd7e SC |
47826 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
47827 | if test "${enable_precomp_headers+set}" = set; then | |
47828 | enableval="$enable_precomp_headers" | |
47829 | bk_use_pch="$enableval" | |
47830 | fi; | |
47831 | ||
47832 | GCC_PCH=0 | |
f10e38c4 VZ |
47833 | ICC_PCH=0 |
47834 | USE_PCH=0 | |
a848cd7e | 47835 | |
5c60e845 MW |
47836 | case ${BAKEFILE_HOST} in |
47837 | *-*-cygwin* ) | |
47838 | bk_use_pch="no" | |
47839 | ;; | |
47840 | esac | |
47841 | ||
a848cd7e SC |
47842 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
47843 | if test "x$GCC" = "xyes"; then | |
47844 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
47845 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
47846 | cat >conftest.$ac_ext <<_ACEOF | |
47847 | /* confdefs.h. */ | |
47848 | _ACEOF | |
47849 | cat confdefs.h >>conftest.$ac_ext | |
47850 | cat >>conftest.$ac_ext <<_ACEOF | |
47851 | /* end confdefs.h. */ | |
47852 | ||
47853 | int | |
47854 | main () | |
47855 | { | |
47856 | ||
47857 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
e5efa97e | 47858 | There is no PCH support |
a848cd7e SC |
47859 | #endif |
47860 | #if (__GNUC__ < 3) | |
e5efa97e | 47861 | There is no PCH support |
a848cd7e SC |
47862 | #endif |
47863 | #if (__GNUC__ == 3) && \ | |
47864 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
47865 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
47866 | ( defined(__INTEL_COMPILER) ) | |
e5efa97e | 47867 | There is no PCH support |
a848cd7e SC |
47868 | #endif |
47869 | ||
47870 | ; | |
47871 | return 0; | |
47872 | } | |
47873 | _ACEOF | |
47874 | rm -f conftest.$ac_objext | |
47875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 47876 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 47877 | ac_status=$? |
ac1cb8d3 VS |
47878 | grep -v '^ *+' conftest.er1 >conftest.err |
47879 | rm -f conftest.er1 | |
47880 | cat conftest.err >&5 | |
a848cd7e SC |
47881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47882 | (exit $ac_status); } && | |
3f60522a JS |
47883 | { ac_try='test -z "$ac_c_werror_flag" |
47884 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
47885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47886 | (eval $ac_try) 2>&5 | |
47887 | ac_status=$? | |
47888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47889 | (exit $ac_status); }; } && | |
47890 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
47891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47892 | (eval $ac_try) 2>&5 | |
47893 | ac_status=$? | |
47894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47895 | (exit $ac_status); }; }; then | |
47896 | ||
47897 | echo "$as_me:$LINENO: result: yes" >&5 | |
47898 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
47899 | GCC_PCH=1 |
47900 | ||
47901 | else | |
47902 | echo "$as_me: failed program was:" >&5 | |
47903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47904 | ||
47905 | ||
f10e38c4 VZ |
47906 | cat >conftest.$ac_ext <<_ACEOF |
47907 | /* confdefs.h. */ | |
47908 | _ACEOF | |
47909 | cat confdefs.h >>conftest.$ac_ext | |
47910 | cat >>conftest.$ac_ext <<_ACEOF | |
47911 | /* end confdefs.h. */ | |
47912 | ||
47913 | int | |
47914 | main () | |
47915 | { | |
47916 | ||
47917 | #if !defined(__INTEL_COMPILER) || \ | |
47918 | (__INTEL_COMPILER < 800) | |
e5efa97e | 47919 | There is no PCH support |
f10e38c4 VZ |
47920 | #endif |
47921 | ||
47922 | ; | |
47923 | return 0; | |
47924 | } | |
47925 | _ACEOF | |
47926 | rm -f conftest.$ac_objext | |
47927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
47928 | (eval $ac_compile) 2>conftest.er1 | |
47929 | ac_status=$? | |
47930 | grep -v '^ *+' conftest.er1 >conftest.err | |
47931 | rm -f conftest.er1 | |
47932 | cat conftest.err >&5 | |
47933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47934 | (exit $ac_status); } && | |
3f60522a JS |
47935 | { ac_try='test -z "$ac_c_werror_flag" |
47936 | || test ! -s conftest.err' | |
f10e38c4 VZ |
47937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47938 | (eval $ac_try) 2>&5 | |
47939 | ac_status=$? | |
47940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47941 | (exit $ac_status); }; } && | |
47942 | { ac_try='test -s conftest.$ac_objext' | |
47943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
47944 | (eval $ac_try) 2>&5 | |
47945 | ac_status=$? | |
47946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47947 | (exit $ac_status); }; }; then | |
47948 | ||
47949 | echo "$as_me:$LINENO: result: yes" >&5 | |
47950 | echo "${ECHO_T}yes" >&6 | |
47951 | ICC_PCH=1 | |
47952 | ||
47953 | else | |
47954 | echo "$as_me: failed program was:" >&5 | |
47955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47956 | ||
47957 | ||
47958 | echo "$as_me:$LINENO: result: no" >&5 | |
a848cd7e SC |
47959 | echo "${ECHO_T}no" >&6 |
47960 | ||
47961 | fi | |
ac1cb8d3 | 47962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f10e38c4 VZ |
47963 | |
47964 | fi | |
47965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
47966 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then | |
47967 | USE_PCH=1 | |
1e9e8aba DE |
47968 | |
47969 | D='$' | |
47970 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
47971 | #!/bin/sh |
47972 | ||
47973 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47974 | # script. It is used to generated precompiled headers. | |
47975 | # | |
47976 | # Permission is given to use this file in any way. | |
47977 | ||
1e9e8aba DE |
47978 | outfile="${D}{1}" |
47979 | header="${D}{2}" | |
a848cd7e SC |
47980 | shift |
47981 | shift | |
47982 | ||
f10e38c4 VZ |
47983 | compiler="" |
47984 | headerfile="" | |
47985 | ||
1e9e8aba | 47986 | while test ${D}{#} -gt 0; do |
f10e38c4 | 47987 | add_to_cmdline=1 |
1e9e8aba | 47988 | case "${D}{1}" in |
a848cd7e | 47989 | -I* ) |
1e9e8aba DE |
47990 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
47991 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
47992 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
47993 | fi |
47994 | ;; | |
f10e38c4 VZ |
47995 | -use-pch|-use_pch ) |
47996 | shift | |
47997 | add_to_cmdline=0 | |
47998 | ;; | |
a848cd7e | 47999 | esac |
f10e38c4 VZ |
48000 | if test ${D}add_to_cmdline = 1 ; then |
48001 | compiler="${D}{compiler} ${D}{1}" | |
48002 | fi | |
a848cd7e SC |
48003 | shift |
48004 | done | |
48005 | ||
1e9e8aba | 48006 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 48007 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 48008 | else |
1e9e8aba DE |
48009 | if test -f ${D}{outfile} ; then |
48010 | rm -f ${D}{outfile} | |
a848cd7e | 48011 | else |
1e9e8aba | 48012 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 48013 | fi |
1e9e8aba | 48014 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e | 48015 | mkdir -p .deps |
f10e38c4 VZ |
48016 | if test "x${GCC_PCH}" = "x1" ; then |
48017 | # can do this because gcc is >= 3.4: | |
48018 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
48019 | elif test "x${ICC_PCH}" = "x1" ; then | |
48020 | filename=pch_gen-${D}${D} | |
48021 | file=${D}{filename}.c | |
48022 | dfile=${D}{filename}.d | |
48023 | cat > ${D}file <<EOT | |
48024 | #include "${D}header" | |
48025 | EOT | |
48026 | # using -MF icc complains about differing command lines in creation/use | |
48027 | ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\ | |
48028 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ | |
48029 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
48030 | fi | |
1e9e8aba | 48031 | exit ${D}{?} |
a848cd7e SC |
48032 | fi |
48033 | EOF | |
1e9e8aba | 48034 | |
a848cd7e SC |
48035 | chmod +x bk-make-pch |
48036 | fi | |
48037 | fi | |
48038 | fi | |
48039 | ||
48040 | ||
48041 | ||
f10e38c4 | 48042 | |
a848cd7e SC |
48043 | COND_BUILD_DEBUG="#" |
48044 | if test "x$BUILD" = "xdebug" ; then | |
48045 | COND_BUILD_DEBUG="" | |
48046 | fi | |
48047 | ||
48048 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
48049 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
48050 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
48051 | fi | |
48052 | ||
48053 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
48054 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
48055 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
48056 | fi | |
48057 | ||
48058 | COND_BUILD_DEBUG_UNICODE_0="#" | |
48059 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
48060 | COND_BUILD_DEBUG_UNICODE_0="" | |
48061 | fi | |
48062 | ||
48063 | COND_BUILD_DEBUG_UNICODE_1="#" | |
48064 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
48065 | COND_BUILD_DEBUG_UNICODE_1="" | |
48066 | fi | |
48067 | ||
48068 | COND_BUILD_RELEASE="#" | |
48069 | if test "x$BUILD" = "xrelease" ; then | |
48070 | COND_BUILD_RELEASE="" | |
48071 | fi | |
48072 | ||
48073 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
48074 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
48075 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
48076 | fi | |
48077 | ||
48078 | COND_BUILD_RELEASE_UNICODE_0="#" | |
48079 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
48080 | COND_BUILD_RELEASE_UNICODE_0="" | |
48081 | fi | |
48082 | ||
48083 | COND_BUILD_RELEASE_UNICODE_1="#" | |
48084 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
48085 | COND_BUILD_RELEASE_UNICODE_1="" | |
48086 | fi | |
48087 | ||
48088 | COND_DEBUG_FLAG_1="#" | |
48089 | if test "x$DEBUG_FLAG" = "x1" ; then | |
48090 | COND_DEBUG_FLAG_1="" | |
48091 | fi | |
48092 | ||
48093 | COND_DEBUG_INFO_0="#" | |
48094 | if test "x$DEBUG_INFO" = "x0" ; then | |
48095 | COND_DEBUG_INFO_0="" | |
48096 | fi | |
48097 | ||
48098 | COND_DEBUG_INFO_1="#" | |
48099 | if test "x$DEBUG_INFO" = "x1" ; then | |
48100 | COND_DEBUG_INFO_1="" | |
48101 | fi | |
48102 | ||
48103 | COND_DEPS_TRACKING_0="#" | |
48104 | if test "x$DEPS_TRACKING" = "x0" ; then | |
48105 | COND_DEPS_TRACKING_0="" | |
48106 | fi | |
48107 | ||
48108 | COND_DEPS_TRACKING_1="#" | |
48109 | if test "x$DEPS_TRACKING" = "x1" ; then | |
48110 | COND_DEPS_TRACKING_1="" | |
48111 | fi | |
48112 | ||
48113 | COND_GCC_PCH_1="#" | |
48114 | if test "x$GCC_PCH" = "x1" ; then | |
48115 | COND_GCC_PCH_1="" | |
48116 | fi | |
48117 | ||
f10e38c4 VZ |
48118 | COND_ICC_PCH_1="#" |
48119 | if test "x$ICC_PCH" = "x1" ; then | |
48120 | COND_ICC_PCH_1="" | |
48121 | fi | |
48122 | ||
a848cd7e SC |
48123 | COND_MONOLITHIC_0="#" |
48124 | if test "x$MONOLITHIC" = "x0" ; then | |
48125 | COND_MONOLITHIC_0="" | |
48126 | fi | |
48127 | ||
48128 | COND_MONOLITHIC_0_SHARED_0="#" | |
48129 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
48130 | COND_MONOLITHIC_0_SHARED_0="" | |
48131 | fi | |
48132 | ||
3f60522a JS |
48133 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#" |
48134 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then | |
48135 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="" | |
48136 | fi | |
48137 | ||
a848cd7e SC |
48138 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" |
48139 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
48140 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
48141 | fi | |
48142 | ||
90970d69 DE |
48143 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
48144 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
48145 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
48146 | fi | |
48147 | ||
f10e38c4 VZ |
48148 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
48149 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
48150 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
48151 | fi | |
48152 | ||
a848cd7e SC |
48153 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
48154 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48155 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
48156 | fi | |
48157 | ||
6671c68b VZ |
48158 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
48159 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
48160 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
48161 | fi | |
48162 | ||
a848cd7e SC |
48163 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
48164 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
48165 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
48166 | fi | |
48167 | ||
8b6682b9 JS |
48168 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#" |
48169 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then | |
48170 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="" | |
48171 | fi | |
48172 | ||
ceec2216 RL |
48173 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
48174 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
48175 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
48176 | fi | |
48177 | ||
a848cd7e SC |
48178 | COND_MONOLITHIC_0_SHARED_1="#" |
48179 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
48180 | COND_MONOLITHIC_0_SHARED_1="" | |
48181 | fi | |
48182 | ||
3f60522a JS |
48183 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#" |
48184 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then | |
48185 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="" | |
48186 | fi | |
48187 | ||
a848cd7e SC |
48188 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
48189 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
48190 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
48191 | fi | |
48192 | ||
90970d69 DE |
48193 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
48194 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
48195 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
48196 | fi | |
48197 | ||
f10e38c4 VZ |
48198 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
48199 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
48200 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
48201 | fi | |
48202 | ||
a848cd7e SC |
48203 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
48204 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48205 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
48206 | fi | |
48207 | ||
6671c68b VZ |
48208 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
48209 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
48210 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
48211 | fi | |
48212 | ||
a848cd7e SC |
48213 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
48214 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48215 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
48216 | fi | |
48217 | ||
8b6682b9 JS |
48218 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#" |
48219 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then | |
48220 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="" | |
48221 | fi | |
48222 | ||
ceec2216 RL |
48223 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
48224 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
48225 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
48226 | fi | |
48227 | ||
e5efa97e VZ |
48228 | COND_MONOLITHIC_0_USE_MEDIA_1="#" |
48229 | if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then | |
48230 | COND_MONOLITHIC_0_USE_MEDIA_1="" | |
48231 | fi | |
48232 | ||
a848cd7e SC |
48233 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
48234 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
48235 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
48236 | fi | |
48237 | ||
48238 | COND_MONOLITHIC_1="#" | |
48239 | if test "x$MONOLITHIC" = "x1" ; then | |
48240 | COND_MONOLITHIC_1="" | |
48241 | fi | |
48242 | ||
48243 | COND_MONOLITHIC_1_SHARED_0="#" | |
48244 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
48245 | COND_MONOLITHIC_1_SHARED_0="" | |
48246 | fi | |
48247 | ||
48248 | COND_MONOLITHIC_1_SHARED_1="#" | |
48249 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
48250 | COND_MONOLITHIC_1_SHARED_1="" | |
48251 | fi | |
48252 | ||
48253 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
48254 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
48255 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
48256 | fi | |
48257 | ||
48258 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
48259 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
48260 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
48261 | fi | |
48262 | ||
eb730a0c JS |
48263 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
48264 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
48265 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
48266 | fi | |
48267 | ||
a848cd7e SC |
48268 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
48269 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
48270 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
48271 | fi | |
48272 | ||
48273 | COND_PLATFORM_MACOSX_1="#" | |
48274 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
48275 | COND_PLATFORM_MACOSX_1="" | |
48276 | fi | |
48277 | ||
a30f955f VS |
48278 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
48279 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
48280 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
48281 | fi | |
48282 | ||
a848cd7e SC |
48283 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
48284 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
48285 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
48286 | fi | |
48287 | ||
48288 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
48289 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
48290 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
48291 | fi | |
48292 | ||
48293 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
48294 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
48295 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
48296 | fi | |
48297 | ||
fc480dc1 DE |
48298 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
48299 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
48300 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
48301 | fi | |
48302 | ||
1e9e8aba DE |
48303 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
48304 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48305 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
48306 | fi | |
48307 | ||
ebee3cd0 VS |
48308 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
48309 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
48310 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
48311 | fi | |
48312 | ||
48313 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
48314 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
48315 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
48316 | fi | |
48317 | ||
a848cd7e SC |
48318 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
48319 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
48320 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
48321 | fi | |
48322 | ||
48323 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
48324 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
48325 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
48326 | fi | |
48327 | ||
b48a2016 DE |
48328 | COND_PLATFORM_MACOS_1="#" |
48329 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
48330 | COND_PLATFORM_MACOS_1="" | |
48331 | fi | |
48332 | ||
083508af MW |
48333 | COND_PLATFORM_MAC_1="#" |
48334 | if test "x$PLATFORM_MAC" = "x1" ; then | |
48335 | COND_PLATFORM_MAC_1="" | |
48336 | fi | |
48337 | ||
e5efa97e VZ |
48338 | COND_PLATFORM_MSDOS_0="#" |
48339 | if test "x$PLATFORM_MSDOS" = "x0" ; then | |
48340 | COND_PLATFORM_MSDOS_0="" | |
48341 | fi | |
48342 | ||
83d8eb47 MW |
48343 | COND_PLATFORM_MSDOS_1="#" |
48344 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
48345 | COND_PLATFORM_MSDOS_1="" | |
48346 | fi | |
48347 | ||
a848cd7e SC |
48348 | COND_PLATFORM_OS2_1="#" |
48349 | if test "x$PLATFORM_OS2" = "x1" ; then | |
48350 | COND_PLATFORM_OS2_1="" | |
48351 | fi | |
48352 | ||
48353 | COND_PLATFORM_UNIX_0="#" | |
48354 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
48355 | COND_PLATFORM_UNIX_0="" | |
48356 | fi | |
48357 | ||
48358 | COND_PLATFORM_UNIX_1="#" | |
48359 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
48360 | COND_PLATFORM_UNIX_1="" | |
48361 | fi | |
48362 | ||
48363 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
48364 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
48365 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
48366 | fi | |
48367 | ||
48368 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
48369 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
48370 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
48371 | fi | |
48372 | ||
48373 | COND_PLATFORM_WIN32_0="#" | |
48374 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
48375 | COND_PLATFORM_WIN32_0="" | |
48376 | fi | |
48377 | ||
48378 | COND_PLATFORM_WIN32_1="#" | |
48379 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
48380 | COND_PLATFORM_WIN32_1="" | |
48381 | fi | |
48382 | ||
48383 | COND_SHARED_0="#" | |
48384 | if test "x$SHARED" = "x0" ; then | |
48385 | COND_SHARED_0="" | |
48386 | fi | |
48387 | ||
083508af MW |
48388 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
48389 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
48390 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
48391 | fi | |
48392 | ||
48393 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
48394 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
48395 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
48396 | fi | |
48397 | ||
48398 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
48399 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
48400 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
48401 | fi | |
48402 | ||
a848cd7e SC |
48403 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
48404 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
48405 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
48406 | fi | |
48407 | ||
48408 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
48409 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48410 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
48411 | fi | |
48412 | ||
48413 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
48414 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48415 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
48416 | fi | |
48417 | ||
48418 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
48419 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48420 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
48421 | fi | |
48422 | ||
083508af MW |
48423 | COND_SHARED_0_USE_XRC_1="#" |
48424 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
48425 | COND_SHARED_0_USE_XRC_1="" | |
48426 | fi | |
48427 | ||
a848cd7e SC |
48428 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
48429 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
48430 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
48431 | fi | |
48432 | ||
48433 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
48434 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
48435 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
48436 | fi | |
48437 | ||
48438 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
48439 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
48440 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
48441 | fi | |
48442 | ||
48443 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
48444 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
48445 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
48446 | fi | |
48447 | ||
48448 | COND_SHARED_1="#" | |
48449 | if test "x$SHARED" = "x1" ; then | |
48450 | COND_SHARED_1="" | |
48451 | fi | |
48452 | ||
48453 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
48454 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
48455 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
48456 | fi | |
48457 | ||
083508af MW |
48458 | COND_SHARED_1_USE_XRC_1="#" |
48459 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
48460 | COND_SHARED_1_USE_XRC_1="" | |
48461 | fi | |
48462 | ||
a30f955f VS |
48463 | COND_TOOLKIT_="#" |
48464 | if test "x$TOOLKIT" = "x" ; then | |
48465 | COND_TOOLKIT_="" | |
48466 | fi | |
48467 | ||
a848cd7e SC |
48468 | COND_TOOLKIT_COCOA="#" |
48469 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
48470 | COND_TOOLKIT_COCOA="" | |
48471 | fi | |
48472 | ||
a49baeab DE |
48473 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
48474 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
48475 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
48476 | fi | |
48477 | ||
a848cd7e SC |
48478 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
48479 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48480 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
48481 | fi | |
48482 | ||
48483 | COND_TOOLKIT_GTK="#" | |
48484 | if test "x$TOOLKIT" = "xGTK" ; then | |
48485 | COND_TOOLKIT_GTK="" | |
48486 | fi | |
48487 | ||
d044deea MW |
48488 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
48489 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
48490 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
48491 | fi | |
48492 | ||
48493 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
48494 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
48495 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
48496 | fi | |
48497 | ||
48498 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
48499 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
48500 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
48501 | fi | |
48502 | ||
48503 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
48504 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48505 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
48506 | fi | |
48507 | ||
48508 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
48509 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
48510 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
48511 | fi | |
48512 | ||
48513 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
48514 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48515 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
48516 | fi | |
48517 | ||
a848cd7e SC |
48518 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
48519 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
48520 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
48521 | fi | |
48522 | ||
a848cd7e SC |
48523 | COND_TOOLKIT_MAC="#" |
48524 | if test "x$TOOLKIT" = "xMAC" ; then | |
48525 | COND_TOOLKIT_MAC="" | |
48526 | fi | |
48527 | ||
48528 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
48529 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
48530 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
48531 | fi | |
48532 | ||
48533 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
48534 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48535 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
48536 | fi | |
48537 | ||
48538 | COND_TOOLKIT_MGL="#" | |
48539 | if test "x$TOOLKIT" = "xMGL" ; then | |
48540 | COND_TOOLKIT_MGL="" | |
48541 | fi | |
48542 | ||
48543 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
48544 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
48545 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
48546 | fi | |
48547 | ||
48548 | COND_TOOLKIT_MOTIF="#" | |
48549 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
48550 | COND_TOOLKIT_MOTIF="" | |
48551 | fi | |
48552 | ||
48553 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
48554 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
48555 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
48556 | fi | |
48557 | ||
48558 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
48559 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48560 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
48561 | fi | |
48562 | ||
48563 | COND_TOOLKIT_MSW="#" | |
48564 | if test "x$TOOLKIT" = "xMSW" ; then | |
48565 | COND_TOOLKIT_MSW="" | |
48566 | fi | |
48567 | ||
48568 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
48569 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
48570 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
48571 | fi | |
48572 | ||
48573 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
48574 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48575 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
48576 | fi | |
48577 | ||
0ee4059d DE |
48578 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
48579 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
48580 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
48581 | fi | |
48582 | ||
a848cd7e SC |
48583 | COND_TOOLKIT_PM="#" |
48584 | if test "x$TOOLKIT" = "xPM" ; then | |
48585 | COND_TOOLKIT_PM="" | |
48586 | fi | |
48587 | ||
48588 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
48589 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
48590 | COND_TOOLKIT_PM_USE_GUI_1="" | |
48591 | fi | |
48592 | ||
48593 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
48594 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48595 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
48596 | fi | |
48597 | ||
3fd9c298 DE |
48598 | COND_TOOLKIT_WINCE="#" |
48599 | if test "x$TOOLKIT" = "xWINCE" ; then | |
48600 | COND_TOOLKIT_WINCE="" | |
48601 | fi | |
48602 | ||
48603 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
48604 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
48605 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
48606 | fi | |
48607 | ||
48608 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
48609 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48610 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
48611 | fi | |
48612 | ||
0ee4059d DE |
48613 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
48614 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
48615 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
48616 | fi | |
48617 | ||
a848cd7e SC |
48618 | COND_TOOLKIT_X11="#" |
48619 | if test "x$TOOLKIT" = "xX11" ; then | |
48620 | COND_TOOLKIT_X11="" | |
48621 | fi | |
48622 | ||
48623 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
48624 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
48625 | COND_TOOLKIT_X11_USE_GUI_1="" | |
48626 | fi | |
48627 | ||
48628 | COND_UNICODE_1="#" | |
48629 | if test "x$UNICODE" = "x1" ; then | |
48630 | COND_UNICODE_1="" | |
48631 | fi | |
48632 | ||
48633 | COND_USE_EXCEPTIONS_0="#" | |
48634 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
48635 | COND_USE_EXCEPTIONS_0="" | |
48636 | fi | |
48637 | ||
48638 | COND_USE_EXCEPTIONS_1="#" | |
48639 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
48640 | COND_USE_EXCEPTIONS_1="" | |
48641 | fi | |
48642 | ||
48643 | COND_USE_GUI_0="#" | |
48644 | if test "x$USE_GUI" = "x0" ; then | |
48645 | COND_USE_GUI_0="" | |
48646 | fi | |
48647 | ||
48648 | COND_USE_GUI_1="#" | |
48649 | if test "x$USE_GUI" = "x1" ; then | |
48650 | COND_USE_GUI_1="" | |
48651 | fi | |
48652 | ||
48653 | COND_USE_GUI_1_WXUNIV_0="#" | |
48654 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48655 | COND_USE_GUI_1_WXUNIV_0="" | |
48656 | fi | |
48657 | ||
48658 | COND_USE_GUI_1_WXUNIV_1="#" | |
48659 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
48660 | COND_USE_GUI_1_WXUNIV_1="" | |
48661 | fi | |
48662 | ||
48663 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
48664 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48665 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
48666 | fi | |
48667 | ||
48668 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
48669 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48670 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
48671 | fi | |
48672 | ||
48673 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
48674 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48675 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
48676 | fi | |
48677 | ||
083508af MW |
48678 | COND_USE_ODBC_1="#" |
48679 | if test "x$USE_ODBC" = "x1" ; then | |
48680 | COND_USE_ODBC_1="" | |
48681 | fi | |
48682 | ||
48683 | COND_USE_OPENGL_1="#" | |
48684 | if test "x$USE_OPENGL" = "x1" ; then | |
48685 | COND_USE_OPENGL_1="" | |
48686 | fi | |
48687 | ||
f10e38c4 VZ |
48688 | COND_USE_PCH_1="#" |
48689 | if test "x$USE_PCH" = "x1" ; then | |
48690 | COND_USE_PCH_1="" | |
48691 | fi | |
48692 | ||
a848cd7e SC |
48693 | COND_USE_PLUGINS_0="#" |
48694 | if test "x$USE_PLUGINS" = "x0" ; then | |
48695 | COND_USE_PLUGINS_0="" | |
48696 | fi | |
48697 | ||
0b78747f MW |
48698 | COND_USE_RTTI_0="#" |
48699 | if test "x$USE_RTTI" = "x0" ; then | |
48700 | COND_USE_RTTI_0="" | |
48701 | fi | |
48702 | ||
48703 | COND_USE_RTTI_1="#" | |
48704 | if test "x$USE_RTTI" = "x1" ; then | |
48705 | COND_USE_RTTI_1="" | |
48706 | fi | |
48707 | ||
a848cd7e SC |
48708 | COND_USE_SOSYMLINKS_1="#" |
48709 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
48710 | COND_USE_SOSYMLINKS_1="" | |
48711 | fi | |
48712 | ||
eb730a0c JS |
48713 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
48714 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
48715 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
48716 | fi | |
48717 | ||
a848cd7e SC |
48718 | COND_USE_SOVERLINUX_1="#" |
48719 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
48720 | COND_USE_SOVERLINUX_1="" | |
48721 | fi | |
48722 | ||
48723 | COND_USE_SOVERSION_0="#" | |
48724 | if test "x$USE_SOVERSION" = "x0" ; then | |
48725 | COND_USE_SOVERSION_0="" | |
48726 | fi | |
48727 | ||
48728 | COND_USE_SOVERSOLARIS_1="#" | |
48729 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
48730 | COND_USE_SOVERSOLARIS_1="" | |
48731 | fi | |
48732 | ||
0b78747f MW |
48733 | COND_USE_THREADS_0="#" |
48734 | if test "x$USE_THREADS" = "x0" ; then | |
48735 | COND_USE_THREADS_0="" | |
48736 | fi | |
48737 | ||
48738 | COND_USE_THREADS_1="#" | |
48739 | if test "x$USE_THREADS" = "x1" ; then | |
48740 | COND_USE_THREADS_1="" | |
48741 | fi | |
48742 | ||
a13a7f89 RL |
48743 | COND_USE_XRC_1="#" |
48744 | if test "x$USE_XRC" = "x1" ; then | |
48745 | COND_USE_XRC_1="" | |
48746 | fi | |
48747 | ||
eb730a0c JS |
48748 | COND_WINDOWS_IMPLIB_1="#" |
48749 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
48750 | COND_WINDOWS_IMPLIB_1="" | |
48751 | fi | |
48752 | ||
a848cd7e SC |
48753 | COND_WITH_PLUGIN_SDL_1="#" |
48754 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
48755 | COND_WITH_PLUGIN_SDL_1="" | |
48756 | fi | |
48757 | ||
1e6eb025 VZ |
48758 | COND_WXUNIV_0="#" |
48759 | if test "x$WXUNIV" = "x0" ; then | |
48760 | COND_WXUNIV_0="" | |
48761 | fi | |
48762 | ||
a848cd7e SC |
48763 | COND_WXUNIV_1="#" |
48764 | if test "x$WXUNIV" = "x1" ; then | |
48765 | COND_WXUNIV_1="" | |
48766 | fi | |
48767 | ||
48768 | COND_WXUSE_EXPAT_BUILTIN="#" | |
48769 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
48770 | COND_WXUSE_EXPAT_BUILTIN="" | |
48771 | fi | |
48772 | ||
48773 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
48774 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48775 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
48776 | fi | |
48777 | ||
48778 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
48779 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48780 | COND_WXUSE_LIBPNG_BUILTIN="" | |
48781 | fi | |
48782 | ||
48783 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
48784 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48785 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
48786 | fi | |
48787 | ||
48788 | COND_WXUSE_ODBC_BUILTIN="#" | |
48789 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
48790 | COND_WXUSE_ODBC_BUILTIN="" | |
48791 | fi | |
48792 | ||
48793 | COND_WXUSE_REGEX_BUILTIN="#" | |
48794 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
48795 | COND_WXUSE_REGEX_BUILTIN="" | |
48796 | fi | |
48797 | ||
48798 | COND_WXUSE_ZLIB_BUILTIN="#" | |
48799 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
48800 | COND_WXUSE_ZLIB_BUILTIN="" | |
48801 | fi | |
48802 | ||
48803 | ||
48804 | ||
810b94f0 MW |
48805 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
48806 | { { 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 | |
48807 | 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;} | |
48808 | { (exit 1); exit 1; }; } | |
48809 | fi | |
48810 | ||
2057db16 VS |
48811 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
48812 | { { 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 | |
48813 | 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;} | |
48814 | { (exit 1); exit 1; }; } | |
48815 | fi | |
48816 | ||
a848cd7e | 48817 | |
7afc46ab KO |
48818 | |
48819 | if test "$wxUSE_MAC" = 1 ; then | |
48820 | if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then | |
48821 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp | |
48822 | mv temp bk-deps | |
48823 | chmod +x bk-deps | |
48824 | fi | |
48825 | fi | |
48826 | ||
ceec2216 RL |
48827 | if test "$wxUSE_SHARED" = "yes"; then |
48828 | ||
48829 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
48830 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
48831 | ||
5b674b9d DE |
48832 | case "${host}" in |
48833 | *-pc-os2_emx | *-pc-os2-emx ) | |
48834 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48835 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48836 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
48837 | cp -p ${srcdir}/src/os2/dllar.sh . | |
48838 | ;; | |
48839 | esac | |
ceec2216 RL |
48840 | else |
48841 | ||
48842 | EXE_LINKER="$CXX -o" | |
48843 | ||
48844 | fi | |
69120ee4 VZ |
48845 | if test "$wxUSE_OMF" = "yes"; then |
48846 | case "${host}" in | |
48847 | *-pc-os2_emx | *-pc-os2-emx ) | |
48848 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
48849 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48850 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48851 | ;; | |
48852 | esac | |
48853 | fi | |
a848cd7e | 48854 | |
c08ebc62 | 48855 | if test $GCC_PCH = 1 ; then |
254e8e29 | 48856 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 48857 | fi |
a848cd7e | 48858 | |
5ff751d6 | 48859 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
48860 | |
48861 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
48862 | ||
48863 | ||
48864 | ||
48865 | ||
48866 | ||
48867 | ||
48868 | ||
48869 | ||
48870 | ||
48871 | ||
48872 | ||
48873 | ||
48874 | ||
48875 | ||
48876 | ||
48877 | ||
48878 | ||
48879 | ||
48880 | ||
48881 | ||
48882 | ||
48883 | ||
48884 | ||
48885 | ||
48886 | ||
48887 | ||
48888 | ||
48889 | ||
48890 | ||
48891 | ||
48892 | ||
48893 | ||
48894 | ||
48895 | ||
48896 | ||
48897 | ||
48898 | ||
48899 | ||
48900 | ||
48901 | ||
48902 | ||
48903 | ||
a848cd7e SC |
48904 | |
48905 | ||
48906 | ||
48907 | ||
48908 | ||
48909 | ||
48910 | ||
48911 | ||
48912 | ||
48913 | ||
48914 | ||
48915 | ||
a848cd7e SC |
48916 | |
48917 | ||
ddd14b14 | 48918 | |
370d2fd7 | 48919 | |
8ced02f6 | 48920 | |
a848cd7e SC |
48921 | |
48922 | ||
48923 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
48924 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 48925 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
48926 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
48927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48928 | else | |
48929 | cat >conftest.make <<\_ACEOF | |
48930 | all: | |
48931 | @echo 'ac_maketemp="$(MAKE)"' | |
48932 | _ACEOF | |
48933 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
48934 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
48935 | if test -n "$ac_maketemp"; then | |
48936 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48937 | else | |
48938 | eval ac_cv_prog_make_${ac_make}_set=no | |
48939 | fi | |
48940 | rm -f conftest.make | |
48941 | fi | |
48942 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48943 | echo "$as_me:$LINENO: result: yes" >&5 | |
48944 | echo "${ECHO_T}yes" >&6 | |
48945 | SET_MAKE= | |
48946 | else | |
48947 | echo "$as_me:$LINENO: result: no" >&5 | |
48948 | echo "${ECHO_T}no" >&6 | |
48949 | SET_MAKE="MAKE=${MAKE-make}" | |
48950 | fi | |
48951 | ||
48952 | ||
a848cd7e | 48953 | |
ceec2216 RL |
48954 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
48955 | ||
a848cd7e | 48956 | |
5c60e845 MW |
48957 | if test "$USE_WIN32" = 1; then |
48958 | ac_config_commands="$ac_config_commands | |
48959 | rcdefs.h | |
48960 | " | |
48961 | ||
48962 | fi | |
48963 | ||
ceec2216 | 48964 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 48965 | |
a848cd7e | 48966 | |
ceec2216 | 48967 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 48968 | |
ceec2216 RL |
48969 | |
48970 | ac_config_files="$ac_config_files version-script Makefile" | |
48971 | ||
48972 | ||
5c60e845 | 48973 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
48974 | |
48975 | ||
9103d280 | 48976 | |
1c14217d | 48977 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
48978 | if test "$wxUSE_GUI" = "yes"; then |
48979 | SUBDIRS="samples demos utils contrib" | |
48980 | else SUBDIRS="samples utils" | |
48981 | fi | |
48982 | ||
48983 | ||
48984 | ||
48985 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
48986 | if test "${with_cppunit_prefix+set}" = set; then | |
48987 | withval="$with_cppunit_prefix" | |
48988 | cppunit_config_prefix="$withval" | |
48989 | else | |
48990 | cppunit_config_prefix="" | |
48991 | fi; | |
48992 | ||
48993 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
48994 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
48995 | withval="$with_cppunit_exec_prefix" | |
48996 | cppunit_config_exec_prefix="$withval" | |
48997 | else | |
48998 | cppunit_config_exec_prefix="" | |
48999 | fi; | |
49000 | ||
49001 | if test x$cppunit_config_exec_prefix != x ; then | |
49002 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
49003 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
49004 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
49005 | fi | |
49006 | fi | |
49007 | if test x$cppunit_config_prefix != x ; then | |
49008 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
49009 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
49010 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
49011 | fi | |
49012 | fi | |
49013 | ||
49014 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
49015 | set dummy cppunit-config; ac_word=$2 | |
49016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
49017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
49018 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
49019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
49020 | else | |
49021 | case $CPPUNIT_CONFIG in | |
49022 | [\\/]* | ?:[\\/]*) | |
49023 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
49024 | ;; | |
49025 | *) | |
49026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49027 | for as_dir in $PATH | |
49028 | do | |
49029 | IFS=$as_save_IFS | |
49030 | test -z "$as_dir" && as_dir=. | |
49031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
49032 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
49033 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
49034 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
49035 | break 2 | |
49036 | fi | |
49037 | done | |
49038 | done | |
49039 | ||
49040 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
49041 | ;; | |
49042 | esac | |
49043 | fi | |
49044 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
49045 | ||
49046 | if test -n "$CPPUNIT_CONFIG"; then | |
49047 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
49048 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
49049 | else | |
49050 | echo "$as_me:$LINENO: result: no" >&5 | |
49051 | echo "${ECHO_T}no" >&6 | |
49052 | fi | |
49053 | ||
49054 | cppunit_version_min=1.8.0 | |
49055 | ||
49056 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
49057 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
49058 | no_cppunit="" | |
49059 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
49060 | no_cppunit=yes | |
49061 | else | |
49062 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
49063 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
49064 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
49065 | ||
49066 | cppunit_major_version=`echo $cppunit_version | \ | |
49067 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
49068 | cppunit_minor_version=`echo $cppunit_version | \ | |
49069 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
49070 | cppunit_micro_version=`echo $cppunit_version | \ | |
49071 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
49072 | ||
49073 | cppunit_major_min=`echo $cppunit_version_min | \ | |
49074 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
49075 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
49076 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
49077 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
49078 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
49079 | ||
49080 | cppunit_version_proper=`expr \ | |
49081 | $cppunit_major_version \> $cppunit_major_min \| \ | |
49082 | $cppunit_major_version \= $cppunit_major_min \& \ | |
49083 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
49084 | $cppunit_major_version \= $cppunit_major_min \& \ | |
49085 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
49086 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
49087 | ||
49088 | if test "$cppunit_version_proper" = "1" ; then | |
49089 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
49090 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
49091 | else | |
49092 | echo "$as_me:$LINENO: result: no" >&5 | |
49093 | echo "${ECHO_T}no" >&6 | |
49094 | no_cppunit=yes | |
49095 | fi | |
49096 | fi | |
49097 | ||
49098 | if test "x$no_cppunit" = x ; then | |
c2218763 | 49099 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
49100 | else |
49101 | CPPUNIT_CFLAGS="" | |
49102 | CPPUNIT_LIBS="" | |
c2218763 | 49103 | : |
a848cd7e SC |
49104 | fi |
49105 | ||
49106 | ||
49107 | ||
49108 | ||
49109 | ||
49110 | for subdir in `echo $SUBDIRS`; do | |
49111 | if test -d ${srcdir}/${subdir} ; then | |
49112 | if test "$wxUSE_GUI" = "yes"; then | |
49113 | if test ${subdir} = "samples"; then | |
49114 | makefiles="samples/Makefile.in $makefiles" | |
49115 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
49116 | if test -d $srcdir/samples/$sample; then | |
49117 | makefiles="samples/$sample/Makefile.in $makefiles" | |
49118 | fi | |
49119 | done | |
9c112555 MW |
49120 | else |
49121 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
49122 | eval "disabled=\$$disabled_var" | |
49123 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
49124 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
49125 | fi |
49126 | else if test ${subdir} = "samples"; then | |
49127 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
49128 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
49129 | makefiles="" |
49130 | for util in HelpGen tex2rtf ; do | |
49131 | if test -d $srcdir/utils/$util ; then | |
49132 | makefiles="utils/$util/Makefile.in \ | |
49133 | utils/$util/src/Makefile.in \ | |
49134 | $makefiles" | |
49135 | fi | |
49136 | done | |
a848cd7e SC |
49137 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
49138 | fi | |
49139 | fi | |
49140 | ||
49141 | for mkin in $makefiles ; do | |
49142 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
49143 | ac_config_files="$ac_config_files $mk" | |
49144 | ||
49145 | done | |
49146 | fi | |
49147 | done | |
1c14217d | 49148 | fi |
a848cd7e SC |
49149 | cat >confcache <<\_ACEOF |
49150 | # This file is a shell script that caches the results of configure | |
49151 | # tests run on this system so they can be shared between configure | |
49152 | # scripts and configure runs, see configure's option --config-cache. | |
49153 | # It is not useful on other systems. If it contains results you don't | |
49154 | # want to keep, you may remove or edit it. | |
49155 | # | |
49156 | # config.status only pays attention to the cache file if you give it | |
49157 | # the --recheck option to rerun configure. | |
49158 | # | |
49159 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
49160 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
49161 | # following values. | |
49162 | ||
49163 | _ACEOF | |
49164 | ||
49165 | # The following way of writing the cache mishandles newlines in values, | |
49166 | # but we know of no workaround that is simple, portable, and efficient. | |
49167 | # So, don't put newlines in cache variables' values. | |
49168 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
49169 | # and sets the high bit in the cache file unless we assign to the vars. | |
49170 | { | |
49171 | (set) 2>&1 | | |
49172 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
49173 | *ac_space=\ *) | |
49174 | # `set' does not quote correctly, so add quotes (double-quote | |
49175 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
49176 | sed -n \ | |
ac1cb8d3 VS |
49177 | "s/'/'\\\\''/g; |
49178 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
49179 | ;; |
49180 | *) | |
49181 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
49182 | sed -n \ | |
ac1cb8d3 | 49183 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
49184 | ;; |
49185 | esac; | |
49186 | } | | |
49187 | sed ' | |
49188 | t clear | |
49189 | : clear | |
49190 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
49191 | t end | |
49192 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
49193 | : end' >>confcache | |
49194 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
49195 | if test -w $cache_file; then | |
49196 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
49197 | cat confcache >$cache_file | |
49198 | else | |
49199 | echo "not updating unwritable cache $cache_file" | |
49200 | fi | |
49201 | fi | |
49202 | rm -f confcache | |
49203 | ||
49204 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
49205 | # Let make expand exec_prefix. | |
49206 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
49207 | ||
49208 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
49209 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
49210 | # trailing colons and then remove the whole line if VPATH becomes empty | |
49211 | # (actually we leave an empty line to preserve line numbers). | |
49212 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 49213 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
49214 | s/:*\$(srcdir):*/:/; |
49215 | s/:*\${srcdir}:*/:/; | |
49216 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 49217 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 49218 | s/:*$//; |
ac1cb8d3 | 49219 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
49220 | }' |
49221 | fi | |
49222 | ||
49223 | DEFS=-DHAVE_CONFIG_H | |
49224 | ||
49225 | ac_libobjs= | |
49226 | ac_ltlibobjs= | |
49227 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
49228 | # 1. Remove the extension, and $U if already installed. | |
49229 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 49230 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
49231 | # 2. Add them. |
49232 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
49233 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
49234 | done | |
49235 | LIBOBJS=$ac_libobjs | |
49236 | ||
49237 | LTLIBOBJS=$ac_ltlibobjs | |
49238 | ||
49239 | ||
49240 | ||
49241 | : ${CONFIG_STATUS=./config.status} | |
49242 | ac_clean_files_save=$ac_clean_files | |
49243 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
49244 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
49245 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
49246 | cat >$CONFIG_STATUS <<_ACEOF | |
49247 | #! $SHELL | |
49248 | # Generated by $as_me. | |
49249 | # Run this file to recreate the current configuration. | |
49250 | # Compiler output produced by configure, useful for debugging | |
49251 | # configure, is in config.log if it exists. | |
49252 | ||
49253 | debug=false | |
49254 | ac_cs_recheck=false | |
49255 | ac_cs_silent=false | |
49256 | SHELL=\${CONFIG_SHELL-$SHELL} | |
49257 | _ACEOF | |
49258 | ||
49259 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49260 | ## --------------------- ## | |
49261 | ## M4sh Initialization. ## | |
49262 | ## --------------------- ## | |
49263 | ||
49264 | # Be Bourne compatible | |
49265 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
49266 | emulate sh | |
49267 | NULLCMD=: | |
49268 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
49269 | # is contrary to our usage. Disable this feature. | |
49270 | alias -g '${1+"$@"}'='"$@"' | |
49271 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
49272 | set -o posix | |
49273 | fi | |
ac1cb8d3 | 49274 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
49275 | |
49276 | # Support unset when possible. | |
ac1cb8d3 | 49277 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
49278 | as_unset=unset |
49279 | else | |
49280 | as_unset=false | |
49281 | fi | |
49282 | ||
49283 | ||
49284 | # Work around bugs in pre-3.0 UWIN ksh. | |
49285 | $as_unset ENV MAIL MAILPATH | |
49286 | PS1='$ ' | |
49287 | PS2='> ' | |
49288 | PS4='+ ' | |
49289 | ||
49290 | # NLS nuisances. | |
49291 | for as_var in \ | |
49292 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
49293 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
49294 | LC_TELEPHONE LC_TIME | |
49295 | do | |
ac1cb8d3 | 49296 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
49297 | eval $as_var=C; export $as_var |
49298 | else | |
49299 | $as_unset $as_var | |
49300 | fi | |
49301 | done | |
49302 | ||
49303 | # Required to use basename. | |
49304 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
49305 | as_expr=expr | |
49306 | else | |
49307 | as_expr=false | |
49308 | fi | |
49309 | ||
49310 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
49311 | as_basename=basename | |
49312 | else | |
49313 | as_basename=false | |
49314 | fi | |
49315 | ||
49316 | ||
49317 | # Name of the executable. | |
49318 | as_me=`$as_basename "$0" || | |
49319 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
49320 | X"$0" : 'X\(//\)$' \| \ | |
49321 | X"$0" : 'X\(/\)$' \| \ | |
49322 | . : '\(.\)' 2>/dev/null || | |
49323 | echo X/"$0" | | |
49324 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
49325 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
49326 | /^X\/\(\/\).*/{ s//\1/; q; } | |
49327 | s/.*/./; q'` | |
49328 | ||
49329 | ||
49330 | # PATH needs CR, and LINENO needs CR and PATH. | |
49331 | # Avoid depending upon Character Ranges. | |
49332 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
49333 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
49334 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
49335 | as_cr_digits='0123456789' | |
49336 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
49337 | ||
49338 | # The user is always right. | |
49339 | if test "${PATH_SEPARATOR+set}" != set; then | |
49340 | echo "#! /bin/sh" >conf$$.sh | |
49341 | echo "exit 0" >>conf$$.sh | |
49342 | chmod +x conf$$.sh | |
49343 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
49344 | PATH_SEPARATOR=';' | |
49345 | else | |
49346 | PATH_SEPARATOR=: | |
49347 | fi | |
49348 | rm -f conf$$.sh | |
49349 | fi | |
49350 | ||
49351 | ||
49352 | as_lineno_1=$LINENO | |
49353 | as_lineno_2=$LINENO | |
49354 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
49355 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
49356 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
49357 | # Find who we are. Look in the path if we contain no path at all | |
49358 | # relative or not. | |
49359 | case $0 in | |
49360 | *[\\/]* ) as_myself=$0 ;; | |
49361 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49362 | for as_dir in $PATH | |
49363 | do | |
49364 | IFS=$as_save_IFS | |
49365 | test -z "$as_dir" && as_dir=. | |
49366 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
49367 | done | |
49368 | ||
49369 | ;; | |
49370 | esac | |
49371 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
49372 | # in which case we are not to be found in the path. | |
49373 | if test "x$as_myself" = x; then | |
49374 | as_myself=$0 | |
49375 | fi | |
49376 | if test ! -f "$as_myself"; then | |
49377 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
49378 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
49379 | { (exit 1); exit 1; }; } | |
49380 | fi | |
49381 | case $CONFIG_SHELL in | |
49382 | '') | |
49383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49384 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
49385 | do | |
49386 | IFS=$as_save_IFS | |
49387 | test -z "$as_dir" && as_dir=. | |
49388 | for as_base in sh bash ksh sh5; do | |
49389 | case $as_dir in | |
49390 | /*) | |
49391 | if ("$as_dir/$as_base" -c ' | |
49392 | as_lineno_1=$LINENO | |
49393 | as_lineno_2=$LINENO | |
49394 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
49395 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
49396 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
49397 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
49398 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
49399 | CONFIG_SHELL=$as_dir/$as_base | |
49400 | export CONFIG_SHELL | |
49401 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
49402 | fi;; | |
49403 | esac | |
49404 | done | |
49405 | done | |
49406 | ;; | |
49407 | esac | |
49408 | ||
49409 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
49410 | # uniformly replaced by the line number. The first 'sed' inserts a | |
49411 | # line-number line before each line; the second 'sed' does the real | |
49412 | # work. The second script uses 'N' to pair each line-number line | |
49413 | # with the numbered line, and appends trailing '-' during | |
49414 | # substitution so that $LINENO is not a special case at line end. | |
49415 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
49416 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
49417 | sed '=' <$as_myself | | |
49418 | sed ' | |
49419 | N | |
49420 | s,$,-, | |
49421 | : loop | |
49422 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
49423 | t loop | |
49424 | s,-$,, | |
49425 | s,^['$as_cr_digits']*\n,, | |
49426 | ' >$as_me.lineno && | |
49427 | chmod +x $as_me.lineno || | |
49428 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
49429 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
49430 | { (exit 1); exit 1; }; } | |
49431 | ||
49432 | # Don't try to exec as it changes $[0], causing all sort of problems | |
49433 | # (the dirname of $[0] is not the place where we might find the | |
49434 | # original and so on. Autoconf is especially sensible to this). | |
49435 | . ./$as_me.lineno | |
49436 | # Exit status is that of the last command. | |
49437 | exit | |
49438 | } | |
49439 | ||
49440 | ||
49441 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
49442 | *c*,-n*) ECHO_N= ECHO_C=' | |
49443 | ' ECHO_T=' ' ;; | |
49444 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
49445 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
49446 | esac | |
49447 | ||
49448 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
49449 | as_expr=expr | |
49450 | else | |
49451 | as_expr=false | |
49452 | fi | |
49453 | ||
49454 | rm -f conf$$ conf$$.exe conf$$.file | |
49455 | echo >conf$$.file | |
49456 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
49457 | # We could just check for DJGPP; but this test a) works b) is more generic | |
49458 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
49459 | if test -f conf$$.exe; then | |
49460 | # Don't use ln at all; we don't have any links | |
49461 | as_ln_s='cp -p' | |
49462 | else | |
49463 | as_ln_s='ln -s' | |
49464 | fi | |
49465 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
49466 | as_ln_s=ln | |
49467 | else | |
49468 | as_ln_s='cp -p' | |
49469 | fi | |
49470 | rm -f conf$$ conf$$.exe conf$$.file | |
49471 | ||
49472 | if mkdir -p . 2>/dev/null; then | |
49473 | as_mkdir_p=: | |
49474 | else | |
ac1cb8d3 | 49475 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
49476 | as_mkdir_p=false |
49477 | fi | |
49478 | ||
49479 | as_executable_p="test -f" | |
49480 | ||
49481 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 49482 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
49483 | |
49484 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 49485 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
49486 | |
49487 | ||
49488 | # IFS | |
49489 | # We need space, tab and new line, in precisely that order. | |
49490 | as_nl=' | |
49491 | ' | |
49492 | IFS=" $as_nl" | |
49493 | ||
49494 | # CDPATH. | |
49495 | $as_unset CDPATH | |
49496 | ||
49497 | exec 6>&1 | |
49498 | ||
49499 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
49500 | # report actual input values of CONFIG_FILES etc. instead of their | |
49501 | # values after options handling. Logging --version etc. is OK. | |
49502 | exec 5>>config.log | |
49503 | { | |
49504 | echo | |
49505 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
49506 | ## Running $as_me. ## | |
49507 | _ASBOX | |
49508 | } >&5 | |
49509 | cat >&5 <<_CSEOF | |
49510 | ||
dd8df4fc | 49511 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 49512 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
49513 | |
49514 | CONFIG_FILES = $CONFIG_FILES | |
49515 | CONFIG_HEADERS = $CONFIG_HEADERS | |
49516 | CONFIG_LINKS = $CONFIG_LINKS | |
49517 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
49518 | $ $0 $@ | |
49519 | ||
49520 | _CSEOF | |
49521 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
49522 | echo >&5 | |
49523 | _ACEOF | |
49524 | ||
49525 | # Files that config.status was made for. | |
49526 | if test -n "$ac_config_files"; then | |
49527 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
49528 | fi | |
49529 | ||
49530 | if test -n "$ac_config_headers"; then | |
49531 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
49532 | fi | |
49533 | ||
49534 | if test -n "$ac_config_links"; then | |
49535 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
49536 | fi | |
49537 | ||
49538 | if test -n "$ac_config_commands"; then | |
49539 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
49540 | fi | |
49541 | ||
49542 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49543 | ||
49544 | ac_cs_usage="\ | |
49545 | \`$as_me' instantiates files from templates according to the | |
49546 | current configuration. | |
49547 | ||
49548 | Usage: $0 [OPTIONS] [FILE]... | |
49549 | ||
49550 | -h, --help print this help, then exit | |
49551 | -V, --version print version number, then exit | |
49552 | -q, --quiet do not print progress messages | |
49553 | -d, --debug don't remove temporary files | |
49554 | --recheck update $as_me by reconfiguring in the same conditions | |
49555 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 49556 | instantiate the configuration file FILE |
a848cd7e | 49557 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 49558 | instantiate the configuration header FILE |
a848cd7e SC |
49559 | |
49560 | Configuration files: | |
49561 | $config_files | |
49562 | ||
49563 | Configuration headers: | |
49564 | $config_headers | |
49565 | ||
49566 | Configuration commands: | |
49567 | $config_commands | |
49568 | ||
49569 | Report bugs to <bug-autoconf@gnu.org>." | |
49570 | _ACEOF | |
49571 | ||
49572 | cat >>$CONFIG_STATUS <<_ACEOF | |
49573 | ac_cs_version="\\ | |
dd8df4fc | 49574 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 49575 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
49576 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
49577 | ||
ac1cb8d3 | 49578 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
49579 | This config.status script is free software; the Free Software Foundation |
49580 | gives unlimited permission to copy, distribute and modify it." | |
49581 | srcdir=$srcdir | |
49582 | INSTALL="$INSTALL" | |
49583 | _ACEOF | |
49584 | ||
49585 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49586 | # If no file are specified by the user, then we need to provide default | |
49587 | # value. By we need to know if files were specified by the user. | |
49588 | ac_need_defaults=: | |
49589 | while test $# != 0 | |
49590 | do | |
49591 | case $1 in | |
49592 | --*=*) | |
49593 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
49594 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
49595 | ac_shift=: | |
49596 | ;; | |
49597 | -*) | |
49598 | ac_option=$1 | |
49599 | ac_optarg=$2 | |
49600 | ac_shift=shift | |
49601 | ;; | |
49602 | *) # This is not an option, so the user has probably given explicit | |
49603 | # arguments. | |
49604 | ac_option=$1 | |
49605 | ac_need_defaults=false;; | |
49606 | esac | |
49607 | ||
49608 | case $ac_option in | |
49609 | # Handling of the options. | |
49610 | _ACEOF | |
49611 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49612 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
49613 | ac_cs_recheck=: ;; | |
49614 | --version | --vers* | -V ) | |
49615 | echo "$ac_cs_version"; exit 0 ;; | |
49616 | --he | --h) | |
49617 | # Conflict between --help and --header | |
49618 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
49619 | Try \`$0 --help' for more information." >&5 | |
49620 | echo "$as_me: error: ambiguous option: $1 | |
49621 | Try \`$0 --help' for more information." >&2;} | |
49622 | { (exit 1); exit 1; }; };; | |
49623 | --help | --hel | -h ) | |
49624 | echo "$ac_cs_usage"; exit 0 ;; | |
49625 | --debug | --d* | -d ) | |
49626 | debug=: ;; | |
49627 | --file | --fil | --fi | --f ) | |
49628 | $ac_shift | |
49629 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
49630 | ac_need_defaults=false;; | |
49631 | --header | --heade | --head | --hea ) | |
49632 | $ac_shift | |
49633 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
49634 | ac_need_defaults=false;; | |
49635 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
49636 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
49637 | ac_cs_silent=: ;; | |
49638 | ||
49639 | # This is an error. | |
49640 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
49641 | Try \`$0 --help' for more information." >&5 | |
49642 | echo "$as_me: error: unrecognized option: $1 | |
49643 | Try \`$0 --help' for more information." >&2;} | |
49644 | { (exit 1); exit 1; }; } ;; | |
49645 | ||
49646 | *) ac_config_targets="$ac_config_targets $1" ;; | |
49647 | ||
49648 | esac | |
49649 | shift | |
49650 | done | |
49651 | ||
49652 | ac_configure_extra_args= | |
49653 | ||
49654 | if $ac_cs_silent; then | |
49655 | exec 6>/dev/null | |
49656 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
49657 | fi | |
49658 | ||
49659 | _ACEOF | |
49660 | cat >>$CONFIG_STATUS <<_ACEOF | |
49661 | if \$ac_cs_recheck; then | |
49662 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
49663 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
49664 | fi | |
49665 | ||
49666 | _ACEOF | |
49667 | ||
49668 | cat >>$CONFIG_STATUS <<_ACEOF | |
49669 | # | |
49670 | # INIT-COMMANDS section. | |
49671 | # | |
49672 | ||
5c60e845 MW |
49673 | |
49674 | CPP="$CPP" | |
49675 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
49676 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
49677 | ||
49678 | ||
ceec2216 RL |
49679 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
49680 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
49681 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
49682 | LN_S="${LN_S}" | |
a848cd7e SC |
49683 | |
49684 | ||
49685 | _ACEOF | |
49686 | ||
49687 | ||
49688 | ||
49689 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49690 | for ac_config_target in $ac_config_targets | |
49691 | do | |
49692 | case "$ac_config_target" in | |
49693 | # Handling of arguments. | |
ceec2216 RL |
49694 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
49695 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
49696 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
49697 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
49698 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 49699 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
49700 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
49701 | "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 |
49702 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
49703 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
49704 | { (exit 1); exit 1; }; };; | |
49705 | esac | |
49706 | done | |
49707 | ||
49708 | # If the user did not use the arguments to specify the items to instantiate, | |
49709 | # then the envvar interface is used. Set only those that are not. | |
49710 | # We use the long form for the default assignment because of an extremely | |
49711 | # bizarre bug on SunOS 4.1.3. | |
49712 | if $ac_need_defaults; then | |
49713 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
49714 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
49715 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
49716 | fi | |
49717 | ||
49718 | # Have a temporary directory for convenience. Make it in the build tree | |
49719 | # simply because there is no reason to put it here, and in addition, | |
49720 | # creating and moving files from /tmp can sometimes cause problems. | |
49721 | # Create a temporary directory, and hook for its removal unless debugging. | |
49722 | $debug || | |
49723 | { | |
49724 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
49725 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
49726 | } | |
49727 | ||
49728 | # Create a (secure) tmp directory for tmp files. | |
49729 | ||
49730 | { | |
49731 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
49732 | test -n "$tmp" && test -d "$tmp" | |
49733 | } || | |
49734 | { | |
49735 | tmp=./confstat$$-$RANDOM | |
49736 | (umask 077 && mkdir $tmp) | |
49737 | } || | |
49738 | { | |
49739 | echo "$me: cannot create a temporary directory in ." >&2 | |
49740 | { (exit 1); exit 1; } | |
49741 | } | |
49742 | ||
49743 | _ACEOF | |
49744 | ||
49745 | cat >>$CONFIG_STATUS <<_ACEOF | |
49746 | ||
49747 | # | |
49748 | # CONFIG_FILES section. | |
49749 | # | |
49750 | ||
49751 | # No need to generate the scripts if there are no CONFIG_FILES. | |
49752 | # This happens for instance when ./config.status config.h | |
49753 | if test -n "\$CONFIG_FILES"; then | |
49754 | # Protect against being on the right side of a sed subst in config.status. | |
49755 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
49756 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
49757 | s,@SHELL@,$SHELL,;t t | |
49758 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
49759 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
49760 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
49761 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
49762 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
49763 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
49764 | s,@exec_prefix@,$exec_prefix,;t t | |
49765 | s,@prefix@,$prefix,;t t | |
49766 | s,@program_transform_name@,$program_transform_name,;t t | |
49767 | s,@bindir@,$bindir,;t t | |
49768 | s,@sbindir@,$sbindir,;t t | |
49769 | s,@libexecdir@,$libexecdir,;t t | |
49770 | s,@datadir@,$datadir,;t t | |
49771 | s,@sysconfdir@,$sysconfdir,;t t | |
49772 | s,@sharedstatedir@,$sharedstatedir,;t t | |
49773 | s,@localstatedir@,$localstatedir,;t t | |
49774 | s,@libdir@,$libdir,;t t | |
49775 | s,@includedir@,$includedir,;t t | |
49776 | s,@oldincludedir@,$oldincludedir,;t t | |
49777 | s,@infodir@,$infodir,;t t | |
49778 | s,@mandir@,$mandir,;t t | |
49779 | s,@build_alias@,$build_alias,;t t | |
49780 | s,@host_alias@,$host_alias,;t t | |
49781 | s,@target_alias@,$target_alias,;t t | |
49782 | s,@DEFS@,$DEFS,;t t | |
49783 | s,@ECHO_C@,$ECHO_C,;t t | |
49784 | s,@ECHO_N@,$ECHO_N,;t t | |
49785 | s,@ECHO_T@,$ECHO_T,;t t | |
49786 | s,@LIBS@,$LIBS,;t t | |
49787 | s,@build@,$build,;t t | |
49788 | s,@build_cpu@,$build_cpu,;t t | |
49789 | s,@build_vendor@,$build_vendor,;t t | |
49790 | s,@build_os@,$build_os,;t t | |
49791 | s,@host@,$host,;t t | |
49792 | s,@host_cpu@,$host_cpu,;t t | |
49793 | s,@host_vendor@,$host_vendor,;t t | |
49794 | s,@host_os@,$host_os,;t t | |
49795 | s,@target@,$target,;t t | |
49796 | s,@target_cpu@,$target_cpu,;t t | |
49797 | s,@target_vendor@,$target_vendor,;t t | |
49798 | s,@target_os@,$target_os,;t t | |
49799 | s,@CC@,$CC,;t t | |
49800 | s,@CFLAGS@,$CFLAGS,;t t | |
49801 | s,@LDFLAGS@,$LDFLAGS,;t t | |
49802 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
49803 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
49804 | s,@EXEEXT@,$EXEEXT,;t t | |
49805 | s,@OBJEXT@,$OBJEXT,;t t | |
49806 | s,@CPP@,$CPP,;t t | |
49807 | s,@EGREP@,$EGREP,;t t | |
49808 | s,@CXX@,$CXX,;t t | |
49809 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
49810 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
49811 | s,@RANLIB@,$RANLIB,;t t | |
49812 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
49813 | s,@AR@,$AR,;t t | |
8c80d384 | 49814 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
49815 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
49816 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
49817 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
49818 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 49819 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
49820 | s,@WINDRES@,$WINDRES,;t t |
49821 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
49822 | s,@DLLTOOL@,$DLLTOOL,;t t |
49823 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
49824 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
49825 | s,@LN_S@,$LN_S,;t t | |
49826 | s,@CXXCPP@,$CXXCPP,;t t | |
49827 | s,@subdirs@,$subdirs,;t t | |
49828 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
49829 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
49830 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
49831 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
49832 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
49833 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
49834 | s,@X_LIBS@,$X_LIBS,;t t | |
49835 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
49836 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
49837 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
49838 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
49839 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
49840 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
49841 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 49842 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
49843 | s,@DEREZ@,$DEREZ,;t t |
49844 | s,@SETFILE@,$SETFILE,;t t | |
49845 | s,@LIBICONV@,$LIBICONV,;t t | |
49846 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
49847 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
49848 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
49849 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
49850 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
49851 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
2b850ae1 RR |
49852 | s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t |
49853 | s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t | |
3565d135 RR |
49854 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
49855 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
f10e38c4 VZ |
49856 | s,@GST_CFLAGS@,$GST_CFLAGS,;t t |
49857 | s,@GST_LIBS@,$GST_LIBS,;t t | |
a848cd7e SC |
49858 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
49859 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
49860 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
49861 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
49862 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
49863 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
49864 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
49865 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
49866 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
49867 | s,@VENDOR@,$VENDOR,;t t | |
49868 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
49869 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
49870 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
49871 | s,@WXUNIV@,$WXUNIV,;t t |
49872 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
49873 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
49874 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
49875 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
49876 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
49877 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
49878 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
49879 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
49880 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
49881 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 49882 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
2b850ae1 | 49883 | s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t |
3565d135 | 49884 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
49885 | s,@UNICODE@,$UNICODE,;t t |
49886 | s,@BUILD@,$BUILD,;t t | |
49887 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
49888 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
49889 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
49890 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
49891 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
49892 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
49893 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
49894 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
49895 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
49896 | s,@SET_MAKE@,$SET_MAKE,;t t | |
49897 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
49898 | s,@NM@,$NM,;t t |
49899 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
49900 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
49901 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
49902 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
49903 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
49904 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
49905 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 49906 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
49907 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
49908 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 49909 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
49910 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
49911 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
49912 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
49913 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
49914 | s,@LIBEXT@,$LIBEXT,;t t | |
49915 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
49916 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 49917 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
49918 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
49919 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
49920 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
49921 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
49922 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
49923 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 49924 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
49925 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
49926 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
49927 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 49928 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
49929 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
49930 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
49931 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49932 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
49933 | s,@GCC_PCH@,$GCC_PCH,;t t | |
f10e38c4 | 49934 | s,@ICC_PCH@,$ICC_PCH,;t t |
a848cd7e SC |
49935 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
49936 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
49937 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
49938 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
49939 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
49940 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
49941 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
49942 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
49943 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
49944 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
49945 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
49946 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
49947 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
49948 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
49949 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
f10e38c4 | 49950 | s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t |
a848cd7e SC |
49951 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
49952 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
3f60522a | 49953 | s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t |
a848cd7e | 49954 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t |
90970d69 | 49955 | 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 | 49956 | 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 | 49957 | 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 | 49958 | 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 | 49959 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8b6682b9 | 49960 | s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t |
ceec2216 | 49961 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e | 49962 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
3f60522a | 49963 | s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t |
a848cd7e | 49964 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
90970d69 | 49965 | 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 | 49966 | 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 | 49967 | 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 | 49968 | 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 | 49969 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
8b6682b9 | 49970 | s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t |
ceec2216 | 49971 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
e5efa97e | 49972 | s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t |
a848cd7e SC |
49973 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
49974 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
49975 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
49976 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
49977 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
49978 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 49979 | 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 |
49980 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
49981 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 49982 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
49983 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
49984 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
49985 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 49986 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 49987 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
ebee3cd0 VS |
49988 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
49989 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
49990 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
49991 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 49992 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 49993 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
e5efa97e | 49994 | s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t |
83d8eb47 | 49995 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
49996 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
49997 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
49998 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
49999 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
50000 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
50001 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
50002 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
50003 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
50004 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
50005 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
50006 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
50007 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
50008 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
50009 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
50010 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 50011 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
50012 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
50013 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
50014 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
50015 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
50016 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
50017 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 50018 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 50019 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 50020 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 50021 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
50022 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
50023 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
d044deea MW |
50024 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
50025 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
50026 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
50027 | 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 | |
50028 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
50029 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 50030 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
50031 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
50032 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
50033 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
50034 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
50035 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
50036 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
50037 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
50038 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
50039 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
50040 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
50041 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 50042 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
50043 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
50044 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
50045 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
50046 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
50047 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
50048 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 50049 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
50050 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
50051 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
50052 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
50053 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
50054 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
50055 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
50056 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
50057 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
50058 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
50059 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
50060 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
50061 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
50062 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
50063 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
f10e38c4 | 50064 | s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t |
a848cd7e | 50065 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
50066 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
50067 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 50068 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 50069 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
50070 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
50071 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
50072 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
50073 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
50074 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 50075 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 50076 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 50077 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 50078 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
50079 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
50080 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
50081 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
50082 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
50083 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
50084 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
50085 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
50086 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 50087 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
50088 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
50089 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
50090 | s,@USE_GUI@,$USE_GUI,;t t |
50091 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
50092 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
50093 | s,@TOOLKIT@,$TOOLKIT,;t t | |
50094 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 50095 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 50096 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 50097 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
50098 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
50099 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
50100 | s,@WX_VERSION@,$WX_VERSION,;t t | |
50101 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
50102 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
50103 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
50104 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
50105 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
50106 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
50107 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
50108 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
50109 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 50110 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 50111 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 50112 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
50113 | s,@DISTDIR@,$DISTDIR,;t t |
50114 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
50115 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
50116 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
50117 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
50118 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 50119 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
50120 | s,@RESFLAGS@,$RESFLAGS,;t t |
50121 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
50122 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
50123 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
50124 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 50125 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 50126 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 50127 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
50128 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
50129 | s,@LIBOBJS@,$LIBOBJS,;t t | |
50130 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
50131 | CEOF | |
50132 | ||
50133 | _ACEOF | |
50134 | ||
50135 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50136 | # Split the substitutions into bite-sized pieces for seds with | |
50137 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
50138 | ac_max_sed_lines=48 | |
50139 | ac_sed_frag=1 # Number of current file. | |
50140 | ac_beg=1 # First line for current file. | |
50141 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
50142 | ac_more_lines=: | |
50143 | ac_sed_cmds= | |
50144 | while $ac_more_lines; do | |
50145 | if test $ac_beg -gt 1; then | |
50146 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
50147 | else | |
50148 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
50149 | fi | |
50150 | if test ! -s $tmp/subs.frag; then | |
50151 | ac_more_lines=false | |
50152 | else | |
50153 | # The purpose of the label and of the branching condition is to | |
50154 | # speed up the sed processing (if there are no `@' at all, there | |
50155 | # is no need to browse any of the substitutions). | |
50156 | # These are the two extra sed commands mentioned above. | |
50157 | (echo ':t | |
50158 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
50159 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 50160 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 50161 | else |
ac1cb8d3 | 50162 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
50163 | fi |
50164 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
50165 | ac_beg=$ac_end | |
50166 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
50167 | fi | |
50168 | done | |
50169 | if test -z "$ac_sed_cmds"; then | |
50170 | ac_sed_cmds=cat | |
50171 | fi | |
50172 | fi # test -n "$CONFIG_FILES" | |
50173 | ||
50174 | _ACEOF | |
50175 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50176 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
50177 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
50178 | case $ac_file in | |
50179 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
50180 | cat >$tmp/stdin |
50181 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50182 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 50183 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 50184 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
50185 | * ) ac_file_in=$ac_file.in ;; |
50186 | esac | |
50187 | ||
50188 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
50189 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
50190 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50191 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
50192 | X"$ac_file" : 'X\(//\)$' \| \ | |
50193 | X"$ac_file" : 'X\(/\)' \| \ | |
50194 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50195 | echo X"$ac_file" | |
50196 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50197 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50198 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50199 | /^X\(\/\).*/{ s//\1/; q; } | |
50200 | s/.*/./; q'` | |
50201 | { if $as_mkdir_p; then | |
50202 | mkdir -p "$ac_dir" | |
50203 | else | |
50204 | as_dir="$ac_dir" | |
50205 | as_dirs= | |
50206 | while test ! -d "$as_dir"; do | |
50207 | as_dirs="$as_dir $as_dirs" | |
50208 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50209 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50210 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50211 | X"$as_dir" : 'X\(//\)$' \| \ | |
50212 | X"$as_dir" : 'X\(/\)' \| \ | |
50213 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50214 | echo X"$as_dir" | |
50215 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50216 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50217 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50218 | /^X\(\/\).*/{ s//\1/; q; } | |
50219 | s/.*/./; q'` | |
50220 | done | |
50221 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50222 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50223 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50224 | { (exit 1); exit 1; }; }; } | |
50225 | ||
50226 | ac_builddir=. | |
50227 | ||
50228 | if test "$ac_dir" != .; then | |
50229 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50230 | # A "../" for each directory in $ac_dir_suffix. | |
50231 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50232 | else | |
50233 | ac_dir_suffix= ac_top_builddir= | |
50234 | fi | |
50235 | ||
50236 | case $srcdir in | |
50237 | .) # No --srcdir option. We are building in place. | |
50238 | ac_srcdir=. | |
50239 | if test -z "$ac_top_builddir"; then | |
50240 | ac_top_srcdir=. | |
50241 | else | |
50242 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50243 | fi ;; | |
50244 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50245 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50246 | ac_top_srcdir=$srcdir ;; | |
50247 | *) # Relative path. | |
50248 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50249 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50250 | esac | |
ac1cb8d3 VS |
50251 | |
50252 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50253 | # the directories may not exist. | |
50254 | case `pwd` in | |
50255 | .) ac_abs_builddir="$ac_dir";; | |
50256 | *) | |
50257 | case "$ac_dir" in | |
50258 | .) ac_abs_builddir=`pwd`;; | |
50259 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50260 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50261 | esac;; | |
50262 | esac | |
50263 | case $ac_abs_builddir in | |
50264 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50265 | *) | |
50266 | case ${ac_top_builddir}. in | |
50267 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50268 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50269 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50270 | esac;; | |
50271 | esac | |
50272 | case $ac_abs_builddir in | |
50273 | .) ac_abs_srcdir=$ac_srcdir;; | |
50274 | *) | |
50275 | case $ac_srcdir in | |
50276 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50277 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50278 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50279 | esac;; | |
50280 | esac | |
50281 | case $ac_abs_builddir in | |
50282 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50283 | *) | |
50284 | case $ac_top_srcdir in | |
50285 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50286 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50287 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50288 | esac;; | |
50289 | esac | |
a848cd7e SC |
50290 | |
50291 | ||
50292 | case $INSTALL in | |
50293 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
50294 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
50295 | esac | |
50296 | ||
3f60522a JS |
50297 | if test x"$ac_file" != x-; then |
50298 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
50299 | echo "$as_me: creating $ac_file" >&6;} | |
50300 | rm -f "$ac_file" | |
50301 | fi | |
a848cd7e SC |
50302 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
50303 | # use $as_me), people would be surprised to read: | |
50304 | # /* config.h. Generated by config.status. */ | |
50305 | if test x"$ac_file" = x-; then | |
50306 | configure_input= | |
50307 | else | |
50308 | configure_input="$ac_file. " | |
50309 | fi | |
50310 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 50311 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
50312 | |
50313 | # First look for the input files in the build tree, otherwise in the | |
50314 | # src tree. | |
50315 | ac_file_inputs=`IFS=: | |
50316 | for f in $ac_file_in; do | |
50317 | case $f in | |
50318 | -) echo $tmp/stdin ;; | |
50319 | [\\/$]*) | |
ac1cb8d3 VS |
50320 | # Absolute (can't be DOS-style, as IFS=:) |
50321 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50322 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50323 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50324 | echo "$f";; |
a848cd7e | 50325 | *) # Relative |
ac1cb8d3 VS |
50326 | if test -f "$f"; then |
50327 | # Build tree | |
50328 | echo "$f" | |
50329 | elif test -f "$srcdir/$f"; then | |
50330 | # Source tree | |
50331 | echo "$srcdir/$f" | |
50332 | else | |
50333 | # /dev/null tree | |
50334 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50335 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50336 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50337 | fi;; |
a848cd7e SC |
50338 | esac |
50339 | done` || { (exit 1); exit 1; } | |
50340 | _ACEOF | |
50341 | cat >>$CONFIG_STATUS <<_ACEOF | |
50342 | sed "$ac_vpsub | |
50343 | $extrasub | |
50344 | _ACEOF | |
50345 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50346 | :t | |
50347 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
50348 | s,@configure_input@,$configure_input,;t t | |
50349 | s,@srcdir@,$ac_srcdir,;t t | |
50350 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
50351 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
50352 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
50353 | s,@builddir@,$ac_builddir,;t t | |
50354 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
50355 | s,@top_builddir@,$ac_top_builddir,;t t | |
50356 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
50357 | s,@INSTALL@,$ac_INSTALL,;t t | |
50358 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
50359 | rm -f $tmp/stdin | |
50360 | if test x"$ac_file" != x-; then | |
50361 | mv $tmp/out $ac_file | |
50362 | else | |
50363 | cat $tmp/out | |
50364 | rm -f $tmp/out | |
50365 | fi | |
50366 | ||
ceec2216 RL |
50367 | # Run the commands associated with the file. |
50368 | case $ac_file in | |
50369 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
50370 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
50371 | esac | |
a848cd7e SC |
50372 | done |
50373 | _ACEOF | |
50374 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50375 | ||
50376 | # | |
50377 | # CONFIG_HEADER section. | |
50378 | # | |
50379 | ||
50380 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
50381 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
50382 | # | |
50383 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
50384 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
50385 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
50386 | ac_dC=' ' |
50387 | ac_dD=',;t' | |
50388 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 50389 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
50390 | ac_uB='$,\1#\2define\3' |
50391 | ac_uC=' ' | |
50392 | ac_uD=',;t' | |
50393 | ||
50394 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
50395 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
50396 | case $ac_file in | |
50397 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
50398 | cat >$tmp/stdin |
50399 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50400 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 50401 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 50402 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
50403 | * ) ac_file_in=$ac_file.in ;; |
50404 | esac | |
50405 | ||
50406 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
50407 | echo "$as_me: creating $ac_file" >&6;} | |
50408 | ||
50409 | # First look for the input files in the build tree, otherwise in the | |
50410 | # src tree. | |
50411 | ac_file_inputs=`IFS=: | |
50412 | for f in $ac_file_in; do | |
50413 | case $f in | |
50414 | -) echo $tmp/stdin ;; | |
50415 | [\\/$]*) | |
ac1cb8d3 VS |
50416 | # Absolute (can't be DOS-style, as IFS=:) |
50417 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50418 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50419 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
50420 | # Do quote $f, to prevent DOS paths from being IFS'd. |
50421 | echo "$f";; | |
a848cd7e | 50422 | *) # Relative |
ac1cb8d3 VS |
50423 | if test -f "$f"; then |
50424 | # Build tree | |
50425 | echo "$f" | |
50426 | elif test -f "$srcdir/$f"; then | |
50427 | # Source tree | |
50428 | echo "$srcdir/$f" | |
50429 | else | |
50430 | # /dev/null tree | |
50431 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50432 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50433 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50434 | fi;; |
a848cd7e SC |
50435 | esac |
50436 | done` || { (exit 1); exit 1; } | |
50437 | # Remove the trailing spaces. | |
ac1cb8d3 | 50438 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
50439 | |
50440 | _ACEOF | |
50441 | ||
50442 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
50443 | # `conftest.undefs', that substitutes the proper values into | |
50444 | # config.h.in to produce config.h. The first handles `#define' | |
50445 | # templates, and the second `#undef' templates. | |
50446 | # And first: Protect against being on the right side of a sed subst in | |
50447 | # config.status. Protect against being in an unquoted here document | |
50448 | # in config.status. | |
50449 | rm -f conftest.defines conftest.undefs | |
50450 | # Using a here document instead of a string reduces the quoting nightmare. | |
50451 | # Putting comments in sed scripts is not portable. | |
50452 | # | |
50453 | # `end' is used to avoid that the second main sed command (meant for | |
50454 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
50455 | # See the Autoconf documentation for `clear'. | |
50456 | cat >confdef2sed.sed <<\_ACEOF | |
50457 | s/[\\&,]/\\&/g | |
50458 | s,[\\$`],\\&,g | |
50459 | t clear | |
50460 | : clear | |
ac1cb8d3 | 50461 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 50462 | t end |
ac1cb8d3 | 50463 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
50464 | : end |
50465 | _ACEOF | |
50466 | # If some macros were called several times there might be several times | |
50467 | # the same #defines, which is useless. Nevertheless, we may not want to | |
50468 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
50469 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
50470 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
50471 | rm -f confdef2sed.sed | |
50472 | ||
50473 | # This sed command replaces #undef with comments. This is necessary, for | |
50474 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
50475 | # on some systems where configure will not decide to define it. | |
50476 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 50477 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
50478 | _ACEOF |
50479 | ||
50480 | # Break up conftest.defines because some shells have a limit on the size | |
50481 | # of here documents, and old seds have small limits too (100 cmds). | |
50482 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 50483 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
50484 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
50485 | echo ' :' >>$CONFIG_STATUS | |
50486 | rm -f conftest.tail | |
50487 | while grep . conftest.defines >/dev/null | |
50488 | do | |
50489 | # Write a limited-size here document to $tmp/defines.sed. | |
50490 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
50491 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 50492 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
50493 | # Work around the forget-to-reset-the-flag bug. |
50494 | echo 't clr' >>$CONFIG_STATUS | |
50495 | echo ': clr' >>$CONFIG_STATUS | |
50496 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
50497 | echo 'CEOF | |
50498 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
50499 | rm -f $tmp/in | |
50500 | mv $tmp/out $tmp/in | |
50501 | ' >>$CONFIG_STATUS | |
50502 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
50503 | rm -f conftest.defines | |
50504 | mv conftest.tail conftest.defines | |
50505 | done | |
50506 | rm -f conftest.defines | |
50507 | echo ' fi # grep' >>$CONFIG_STATUS | |
50508 | echo >>$CONFIG_STATUS | |
50509 | ||
50510 | # Break up conftest.undefs because some shells have a limit on the size | |
50511 | # of here documents, and old seds have small limits too (100 cmds). | |
50512 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
50513 | rm -f conftest.tail | |
50514 | while grep . conftest.undefs >/dev/null | |
50515 | do | |
50516 | # Write a limited-size here document to $tmp/undefs.sed. | |
50517 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
50518 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 50519 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
50520 | # Work around the forget-to-reset-the-flag bug. |
50521 | echo 't clr' >>$CONFIG_STATUS | |
50522 | echo ': clr' >>$CONFIG_STATUS | |
50523 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
50524 | echo 'CEOF | |
50525 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
50526 | rm -f $tmp/in | |
50527 | mv $tmp/out $tmp/in | |
50528 | ' >>$CONFIG_STATUS | |
50529 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
50530 | rm -f conftest.undefs | |
50531 | mv conftest.tail conftest.undefs | |
50532 | done | |
50533 | rm -f conftest.undefs | |
50534 | ||
50535 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50536 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
50537 | # use $as_me), people would be surprised to read: | |
50538 | # /* config.h. Generated by config.status. */ | |
50539 | if test x"$ac_file" = x-; then | |
50540 | echo "/* Generated by configure. */" >$tmp/config.h | |
50541 | else | |
50542 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
50543 | fi | |
50544 | cat $tmp/in >>$tmp/config.h | |
50545 | rm -f $tmp/in | |
50546 | if test x"$ac_file" != x-; then | |
50547 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
50548 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
50549 | echo "$as_me: $ac_file is unchanged" >&6;} | |
50550 | else | |
50551 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
50552 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50553 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
50554 | X"$ac_file" : 'X\(//\)$' \| \ | |
50555 | X"$ac_file" : 'X\(/\)' \| \ | |
50556 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50557 | echo X"$ac_file" | |
50558 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50559 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50560 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50561 | /^X\(\/\).*/{ s//\1/; q; } | |
50562 | s/.*/./; q'` | |
50563 | { if $as_mkdir_p; then | |
50564 | mkdir -p "$ac_dir" | |
50565 | else | |
50566 | as_dir="$ac_dir" | |
50567 | as_dirs= | |
50568 | while test ! -d "$as_dir"; do | |
50569 | as_dirs="$as_dir $as_dirs" | |
50570 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50571 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50572 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50573 | X"$as_dir" : 'X\(//\)$' \| \ | |
50574 | X"$as_dir" : 'X\(/\)' \| \ | |
50575 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50576 | echo X"$as_dir" | |
50577 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50578 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50579 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50580 | /^X\(\/\).*/{ s//\1/; q; } | |
50581 | s/.*/./; q'` | |
50582 | done | |
50583 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50584 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50585 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50586 | { (exit 1); exit 1; }; }; } | |
50587 | ||
50588 | rm -f $ac_file | |
50589 | mv $tmp/config.h $ac_file | |
50590 | fi | |
50591 | else | |
50592 | cat $tmp/config.h | |
50593 | rm -f $tmp/config.h | |
50594 | fi | |
50595 | done | |
50596 | _ACEOF | |
50597 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50598 | ||
50599 | # | |
50600 | # CONFIG_COMMANDS section. | |
50601 | # | |
50602 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
50603 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
50604 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50605 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
50606 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50607 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
50608 | X"$ac_dest" : 'X\(//\)$' \| \ | |
50609 | X"$ac_dest" : 'X\(/\)' \| \ | |
50610 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50611 | echo X"$ac_dest" | |
50612 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50613 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50614 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50615 | /^X\(\/\).*/{ s//\1/; q; } | |
50616 | s/.*/./; q'` | |
ac1cb8d3 VS |
50617 | { if $as_mkdir_p; then |
50618 | mkdir -p "$ac_dir" | |
50619 | else | |
50620 | as_dir="$ac_dir" | |
50621 | as_dirs= | |
50622 | while test ! -d "$as_dir"; do | |
50623 | as_dirs="$as_dir $as_dirs" | |
50624 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50625 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
50626 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
50627 | X"$as_dir" : 'X\(//\)$' \| \ | |
50628 | X"$as_dir" : 'X\(/\)' \| \ | |
50629 | . : '\(.\)' 2>/dev/null || | |
50630 | echo X"$as_dir" | | |
50631 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50632 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50633 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50634 | /^X\(\/\).*/{ s//\1/; q; } | |
50635 | s/.*/./; q'` | |
50636 | done | |
50637 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50638 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50639 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50640 | { (exit 1); exit 1; }; }; } | |
50641 | ||
a848cd7e SC |
50642 | ac_builddir=. |
50643 | ||
50644 | if test "$ac_dir" != .; then | |
50645 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50646 | # A "../" for each directory in $ac_dir_suffix. | |
50647 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50648 | else | |
50649 | ac_dir_suffix= ac_top_builddir= | |
50650 | fi | |
50651 | ||
50652 | case $srcdir in | |
50653 | .) # No --srcdir option. We are building in place. | |
50654 | ac_srcdir=. | |
50655 | if test -z "$ac_top_builddir"; then | |
50656 | ac_top_srcdir=. | |
50657 | else | |
50658 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50659 | fi ;; | |
50660 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50661 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50662 | ac_top_srcdir=$srcdir ;; | |
50663 | *) # Relative path. | |
50664 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50665 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50666 | esac | |
ac1cb8d3 VS |
50667 | |
50668 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50669 | # the directories may not exist. | |
50670 | case `pwd` in | |
50671 | .) ac_abs_builddir="$ac_dir";; | |
50672 | *) | |
50673 | case "$ac_dir" in | |
50674 | .) ac_abs_builddir=`pwd`;; | |
50675 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50676 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50677 | esac;; | |
50678 | esac | |
50679 | case $ac_abs_builddir in | |
50680 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50681 | *) | |
50682 | case ${ac_top_builddir}. in | |
50683 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50684 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50685 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50686 | esac;; | |
50687 | esac | |
50688 | case $ac_abs_builddir in | |
50689 | .) ac_abs_srcdir=$ac_srcdir;; | |
50690 | *) | |
50691 | case $ac_srcdir in | |
50692 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50693 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50694 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50695 | esac;; | |
50696 | esac | |
50697 | case $ac_abs_builddir in | |
50698 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50699 | *) | |
50700 | case $ac_top_srcdir in | |
50701 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50702 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50703 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50704 | esac;; | |
50705 | esac | |
a848cd7e SC |
50706 | |
50707 | ||
50708 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
50709 | echo "$as_me: executing $ac_dest commands" >&6;} | |
50710 | case $ac_dest in | |
5c60e845 MW |
50711 | rcdefs.h ) |
50712 | mkdir -p $outdir && | |
50713 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
50714 | ;; | |
ceec2216 RL |
50715 | wx-config ) rm -f wx-config |
50716 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
50717 | ;; | |
a848cd7e SC |
50718 | esac |
50719 | done | |
50720 | _ACEOF | |
50721 | ||
50722 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50723 | ||
50724 | { (exit 0); exit 0; } | |
50725 | _ACEOF | |
50726 | chmod +x $CONFIG_STATUS | |
50727 | ac_clean_files=$ac_clean_files_save | |
50728 | ||
50729 | ||
50730 | # configure is writing to config.log, and then calls config.status. | |
50731 | # config.status does its own redirection, appending to config.log. | |
50732 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
50733 | # by configure, so config.status won't be able to write to it; its | |
50734 | # output is simply discarded. So we exec the FD to /dev/null, | |
50735 | # effectively closing config.log, so it can be properly (re)opened and | |
50736 | # appended to by config.status. When coming back to configure, we | |
50737 | # need to make the FD available again. | |
50738 | if test "$no_create" != yes; then | |
50739 | ac_cs_success=: | |
50740 | ac_config_status_args= | |
50741 | test "$silent" = yes && | |
50742 | ac_config_status_args="$ac_config_status_args --quiet" | |
50743 | exec 5>/dev/null | |
50744 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
50745 | exec 5>>config.log | |
50746 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
50747 | # would make configure fail if this is the last instruction. | |
50748 | $ac_cs_success || { (exit 1); exit 1; } | |
50749 | fi | |
50750 | ||
50751 | # | |
50752 | # CONFIG_SUBDIRS section. | |
50753 | # | |
50754 | if test "$no_recursion" != yes; then | |
50755 | ||
50756 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
50757 | ac_sub_configure_args= | |
50758 | ac_prev= | |
50759 | for ac_arg in $ac_configure_args; do | |
50760 | if test -n "$ac_prev"; then | |
50761 | ac_prev= | |
50762 | continue | |
50763 | fi | |
50764 | case $ac_arg in | |
50765 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
50766 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
50767 | ac_prev=cache_file ;; | |
50768 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
50769 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
50770 | | --c=*) | |
50771 | ;; | |
50772 | --config-cache | -C) | |
50773 | ;; | |
50774 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
50775 | ac_prev=srcdir ;; | |
50776 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
50777 | ;; | |
50778 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
50779 | ac_prev=prefix ;; | |
50780 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
50781 | ;; | |
50782 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
50783 | esac | |
50784 | done | |
50785 | ||
50786 | # Always prepend --prefix to ensure using the same prefix | |
50787 | # in subdir configurations. | |
50788 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
50789 | ||
50790 | ac_popdir=`pwd` | |
50791 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
50792 | ||
50793 | # Do not complain, so a configure script can configure whichever | |
50794 | # parts of a large source tree are present. | |
50795 | test -d $srcdir/$ac_dir || continue | |
50796 | ||
50797 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
50798 | echo "$as_me: configuring in $ac_dir" >&6;} | |
50799 | { if $as_mkdir_p; then | |
50800 | mkdir -p "$ac_dir" | |
50801 | else | |
50802 | as_dir="$ac_dir" | |
50803 | as_dirs= | |
50804 | while test ! -d "$as_dir"; do | |
50805 | as_dirs="$as_dir $as_dirs" | |
50806 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50807 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50808 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50809 | X"$as_dir" : 'X\(//\)$' \| \ | |
50810 | X"$as_dir" : 'X\(/\)' \| \ | |
50811 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50812 | echo X"$as_dir" | |
50813 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50814 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50815 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50816 | /^X\(\/\).*/{ s//\1/; q; } | |
50817 | s/.*/./; q'` | |
50818 | done | |
50819 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50820 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50821 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50822 | { (exit 1); exit 1; }; }; } | |
50823 | ||
50824 | ac_builddir=. | |
50825 | ||
50826 | if test "$ac_dir" != .; then | |
50827 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50828 | # A "../" for each directory in $ac_dir_suffix. | |
50829 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50830 | else | |
50831 | ac_dir_suffix= ac_top_builddir= | |
50832 | fi | |
50833 | ||
50834 | case $srcdir in | |
50835 | .) # No --srcdir option. We are building in place. | |
50836 | ac_srcdir=. | |
50837 | if test -z "$ac_top_builddir"; then | |
50838 | ac_top_srcdir=. | |
50839 | else | |
50840 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50841 | fi ;; | |
50842 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50843 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50844 | ac_top_srcdir=$srcdir ;; | |
50845 | *) # Relative path. | |
50846 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50847 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50848 | esac | |
ac1cb8d3 VS |
50849 | |
50850 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50851 | # the directories may not exist. | |
50852 | case `pwd` in | |
50853 | .) ac_abs_builddir="$ac_dir";; | |
50854 | *) | |
50855 | case "$ac_dir" in | |
50856 | .) ac_abs_builddir=`pwd`;; | |
50857 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50858 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50859 | esac;; | |
50860 | esac | |
50861 | case $ac_abs_builddir in | |
50862 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50863 | *) | |
50864 | case ${ac_top_builddir}. in | |
50865 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50866 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50867 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50868 | esac;; | |
50869 | esac | |
50870 | case $ac_abs_builddir in | |
50871 | .) ac_abs_srcdir=$ac_srcdir;; | |
50872 | *) | |
50873 | case $ac_srcdir in | |
50874 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50875 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50876 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50877 | esac;; | |
50878 | esac | |
50879 | case $ac_abs_builddir in | |
50880 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50881 | *) | |
50882 | case $ac_top_srcdir in | |
50883 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50884 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50885 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50886 | esac;; | |
50887 | esac | |
a848cd7e SC |
50888 | |
50889 | ||
50890 | cd $ac_dir | |
50891 | ||
50892 | # Check for guested configure; otherwise get Cygnus style configure. | |
50893 | if test -f $ac_srcdir/configure.gnu; then | |
50894 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
50895 | elif test -f $ac_srcdir/configure; then | |
50896 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
50897 | elif test -f $ac_srcdir/configure.in; then | |
50898 | ac_sub_configure=$ac_configure | |
50899 | else | |
50900 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
50901 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
50902 | ac_sub_configure= | |
50903 | fi | |
50904 | ||
50905 | # The recursion is here. | |
50906 | if test -n "$ac_sub_configure"; then | |
50907 | # Make the cache file name correct relative to the subdirectory. | |
50908 | case $cache_file in | |
50909 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
50910 | *) # Relative path. | |
ac1cb8d3 | 50911 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
50912 | esac |
50913 | ||
50914 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
50915 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
50916 | # The eval makes quoting arguments work. | |
50917 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
50918 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
50919 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
50920 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
50921 | { (exit 1); exit 1; }; } | |
50922 | fi | |
50923 | ||
3f60522a | 50924 | cd $ac_popdir |
a848cd7e SC |
50925 | done |
50926 | fi | |
50927 | ||
50928 | ||
50929 | echo | |
77ffb593 | 50930 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 50931 | echo "" |
4d4ff94c | 50932 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 50933 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 50934 | |
77ffb593 JS |
50935 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
50936 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
50937 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 50938 | |
77ffb593 | 50939 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
50940 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
50941 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 50942 | |
77ffb593 | 50943 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
50944 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
50945 | echo " png ${wxUSE_LIBPNG-none}" | |
50946 | echo " regex ${wxUSE_REGEX}" | |
50947 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
50948 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
50949 | echo " xpm ${wxUSE_LIBXPM-none}" | |
50950 | fi | |
50951 | echo " zlib ${wxUSE_ZLIB}" | |
50952 | echo " odbc ${wxUSE_ODBC}" | |
50953 | echo " expat ${wxUSE_EXPAT}" | |
50954 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
50955 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 50956 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
2b850ae1 | 50957 | echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}" |
3565d135 | 50958 | echo " hildon ${wxUSE_LIBHILDON-none}" |
a848cd7e SC |
50959 | |
50960 | echo "" | |
50961 |