]>
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" | |
f10e38c4 | 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 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_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_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_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_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_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_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 |
77ffb593 | 942 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
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 |
a848cd7e SC |
956 | --enable-constraints use layout-constraints system |
957 | --enable-printarch use printing architecture | |
958 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 959 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
960 | --enable-loggui use standard GUI logger |
961 | --enable-logwin use wxLogWindow | |
962 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 963 | --enable-webkit use wxWebKitCtrl (Mac) |
91dea314 | 964 | --enable-richtext use wxRichTextCtrl |
a848cd7e SC |
965 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
966 | --enable-prologio not available; see contrib | |
967 | --enable-resources not available; see contrib | |
968 | --enable-clipboard use wxClipboard class | |
969 | --enable-dnd use Drag'n'Drop classes | |
970 | --enable-metafile use win32 metafiles | |
971 | --enable-controls use all usual controls | |
972 | --enable-accel use accelerators | |
973 | --enable-button use wxButton class | |
974 | --enable-bmpbutton use wxBitmapButton class | |
975 | --enable-calendar use wxCalendarCtrl class | |
976 | --enable-caret use wxCaret class | |
977 | --enable-checkbox use wxCheckBox class | |
978 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
979 | --enable-choice use wxChoice class | |
92bbdbcd | 980 | --enable-choicebook use wxChoicebook class |
a848cd7e | 981 | --enable-combobox use wxComboBox class |
da98e9be | 982 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
983 | --enable-display use wxDisplay class |
984 | --enable-gauge use wxGauge class | |
985 | --enable-grid use wxGrid class | |
20e34ecc | 986 | --enable-dataviewctrl, use wxDataViewCtrl class |
a848cd7e SC |
987 | --enable-imaglist use wxImageList class |
988 | --enable-listbook use wxListbook class | |
989 | --enable-listbox use wxListBox class | |
990 | --enable-listctrl use wxListCtrl class | |
991 | --enable-notebook use wxNotebook class | |
992 | --enable-radiobox use wxRadioBox class | |
993 | --enable-radiobtn use wxRadioButton class | |
994 | --enable-sash use wxSashWindow class | |
995 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
996 | --enable-slider use wxSlider class | |
997 | --enable-spinbtn use wxSpinButton class | |
998 | --enable-spinctrl use wxSpinCtrl class | |
999 | --enable-splitter use wxSplitterWindow class | |
1000 | --enable-statbmp use wxStaticBitmap class | |
1001 | --enable-statbox use wxStaticBox class | |
1002 | --enable-statline use wxStaticLine class | |
1003 | --enable-stattext use wxStaticText class | |
1004 | --enable-statusbar use wxStatusBar class | |
1005 | --enable-tabdialog use wxTabControl class | |
1006 | --enable-textctrl use wxTextCtrl class | |
1007 | --enable-togglebtn use wxToggleButton class | |
1008 | --enable-toolbar use wxToolBar class | |
1009 | --enable-tbarnative use native wxToolBar class | |
1010 | --enable-tbarsmpl use wxToolBarSimple class | |
0093c2fc | 1011 | --enable-treebook use wxTreebook class |
5ec3bc43 | 1012 | --enable-toolbook use wxToolbook class |
a848cd7e SC |
1013 | --enable-treectrl use wxTreeCtrl class |
1014 | --enable-tipwindow use wxTipWindow class | |
1015 | --enable-popupwin use wxPopUpWindow class | |
1016 | --enable-commondlg use all common dialogs | |
1017 | --enable-choicedlg use wxChoiceDialog | |
1018 | --enable-coldlg use wxColourDialog | |
1019 | --enable-filedlg use wxFileDialog | |
1020 | --enable-finddlg use wxFindReplaceDialog | |
1021 | --enable-fontdlg use wxFontDialog | |
1022 | --enable-dirdlg use wxDirDialog | |
1023 | --enable-msgdlg use wxMessageDialog | |
1024 | --enable-numberdlg use wxNumberEntryDialog | |
1025 | --enable-splash use wxSplashScreen | |
1026 | --enable-textdlg use wxTextDialog | |
1027 | --enable-tipdlg use startup tips | |
1028 | --enable-progressdlg use wxProgressDialog | |
1029 | --enable-wizarddlg use wxWizard | |
1030 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1031 | --enable-miniframe use wxMiniFrame class | |
1032 | --enable-tooltips use wxToolTip class | |
1033 | --enable-splines use spline drawing code | |
fbe2ca43 | 1034 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1035 | --enable-validators use wxValidator and derived classes |
1036 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1037 | --enable-joystick use wxJoystick |
38b4a946 | 1038 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1039 | --enable-dragimage use wxDragImage |
1040 | --enable-accessibility enable accessibility support | |
38b4a946 | 1041 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1042 | --enable-palette use wxPalette class |
1043 | --enable-image use wxImage class | |
1044 | --enable-gif use gif images (GIF file format) | |
1045 | --enable-pcx use pcx images (PCX file format) | |
1046 | --enable-iff use iff images (IFF file format) | |
1047 | --enable-pnm use pnm images (PNM file format) | |
1048 | --enable-xpm use xpm images (XPM file format) | |
1049 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1050 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1051 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1052 | --disable-largefile omit support for large files | |
1053 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1054 | --disable-gtktest Do not try to compile and run a test GTK program | |
1055 | --disable-sdltest Do not try to compile and run a test SDL program | |
1056 | --enable-omf use OMF object format (OS/2) | |
f10e38c4 VZ |
1057 | --disable-dependency-tracking |
1058 | don't use dependency tracking even if the compiler | |
1059 | can | |
ebee3cd0 VS |
1060 | --disable-precomp-headers |
1061 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1062 | |
1063 | Optional Packages: | |
1064 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1065 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1066 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1067 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1068 | --with-motif use Motif/Lesstif |
1069 | --with-mac use Mac OS X | |
1070 | --with-cocoa use Cocoa | |
1071 | --with-wine use Wine | |
1072 | --with-msw use MS-Windows | |
1073 | --with-pm use OS/2 Presentation Manager | |
1074 | --with-mgl use SciTech MGL | |
1075 | --with-microwin use MicroWindows | |
1076 | --with-x11 use X11 | |
1077 | --with-libpng use libpng (PNG image format) | |
1078 | --with-libjpeg use libjpeg (JPEG file format) | |
1079 | --with-libtiff use libtiff (TIFF file format) | |
1080 | --with-libxpm use libxpm (XPM file format) | |
1081 | --with-libmspack use libmspack (CHM help files loading) | |
1082 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1083 | --with-gnomeprint use GNOME print for printing under Unix |
3565d135 | 1084 | --with-hildon use Hildon framework for Nokia 770 |
a848cd7e SC |
1085 | --with-opengl use OpenGL (or Mesa) |
1086 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1087 | --with-regex enable support for wxRegEx class | |
1088 | --with-zlib use zlib for LZW compression | |
1089 | --with-odbc use the IODBC and wxODBC classes | |
1090 | --with-expat enable XML support using expat parser | |
ceec2216 | 1091 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1092 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1093 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1094 | --with-x use the X Window System | |
1095 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1096 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1097 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1098 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1099 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1100 | ||
1101 | Some influential environment variables: | |
dcc1b6ad VS |
1102 | CC C compiler command |
1103 | CFLAGS C compiler flags | |
1104 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1105 | nonstandard directory <lib dir> | |
1106 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1107 | headers in a nonstandard directory <include dir> | |
1108 | CPP C preprocessor | |
1109 | CXX C++ compiler command | |
1110 | CXXFLAGS C++ compiler flags | |
1111 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1112 | |
1113 | Use these variables to override the choices made by `configure' or to help | |
1114 | it to find libraries and programs with nonstandard names/locations. | |
1115 | ||
77ffb593 | 1116 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1117 | _ACEOF |
1118 | fi | |
1119 | ||
1120 | if test "$ac_init_help" = "recursive"; then | |
1121 | # If there are subdirs, report their specific --help. | |
1122 | ac_popdir=`pwd` | |
1123 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1124 | test -d $ac_dir || continue | |
1125 | ac_builddir=. | |
1126 | ||
1127 | if test "$ac_dir" != .; then | |
1128 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1129 | # A "../" for each directory in $ac_dir_suffix. | |
1130 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1131 | else | |
1132 | ac_dir_suffix= ac_top_builddir= | |
1133 | fi | |
1134 | ||
1135 | case $srcdir in | |
1136 | .) # No --srcdir option. We are building in place. | |
1137 | ac_srcdir=. | |
1138 | if test -z "$ac_top_builddir"; then | |
1139 | ac_top_srcdir=. | |
1140 | else | |
1141 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1142 | fi ;; | |
1143 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1144 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1145 | ac_top_srcdir=$srcdir ;; | |
1146 | *) # Relative path. | |
1147 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1148 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1149 | esac | |
ac1cb8d3 VS |
1150 | |
1151 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1152 | # the directories may not exist. | |
1153 | case `pwd` in | |
1154 | .) ac_abs_builddir="$ac_dir";; | |
1155 | *) | |
1156 | case "$ac_dir" in | |
1157 | .) ac_abs_builddir=`pwd`;; | |
1158 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1159 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1160 | esac;; | |
1161 | esac | |
1162 | case $ac_abs_builddir in | |
1163 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1164 | *) | |
1165 | case ${ac_top_builddir}. in | |
1166 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1167 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1168 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1169 | esac;; | |
1170 | esac | |
1171 | case $ac_abs_builddir in | |
1172 | .) ac_abs_srcdir=$ac_srcdir;; | |
1173 | *) | |
1174 | case $ac_srcdir in | |
1175 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1176 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1177 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1178 | esac;; | |
1179 | esac | |
1180 | case $ac_abs_builddir in | |
1181 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1182 | *) | |
1183 | case $ac_top_srcdir in | |
1184 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1185 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1186 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1187 | esac;; | |
1188 | esac | |
a848cd7e SC |
1189 | |
1190 | cd $ac_dir | |
1191 | # Check for guested configure; otherwise get Cygnus style configure. | |
1192 | if test -f $ac_srcdir/configure.gnu; then | |
1193 | echo | |
1194 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1195 | elif test -f $ac_srcdir/configure; then | |
1196 | echo | |
1197 | $SHELL $ac_srcdir/configure --help=recursive | |
1198 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1199 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1200 | echo |
1201 | $ac_configure --help | |
1202 | else | |
1203 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1204 | fi | |
f10e38c4 | 1205 | cd "$ac_popdir" |
a848cd7e SC |
1206 | done |
1207 | fi | |
1208 | ||
1209 | test -n "$ac_init_help" && exit 0 | |
1210 | if $ac_init_version; then | |
1211 | cat <<\_ACEOF | |
dd8df4fc | 1212 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1213 | generated by GNU Autoconf 2.59 |
a848cd7e | 1214 | |
ac1cb8d3 | 1215 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1216 | This configure script is free software; the Free Software Foundation |
1217 | gives unlimited permission to copy, distribute and modify it. | |
1218 | _ACEOF | |
1219 | exit 0 | |
1220 | fi | |
1221 | exec 5>config.log | |
1222 | cat >&5 <<_ACEOF | |
1223 | This file contains any messages produced by compilers while | |
1224 | running configure, to aid debugging if configure makes a mistake. | |
1225 | ||
dd8df4fc | 1226 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1227 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1228 | |
1229 | $ $0 $@ | |
1230 | ||
1231 | _ACEOF | |
1232 | { | |
1233 | cat <<_ASUNAME | |
1234 | ## --------- ## | |
1235 | ## Platform. ## | |
1236 | ## --------- ## | |
1237 | ||
1238 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1239 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1240 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1241 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1242 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1243 | ||
1244 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1245 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1246 | ||
1247 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1248 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1249 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1250 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1251 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1252 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1253 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1254 | ||
1255 | _ASUNAME | |
1256 | ||
1257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1258 | for as_dir in $PATH | |
1259 | do | |
1260 | IFS=$as_save_IFS | |
1261 | test -z "$as_dir" && as_dir=. | |
1262 | echo "PATH: $as_dir" | |
1263 | done | |
1264 | ||
1265 | } >&5 | |
1266 | ||
1267 | cat >&5 <<_ACEOF | |
1268 | ||
1269 | ||
1270 | ## ----------- ## | |
1271 | ## Core tests. ## | |
1272 | ## ----------- ## | |
1273 | ||
1274 | _ACEOF | |
1275 | ||
1276 | ||
1277 | # Keep a trace of the command line. | |
1278 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1279 | # Strip out --silent because we don't want to record it for future runs. | |
1280 | # Also quote any args containing shell meta-characters. | |
1281 | # Make two passes to allow for proper duplicate-argument suppression. | |
1282 | ac_configure_args= | |
1283 | ac_configure_args0= | |
1284 | ac_configure_args1= | |
1285 | ac_sep= | |
1286 | ac_must_keep_next=false | |
1287 | for ac_pass in 1 2 | |
1288 | do | |
1289 | for ac_arg | |
1290 | do | |
1291 | case $ac_arg in | |
1292 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1293 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1294 | | -silent | --silent | --silen | --sile | --sil) | |
1295 | continue ;; | |
1296 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1297 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1298 | esac | |
1299 | case $ac_pass in | |
1300 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1301 | 2) | |
1302 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1303 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1304 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1305 | else |
ac1cb8d3 VS |
1306 | case $ac_arg in |
1307 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1308 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1309 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1310 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1311 | case "$ac_configure_args0 " in | |
1312 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1313 | esac | |
1314 | ;; | |
1315 | -* ) ac_must_keep_next=true ;; | |
1316 | esac | |
a848cd7e SC |
1317 | fi |
1318 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1319 | # Get rid of the leading space. | |
1320 | ac_sep=" " | |
1321 | ;; | |
1322 | esac | |
1323 | done | |
1324 | done | |
1325 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1326 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1327 | ||
1328 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1329 | # config.log. We remove comments because anyway the quotes in there | |
1330 | # would cause problems or look ugly. | |
1331 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1332 | # such as our DU 5.0 friend, will then `close' the trap. | |
1333 | trap 'exit_status=$? | |
1334 | # Save into config.log some information that might help in debugging. | |
1335 | { | |
1336 | echo | |
1337 | ||
1338 | cat <<\_ASBOX | |
1339 | ## ---------------- ## | |
1340 | ## Cache variables. ## | |
1341 | ## ---------------- ## | |
1342 | _ASBOX | |
1343 | echo | |
1344 | # The following way of writing the cache mishandles newlines in values, | |
1345 | { | |
1346 | (set) 2>&1 | | |
1347 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1348 | *ac_space=\ *) | |
1349 | sed -n \ | |
ac1cb8d3 VS |
1350 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1351 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1352 | ;; |
1353 | *) | |
1354 | sed -n \ | |
ac1cb8d3 | 1355 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1356 | ;; |
1357 | esac; | |
1358 | } | |
1359 | echo | |
1360 | ||
1361 | cat <<\_ASBOX | |
1362 | ## ----------------- ## | |
1363 | ## Output variables. ## | |
1364 | ## ----------------- ## | |
1365 | _ASBOX | |
1366 | echo | |
1367 | for ac_var in $ac_subst_vars | |
1368 | do | |
1369 | eval ac_val=$`echo $ac_var` | |
1370 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1371 | done | sort | |
1372 | echo | |
1373 | ||
1374 | if test -n "$ac_subst_files"; then | |
1375 | cat <<\_ASBOX | |
1376 | ## ------------- ## | |
1377 | ## Output files. ## | |
1378 | ## ------------- ## | |
1379 | _ASBOX | |
1380 | echo | |
1381 | for ac_var in $ac_subst_files | |
1382 | do | |
1383 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1384 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1385 | done | sort |
1386 | echo | |
1387 | fi | |
1388 | ||
1389 | if test -s confdefs.h; then | |
1390 | cat <<\_ASBOX | |
1391 | ## ----------- ## | |
1392 | ## confdefs.h. ## | |
1393 | ## ----------- ## | |
1394 | _ASBOX | |
1395 | echo | |
1396 | sed "/^$/d" confdefs.h | sort | |
1397 | echo | |
1398 | fi | |
1399 | test "$ac_signal" != 0 && | |
1400 | echo "$as_me: caught signal $ac_signal" | |
1401 | echo "$as_me: exit $exit_status" | |
1402 | } >&5 | |
ac1cb8d3 | 1403 | rm -f core *.core && |
a848cd7e SC |
1404 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1405 | exit $exit_status | |
1406 | ' 0 | |
1407 | for ac_signal in 1 2 13 15; do | |
1408 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1409 | done | |
1410 | ac_signal=0 | |
1411 | ||
1412 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1413 | rm -rf conftest* confdefs.h | |
1414 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1415 | echo >confdefs.h | |
1416 | ||
1417 | # Predefined preprocessor variables. | |
1418 | ||
1419 | cat >>confdefs.h <<_ACEOF | |
1420 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1421 | _ACEOF | |
1422 | ||
1423 | ||
1424 | cat >>confdefs.h <<_ACEOF | |
1425 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1426 | _ACEOF | |
1427 | ||
1428 | ||
1429 | cat >>confdefs.h <<_ACEOF | |
1430 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1431 | _ACEOF | |
1432 | ||
1433 | ||
1434 | cat >>confdefs.h <<_ACEOF | |
1435 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1436 | _ACEOF | |
1437 | ||
1438 | ||
1439 | cat >>confdefs.h <<_ACEOF | |
1440 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1441 | _ACEOF | |
1442 | ||
1443 | ||
1444 | # Let the site file select an alternate cache file if it wants to. | |
1445 | # Prefer explicitly selected file to automatically selected ones. | |
1446 | if test -z "$CONFIG_SITE"; then | |
1447 | if test "x$prefix" != xNONE; then | |
1448 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1449 | else | |
1450 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1451 | fi | |
1452 | fi | |
1453 | for ac_site_file in $CONFIG_SITE; do | |
1454 | if test -r "$ac_site_file"; then | |
1455 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1456 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1457 | sed 's/^/| /' "$ac_site_file" >&5 | |
1458 | . "$ac_site_file" | |
1459 | fi | |
1460 | done | |
1461 | ||
1462 | if test -r "$cache_file"; then | |
1463 | # Some versions of bash will fail to source /dev/null (special | |
1464 | # files actually), so we avoid doing that. | |
1465 | if test -f "$cache_file"; then | |
1466 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1467 | echo "$as_me: loading cache $cache_file" >&6;} | |
1468 | case $cache_file in | |
1469 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1470 | *) . ./$cache_file;; | |
1471 | esac | |
1472 | fi | |
1473 | else | |
1474 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1475 | echo "$as_me: creating cache $cache_file" >&6;} | |
1476 | >$cache_file | |
1477 | fi | |
1478 | ||
1479 | # Check that the precious variables saved in the cache have kept the same | |
1480 | # value. | |
1481 | ac_cache_corrupted=false | |
1482 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1483 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1484 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1485 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1486 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1487 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1488 | case $ac_old_set,$ac_new_set in | |
1489 | set,) | |
1490 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1491 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1492 | ac_cache_corrupted=: ;; | |
1493 | ,set) | |
1494 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1495 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1496 | ac_cache_corrupted=: ;; | |
1497 | ,);; | |
1498 | *) | |
1499 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1500 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1501 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1502 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1503 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1504 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1505 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1506 | ac_cache_corrupted=: |
a848cd7e SC |
1507 | fi;; |
1508 | esac | |
1509 | # Pass precious variables to config.status. | |
1510 | if test "$ac_new_set" = set; then | |
1511 | case $ac_new_val in | |
1512 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1513 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1514 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1515 | esac | |
1516 | case " $ac_configure_args " in | |
1517 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1518 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1519 | esac | |
1520 | fi | |
1521 | done | |
1522 | if $ac_cache_corrupted; then | |
1523 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1524 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1525 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1526 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1527 | { (exit 1); exit 1; }; } | |
1528 | fi | |
1529 | ||
1530 | ac_ext=c | |
1531 | ac_cpp='$CPP $CPPFLAGS' | |
1532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ||
1555 | ||
1556 | ||
1557 | ||
1558 | ||
1559 | ||
1560 | ||
1561 | ||
1562 | ||
1563 | ||
1564 | ||
1565 | ac_aux_dir= | |
1566 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1567 | if test -f $ac_dir/install-sh; then | |
1568 | ac_aux_dir=$ac_dir | |
1569 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1570 | break | |
1571 | elif test -f $ac_dir/install.sh; then | |
1572 | ac_aux_dir=$ac_dir | |
1573 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1574 | break | |
1575 | elif test -f $ac_dir/shtool; then | |
1576 | ac_aux_dir=$ac_dir | |
1577 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1578 | break | |
1579 | fi | |
1580 | done | |
1581 | if test -z "$ac_aux_dir"; then | |
1582 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1583 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1584 | { (exit 1); exit 1; }; } | |
1585 | fi | |
1586 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1587 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1588 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1589 | ||
1590 | # Make sure we can run config.sub. | |
1591 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1592 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1593 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1594 | { (exit 1); exit 1; }; } | |
1595 | ||
1596 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1597 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1598 | if test "${ac_cv_build+set}" = set; then | |
1599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1600 | else | |
1601 | ac_cv_build_alias=$build_alias | |
1602 | test -z "$ac_cv_build_alias" && | |
1603 | ac_cv_build_alias=`$ac_config_guess` | |
1604 | test -z "$ac_cv_build_alias" && | |
1605 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1606 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1607 | { (exit 1); exit 1; }; } | |
1608 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1609 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1610 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1611 | { (exit 1); exit 1; }; } | |
1612 | ||
1613 | fi | |
1614 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1615 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1616 | build=$ac_cv_build | |
1617 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1618 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1619 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1620 | ||
1621 | ||
1622 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1623 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1624 | if test "${ac_cv_host+set}" = set; then | |
1625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1626 | else | |
1627 | ac_cv_host_alias=$host_alias | |
1628 | test -z "$ac_cv_host_alias" && | |
1629 | ac_cv_host_alias=$ac_cv_build_alias | |
1630 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1631 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1632 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1633 | { (exit 1); exit 1; }; } | |
1634 | ||
1635 | fi | |
1636 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1637 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1638 | host=$ac_cv_host | |
1639 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1640 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1641 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1642 | ||
1643 | ||
1644 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1645 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1646 | if test "${ac_cv_target+set}" = set; then | |
1647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1648 | else | |
1649 | ac_cv_target_alias=$target_alias | |
1650 | test "x$ac_cv_target_alias" = "x" && | |
1651 | ac_cv_target_alias=$ac_cv_host_alias | |
1652 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1653 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1654 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1655 | { (exit 1); exit 1; }; } | |
1656 | ||
1657 | fi | |
1658 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1659 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1660 | target=$ac_cv_target | |
1661 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1662 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1663 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1664 | ||
1665 | ||
1666 | # The aliases save the names the user supplied, while $host etc. | |
1667 | # will get canonicalized. | |
1668 | test -n "$target_alias" && | |
1669 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1670 | NONENONEs,x,x, && | |
1671 | program_prefix=${target_alias}- | |
1672 | ||
1673 | ||
1674 | ||
ceec2216 | 1675 | wx_major_version_number=2 |
dd8df4fc VZ |
1676 | wx_minor_version_number=7 |
1677 | wx_release_number=0 | |
1678 | wx_subrelease_number=0 | |
a848cd7e | 1679 | |
ceec2216 RL |
1680 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1681 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1682 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1683 | |
ceec2216 | 1684 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1685 | |
a848cd7e SC |
1686 | |
1687 | ||
1688 | ||
1689 | USE_UNIX=1 | |
1690 | USE_OS2=0 | |
1691 | USE_WIN32=0 | |
1692 | USE_DOS=0 | |
1693 | USE_BEOS=0 | |
1694 | USE_MAC=0 | |
1695 | ||
1696 | USE_AIX= | |
1697 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1698 | USE_GNU= USE_HPUX= | |
1699 | USE_LINUX= | |
1700 | USE_NETBSD= | |
1701 | USE_OPENBSD= | |
1702 | USE_OSF= USE_SGI= | |
1703 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1704 | USE_ULTRIX= | |
1705 | USE_UNIXWARE= | |
1706 | ||
1707 | USE_ALPHA= | |
1708 | ||
1709 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1710 | ||
1711 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1712 | ||
1713 | DEFAULT_wxUSE_COCOA=0 | |
1714 | DEFAULT_wxUSE_GTK=0 | |
1715 | DEFAULT_wxUSE_MAC=0 | |
1716 | DEFAULT_wxUSE_MGL=0 | |
1717 | DEFAULT_wxUSE_MICROWIN=0 | |
1718 | DEFAULT_wxUSE_MOTIF=0 | |
1719 | DEFAULT_wxUSE_MSW=0 | |
1720 | DEFAULT_wxUSE_PM=0 | |
1721 | DEFAULT_wxUSE_X11=0 | |
1722 | ||
1723 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1724 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1725 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1726 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1727 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1728 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1729 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1730 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1731 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1732 | ||
1733 | PROGRAM_EXT= | |
1734 | SO_SUFFIX=so | |
1735 | SAMPLES_RPATH_FLAG= | |
1736 | SAMPLES_RPATH_POSTLINK= | |
1737 | ||
a03b8b04 RD |
1738 | DEFAULT_STD_FLAG=yes |
1739 | ||
a848cd7e SC |
1740 | case "${host}" in |
1741 | *-hp-hpux* ) | |
1742 | USE_HPUX=1 | |
1743 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1744 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1745 | SO_SUFFIX=sl | |
1746 | cat >>confdefs.h <<\_ACEOF | |
1747 | #define __HPUX__ 1 | |
1748 | _ACEOF | |
1749 | ||
2eef8513 | 1750 | |
c92ad099 | 1751 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
1752 | ;; |
1753 | *-*-linux* ) | |
1754 | USE_LINUX=1 | |
1755 | cat >>confdefs.h <<\_ACEOF | |
1756 | #define __LINUX__ 1 | |
1757 | _ACEOF | |
1758 | ||
1759 | TMP=`uname -m` | |
1760 | if test "x$TMP" = "xalpha"; then | |
1761 | USE_ALPHA=1 | |
1762 | cat >>confdefs.h <<\_ACEOF | |
1763 | #define __ALPHA__ 1 | |
1764 | _ACEOF | |
1765 | ||
1766 | fi | |
1767 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1768 | ;; | |
1769 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1770 | USE_GNU=1 | |
1771 | TMP=`uname -m` | |
1772 | if test "x$TMP" = "xalpha"; then | |
1773 | USE_ALPHA=1 | |
1774 | cat >>confdefs.h <<\_ACEOF | |
1775 | #define __ALPHA__ 1 | |
1776 | _ACEOF | |
1777 | ||
1778 | fi | |
1779 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1780 | ;; | |
1781 | *-*-irix5* | *-*-irix6* ) | |
1782 | USE_SGI=1 | |
1783 | USE_SVR4=1 | |
1784 | cat >>confdefs.h <<\_ACEOF | |
1785 | #define __SGI__ 1 | |
1786 | _ACEOF | |
1787 | ||
1788 | cat >>confdefs.h <<\_ACEOF | |
1789 | #define __SVR4__ 1 | |
1790 | _ACEOF | |
1791 | ||
1792 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1793 | ;; | |
1794 | *-*-solaris2* ) | |
1795 | USE_SUN=1 | |
1796 | USE_SOLARIS=1 | |
1797 | USE_SVR4=1 | |
1798 | cat >>confdefs.h <<\_ACEOF | |
1799 | #define __SUN__ 1 | |
1800 | _ACEOF | |
1801 | ||
1802 | cat >>confdefs.h <<\_ACEOF | |
1803 | #define __SOLARIS__ 1 | |
1804 | _ACEOF | |
1805 | ||
1806 | cat >>confdefs.h <<\_ACEOF | |
1807 | #define __SVR4__ 1 | |
1808 | _ACEOF | |
1809 | ||
1810 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1811 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1812 | ;; | |
1813 | *-*-sunos4* ) | |
1814 | USE_SUN=1 | |
1815 | USE_SUNOS=1 | |
1816 | USE_BSD=1 | |
1817 | cat >>confdefs.h <<\_ACEOF | |
1818 | #define __SUN__ 1 | |
1819 | _ACEOF | |
1820 | ||
1821 | cat >>confdefs.h <<\_ACEOF | |
1822 | #define __SUNOS__ 1 | |
1823 | _ACEOF | |
1824 | ||
1825 | cat >>confdefs.h <<\_ACEOF | |
1826 | #define __BSD__ 1 | |
1827 | _ACEOF | |
1828 | ||
1829 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1830 | ;; | |
1831 | *-*-freebsd*) | |
1832 | USE_BSD=1 | |
1833 | USE_FREEBSD=1 | |
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __FREEBSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | cat >>confdefs.h <<\_ACEOF | |
1839 | #define __BSD__ 1 | |
1840 | _ACEOF | |
1841 | ||
1842 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1843 | ;; | |
1844 | *-*-openbsd*) | |
1845 | USE_BSD=1 | |
1846 | USE_OPENBSD=1 | |
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __OPENBSD__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | cat >>confdefs.h <<\_ACEOF | |
1852 | #define __BSD__ 1 | |
1853 | _ACEOF | |
1854 | ||
1855 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1856 | ;; | |
1857 | *-*-netbsd*) | |
1858 | USE_BSD=1 | |
1859 | USE_NETBSD=1 | |
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __NETBSD__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | cat >>confdefs.h <<\_ACEOF | |
1865 | #define __BSD__ 1 | |
1866 | _ACEOF | |
1867 | ||
1868 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
728258f4 | 1869 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
def7c04a | 1870 | |
def7c04a | 1871 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" |
a848cd7e SC |
1872 | ;; |
1873 | *-*-osf* ) | |
1874 | USE_ALPHA=1 | |
1875 | USE_OSF=1 | |
1876 | cat >>confdefs.h <<\_ACEOF | |
1877 | #define __ALPHA__ 1 | |
1878 | _ACEOF | |
1879 | ||
1880 | cat >>confdefs.h <<\_ACEOF | |
1881 | #define __OSF__ 1 | |
1882 | _ACEOF | |
1883 | ||
1884 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1885 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1886 | ;; | |
1887 | *-*-dgux5* ) | |
1888 | USE_ALPHA=1 | |
1889 | USE_SVR4=1 | |
1890 | cat >>confdefs.h <<\_ACEOF | |
1891 | #define __ALPHA__ 1 | |
1892 | _ACEOF | |
1893 | ||
1894 | cat >>confdefs.h <<\_ACEOF | |
1895 | #define __SVR4__ 1 | |
1896 | _ACEOF | |
1897 | ||
1898 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1899 | ;; | |
1900 | *-*-sysv5* ) | |
1901 | USE_SYSV=1 | |
1902 | USE_SVR4=1 | |
1903 | cat >>confdefs.h <<\_ACEOF | |
1904 | #define __SYSV__ 1 | |
1905 | _ACEOF | |
1906 | ||
1907 | cat >>confdefs.h <<\_ACEOF | |
1908 | #define __SVR4__ 1 | |
1909 | _ACEOF | |
1910 | ||
1911 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1912 | ;; | |
1913 | *-*-aix* ) | |
1914 | USE_AIX=1 | |
1915 | USE_SYSV=1 | |
1916 | USE_SVR4=1 | |
1917 | SO_SUFFIX=a | |
1918 | cat >>confdefs.h <<\_ACEOF | |
1919 | #define __AIX__ 1 | |
1920 | _ACEOF | |
1921 | ||
1922 | cat >>confdefs.h <<\_ACEOF | |
1923 | #define __SYSV__ 1 | |
1924 | _ACEOF | |
1925 | ||
1926 | cat >>confdefs.h <<\_ACEOF | |
1927 | #define __SVR4__ 1 | |
1928 | _ACEOF | |
1929 | ||
1930 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1931 | ;; | |
1932 | ||
1933 | *-*-*UnixWare*) | |
1934 | USE_SYSV=1 | |
1935 | USE_SVR4=1 | |
1936 | USE_UNIXWARE=1 | |
1937 | cat >>confdefs.h <<\_ACEOF | |
1938 | #define __UNIXWARE__ 1 | |
1939 | _ACEOF | |
1940 | ||
1941 | ;; | |
1942 | ||
1943 | *-*-cygwin* | *-*-mingw32* ) | |
1944 | SO_SUFFIX=dll | |
1945 | PROGRAM_EXT=".exe" | |
a848cd7e | 1946 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1947 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1948 | ;; |
1949 | ||
1950 | *-pc-msdosdjgpp ) | |
1951 | USE_UNIX=0 | |
1952 | USE_DOS=1 | |
1953 | cat >>confdefs.h <<\_ACEOF | |
1954 | #define __DOS__ 1 | |
1955 | _ACEOF | |
1956 | ||
1957 | PROGRAM_EXT=".exe" | |
1958 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1959 | ;; |
1960 | ||
1961 | *-pc-os2_emx | *-pc-os2-emx ) | |
1962 | cat >>confdefs.h <<\_ACEOF | |
1963 | #define __EMX__ 1 | |
1964 | _ACEOF | |
1965 | ||
1966 | USE_OS2=1 | |
1967 | cat >>confdefs.h <<\_ACEOF | |
1968 | #define __OS2__ 1 | |
1969 | _ACEOF | |
1970 | ||
1971 | PROGRAM_EXT=".exe" | |
1972 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1973 | CXX=gcc | |
1974 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1975 | ac_executable_extensions=".exe" | |
1976 | export ac_executable_extensions | |
1977 | ac_save_IFS="$IFS" | |
1978 | IFS='\\' | |
1979 | ac_TEMP_PATH= | |
1980 | for ac_dir in $PATH; do | |
1981 | IFS=$ac_save_IFS | |
1982 | if test -z "$ac_TEMP_PATH"; then | |
1983 | ac_TEMP_PATH="$ac_dir" | |
1984 | else | |
1985 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1986 | fi | |
1987 | done | |
1988 | export PATH="$ac_TEMP_PATH" | |
1989 | unset ac_TEMP_PATH | |
a03b8b04 | 1990 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1991 | ;; |
1992 | ||
cfda0ea8 | 1993 | *-*-darwin* ) |
a848cd7e SC |
1994 | USE_BSD=1 |
1995 | USE_DARWIN=1 | |
1996 | SO_SUFFIX=dylib | |
1997 | cat >>confdefs.h <<\_ACEOF | |
1998 | #define __BSD__ 1 | |
1999 | _ACEOF | |
2000 | ||
2001 | cat >>confdefs.h <<\_ACEOF | |
2002 | #define __DARWIN__ 1 | |
a848cd7e SC |
2003 | _ACEOF |
2004 | ||
2005 | cat >>confdefs.h <<\_ACEOF | |
2006 | #define TARGET_CARBON 1 | |
2007 | _ACEOF | |
2008 | ||
2009 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2010 | DEFAULT_STD_FLAG=no |
a848cd7e | 2011 | ;; |
1e9e8aba DE |
2012 | powerpc-apple-macos* ) |
2013 | USE_UNIX=0 | |
2014 | ac_cv_c_bigendian=yes | |
2015 | SO_SUFFIX=shlib | |
2016 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2017 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2018 | ;; |
a848cd7e SC |
2019 | |
2020 | *-*-beos* ) | |
2021 | USE_BEOS=1 | |
2022 | cat >>confdefs.h <<\_ACEOF | |
2023 | #define __BEOS__ 1 | |
2024 | _ACEOF | |
2025 | ||
2026 | ;; | |
2027 | ||
2028 | *) | |
2029 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2030 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2031 | { (exit 1); exit 1; }; } | |
2032 | esac | |
2033 | ||
2034 | ||
2035 | ||
2036 | ||
2037 | wx_arg_cache_file="configarg.cache" | |
2038 | echo "loading argument cache $wx_arg_cache_file" | |
2039 | rm -f ${wx_arg_cache_file}.tmp | |
2040 | touch ${wx_arg_cache_file}.tmp | |
2041 | touch ${wx_arg_cache_file} | |
2042 | ||
2043 | ||
2044 | DEBUG_CONFIGURE=0 | |
2045 | if test $DEBUG_CONFIGURE = 1; then | |
2046 | DEFAULT_wxUSE_UNIVERSAL=no | |
2047 | DEFAULT_wxUSE_STL=no | |
2048 | ||
2049 | DEFAULT_wxUSE_NANOX=no | |
2050 | ||
2051 | DEFAULT_wxUSE_THREADS=yes | |
2052 | ||
2053 | DEFAULT_wxUSE_SHARED=yes | |
2054 | DEFAULT_wxUSE_OPTIMISE=no | |
2055 | DEFAULT_wxUSE_PROFILE=no | |
2056 | DEFAULT_wxUSE_NO_DEPS=no | |
2057 | DEFAULT_wxUSE_NO_RTTI=no | |
2058 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2059 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2060 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2061 | DEFAULT_wxUSE_PERMISSIVE=no |
2062 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2063 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2064 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2065 | DEFAULT_wxUSE_MEM_TRACING=no | |
2066 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2067 | DEFAULT_wxUSE_DMALLOC=no | |
2068 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2069 | ||
2070 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2071 | DEFAULT_wxUSE_LOG=yes | |
2072 | DEFAULT_wxUSE_LOGWINDOW=no | |
2073 | DEFAULT_wxUSE_LOGGUI=no | |
2074 | DEFAULT_wxUSE_LOGDIALOG=no | |
2075 | ||
2076 | DEFAULT_wxUSE_GUI=yes | |
2077 | DEFAULT_wxUSE_CONTROLS=no | |
2078 | ||
2079 | DEFAULT_wxUSE_REGEX=no | |
2080 | DEFAULT_wxUSE_XML=no | |
2081 | DEFAULT_wxUSE_EXPAT=no | |
2082 | DEFAULT_wxUSE_ZLIB=no | |
2083 | DEFAULT_wxUSE_LIBPNG=no | |
2084 | DEFAULT_wxUSE_LIBJPEG=no | |
2085 | DEFAULT_wxUSE_LIBTIFF=no | |
2086 | DEFAULT_wxUSE_LIBXPM=no | |
2087 | DEFAULT_wxUSE_LIBMSPACK=no | |
2088 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2089 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
3565d135 | 2090 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2091 | DEFAULT_wxUSE_ODBC=no |
2092 | DEFAULT_wxUSE_OPENGL=no | |
2093 | ||
2094 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2095 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2096 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2097 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2098 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2099 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2100 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2101 | DEFAULT_wxUSE_DATETIME=no | |
2102 | DEFAULT_wxUSE_TIMER=no | |
2103 | DEFAULT_wxUSE_STOPWATCH=no | |
2104 | DEFAULT_wxUSE_FILE=no | |
2105 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2106 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2107 | DEFAULT_wxUSE_TEXTBUFFER=no |
2108 | DEFAULT_wxUSE_TEXTFILE=no | |
2109 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2110 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2111 | DEFAULT_wxUSE_GSTREAMER8=no |
a848cd7e SC |
2112 | DEFAULT_wxUSE_INTL=no |
2113 | DEFAULT_wxUSE_CONFIG=no | |
2114 | DEFAULT_wxUSE_FONTMAP=no | |
2115 | DEFAULT_wxUSE_STREAMS=no | |
2116 | DEFAULT_wxUSE_SOCKETS=no | |
2117 | DEFAULT_wxUSE_OLE=no | |
2118 | DEFAULT_wxUSE_DATAOBJ=no | |
2119 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2120 | DEFAULT_wxUSE_JOYSTICK=no | |
2121 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2122 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2123 | DEFAULT_wxUSE_LONGLONG=no | |
2124 | DEFAULT_wxUSE_GEOMETRY=no | |
2125 | ||
2126 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2127 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2128 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2129 | ||
2130 | DEFAULT_wxUSE_CLIPBOARD=no | |
2131 | DEFAULT_wxUSE_TOOLTIPS=no | |
2132 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2133 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2134 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2135 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2136 | |
8a7b1113 | 2137 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2138 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2139 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2140 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2141 | ||
2142 | DEFAULT_wxUSE_RESOURCES=no | |
2143 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2144 | DEFAULT_wxUSE_IPC=no | |
2145 | DEFAULT_wxUSE_HELP=no | |
2146 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2147 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2148 | DEFAULT_wxUSE_TREELAYOUT=no | |
2149 | DEFAULT_wxUSE_METAFILE=no | |
2150 | DEFAULT_wxUSE_MIMETYPE=no | |
2151 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2152 | DEFAULT_wxUSE_PROTOCOL=no | |
2153 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2154 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2155 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2156 | DEFAULT_wxUSE_URL=no | |
2157 | ||
2158 | DEFAULT_wxUSE_COMMONDLGS=no | |
2159 | DEFAULT_wxUSE_CHOICEDLG=no | |
2160 | DEFAULT_wxUSE_COLOURDLG=no | |
2161 | DEFAULT_wxUSE_DIRDLG=no | |
2162 | DEFAULT_wxUSE_FILEDLG=no | |
2163 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2164 | DEFAULT_wxUSE_FONTDLG=no | |
2165 | DEFAULT_wxUSE_MSGDLG=no | |
2166 | DEFAULT_wxUSE_NUMBERDLG=no | |
2167 | DEFAULT_wxUSE_TEXTDLG=no | |
2168 | DEFAULT_wxUSE_SPLASH=no | |
2169 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2170 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2171 | DEFAULT_wxUSE_WIZARDDLG=no | |
2172 | ||
2173 | DEFAULT_wxUSE_MENUS=no | |
2174 | DEFAULT_wxUSE_MINIFRAME=no | |
2175 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2176 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2177 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2178 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2179 | DEFAULT_wxUSE_FILESYSTEM=no |
2180 | DEFAULT_wxUSE_FS_INET=no | |
2181 | DEFAULT_wxUSE_FS_ZIP=no | |
2182 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2183 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2184 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2185 | DEFAULT_wxUSE_VALIDATORS=no |
2186 | ||
2187 | DEFAULT_wxUSE_ACCEL=no | |
2188 | DEFAULT_wxUSE_BUTTON=no | |
2189 | DEFAULT_wxUSE_BMPBUTTON=no | |
2190 | DEFAULT_wxUSE_CALCTRL=no | |
2191 | DEFAULT_wxUSE_CARET=no | |
2192 | DEFAULT_wxUSE_CHECKBOX=no | |
2193 | DEFAULT_wxUSE_CHECKLST=no | |
2194 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2195 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2196 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2197 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2198 | DEFAULT_wxUSE_DISPLAY=no |
2199 | DEFAULT_wxUSE_GAUGE=no | |
2200 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 2201 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2202 | DEFAULT_wxUSE_IMAGLIST=no |
2203 | DEFAULT_wxUSE_LISTBOOK=no | |
2204 | DEFAULT_wxUSE_LISTBOX=no | |
2205 | DEFAULT_wxUSE_LISTCTRL=no | |
2206 | DEFAULT_wxUSE_NOTEBOOK=no | |
2207 | DEFAULT_wxUSE_RADIOBOX=no | |
2208 | DEFAULT_wxUSE_RADIOBTN=no | |
2209 | DEFAULT_wxUSE_SASH=no | |
2210 | DEFAULT_wxUSE_SCROLLBAR=no | |
2211 | DEFAULT_wxUSE_SLIDER=no | |
2212 | DEFAULT_wxUSE_SPINBTN=no | |
2213 | DEFAULT_wxUSE_SPINCTRL=no | |
2214 | DEFAULT_wxUSE_SPLITTER=no | |
2215 | DEFAULT_wxUSE_STATBMP=no | |
2216 | DEFAULT_wxUSE_STATBOX=no | |
2217 | DEFAULT_wxUSE_STATLINE=no | |
2218 | DEFAULT_wxUSE_STATTEXT=no | |
2219 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2220 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2221 | DEFAULT_wxUSE_TEXTCTRL=no |
2222 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2223 | DEFAULT_wxUSE_TOOLBAR=no | |
2224 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2225 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
0093c2fc | 2226 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 2227 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
2228 | DEFAULT_wxUSE_TREECTRL=no |
2229 | DEFAULT_wxUSE_POPUPWIN=no | |
2230 | DEFAULT_wxUSE_TIPWINDOW=no | |
2231 | ||
2232 | DEFAULT_wxUSE_UNICODE=no | |
2233 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2234 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2235 | ||
2236 | DEFAULT_wxUSE_PALETTE=no | |
2237 | DEFAULT_wxUSE_IMAGE=no | |
2238 | DEFAULT_wxUSE_GIF=no | |
2239 | DEFAULT_wxUSE_PCX=no | |
2240 | DEFAULT_wxUSE_PNM=no | |
2241 | DEFAULT_wxUSE_IFF=no | |
2242 | DEFAULT_wxUSE_XPM=no | |
2243 | DEFAULT_wxUSE_ICO_CUR=no | |
2244 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2245 | ||
2246 | DEFAULT_wxUSE_MONOLITHIC=no | |
2247 | DEFAULT_wxUSE_PLUGINS=no | |
2248 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2249 | else | |
2250 | DEFAULT_wxUSE_UNIVERSAL=no | |
2251 | DEFAULT_wxUSE_STL=no | |
2252 | ||
2253 | DEFAULT_wxUSE_NANOX=no | |
2254 | ||
2255 | DEFAULT_wxUSE_THREADS=yes | |
2256 | ||
2257 | DEFAULT_wxUSE_SHARED=yes | |
2258 | DEFAULT_wxUSE_OPTIMISE=yes | |
2259 | DEFAULT_wxUSE_PROFILE=no | |
2260 | DEFAULT_wxUSE_NO_DEPS=no | |
2261 | DEFAULT_wxUSE_NO_RTTI=no | |
2262 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2263 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2264 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2265 | DEFAULT_wxUSE_PERMISSIVE=no |
2266 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2267 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2268 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2269 | DEFAULT_wxUSE_MEM_TRACING=no | |
2270 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2271 | DEFAULT_wxUSE_DMALLOC=no | |
2272 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2273 | ||
2274 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2275 | DEFAULT_wxUSE_LOG=yes | |
2276 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2277 | DEFAULT_wxUSE_LOGGUI=yes | |
2278 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2279 | ||
2280 | DEFAULT_wxUSE_GUI=yes | |
2281 | ||
2282 | DEFAULT_wxUSE_REGEX=yes | |
2283 | DEFAULT_wxUSE_XML=yes | |
2284 | DEFAULT_wxUSE_EXPAT=yes | |
2285 | DEFAULT_wxUSE_ZLIB=yes | |
2286 | DEFAULT_wxUSE_LIBPNG=yes | |
2287 | DEFAULT_wxUSE_LIBJPEG=yes | |
2288 | DEFAULT_wxUSE_LIBTIFF=yes | |
2289 | DEFAULT_wxUSE_LIBXPM=yes | |
2290 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2291 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2292 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
3565d135 | 2293 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2294 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2295 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2296 | |
2297 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2298 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2299 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2300 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2301 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2302 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2303 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2304 | DEFAULT_wxUSE_DATETIME=yes | |
2305 | DEFAULT_wxUSE_TIMER=yes | |
2306 | DEFAULT_wxUSE_STOPWATCH=yes | |
2307 | DEFAULT_wxUSE_FILE=yes | |
2308 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2309 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2310 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2311 | DEFAULT_wxUSE_TEXTFILE=yes | |
2312 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2313 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2314 | DEFAULT_wxUSE_GSTREAMER8=no |
a848cd7e SC |
2315 | DEFAULT_wxUSE_INTL=yes |
2316 | DEFAULT_wxUSE_CONFIG=yes | |
2317 | DEFAULT_wxUSE_FONTMAP=yes | |
2318 | DEFAULT_wxUSE_STREAMS=yes | |
2319 | DEFAULT_wxUSE_SOCKETS=yes | |
2320 | DEFAULT_wxUSE_OLE=yes | |
2321 | DEFAULT_wxUSE_DATAOBJ=yes | |
2322 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2323 | DEFAULT_wxUSE_JOYSTICK=yes | |
2324 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2325 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2326 | DEFAULT_wxUSE_LONGLONG=yes | |
2327 | DEFAULT_wxUSE_GEOMETRY=yes | |
2328 | ||
2329 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2330 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2331 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2332 | ||
2333 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2334 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2335 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2336 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2337 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2338 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2339 | |
8a7b1113 | 2340 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2341 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2342 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2343 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2344 | ||
2345 | DEFAULT_wxUSE_RESOURCES=no | |
2346 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2347 | DEFAULT_wxUSE_IPC=yes | |
2348 | DEFAULT_wxUSE_HELP=yes | |
2349 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2350 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2351 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2352 | DEFAULT_wxUSE_METAFILE=yes | |
2353 | DEFAULT_wxUSE_MIMETYPE=yes | |
2354 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2355 | DEFAULT_wxUSE_PROTOCOL=yes | |
2356 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2357 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2358 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2359 | DEFAULT_wxUSE_URL=yes | |
2360 | ||
2361 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2362 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2363 | DEFAULT_wxUSE_COLOURDLG=yes | |
2364 | DEFAULT_wxUSE_DIRDLG=yes | |
2365 | DEFAULT_wxUSE_FILEDLG=yes | |
2366 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2367 | DEFAULT_wxUSE_FONTDLG=yes | |
2368 | DEFAULT_wxUSE_MSGDLG=yes | |
2369 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2370 | DEFAULT_wxUSE_TEXTDLG=yes | |
2371 | DEFAULT_wxUSE_SPLASH=yes | |
2372 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2373 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2374 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2375 | ||
2376 | DEFAULT_wxUSE_MENUS=yes | |
2377 | DEFAULT_wxUSE_MINIFRAME=yes | |
2378 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2379 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2380 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2381 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2382 | DEFAULT_wxUSE_FILESYSTEM=yes |
2383 | DEFAULT_wxUSE_FS_INET=yes | |
2384 | DEFAULT_wxUSE_FS_ZIP=yes | |
2385 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2386 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2387 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2388 | DEFAULT_wxUSE_VALIDATORS=yes |
2389 | ||
2390 | DEFAULT_wxUSE_ACCEL=yes | |
2391 | DEFAULT_wxUSE_BUTTON=yes | |
2392 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2393 | DEFAULT_wxUSE_CALCTRL=yes | |
2394 | DEFAULT_wxUSE_CARET=yes | |
2395 | DEFAULT_wxUSE_CHECKBOX=yes | |
2396 | DEFAULT_wxUSE_CHECKLST=yes | |
2397 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2398 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2399 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2400 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2401 | DEFAULT_wxUSE_DISPLAY=yes |
2402 | DEFAULT_wxUSE_GAUGE=yes | |
2403 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 2404 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2405 | DEFAULT_wxUSE_IMAGLIST=yes |
2406 | DEFAULT_wxUSE_LISTBOOK=yes | |
2407 | DEFAULT_wxUSE_LISTBOX=yes | |
2408 | DEFAULT_wxUSE_LISTCTRL=yes | |
2409 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2410 | DEFAULT_wxUSE_RADIOBOX=yes | |
2411 | DEFAULT_wxUSE_RADIOBTN=yes | |
2412 | DEFAULT_wxUSE_SASH=yes | |
2413 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2414 | DEFAULT_wxUSE_SLIDER=yes | |
2415 | DEFAULT_wxUSE_SPINBTN=yes | |
2416 | DEFAULT_wxUSE_SPINCTRL=yes | |
2417 | DEFAULT_wxUSE_SPLITTER=yes | |
2418 | DEFAULT_wxUSE_STATBMP=yes | |
2419 | DEFAULT_wxUSE_STATBOX=yes | |
2420 | DEFAULT_wxUSE_STATLINE=yes | |
2421 | DEFAULT_wxUSE_STATTEXT=yes | |
2422 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2423 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2424 | DEFAULT_wxUSE_TEXTCTRL=yes |
2425 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2426 | DEFAULT_wxUSE_TOOLBAR=yes | |
2427 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2428 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
0093c2fc | 2429 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 2430 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
2431 | DEFAULT_wxUSE_TREECTRL=yes |
2432 | DEFAULT_wxUSE_POPUPWIN=yes | |
2433 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2434 | ||
78de529b | 2435 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2436 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2437 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2438 | ||
2439 | DEFAULT_wxUSE_PALETTE=yes | |
2440 | DEFAULT_wxUSE_IMAGE=yes | |
2441 | DEFAULT_wxUSE_GIF=yes | |
2442 | DEFAULT_wxUSE_PCX=yes | |
2443 | DEFAULT_wxUSE_IFF=no | |
2444 | DEFAULT_wxUSE_PNM=yes | |
2445 | DEFAULT_wxUSE_XPM=yes | |
2446 | DEFAULT_wxUSE_ICO_CUR=yes | |
2447 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2448 | ||
2449 | DEFAULT_wxUSE_MONOLITHIC=no | |
2450 | DEFAULT_wxUSE_PLUGINS=no | |
2451 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2452 | |
f34ca037 | 2453 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2454 | fi |
2455 | ||
2456 | ||
2457 | ||
f34ca037 | 2458 | |
a848cd7e SC |
2459 | for toolkit in `echo $ALL_TOOLKITS`; do |
2460 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2461 | if test "x$LINE" != "x" ; then | |
2462 | has_toolkit_in_cache=1 | |
2463 | eval "DEFAULT_$LINE" | |
2464 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2465 | |
2466 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2467 | if test "x$LINE" != "x" ; then | |
2468 | eval "DEFAULT_$LINE" | |
2469 | fi | |
a848cd7e SC |
2470 | fi |
2471 | done | |
2472 | ||
2473 | ||
2474 | ||
2475 | enablestring= | |
2476 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2477 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2478 | no_cache=0 | |
2479 | # Check whether --enable-gui or --disable-gui was given. | |
2480 | if test "${enable_gui+set}" = set; then | |
2481 | enableval="$enable_gui" | |
2482 | ||
2483 | if test "$enableval" = yes; then | |
2484 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2485 | else | |
2486 | ac_cv_use_gui='wxUSE_GUI=no' | |
2487 | fi | |
2488 | ||
2489 | else | |
2490 | ||
2491 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2492 | if test "x$LINE" != x ; then | |
2493 | eval "DEFAULT_$LINE" | |
2494 | else | |
2495 | no_cache=1 | |
2496 | fi | |
2497 | ||
2498 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2499 | ||
2500 | fi; | |
2501 | ||
2502 | eval "$ac_cv_use_gui" | |
2503 | if test "$no_cache" != 1; then | |
2504 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2505 | fi | |
2506 | ||
2507 | if test "$wxUSE_GUI" = yes; then | |
2508 | echo "$as_me:$LINENO: result: yes" >&5 | |
2509 | echo "${ECHO_T}yes" >&6 | |
2510 | else | |
2511 | echo "$as_me:$LINENO: result: no" >&5 | |
2512 | echo "${ECHO_T}no" >&6 | |
2513 | fi | |
2514 | ||
2515 | ||
2516 | enablestring= | |
2517 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2518 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2519 | no_cache=0 | |
2520 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2521 | if test "${enable_monolithic+set}" = set; then | |
2522 | enableval="$enable_monolithic" | |
2523 | ||
2524 | if test "$enableval" = yes; then | |
2525 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2526 | else | |
2527 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2528 | fi | |
2529 | ||
2530 | else | |
2531 | ||
2532 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2533 | if test "x$LINE" != x ; then | |
2534 | eval "DEFAULT_$LINE" | |
2535 | else | |
2536 | no_cache=1 | |
2537 | fi | |
2538 | ||
2539 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2540 | ||
2541 | fi; | |
2542 | ||
2543 | eval "$ac_cv_use_monolithic" | |
2544 | if test "$no_cache" != 1; then | |
2545 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2546 | fi | |
2547 | ||
2548 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2549 | echo "$as_me:$LINENO: result: yes" >&5 | |
2550 | echo "${ECHO_T}yes" >&6 | |
2551 | else | |
2552 | echo "$as_me:$LINENO: result: no" >&5 | |
2553 | echo "${ECHO_T}no" >&6 | |
2554 | fi | |
2555 | ||
2556 | ||
2557 | enablestring= | |
2558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2559 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2560 | no_cache=0 | |
2561 | # Check whether --enable-plugins or --disable-plugins was given. | |
2562 | if test "${enable_plugins+set}" = set; then | |
2563 | enableval="$enable_plugins" | |
2564 | ||
2565 | if test "$enableval" = yes; then | |
2566 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2567 | else | |
2568 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2569 | fi | |
2570 | ||
2571 | else | |
2572 | ||
2573 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2574 | if test "x$LINE" != x ; then | |
2575 | eval "DEFAULT_$LINE" | |
2576 | else | |
2577 | no_cache=1 | |
2578 | fi | |
2579 | ||
2580 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2581 | ||
2582 | fi; | |
2583 | ||
2584 | eval "$ac_cv_use_plugins" | |
2585 | if test "$no_cache" != 1; then | |
2586 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2587 | fi | |
2588 | ||
2589 | if test "$wxUSE_PLUGINS" = yes; then | |
2590 | echo "$as_me:$LINENO: result: yes" >&5 | |
2591 | echo "${ECHO_T}yes" >&6 | |
2592 | else | |
2593 | echo "$as_me:$LINENO: result: no" >&5 | |
2594 | echo "${ECHO_T}no" >&6 | |
2595 | fi | |
2596 | ||
2597 | ||
1c14217d VZ |
2598 | withstring=without |
2599 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2600 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2601 | no_cache=0 | |
2602 | ||
2603 | # Check whether --with-subdirs or --without-subdirs was given. | |
2604 | if test "${with_subdirs+set}" = set; then | |
2605 | withval="$with_subdirs" | |
2606 | ||
2607 | if test "$withval" = yes; then | |
2608 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2609 | else | |
2610 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2611 | fi | |
2612 | ||
2613 | else | |
2614 | ||
2615 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2616 | if test "x$LINE" != x ; then | |
2617 | eval "DEFAULT_$LINE" | |
2618 | else | |
2619 | no_cache=1 | |
2620 | fi | |
2621 | ||
2622 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2623 | ||
2624 | fi; | |
2625 | ||
2626 | eval "$ac_cv_use_subdirs" | |
2627 | if test "$no_cache" != 1; then | |
2628 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2629 | fi | |
2630 | ||
2631 | if test "$wxWITH_SUBDIRS" = yes; then | |
2632 | echo "$as_me:$LINENO: result: yes" >&5 | |
2633 | echo "${ECHO_T}yes" >&6 | |
2634 | else | |
2635 | echo "$as_me:$LINENO: result: no" >&5 | |
2636 | echo "${ECHO_T}no" >&6 | |
2637 | fi | |
2638 | ||
2639 | ||
a848cd7e SC |
2640 | if test "$wxUSE_GUI" = "yes"; then |
2641 | ||
2642 | ||
2643 | enablestring= | |
2644 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2645 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2646 | no_cache=0 | |
2647 | # Check whether --enable-universal or --disable-universal was given. | |
2648 | if test "${enable_universal+set}" = set; then | |
2649 | enableval="$enable_universal" | |
2650 | ||
2651 | if test "$enableval" = yes; then | |
2652 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2653 | else | |
2654 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2655 | fi | |
2656 | ||
2657 | else | |
2658 | ||
2659 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2660 | if test "x$LINE" != x ; then | |
2661 | eval "DEFAULT_$LINE" | |
2662 | else | |
2663 | no_cache=1 | |
2664 | fi | |
2665 | ||
2666 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2667 | ||
2668 | fi; | |
2669 | ||
2670 | eval "$ac_cv_use_universal" | |
2671 | if test "$no_cache" != 1; then | |
2672 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2673 | fi | |
2674 | ||
2675 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2676 | echo "$as_me:$LINENO: result: yes" >&5 | |
2677 | echo "${ECHO_T}yes" >&6 | |
2678 | else | |
2679 | echo "$as_me:$LINENO: result: no" >&5 | |
2680 | echo "${ECHO_T}no" >&6 | |
2681 | fi | |
2682 | ||
2683 | ||
2684 | # Check whether --with-gtk or --without-gtk was given. | |
2685 | if test "${with_gtk+set}" = set; then | |
2686 | withval="$with_gtk" | |
2687 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2688 | fi; | |
2689 | ||
2690 | # Check whether --with-motif or --without-motif was given. | |
2691 | if test "${with_motif+set}" = set; then | |
2692 | withval="$with_motif" | |
2693 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2694 | fi; | |
2695 | ||
2696 | # Check whether --with-mac or --without-mac was given. | |
2697 | if test "${with_mac+set}" = set; then | |
2698 | withval="$with_mac" | |
c228d3a4 | 2699 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2700 | fi; |
2701 | ||
2702 | # Check whether --with-cocoa or --without-cocoa was given. | |
2703 | if test "${with_cocoa+set}" = set; then | |
2704 | withval="$with_cocoa" | |
c228d3a4 | 2705 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2706 | fi; |
2707 | ||
2708 | # Check whether --with-wine or --without-wine was given. | |
2709 | if test "${with_wine+set}" = set; then | |
2710 | withval="$with_wine" | |
2711 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2712 | fi; | |
2713 | ||
2714 | # Check whether --with-msw or --without-msw was given. | |
2715 | if test "${with_msw+set}" = set; then | |
2716 | withval="$with_msw" | |
2717 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2718 | fi; | |
2719 | ||
2720 | # Check whether --with-pm or --without-pm was given. | |
2721 | if test "${with_pm+set}" = set; then | |
2722 | withval="$with_pm" | |
2723 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2724 | fi; | |
2725 | ||
2726 | # Check whether --with-mgl or --without-mgl was given. | |
2727 | if test "${with_mgl+set}" = set; then | |
2728 | withval="$with_mgl" | |
2729 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2730 | fi; | |
2731 | ||
2732 | # Check whether --with-microwin or --without-microwin was given. | |
2733 | if test "${with_microwin+set}" = set; then | |
2734 | withval="$with_microwin" | |
2735 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2736 | fi; | |
2737 | ||
2738 | # Check whether --with-x11 or --without-x11 was given. | |
2739 | if test "${with_x11+set}" = set; then | |
2740 | withval="$with_x11" | |
2741 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2742 | fi; | |
2743 | ||
2744 | enablestring= | |
2745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2746 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2747 | no_cache=0 | |
2748 | # Check whether --enable-nanox or --disable-nanox was given. | |
2749 | if test "${enable_nanox+set}" = set; then | |
2750 | enableval="$enable_nanox" | |
2751 | ||
2752 | if test "$enableval" = yes; then | |
2753 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2754 | else | |
2755 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2756 | fi | |
2757 | ||
2758 | else | |
2759 | ||
2760 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2761 | if test "x$LINE" != x ; then | |
2762 | eval "DEFAULT_$LINE" | |
2763 | else | |
2764 | no_cache=1 | |
2765 | fi | |
2766 | ||
2767 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2768 | ||
2769 | fi; | |
2770 | ||
2771 | eval "$ac_cv_use_nanox" | |
2772 | if test "$no_cache" != 1; then | |
2773 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2774 | fi | |
2775 | ||
2776 | if test "$wxUSE_NANOX" = yes; then | |
2777 | echo "$as_me:$LINENO: result: yes" >&5 | |
2778 | echo "${ECHO_T}yes" >&6 | |
2779 | else | |
2780 | echo "$as_me:$LINENO: result: no" >&5 | |
2781 | echo "${ECHO_T}no" >&6 | |
2782 | fi | |
2783 | ||
2784 | ||
f34ca037 MW |
2785 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2786 | if test "${enable_gtk2+set}" = set; then | |
2787 | enableval="$enable_gtk2" | |
2788 | wxUSE_GTK2="$enableval" | |
2789 | fi; | |
a848cd7e | 2790 | |
a848cd7e SC |
2791 | enablestring= |
2792 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2793 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2794 | no_cache=0 | |
2795 | # Check whether --enable-gpe or --disable-gpe was given. | |
2796 | if test "${enable_gpe+set}" = set; then | |
2797 | enableval="$enable_gpe" | |
2798 | ||
2799 | if test "$enableval" = yes; then | |
2800 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2801 | else | |
2802 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2803 | fi | |
2804 | ||
2805 | else | |
2806 | ||
2807 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2808 | if test "x$LINE" != x ; then | |
2809 | eval "DEFAULT_$LINE" | |
2810 | else | |
2811 | no_cache=1 | |
2812 | fi | |
2813 | ||
2814 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2815 | ||
2816 | fi; | |
2817 | ||
2818 | eval "$ac_cv_use_gpe" | |
2819 | if test "$no_cache" != 1; then | |
2820 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2821 | fi | |
2822 | ||
2823 | if test "$wxUSE_GPE" = yes; then | |
2824 | echo "$as_me:$LINENO: result: yes" >&5 | |
2825 | echo "${ECHO_T}yes" >&6 | |
2826 | else | |
2827 | echo "$as_me:$LINENO: result: no" >&5 | |
2828 | echo "${ECHO_T}no" >&6 | |
2829 | fi | |
2830 | ||
2831 | ||
2832 | ||
2833 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2834 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2835 | no_cache=0 | |
2836 | ||
2837 | # Check whether --with-libpng or --without-libpng was given. | |
2838 | if test "${with_libpng+set}" = set; then | |
2839 | withval="$with_libpng" | |
2840 | ||
2841 | if test "$withval" = yes; then | |
2842 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2843 | elif test "$withval" = no; then | |
2844 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2845 | elif test "$withval" = sys; then | |
2846 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2847 | elif test "$withval" = builtin; then | |
2848 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2849 | else | |
2850 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2851 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2852 | { (exit 1); exit 1; }; } | |
2853 | fi | |
2854 | ||
2855 | else | |
2856 | ||
2857 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2858 | if test "x$LINE" != x ; then | |
2859 | eval "DEFAULT_$LINE" | |
2860 | else | |
2861 | no_cache=1 | |
2862 | fi | |
2863 | ||
2864 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2865 | ||
2866 | fi; | |
2867 | ||
2868 | eval "$ac_cv_use_libpng" | |
2869 | if test "$no_cache" != 1; then | |
2870 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2871 | fi | |
2872 | ||
2873 | if test "$wxUSE_LIBPNG" = yes; then | |
2874 | echo "$as_me:$LINENO: result: yes" >&5 | |
2875 | echo "${ECHO_T}yes" >&6 | |
2876 | elif test "$wxUSE_LIBPNG" = no; then | |
2877 | echo "$as_me:$LINENO: result: no" >&5 | |
2878 | echo "${ECHO_T}no" >&6 | |
2879 | elif test "$wxUSE_LIBPNG" = sys; then | |
2880 | echo "$as_me:$LINENO: result: system version" >&5 | |
2881 | echo "${ECHO_T}system version" >&6 | |
2882 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2883 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2884 | echo "${ECHO_T}builtin version" >&6 | |
2885 | else | |
2886 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2887 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2888 | { (exit 1); exit 1; }; } | |
2889 | fi | |
2890 | ||
2891 | ||
2892 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2893 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2894 | no_cache=0 | |
2895 | ||
2896 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2897 | if test "${with_libjpeg+set}" = set; then | |
2898 | withval="$with_libjpeg" | |
2899 | ||
2900 | if test "$withval" = yes; then | |
2901 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2902 | elif test "$withval" = no; then | |
2903 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2904 | elif test "$withval" = sys; then | |
2905 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2906 | elif test "$withval" = builtin; then | |
2907 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2908 | else | |
2909 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2910 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2911 | { (exit 1); exit 1; }; } | |
2912 | fi | |
2913 | ||
2914 | else | |
2915 | ||
2916 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2917 | if test "x$LINE" != x ; then | |
2918 | eval "DEFAULT_$LINE" | |
2919 | else | |
2920 | no_cache=1 | |
2921 | fi | |
2922 | ||
2923 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2924 | ||
2925 | fi; | |
2926 | ||
2927 | eval "$ac_cv_use_libjpeg" | |
2928 | if test "$no_cache" != 1; then | |
2929 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2930 | fi | |
2931 | ||
2932 | if test "$wxUSE_LIBJPEG" = yes; then | |
2933 | echo "$as_me:$LINENO: result: yes" >&5 | |
2934 | echo "${ECHO_T}yes" >&6 | |
2935 | elif test "$wxUSE_LIBJPEG" = no; then | |
2936 | echo "$as_me:$LINENO: result: no" >&5 | |
2937 | echo "${ECHO_T}no" >&6 | |
2938 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2939 | echo "$as_me:$LINENO: result: system version" >&5 | |
2940 | echo "${ECHO_T}system version" >&6 | |
2941 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2942 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2943 | echo "${ECHO_T}builtin version" >&6 | |
2944 | else | |
2945 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2946 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2947 | { (exit 1); exit 1; }; } | |
2948 | fi | |
2949 | ||
2950 | ||
2951 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2952 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2953 | no_cache=0 | |
2954 | ||
2955 | # Check whether --with-libtiff or --without-libtiff was given. | |
2956 | if test "${with_libtiff+set}" = set; then | |
2957 | withval="$with_libtiff" | |
2958 | ||
2959 | if test "$withval" = yes; then | |
2960 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2961 | elif test "$withval" = no; then | |
2962 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2963 | elif test "$withval" = sys; then | |
2964 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2965 | elif test "$withval" = builtin; then | |
2966 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2967 | else | |
2968 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2969 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2970 | { (exit 1); exit 1; }; } | |
2971 | fi | |
2972 | ||
2973 | else | |
2974 | ||
2975 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2976 | if test "x$LINE" != x ; then | |
2977 | eval "DEFAULT_$LINE" | |
2978 | else | |
2979 | no_cache=1 | |
2980 | fi | |
2981 | ||
2982 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2983 | ||
2984 | fi; | |
2985 | ||
2986 | eval "$ac_cv_use_libtiff" | |
2987 | if test "$no_cache" != 1; then | |
2988 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2989 | fi | |
2990 | ||
2991 | if test "$wxUSE_LIBTIFF" = yes; then | |
2992 | echo "$as_me:$LINENO: result: yes" >&5 | |
2993 | echo "${ECHO_T}yes" >&6 | |
2994 | elif test "$wxUSE_LIBTIFF" = no; then | |
2995 | echo "$as_me:$LINENO: result: no" >&5 | |
2996 | echo "${ECHO_T}no" >&6 | |
2997 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2998 | echo "$as_me:$LINENO: result: system version" >&5 | |
2999 | echo "${ECHO_T}system version" >&6 | |
3000 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
3001 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3002 | echo "${ECHO_T}builtin version" >&6 | |
3003 | else | |
3004 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3005 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3006 | { (exit 1); exit 1; }; } | |
3007 | fi | |
3008 | ||
3009 | ||
3010 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
3011 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
3012 | no_cache=0 | |
3013 | ||
3014 | # Check whether --with-libxpm or --without-libxpm was given. | |
3015 | if test "${with_libxpm+set}" = set; then | |
3016 | withval="$with_libxpm" | |
3017 | ||
3018 | if test "$withval" = yes; then | |
3019 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3020 | elif test "$withval" = no; then | |
3021 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3022 | elif test "$withval" = sys; then | |
3023 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3024 | elif test "$withval" = builtin; then | |
3025 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3026 | else | |
3027 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3028 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3029 | { (exit 1); exit 1; }; } | |
3030 | fi | |
3031 | ||
3032 | else | |
3033 | ||
3034 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3035 | if test "x$LINE" != x ; then | |
3036 | eval "DEFAULT_$LINE" | |
3037 | else | |
3038 | no_cache=1 | |
3039 | fi | |
3040 | ||
3041 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3042 | ||
3043 | fi; | |
3044 | ||
3045 | eval "$ac_cv_use_libxpm" | |
3046 | if test "$no_cache" != 1; then | |
3047 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3048 | fi | |
3049 | ||
3050 | if test "$wxUSE_LIBXPM" = yes; then | |
3051 | echo "$as_me:$LINENO: result: yes" >&5 | |
3052 | echo "${ECHO_T}yes" >&6 | |
3053 | elif test "$wxUSE_LIBXPM" = no; then | |
3054 | echo "$as_me:$LINENO: result: no" >&5 | |
3055 | echo "${ECHO_T}no" >&6 | |
3056 | elif test "$wxUSE_LIBXPM" = sys; then | |
3057 | echo "$as_me:$LINENO: result: system version" >&5 | |
3058 | echo "${ECHO_T}system version" >&6 | |
3059 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3060 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3061 | echo "${ECHO_T}builtin version" >&6 | |
3062 | else | |
3063 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3064 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3065 | { (exit 1); exit 1; }; } | |
3066 | fi | |
3067 | ||
3068 | ||
1c14217d VZ |
3069 | withstring= |
3070 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3071 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3072 | no_cache=0 |
3073 | ||
3074 | # Check whether --with-libmspack or --without-libmspack was given. | |
3075 | if test "${with_libmspack+set}" = set; then | |
3076 | withval="$with_libmspack" | |
3077 | ||
3078 | if test "$withval" = yes; then | |
3079 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3080 | else | |
3081 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3082 | fi | |
3083 | ||
3084 | else | |
3085 | ||
3086 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3087 | if test "x$LINE" != x ; then | |
3088 | eval "DEFAULT_$LINE" | |
3089 | else | |
3090 | no_cache=1 | |
3091 | fi | |
3092 | ||
3093 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3094 | ||
3095 | fi; | |
3096 | ||
3097 | eval "$ac_cv_use_libmspack" | |
3098 | if test "$no_cache" != 1; then | |
3099 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3100 | fi | |
3101 | ||
3102 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3103 | echo "$as_me:$LINENO: result: yes" >&5 | |
3104 | echo "${ECHO_T}yes" >&6 | |
3105 | else | |
3106 | echo "$as_me:$LINENO: result: no" >&5 | |
3107 | echo "${ECHO_T}no" >&6 | |
3108 | fi | |
3109 | ||
3110 | ||
1c14217d VZ |
3111 | withstring= |
3112 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3113 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3114 | no_cache=0 |
3115 | ||
3116 | # Check whether --with-sdl or --without-sdl was given. | |
3117 | if test "${with_sdl+set}" = set; then | |
3118 | withval="$with_sdl" | |
3119 | ||
3120 | if test "$withval" = yes; then | |
3121 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3122 | else | |
3123 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3124 | fi | |
3125 | ||
3126 | else | |
3127 | ||
3128 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3129 | if test "x$LINE" != x ; then | |
3130 | eval "DEFAULT_$LINE" | |
3131 | else | |
3132 | no_cache=1 | |
3133 | fi | |
3134 | ||
3135 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3136 | ||
3137 | fi; | |
3138 | ||
3139 | eval "$ac_cv_use_sdl" | |
3140 | if test "$no_cache" != 1; then | |
3141 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3142 | fi | |
3143 | ||
3144 | if test "$wxUSE_LIBSDL" = yes; then | |
3145 | echo "$as_me:$LINENO: result: yes" >&5 | |
3146 | echo "${ECHO_T}yes" >&6 | |
3147 | else | |
3148 | echo "$as_me:$LINENO: result: no" >&5 | |
3149 | echo "${ECHO_T}no" >&6 | |
3150 | fi | |
3151 | ||
3152 | ||
1c14217d VZ |
3153 | withstring= |
3154 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3155 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3156 | no_cache=0 |
3157 | ||
3158 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3159 | if test "${with_gnomeprint+set}" = set; then | |
3160 | withval="$with_gnomeprint" | |
3161 | ||
3162 | if test "$withval" = yes; then | |
3163 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3164 | else | |
3165 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3166 | fi | |
3167 | ||
3168 | else | |
3169 | ||
3170 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3171 | if test "x$LINE" != x ; then | |
3172 | eval "DEFAULT_$LINE" | |
3173 | else | |
3174 | no_cache=1 | |
3175 | fi | |
3176 | ||
3177 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3178 | ||
3179 | fi; | |
3180 | ||
3181 | eval "$ac_cv_use_gnomeprint" | |
3182 | if test "$no_cache" != 1; then | |
3183 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3184 | fi | |
3185 | ||
3186 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3187 | echo "$as_me:$LINENO: result: yes" >&5 | |
3188 | echo "${ECHO_T}yes" >&6 | |
3189 | else | |
3190 | echo "$as_me:$LINENO: result: no" >&5 | |
3191 | echo "${ECHO_T}no" >&6 | |
3192 | fi | |
3193 | ||
3194 | ||
3565d135 RR |
3195 | withstring= |
3196 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3197 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3198 | no_cache=0 | |
3199 | ||
3200 | # Check whether --with-hildon or --without-hildon was given. | |
3201 | if test "${with_hildon+set}" = set; then | |
3202 | withval="$with_hildon" | |
3203 | ||
3204 | if test "$withval" = yes; then | |
3205 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3206 | else | |
3207 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3208 | fi | |
3209 | ||
3210 | else | |
3211 | ||
3212 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3213 | if test "x$LINE" != x ; then | |
3214 | eval "DEFAULT_$LINE" | |
3215 | else | |
3216 | no_cache=1 | |
3217 | fi | |
3218 | ||
3219 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3220 | ||
3221 | fi; | |
3222 | ||
3223 | eval "$ac_cv_use_hildon" | |
3224 | if test "$no_cache" != 1; then | |
3225 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3226 | fi | |
3227 | ||
3228 | if test "$wxUSE_LIBHILDON" = yes; then | |
3229 | echo "$as_me:$LINENO: result: yes" >&5 | |
3230 | echo "${ECHO_T}yes" >&6 | |
3231 | else | |
3232 | echo "$as_me:$LINENO: result: no" >&5 | |
3233 | echo "${ECHO_T}no" >&6 | |
3234 | fi | |
3235 | ||
3236 | ||
1c14217d VZ |
3237 | withstring= |
3238 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3239 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3240 | no_cache=0 |
3241 | ||
3242 | # Check whether --with-opengl or --without-opengl was given. | |
3243 | if test "${with_opengl+set}" = set; then | |
3244 | withval="$with_opengl" | |
3245 | ||
3246 | if test "$withval" = yes; then | |
3247 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3248 | else | |
3249 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3250 | fi | |
3251 | ||
3252 | else | |
3253 | ||
3254 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3255 | if test "x$LINE" != x ; then | |
3256 | eval "DEFAULT_$LINE" | |
3257 | else | |
3258 | no_cache=1 | |
3259 | fi | |
3260 | ||
3261 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3262 | ||
3263 | fi; | |
3264 | ||
3265 | eval "$ac_cv_use_opengl" | |
3266 | if test "$no_cache" != 1; then | |
3267 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3268 | fi | |
3269 | ||
3270 | if test "$wxUSE_OPENGL" = yes; then | |
3271 | echo "$as_me:$LINENO: result: yes" >&5 | |
3272 | echo "${ECHO_T}yes" >&6 | |
3273 | else | |
3274 | echo "$as_me:$LINENO: result: no" >&5 | |
3275 | echo "${ECHO_T}no" >&6 | |
3276 | fi | |
3277 | ||
3278 | ||
3279 | fi | |
3280 | ||
3281 | ||
1c14217d VZ |
3282 | withstring= |
3283 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3284 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3285 | no_cache=0 |
3286 | ||
3287 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3288 | if test "${with_dmalloc+set}" = set; then | |
3289 | withval="$with_dmalloc" | |
3290 | ||
3291 | if test "$withval" = yes; then | |
3292 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3293 | else | |
3294 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3295 | fi | |
3296 | ||
3297 | else | |
3298 | ||
3299 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3300 | if test "x$LINE" != x ; then | |
3301 | eval "DEFAULT_$LINE" | |
3302 | else | |
3303 | no_cache=1 | |
3304 | fi | |
3305 | ||
3306 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3307 | ||
3308 | fi; | |
3309 | ||
3310 | eval "$ac_cv_use_dmalloc" | |
3311 | if test "$no_cache" != 1; then | |
3312 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3313 | fi | |
3314 | ||
3315 | if test "$wxUSE_DMALLOC" = yes; then | |
3316 | echo "$as_me:$LINENO: result: yes" >&5 | |
3317 | echo "${ECHO_T}yes" >&6 | |
3318 | else | |
3319 | echo "$as_me:$LINENO: result: no" >&5 | |
3320 | echo "${ECHO_T}no" >&6 | |
3321 | fi | |
3322 | ||
3323 | ||
3324 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3325 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3326 | no_cache=0 | |
3327 | ||
3328 | # Check whether --with-regex or --without-regex was given. | |
3329 | if test "${with_regex+set}" = set; then | |
3330 | withval="$with_regex" | |
3331 | ||
3332 | if test "$withval" = yes; then | |
3333 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3334 | elif test "$withval" = no; then | |
3335 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3336 | elif test "$withval" = sys; then | |
3337 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3338 | elif test "$withval" = builtin; then | |
3339 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3340 | else | |
3341 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3342 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3343 | { (exit 1); exit 1; }; } | |
3344 | fi | |
3345 | ||
3346 | else | |
3347 | ||
3348 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3349 | if test "x$LINE" != x ; then | |
3350 | eval "DEFAULT_$LINE" | |
3351 | else | |
3352 | no_cache=1 | |
3353 | fi | |
3354 | ||
3355 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3356 | ||
3357 | fi; | |
3358 | ||
3359 | eval "$ac_cv_use_regex" | |
3360 | if test "$no_cache" != 1; then | |
3361 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3362 | fi | |
3363 | ||
3364 | if test "$wxUSE_REGEX" = yes; then | |
3365 | echo "$as_me:$LINENO: result: yes" >&5 | |
3366 | echo "${ECHO_T}yes" >&6 | |
3367 | elif test "$wxUSE_REGEX" = no; then | |
3368 | echo "$as_me:$LINENO: result: no" >&5 | |
3369 | echo "${ECHO_T}no" >&6 | |
3370 | elif test "$wxUSE_REGEX" = sys; then | |
3371 | echo "$as_me:$LINENO: result: system version" >&5 | |
3372 | echo "${ECHO_T}system version" >&6 | |
3373 | elif test "$wxUSE_REGEX" = builtin; then | |
3374 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3375 | echo "${ECHO_T}builtin version" >&6 | |
3376 | else | |
3377 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3378 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3379 | { (exit 1); exit 1; }; } | |
3380 | fi | |
3381 | ||
3382 | ||
3383 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3384 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3385 | no_cache=0 | |
3386 | ||
3387 | # Check whether --with-zlib or --without-zlib was given. | |
3388 | if test "${with_zlib+set}" = set; then | |
3389 | withval="$with_zlib" | |
3390 | ||
3391 | if test "$withval" = yes; then | |
3392 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3393 | elif test "$withval" = no; then | |
3394 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3395 | elif test "$withval" = sys; then | |
3396 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3397 | elif test "$withval" = builtin; then | |
3398 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3399 | else | |
3400 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3401 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3402 | { (exit 1); exit 1; }; } | |
3403 | fi | |
3404 | ||
3405 | else | |
3406 | ||
3407 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3408 | if test "x$LINE" != x ; then | |
3409 | eval "DEFAULT_$LINE" | |
3410 | else | |
3411 | no_cache=1 | |
3412 | fi | |
3413 | ||
3414 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3415 | ||
3416 | fi; | |
3417 | ||
3418 | eval "$ac_cv_use_zlib" | |
3419 | if test "$no_cache" != 1; then | |
3420 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3421 | fi | |
3422 | ||
3423 | if test "$wxUSE_ZLIB" = yes; then | |
3424 | echo "$as_me:$LINENO: result: yes" >&5 | |
3425 | echo "${ECHO_T}yes" >&6 | |
3426 | elif test "$wxUSE_ZLIB" = no; then | |
3427 | echo "$as_me:$LINENO: result: no" >&5 | |
3428 | echo "${ECHO_T}no" >&6 | |
3429 | elif test "$wxUSE_ZLIB" = sys; then | |
3430 | echo "$as_me:$LINENO: result: system version" >&5 | |
3431 | echo "${ECHO_T}system version" >&6 | |
3432 | elif test "$wxUSE_ZLIB" = builtin; then | |
3433 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3434 | echo "${ECHO_T}builtin version" >&6 | |
3435 | else | |
3436 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3437 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3438 | { (exit 1); exit 1; }; } | |
3439 | fi | |
3440 | ||
3441 | ||
3442 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3443 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3444 | no_cache=0 | |
3445 | ||
3446 | # Check whether --with-odbc or --without-odbc was given. | |
3447 | if test "${with_odbc+set}" = set; then | |
3448 | withval="$with_odbc" | |
3449 | ||
3450 | if test "$withval" = yes; then | |
3451 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3452 | elif test "$withval" = no; then | |
3453 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3454 | elif test "$withval" = sys; then | |
3455 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3456 | elif test "$withval" = builtin; then | |
3457 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3458 | else | |
3459 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3460 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3461 | { (exit 1); exit 1; }; } | |
3462 | fi | |
3463 | ||
3464 | else | |
3465 | ||
3466 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3467 | if test "x$LINE" != x ; then | |
3468 | eval "DEFAULT_$LINE" | |
3469 | else | |
3470 | no_cache=1 | |
3471 | fi | |
3472 | ||
3473 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3474 | ||
3475 | fi; | |
3476 | ||
3477 | eval "$ac_cv_use_odbc" | |
3478 | if test "$no_cache" != 1; then | |
3479 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3480 | fi | |
3481 | ||
3482 | if test "$wxUSE_ODBC" = yes; then | |
3483 | echo "$as_me:$LINENO: result: yes" >&5 | |
3484 | echo "${ECHO_T}yes" >&6 | |
3485 | elif test "$wxUSE_ODBC" = no; then | |
3486 | echo "$as_me:$LINENO: result: no" >&5 | |
3487 | echo "${ECHO_T}no" >&6 | |
3488 | elif test "$wxUSE_ODBC" = sys; then | |
3489 | echo "$as_me:$LINENO: result: system version" >&5 | |
3490 | echo "${ECHO_T}system version" >&6 | |
3491 | elif test "$wxUSE_ODBC" = builtin; then | |
3492 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3493 | echo "${ECHO_T}builtin version" >&6 | |
3494 | else | |
3495 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3496 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3497 | { (exit 1); exit 1; }; } | |
3498 | fi | |
3499 | ||
3500 | ||
3501 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3502 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3503 | no_cache=0 | |
3504 | ||
3505 | # Check whether --with-expat or --without-expat was given. | |
3506 | if test "${with_expat+set}" = set; then | |
3507 | withval="$with_expat" | |
3508 | ||
3509 | if test "$withval" = yes; then | |
3510 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3511 | elif test "$withval" = no; then | |
3512 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3513 | elif test "$withval" = sys; then | |
3514 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3515 | elif test "$withval" = builtin; then | |
3516 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3517 | else | |
3518 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3519 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3520 | { (exit 1); exit 1; }; } | |
3521 | fi | |
3522 | ||
3523 | else | |
3524 | ||
3525 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3526 | if test "x$LINE" != x ; then | |
3527 | eval "DEFAULT_$LINE" | |
3528 | else | |
3529 | no_cache=1 | |
3530 | fi | |
3531 | ||
3532 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3533 | ||
3534 | fi; | |
3535 | ||
3536 | eval "$ac_cv_use_expat" | |
3537 | if test "$no_cache" != 1; then | |
3538 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3539 | fi | |
3540 | ||
3541 | if test "$wxUSE_EXPAT" = yes; then | |
3542 | echo "$as_me:$LINENO: result: yes" >&5 | |
3543 | echo "${ECHO_T}yes" >&6 | |
3544 | elif test "$wxUSE_EXPAT" = no; then | |
3545 | echo "$as_me:$LINENO: result: no" >&5 | |
3546 | echo "${ECHO_T}no" >&6 | |
3547 | elif test "$wxUSE_EXPAT" = sys; then | |
3548 | echo "$as_me:$LINENO: result: system version" >&5 | |
3549 | echo "${ECHO_T}system version" >&6 | |
3550 | elif test "$wxUSE_EXPAT" = builtin; then | |
3551 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3552 | echo "${ECHO_T}builtin version" >&6 | |
3553 | else | |
3554 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3555 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3556 | { (exit 1); exit 1; }; } | |
3557 | fi | |
3558 | ||
3559 | ||
3560 | ||
3561 | ||
3562 | enablestring= | |
3563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3564 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3565 | no_cache=0 | |
3566 | # Check whether --enable-shared or --disable-shared was given. | |
3567 | if test "${enable_shared+set}" = set; then | |
3568 | enableval="$enable_shared" | |
3569 | ||
3570 | if test "$enableval" = yes; then | |
3571 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3572 | else | |
3573 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3574 | fi | |
3575 | ||
3576 | else | |
3577 | ||
3578 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3579 | if test "x$LINE" != x ; then | |
3580 | eval "DEFAULT_$LINE" | |
3581 | else | |
3582 | no_cache=1 | |
3583 | fi | |
3584 | ||
3585 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3586 | ||
3587 | fi; | |
3588 | ||
3589 | eval "$ac_cv_use_shared" | |
3590 | if test "$no_cache" != 1; then | |
3591 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3592 | fi | |
3593 | ||
3594 | if test "$wxUSE_SHARED" = yes; then | |
3595 | echo "$as_me:$LINENO: result: yes" >&5 | |
3596 | echo "${ECHO_T}yes" >&6 | |
3597 | else | |
3598 | echo "$as_me:$LINENO: result: no" >&5 | |
3599 | echo "${ECHO_T}no" >&6 | |
3600 | fi | |
3601 | ||
3602 | ||
3603 | enablestring= | |
3604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3605 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3606 | no_cache=0 | |
3607 | # Check whether --enable-optimise or --disable-optimise was given. | |
3608 | if test "${enable_optimise+set}" = set; then | |
3609 | enableval="$enable_optimise" | |
3610 | ||
3611 | if test "$enableval" = yes; then | |
3612 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3613 | else | |
3614 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3615 | fi | |
3616 | ||
3617 | else | |
3618 | ||
3619 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3620 | if test "x$LINE" != x ; then | |
3621 | eval "DEFAULT_$LINE" | |
3622 | else | |
3623 | no_cache=1 | |
3624 | fi | |
3625 | ||
3626 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3627 | ||
3628 | fi; | |
3629 | ||
3630 | eval "$ac_cv_use_optimise" | |
3631 | if test "$no_cache" != 1; then | |
3632 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3633 | fi | |
3634 | ||
3635 | if test "$wxUSE_OPTIMISE" = yes; then | |
3636 | echo "$as_me:$LINENO: result: yes" >&5 | |
3637 | echo "${ECHO_T}yes" >&6 | |
3638 | else | |
3639 | echo "$as_me:$LINENO: result: no" >&5 | |
3640 | echo "${ECHO_T}no" >&6 | |
3641 | fi | |
3642 | ||
3643 | ||
3644 | enablestring= | |
3645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3646 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3647 | no_cache=0 | |
3648 | # Check whether --enable-debug or --disable-debug was given. | |
3649 | if test "${enable_debug+set}" = set; then | |
3650 | enableval="$enable_debug" | |
3651 | ||
3652 | if test "$enableval" = yes; then | |
3653 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3654 | else | |
3655 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3656 | fi | |
3657 | ||
3658 | else | |
3659 | ||
3660 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3661 | if test "x$LINE" != x ; then | |
3662 | eval "DEFAULT_$LINE" | |
3663 | else | |
3664 | no_cache=1 | |
3665 | fi | |
3666 | ||
3667 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3668 | ||
3669 | fi; | |
3670 | ||
3671 | eval "$ac_cv_use_debug" | |
3672 | if test "$no_cache" != 1; then | |
3673 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3674 | fi | |
3675 | ||
3676 | if test "$wxUSE_DEBUG" = yes; then | |
3677 | echo "$as_me:$LINENO: result: yes" >&5 | |
3678 | echo "${ECHO_T}yes" >&6 | |
3679 | else | |
3680 | echo "$as_me:$LINENO: result: no" >&5 | |
3681 | echo "${ECHO_T}no" >&6 | |
3682 | fi | |
3683 | ||
3684 | ||
3685 | enablestring= | |
3686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3687 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3688 | no_cache=0 | |
3689 | # Check whether --enable-stl or --disable-stl was given. | |
3690 | if test "${enable_stl+set}" = set; then | |
3691 | enableval="$enable_stl" | |
3692 | ||
3693 | if test "$enableval" = yes; then | |
3694 | ac_cv_use_stl='wxUSE_STL=yes' | |
3695 | else | |
3696 | ac_cv_use_stl='wxUSE_STL=no' | |
3697 | fi | |
3698 | ||
3699 | else | |
3700 | ||
3701 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3702 | if test "x$LINE" != x ; then | |
3703 | eval "DEFAULT_$LINE" | |
3704 | else | |
3705 | no_cache=1 | |
3706 | fi | |
3707 | ||
3708 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3709 | ||
3710 | fi; | |
3711 | ||
3712 | eval "$ac_cv_use_stl" | |
3713 | if test "$no_cache" != 1; then | |
3714 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3715 | fi | |
3716 | ||
3717 | if test "$wxUSE_STL" = yes; then | |
3718 | echo "$as_me:$LINENO: result: yes" >&5 | |
3719 | echo "${ECHO_T}yes" >&6 | |
3720 | else | |
3721 | echo "$as_me:$LINENO: result: no" >&5 | |
3722 | echo "${ECHO_T}no" >&6 | |
3723 | fi | |
3724 | ||
3725 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3726 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3727 | |
3728 | enablestring= | |
3729 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3730 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3731 | no_cache=0 | |
3732 | # Check whether --enable-omf or --disable-omf was given. | |
3733 | if test "${enable_omf+set}" = set; then | |
3734 | enableval="$enable_omf" | |
3735 | ||
3736 | if test "$enableval" = yes; then | |
3737 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3738 | else | |
3739 | ac_cv_use_omf='wxUSE_OMF=no' | |
3740 | fi | |
3741 | ||
3742 | else | |
3743 | ||
3744 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3745 | if test "x$LINE" != x ; then | |
3746 | eval "DEFAULT_$LINE" | |
3747 | else | |
3748 | no_cache=1 | |
3749 | fi | |
3750 | ||
3751 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3752 | ||
3753 | fi; | |
3754 | ||
3755 | eval "$ac_cv_use_omf" | |
3756 | if test "$no_cache" != 1; then | |
3757 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3758 | fi | |
3759 | ||
3760 | if test "$wxUSE_OMF" = yes; then | |
3761 | echo "$as_me:$LINENO: result: yes" >&5 | |
3762 | echo "${ECHO_T}yes" >&6 | |
3763 | else | |
3764 | echo "$as_me:$LINENO: result: no" >&5 | |
3765 | echo "${ECHO_T}no" >&6 | |
3766 | fi | |
3767 | ||
3768 | fi | |
3769 | ||
3770 | if test "$wxUSE_DEBUG" = "yes"; then | |
3771 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3772 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3773 | BUILD=debug | |
3774 | elif test "$wxUSE_DEBUG" = "no"; then | |
3775 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3776 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3777 | BUILD=release | |
3778 | fi | |
3779 | ||
3780 | ||
3781 | enablestring= | |
3782 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3783 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3784 | no_cache=0 | |
3785 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3786 | if test "${enable_debug_flag+set}" = set; then | |
3787 | enableval="$enable_debug_flag" | |
3788 | ||
3789 | if test "$enableval" = yes; then | |
3790 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3791 | else | |
3792 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3793 | fi | |
3794 | ||
3795 | else | |
3796 | ||
3797 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3798 | if test "x$LINE" != x ; then | |
3799 | eval "DEFAULT_$LINE" | |
3800 | else | |
3801 | no_cache=1 | |
3802 | fi | |
3803 | ||
3804 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3805 | ||
3806 | fi; | |
3807 | ||
3808 | eval "$ac_cv_use_debug_flag" | |
3809 | if test "$no_cache" != 1; then | |
3810 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3811 | fi | |
3812 | ||
3813 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3814 | echo "$as_me:$LINENO: result: yes" >&5 | |
3815 | echo "${ECHO_T}yes" >&6 | |
3816 | else | |
3817 | echo "$as_me:$LINENO: result: no" >&5 | |
3818 | echo "${ECHO_T}no" >&6 | |
3819 | fi | |
3820 | ||
3821 | ||
3822 | enablestring= | |
3823 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3824 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3825 | no_cache=0 | |
3826 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3827 | if test "${enable_debug_info+set}" = set; then | |
3828 | enableval="$enable_debug_info" | |
3829 | ||
3830 | if test "$enableval" = yes; then | |
3831 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3832 | else | |
3833 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3834 | fi | |
3835 | ||
3836 | else | |
3837 | ||
3838 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3839 | if test "x$LINE" != x ; then | |
3840 | eval "DEFAULT_$LINE" | |
3841 | else | |
3842 | no_cache=1 | |
3843 | fi | |
3844 | ||
3845 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3846 | ||
3847 | fi; | |
3848 | ||
3849 | eval "$ac_cv_use_debug_info" | |
3850 | if test "$no_cache" != 1; then | |
3851 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3852 | fi | |
3853 | ||
3854 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3855 | echo "$as_me:$LINENO: result: yes" >&5 | |
3856 | echo "${ECHO_T}yes" >&6 | |
3857 | else | |
3858 | echo "$as_me:$LINENO: result: no" >&5 | |
3859 | echo "${ECHO_T}no" >&6 | |
3860 | fi | |
3861 | ||
3862 | ||
3863 | enablestring= | |
3864 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3865 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3866 | no_cache=0 | |
3867 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3868 | if test "${enable_debug_gdb+set}" = set; then | |
3869 | enableval="$enable_debug_gdb" | |
3870 | ||
3871 | if test "$enableval" = yes; then | |
3872 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3873 | else | |
3874 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3875 | fi | |
3876 | ||
3877 | else | |
3878 | ||
3879 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3880 | if test "x$LINE" != x ; then | |
3881 | eval "DEFAULT_$LINE" | |
3882 | else | |
3883 | no_cache=1 | |
3884 | fi | |
3885 | ||
3886 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3887 | ||
3888 | fi; | |
3889 | ||
3890 | eval "$ac_cv_use_debug_gdb" | |
3891 | if test "$no_cache" != 1; then | |
3892 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3893 | fi | |
3894 | ||
3895 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3896 | echo "$as_me:$LINENO: result: yes" >&5 | |
3897 | echo "${ECHO_T}yes" >&6 | |
3898 | else | |
3899 | echo "$as_me:$LINENO: result: no" >&5 | |
3900 | echo "${ECHO_T}no" >&6 | |
3901 | fi | |
3902 | ||
3903 | ||
3904 | enablestring= | |
3905 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3906 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3907 | no_cache=0 | |
3908 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3909 | if test "${enable_debug_cntxt+set}" = set; then | |
3910 | enableval="$enable_debug_cntxt" | |
3911 | ||
3912 | if test "$enableval" = yes; then | |
3913 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3914 | else | |
3915 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3916 | fi | |
3917 | ||
3918 | else | |
3919 | ||
3920 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3921 | if test "x$LINE" != x ; then | |
3922 | eval "DEFAULT_$LINE" | |
3923 | else | |
3924 | no_cache=1 | |
3925 | fi | |
3926 | ||
3927 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3928 | ||
3929 | fi; | |
3930 | ||
3931 | eval "$ac_cv_use_debug_cntxt" | |
3932 | if test "$no_cache" != 1; then | |
3933 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3934 | fi | |
3935 | ||
3936 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3937 | echo "$as_me:$LINENO: result: yes" >&5 | |
3938 | echo "${ECHO_T}yes" >&6 | |
3939 | else | |
3940 | echo "$as_me:$LINENO: result: no" >&5 | |
3941 | echo "${ECHO_T}no" >&6 | |
3942 | fi | |
3943 | ||
3944 | ||
3945 | enablestring= | |
3946 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3947 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3948 | no_cache=0 | |
3949 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3950 | if test "${enable_mem_tracing+set}" = set; then | |
3951 | enableval="$enable_mem_tracing" | |
3952 | ||
3953 | if test "$enableval" = yes; then | |
3954 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3955 | else | |
3956 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3957 | fi | |
3958 | ||
3959 | else | |
3960 | ||
3961 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3962 | if test "x$LINE" != x ; then | |
3963 | eval "DEFAULT_$LINE" | |
3964 | else | |
3965 | no_cache=1 | |
3966 | fi | |
3967 | ||
3968 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3969 | ||
3970 | fi; | |
3971 | ||
3972 | eval "$ac_cv_use_mem_tracing" | |
3973 | if test "$no_cache" != 1; then | |
3974 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3975 | fi | |
3976 | ||
3977 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3978 | echo "$as_me:$LINENO: result: yes" >&5 | |
3979 | echo "${ECHO_T}yes" >&6 | |
3980 | else | |
3981 | echo "$as_me:$LINENO: result: no" >&5 | |
3982 | echo "${ECHO_T}no" >&6 | |
3983 | fi | |
3984 | ||
3985 | ||
3986 | enablestring= | |
3987 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3988 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3989 | no_cache=0 | |
3990 | # Check whether --enable-profile or --disable-profile was given. | |
3991 | if test "${enable_profile+set}" = set; then | |
3992 | enableval="$enable_profile" | |
3993 | ||
3994 | if test "$enableval" = yes; then | |
3995 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3996 | else | |
3997 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3998 | fi | |
3999 | ||
4000 | else | |
4001 | ||
4002 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
4003 | if test "x$LINE" != x ; then | |
4004 | eval "DEFAULT_$LINE" | |
4005 | else | |
4006 | no_cache=1 | |
4007 | fi | |
4008 | ||
4009 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
4010 | ||
4011 | fi; | |
4012 | ||
4013 | eval "$ac_cv_use_profile" | |
4014 | if test "$no_cache" != 1; then | |
4015 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4016 | fi | |
4017 | ||
4018 | if test "$wxUSE_PROFILE" = yes; then | |
4019 | echo "$as_me:$LINENO: result: yes" >&5 | |
4020 | echo "${ECHO_T}yes" >&6 | |
4021 | else | |
4022 | echo "$as_me:$LINENO: result: no" >&5 | |
4023 | echo "${ECHO_T}no" >&6 | |
4024 | fi | |
4025 | ||
4026 | ||
4027 | enablestring= | |
4028 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4029 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4030 | no_cache=0 | |
4031 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4032 | if test "${enable_no_rtti+set}" = set; then | |
4033 | enableval="$enable_no_rtti" | |
4034 | ||
4035 | if test "$enableval" = yes; then | |
4036 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4037 | else | |
4038 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4039 | fi | |
4040 | ||
4041 | else | |
4042 | ||
4043 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4044 | if test "x$LINE" != x ; then | |
4045 | eval "DEFAULT_$LINE" | |
4046 | else | |
4047 | no_cache=1 | |
4048 | fi | |
4049 | ||
4050 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4051 | ||
4052 | fi; | |
4053 | ||
4054 | eval "$ac_cv_use_no_rtti" | |
4055 | if test "$no_cache" != 1; then | |
4056 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4057 | fi | |
4058 | ||
4059 | if test "$wxUSE_NO_RTTI" = yes; then | |
4060 | echo "$as_me:$LINENO: result: yes" >&5 | |
4061 | echo "${ECHO_T}yes" >&6 | |
4062 | else | |
4063 | echo "$as_me:$LINENO: result: no" >&5 | |
4064 | echo "${ECHO_T}no" >&6 | |
4065 | fi | |
4066 | ||
4067 | ||
4068 | enablestring= | |
4069 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4070 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4071 | no_cache=0 | |
4072 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4073 | if test "${enable_no_exceptions+set}" = set; then | |
4074 | enableval="$enable_no_exceptions" | |
4075 | ||
4076 | if test "$enableval" = yes; then | |
4077 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4078 | else | |
4079 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4080 | fi | |
4081 | ||
4082 | else | |
4083 | ||
4084 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4085 | if test "x$LINE" != x ; then | |
4086 | eval "DEFAULT_$LINE" | |
4087 | else | |
4088 | no_cache=1 | |
4089 | fi | |
4090 | ||
4091 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4092 | ||
4093 | fi; | |
4094 | ||
4095 | eval "$ac_cv_use_no_exceptions" | |
4096 | if test "$no_cache" != 1; then | |
4097 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4098 | fi | |
4099 | ||
4100 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4101 | echo "$as_me:$LINENO: result: yes" >&5 | |
4102 | echo "${ECHO_T}yes" >&6 | |
4103 | else | |
4104 | echo "$as_me:$LINENO: result: no" >&5 | |
4105 | echo "${ECHO_T}no" >&6 | |
4106 | fi | |
4107 | ||
4108 | ||
4109 | enablestring= | |
4110 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4111 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4112 | no_cache=0 | |
4113 | # Check whether --enable-permissive or --disable-permissive was given. | |
4114 | if test "${enable_permissive+set}" = set; then | |
4115 | enableval="$enable_permissive" | |
4116 | ||
4117 | if test "$enableval" = yes; then | |
4118 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4119 | else | |
4120 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4121 | fi | |
4122 | ||
4123 | else | |
4124 | ||
4125 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4126 | if test "x$LINE" != x ; then | |
4127 | eval "DEFAULT_$LINE" | |
4128 | else | |
4129 | no_cache=1 | |
4130 | fi | |
4131 | ||
4132 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4133 | ||
4134 | fi; | |
4135 | ||
4136 | eval "$ac_cv_use_permissive" | |
4137 | if test "$no_cache" != 1; then | |
4138 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4139 | fi | |
4140 | ||
4141 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4142 | echo "$as_me:$LINENO: result: yes" >&5 | |
4143 | echo "${ECHO_T}yes" >&6 | |
4144 | else | |
4145 | echo "$as_me:$LINENO: result: no" >&5 | |
4146 | echo "${ECHO_T}no" >&6 | |
4147 | fi | |
4148 | ||
4149 | ||
4150 | enablestring= | |
4151 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4152 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4153 | no_cache=0 | |
4154 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4155 | if test "${enable_no_deps+set}" = set; then | |
4156 | enableval="$enable_no_deps" | |
4157 | ||
4158 | if test "$enableval" = yes; then | |
4159 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4160 | else | |
4161 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4162 | fi | |
4163 | ||
4164 | else | |
4165 | ||
4166 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4167 | if test "x$LINE" != x ; then | |
4168 | eval "DEFAULT_$LINE" | |
4169 | else | |
4170 | no_cache=1 | |
4171 | fi | |
4172 | ||
4173 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4174 | ||
4175 | fi; | |
4176 | ||
4177 | eval "$ac_cv_use_no_deps" | |
4178 | if test "$no_cache" != 1; then | |
4179 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4180 | fi | |
4181 | ||
4182 | if test "$wxUSE_NO_DEPS" = yes; then | |
4183 | echo "$as_me:$LINENO: result: yes" >&5 | |
4184 | echo "${ECHO_T}yes" >&6 | |
4185 | else | |
4186 | echo "$as_me:$LINENO: result: no" >&5 | |
4187 | echo "${ECHO_T}no" >&6 | |
4188 | fi | |
4189 | ||
4190 | ||
7afc46ab KO |
4191 | enablestring= |
4192 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5 | |
4193 | echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6 | |
4194 | no_cache=0 | |
4195 | # Check whether --enable-universal_binary or --disable-universal_binary was given. | |
4196 | if test "${enable_universal_binary+set}" = set; then | |
4197 | enableval="$enable_universal_binary" | |
4198 | ||
4199 | if test "$enableval" = yes; then | |
4200 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes' | |
4201 | else | |
4202 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no' | |
4203 | fi | |
4204 | ||
4205 | else | |
4206 | ||
4207 | LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}` | |
4208 | if test "x$LINE" != x ; then | |
4209 | eval "DEFAULT_$LINE" | |
4210 | else | |
4211 | no_cache=1 | |
4212 | fi | |
4213 | ||
4214 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY | |
4215 | ||
4216 | fi; | |
4217 | ||
4218 | eval "$ac_cv_use_universal_binary" | |
4219 | if test "$no_cache" != 1; then | |
4220 | echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp | |
4221 | fi | |
4222 | ||
4223 | if test "$wxUSE_UNIVERSAL_BINARY" = yes; then | |
4224 | echo "$as_me:$LINENO: result: yes" >&5 | |
4225 | echo "${ECHO_T}yes" >&6 | |
4226 | else | |
4227 | echo "$as_me:$LINENO: result: no" >&5 | |
4228 | echo "${ECHO_T}no" >&6 | |
4229 | fi | |
4230 | ||
4231 | ||
a848cd7e | 4232 | |
dee1a63f MB |
4233 | enablestring=enable |
4234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4235 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4236 | no_cache=0 |
dee1a63f MB |
4237 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4238 | if test "${enable_compat24+set}" = set; then | |
4239 | enableval="$enable_compat24" | |
a848cd7e SC |
4240 | |
4241 | if test "$enableval" = yes; then | |
dee1a63f | 4242 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4243 | else |
dee1a63f | 4244 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4245 | fi |
4246 | ||
4247 | else | |
4248 | ||
dee1a63f | 4249 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4250 | if test "x$LINE" != x ; then |
4251 | eval "DEFAULT_$LINE" | |
4252 | else | |
4253 | no_cache=1 | |
4254 | fi | |
4255 | ||
dee1a63f | 4256 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4257 | |
4258 | fi; | |
4259 | ||
dee1a63f | 4260 | eval "$ac_cv_use_compat24" |
a848cd7e | 4261 | if test "$no_cache" != 1; then |
dee1a63f | 4262 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4263 | fi |
4264 | ||
dee1a63f | 4265 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4266 | echo "$as_me:$LINENO: result: yes" >&5 |
4267 | echo "${ECHO_T}yes" >&6 | |
4268 | else | |
4269 | echo "$as_me:$LINENO: result: no" >&5 | |
4270 | echo "${ECHO_T}no" >&6 | |
4271 | fi | |
4272 | ||
4273 | ||
4274 | enablestring=disable | |
dee1a63f MB |
4275 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4276 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4277 | no_cache=0 |
dee1a63f MB |
4278 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4279 | if test "${enable_compat26+set}" = set; then | |
4280 | enableval="$enable_compat26" | |
a848cd7e SC |
4281 | |
4282 | if test "$enableval" = yes; then | |
dee1a63f | 4283 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4284 | else |
dee1a63f | 4285 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4286 | fi |
4287 | ||
4288 | else | |
4289 | ||
dee1a63f | 4290 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4291 | if test "x$LINE" != x ; then |
4292 | eval "DEFAULT_$LINE" | |
4293 | else | |
4294 | no_cache=1 | |
4295 | fi | |
4296 | ||
dee1a63f | 4297 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4298 | |
4299 | fi; | |
4300 | ||
dee1a63f | 4301 | eval "$ac_cv_use_compat26" |
a848cd7e | 4302 | if test "$no_cache" != 1; then |
dee1a63f | 4303 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4304 | fi |
4305 | ||
dee1a63f | 4306 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4307 | echo "$as_me:$LINENO: result: yes" >&5 |
4308 | echo "${ECHO_T}yes" >&6 | |
4309 | else | |
4310 | echo "$as_me:$LINENO: result: no" >&5 | |
4311 | echo "${ECHO_T}no" >&6 | |
4312 | fi | |
4313 | ||
4314 | ||
ffa0583f RL |
4315 | |
4316 | enablestring= | |
4317 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4318 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4319 | no_cache=0 | |
4320 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4321 | if test "${enable_rpath+set}" = set; then |
4322 | enableval="$enable_rpath" | |
ffa0583f RL |
4323 | |
4324 | if test "$enableval" = yes; then | |
4325 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4326 | else | |
4327 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4328 | fi | |
4329 | ||
4330 | else | |
4331 | ||
4332 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4333 | if test "x$LINE" != x ; then | |
4334 | eval "DEFAULT_$LINE" | |
4335 | else | |
4336 | no_cache=1 | |
4337 | fi | |
4338 | ||
4339 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4340 | ||
a848cd7e SC |
4341 | fi; |
4342 | ||
ffa0583f RL |
4343 | eval "$ac_cv_use_rpath" |
4344 | if test "$no_cache" != 1; then | |
4345 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4346 | fi | |
4347 | ||
4348 | if test "$wxUSE_RPATH" = yes; then | |
4349 | echo "$as_me:$LINENO: result: yes" >&5 | |
4350 | echo "${ECHO_T}yes" >&6 | |
4351 | else | |
4352 | echo "$as_me:$LINENO: result: no" >&5 | |
4353 | echo "${ECHO_T}no" >&6 | |
4354 | fi | |
4355 | ||
a848cd7e SC |
4356 | |
4357 | ||
4358 | ||
4359 | ||
4360 | enablestring= | |
4361 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4362 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4363 | no_cache=0 | |
4364 | # Check whether --enable-intl or --disable-intl was given. | |
4365 | if test "${enable_intl+set}" = set; then | |
4366 | enableval="$enable_intl" | |
4367 | ||
4368 | if test "$enableval" = yes; then | |
4369 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4370 | else | |
4371 | ac_cv_use_intl='wxUSE_INTL=no' | |
4372 | fi | |
4373 | ||
4374 | else | |
4375 | ||
4376 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4377 | if test "x$LINE" != x ; then | |
4378 | eval "DEFAULT_$LINE" | |
4379 | else | |
4380 | no_cache=1 | |
4381 | fi | |
4382 | ||
4383 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4384 | ||
4385 | fi; | |
4386 | ||
4387 | eval "$ac_cv_use_intl" | |
4388 | if test "$no_cache" != 1; then | |
4389 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4390 | fi | |
4391 | ||
4392 | if test "$wxUSE_INTL" = yes; then | |
4393 | echo "$as_me:$LINENO: result: yes" >&5 | |
4394 | echo "${ECHO_T}yes" >&6 | |
4395 | else | |
4396 | echo "$as_me:$LINENO: result: no" >&5 | |
4397 | echo "${ECHO_T}no" >&6 | |
4398 | fi | |
4399 | ||
4400 | ||
4401 | enablestring= | |
4402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4403 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4404 | no_cache=0 | |
4405 | # Check whether --enable-config or --disable-config was given. | |
4406 | if test "${enable_config+set}" = set; then | |
4407 | enableval="$enable_config" | |
4408 | ||
4409 | if test "$enableval" = yes; then | |
4410 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4411 | else | |
4412 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4413 | fi | |
4414 | ||
4415 | else | |
4416 | ||
4417 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4418 | if test "x$LINE" != x ; then | |
4419 | eval "DEFAULT_$LINE" | |
4420 | else | |
4421 | no_cache=1 | |
4422 | fi | |
4423 | ||
4424 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4425 | ||
4426 | fi; | |
4427 | ||
4428 | eval "$ac_cv_use_config" | |
4429 | if test "$no_cache" != 1; then | |
4430 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4431 | fi | |
4432 | ||
4433 | if test "$wxUSE_CONFIG" = yes; then | |
4434 | echo "$as_me:$LINENO: result: yes" >&5 | |
4435 | echo "${ECHO_T}yes" >&6 | |
4436 | else | |
4437 | echo "$as_me:$LINENO: result: no" >&5 | |
4438 | echo "${ECHO_T}no" >&6 | |
4439 | fi | |
4440 | ||
4441 | ||
4442 | ||
4443 | enablestring= | |
4444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4445 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4446 | no_cache=0 | |
4447 | # Check whether --enable-protocols or --disable-protocols was given. | |
4448 | if test "${enable_protocols+set}" = set; then | |
4449 | enableval="$enable_protocols" | |
4450 | ||
4451 | if test "$enableval" = yes; then | |
4452 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4453 | else | |
4454 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4455 | fi | |
4456 | ||
4457 | else | |
4458 | ||
4459 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4460 | if test "x$LINE" != x ; then | |
4461 | eval "DEFAULT_$LINE" | |
4462 | else | |
4463 | no_cache=1 | |
4464 | fi | |
4465 | ||
4466 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4467 | ||
4468 | fi; | |
4469 | ||
4470 | eval "$ac_cv_use_protocols" | |
4471 | if test "$no_cache" != 1; then | |
4472 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4473 | fi | |
4474 | ||
4475 | if test "$wxUSE_PROTOCOL" = yes; then | |
4476 | echo "$as_me:$LINENO: result: yes" >&5 | |
4477 | echo "${ECHO_T}yes" >&6 | |
4478 | else | |
4479 | echo "$as_me:$LINENO: result: no" >&5 | |
4480 | echo "${ECHO_T}no" >&6 | |
4481 | fi | |
4482 | ||
4483 | ||
4484 | enablestring= | |
4485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4486 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4487 | no_cache=0 | |
4488 | # Check whether --enable-ftp or --disable-ftp was given. | |
4489 | if test "${enable_ftp+set}" = set; then | |
4490 | enableval="$enable_ftp" | |
4491 | ||
4492 | if test "$enableval" = yes; then | |
4493 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4494 | else | |
4495 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4496 | fi | |
4497 | ||
4498 | else | |
4499 | ||
4500 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4501 | if test "x$LINE" != x ; then | |
4502 | eval "DEFAULT_$LINE" | |
4503 | else | |
4504 | no_cache=1 | |
4505 | fi | |
4506 | ||
4507 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4508 | ||
4509 | fi; | |
4510 | ||
4511 | eval "$ac_cv_use_ftp" | |
4512 | if test "$no_cache" != 1; then | |
4513 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4514 | fi | |
4515 | ||
4516 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4517 | echo "$as_me:$LINENO: result: yes" >&5 | |
4518 | echo "${ECHO_T}yes" >&6 | |
4519 | else | |
4520 | echo "$as_me:$LINENO: result: no" >&5 | |
4521 | echo "${ECHO_T}no" >&6 | |
4522 | fi | |
4523 | ||
4524 | ||
4525 | enablestring= | |
4526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4527 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4528 | no_cache=0 | |
4529 | # Check whether --enable-http or --disable-http was given. | |
4530 | if test "${enable_http+set}" = set; then | |
4531 | enableval="$enable_http" | |
4532 | ||
4533 | if test "$enableval" = yes; then | |
4534 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4535 | else | |
4536 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4537 | fi | |
4538 | ||
4539 | else | |
4540 | ||
4541 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4542 | if test "x$LINE" != x ; then | |
4543 | eval "DEFAULT_$LINE" | |
4544 | else | |
4545 | no_cache=1 | |
4546 | fi | |
4547 | ||
4548 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4549 | ||
4550 | fi; | |
4551 | ||
4552 | eval "$ac_cv_use_http" | |
4553 | if test "$no_cache" != 1; then | |
4554 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4555 | fi | |
4556 | ||
4557 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4558 | echo "$as_me:$LINENO: result: yes" >&5 | |
4559 | echo "${ECHO_T}yes" >&6 | |
4560 | else | |
4561 | echo "$as_me:$LINENO: result: no" >&5 | |
4562 | echo "${ECHO_T}no" >&6 | |
4563 | fi | |
4564 | ||
4565 | ||
4566 | enablestring= | |
4567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4568 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4569 | no_cache=0 | |
4570 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4571 | if test "${enable_fileproto+set}" = set; then | |
4572 | enableval="$enable_fileproto" | |
4573 | ||
4574 | if test "$enableval" = yes; then | |
4575 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4576 | else | |
4577 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4578 | fi | |
4579 | ||
4580 | else | |
4581 | ||
4582 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4583 | if test "x$LINE" != x ; then | |
4584 | eval "DEFAULT_$LINE" | |
4585 | else | |
4586 | no_cache=1 | |
4587 | fi | |
4588 | ||
4589 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4590 | ||
4591 | fi; | |
4592 | ||
4593 | eval "$ac_cv_use_fileproto" | |
4594 | if test "$no_cache" != 1; then | |
4595 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4596 | fi | |
4597 | ||
4598 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4599 | echo "$as_me:$LINENO: result: yes" >&5 | |
4600 | echo "${ECHO_T}yes" >&6 | |
4601 | else | |
4602 | echo "$as_me:$LINENO: result: no" >&5 | |
4603 | echo "${ECHO_T}no" >&6 | |
4604 | fi | |
4605 | ||
4606 | ||
4607 | enablestring= | |
4608 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4609 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4610 | no_cache=0 | |
4611 | # Check whether --enable-sockets or --disable-sockets was given. | |
4612 | if test "${enable_sockets+set}" = set; then | |
4613 | enableval="$enable_sockets" | |
4614 | ||
4615 | if test "$enableval" = yes; then | |
4616 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4617 | else | |
4618 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4619 | fi | |
4620 | ||
4621 | else | |
4622 | ||
4623 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4624 | if test "x$LINE" != x ; then | |
4625 | eval "DEFAULT_$LINE" | |
4626 | else | |
4627 | no_cache=1 | |
4628 | fi | |
4629 | ||
4630 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4631 | ||
4632 | fi; | |
4633 | ||
4634 | eval "$ac_cv_use_sockets" | |
4635 | if test "$no_cache" != 1; then | |
4636 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4637 | fi | |
4638 | ||
4639 | if test "$wxUSE_SOCKETS" = yes; then | |
4640 | echo "$as_me:$LINENO: result: yes" >&5 | |
4641 | echo "${ECHO_T}yes" >&6 | |
4642 | else | |
4643 | echo "$as_me:$LINENO: result: no" >&5 | |
4644 | echo "${ECHO_T}no" >&6 | |
4645 | fi | |
4646 | ||
4647 | ||
4648 | enablestring= | |
4649 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4650 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4651 | no_cache=0 | |
4652 | # Check whether --enable-ole or --disable-ole was given. | |
4653 | if test "${enable_ole+set}" = set; then | |
4654 | enableval="$enable_ole" | |
4655 | ||
4656 | if test "$enableval" = yes; then | |
4657 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4658 | else | |
4659 | ac_cv_use_ole='wxUSE_OLE=no' | |
4660 | fi | |
4661 | ||
4662 | else | |
4663 | ||
4664 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4665 | if test "x$LINE" != x ; then | |
4666 | eval "DEFAULT_$LINE" | |
4667 | else | |
4668 | no_cache=1 | |
4669 | fi | |
4670 | ||
4671 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4672 | ||
4673 | fi; | |
4674 | ||
4675 | eval "$ac_cv_use_ole" | |
4676 | if test "$no_cache" != 1; then | |
4677 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4678 | fi | |
4679 | ||
4680 | if test "$wxUSE_OLE" = yes; then | |
4681 | echo "$as_me:$LINENO: result: yes" >&5 | |
4682 | echo "${ECHO_T}yes" >&6 | |
4683 | else | |
4684 | echo "$as_me:$LINENO: result: no" >&5 | |
4685 | echo "${ECHO_T}no" >&6 | |
4686 | fi | |
4687 | ||
4688 | ||
4689 | enablestring= | |
4690 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4691 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4692 | no_cache=0 | |
4693 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4694 | if test "${enable_dataobj+set}" = set; then | |
4695 | enableval="$enable_dataobj" | |
4696 | ||
4697 | if test "$enableval" = yes; then | |
4698 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4699 | else | |
4700 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4701 | fi | |
4702 | ||
4703 | else | |
4704 | ||
4705 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4706 | if test "x$LINE" != x ; then | |
4707 | eval "DEFAULT_$LINE" | |
4708 | else | |
4709 | no_cache=1 | |
4710 | fi | |
4711 | ||
4712 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4713 | ||
4714 | fi; | |
4715 | ||
4716 | eval "$ac_cv_use_dataobj" | |
4717 | if test "$no_cache" != 1; then | |
4718 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4719 | fi | |
4720 | ||
4721 | if test "$wxUSE_DATAOBJ" = yes; then | |
4722 | echo "$as_me:$LINENO: result: yes" >&5 | |
4723 | echo "${ECHO_T}yes" >&6 | |
4724 | else | |
4725 | echo "$as_me:$LINENO: result: no" >&5 | |
4726 | echo "${ECHO_T}no" >&6 | |
4727 | fi | |
4728 | ||
4729 | ||
4730 | ||
4731 | enablestring= | |
4732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4733 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4734 | no_cache=0 | |
4735 | # Check whether --enable-ipc or --disable-ipc was given. | |
4736 | if test "${enable_ipc+set}" = set; then | |
4737 | enableval="$enable_ipc" | |
4738 | ||
4739 | if test "$enableval" = yes; then | |
4740 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4741 | else | |
4742 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4743 | fi | |
4744 | ||
4745 | else | |
4746 | ||
4747 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4748 | if test "x$LINE" != x ; then | |
4749 | eval "DEFAULT_$LINE" | |
4750 | else | |
4751 | no_cache=1 | |
4752 | fi | |
4753 | ||
4754 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4755 | ||
4756 | fi; | |
4757 | ||
4758 | eval "$ac_cv_use_ipc" | |
4759 | if test "$no_cache" != 1; then | |
4760 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4761 | fi | |
4762 | ||
4763 | if test "$wxUSE_IPC" = yes; then | |
4764 | echo "$as_me:$LINENO: result: yes" >&5 | |
4765 | echo "${ECHO_T}yes" >&6 | |
4766 | else | |
4767 | echo "$as_me:$LINENO: result: no" >&5 | |
4768 | echo "${ECHO_T}no" >&6 | |
4769 | fi | |
4770 | ||
4771 | ||
4772 | ||
4773 | enablestring= | |
4774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4775 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4776 | no_cache=0 | |
4777 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4778 | if test "${enable_apple_ieee+set}" = set; then | |
4779 | enableval="$enable_apple_ieee" | |
4780 | ||
4781 | if test "$enableval" = yes; then | |
4782 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4783 | else | |
4784 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4785 | fi | |
4786 | ||
4787 | else | |
4788 | ||
4789 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4790 | if test "x$LINE" != x ; then | |
4791 | eval "DEFAULT_$LINE" | |
4792 | else | |
4793 | no_cache=1 | |
4794 | fi | |
4795 | ||
4796 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4797 | ||
4798 | fi; | |
4799 | ||
4800 | eval "$ac_cv_use_apple_ieee" | |
4801 | if test "$no_cache" != 1; then | |
4802 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4803 | fi | |
4804 | ||
4805 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4806 | echo "$as_me:$LINENO: result: yes" >&5 | |
4807 | echo "${ECHO_T}yes" >&6 | |
4808 | else | |
4809 | echo "$as_me:$LINENO: result: no" >&5 | |
4810 | echo "${ECHO_T}no" >&6 | |
4811 | fi | |
4812 | ||
4813 | ||
81f90336 MW |
4814 | enablestring= |
4815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4816 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4817 | no_cache=0 | |
4818 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4819 | if test "${enable_arcstream+set}" = set; then | |
4820 | enableval="$enable_arcstream" | |
4821 | ||
4822 | if test "$enableval" = yes; then | |
9e8e867f | 4823 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4824 | else |
9e8e867f | 4825 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4826 | fi |
4827 | ||
4828 | else | |
4829 | ||
9e8e867f | 4830 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4831 | if test "x$LINE" != x ; then |
4832 | eval "DEFAULT_$LINE" | |
4833 | else | |
4834 | no_cache=1 | |
4835 | fi | |
4836 | ||
9e8e867f | 4837 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4838 | |
4839 | fi; | |
4840 | ||
4841 | eval "$ac_cv_use_arcstream" | |
4842 | if test "$no_cache" != 1; then | |
4843 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4844 | fi | |
4845 | ||
9e8e867f | 4846 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4847 | echo "$as_me:$LINENO: result: yes" >&5 |
4848 | echo "${ECHO_T}yes" >&6 | |
4849 | else | |
4850 | echo "$as_me:$LINENO: result: no" >&5 | |
4851 | echo "${ECHO_T}no" >&6 | |
4852 | fi | |
4853 | ||
4854 | ||
a848cd7e | 4855 | enablestring= |
36b6448c VZ |
4856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4857 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4858 | no_cache=0 |
36b6448c VZ |
4859 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4860 | if test "${enable_backtrace+set}" = set; then | |
4861 | enableval="$enable_backtrace" | |
a848cd7e SC |
4862 | |
4863 | if test "$enableval" = yes; then | |
36b6448c | 4864 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4865 | else |
36b6448c | 4866 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4867 | fi |
4868 | ||
4869 | else | |
4870 | ||
36b6448c | 4871 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4872 | if test "x$LINE" != x ; then |
4873 | eval "DEFAULT_$LINE" | |
4874 | else | |
4875 | no_cache=1 | |
4876 | fi | |
4877 | ||
36b6448c | 4878 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4879 | |
4880 | fi; | |
4881 | ||
36b6448c | 4882 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4883 | if test "$no_cache" != 1; then |
36b6448c | 4884 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4885 | fi |
4886 | ||
36b6448c | 4887 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4888 | echo "$as_me:$LINENO: result: yes" >&5 |
4889 | echo "${ECHO_T}yes" >&6 | |
4890 | else | |
4891 | echo "$as_me:$LINENO: result: no" >&5 | |
4892 | echo "${ECHO_T}no" >&6 | |
4893 | fi | |
4894 | ||
4895 | ||
eaff0f0d | 4896 | enablestring= |
36b6448c VZ |
4897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4898 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4899 | no_cache=0 |
36b6448c VZ |
4900 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4901 | if test "${enable_catch_segvs+set}" = set; then | |
4902 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4903 | |
4904 | if test "$enableval" = yes; then | |
36b6448c | 4905 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4906 | else |
36b6448c | 4907 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4908 | fi |
4909 | ||
4910 | else | |
4911 | ||
36b6448c | 4912 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4913 | if test "x$LINE" != x ; then |
4914 | eval "DEFAULT_$LINE" | |
4915 | else | |
4916 | no_cache=1 | |
4917 | fi | |
4918 | ||
36b6448c | 4919 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4920 | |
4921 | fi; | |
4922 | ||
36b6448c | 4923 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4924 | if test "$no_cache" != 1; then |
36b6448c | 4925 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4926 | fi |
4927 | ||
36b6448c | 4928 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4929 | echo "$as_me:$LINENO: result: yes" >&5 |
4930 | echo "${ECHO_T}yes" >&6 | |
4931 | else | |
4932 | echo "$as_me:$LINENO: result: no" >&5 | |
4933 | echo "${ECHO_T}no" >&6 | |
4934 | fi | |
4935 | ||
4936 | ||
a848cd7e SC |
4937 | enablestring= |
4938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4939 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4940 | no_cache=0 | |
4941 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4942 | if test "${enable_cmdline+set}" = set; then | |
4943 | enableval="$enable_cmdline" | |
4944 | ||
4945 | if test "$enableval" = yes; then | |
4946 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4947 | else | |
4948 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4949 | fi | |
4950 | ||
4951 | else | |
4952 | ||
4953 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4954 | if test "x$LINE" != x ; then | |
4955 | eval "DEFAULT_$LINE" | |
4956 | else | |
4957 | no_cache=1 | |
4958 | fi | |
4959 | ||
4960 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4961 | ||
4962 | fi; | |
4963 | ||
4964 | eval "$ac_cv_use_cmdline" | |
4965 | if test "$no_cache" != 1; then | |
4966 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4967 | fi | |
4968 | ||
4969 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4970 | echo "$as_me:$LINENO: result: yes" >&5 | |
4971 | echo "${ECHO_T}yes" >&6 | |
4972 | else | |
4973 | echo "$as_me:$LINENO: result: no" >&5 | |
4974 | echo "${ECHO_T}no" >&6 | |
4975 | fi | |
4976 | ||
4977 | ||
4978 | enablestring= | |
4979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4980 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4981 | no_cache=0 | |
4982 | # Check whether --enable-datetime or --disable-datetime was given. | |
4983 | if test "${enable_datetime+set}" = set; then | |
4984 | enableval="$enable_datetime" | |
4985 | ||
4986 | if test "$enableval" = yes; then | |
4987 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4988 | else | |
4989 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4990 | fi | |
4991 | ||
4992 | else | |
4993 | ||
4994 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4995 | if test "x$LINE" != x ; then | |
4996 | eval "DEFAULT_$LINE" | |
4997 | else | |
4998 | no_cache=1 | |
4999 | fi | |
5000 | ||
5001 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
5002 | ||
5003 | fi; | |
5004 | ||
5005 | eval "$ac_cv_use_datetime" | |
5006 | if test "$no_cache" != 1; then | |
5007 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
5008 | fi | |
5009 | ||
5010 | if test "$wxUSE_DATETIME" = yes; then | |
5011 | echo "$as_me:$LINENO: result: yes" >&5 | |
5012 | echo "${ECHO_T}yes" >&6 | |
5013 | else | |
5014 | echo "$as_me:$LINENO: result: no" >&5 | |
5015 | echo "${ECHO_T}no" >&6 | |
5016 | fi | |
5017 | ||
5018 | ||
36b6448c VZ |
5019 | enablestring= |
5020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
5021 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
5022 | no_cache=0 | |
5023 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
5024 | if test "${enable_debugreport+set}" = set; then | |
5025 | enableval="$enable_debugreport" | |
5026 | ||
5027 | if test "$enableval" = yes; then | |
5028 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
5029 | else | |
5030 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
5031 | fi | |
5032 | ||
5033 | else | |
5034 | ||
5035 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
5036 | if test "x$LINE" != x ; then | |
5037 | eval "DEFAULT_$LINE" | |
5038 | else | |
5039 | no_cache=1 | |
5040 | fi | |
5041 | ||
5042 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
5043 | ||
5044 | fi; | |
5045 | ||
5046 | eval "$ac_cv_use_debugreport" | |
5047 | if test "$no_cache" != 1; then | |
5048 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
5049 | fi | |
5050 | ||
5051 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
5052 | echo "$as_me:$LINENO: result: yes" >&5 | |
5053 | echo "${ECHO_T}yes" >&6 | |
5054 | else | |
5055 | echo "$as_me:$LINENO: result: no" >&5 | |
5056 | echo "${ECHO_T}no" >&6 | |
5057 | fi | |
5058 | ||
5059 | ||
a848cd7e SC |
5060 | enablestring= |
5061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5062 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5063 | no_cache=0 | |
5064 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5065 | if test "${enable_dialupman+set}" = set; then | |
5066 | enableval="$enable_dialupman" | |
5067 | ||
5068 | if test "$enableval" = yes; then | |
5069 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5070 | else | |
5071 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5072 | fi | |
5073 | ||
5074 | else | |
5075 | ||
5076 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5077 | if test "x$LINE" != x ; then | |
5078 | eval "DEFAULT_$LINE" | |
5079 | else | |
5080 | no_cache=1 | |
5081 | fi | |
5082 | ||
5083 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5084 | ||
5085 | fi; | |
5086 | ||
5087 | eval "$ac_cv_use_dialupman" | |
5088 | if test "$no_cache" != 1; then | |
5089 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5090 | fi | |
5091 | ||
5092 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5093 | echo "$as_me:$LINENO: result: yes" >&5 | |
5094 | echo "${ECHO_T}yes" >&6 | |
5095 | else | |
5096 | echo "$as_me:$LINENO: result: no" >&5 | |
5097 | echo "${ECHO_T}no" >&6 | |
5098 | fi | |
5099 | ||
5100 | ||
5101 | enablestring= | |
5102 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5103 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5104 | no_cache=0 | |
5105 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5106 | if test "${enable_dynlib+set}" = set; then | |
5107 | enableval="$enable_dynlib" | |
5108 | ||
5109 | if test "$enableval" = yes; then | |
5110 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5111 | else | |
5112 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5113 | fi | |
5114 | ||
5115 | else | |
5116 | ||
5117 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5118 | if test "x$LINE" != x ; then | |
5119 | eval "DEFAULT_$LINE" | |
5120 | else | |
5121 | no_cache=1 | |
5122 | fi | |
5123 | ||
5124 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5125 | ||
5126 | fi; | |
5127 | ||
5128 | eval "$ac_cv_use_dynlib" | |
5129 | if test "$no_cache" != 1; then | |
5130 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5131 | fi | |
5132 | ||
5133 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5134 | echo "$as_me:$LINENO: result: yes" >&5 | |
5135 | echo "${ECHO_T}yes" >&6 | |
5136 | else | |
5137 | echo "$as_me:$LINENO: result: no" >&5 | |
5138 | echo "${ECHO_T}no" >&6 | |
5139 | fi | |
5140 | ||
5141 | ||
5142 | enablestring= | |
5143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5144 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5145 | no_cache=0 | |
5146 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5147 | if test "${enable_dynamicloader+set}" = set; then | |
5148 | enableval="$enable_dynamicloader" | |
5149 | ||
5150 | if test "$enableval" = yes; then | |
5151 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5152 | else | |
5153 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5154 | fi | |
5155 | ||
5156 | else | |
5157 | ||
5158 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5159 | if test "x$LINE" != x ; then | |
5160 | eval "DEFAULT_$LINE" | |
5161 | else | |
5162 | no_cache=1 | |
5163 | fi | |
5164 | ||
5165 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5166 | ||
5167 | fi; | |
5168 | ||
5169 | eval "$ac_cv_use_dynamicloader" | |
5170 | if test "$no_cache" != 1; then | |
5171 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5172 | fi | |
5173 | ||
5174 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5175 | echo "$as_me:$LINENO: result: yes" >&5 | |
5176 | echo "${ECHO_T}yes" >&6 | |
5177 | else | |
5178 | echo "$as_me:$LINENO: result: no" >&5 | |
5179 | echo "${ECHO_T}no" >&6 | |
5180 | fi | |
5181 | ||
5182 | ||
5183 | enablestring= | |
5184 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5185 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5186 | no_cache=0 | |
5187 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5188 | if test "${enable_exceptions+set}" = set; then | |
5189 | enableval="$enable_exceptions" | |
5190 | ||
5191 | if test "$enableval" = yes; then | |
5192 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5193 | else | |
5194 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5195 | fi | |
5196 | ||
5197 | else | |
5198 | ||
5199 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5200 | if test "x$LINE" != x ; then | |
5201 | eval "DEFAULT_$LINE" | |
5202 | else | |
5203 | no_cache=1 | |
5204 | fi | |
5205 | ||
5206 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5207 | ||
5208 | fi; | |
5209 | ||
5210 | eval "$ac_cv_use_exceptions" | |
5211 | if test "$no_cache" != 1; then | |
5212 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5213 | fi | |
5214 | ||
5215 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5216 | echo "$as_me:$LINENO: result: yes" >&5 | |
5217 | echo "${ECHO_T}yes" >&6 | |
5218 | else | |
5219 | echo "$as_me:$LINENO: result: no" >&5 | |
5220 | echo "${ECHO_T}no" >&6 | |
5221 | fi | |
5222 | ||
5223 | ||
5224 | enablestring= | |
5225 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5226 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5227 | no_cache=0 | |
5228 | # Check whether --enable-ffile or --disable-ffile was given. | |
5229 | if test "${enable_ffile+set}" = set; then | |
5230 | enableval="$enable_ffile" | |
5231 | ||
5232 | if test "$enableval" = yes; then | |
5233 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5234 | else | |
5235 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5236 | fi | |
5237 | ||
5238 | else | |
5239 | ||
5240 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5241 | if test "x$LINE" != x ; then | |
5242 | eval "DEFAULT_$LINE" | |
5243 | else | |
5244 | no_cache=1 | |
5245 | fi | |
5246 | ||
5247 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5248 | ||
5249 | fi; | |
5250 | ||
5251 | eval "$ac_cv_use_ffile" | |
5252 | if test "$no_cache" != 1; then | |
5253 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5254 | fi | |
5255 | ||
5256 | if test "$wxUSE_FFILE" = yes; then | |
5257 | echo "$as_me:$LINENO: result: yes" >&5 | |
5258 | echo "${ECHO_T}yes" >&6 | |
5259 | else | |
5260 | echo "$as_me:$LINENO: result: no" >&5 | |
5261 | echo "${ECHO_T}no" >&6 | |
5262 | fi | |
5263 | ||
5264 | ||
5265 | enablestring= | |
5266 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5267 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5268 | no_cache=0 | |
5269 | # Check whether --enable-file or --disable-file was given. | |
5270 | if test "${enable_file+set}" = set; then | |
5271 | enableval="$enable_file" | |
5272 | ||
5273 | if test "$enableval" = yes; then | |
5274 | ac_cv_use_file='wxUSE_FILE=yes' | |
5275 | else | |
5276 | ac_cv_use_file='wxUSE_FILE=no' | |
5277 | fi | |
5278 | ||
5279 | else | |
5280 | ||
5281 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5282 | if test "x$LINE" != x ; then | |
5283 | eval "DEFAULT_$LINE" | |
5284 | else | |
5285 | no_cache=1 | |
5286 | fi | |
5287 | ||
5288 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5289 | ||
5290 | fi; | |
5291 | ||
5292 | eval "$ac_cv_use_file" | |
5293 | if test "$no_cache" != 1; then | |
5294 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5295 | fi | |
5296 | ||
5297 | if test "$wxUSE_FILE" = yes; then | |
5298 | echo "$as_me:$LINENO: result: yes" >&5 | |
5299 | echo "${ECHO_T}yes" >&6 | |
5300 | else | |
5301 | echo "$as_me:$LINENO: result: no" >&5 | |
5302 | echo "${ECHO_T}no" >&6 | |
5303 | fi | |
5304 | ||
5305 | ||
5306 | enablestring= | |
5307 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5308 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5309 | no_cache=0 | |
5310 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5311 | if test "${enable_filesystem+set}" = set; then | |
5312 | enableval="$enable_filesystem" | |
5313 | ||
5314 | if test "$enableval" = yes; then | |
5315 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5316 | else | |
5317 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5318 | fi | |
5319 | ||
5320 | else | |
5321 | ||
5322 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5323 | if test "x$LINE" != x ; then | |
5324 | eval "DEFAULT_$LINE" | |
5325 | else | |
5326 | no_cache=1 | |
5327 | fi | |
5328 | ||
5329 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5330 | ||
5331 | fi; | |
5332 | ||
5333 | eval "$ac_cv_use_filesystem" | |
5334 | if test "$no_cache" != 1; then | |
5335 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5336 | fi | |
5337 | ||
5338 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5339 | echo "$as_me:$LINENO: result: yes" >&5 | |
5340 | echo "${ECHO_T}yes" >&6 | |
5341 | else | |
5342 | echo "$as_me:$LINENO: result: no" >&5 | |
5343 | echo "${ECHO_T}no" >&6 | |
5344 | fi | |
5345 | ||
5346 | ||
5347 | enablestring= | |
5348 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5349 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5350 | no_cache=0 | |
5351 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5352 | if test "${enable_fontmap+set}" = set; then | |
5353 | enableval="$enable_fontmap" | |
5354 | ||
5355 | if test "$enableval" = yes; then | |
5356 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5357 | else | |
5358 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5359 | fi | |
5360 | ||
5361 | else | |
5362 | ||
5363 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5364 | if test "x$LINE" != x ; then | |
5365 | eval "DEFAULT_$LINE" | |
5366 | else | |
5367 | no_cache=1 | |
5368 | fi | |
5369 | ||
5370 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5371 | ||
5372 | fi; | |
5373 | ||
5374 | eval "$ac_cv_use_fontmap" | |
5375 | if test "$no_cache" != 1; then | |
5376 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5377 | fi | |
5378 | ||
5379 | if test "$wxUSE_FONTMAP" = yes; then | |
5380 | echo "$as_me:$LINENO: result: yes" >&5 | |
5381 | echo "${ECHO_T}yes" >&6 | |
5382 | else | |
5383 | echo "$as_me:$LINENO: result: no" >&5 | |
5384 | echo "${ECHO_T}no" >&6 | |
5385 | fi | |
5386 | ||
5387 | ||
5388 | enablestring= | |
5389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5390 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5391 | no_cache=0 | |
5392 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5393 | if test "${enable_fs_inet+set}" = set; then | |
5394 | enableval="$enable_fs_inet" | |
5395 | ||
5396 | if test "$enableval" = yes; then | |
5397 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5398 | else | |
5399 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5400 | fi | |
5401 | ||
5402 | else | |
5403 | ||
5404 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5405 | if test "x$LINE" != x ; then | |
5406 | eval "DEFAULT_$LINE" | |
5407 | else | |
5408 | no_cache=1 | |
5409 | fi | |
5410 | ||
5411 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5412 | ||
5413 | fi; | |
5414 | ||
5415 | eval "$ac_cv_use_fs_inet" | |
5416 | if test "$no_cache" != 1; then | |
5417 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5418 | fi | |
5419 | ||
5420 | if test "$wxUSE_FS_INET" = yes; then | |
5421 | echo "$as_me:$LINENO: result: yes" >&5 | |
5422 | echo "${ECHO_T}yes" >&6 | |
5423 | else | |
5424 | echo "$as_me:$LINENO: result: no" >&5 | |
5425 | echo "${ECHO_T}no" >&6 | |
5426 | fi | |
5427 | ||
5428 | ||
5429 | enablestring= | |
5430 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5431 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5432 | no_cache=0 | |
5433 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5434 | if test "${enable_fs_zip+set}" = set; then | |
5435 | enableval="$enable_fs_zip" | |
5436 | ||
5437 | if test "$enableval" = yes; then | |
5438 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5439 | else | |
5440 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5441 | fi | |
5442 | ||
5443 | else | |
5444 | ||
5445 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5446 | if test "x$LINE" != x ; then | |
5447 | eval "DEFAULT_$LINE" | |
5448 | else | |
5449 | no_cache=1 | |
5450 | fi | |
5451 | ||
5452 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5453 | ||
5454 | fi; | |
5455 | ||
5456 | eval "$ac_cv_use_fs_zip" | |
5457 | if test "$no_cache" != 1; then | |
5458 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5459 | fi | |
5460 | ||
5461 | if test "$wxUSE_FS_ZIP" = yes; then | |
5462 | echo "$as_me:$LINENO: result: yes" >&5 | |
5463 | echo "${ECHO_T}yes" >&6 | |
5464 | else | |
5465 | echo "$as_me:$LINENO: result: no" >&5 | |
5466 | echo "${ECHO_T}no" >&6 | |
5467 | fi | |
5468 | ||
5469 | ||
5470 | enablestring= | |
5471 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5472 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5473 | no_cache=0 | |
5474 | # Check whether --enable-geometry or --disable-geometry was given. | |
5475 | if test "${enable_geometry+set}" = set; then | |
5476 | enableval="$enable_geometry" | |
5477 | ||
5478 | if test "$enableval" = yes; then | |
5479 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5480 | else | |
5481 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5482 | fi | |
5483 | ||
5484 | else | |
5485 | ||
5486 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5487 | if test "x$LINE" != x ; then | |
5488 | eval "DEFAULT_$LINE" | |
5489 | else | |
5490 | no_cache=1 | |
5491 | fi | |
5492 | ||
5493 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5494 | ||
5495 | fi; | |
5496 | ||
5497 | eval "$ac_cv_use_geometry" | |
5498 | if test "$no_cache" != 1; then | |
5499 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5500 | fi | |
5501 | ||
5502 | if test "$wxUSE_GEOMETRY" = yes; then | |
5503 | echo "$as_me:$LINENO: result: yes" >&5 | |
5504 | echo "${ECHO_T}yes" >&6 | |
5505 | else | |
5506 | echo "$as_me:$LINENO: result: no" >&5 | |
5507 | echo "${ECHO_T}no" >&6 | |
5508 | fi | |
5509 | ||
5510 | ||
5511 | enablestring= | |
5512 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5513 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5514 | no_cache=0 | |
5515 | # Check whether --enable-log or --disable-log was given. | |
5516 | if test "${enable_log+set}" = set; then | |
5517 | enableval="$enable_log" | |
5518 | ||
5519 | if test "$enableval" = yes; then | |
5520 | ac_cv_use_log='wxUSE_LOG=yes' | |
5521 | else | |
5522 | ac_cv_use_log='wxUSE_LOG=no' | |
5523 | fi | |
5524 | ||
5525 | else | |
5526 | ||
5527 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5528 | if test "x$LINE" != x ; then | |
5529 | eval "DEFAULT_$LINE" | |
5530 | else | |
5531 | no_cache=1 | |
5532 | fi | |
5533 | ||
5534 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5535 | ||
5536 | fi; | |
5537 | ||
5538 | eval "$ac_cv_use_log" | |
5539 | if test "$no_cache" != 1; then | |
5540 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5541 | fi | |
5542 | ||
5543 | if test "$wxUSE_LOG" = yes; then | |
5544 | echo "$as_me:$LINENO: result: yes" >&5 | |
5545 | echo "${ECHO_T}yes" >&6 | |
5546 | else | |
5547 | echo "$as_me:$LINENO: result: no" >&5 | |
5548 | echo "${ECHO_T}no" >&6 | |
5549 | fi | |
5550 | ||
5551 | ||
5552 | enablestring= | |
5553 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5554 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5555 | no_cache=0 | |
5556 | # Check whether --enable-longlong or --disable-longlong was given. | |
5557 | if test "${enable_longlong+set}" = set; then | |
5558 | enableval="$enable_longlong" | |
5559 | ||
5560 | if test "$enableval" = yes; then | |
5561 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5562 | else | |
5563 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5564 | fi | |
5565 | ||
5566 | else | |
5567 | ||
5568 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5569 | if test "x$LINE" != x ; then | |
5570 | eval "DEFAULT_$LINE" | |
5571 | else | |
5572 | no_cache=1 | |
5573 | fi | |
5574 | ||
5575 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5576 | ||
5577 | fi; | |
5578 | ||
5579 | eval "$ac_cv_use_longlong" | |
5580 | if test "$no_cache" != 1; then | |
5581 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5582 | fi | |
5583 | ||
5584 | if test "$wxUSE_LONGLONG" = yes; then | |
5585 | echo "$as_me:$LINENO: result: yes" >&5 | |
5586 | echo "${ECHO_T}yes" >&6 | |
5587 | else | |
5588 | echo "$as_me:$LINENO: result: no" >&5 | |
5589 | echo "${ECHO_T}no" >&6 | |
5590 | fi | |
5591 | ||
5592 | ||
5593 | enablestring= | |
5594 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5595 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5596 | no_cache=0 | |
5597 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5598 | if test "${enable_mimetype+set}" = set; then | |
5599 | enableval="$enable_mimetype" | |
5600 | ||
5601 | if test "$enableval" = yes; then | |
5602 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5603 | else | |
5604 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5605 | fi | |
5606 | ||
5607 | else | |
5608 | ||
5609 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5610 | if test "x$LINE" != x ; then | |
5611 | eval "DEFAULT_$LINE" | |
5612 | else | |
5613 | no_cache=1 | |
5614 | fi | |
5615 | ||
5616 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5617 | ||
5618 | fi; | |
5619 | ||
5620 | eval "$ac_cv_use_mimetype" | |
5621 | if test "$no_cache" != 1; then | |
5622 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5623 | fi | |
5624 | ||
5625 | if test "$wxUSE_MIMETYPE" = yes; then | |
5626 | echo "$as_me:$LINENO: result: yes" >&5 | |
5627 | echo "${ECHO_T}yes" >&6 | |
5628 | else | |
5629 | echo "$as_me:$LINENO: result: no" >&5 | |
5630 | echo "${ECHO_T}no" >&6 | |
5631 | fi | |
5632 | ||
5633 | ||
5634 | enablestring= | |
5635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5636 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5637 | no_cache=0 | |
5638 | # Check whether --enable-mslu or --disable-mslu was given. | |
5639 | if test "${enable_mslu+set}" = set; then | |
5640 | enableval="$enable_mslu" | |
5641 | ||
5642 | if test "$enableval" = yes; then | |
5643 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5644 | else | |
5645 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5646 | fi | |
5647 | ||
5648 | else | |
5649 | ||
5650 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5651 | if test "x$LINE" != x ; then | |
5652 | eval "DEFAULT_$LINE" | |
5653 | else | |
5654 | no_cache=1 | |
5655 | fi | |
5656 | ||
5657 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5658 | ||
5659 | fi; | |
5660 | ||
5661 | eval "$ac_cv_use_mslu" | |
5662 | if test "$no_cache" != 1; then | |
5663 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5664 | fi | |
5665 | ||
5666 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5667 | echo "$as_me:$LINENO: result: yes" >&5 | |
5668 | echo "${ECHO_T}yes" >&6 | |
5669 | else | |
5670 | echo "$as_me:$LINENO: result: no" >&5 | |
5671 | echo "${ECHO_T}no" >&6 | |
5672 | fi | |
5673 | ||
5674 | ||
5675 | enablestring= | |
5676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5677 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5678 | no_cache=0 | |
5679 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5680 | if test "${enable_snglinst+set}" = set; then | |
5681 | enableval="$enable_snglinst" | |
5682 | ||
5683 | if test "$enableval" = yes; then | |
5684 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5685 | else | |
5686 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5687 | fi | |
5688 | ||
5689 | else | |
5690 | ||
5691 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5692 | if test "x$LINE" != x ; then | |
5693 | eval "DEFAULT_$LINE" | |
5694 | else | |
5695 | no_cache=1 | |
5696 | fi | |
5697 | ||
5698 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5699 | ||
5700 | fi; | |
5701 | ||
5702 | eval "$ac_cv_use_snglinst" | |
5703 | if test "$no_cache" != 1; then | |
5704 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5705 | fi | |
5706 | ||
5707 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5708 | echo "$as_me:$LINENO: result: yes" >&5 | |
5709 | echo "${ECHO_T}yes" >&6 | |
5710 | else | |
5711 | echo "$as_me:$LINENO: result: no" >&5 | |
5712 | echo "${ECHO_T}no" >&6 | |
5713 | fi | |
5714 | ||
5715 | ||
5716 | enablestring= | |
07158944 VZ |
5717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5718 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5719 | no_cache=0 |
07158944 VZ |
5720 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5721 | if test "${enable_std_iostreams+set}" = set; then | |
5722 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5723 | |
5724 | if test "$enableval" = yes; then | |
07158944 | 5725 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5726 | else |
07158944 | 5727 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5728 | fi |
5729 | ||
5730 | else | |
5731 | ||
07158944 | 5732 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5733 | if test "x$LINE" != x ; then |
5734 | eval "DEFAULT_$LINE" | |
5735 | else | |
5736 | no_cache=1 | |
5737 | fi | |
5738 | ||
07158944 | 5739 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5740 | |
5741 | fi; | |
5742 | ||
07158944 | 5743 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5744 | if test "$no_cache" != 1; then |
07158944 | 5745 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5746 | fi |
5747 | ||
07158944 | 5748 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5749 | echo "$as_me:$LINENO: result: yes" >&5 |
5750 | echo "${ECHO_T}yes" >&6 | |
5751 | else | |
5752 | echo "$as_me:$LINENO: result: no" >&5 | |
5753 | echo "${ECHO_T}no" >&6 | |
5754 | fi | |
5755 | ||
5756 | ||
59746b65 MW |
5757 | enablestring= |
5758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5759 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5760 | no_cache=0 | |
5761 | # Check whether --enable-std_string or --disable-std_string was given. | |
5762 | if test "${enable_std_string+set}" = set; then | |
5763 | enableval="$enable_std_string" | |
5764 | ||
5765 | if test "$enableval" = yes; then | |
5766 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5767 | else | |
5768 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5769 | fi | |
5770 | ||
5771 | else | |
5772 | ||
5773 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5774 | if test "x$LINE" != x ; then | |
5775 | eval "DEFAULT_$LINE" | |
5776 | else | |
5777 | no_cache=1 | |
5778 | fi | |
5779 | ||
5780 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5781 | ||
5782 | fi; | |
5783 | ||
5784 | eval "$ac_cv_use_std_string" | |
5785 | if test "$no_cache" != 1; then | |
5786 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5787 | fi | |
5788 | ||
5789 | if test "$wxUSE_STD_STRING" = yes; then | |
5790 | echo "$as_me:$LINENO: result: yes" >&5 | |
5791 | echo "${ECHO_T}yes" >&6 | |
5792 | else | |
5793 | echo "$as_me:$LINENO: result: no" >&5 | |
5794 | echo "${ECHO_T}no" >&6 | |
5795 | fi | |
5796 | ||
5797 | ||
a848cd7e | 5798 | enablestring= |
07158944 VZ |
5799 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5800 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5801 | no_cache=0 |
07158944 VZ |
5802 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5803 | if test "${enable_stdpaths+set}" = set; then | |
5804 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5805 | |
5806 | if test "$enableval" = yes; then | |
07158944 | 5807 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5808 | else |
07158944 | 5809 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5810 | fi |
5811 | ||
5812 | else | |
5813 | ||
07158944 | 5814 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5815 | if test "x$LINE" != x ; then |
5816 | eval "DEFAULT_$LINE" | |
5817 | else | |
5818 | no_cache=1 | |
5819 | fi | |
5820 | ||
07158944 | 5821 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5822 | |
5823 | fi; | |
5824 | ||
07158944 | 5825 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5826 | if test "$no_cache" != 1; then |
07158944 | 5827 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5828 | fi |
5829 | ||
07158944 | 5830 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5831 | echo "$as_me:$LINENO: result: yes" >&5 |
5832 | echo "${ECHO_T}yes" >&6 | |
5833 | else | |
5834 | echo "$as_me:$LINENO: result: no" >&5 | |
5835 | echo "${ECHO_T}no" >&6 | |
5836 | fi | |
5837 | ||
5838 | ||
5839 | enablestring= | |
5840 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5841 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5842 | no_cache=0 | |
5843 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5844 | if test "${enable_stopwatch+set}" = set; then | |
5845 | enableval="$enable_stopwatch" | |
5846 | ||
5847 | if test "$enableval" = yes; then | |
5848 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5849 | else | |
5850 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5851 | fi | |
5852 | ||
5853 | else | |
5854 | ||
5855 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5856 | if test "x$LINE" != x ; then | |
5857 | eval "DEFAULT_$LINE" | |
5858 | else | |
5859 | no_cache=1 | |
5860 | fi | |
5861 | ||
5862 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5863 | ||
5864 | fi; | |
5865 | ||
5866 | eval "$ac_cv_use_stopwatch" | |
5867 | if test "$no_cache" != 1; then | |
5868 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5869 | fi | |
5870 | ||
5871 | if test "$wxUSE_STOPWATCH" = yes; then | |
5872 | echo "$as_me:$LINENO: result: yes" >&5 | |
5873 | echo "${ECHO_T}yes" >&6 | |
5874 | else | |
5875 | echo "$as_me:$LINENO: result: no" >&5 | |
5876 | echo "${ECHO_T}no" >&6 | |
5877 | fi | |
5878 | ||
5879 | ||
07158944 VZ |
5880 | enablestring= |
5881 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5882 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5883 | no_cache=0 | |
5884 | # Check whether --enable-streams or --disable-streams was given. | |
5885 | if test "${enable_streams+set}" = set; then | |
5886 | enableval="$enable_streams" | |
5887 | ||
5888 | if test "$enableval" = yes; then | |
5889 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5890 | else | |
5891 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5892 | fi | |
5893 | ||
5894 | else | |
5895 | ||
5896 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5897 | if test "x$LINE" != x ; then | |
5898 | eval "DEFAULT_$LINE" | |
5899 | else | |
5900 | no_cache=1 | |
5901 | fi | |
5902 | ||
5903 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5904 | ||
5905 | fi; | |
5906 | ||
5907 | eval "$ac_cv_use_streams" | |
5908 | if test "$no_cache" != 1; then | |
5909 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5910 | fi | |
5911 | ||
5912 | if test "$wxUSE_STREAMS" = yes; then | |
5913 | echo "$as_me:$LINENO: result: yes" >&5 | |
5914 | echo "${ECHO_T}yes" >&6 | |
5915 | else | |
5916 | echo "$as_me:$LINENO: result: no" >&5 | |
5917 | echo "${ECHO_T}no" >&6 | |
5918 | fi | |
5919 | ||
5920 | ||
a848cd7e SC |
5921 | enablestring= |
5922 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5923 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5924 | no_cache=0 | |
5925 | # Check whether --enable-system_options or --disable-system_options was given. | |
5926 | if test "${enable_system_options+set}" = set; then | |
5927 | enableval="$enable_system_options" | |
5928 | ||
5929 | if test "$enableval" = yes; then | |
5930 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5931 | else | |
5932 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5933 | fi | |
5934 | ||
5935 | else | |
5936 | ||
5937 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5938 | if test "x$LINE" != x ; then | |
5939 | eval "DEFAULT_$LINE" | |
5940 | else | |
5941 | no_cache=1 | |
5942 | fi | |
5943 | ||
5944 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5945 | ||
5946 | fi; | |
5947 | ||
5948 | eval "$ac_cv_use_system_options" | |
5949 | if test "$no_cache" != 1; then | |
5950 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5951 | fi | |
5952 | ||
5953 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5954 | echo "$as_me:$LINENO: result: yes" >&5 | |
5955 | echo "${ECHO_T}yes" >&6 | |
5956 | else | |
5957 | echo "$as_me:$LINENO: result: no" >&5 | |
5958 | echo "${ECHO_T}no" >&6 | |
5959 | fi | |
5960 | ||
5961 | ||
5962 | enablestring= | |
5963 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5964 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5965 | no_cache=0 | |
5966 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5967 | if test "${enable_textbuf+set}" = set; then | |
5968 | enableval="$enable_textbuf" | |
5969 | ||
5970 | if test "$enableval" = yes; then | |
5971 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5972 | else | |
5973 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5974 | fi | |
5975 | ||
5976 | else | |
5977 | ||
5978 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5979 | if test "x$LINE" != x ; then | |
5980 | eval "DEFAULT_$LINE" | |
5981 | else | |
5982 | no_cache=1 | |
5983 | fi | |
5984 | ||
5985 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5986 | ||
5987 | fi; | |
5988 | ||
5989 | eval "$ac_cv_use_textbuf" | |
5990 | if test "$no_cache" != 1; then | |
5991 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5992 | fi | |
5993 | ||
5994 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5995 | echo "$as_me:$LINENO: result: yes" >&5 | |
5996 | echo "${ECHO_T}yes" >&6 | |
5997 | else | |
5998 | echo "$as_me:$LINENO: result: no" >&5 | |
5999 | echo "${ECHO_T}no" >&6 | |
6000 | fi | |
6001 | ||
6002 | ||
6003 | enablestring= | |
6004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
6005 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
6006 | no_cache=0 | |
6007 | # Check whether --enable-textfile or --disable-textfile was given. | |
6008 | if test "${enable_textfile+set}" = set; then | |
6009 | enableval="$enable_textfile" | |
6010 | ||
6011 | if test "$enableval" = yes; then | |
6012 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
6013 | else | |
6014 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
6015 | fi | |
6016 | ||
6017 | else | |
6018 | ||
6019 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
6020 | if test "x$LINE" != x ; then | |
6021 | eval "DEFAULT_$LINE" | |
6022 | else | |
6023 | no_cache=1 | |
6024 | fi | |
6025 | ||
6026 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
6027 | ||
6028 | fi; | |
6029 | ||
6030 | eval "$ac_cv_use_textfile" | |
6031 | if test "$no_cache" != 1; then | |
6032 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
6033 | fi | |
6034 | ||
6035 | if test "$wxUSE_TEXTFILE" = yes; then | |
6036 | echo "$as_me:$LINENO: result: yes" >&5 | |
6037 | echo "${ECHO_T}yes" >&6 | |
6038 | else | |
6039 | echo "$as_me:$LINENO: result: no" >&5 | |
6040 | echo "${ECHO_T}no" >&6 | |
6041 | fi | |
6042 | ||
6043 | ||
6044 | enablestring= | |
6045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
6046 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
6047 | no_cache=0 | |
6048 | # Check whether --enable-timer or --disable-timer was given. | |
6049 | if test "${enable_timer+set}" = set; then | |
6050 | enableval="$enable_timer" | |
6051 | ||
6052 | if test "$enableval" = yes; then | |
6053 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
6054 | else | |
6055 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6056 | fi | |
6057 | ||
6058 | else | |
6059 | ||
6060 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6061 | if test "x$LINE" != x ; then | |
6062 | eval "DEFAULT_$LINE" | |
6063 | else | |
6064 | no_cache=1 | |
6065 | fi | |
6066 | ||
6067 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6068 | ||
6069 | fi; | |
6070 | ||
6071 | eval "$ac_cv_use_timer" | |
6072 | if test "$no_cache" != 1; then | |
6073 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6074 | fi | |
6075 | ||
6076 | if test "$wxUSE_TIMER" = yes; then | |
6077 | echo "$as_me:$LINENO: result: yes" >&5 | |
6078 | echo "${ECHO_T}yes" >&6 | |
6079 | else | |
6080 | echo "$as_me:$LINENO: result: no" >&5 | |
6081 | echo "${ECHO_T}no" >&6 | |
6082 | fi | |
6083 | ||
6084 | ||
6085 | enablestring= | |
6086 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6087 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6088 | no_cache=0 | |
6089 | # Check whether --enable-unicode or --disable-unicode was given. | |
6090 | if test "${enable_unicode+set}" = set; then | |
6091 | enableval="$enable_unicode" | |
6092 | ||
6093 | if test "$enableval" = yes; then | |
6094 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6095 | else | |
6096 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6097 | fi | |
6098 | ||
6099 | else | |
6100 | ||
6101 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6102 | if test "x$LINE" != x ; then | |
6103 | eval "DEFAULT_$LINE" | |
6104 | else | |
6105 | no_cache=1 | |
6106 | fi | |
6107 | ||
6108 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6109 | ||
6110 | fi; | |
6111 | ||
6112 | eval "$ac_cv_use_unicode" | |
6113 | if test "$no_cache" != 1; then | |
6114 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6115 | fi | |
6116 | ||
6117 | if test "$wxUSE_UNICODE" = yes; then | |
6118 | echo "$as_me:$LINENO: result: yes" >&5 | |
6119 | echo "${ECHO_T}yes" >&6 | |
6120 | else | |
6121 | echo "$as_me:$LINENO: result: no" >&5 | |
6122 | echo "${ECHO_T}no" >&6 | |
6123 | fi | |
6124 | ||
6125 | ||
6126 | enablestring= | |
6127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6128 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6129 | no_cache=0 | |
6130 | # Check whether --enable-sound or --disable-sound was given. | |
6131 | if test "${enable_sound+set}" = set; then | |
6132 | enableval="$enable_sound" | |
6133 | ||
6134 | if test "$enableval" = yes; then | |
6135 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6136 | else | |
6137 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6138 | fi | |
6139 | ||
6140 | else | |
6141 | ||
6142 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6143 | if test "x$LINE" != x ; then | |
6144 | eval "DEFAULT_$LINE" | |
6145 | else | |
6146 | no_cache=1 | |
6147 | fi | |
6148 | ||
6149 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6150 | ||
6151 | fi; | |
6152 | ||
6153 | eval "$ac_cv_use_sound" | |
6154 | if test "$no_cache" != 1; then | |
6155 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6156 | fi | |
6157 | ||
6158 | if test "$wxUSE_SOUND" = yes; then | |
6159 | echo "$as_me:$LINENO: result: yes" >&5 | |
6160 | echo "${ECHO_T}yes" >&6 | |
6161 | else | |
6162 | echo "$as_me:$LINENO: result: no" >&5 | |
6163 | echo "${ECHO_T}no" >&6 | |
6164 | fi | |
6165 | ||
6166 | ||
3b57de8b RL |
6167 | enablestring= |
6168 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6169 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6170 | no_cache=0 | |
6171 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6172 | if test "${enable_mediactrl+set}" = set; then | |
6173 | enableval="$enable_mediactrl" | |
6174 | ||
6175 | if test "$enableval" = yes; then | |
6176 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6177 | else | |
6178 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6179 | fi | |
6180 | ||
6181 | else | |
6182 | ||
6183 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6184 | if test "x$LINE" != x ; then | |
6185 | eval "DEFAULT_$LINE" | |
6186 | else | |
6187 | no_cache=1 | |
6188 | fi | |
6189 | ||
6190 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6191 | ||
6192 | fi; | |
6193 | ||
6194 | eval "$ac_cv_use_mediactrl" | |
6195 | if test "$no_cache" != 1; then | |
6196 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6197 | fi | |
6198 | ||
6199 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6200 | echo "$as_me:$LINENO: result: yes" >&5 | |
6201 | echo "${ECHO_T}yes" >&6 | |
6202 | else | |
6203 | echo "$as_me:$LINENO: result: no" >&5 | |
6204 | echo "${ECHO_T}no" >&6 | |
6205 | fi | |
6206 | ||
6207 | ||
f10e38c4 VZ |
6208 | enablestring= |
6209 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5 | |
6210 | echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6 | |
6211 | no_cache=0 | |
6212 | # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given. | |
6213 | if test "${enable_gstreamer8+set}" = set; then | |
6214 | enableval="$enable_gstreamer8" | |
6215 | ||
6216 | if test "$enableval" = yes; then | |
6217 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes' | |
6218 | else | |
6219 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no' | |
6220 | fi | |
6221 | ||
6222 | else | |
6223 | ||
6224 | LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}` | |
6225 | if test "x$LINE" != x ; then | |
6226 | eval "DEFAULT_$LINE" | |
6227 | else | |
6228 | no_cache=1 | |
6229 | fi | |
6230 | ||
6231 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8 | |
6232 | ||
6233 | fi; | |
6234 | ||
6235 | eval "$ac_cv_use_gstreamer8" | |
6236 | if test "$no_cache" != 1; then | |
6237 | echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp | |
6238 | fi | |
6239 | ||
6240 | if test "$wxUSE_GSTREAMER8" = yes; then | |
6241 | echo "$as_me:$LINENO: result: yes" >&5 | |
6242 | echo "${ECHO_T}yes" >&6 | |
6243 | else | |
6244 | echo "$as_me:$LINENO: result: no" >&5 | |
6245 | echo "${ECHO_T}no" >&6 | |
6246 | fi | |
6247 | ||
6248 | ||
a848cd7e SC |
6249 | enablestring= |
6250 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6251 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6252 | no_cache=0 | |
6253 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6254 | if test "${enable_wxprintfv+set}" = set; then | |
6255 | enableval="$enable_wxprintfv" | |
6256 | ||
6257 | if test "$enableval" = yes; then | |
6258 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6259 | else | |
6260 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6261 | fi | |
6262 | ||
6263 | else | |
6264 | ||
6265 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6266 | if test "x$LINE" != x ; then | |
6267 | eval "DEFAULT_$LINE" | |
6268 | else | |
6269 | no_cache=1 | |
6270 | fi | |
6271 | ||
6272 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6273 | ||
6274 | fi; | |
6275 | ||
6276 | eval "$ac_cv_use_wxprintfv" | |
6277 | if test "$no_cache" != 1; then | |
6278 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6279 | fi | |
6280 | ||
6281 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6282 | echo "$as_me:$LINENO: result: yes" >&5 | |
6283 | echo "${ECHO_T}yes" >&6 | |
6284 | else | |
6285 | echo "$as_me:$LINENO: result: no" >&5 | |
6286 | echo "${ECHO_T}no" >&6 | |
6287 | fi | |
6288 | ||
6289 | ||
6290 | enablestring= | |
6291 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6292 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6293 | no_cache=0 | |
6294 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6295 | if test "${enable_zipstream+set}" = set; then | |
6296 | enableval="$enable_zipstream" | |
6297 | ||
6298 | if test "$enableval" = yes; then | |
6299 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6300 | else | |
6301 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6302 | fi | |
6303 | ||
6304 | else | |
6305 | ||
6306 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6307 | if test "x$LINE" != x ; then | |
6308 | eval "DEFAULT_$LINE" | |
6309 | else | |
6310 | no_cache=1 | |
6311 | fi | |
6312 | ||
6313 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6314 | ||
6315 | fi; | |
6316 | ||
6317 | eval "$ac_cv_use_zipstream" | |
6318 | if test "$no_cache" != 1; then | |
6319 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6320 | fi | |
6321 | ||
6322 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6323 | echo "$as_me:$LINENO: result: yes" >&5 | |
6324 | echo "${ECHO_T}yes" >&6 | |
6325 | else | |
6326 | echo "$as_me:$LINENO: result: no" >&5 | |
6327 | echo "${ECHO_T}no" >&6 | |
6328 | fi | |
6329 | ||
6330 | ||
a848cd7e SC |
6331 | |
6332 | enablestring= | |
6333 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6334 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6335 | no_cache=0 | |
6336 | # Check whether --enable-url or --disable-url was given. | |
6337 | if test "${enable_url+set}" = set; then | |
6338 | enableval="$enable_url" | |
6339 | ||
6340 | if test "$enableval" = yes; then | |
6341 | ac_cv_use_url='wxUSE_URL=yes' | |
6342 | else | |
6343 | ac_cv_use_url='wxUSE_URL=no' | |
6344 | fi | |
6345 | ||
6346 | else | |
6347 | ||
6348 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6349 | if test "x$LINE" != x ; then | |
6350 | eval "DEFAULT_$LINE" | |
6351 | else | |
6352 | no_cache=1 | |
6353 | fi | |
6354 | ||
6355 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6356 | ||
6357 | fi; | |
6358 | ||
6359 | eval "$ac_cv_use_url" | |
6360 | if test "$no_cache" != 1; then | |
6361 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6362 | fi | |
6363 | ||
6364 | if test "$wxUSE_URL" = yes; then | |
6365 | echo "$as_me:$LINENO: result: yes" >&5 | |
6366 | echo "${ECHO_T}yes" >&6 | |
6367 | else | |
6368 | echo "$as_me:$LINENO: result: no" >&5 | |
6369 | echo "${ECHO_T}no" >&6 | |
6370 | fi | |
6371 | ||
6372 | ||
6373 | enablestring= | |
6374 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6375 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6376 | no_cache=0 | |
6377 | # Check whether --enable-protocol or --disable-protocol was given. | |
6378 | if test "${enable_protocol+set}" = set; then | |
6379 | enableval="$enable_protocol" | |
6380 | ||
6381 | if test "$enableval" = yes; then | |
6382 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6383 | else | |
6384 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6385 | fi | |
6386 | ||
6387 | else | |
6388 | ||
6389 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6390 | if test "x$LINE" != x ; then | |
6391 | eval "DEFAULT_$LINE" | |
6392 | else | |
6393 | no_cache=1 | |
6394 | fi | |
6395 | ||
6396 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6397 | ||
6398 | fi; | |
6399 | ||
6400 | eval "$ac_cv_use_protocol" | |
6401 | if test "$no_cache" != 1; then | |
6402 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6403 | fi | |
6404 | ||
6405 | if test "$wxUSE_PROTOCOL" = yes; then | |
6406 | echo "$as_me:$LINENO: result: yes" >&5 | |
6407 | echo "${ECHO_T}yes" >&6 | |
6408 | else | |
6409 | echo "$as_me:$LINENO: result: no" >&5 | |
6410 | echo "${ECHO_T}no" >&6 | |
6411 | fi | |
6412 | ||
6413 | ||
6414 | enablestring= | |
6415 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6416 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6417 | no_cache=0 | |
6418 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6419 | if test "${enable_protocol_http+set}" = set; then | |
6420 | enableval="$enable_protocol_http" | |
6421 | ||
6422 | if test "$enableval" = yes; then | |
6423 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6424 | else | |
6425 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6426 | fi | |
6427 | ||
6428 | else | |
6429 | ||
6430 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6431 | if test "x$LINE" != x ; then | |
6432 | eval "DEFAULT_$LINE" | |
6433 | else | |
6434 | no_cache=1 | |
6435 | fi | |
6436 | ||
6437 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6438 | ||
6439 | fi; | |
6440 | ||
6441 | eval "$ac_cv_use_protocol_http" | |
6442 | if test "$no_cache" != 1; then | |
6443 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6444 | fi | |
6445 | ||
6446 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6447 | echo "$as_me:$LINENO: result: yes" >&5 | |
6448 | echo "${ECHO_T}yes" >&6 | |
6449 | else | |
6450 | echo "$as_me:$LINENO: result: no" >&5 | |
6451 | echo "${ECHO_T}no" >&6 | |
6452 | fi | |
6453 | ||
6454 | ||
6455 | enablestring= | |
6456 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6457 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6458 | no_cache=0 | |
6459 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6460 | if test "${enable_protocol_ftp+set}" = set; then | |
6461 | enableval="$enable_protocol_ftp" | |
6462 | ||
6463 | if test "$enableval" = yes; then | |
6464 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6465 | else | |
6466 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6467 | fi | |
6468 | ||
6469 | else | |
6470 | ||
6471 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6472 | if test "x$LINE" != x ; then | |
6473 | eval "DEFAULT_$LINE" | |
6474 | else | |
6475 | no_cache=1 | |
6476 | fi | |
6477 | ||
6478 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6479 | ||
6480 | fi; | |
6481 | ||
6482 | eval "$ac_cv_use_protocol_ftp" | |
6483 | if test "$no_cache" != 1; then | |
6484 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6485 | fi | |
6486 | ||
6487 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6488 | echo "$as_me:$LINENO: result: yes" >&5 | |
6489 | echo "${ECHO_T}yes" >&6 | |
6490 | else | |
6491 | echo "$as_me:$LINENO: result: no" >&5 | |
6492 | echo "${ECHO_T}no" >&6 | |
6493 | fi | |
6494 | ||
6495 | ||
6496 | enablestring= | |
6497 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6498 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6499 | no_cache=0 | |
6500 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6501 | if test "${enable_protocol_file+set}" = set; then | |
6502 | enableval="$enable_protocol_file" | |
6503 | ||
6504 | if test "$enableval" = yes; then | |
6505 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6506 | else | |
6507 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6508 | fi | |
6509 | ||
6510 | else | |
6511 | ||
6512 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6513 | if test "x$LINE" != x ; then | |
6514 | eval "DEFAULT_$LINE" | |
6515 | else | |
6516 | no_cache=1 | |
6517 | fi | |
6518 | ||
6519 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6520 | ||
6521 | fi; | |
6522 | ||
6523 | eval "$ac_cv_use_protocol_file" | |
6524 | if test "$no_cache" != 1; then | |
6525 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6526 | fi | |
6527 | ||
6528 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6529 | echo "$as_me:$LINENO: result: yes" >&5 | |
6530 | echo "${ECHO_T}yes" >&6 | |
6531 | else | |
6532 | echo "$as_me:$LINENO: result: no" >&5 | |
6533 | echo "${ECHO_T}no" >&6 | |
6534 | fi | |
6535 | ||
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | enablestring= | |
6541 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6542 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6543 | no_cache=0 | |
6544 | # Check whether --enable-threads or --disable-threads was given. | |
6545 | if test "${enable_threads+set}" = set; then | |
6546 | enableval="$enable_threads" | |
6547 | ||
6548 | if test "$enableval" = yes; then | |
6549 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6550 | else | |
6551 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6552 | fi | |
6553 | ||
6554 | else | |
6555 | ||
6556 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6557 | if test "x$LINE" != x ; then | |
6558 | eval "DEFAULT_$LINE" | |
6559 | else | |
6560 | no_cache=1 | |
6561 | fi | |
6562 | ||
6563 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6564 | ||
6565 | fi; | |
6566 | ||
6567 | eval "$ac_cv_use_threads" | |
6568 | if test "$no_cache" != 1; then | |
6569 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6570 | fi | |
6571 | ||
6572 | if test "$wxUSE_THREADS" = yes; then | |
6573 | echo "$as_me:$LINENO: result: yes" >&5 | |
6574 | echo "${ECHO_T}yes" >&6 | |
6575 | else | |
6576 | echo "$as_me:$LINENO: result: no" >&5 | |
6577 | echo "${ECHO_T}no" >&6 | |
6578 | fi | |
6579 | ||
6580 | ||
6581 | if test "$wxUSE_GUI" = "yes"; then | |
6582 | ||
6583 | ||
6584 | ||
6585 | enablestring= | |
6586 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6587 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6588 | no_cache=0 | |
6589 | # Check whether --enable-docview or --disable-docview was given. | |
6590 | if test "${enable_docview+set}" = set; then | |
6591 | enableval="$enable_docview" | |
6592 | ||
6593 | if test "$enableval" = yes; then | |
6594 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6595 | else | |
6596 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6597 | fi | |
6598 | ||
6599 | else | |
6600 | ||
6601 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6602 | if test "x$LINE" != x ; then | |
6603 | eval "DEFAULT_$LINE" | |
6604 | else | |
6605 | no_cache=1 | |
6606 | fi | |
6607 | ||
6608 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6609 | ||
6610 | fi; | |
6611 | ||
6612 | eval "$ac_cv_use_docview" | |
6613 | if test "$no_cache" != 1; then | |
6614 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6615 | fi | |
6616 | ||
6617 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6618 | echo "$as_me:$LINENO: result: yes" >&5 | |
6619 | echo "${ECHO_T}yes" >&6 | |
6620 | else | |
6621 | echo "$as_me:$LINENO: result: no" >&5 | |
6622 | echo "${ECHO_T}no" >&6 | |
6623 | fi | |
6624 | ||
6625 | ||
6626 | enablestring= | |
6627 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6628 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6629 | no_cache=0 | |
6630 | # Check whether --enable-help or --disable-help was given. | |
6631 | if test "${enable_help+set}" = set; then | |
6632 | enableval="$enable_help" | |
6633 | ||
6634 | if test "$enableval" = yes; then | |
6635 | ac_cv_use_help='wxUSE_HELP=yes' | |
6636 | else | |
6637 | ac_cv_use_help='wxUSE_HELP=no' | |
6638 | fi | |
6639 | ||
6640 | else | |
6641 | ||
6642 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6643 | if test "x$LINE" != x ; then | |
6644 | eval "DEFAULT_$LINE" | |
6645 | else | |
6646 | no_cache=1 | |
6647 | fi | |
6648 | ||
6649 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6650 | ||
6651 | fi; | |
6652 | ||
6653 | eval "$ac_cv_use_help" | |
6654 | if test "$no_cache" != 1; then | |
6655 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6656 | fi | |
6657 | ||
6658 | if test "$wxUSE_HELP" = yes; then | |
6659 | echo "$as_me:$LINENO: result: yes" >&5 | |
6660 | echo "${ECHO_T}yes" >&6 | |
6661 | else | |
6662 | echo "$as_me:$LINENO: result: no" >&5 | |
6663 | echo "${ECHO_T}no" >&6 | |
6664 | fi | |
6665 | ||
6666 | ||
6667 | enablestring= | |
6668 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6669 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6670 | no_cache=0 | |
6671 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6672 | if test "${enable_mshtmlhelp+set}" = set; then | |
6673 | enableval="$enable_mshtmlhelp" | |
6674 | ||
6675 | if test "$enableval" = yes; then | |
6676 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6677 | else | |
6678 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6679 | fi | |
6680 | ||
6681 | else | |
6682 | ||
6683 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6684 | if test "x$LINE" != x ; then | |
6685 | eval "DEFAULT_$LINE" | |
6686 | else | |
6687 | no_cache=1 | |
6688 | fi | |
6689 | ||
6690 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6691 | ||
6692 | fi; | |
6693 | ||
6694 | eval "$ac_cv_use_mshtmlhelp" | |
6695 | if test "$no_cache" != 1; then | |
6696 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6697 | fi | |
6698 | ||
6699 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6700 | echo "$as_me:$LINENO: result: yes" >&5 | |
6701 | echo "${ECHO_T}yes" >&6 | |
6702 | else | |
6703 | echo "$as_me:$LINENO: result: no" >&5 | |
6704 | echo "${ECHO_T}no" >&6 | |
6705 | fi | |
6706 | ||
6707 | ||
6708 | enablestring= | |
6709 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6710 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6711 | no_cache=0 | |
6712 | # Check whether --enable-html or --disable-html was given. | |
6713 | if test "${enable_html+set}" = set; then | |
6714 | enableval="$enable_html" | |
6715 | ||
6716 | if test "$enableval" = yes; then | |
6717 | ac_cv_use_html='wxUSE_HTML=yes' | |
6718 | else | |
6719 | ac_cv_use_html='wxUSE_HTML=no' | |
6720 | fi | |
6721 | ||
6722 | else | |
6723 | ||
6724 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6725 | if test "x$LINE" != x ; then | |
6726 | eval "DEFAULT_$LINE" | |
6727 | else | |
6728 | no_cache=1 | |
6729 | fi | |
6730 | ||
6731 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6732 | ||
6733 | fi; | |
6734 | ||
6735 | eval "$ac_cv_use_html" | |
6736 | if test "$no_cache" != 1; then | |
6737 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6738 | fi | |
6739 | ||
6740 | if test "$wxUSE_HTML" = yes; then | |
6741 | echo "$as_me:$LINENO: result: yes" >&5 | |
6742 | echo "${ECHO_T}yes" >&6 | |
6743 | else | |
6744 | echo "$as_me:$LINENO: result: no" >&5 | |
6745 | echo "${ECHO_T}no" >&6 | |
6746 | fi | |
6747 | ||
6748 | ||
6749 | enablestring= | |
6750 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6751 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6752 | no_cache=0 | |
6753 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6754 | if test "${enable_htmlhelp+set}" = set; then | |
6755 | enableval="$enable_htmlhelp" | |
6756 | ||
6757 | if test "$enableval" = yes; then | |
6758 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6759 | else | |
6760 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6761 | fi | |
6762 | ||
6763 | else | |
6764 | ||
6765 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6766 | if test "x$LINE" != x ; then | |
6767 | eval "DEFAULT_$LINE" | |
6768 | else | |
6769 | no_cache=1 | |
6770 | fi | |
6771 | ||
6772 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6773 | ||
6774 | fi; | |
6775 | ||
6776 | eval "$ac_cv_use_htmlhelp" | |
6777 | if test "$no_cache" != 1; then | |
6778 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6779 | fi | |
6780 | ||
6781 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6782 | echo "$as_me:$LINENO: result: yes" >&5 | |
6783 | echo "${ECHO_T}yes" >&6 | |
6784 | else | |
6785 | echo "$as_me:$LINENO: result: no" >&5 | |
6786 | echo "${ECHO_T}no" >&6 | |
6787 | fi | |
6788 | ||
6789 | ||
9a8f0513 VS |
6790 | enablestring= |
6791 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6792 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6793 | no_cache=0 | |
6794 | # Check whether --enable-xrc or --disable-xrc was given. | |
6795 | if test "${enable_xrc+set}" = set; then | |
6796 | enableval="$enable_xrc" | |
6797 | ||
6798 | if test "$enableval" = yes; then | |
6799 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6800 | else | |
6801 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6802 | fi | |
6803 | ||
6804 | else | |
6805 | ||
6806 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6807 | if test "x$LINE" != x ; then | |
6808 | eval "DEFAULT_$LINE" | |
6809 | else | |
6810 | no_cache=1 | |
6811 | fi | |
6812 | ||
6813 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6814 | ||
6815 | fi; | |
6816 | ||
6817 | eval "$ac_cv_use_xrc" | |
6818 | if test "$no_cache" != 1; then | |
6819 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6820 | fi | |
6821 | ||
6822 | if test "$wxUSE_XRC" = yes; then | |
6823 | echo "$as_me:$LINENO: result: yes" >&5 | |
6824 | echo "${ECHO_T}yes" >&6 | |
6825 | else | |
6826 | echo "$as_me:$LINENO: result: no" >&5 | |
6827 | echo "${ECHO_T}no" >&6 | |
6828 | fi | |
6829 | ||
6830 | ||
a848cd7e SC |
6831 | enablestring= |
6832 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6833 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6834 | no_cache=0 | |
6835 | # Check whether --enable-constraints or --disable-constraints was given. | |
6836 | if test "${enable_constraints+set}" = set; then | |
6837 | enableval="$enable_constraints" | |
6838 | ||
6839 | if test "$enableval" = yes; then | |
6840 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6841 | else | |
6842 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6843 | fi | |
6844 | ||
6845 | else | |
6846 | ||
6847 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6848 | if test "x$LINE" != x ; then | |
6849 | eval "DEFAULT_$LINE" | |
6850 | else | |
6851 | no_cache=1 | |
6852 | fi | |
6853 | ||
6854 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6855 | ||
6856 | fi; | |
6857 | ||
6858 | eval "$ac_cv_use_constraints" | |
6859 | if test "$no_cache" != 1; then | |
6860 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6861 | fi | |
6862 | ||
6863 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6864 | echo "$as_me:$LINENO: result: yes" >&5 | |
6865 | echo "${ECHO_T}yes" >&6 | |
6866 | else | |
6867 | echo "$as_me:$LINENO: result: no" >&5 | |
6868 | echo "${ECHO_T}no" >&6 | |
6869 | fi | |
6870 | ||
6871 | ||
6872 | enablestring= | |
6873 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6874 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6875 | no_cache=0 | |
6876 | # Check whether --enable-printarch or --disable-printarch was given. | |
6877 | if test "${enable_printarch+set}" = set; then | |
6878 | enableval="$enable_printarch" | |
6879 | ||
6880 | if test "$enableval" = yes; then | |
6881 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6882 | else | |
6883 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6884 | fi | |
6885 | ||
6886 | else | |
6887 | ||
6888 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6889 | if test "x$LINE" != x ; then | |
6890 | eval "DEFAULT_$LINE" | |
6891 | else | |
6892 | no_cache=1 | |
6893 | fi | |
6894 | ||
6895 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6896 | ||
6897 | fi; | |
6898 | ||
6899 | eval "$ac_cv_use_printarch" | |
6900 | if test "$no_cache" != 1; then | |
6901 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6902 | fi | |
6903 | ||
6904 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6905 | echo "$as_me:$LINENO: result: yes" >&5 | |
6906 | echo "${ECHO_T}yes" >&6 | |
6907 | else | |
6908 | echo "$as_me:$LINENO: result: no" >&5 | |
6909 | echo "${ECHO_T}no" >&6 | |
6910 | fi | |
6911 | ||
6912 | ||
6913 | enablestring= | |
6914 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6915 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6916 | no_cache=0 | |
6917 | # Check whether --enable-mdi or --disable-mdi was given. | |
6918 | if test "${enable_mdi+set}" = set; then | |
6919 | enableval="$enable_mdi" | |
6920 | ||
6921 | if test "$enableval" = yes; then | |
8a7b1113 | 6922 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6923 | else |
8a7b1113 | 6924 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6925 | fi |
6926 | ||
6927 | else | |
6928 | ||
8a7b1113 | 6929 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6930 | if test "x$LINE" != x ; then |
6931 | eval "DEFAULT_$LINE" | |
6932 | else | |
6933 | no_cache=1 | |
6934 | fi | |
6935 | ||
8a7b1113 | 6936 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6937 | |
6938 | fi; | |
6939 | ||
6940 | eval "$ac_cv_use_mdi" | |
6941 | if test "$no_cache" != 1; then | |
6942 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6943 | fi | |
6944 | ||
8a7b1113 VZ |
6945 | if test "$wxUSE_MDI" = yes; then |
6946 | echo "$as_me:$LINENO: result: yes" >&5 | |
6947 | echo "${ECHO_T}yes" >&6 | |
6948 | else | |
6949 | echo "$as_me:$LINENO: result: no" >&5 | |
6950 | echo "${ECHO_T}no" >&6 | |
6951 | fi | |
6952 | ||
6953 | ||
6954 | enablestring= | |
6955 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6956 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6957 | no_cache=0 | |
6958 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6959 | if test "${enable_mdidoc+set}" = set; then | |
6960 | enableval="$enable_mdidoc" | |
6961 | ||
6962 | if test "$enableval" = yes; then | |
6963 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6964 | else | |
6965 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6966 | fi | |
6967 | ||
6968 | else | |
6969 | ||
6970 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6971 | if test "x$LINE" != x ; then | |
6972 | eval "DEFAULT_$LINE" | |
6973 | else | |
6974 | no_cache=1 | |
6975 | fi | |
6976 | ||
6977 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6978 | ||
6979 | fi; | |
6980 | ||
6981 | eval "$ac_cv_use_mdidoc" | |
6982 | if test "$no_cache" != 1; then | |
6983 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6984 | fi | |
6985 | ||
a848cd7e SC |
6986 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6987 | echo "$as_me:$LINENO: result: yes" >&5 | |
6988 | echo "${ECHO_T}yes" >&6 | |
6989 | else | |
6990 | echo "$as_me:$LINENO: result: no" >&5 | |
6991 | echo "${ECHO_T}no" >&6 | |
6992 | fi | |
6993 | ||
6994 | ||
6995 | enablestring= | |
6996 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6997 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6998 | no_cache=0 | |
6999 | # Check whether --enable-loggui or --disable-loggui was given. | |
7000 | if test "${enable_loggui+set}" = set; then | |
7001 | enableval="$enable_loggui" | |
7002 | ||
7003 | if test "$enableval" = yes; then | |
7004 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
7005 | else | |
7006 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
7007 | fi | |
7008 | ||
7009 | else | |
7010 | ||
7011 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
7012 | if test "x$LINE" != x ; then | |
7013 | eval "DEFAULT_$LINE" | |
7014 | else | |
7015 | no_cache=1 | |
7016 | fi | |
7017 | ||
7018 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
7019 | ||
7020 | fi; | |
7021 | ||
7022 | eval "$ac_cv_use_loggui" | |
7023 | if test "$no_cache" != 1; then | |
7024 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
7025 | fi | |
7026 | ||
7027 | if test "$wxUSE_LOGGUI" = yes; then | |
7028 | echo "$as_me:$LINENO: result: yes" >&5 | |
7029 | echo "${ECHO_T}yes" >&6 | |
7030 | else | |
7031 | echo "$as_me:$LINENO: result: no" >&5 | |
7032 | echo "${ECHO_T}no" >&6 | |
7033 | fi | |
7034 | ||
7035 | ||
7036 | enablestring= | |
7037 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
7038 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
7039 | no_cache=0 | |
7040 | # Check whether --enable-logwin or --disable-logwin was given. | |
7041 | if test "${enable_logwin+set}" = set; then | |
7042 | enableval="$enable_logwin" | |
7043 | ||
7044 | if test "$enableval" = yes; then | |
7045 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
7046 | else | |
7047 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
7048 | fi | |
7049 | ||
7050 | else | |
7051 | ||
7052 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
7053 | if test "x$LINE" != x ; then | |
7054 | eval "DEFAULT_$LINE" | |
7055 | else | |
7056 | no_cache=1 | |
7057 | fi | |
7058 | ||
7059 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
7060 | ||
7061 | fi; | |
7062 | ||
7063 | eval "$ac_cv_use_logwin" | |
7064 | if test "$no_cache" != 1; then | |
7065 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
7066 | fi | |
7067 | ||
7068 | if test "$wxUSE_LOGWINDOW" = yes; then | |
7069 | echo "$as_me:$LINENO: result: yes" >&5 | |
7070 | echo "${ECHO_T}yes" >&6 | |
7071 | else | |
7072 | echo "$as_me:$LINENO: result: no" >&5 | |
7073 | echo "${ECHO_T}no" >&6 | |
7074 | fi | |
7075 | ||
7076 | ||
7077 | enablestring= | |
7078 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
7079 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
7080 | no_cache=0 | |
7081 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
7082 | if test "${enable_logdialog+set}" = set; then | |
7083 | enableval="$enable_logdialog" | |
7084 | ||
7085 | if test "$enableval" = yes; then | |
7086 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
7087 | else | |
7088 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
7089 | fi | |
7090 | ||
7091 | else | |
7092 | ||
7093 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
7094 | if test "x$LINE" != x ; then | |
7095 | eval "DEFAULT_$LINE" | |
7096 | else | |
7097 | no_cache=1 | |
7098 | fi | |
7099 | ||
7100 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7101 | ||
7102 | fi; | |
7103 | ||
7104 | eval "$ac_cv_use_logdialog" | |
7105 | if test "$no_cache" != 1; then | |
7106 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7107 | fi | |
7108 | ||
7109 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7110 | echo "$as_me:$LINENO: result: yes" >&5 | |
7111 | echo "${ECHO_T}yes" >&6 | |
7112 | else | |
7113 | echo "$as_me:$LINENO: result: no" >&5 | |
7114 | echo "${ECHO_T}no" >&6 | |
7115 | fi | |
7116 | ||
7117 | ||
646b6ec1 VS |
7118 | enablestring= |
7119 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7120 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7121 | no_cache=0 | |
7122 | # Check whether --enable-webkit or --disable-webkit was given. | |
7123 | if test "${enable_webkit+set}" = set; then | |
7124 | enableval="$enable_webkit" | |
7125 | ||
7126 | if test "$enableval" = yes; then | |
7127 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7128 | else | |
7129 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7130 | fi | |
7131 | ||
7132 | else | |
7133 | ||
7134 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7135 | if test "x$LINE" != x ; then | |
7136 | eval "DEFAULT_$LINE" | |
7137 | else | |
7138 | no_cache=1 | |
7139 | fi | |
7140 | ||
7141 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7142 | ||
7143 | fi; | |
7144 | ||
7145 | eval "$ac_cv_use_webkit" | |
7146 | if test "$no_cache" != 1; then | |
7147 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7148 | fi | |
7149 | ||
7150 | if test "$wxUSE_WEBKIT" = yes; then | |
7151 | echo "$as_me:$LINENO: result: yes" >&5 | |
7152 | echo "${ECHO_T}yes" >&6 | |
7153 | else | |
7154 | echo "$as_me:$LINENO: result: no" >&5 | |
7155 | echo "${ECHO_T}no" >&6 | |
7156 | fi | |
7157 | ||
7158 | ||
91dea314 MW |
7159 | enablestring= |
7160 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7161 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7162 | no_cache=0 | |
7163 | # Check whether --enable-html or --disable-html was given. | |
7164 | if test "${enable_html+set}" = set; then | |
7165 | enableval="$enable_html" | |
7166 | ||
7167 | if test "$enableval" = yes; then | |
7168 | ac_cv_use_html='wxUSE_RICHTEXT=yes' | |
7169 | else | |
7170 | ac_cv_use_html='wxUSE_RICHTEXT=no' | |
7171 | fi | |
7172 | ||
7173 | else | |
7174 | ||
7175 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7176 | if test "x$LINE" != x ; then | |
7177 | eval "DEFAULT_$LINE" | |
7178 | else | |
7179 | no_cache=1 | |
7180 | fi | |
7181 | ||
7182 | ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT | |
7183 | ||
7184 | fi; | |
7185 | ||
7186 | eval "$ac_cv_use_html" | |
7187 | if test "$no_cache" != 1; then | |
7188 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7189 | fi | |
7190 | ||
7191 | if test "$wxUSE_RICHTEXT" = yes; then | |
7192 | echo "$as_me:$LINENO: result: yes" >&5 | |
7193 | echo "${ECHO_T}yes" >&6 | |
7194 | else | |
7195 | echo "$as_me:$LINENO: result: no" >&5 | |
7196 | echo "${ECHO_T}no" >&6 | |
7197 | fi | |
7198 | ||
7199 | ||
a848cd7e SC |
7200 | |
7201 | enablestring= | |
7202 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7203 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7204 | no_cache=0 | |
7205 | # Check whether --enable-postscript or --disable-postscript was given. | |
7206 | if test "${enable_postscript+set}" = set; then | |
7207 | enableval="$enable_postscript" | |
7208 | ||
7209 | if test "$enableval" = yes; then | |
7210 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7211 | else | |
7212 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7213 | fi | |
7214 | ||
7215 | else | |
7216 | ||
7217 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7218 | if test "x$LINE" != x ; then | |
7219 | eval "DEFAULT_$LINE" | |
7220 | else | |
7221 | no_cache=1 | |
7222 | fi | |
7223 | ||
7224 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7225 | ||
7226 | fi; | |
7227 | ||
7228 | eval "$ac_cv_use_postscript" | |
7229 | if test "$no_cache" != 1; then | |
7230 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7231 | fi | |
7232 | ||
7233 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7234 | echo "$as_me:$LINENO: result: yes" >&5 | |
7235 | echo "${ECHO_T}yes" >&6 | |
7236 | else | |
7237 | echo "$as_me:$LINENO: result: no" >&5 | |
7238 | echo "${ECHO_T}no" >&6 | |
7239 | fi | |
7240 | ||
7241 | ||
7242 | ||
7243 | ||
7244 | ||
7245 | enablestring= | |
7246 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7247 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7248 | no_cache=0 | |
7249 | # Check whether --enable-prologio or --disable-prologio was given. | |
7250 | if test "${enable_prologio+set}" = set; then | |
7251 | enableval="$enable_prologio" | |
7252 | ||
7253 | if test "$enableval" = yes; then | |
7254 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7255 | else | |
7256 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7257 | fi | |
7258 | ||
7259 | else | |
7260 | ||
7261 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7262 | if test "x$LINE" != x ; then | |
7263 | eval "DEFAULT_$LINE" | |
7264 | else | |
7265 | no_cache=1 | |
7266 | fi | |
7267 | ||
7268 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7269 | ||
7270 | fi; | |
7271 | ||
7272 | eval "$ac_cv_use_prologio" | |
7273 | if test "$no_cache" != 1; then | |
7274 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7275 | fi | |
7276 | ||
7277 | if test "$wxUSE_PROLOGIO" = yes; then | |
7278 | echo "$as_me:$LINENO: result: yes" >&5 | |
7279 | echo "${ECHO_T}yes" >&6 | |
7280 | else | |
7281 | echo "$as_me:$LINENO: result: no" >&5 | |
7282 | echo "${ECHO_T}no" >&6 | |
7283 | fi | |
7284 | ||
7285 | ||
7286 | enablestring= | |
7287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7288 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7289 | no_cache=0 | |
7290 | # Check whether --enable-resources or --disable-resources was given. | |
7291 | if test "${enable_resources+set}" = set; then | |
7292 | enableval="$enable_resources" | |
7293 | ||
7294 | if test "$enableval" = yes; then | |
7295 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7296 | else | |
7297 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7298 | fi | |
7299 | ||
7300 | else | |
7301 | ||
7302 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7303 | if test "x$LINE" != x ; then | |
7304 | eval "DEFAULT_$LINE" | |
7305 | else | |
7306 | no_cache=1 | |
7307 | fi | |
7308 | ||
7309 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7310 | ||
7311 | fi; | |
7312 | ||
7313 | eval "$ac_cv_use_resources" | |
7314 | if test "$no_cache" != 1; then | |
7315 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7316 | fi | |
7317 | ||
7318 | if test "$wxUSE_RESOURCES" = yes; then | |
7319 | echo "$as_me:$LINENO: result: yes" >&5 | |
7320 | echo "${ECHO_T}yes" >&6 | |
7321 | else | |
7322 | echo "$as_me:$LINENO: result: no" >&5 | |
7323 | echo "${ECHO_T}no" >&6 | |
7324 | fi | |
7325 | ||
7326 | ||
7327 | ||
7328 | ||
7329 | enablestring= | |
7330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7331 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7332 | no_cache=0 | |
7333 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7334 | if test "${enable_clipboard+set}" = set; then | |
7335 | enableval="$enable_clipboard" | |
7336 | ||
7337 | if test "$enableval" = yes; then | |
7338 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7339 | else | |
7340 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7341 | fi | |
7342 | ||
7343 | else | |
7344 | ||
7345 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7346 | if test "x$LINE" != x ; then | |
7347 | eval "DEFAULT_$LINE" | |
7348 | else | |
7349 | no_cache=1 | |
7350 | fi | |
7351 | ||
7352 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7353 | ||
7354 | fi; | |
7355 | ||
7356 | eval "$ac_cv_use_clipboard" | |
7357 | if test "$no_cache" != 1; then | |
7358 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7359 | fi | |
7360 | ||
7361 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7362 | echo "$as_me:$LINENO: result: yes" >&5 | |
7363 | echo "${ECHO_T}yes" >&6 | |
7364 | else | |
7365 | echo "$as_me:$LINENO: result: no" >&5 | |
7366 | echo "${ECHO_T}no" >&6 | |
7367 | fi | |
7368 | ||
7369 | ||
7370 | enablestring= | |
7371 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7372 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7373 | no_cache=0 | |
7374 | # Check whether --enable-dnd or --disable-dnd was given. | |
7375 | if test "${enable_dnd+set}" = set; then | |
7376 | enableval="$enable_dnd" | |
7377 | ||
7378 | if test "$enableval" = yes; then | |
7379 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7380 | else | |
7381 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7382 | fi | |
7383 | ||
7384 | else | |
7385 | ||
7386 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7387 | if test "x$LINE" != x ; then | |
7388 | eval "DEFAULT_$LINE" | |
7389 | else | |
7390 | no_cache=1 | |
7391 | fi | |
7392 | ||
7393 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7394 | ||
7395 | fi; | |
7396 | ||
7397 | eval "$ac_cv_use_dnd" | |
7398 | if test "$no_cache" != 1; then | |
7399 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7400 | fi | |
7401 | ||
7402 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7403 | echo "$as_me:$LINENO: result: yes" >&5 | |
7404 | echo "${ECHO_T}yes" >&6 | |
7405 | else | |
7406 | echo "$as_me:$LINENO: result: no" >&5 | |
7407 | echo "${ECHO_T}no" >&6 | |
7408 | fi | |
7409 | ||
7410 | ||
7411 | enablestring= | |
7412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7413 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7414 | no_cache=0 | |
7415 | # Check whether --enable-metafile or --disable-metafile was given. | |
7416 | if test "${enable_metafile+set}" = set; then | |
7417 | enableval="$enable_metafile" | |
7418 | ||
7419 | if test "$enableval" = yes; then | |
7420 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7421 | else | |
7422 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7423 | fi | |
7424 | ||
7425 | else | |
7426 | ||
7427 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7428 | if test "x$LINE" != x ; then | |
7429 | eval "DEFAULT_$LINE" | |
7430 | else | |
7431 | no_cache=1 | |
7432 | fi | |
7433 | ||
7434 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7435 | ||
7436 | fi; | |
7437 | ||
7438 | eval "$ac_cv_use_metafile" | |
7439 | if test "$no_cache" != 1; then | |
7440 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7441 | fi | |
7442 | ||
7443 | if test "$wxUSE_METAFILE" = yes; then | |
7444 | echo "$as_me:$LINENO: result: yes" >&5 | |
7445 | echo "${ECHO_T}yes" >&6 | |
7446 | else | |
7447 | echo "$as_me:$LINENO: result: no" >&5 | |
7448 | echo "${ECHO_T}no" >&6 | |
7449 | fi | |
7450 | ||
7451 | ||
7452 | ||
7453 | ||
7454 | ||
7455 | enablestring= | |
7456 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7457 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7458 | no_cache=0 | |
7459 | # Check whether --enable-controls or --disable-controls was given. | |
7460 | if test "${enable_controls+set}" = set; then | |
7461 | enableval="$enable_controls" | |
7462 | ||
7463 | if test "$enableval" = yes; then | |
7464 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7465 | else | |
7466 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7467 | fi | |
7468 | ||
7469 | else | |
7470 | ||
7471 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7472 | if test "x$LINE" != x ; then | |
7473 | eval "DEFAULT_$LINE" | |
7474 | else | |
7475 | no_cache=1 | |
7476 | fi | |
7477 | ||
7478 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7479 | ||
7480 | fi; | |
7481 | ||
7482 | eval "$ac_cv_use_controls" | |
7483 | if test "$no_cache" != 1; then | |
7484 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7485 | fi | |
7486 | ||
7487 | if test "$wxUSE_CONTROLS" = yes; then | |
7488 | echo "$as_me:$LINENO: result: yes" >&5 | |
7489 | echo "${ECHO_T}yes" >&6 | |
7490 | else | |
7491 | echo "$as_me:$LINENO: result: no" >&5 | |
7492 | echo "${ECHO_T}no" >&6 | |
7493 | fi | |
7494 | ||
7495 | ||
7496 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7497 | DEFAULT_wxUSE_ACCEL=yes | |
7498 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7499 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7500 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7501 | DEFAULT_wxUSE_CARET=yes |
7502 | DEFAULT_wxUSE_COMBOBOX=yes | |
7503 | DEFAULT_wxUSE_CHECKBOX=yes | |
7504 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7505 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7506 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7507 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7508 | DEFAULT_wxUSE_GAUGE=yes |
7509 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 7510 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7511 | DEFAULT_wxUSE_IMAGLIST=yes |
7512 | DEFAULT_wxUSE_LISTBOOK=yes | |
7513 | DEFAULT_wxUSE_LISTBOX=yes | |
7514 | DEFAULT_wxUSE_LISTCTRL=yes | |
7515 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7516 | DEFAULT_wxUSE_RADIOBOX=yes | |
7517 | DEFAULT_wxUSE_RADIOBTN=yes | |
7518 | DEFAULT_wxUSE_SASH=yes | |
7519 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7520 | DEFAULT_wxUSE_SLIDER=yes | |
7521 | DEFAULT_wxUSE_SPINBTN=yes | |
7522 | DEFAULT_wxUSE_SPINCTRL=yes | |
7523 | DEFAULT_wxUSE_SPLITTER=yes | |
7524 | DEFAULT_wxUSE_STATBMP=yes | |
7525 | DEFAULT_wxUSE_STATBOX=yes | |
7526 | DEFAULT_wxUSE_STATLINE=yes | |
7527 | DEFAULT_wxUSE_STATUSBAR=yes | |
7528 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7529 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7530 | DEFAULT_wxUSE_TOOLBAR=yes | |
7531 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7532 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7533 | DEFAULT_wxUSE_TOOLTIPS=yes | |
0093c2fc | 7534 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 7535 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
7536 | DEFAULT_wxUSE_TREECTRL=yes |
7537 | DEFAULT_wxUSE_POPUPWIN=yes | |
7538 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7539 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7540 | DEFAULT_wxUSE_ACCEL=no | |
7541 | DEFAULT_wxUSE_BMPBUTTON=no | |
7542 | DEFAULT_wxUSE_BUTTON=no | |
7543 | DEFAULT_wxUSE_CALCTRL=no | |
7544 | DEFAULT_wxUSE_CARET=no | |
7545 | DEFAULT_wxUSE_COMBOBOX=no | |
7546 | DEFAULT_wxUSE_CHECKBOX=no | |
7547 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7548 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7549 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7550 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7551 | DEFAULT_wxUSE_GAUGE=no |
7552 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 7553 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7554 | DEFAULT_wxUSE_IMAGLIST=no |
7555 | DEFAULT_wxUSE_LISTBOOK=no | |
7556 | DEFAULT_wxUSE_LISTBOX=no | |
7557 | DEFAULT_wxUSE_LISTCTRL=no | |
7558 | DEFAULT_wxUSE_NOTEBOOK=no | |
7559 | DEFAULT_wxUSE_RADIOBOX=no | |
7560 | DEFAULT_wxUSE_RADIOBTN=no | |
7561 | DEFAULT_wxUSE_SASH=no | |
7562 | DEFAULT_wxUSE_SCROLLBAR=no | |
7563 | DEFAULT_wxUSE_SLIDER=no | |
7564 | DEFAULT_wxUSE_SPINBTN=no | |
7565 | DEFAULT_wxUSE_SPINCTRL=no | |
7566 | DEFAULT_wxUSE_SPLITTER=no | |
7567 | DEFAULT_wxUSE_STATBMP=no | |
7568 | DEFAULT_wxUSE_STATBOX=no | |
7569 | DEFAULT_wxUSE_STATLINE=no | |
7570 | DEFAULT_wxUSE_STATUSBAR=no | |
7571 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7572 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7573 | DEFAULT_wxUSE_TOOLBAR=no | |
7574 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7575 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7576 | DEFAULT_wxUSE_TOOLTIPS=no | |
0093c2fc | 7577 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 7578 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
7579 | DEFAULT_wxUSE_TREECTRL=no |
7580 | DEFAULT_wxUSE_POPUPWIN=no | |
7581 | DEFAULT_wxUSE_TIPWINDOW=no | |
7582 | fi | |
7583 | ||
a848cd7e SC |
7584 | |
7585 | enablestring= | |
7586 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7587 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7588 | no_cache=0 | |
7589 | # Check whether --enable-accel or --disable-accel was given. | |
7590 | if test "${enable_accel+set}" = set; then | |
7591 | enableval="$enable_accel" | |
7592 | ||
7593 | if test "$enableval" = yes; then | |
7594 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7595 | else | |
7596 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7597 | fi | |
7598 | ||
7599 | else | |
7600 | ||
7601 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7602 | if test "x$LINE" != x ; then | |
7603 | eval "DEFAULT_$LINE" | |
7604 | else | |
7605 | no_cache=1 | |
7606 | fi | |
7607 | ||
7608 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7609 | ||
7610 | fi; | |
7611 | ||
7612 | eval "$ac_cv_use_accel" | |
7613 | if test "$no_cache" != 1; then | |
7614 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7615 | fi | |
7616 | ||
7617 | if test "$wxUSE_ACCEL" = yes; then | |
7618 | echo "$as_me:$LINENO: result: yes" >&5 | |
7619 | echo "${ECHO_T}yes" >&6 | |
7620 | else | |
7621 | echo "$as_me:$LINENO: result: no" >&5 | |
7622 | echo "${ECHO_T}no" >&6 | |
7623 | fi | |
7624 | ||
7625 | ||
7626 | enablestring= | |
7627 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7628 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7629 | no_cache=0 | |
7630 | # Check whether --enable-button or --disable-button was given. | |
7631 | if test "${enable_button+set}" = set; then | |
7632 | enableval="$enable_button" | |
7633 | ||
7634 | if test "$enableval" = yes; then | |
7635 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7636 | else | |
7637 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7638 | fi | |
7639 | ||
7640 | else | |
7641 | ||
7642 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7643 | if test "x$LINE" != x ; then | |
7644 | eval "DEFAULT_$LINE" | |
7645 | else | |
7646 | no_cache=1 | |
7647 | fi | |
7648 | ||
7649 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7650 | ||
7651 | fi; | |
7652 | ||
7653 | eval "$ac_cv_use_button" | |
7654 | if test "$no_cache" != 1; then | |
7655 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7656 | fi | |
7657 | ||
7658 | if test "$wxUSE_BUTTON" = yes; then | |
7659 | echo "$as_me:$LINENO: result: yes" >&5 | |
7660 | echo "${ECHO_T}yes" >&6 | |
7661 | else | |
7662 | echo "$as_me:$LINENO: result: no" >&5 | |
7663 | echo "${ECHO_T}no" >&6 | |
7664 | fi | |
7665 | ||
7666 | ||
7667 | enablestring= | |
7668 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7669 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7670 | no_cache=0 | |
7671 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7672 | if test "${enable_bmpbutton+set}" = set; then | |
7673 | enableval="$enable_bmpbutton" | |
7674 | ||
7675 | if test "$enableval" = yes; then | |
7676 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7677 | else | |
7678 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7679 | fi | |
7680 | ||
7681 | else | |
7682 | ||
7683 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7684 | if test "x$LINE" != x ; then | |
7685 | eval "DEFAULT_$LINE" | |
7686 | else | |
7687 | no_cache=1 | |
7688 | fi | |
7689 | ||
7690 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7691 | ||
7692 | fi; | |
7693 | ||
7694 | eval "$ac_cv_use_bmpbutton" | |
7695 | if test "$no_cache" != 1; then | |
7696 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7697 | fi | |
7698 | ||
7699 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7700 | echo "$as_me:$LINENO: result: yes" >&5 | |
7701 | echo "${ECHO_T}yes" >&6 | |
7702 | else | |
7703 | echo "$as_me:$LINENO: result: no" >&5 | |
7704 | echo "${ECHO_T}no" >&6 | |
7705 | fi | |
7706 | ||
7707 | ||
7708 | enablestring= | |
7709 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7710 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7711 | no_cache=0 | |
7712 | # Check whether --enable-calendar or --disable-calendar was given. | |
7713 | if test "${enable_calendar+set}" = set; then | |
7714 | enableval="$enable_calendar" | |
7715 | ||
7716 | if test "$enableval" = yes; then | |
7717 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7718 | else | |
7719 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7720 | fi | |
7721 | ||
7722 | else | |
7723 | ||
7724 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7725 | if test "x$LINE" != x ; then | |
7726 | eval "DEFAULT_$LINE" | |
7727 | else | |
7728 | no_cache=1 | |
7729 | fi | |
7730 | ||
7731 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7732 | ||
7733 | fi; | |
7734 | ||
7735 | eval "$ac_cv_use_calendar" | |
7736 | if test "$no_cache" != 1; then | |
7737 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7738 | fi | |
7739 | ||
7740 | if test "$wxUSE_CALCTRL" = yes; then | |
7741 | echo "$as_me:$LINENO: result: yes" >&5 | |
7742 | echo "${ECHO_T}yes" >&6 | |
7743 | else | |
7744 | echo "$as_me:$LINENO: result: no" >&5 | |
7745 | echo "${ECHO_T}no" >&6 | |
7746 | fi | |
7747 | ||
7748 | ||
7749 | enablestring= | |
7750 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7751 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7752 | no_cache=0 | |
7753 | # Check whether --enable-caret or --disable-caret was given. | |
7754 | if test "${enable_caret+set}" = set; then | |
7755 | enableval="$enable_caret" | |
7756 | ||
7757 | if test "$enableval" = yes; then | |
7758 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7759 | else | |
7760 | ac_cv_use_caret='wxUSE_CARET=no' | |
7761 | fi | |
7762 | ||
7763 | else | |
7764 | ||
7765 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7766 | if test "x$LINE" != x ; then | |
7767 | eval "DEFAULT_$LINE" | |
7768 | else | |
7769 | no_cache=1 | |
7770 | fi | |
7771 | ||
7772 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7773 | ||
7774 | fi; | |
7775 | ||
7776 | eval "$ac_cv_use_caret" | |
7777 | if test "$no_cache" != 1; then | |
7778 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7779 | fi | |
7780 | ||
7781 | if test "$wxUSE_CARET" = yes; then | |
7782 | echo "$as_me:$LINENO: result: yes" >&5 | |
7783 | echo "${ECHO_T}yes" >&6 | |
7784 | else | |
7785 | echo "$as_me:$LINENO: result: no" >&5 | |
7786 | echo "${ECHO_T}no" >&6 | |
7787 | fi | |
7788 | ||
7789 | ||
7790 | enablestring= | |
7791 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7792 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7793 | no_cache=0 | |
7794 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7795 | if test "${enable_checkbox+set}" = set; then | |
7796 | enableval="$enable_checkbox" | |
7797 | ||
7798 | if test "$enableval" = yes; then | |
7799 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7800 | else | |
7801 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7802 | fi | |
7803 | ||
7804 | else | |
7805 | ||
7806 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7807 | if test "x$LINE" != x ; then | |
7808 | eval "DEFAULT_$LINE" | |
7809 | else | |
7810 | no_cache=1 | |
7811 | fi | |
7812 | ||
7813 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7814 | ||
7815 | fi; | |
7816 | ||
7817 | eval "$ac_cv_use_checkbox" | |
7818 | if test "$no_cache" != 1; then | |
7819 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7820 | fi | |
7821 | ||
7822 | if test "$wxUSE_CHECKBOX" = yes; then | |
7823 | echo "$as_me:$LINENO: result: yes" >&5 | |
7824 | echo "${ECHO_T}yes" >&6 | |
7825 | else | |
7826 | echo "$as_me:$LINENO: result: no" >&5 | |
7827 | echo "${ECHO_T}no" >&6 | |
7828 | fi | |
7829 | ||
7830 | ||
7831 | enablestring= | |
7832 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7833 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7834 | no_cache=0 | |
7835 | # Check whether --enable-checklst or --disable-checklst was given. | |
7836 | if test "${enable_checklst+set}" = set; then | |
7837 | enableval="$enable_checklst" | |
7838 | ||
7839 | if test "$enableval" = yes; then | |
7840 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7841 | else | |
7842 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7843 | fi | |
7844 | ||
7845 | else | |
7846 | ||
7847 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7848 | if test "x$LINE" != x ; then | |
7849 | eval "DEFAULT_$LINE" | |
7850 | else | |
7851 | no_cache=1 | |
7852 | fi | |
7853 | ||
7854 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7855 | ||
7856 | fi; | |
7857 | ||
7858 | eval "$ac_cv_use_checklst" | |
7859 | if test "$no_cache" != 1; then | |
7860 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7861 | fi | |
7862 | ||
7863 | if test "$wxUSE_CHECKLST" = yes; then | |
7864 | echo "$as_me:$LINENO: result: yes" >&5 | |
7865 | echo "${ECHO_T}yes" >&6 | |
7866 | else | |
7867 | echo "$as_me:$LINENO: result: no" >&5 | |
7868 | echo "${ECHO_T}no" >&6 | |
7869 | fi | |
7870 | ||
7871 | ||
7872 | enablestring= | |
7873 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7874 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7875 | no_cache=0 | |
7876 | # Check whether --enable-choice or --disable-choice was given. | |
7877 | if test "${enable_choice+set}" = set; then | |
7878 | enableval="$enable_choice" | |
7879 | ||
7880 | if test "$enableval" = yes; then | |
7881 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7882 | else | |
7883 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7884 | fi | |
7885 | ||
7886 | else | |
7887 | ||
7888 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7889 | if test "x$LINE" != x ; then | |
7890 | eval "DEFAULT_$LINE" | |
7891 | else | |
7892 | no_cache=1 | |
7893 | fi | |
7894 | ||
7895 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7896 | ||
7897 | fi; | |
7898 | ||
7899 | eval "$ac_cv_use_choice" | |
7900 | if test "$no_cache" != 1; then | |
7901 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7902 | fi | |
7903 | ||
7904 | if test "$wxUSE_CHOICE" = yes; then | |
7905 | echo "$as_me:$LINENO: result: yes" >&5 | |
7906 | echo "${ECHO_T}yes" >&6 | |
7907 | else | |
7908 | echo "$as_me:$LINENO: result: no" >&5 | |
7909 | echo "${ECHO_T}no" >&6 | |
7910 | fi | |
7911 | ||
7912 | ||
92bbdbcd WS |
7913 | enablestring= |
7914 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7915 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7916 | no_cache=0 | |
7917 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7918 | if test "${enable_choicebook+set}" = set; then | |
7919 | enableval="$enable_choicebook" | |
7920 | ||
7921 | if test "$enableval" = yes; then | |
7922 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7923 | else | |
7924 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7925 | fi | |
7926 | ||
7927 | else | |
7928 | ||
7929 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7930 | if test "x$LINE" != x ; then | |
7931 | eval "DEFAULT_$LINE" | |
7932 | else | |
7933 | no_cache=1 | |
7934 | fi | |
7935 | ||
7936 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7937 | ||
7938 | fi; | |
7939 | ||
7940 | eval "$ac_cv_use_choicebook" | |
7941 | if test "$no_cache" != 1; then | |
7942 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7943 | fi | |
7944 | ||
7945 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7946 | echo "$as_me:$LINENO: result: yes" >&5 | |
7947 | echo "${ECHO_T}yes" >&6 | |
7948 | else | |
7949 | echo "$as_me:$LINENO: result: no" >&5 | |
7950 | echo "${ECHO_T}no" >&6 | |
7951 | fi | |
7952 | ||
7953 | ||
a848cd7e SC |
7954 | enablestring= |
7955 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7956 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7957 | no_cache=0 | |
7958 | # Check whether --enable-combobox or --disable-combobox was given. | |
7959 | if test "${enable_combobox+set}" = set; then | |
7960 | enableval="$enable_combobox" | |
7961 | ||
7962 | if test "$enableval" = yes; then | |
7963 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7964 | else | |
7965 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7966 | fi | |
7967 | ||
7968 | else | |
7969 | ||
7970 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7971 | if test "x$LINE" != x ; then | |
7972 | eval "DEFAULT_$LINE" | |
7973 | else | |
7974 | no_cache=1 | |
7975 | fi | |
7976 | ||
7977 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7978 | ||
7979 | fi; | |
7980 | ||
7981 | eval "$ac_cv_use_combobox" | |
7982 | if test "$no_cache" != 1; then | |
7983 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7984 | fi | |
7985 | ||
7986 | if test "$wxUSE_COMBOBOX" = yes; then | |
7987 | echo "$as_me:$LINENO: result: yes" >&5 | |
7988 | echo "${ECHO_T}yes" >&6 | |
7989 | else | |
7990 | echo "$as_me:$LINENO: result: no" >&5 | |
7991 | echo "${ECHO_T}no" >&6 | |
7992 | fi | |
7993 | ||
7994 | ||
da98e9be VZ |
7995 | enablestring= |
7996 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7997 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7998 | no_cache=0 | |
7999 | # Check whether --enable-datepick or --disable-datepick was given. | |
8000 | if test "${enable_datepick+set}" = set; then | |
8001 | enableval="$enable_datepick" | |
8002 | ||
8003 | if test "$enableval" = yes; then | |
8004 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
8005 | else | |
8006 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
8007 | fi | |
8008 | ||
8009 | else | |
8010 | ||
8011 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
8012 | if test "x$LINE" != x ; then | |
8013 | eval "DEFAULT_$LINE" | |
8014 | else | |
8015 | no_cache=1 | |
8016 | fi | |
8017 | ||
8018 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
8019 | ||
8020 | fi; | |
8021 | ||
8022 | eval "$ac_cv_use_datepick" | |
8023 | if test "$no_cache" != 1; then | |
8024 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
8025 | fi | |
8026 | ||
8027 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
8028 | echo "$as_me:$LINENO: result: yes" >&5 | |
8029 | echo "${ECHO_T}yes" >&6 | |
8030 | else | |
8031 | echo "$as_me:$LINENO: result: no" >&5 | |
8032 | echo "${ECHO_T}no" >&6 | |
8033 | fi | |
8034 | ||
8035 | ||
a848cd7e SC |
8036 | enablestring= |
8037 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
8038 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
8039 | no_cache=0 | |
8040 | # Check whether --enable-display or --disable-display was given. | |
8041 | if test "${enable_display+set}" = set; then | |
8042 | enableval="$enable_display" | |
8043 | ||
8044 | if test "$enableval" = yes; then | |
8045 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
8046 | else | |
8047 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
8048 | fi | |
8049 | ||
8050 | else | |
8051 | ||
8052 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
8053 | if test "x$LINE" != x ; then | |
8054 | eval "DEFAULT_$LINE" | |
8055 | else | |
8056 | no_cache=1 | |
8057 | fi | |
8058 | ||
8059 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
8060 | ||
8061 | fi; | |
8062 | ||
8063 | eval "$ac_cv_use_display" | |
8064 | if test "$no_cache" != 1; then | |
8065 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
8066 | fi | |
8067 | ||
8068 | if test "$wxUSE_DISPLAY" = yes; then | |
8069 | echo "$as_me:$LINENO: result: yes" >&5 | |
8070 | echo "${ECHO_T}yes" >&6 | |
8071 | else | |
8072 | echo "$as_me:$LINENO: result: no" >&5 | |
8073 | echo "${ECHO_T}no" >&6 | |
8074 | fi | |
8075 | ||
8076 | ||
8077 | enablestring= | |
8078 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
8079 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
8080 | no_cache=0 | |
8081 | # Check whether --enable-gauge or --disable-gauge was given. | |
8082 | if test "${enable_gauge+set}" = set; then | |
8083 | enableval="$enable_gauge" | |
8084 | ||
8085 | if test "$enableval" = yes; then | |
8086 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
8087 | else | |
8088 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
8089 | fi | |
8090 | ||
8091 | else | |
8092 | ||
8093 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
8094 | if test "x$LINE" != x ; then | |
8095 | eval "DEFAULT_$LINE" | |
8096 | else | |
8097 | no_cache=1 | |
8098 | fi | |
8099 | ||
8100 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8101 | ||
8102 | fi; | |
8103 | ||
8104 | eval "$ac_cv_use_gauge" | |
8105 | if test "$no_cache" != 1; then | |
8106 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8107 | fi | |
8108 | ||
8109 | if test "$wxUSE_GAUGE" = yes; then | |
8110 | echo "$as_me:$LINENO: result: yes" >&5 | |
8111 | echo "${ECHO_T}yes" >&6 | |
8112 | else | |
8113 | echo "$as_me:$LINENO: result: no" >&5 | |
8114 | echo "${ECHO_T}no" >&6 | |
8115 | fi | |
8116 | ||
8117 | ||
8118 | enablestring= | |
8119 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8120 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8121 | no_cache=0 | |
8122 | # Check whether --enable-grid or --disable-grid was given. | |
8123 | if test "${enable_grid+set}" = set; then | |
8124 | enableval="$enable_grid" | |
8125 | ||
8126 | if test "$enableval" = yes; then | |
8127 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8128 | else | |
8129 | ac_cv_use_grid='wxUSE_GRID=no' | |
8130 | fi | |
8131 | ||
8132 | else | |
8133 | ||
8134 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8135 | if test "x$LINE" != x ; then | |
8136 | eval "DEFAULT_$LINE" | |
8137 | else | |
8138 | no_cache=1 | |
8139 | fi | |
8140 | ||
8141 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8142 | ||
8143 | fi; | |
8144 | ||
8145 | eval "$ac_cv_use_grid" | |
8146 | if test "$no_cache" != 1; then | |
8147 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8148 | fi | |
8149 | ||
8150 | if test "$wxUSE_GRID" = yes; then | |
8151 | echo "$as_me:$LINENO: result: yes" >&5 | |
8152 | echo "${ECHO_T}yes" >&6 | |
8153 | else | |
8154 | echo "$as_me:$LINENO: result: no" >&5 | |
8155 | echo "${ECHO_T}no" >&6 | |
8156 | fi | |
8157 | ||
8158 | ||
20e34ecc RR |
8159 | enablestring= |
8160 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8161 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8162 | no_cache=0 | |
8163 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8164 | if test "${enable_dataviewctrl+set}" = set; then | |
8165 | enableval="$enable_dataviewctrl" | |
8166 | ||
8167 | if test "$enableval" = yes; then | |
8168 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8169 | else | |
8170 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8171 | fi | |
8172 | ||
8173 | else | |
8174 | ||
8175 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8176 | if test "x$LINE" != x ; then | |
8177 | eval "DEFAULT_$LINE" | |
8178 | else | |
8179 | no_cache=1 | |
8180 | fi | |
8181 | ||
8182 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8183 | ||
8184 | fi; | |
8185 | ||
8186 | eval "$ac_cv_use_dataviewctrl" | |
8187 | if test "$no_cache" != 1; then | |
8188 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
8189 | fi | |
8190 | ||
8191 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
8192 | echo "$as_me:$LINENO: result: yes" >&5 | |
8193 | echo "${ECHO_T}yes" >&6 | |
8194 | else | |
8195 | echo "$as_me:$LINENO: result: no" >&5 | |
8196 | echo "${ECHO_T}no" >&6 | |
8197 | fi | |
8198 | ||
8199 | ||
a848cd7e SC |
8200 | enablestring= |
8201 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
8202 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
8203 | no_cache=0 | |
8204 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
8205 | if test "${enable_imaglist+set}" = set; then | |
8206 | enableval="$enable_imaglist" | |
8207 | ||
8208 | if test "$enableval" = yes; then | |
8209 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
8210 | else | |
8211 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
8212 | fi | |
8213 | ||
8214 | else | |
8215 | ||
8216 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
8217 | if test "x$LINE" != x ; then | |
8218 | eval "DEFAULT_$LINE" | |
8219 | else | |
8220 | no_cache=1 | |
8221 | fi | |
8222 | ||
8223 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8224 | ||
8225 | fi; | |
8226 | ||
8227 | eval "$ac_cv_use_imaglist" | |
8228 | if test "$no_cache" != 1; then | |
8229 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
8230 | fi | |
8231 | ||
8232 | if test "$wxUSE_IMAGLIST" = yes; then | |
8233 | echo "$as_me:$LINENO: result: yes" >&5 | |
8234 | echo "${ECHO_T}yes" >&6 | |
8235 | else | |
8236 | echo "$as_me:$LINENO: result: no" >&5 | |
8237 | echo "${ECHO_T}no" >&6 | |
8238 | fi | |
8239 | ||
8240 | ||
8241 | enablestring= | |
8242 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8243 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8244 | no_cache=0 | |
8245 | # Check whether --enable-listbook or --disable-listbook was given. | |
8246 | if test "${enable_listbook+set}" = set; then | |
8247 | enableval="$enable_listbook" | |
8248 | ||
8249 | if test "$enableval" = yes; then | |
8250 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8251 | else | |
8252 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8253 | fi | |
8254 | ||
8255 | else | |
8256 | ||
8257 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8258 | if test "x$LINE" != x ; then | |
8259 | eval "DEFAULT_$LINE" | |
8260 | else | |
8261 | no_cache=1 | |
8262 | fi | |
8263 | ||
8264 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8265 | ||
8266 | fi; | |
8267 | ||
8268 | eval "$ac_cv_use_listbook" | |
8269 | if test "$no_cache" != 1; then | |
8270 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8271 | fi | |
8272 | ||
8273 | if test "$wxUSE_LISTBOOK" = yes; then | |
8274 | echo "$as_me:$LINENO: result: yes" >&5 | |
8275 | echo "${ECHO_T}yes" >&6 | |
8276 | else | |
8277 | echo "$as_me:$LINENO: result: no" >&5 | |
8278 | echo "${ECHO_T}no" >&6 | |
8279 | fi | |
8280 | ||
8281 | ||
8282 | enablestring= | |
8283 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8284 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8285 | no_cache=0 | |
8286 | # Check whether --enable-listbox or --disable-listbox was given. | |
8287 | if test "${enable_listbox+set}" = set; then | |
8288 | enableval="$enable_listbox" | |
8289 | ||
8290 | if test "$enableval" = yes; then | |
8291 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8292 | else | |
8293 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8294 | fi | |
8295 | ||
8296 | else | |
8297 | ||
8298 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8299 | if test "x$LINE" != x ; then | |
8300 | eval "DEFAULT_$LINE" | |
8301 | else | |
8302 | no_cache=1 | |
8303 | fi | |
8304 | ||
8305 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8306 | ||
8307 | fi; | |
8308 | ||
8309 | eval "$ac_cv_use_listbox" | |
8310 | if test "$no_cache" != 1; then | |
8311 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8312 | fi | |
8313 | ||
8314 | if test "$wxUSE_LISTBOX" = yes; then | |
8315 | echo "$as_me:$LINENO: result: yes" >&5 | |
8316 | echo "${ECHO_T}yes" >&6 | |
8317 | else | |
8318 | echo "$as_me:$LINENO: result: no" >&5 | |
8319 | echo "${ECHO_T}no" >&6 | |
8320 | fi | |
8321 | ||
8322 | ||
8323 | enablestring= | |
8324 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8325 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8326 | no_cache=0 | |
8327 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8328 | if test "${enable_listctrl+set}" = set; then | |
8329 | enableval="$enable_listctrl" | |
8330 | ||
8331 | if test "$enableval" = yes; then | |
8332 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8333 | else | |
8334 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8335 | fi | |
8336 | ||
8337 | else | |
8338 | ||
8339 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8340 | if test "x$LINE" != x ; then | |
8341 | eval "DEFAULT_$LINE" | |
8342 | else | |
8343 | no_cache=1 | |
8344 | fi | |
8345 | ||
8346 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8347 | ||
8348 | fi; | |
8349 | ||
8350 | eval "$ac_cv_use_listctrl" | |
8351 | if test "$no_cache" != 1; then | |
8352 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8353 | fi | |
8354 | ||
8355 | if test "$wxUSE_LISTCTRL" = yes; then | |
8356 | echo "$as_me:$LINENO: result: yes" >&5 | |
8357 | echo "${ECHO_T}yes" >&6 | |
8358 | else | |
8359 | echo "$as_me:$LINENO: result: no" >&5 | |
8360 | echo "${ECHO_T}no" >&6 | |
8361 | fi | |
8362 | ||
8363 | ||
8364 | enablestring= | |
8365 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8366 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8367 | no_cache=0 | |
8368 | # Check whether --enable-notebook or --disable-notebook was given. | |
8369 | if test "${enable_notebook+set}" = set; then | |
8370 | enableval="$enable_notebook" | |
8371 | ||
8372 | if test "$enableval" = yes; then | |
8373 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8374 | else | |
8375 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8376 | fi | |
8377 | ||
8378 | else | |
8379 | ||
8380 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8381 | if test "x$LINE" != x ; then | |
8382 | eval "DEFAULT_$LINE" | |
8383 | else | |
8384 | no_cache=1 | |
8385 | fi | |
8386 | ||
8387 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8388 | ||
8389 | fi; | |
8390 | ||
8391 | eval "$ac_cv_use_notebook" | |
8392 | if test "$no_cache" != 1; then | |
8393 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8394 | fi | |
8395 | ||
8396 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8397 | echo "$as_me:$LINENO: result: yes" >&5 | |
8398 | echo "${ECHO_T}yes" >&6 | |
8399 | else | |
8400 | echo "$as_me:$LINENO: result: no" >&5 | |
8401 | echo "${ECHO_T}no" >&6 | |
8402 | fi | |
8403 | ||
8404 | ||
8405 | enablestring= | |
8406 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8407 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8408 | no_cache=0 | |
8409 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8410 | if test "${enable_radiobox+set}" = set; then | |
8411 | enableval="$enable_radiobox" | |
8412 | ||
8413 | if test "$enableval" = yes; then | |
8414 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8415 | else | |
8416 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8417 | fi | |
8418 | ||
8419 | else | |
8420 | ||
8421 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8422 | if test "x$LINE" != x ; then | |
8423 | eval "DEFAULT_$LINE" | |
8424 | else | |
8425 | no_cache=1 | |
8426 | fi | |
8427 | ||
8428 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8429 | ||
8430 | fi; | |
8431 | ||
8432 | eval "$ac_cv_use_radiobox" | |
8433 | if test "$no_cache" != 1; then | |
8434 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8435 | fi | |
8436 | ||
8437 | if test "$wxUSE_RADIOBOX" = yes; then | |
8438 | echo "$as_me:$LINENO: result: yes" >&5 | |
8439 | echo "${ECHO_T}yes" >&6 | |
8440 | else | |
8441 | echo "$as_me:$LINENO: result: no" >&5 | |
8442 | echo "${ECHO_T}no" >&6 | |
8443 | fi | |
8444 | ||
8445 | ||
8446 | enablestring= | |
8447 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8448 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8449 | no_cache=0 | |
8450 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8451 | if test "${enable_radiobtn+set}" = set; then | |
8452 | enableval="$enable_radiobtn" | |
8453 | ||
8454 | if test "$enableval" = yes; then | |
8455 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8456 | else | |
8457 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8458 | fi | |
8459 | ||
8460 | else | |
8461 | ||
8462 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8463 | if test "x$LINE" != x ; then | |
8464 | eval "DEFAULT_$LINE" | |
8465 | else | |
8466 | no_cache=1 | |
8467 | fi | |
8468 | ||
8469 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8470 | ||
8471 | fi; | |
8472 | ||
8473 | eval "$ac_cv_use_radiobtn" | |
8474 | if test "$no_cache" != 1; then | |
8475 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8476 | fi | |
8477 | ||
8478 | if test "$wxUSE_RADIOBTN" = yes; then | |
8479 | echo "$as_me:$LINENO: result: yes" >&5 | |
8480 | echo "${ECHO_T}yes" >&6 | |
8481 | else | |
8482 | echo "$as_me:$LINENO: result: no" >&5 | |
8483 | echo "${ECHO_T}no" >&6 | |
8484 | fi | |
8485 | ||
8486 | ||
8487 | enablestring= | |
8488 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8489 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8490 | no_cache=0 | |
8491 | # Check whether --enable-sash or --disable-sash was given. | |
8492 | if test "${enable_sash+set}" = set; then | |
8493 | enableval="$enable_sash" | |
8494 | ||
8495 | if test "$enableval" = yes; then | |
8496 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8497 | else | |
8498 | ac_cv_use_sash='wxUSE_SASH=no' | |
8499 | fi | |
8500 | ||
8501 | else | |
8502 | ||
8503 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8504 | if test "x$LINE" != x ; then | |
8505 | eval "DEFAULT_$LINE" | |
8506 | else | |
8507 | no_cache=1 | |
8508 | fi | |
8509 | ||
8510 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8511 | ||
8512 | fi; | |
8513 | ||
8514 | eval "$ac_cv_use_sash" | |
8515 | if test "$no_cache" != 1; then | |
8516 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8517 | fi | |
8518 | ||
8519 | if test "$wxUSE_SASH" = yes; then | |
8520 | echo "$as_me:$LINENO: result: yes" >&5 | |
8521 | echo "${ECHO_T}yes" >&6 | |
8522 | else | |
8523 | echo "$as_me:$LINENO: result: no" >&5 | |
8524 | echo "${ECHO_T}no" >&6 | |
8525 | fi | |
8526 | ||
8527 | ||
8528 | enablestring= | |
8529 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8530 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8531 | no_cache=0 | |
8532 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8533 | if test "${enable_scrollbar+set}" = set; then | |
8534 | enableval="$enable_scrollbar" | |
8535 | ||
8536 | if test "$enableval" = yes; then | |
8537 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8538 | else | |
8539 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8540 | fi | |
8541 | ||
8542 | else | |
8543 | ||
8544 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8545 | if test "x$LINE" != x ; then | |
8546 | eval "DEFAULT_$LINE" | |
8547 | else | |
8548 | no_cache=1 | |
8549 | fi | |
8550 | ||
8551 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8552 | ||
8553 | fi; | |
8554 | ||
8555 | eval "$ac_cv_use_scrollbar" | |
8556 | if test "$no_cache" != 1; then | |
8557 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8558 | fi | |
8559 | ||
8560 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8561 | echo "$as_me:$LINENO: result: yes" >&5 | |
8562 | echo "${ECHO_T}yes" >&6 | |
8563 | else | |
8564 | echo "$as_me:$LINENO: result: no" >&5 | |
8565 | echo "${ECHO_T}no" >&6 | |
8566 | fi | |
8567 | ||
8568 | ||
8569 | enablestring= | |
8570 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8571 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8572 | no_cache=0 | |
8573 | # Check whether --enable-slider or --disable-slider was given. | |
8574 | if test "${enable_slider+set}" = set; then | |
8575 | enableval="$enable_slider" | |
8576 | ||
8577 | if test "$enableval" = yes; then | |
8578 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8579 | else | |
8580 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8581 | fi | |
8582 | ||
8583 | else | |
8584 | ||
8585 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8586 | if test "x$LINE" != x ; then | |
8587 | eval "DEFAULT_$LINE" | |
8588 | else | |
8589 | no_cache=1 | |
8590 | fi | |
8591 | ||
8592 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8593 | ||
8594 | fi; | |
8595 | ||
8596 | eval "$ac_cv_use_slider" | |
8597 | if test "$no_cache" != 1; then | |
8598 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8599 | fi | |
8600 | ||
8601 | if test "$wxUSE_SLIDER" = yes; then | |
8602 | echo "$as_me:$LINENO: result: yes" >&5 | |
8603 | echo "${ECHO_T}yes" >&6 | |
8604 | else | |
8605 | echo "$as_me:$LINENO: result: no" >&5 | |
8606 | echo "${ECHO_T}no" >&6 | |
8607 | fi | |
8608 | ||
8609 | ||
8610 | enablestring= | |
8611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8612 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8613 | no_cache=0 | |
8614 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8615 | if test "${enable_spinbtn+set}" = set; then | |
8616 | enableval="$enable_spinbtn" | |
8617 | ||
8618 | if test "$enableval" = yes; then | |
8619 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8620 | else | |
8621 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8622 | fi | |
8623 | ||
8624 | else | |
8625 | ||
8626 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8627 | if test "x$LINE" != x ; then | |
8628 | eval "DEFAULT_$LINE" | |
8629 | else | |
8630 | no_cache=1 | |
8631 | fi | |
8632 | ||
8633 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8634 | ||
8635 | fi; | |
8636 | ||
8637 | eval "$ac_cv_use_spinbtn" | |
8638 | if test "$no_cache" != 1; then | |
8639 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8640 | fi | |
8641 | ||
8642 | if test "$wxUSE_SPINBTN" = yes; then | |
8643 | echo "$as_me:$LINENO: result: yes" >&5 | |
8644 | echo "${ECHO_T}yes" >&6 | |
8645 | else | |
8646 | echo "$as_me:$LINENO: result: no" >&5 | |
8647 | echo "${ECHO_T}no" >&6 | |
8648 | fi | |
8649 | ||
8650 | ||
8651 | enablestring= | |
8652 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8653 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8654 | no_cache=0 | |
8655 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8656 | if test "${enable_spinctrl+set}" = set; then | |
8657 | enableval="$enable_spinctrl" | |
8658 | ||
8659 | if test "$enableval" = yes; then | |
8660 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8661 | else | |
8662 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8663 | fi | |
8664 | ||
8665 | else | |
8666 | ||
8667 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8668 | if test "x$LINE" != x ; then | |
8669 | eval "DEFAULT_$LINE" | |
8670 | else | |
8671 | no_cache=1 | |
8672 | fi | |
8673 | ||
8674 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8675 | ||
8676 | fi; | |
8677 | ||
8678 | eval "$ac_cv_use_spinctrl" | |
8679 | if test "$no_cache" != 1; then | |
8680 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8681 | fi | |
8682 | ||
8683 | if test "$wxUSE_SPINCTRL" = yes; then | |
8684 | echo "$as_me:$LINENO: result: yes" >&5 | |
8685 | echo "${ECHO_T}yes" >&6 | |
8686 | else | |
8687 | echo "$as_me:$LINENO: result: no" >&5 | |
8688 | echo "${ECHO_T}no" >&6 | |
8689 | fi | |
8690 | ||
8691 | ||
8692 | enablestring= | |
8693 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8694 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8695 | no_cache=0 | |
8696 | # Check whether --enable-splitter or --disable-splitter was given. | |
8697 | if test "${enable_splitter+set}" = set; then | |
8698 | enableval="$enable_splitter" | |
8699 | ||
8700 | if test "$enableval" = yes; then | |
8701 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8702 | else | |
8703 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8704 | fi | |
8705 | ||
8706 | else | |
8707 | ||
8708 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8709 | if test "x$LINE" != x ; then | |
8710 | eval "DEFAULT_$LINE" | |
8711 | else | |
8712 | no_cache=1 | |
8713 | fi | |
8714 | ||
8715 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8716 | ||
8717 | fi; | |
8718 | ||
8719 | eval "$ac_cv_use_splitter" | |
8720 | if test "$no_cache" != 1; then | |
8721 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8722 | fi | |
8723 | ||
8724 | if test "$wxUSE_SPLITTER" = yes; then | |
8725 | echo "$as_me:$LINENO: result: yes" >&5 | |
8726 | echo "${ECHO_T}yes" >&6 | |
8727 | else | |
8728 | echo "$as_me:$LINENO: result: no" >&5 | |
8729 | echo "${ECHO_T}no" >&6 | |
8730 | fi | |
8731 | ||
8732 | ||
8733 | enablestring= | |
8734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8735 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8736 | no_cache=0 | |
8737 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8738 | if test "${enable_statbmp+set}" = set; then | |
8739 | enableval="$enable_statbmp" | |
8740 | ||
8741 | if test "$enableval" = yes; then | |
8742 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8743 | else | |
8744 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8745 | fi | |
8746 | ||
8747 | else | |
8748 | ||
8749 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8750 | if test "x$LINE" != x ; then | |
8751 | eval "DEFAULT_$LINE" | |
8752 | else | |
8753 | no_cache=1 | |
8754 | fi | |
8755 | ||
8756 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8757 | ||
8758 | fi; | |
8759 | ||
8760 | eval "$ac_cv_use_statbmp" | |
8761 | if test "$no_cache" != 1; then | |
8762 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8763 | fi | |
8764 | ||
8765 | if test "$wxUSE_STATBMP" = yes; then | |
8766 | echo "$as_me:$LINENO: result: yes" >&5 | |
8767 | echo "${ECHO_T}yes" >&6 | |
8768 | else | |
8769 | echo "$as_me:$LINENO: result: no" >&5 | |
8770 | echo "${ECHO_T}no" >&6 | |
8771 | fi | |
8772 | ||
8773 | ||
8774 | enablestring= | |
8775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8776 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8777 | no_cache=0 | |
8778 | # Check whether --enable-statbox or --disable-statbox was given. | |
8779 | if test "${enable_statbox+set}" = set; then | |
8780 | enableval="$enable_statbox" | |
8781 | ||
8782 | if test "$enableval" = yes; then | |
8783 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8784 | else | |
8785 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8786 | fi | |
8787 | ||
8788 | else | |
8789 | ||
8790 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8791 | if test "x$LINE" != x ; then | |
8792 | eval "DEFAULT_$LINE" | |
8793 | else | |
8794 | no_cache=1 | |
8795 | fi | |
8796 | ||
8797 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8798 | ||
8799 | fi; | |
8800 | ||
8801 | eval "$ac_cv_use_statbox" | |
8802 | if test "$no_cache" != 1; then | |
8803 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8804 | fi | |
8805 | ||
8806 | if test "$wxUSE_STATBOX" = yes; then | |
8807 | echo "$as_me:$LINENO: result: yes" >&5 | |
8808 | echo "${ECHO_T}yes" >&6 | |
8809 | else | |
8810 | echo "$as_me:$LINENO: result: no" >&5 | |
8811 | echo "${ECHO_T}no" >&6 | |
8812 | fi | |
8813 | ||
8814 | ||
8815 | enablestring= | |
8816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8817 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8818 | no_cache=0 | |
8819 | # Check whether --enable-statline or --disable-statline was given. | |
8820 | if test "${enable_statline+set}" = set; then | |
8821 | enableval="$enable_statline" | |
8822 | ||
8823 | if test "$enableval" = yes; then | |
8824 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8825 | else | |
8826 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8827 | fi | |
8828 | ||
8829 | else | |
8830 | ||
8831 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8832 | if test "x$LINE" != x ; then | |
8833 | eval "DEFAULT_$LINE" | |
8834 | else | |
8835 | no_cache=1 | |
8836 | fi | |
8837 | ||
8838 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8839 | ||
8840 | fi; | |
8841 | ||
8842 | eval "$ac_cv_use_statline" | |
8843 | if test "$no_cache" != 1; then | |
8844 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8845 | fi | |
8846 | ||
8847 | if test "$wxUSE_STATLINE" = yes; then | |
8848 | echo "$as_me:$LINENO: result: yes" >&5 | |
8849 | echo "${ECHO_T}yes" >&6 | |
8850 | else | |
8851 | echo "$as_me:$LINENO: result: no" >&5 | |
8852 | echo "${ECHO_T}no" >&6 | |
8853 | fi | |
8854 | ||
8855 | ||
8856 | enablestring= | |
8857 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8858 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8859 | no_cache=0 | |
8860 | # Check whether --enable-stattext or --disable-stattext was given. | |
8861 | if test "${enable_stattext+set}" = set; then | |
8862 | enableval="$enable_stattext" | |
8863 | ||
8864 | if test "$enableval" = yes; then | |
8865 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8866 | else | |
8867 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8868 | fi | |
8869 | ||
8870 | else | |
8871 | ||
8872 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8873 | if test "x$LINE" != x ; then | |
8874 | eval "DEFAULT_$LINE" | |
8875 | else | |
8876 | no_cache=1 | |
8877 | fi | |
8878 | ||
8879 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8880 | ||
8881 | fi; | |
8882 | ||
8883 | eval "$ac_cv_use_stattext" | |
8884 | if test "$no_cache" != 1; then | |
8885 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8886 | fi | |
8887 | ||
8888 | if test "$wxUSE_STATTEXT" = yes; then | |
8889 | echo "$as_me:$LINENO: result: yes" >&5 | |
8890 | echo "${ECHO_T}yes" >&6 | |
8891 | else | |
8892 | echo "$as_me:$LINENO: result: no" >&5 | |
8893 | echo "${ECHO_T}no" >&6 | |
8894 | fi | |
8895 | ||
8896 | ||
8897 | enablestring= | |
8898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8899 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8900 | no_cache=0 | |
8901 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8902 | if test "${enable_statusbar+set}" = set; then | |
8903 | enableval="$enable_statusbar" | |
8904 | ||
8905 | if test "$enableval" = yes; then | |
8906 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8907 | else | |
8908 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8909 | fi | |
8910 | ||
8911 | else | |
8912 | ||
8913 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8914 | if test "x$LINE" != x ; then | |
8915 | eval "DEFAULT_$LINE" | |
8916 | else | |
8917 | no_cache=1 | |
8918 | fi | |
8919 | ||
8920 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8921 | ||
8922 | fi; | |
8923 | ||
8924 | eval "$ac_cv_use_statusbar" | |
8925 | if test "$no_cache" != 1; then | |
8926 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8927 | fi | |
8928 | ||
8929 | if test "$wxUSE_STATUSBAR" = yes; then | |
8930 | echo "$as_me:$LINENO: result: yes" >&5 | |
8931 | echo "${ECHO_T}yes" >&6 | |
8932 | else | |
8933 | echo "$as_me:$LINENO: result: no" >&5 | |
8934 | echo "${ECHO_T}no" >&6 | |
8935 | fi | |
8936 | ||
8937 | ||
8938 | enablestring= | |
8939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8940 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8941 | no_cache=0 | |
8942 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8943 | if test "${enable_tabdialog+set}" = set; then | |
8944 | enableval="$enable_tabdialog" | |
8945 | ||
8946 | if test "$enableval" = yes; then | |
f10e38c4 | 8947 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes' |
a848cd7e | 8948 | else |
f10e38c4 | 8949 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no' |
a848cd7e SC |
8950 | fi |
8951 | ||
8952 | else | |
8953 | ||
f10e38c4 | 8954 | LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}` |
a848cd7e SC |
8955 | if test "x$LINE" != x ; then |
8956 | eval "DEFAULT_$LINE" | |
8957 | else | |
8958 | no_cache=1 | |
8959 | fi | |
8960 | ||
f10e38c4 | 8961 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG |
a848cd7e SC |
8962 | |
8963 | fi; | |
8964 | ||
8965 | eval "$ac_cv_use_tabdialog" | |
8966 | if test "$no_cache" != 1; then | |
8967 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8968 | fi | |
8969 | ||
f10e38c4 | 8970 | if test "$wxUSE_TAB_DIALOG" = yes; then |
a848cd7e SC |
8971 | echo "$as_me:$LINENO: result: yes" >&5 |
8972 | echo "${ECHO_T}yes" >&6 | |
8973 | else | |
8974 | echo "$as_me:$LINENO: result: no" >&5 | |
8975 | echo "${ECHO_T}no" >&6 | |
8976 | fi | |
8977 | ||
8978 | ||
8979 | enablestring= | |
8980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8981 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8982 | no_cache=0 | |
8983 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8984 | if test "${enable_textctrl+set}" = set; then | |
8985 | enableval="$enable_textctrl" | |
8986 | ||
8987 | if test "$enableval" = yes; then | |
8988 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8989 | else | |
8990 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8991 | fi | |
8992 | ||
8993 | else | |
8994 | ||
8995 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8996 | if test "x$LINE" != x ; then | |
8997 | eval "DEFAULT_$LINE" | |
8998 | else | |
8999 | no_cache=1 | |
9000 | fi | |
9001 | ||
9002 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
9003 | ||
9004 | fi; | |
9005 | ||
9006 | eval "$ac_cv_use_textctrl" | |
9007 | if test "$no_cache" != 1; then | |
9008 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
9009 | fi | |
9010 | ||
9011 | if test "$wxUSE_TEXTCTRL" = yes; then | |
9012 | echo "$as_me:$LINENO: result: yes" >&5 | |
9013 | echo "${ECHO_T}yes" >&6 | |
9014 | else | |
9015 | echo "$as_me:$LINENO: result: no" >&5 | |
9016 | echo "${ECHO_T}no" >&6 | |
9017 | fi | |
9018 | ||
9019 | ||
9020 | enablestring= | |
9021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
9022 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
9023 | no_cache=0 | |
9024 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
9025 | if test "${enable_togglebtn+set}" = set; then | |
9026 | enableval="$enable_togglebtn" | |
9027 | ||
9028 | if test "$enableval" = yes; then | |
9029 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
9030 | else | |
9031 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
9032 | fi | |
9033 | ||
9034 | else | |
9035 | ||
9036 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
9037 | if test "x$LINE" != x ; then | |
9038 | eval "DEFAULT_$LINE" | |
9039 | else | |
9040 | no_cache=1 | |
9041 | fi | |
9042 | ||
9043 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
9044 | ||
9045 | fi; | |
9046 | ||
9047 | eval "$ac_cv_use_togglebtn" | |
9048 | if test "$no_cache" != 1; then | |
9049 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
9050 | fi | |
9051 | ||
9052 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
9053 | echo "$as_me:$LINENO: result: yes" >&5 | |
9054 | echo "${ECHO_T}yes" >&6 | |
9055 | else | |
9056 | echo "$as_me:$LINENO: result: no" >&5 | |
9057 | echo "${ECHO_T}no" >&6 | |
9058 | fi | |
9059 | ||
9060 | ||
9061 | enablestring= | |
9062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
9063 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
9064 | no_cache=0 | |
9065 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
9066 | if test "${enable_toolbar+set}" = set; then | |
9067 | enableval="$enable_toolbar" | |
9068 | ||
9069 | if test "$enableval" = yes; then | |
9070 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
9071 | else | |
9072 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
9073 | fi | |
9074 | ||
9075 | else | |
9076 | ||
9077 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
9078 | if test "x$LINE" != x ; then | |
9079 | eval "DEFAULT_$LINE" | |
9080 | else | |
9081 | no_cache=1 | |
9082 | fi | |
9083 | ||
9084 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
9085 | ||
9086 | fi; | |
9087 | ||
9088 | eval "$ac_cv_use_toolbar" | |
9089 | if test "$no_cache" != 1; then | |
9090 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
9091 | fi | |
9092 | ||
9093 | if test "$wxUSE_TOOLBAR" = yes; then | |
9094 | echo "$as_me:$LINENO: result: yes" >&5 | |
9095 | echo "${ECHO_T}yes" >&6 | |
9096 | else | |
9097 | echo "$as_me:$LINENO: result: no" >&5 | |
9098 | echo "${ECHO_T}no" >&6 | |
9099 | fi | |
9100 | ||
9101 | ||
9102 | enablestring= | |
9103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9104 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
9105 | no_cache=0 | |
9106 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
9107 | if test "${enable_tbarnative+set}" = set; then | |
9108 | enableval="$enable_tbarnative" | |
9109 | ||
9110 | if test "$enableval" = yes; then | |
9111 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
9112 | else | |
9113 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
9114 | fi | |
9115 | ||
9116 | else | |
9117 | ||
9118 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
9119 | if test "x$LINE" != x ; then | |
9120 | eval "DEFAULT_$LINE" | |
9121 | else | |
9122 | no_cache=1 | |
9123 | fi | |
9124 | ||
9125 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
9126 | ||
9127 | fi; | |
9128 | ||
9129 | eval "$ac_cv_use_tbarnative" | |
9130 | if test "$no_cache" != 1; then | |
9131 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
9132 | fi | |
9133 | ||
9134 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
9135 | echo "$as_me:$LINENO: result: yes" >&5 | |
9136 | echo "${ECHO_T}yes" >&6 | |
9137 | else | |
9138 | echo "$as_me:$LINENO: result: no" >&5 | |
9139 | echo "${ECHO_T}no" >&6 | |
9140 | fi | |
9141 | ||
9142 | ||
9143 | enablestring= | |
9144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
9145 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
9146 | no_cache=0 | |
9147 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
9148 | if test "${enable_tbarsmpl+set}" = set; then | |
9149 | enableval="$enable_tbarsmpl" | |
9150 | ||
9151 | if test "$enableval" = yes; then | |
9152 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
9153 | else | |
9154 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
9155 | fi | |
9156 | ||
9157 | else | |
9158 | ||
9159 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
9160 | if test "x$LINE" != x ; then | |
9161 | eval "DEFAULT_$LINE" | |
9162 | else | |
9163 | no_cache=1 | |
9164 | fi | |
9165 | ||
9166 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
9167 | ||
9168 | fi; | |
9169 | ||
9170 | eval "$ac_cv_use_tbarsmpl" | |
9171 | if test "$no_cache" != 1; then | |
9172 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
9173 | fi | |
9174 | ||
9175 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
9176 | echo "$as_me:$LINENO: result: yes" >&5 | |
9177 | echo "${ECHO_T}yes" >&6 | |
9178 | else | |
9179 | echo "$as_me:$LINENO: result: no" >&5 | |
9180 | echo "${ECHO_T}no" >&6 | |
9181 | fi | |
9182 | ||
9183 | ||
0093c2fc VZ |
9184 | enablestring= |
9185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
9186 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
9187 | no_cache=0 | |
9188 | # Check whether --enable-treebook or --disable-treebook was given. | |
9189 | if test "${enable_treebook+set}" = set; then | |
9190 | enableval="$enable_treebook" | |
9191 | ||
9192 | if test "$enableval" = yes; then | |
9193 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
9194 | else | |
9195 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
9196 | fi | |
9197 | ||
9198 | else | |
9199 | ||
9200 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
9201 | if test "x$LINE" != x ; then | |
9202 | eval "DEFAULT_$LINE" | |
9203 | else | |
9204 | no_cache=1 | |
9205 | fi | |
9206 | ||
9207 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
9208 | ||
9209 | fi; | |
9210 | ||
9211 | eval "$ac_cv_use_treebook" | |
9212 | if test "$no_cache" != 1; then | |
9213 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
9214 | fi | |
9215 | ||
9216 | if test "$wxUSE_TREEBOOK" = yes; then | |
9217 | echo "$as_me:$LINENO: result: yes" >&5 | |
9218 | echo "${ECHO_T}yes" >&6 | |
9219 | else | |
9220 | echo "$as_me:$LINENO: result: no" >&5 | |
9221 | echo "${ECHO_T}no" >&6 | |
9222 | fi | |
9223 | ||
9224 | ||
5ec3bc43 JS |
9225 | enablestring= |
9226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5 | |
9227 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6 | |
9228 | no_cache=0 | |
9229 | # Check whether --enable-toolbook or --disable-toolbook was given. | |
9230 | if test "${enable_toolbook+set}" = set; then | |
9231 | enableval="$enable_toolbook" | |
9232 | ||
9233 | if test "$enableval" = yes; then | |
9234 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes' | |
9235 | else | |
9236 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=no' | |
9237 | fi | |
9238 | ||
9239 | else | |
9240 | ||
9241 | LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}` | |
9242 | if test "x$LINE" != x ; then | |
9243 | eval "DEFAULT_$LINE" | |
9244 | else | |
9245 | no_cache=1 | |
9246 | fi | |
9247 | ||
9248 | ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK | |
9249 | ||
9250 | fi; | |
9251 | ||
9252 | eval "$ac_cv_use_toolbook" | |
9253 | if test "$no_cache" != 1; then | |
9254 | echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp | |
9255 | fi | |
9256 | ||
9257 | if test "$wxUSE_TOOLBOOK" = yes; then | |
9258 | echo "$as_me:$LINENO: result: yes" >&5 | |
9259 | echo "${ECHO_T}yes" >&6 | |
9260 | else | |
9261 | echo "$as_me:$LINENO: result: no" >&5 | |
9262 | echo "${ECHO_T}no" >&6 | |
9263 | fi | |
9264 | ||
9265 | ||
a848cd7e SC |
9266 | enablestring= |
9267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
9268 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
9269 | no_cache=0 | |
9270 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
9271 | if test "${enable_treectrl+set}" = set; then | |
9272 | enableval="$enable_treectrl" | |
9273 | ||
9274 | if test "$enableval" = yes; then | |
9275 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9276 | else | |
9277 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9278 | fi | |
9279 | ||
9280 | else | |
9281 | ||
9282 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9283 | if test "x$LINE" != x ; then | |
9284 | eval "DEFAULT_$LINE" | |
9285 | else | |
9286 | no_cache=1 | |
9287 | fi | |
9288 | ||
9289 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9290 | ||
9291 | fi; | |
9292 | ||
9293 | eval "$ac_cv_use_treectrl" | |
9294 | if test "$no_cache" != 1; then | |
9295 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9296 | fi | |
9297 | ||
9298 | if test "$wxUSE_TREECTRL" = yes; then | |
9299 | echo "$as_me:$LINENO: result: yes" >&5 | |
9300 | echo "${ECHO_T}yes" >&6 | |
9301 | else | |
9302 | echo "$as_me:$LINENO: result: no" >&5 | |
9303 | echo "${ECHO_T}no" >&6 | |
9304 | fi | |
9305 | ||
9306 | ||
9307 | enablestring= | |
9308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9309 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9310 | no_cache=0 | |
9311 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9312 | if test "${enable_tipwindow+set}" = set; then | |
9313 | enableval="$enable_tipwindow" | |
9314 | ||
9315 | if test "$enableval" = yes; then | |
9316 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9317 | else | |
9318 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9319 | fi | |
9320 | ||
9321 | else | |
9322 | ||
9323 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9324 | if test "x$LINE" != x ; then | |
9325 | eval "DEFAULT_$LINE" | |
9326 | else | |
9327 | no_cache=1 | |
9328 | fi | |
9329 | ||
9330 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9331 | ||
9332 | fi; | |
9333 | ||
9334 | eval "$ac_cv_use_tipwindow" | |
9335 | if test "$no_cache" != 1; then | |
9336 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9337 | fi | |
9338 | ||
9339 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9340 | echo "$as_me:$LINENO: result: yes" >&5 | |
9341 | echo "${ECHO_T}yes" >&6 | |
9342 | else | |
9343 | echo "$as_me:$LINENO: result: no" >&5 | |
9344 | echo "${ECHO_T}no" >&6 | |
9345 | fi | |
9346 | ||
9347 | ||
9348 | enablestring= | |
9349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9350 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9351 | no_cache=0 | |
9352 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9353 | if test "${enable_popupwin+set}" = set; then | |
9354 | enableval="$enable_popupwin" | |
9355 | ||
9356 | if test "$enableval" = yes; then | |
9357 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9358 | else | |
9359 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9360 | fi | |
9361 | ||
9362 | else | |
9363 | ||
9364 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9365 | if test "x$LINE" != x ; then | |
9366 | eval "DEFAULT_$LINE" | |
9367 | else | |
9368 | no_cache=1 | |
9369 | fi | |
9370 | ||
9371 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9372 | ||
9373 | fi; | |
9374 | ||
9375 | eval "$ac_cv_use_popupwin" | |
9376 | if test "$no_cache" != 1; then | |
9377 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9378 | fi | |
9379 | ||
9380 | if test "$wxUSE_POPUPWIN" = yes; then | |
9381 | echo "$as_me:$LINENO: result: yes" >&5 | |
9382 | echo "${ECHO_T}yes" >&6 | |
9383 | else | |
9384 | echo "$as_me:$LINENO: result: no" >&5 | |
9385 | echo "${ECHO_T}no" >&6 | |
9386 | fi | |
9387 | ||
9388 | ||
9389 | ||
9390 | ||
9391 | enablestring= | |
9392 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9393 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9394 | no_cache=0 | |
9395 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9396 | if test "${enable_commondlg+set}" = set; then | |
9397 | enableval="$enable_commondlg" | |
9398 | ||
9399 | if test "$enableval" = yes; then | |
9400 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9401 | else | |
9402 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9403 | fi | |
9404 | ||
9405 | else | |
9406 | ||
9407 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9408 | if test "x$LINE" != x ; then | |
9409 | eval "DEFAULT_$LINE" | |
9410 | else | |
9411 | no_cache=1 | |
9412 | fi | |
9413 | ||
9414 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9415 | ||
9416 | fi; | |
9417 | ||
9418 | eval "$ac_cv_use_commondlg" | |
9419 | if test "$no_cache" != 1; then | |
9420 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9421 | fi | |
9422 | ||
9423 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9424 | echo "$as_me:$LINENO: result: yes" >&5 | |
9425 | echo "${ECHO_T}yes" >&6 | |
9426 | else | |
9427 | echo "$as_me:$LINENO: result: no" >&5 | |
9428 | echo "${ECHO_T}no" >&6 | |
9429 | fi | |
9430 | ||
9431 | ||
9432 | enablestring= | |
9433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9434 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9435 | no_cache=0 | |
9436 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9437 | if test "${enable_choicedlg+set}" = set; then | |
9438 | enableval="$enable_choicedlg" | |
9439 | ||
9440 | if test "$enableval" = yes; then | |
9441 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9442 | else | |
9443 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9444 | fi | |
9445 | ||
9446 | else | |
9447 | ||
9448 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9449 | if test "x$LINE" != x ; then | |
9450 | eval "DEFAULT_$LINE" | |
9451 | else | |
9452 | no_cache=1 | |
9453 | fi | |
9454 | ||
9455 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9456 | ||
9457 | fi; | |
9458 | ||
9459 | eval "$ac_cv_use_choicedlg" | |
9460 | if test "$no_cache" != 1; then | |
9461 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9462 | fi | |
9463 | ||
9464 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9465 | echo "$as_me:$LINENO: result: yes" >&5 | |
9466 | echo "${ECHO_T}yes" >&6 | |
9467 | else | |
9468 | echo "$as_me:$LINENO: result: no" >&5 | |
9469 | echo "${ECHO_T}no" >&6 | |
9470 | fi | |
9471 | ||
9472 | ||
9473 | enablestring= | |
9474 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9475 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9476 | no_cache=0 | |
9477 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9478 | if test "${enable_coldlg+set}" = set; then | |
9479 | enableval="$enable_coldlg" | |
9480 | ||
9481 | if test "$enableval" = yes; then | |
9482 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9483 | else | |
9484 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9485 | fi | |
9486 | ||
9487 | else | |
9488 | ||
9489 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9490 | if test "x$LINE" != x ; then | |
9491 | eval "DEFAULT_$LINE" | |
9492 | else | |
9493 | no_cache=1 | |
9494 | fi | |
9495 | ||
9496 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9497 | ||
9498 | fi; | |
9499 | ||
9500 | eval "$ac_cv_use_coldlg" | |
9501 | if test "$no_cache" != 1; then | |
9502 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9503 | fi | |
9504 | ||
9505 | if test "$wxUSE_COLOURDLG" = yes; then | |
9506 | echo "$as_me:$LINENO: result: yes" >&5 | |
9507 | echo "${ECHO_T}yes" >&6 | |
9508 | else | |
9509 | echo "$as_me:$LINENO: result: no" >&5 | |
9510 | echo "${ECHO_T}no" >&6 | |
9511 | fi | |
9512 | ||
9513 | ||
9514 | enablestring= | |
9515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9516 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9517 | no_cache=0 | |
9518 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9519 | if test "${enable_filedlg+set}" = set; then | |
9520 | enableval="$enable_filedlg" | |
9521 | ||
9522 | if test "$enableval" = yes; then | |
9523 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9524 | else | |
9525 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9526 | fi | |
9527 | ||
9528 | else | |
9529 | ||
9530 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9531 | if test "x$LINE" != x ; then | |
9532 | eval "DEFAULT_$LINE" | |
9533 | else | |
9534 | no_cache=1 | |
9535 | fi | |
9536 | ||
9537 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9538 | ||
9539 | fi; | |
9540 | ||
9541 | eval "$ac_cv_use_filedlg" | |
9542 | if test "$no_cache" != 1; then | |
9543 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9544 | fi | |
9545 | ||
9546 | if test "$wxUSE_FILEDLG" = yes; then | |
9547 | echo "$as_me:$LINENO: result: yes" >&5 | |
9548 | echo "${ECHO_T}yes" >&6 | |
9549 | else | |
9550 | echo "$as_me:$LINENO: result: no" >&5 | |
9551 | echo "${ECHO_T}no" >&6 | |
9552 | fi | |
9553 | ||
9554 | ||
9555 | enablestring= | |
9556 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9557 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9558 | no_cache=0 | |
9559 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9560 | if test "${enable_finddlg+set}" = set; then | |
9561 | enableval="$enable_finddlg" | |
9562 | ||
9563 | if test "$enableval" = yes; then | |
9564 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9565 | else | |
9566 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9567 | fi | |
9568 | ||
9569 | else | |
9570 | ||
9571 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9572 | if test "x$LINE" != x ; then | |
9573 | eval "DEFAULT_$LINE" | |
9574 | else | |
9575 | no_cache=1 | |
9576 | fi | |
9577 | ||
9578 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9579 | ||
9580 | fi; | |
9581 | ||
9582 | eval "$ac_cv_use_finddlg" | |
9583 | if test "$no_cache" != 1; then | |
9584 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9585 | fi | |
9586 | ||
9587 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9588 | echo "$as_me:$LINENO: result: yes" >&5 | |
9589 | echo "${ECHO_T}yes" >&6 | |
9590 | else | |
9591 | echo "$as_me:$LINENO: result: no" >&5 | |
9592 | echo "${ECHO_T}no" >&6 | |
9593 | fi | |
9594 | ||
9595 | ||
9596 | enablestring= | |
9597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9598 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9599 | no_cache=0 | |
9600 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9601 | if test "${enable_fontdlg+set}" = set; then | |
9602 | enableval="$enable_fontdlg" | |
9603 | ||
9604 | if test "$enableval" = yes; then | |
9605 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9606 | else | |
9607 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9608 | fi | |
9609 | ||
9610 | else | |
9611 | ||
9612 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9613 | if test "x$LINE" != x ; then | |
9614 | eval "DEFAULT_$LINE" | |
9615 | else | |
9616 | no_cache=1 | |
9617 | fi | |
9618 | ||
9619 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9620 | ||
9621 | fi; | |
9622 | ||
9623 | eval "$ac_cv_use_fontdlg" | |
9624 | if test "$no_cache" != 1; then | |
9625 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9626 | fi | |
9627 | ||
9628 | if test "$wxUSE_FONTDLG" = yes; then | |
9629 | echo "$as_me:$LINENO: result: yes" >&5 | |
9630 | echo "${ECHO_T}yes" >&6 | |
9631 | else | |
9632 | echo "$as_me:$LINENO: result: no" >&5 | |
9633 | echo "${ECHO_T}no" >&6 | |
9634 | fi | |
9635 | ||
9636 | ||
9637 | enablestring= | |
9638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9639 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9640 | no_cache=0 | |
9641 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9642 | if test "${enable_dirdlg+set}" = set; then | |
9643 | enableval="$enable_dirdlg" | |
9644 | ||
9645 | if test "$enableval" = yes; then | |
9646 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9647 | else | |
9648 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9649 | fi | |
9650 | ||
9651 | else | |
9652 | ||
9653 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9654 | if test "x$LINE" != x ; then | |
9655 | eval "DEFAULT_$LINE" | |
9656 | else | |
9657 | no_cache=1 | |
9658 | fi | |
9659 | ||
9660 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9661 | ||
9662 | fi; | |
9663 | ||
9664 | eval "$ac_cv_use_dirdlg" | |
9665 | if test "$no_cache" != 1; then | |
9666 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9667 | fi | |
9668 | ||
9669 | if test "$wxUSE_DIRDLG" = yes; then | |
9670 | echo "$as_me:$LINENO: result: yes" >&5 | |
9671 | echo "${ECHO_T}yes" >&6 | |
9672 | else | |
9673 | echo "$as_me:$LINENO: result: no" >&5 | |
9674 | echo "${ECHO_T}no" >&6 | |
9675 | fi | |
9676 | ||
9677 | ||
9678 | enablestring= | |
9679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9680 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9681 | no_cache=0 | |
9682 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9683 | if test "${enable_msgdlg+set}" = set; then | |
9684 | enableval="$enable_msgdlg" | |
9685 | ||
9686 | if test "$enableval" = yes; then | |
9687 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9688 | else | |
9689 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9690 | fi | |
9691 | ||
9692 | else | |
9693 | ||
9694 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9695 | if test "x$LINE" != x ; then | |
9696 | eval "DEFAULT_$LINE" | |
9697 | else | |
9698 | no_cache=1 | |
9699 | fi | |
9700 | ||
9701 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9702 | ||
9703 | fi; | |
9704 | ||
9705 | eval "$ac_cv_use_msgdlg" | |
9706 | if test "$no_cache" != 1; then | |
9707 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9708 | fi | |
9709 | ||
9710 | if test "$wxUSE_MSGDLG" = yes; then | |
9711 | echo "$as_me:$LINENO: result: yes" >&5 | |
9712 | echo "${ECHO_T}yes" >&6 | |
9713 | else | |
9714 | echo "$as_me:$LINENO: result: no" >&5 | |
9715 | echo "${ECHO_T}no" >&6 | |
9716 | fi | |
9717 | ||
9718 | ||
9719 | enablestring= | |
9720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9721 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9722 | no_cache=0 | |
9723 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9724 | if test "${enable_numberdlg+set}" = set; then | |
9725 | enableval="$enable_numberdlg" | |
9726 | ||
9727 | if test "$enableval" = yes; then | |
9728 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9729 | else | |
9730 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9731 | fi | |
9732 | ||
9733 | else | |
9734 | ||
9735 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9736 | if test "x$LINE" != x ; then | |
9737 | eval "DEFAULT_$LINE" | |
9738 | else | |
9739 | no_cache=1 | |
9740 | fi | |
9741 | ||
9742 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9743 | ||
9744 | fi; | |
9745 | ||
9746 | eval "$ac_cv_use_numberdlg" | |
9747 | if test "$no_cache" != 1; then | |
9748 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9749 | fi | |
9750 | ||
9751 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9752 | echo "$as_me:$LINENO: result: yes" >&5 | |
9753 | echo "${ECHO_T}yes" >&6 | |
9754 | else | |
9755 | echo "$as_me:$LINENO: result: no" >&5 | |
9756 | echo "${ECHO_T}no" >&6 | |
9757 | fi | |
9758 | ||
9759 | ||
9760 | enablestring= | |
9761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9762 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9763 | no_cache=0 | |
9764 | # Check whether --enable-splash or --disable-splash was given. | |
9765 | if test "${enable_splash+set}" = set; then | |
9766 | enableval="$enable_splash" | |
9767 | ||
9768 | if test "$enableval" = yes; then | |
9769 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9770 | else | |
9771 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9772 | fi | |
9773 | ||
9774 | else | |
9775 | ||
9776 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9777 | if test "x$LINE" != x ; then | |
9778 | eval "DEFAULT_$LINE" | |
9779 | else | |
9780 | no_cache=1 | |
9781 | fi | |
9782 | ||
9783 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9784 | ||
9785 | fi; | |
9786 | ||
9787 | eval "$ac_cv_use_splash" | |
9788 | if test "$no_cache" != 1; then | |
9789 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9790 | fi | |
9791 | ||
9792 | if test "$wxUSE_SPLASH" = yes; then | |
9793 | echo "$as_me:$LINENO: result: yes" >&5 | |
9794 | echo "${ECHO_T}yes" >&6 | |
9795 | else | |
9796 | echo "$as_me:$LINENO: result: no" >&5 | |
9797 | echo "${ECHO_T}no" >&6 | |
9798 | fi | |
9799 | ||
9800 | ||
9801 | enablestring= | |
9802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9803 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9804 | no_cache=0 | |
9805 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9806 | if test "${enable_textdlg+set}" = set; then | |
9807 | enableval="$enable_textdlg" | |
9808 | ||
9809 | if test "$enableval" = yes; then | |
9810 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9811 | else | |
9812 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9813 | fi | |
9814 | ||
9815 | else | |
9816 | ||
9817 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9818 | if test "x$LINE" != x ; then | |
9819 | eval "DEFAULT_$LINE" | |
9820 | else | |
9821 | no_cache=1 | |
9822 | fi | |
9823 | ||
9824 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9825 | ||
9826 | fi; | |
9827 | ||
9828 | eval "$ac_cv_use_textdlg" | |
9829 | if test "$no_cache" != 1; then | |
9830 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9831 | fi | |
9832 | ||
9833 | if test "$wxUSE_TEXTDLG" = yes; then | |
9834 | echo "$as_me:$LINENO: result: yes" >&5 | |
9835 | echo "${ECHO_T}yes" >&6 | |
9836 | else | |
9837 | echo "$as_me:$LINENO: result: no" >&5 | |
9838 | echo "${ECHO_T}no" >&6 | |
9839 | fi | |
9840 | ||
9841 | ||
9842 | enablestring= | |
9843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9844 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9845 | no_cache=0 | |
9846 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9847 | if test "${enable_tipdlg+set}" = set; then | |
9848 | enableval="$enable_tipdlg" | |
9849 | ||
9850 | if test "$enableval" = yes; then | |
9851 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9852 | else | |
9853 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9854 | fi | |
9855 | ||
9856 | else | |
9857 | ||
9858 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9859 | if test "x$LINE" != x ; then | |
9860 | eval "DEFAULT_$LINE" | |
9861 | else | |
9862 | no_cache=1 | |
9863 | fi | |
9864 | ||
9865 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9866 | ||
9867 | fi; | |
9868 | ||
9869 | eval "$ac_cv_use_tipdlg" | |
9870 | if test "$no_cache" != 1; then | |
9871 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9872 | fi | |
9873 | ||
9874 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9875 | echo "$as_me:$LINENO: result: yes" >&5 | |
9876 | echo "${ECHO_T}yes" >&6 | |
9877 | else | |
9878 | echo "$as_me:$LINENO: result: no" >&5 | |
9879 | echo "${ECHO_T}no" >&6 | |
9880 | fi | |
9881 | ||
9882 | ||
9883 | enablestring= | |
9884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9885 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9886 | no_cache=0 | |
9887 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9888 | if test "${enable_progressdlg+set}" = set; then | |
9889 | enableval="$enable_progressdlg" | |
9890 | ||
9891 | if test "$enableval" = yes; then | |
9892 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9893 | else | |
9894 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9895 | fi | |
9896 | ||
9897 | else | |
9898 | ||
9899 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9900 | if test "x$LINE" != x ; then | |
9901 | eval "DEFAULT_$LINE" | |
9902 | else | |
9903 | no_cache=1 | |
9904 | fi | |
9905 | ||
9906 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9907 | ||
9908 | fi; | |
9909 | ||
9910 | eval "$ac_cv_use_progressdlg" | |
9911 | if test "$no_cache" != 1; then | |
9912 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9913 | fi | |
9914 | ||
9915 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9916 | echo "$as_me:$LINENO: result: yes" >&5 | |
9917 | echo "${ECHO_T}yes" >&6 | |
9918 | else | |
9919 | echo "$as_me:$LINENO: result: no" >&5 | |
9920 | echo "${ECHO_T}no" >&6 | |
9921 | fi | |
9922 | ||
9923 | ||
9924 | enablestring= | |
9925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9926 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9927 | no_cache=0 | |
9928 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9929 | if test "${enable_wizarddlg+set}" = set; then | |
9930 | enableval="$enable_wizarddlg" | |
9931 | ||
9932 | if test "$enableval" = yes; then | |
9933 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9934 | else | |
9935 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9936 | fi | |
9937 | ||
9938 | else | |
9939 | ||
9940 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9941 | if test "x$LINE" != x ; then | |
9942 | eval "DEFAULT_$LINE" | |
9943 | else | |
9944 | no_cache=1 | |
9945 | fi | |
9946 | ||
9947 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9948 | ||
9949 | fi; | |
9950 | ||
9951 | eval "$ac_cv_use_wizarddlg" | |
9952 | if test "$no_cache" != 1; then | |
9953 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9954 | fi | |
9955 | ||
9956 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9957 | echo "$as_me:$LINENO: result: yes" >&5 | |
9958 | echo "${ECHO_T}yes" >&6 | |
9959 | else | |
9960 | echo "$as_me:$LINENO: result: no" >&5 | |
9961 | echo "${ECHO_T}no" >&6 | |
9962 | fi | |
9963 | ||
9964 | ||
9965 | ||
9966 | ||
9967 | enablestring= | |
9968 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9969 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9970 | no_cache=0 | |
9971 | # Check whether --enable-menus or --disable-menus was given. | |
9972 | if test "${enable_menus+set}" = set; then | |
9973 | enableval="$enable_menus" | |
9974 | ||
9975 | if test "$enableval" = yes; then | |
9976 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9977 | else | |
9978 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9979 | fi | |
9980 | ||
9981 | else | |
9982 | ||
9983 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9984 | if test "x$LINE" != x ; then | |
9985 | eval "DEFAULT_$LINE" | |
9986 | else | |
9987 | no_cache=1 | |
9988 | fi | |
9989 | ||
9990 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9991 | ||
9992 | fi; | |
9993 | ||
9994 | eval "$ac_cv_use_menus" | |
9995 | if test "$no_cache" != 1; then | |
9996 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9997 | fi | |
9998 | ||
9999 | if test "$wxUSE_MENUS" = yes; then | |
10000 | echo "$as_me:$LINENO: result: yes" >&5 | |
10001 | echo "${ECHO_T}yes" >&6 | |
10002 | else | |
10003 | echo "$as_me:$LINENO: result: no" >&5 | |
10004 | echo "${ECHO_T}no" >&6 | |
10005 | fi | |
10006 | ||
10007 | ||
10008 | enablestring= | |
10009 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
10010 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10011 | no_cache=0 | |
10012 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
10013 | if test "${enable_miniframe+set}" = set; then | |
10014 | enableval="$enable_miniframe" | |
10015 | ||
10016 | if test "$enableval" = yes; then | |
10017 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
10018 | else | |
10019 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
10020 | fi | |
10021 | ||
10022 | else | |
10023 | ||
10024 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
10025 | if test "x$LINE" != x ; then | |
10026 | eval "DEFAULT_$LINE" | |
10027 | else | |
10028 | no_cache=1 | |
10029 | fi | |
10030 | ||
10031 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10032 | ||
10033 | fi; | |
10034 | ||
10035 | eval "$ac_cv_use_miniframe" | |
10036 | if test "$no_cache" != 1; then | |
10037 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
10038 | fi | |
10039 | ||
10040 | if test "$wxUSE_MINIFRAME" = yes; then | |
10041 | echo "$as_me:$LINENO: result: yes" >&5 | |
10042 | echo "${ECHO_T}yes" >&6 | |
10043 | else | |
10044 | echo "$as_me:$LINENO: result: no" >&5 | |
10045 | echo "${ECHO_T}no" >&6 | |
10046 | fi | |
10047 | ||
10048 | ||
10049 | enablestring= | |
10050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
10051 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10052 | no_cache=0 | |
10053 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
10054 | if test "${enable_tooltips+set}" = set; then | |
10055 | enableval="$enable_tooltips" | |
10056 | ||
10057 | if test "$enableval" = yes; then | |
10058 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
10059 | else | |
10060 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
10061 | fi | |
10062 | ||
10063 | else | |
10064 | ||
10065 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
10066 | if test "x$LINE" != x ; then | |
10067 | eval "DEFAULT_$LINE" | |
10068 | else | |
10069 | no_cache=1 | |
10070 | fi | |
10071 | ||
10072 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10073 | ||
10074 | fi; | |
10075 | ||
10076 | eval "$ac_cv_use_tooltips" | |
10077 | if test "$no_cache" != 1; then | |
10078 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
10079 | fi | |
10080 | ||
10081 | if test "$wxUSE_TOOLTIPS" = yes; then | |
10082 | echo "$as_me:$LINENO: result: yes" >&5 | |
10083 | echo "${ECHO_T}yes" >&6 | |
10084 | else | |
10085 | echo "$as_me:$LINENO: result: no" >&5 | |
10086 | echo "${ECHO_T}no" >&6 | |
10087 | fi | |
10088 | ||
10089 | ||
10090 | enablestring= | |
10091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
10092 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10093 | no_cache=0 | |
10094 | # Check whether --enable-splines or --disable-splines was given. | |
10095 | if test "${enable_splines+set}" = set; then | |
10096 | enableval="$enable_splines" | |
10097 | ||
10098 | if test "$enableval" = yes; then | |
10099 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
10100 | else | |
10101 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
10102 | fi | |
10103 | ||
10104 | else | |
10105 | ||
10106 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
10107 | if test "x$LINE" != x ; then | |
10108 | eval "DEFAULT_$LINE" | |
10109 | else | |
10110 | no_cache=1 | |
10111 | fi | |
10112 | ||
10113 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10114 | ||
10115 | fi; | |
10116 | ||
10117 | eval "$ac_cv_use_splines" | |
10118 | if test "$no_cache" != 1; then | |
10119 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
10120 | fi | |
10121 | ||
10122 | if test "$wxUSE_SPLINES" = yes; then | |
10123 | echo "$as_me:$LINENO: result: yes" >&5 | |
10124 | echo "${ECHO_T}yes" >&6 | |
10125 | else | |
10126 | echo "$as_me:$LINENO: result: no" >&5 | |
10127 | echo "${ECHO_T}no" >&6 | |
10128 | fi | |
10129 | ||
10130 | ||
fbe2ca43 SN |
10131 | enablestring= |
10132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
10133 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
10134 | no_cache=0 | |
10135 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
10136 | if test "${enable_mousewheel+set}" = set; then | |
10137 | enableval="$enable_mousewheel" | |
10138 | ||
10139 | if test "$enableval" = yes; then | |
10140 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
10141 | else | |
10142 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
10143 | fi | |
10144 | ||
10145 | else | |
10146 | ||
10147 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
10148 | if test "x$LINE" != x ; then | |
10149 | eval "DEFAULT_$LINE" | |
10150 | else | |
10151 | no_cache=1 | |
10152 | fi | |
10153 | ||
10154 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
10155 | ||
10156 | fi; | |
10157 | ||
10158 | eval "$ac_cv_use_mousewheel" | |
10159 | if test "$no_cache" != 1; then | |
10160 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
10161 | fi | |
10162 | ||
10163 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
10164 | echo "$as_me:$LINENO: result: yes" >&5 | |
10165 | echo "${ECHO_T}yes" >&6 | |
10166 | else | |
10167 | echo "$as_me:$LINENO: result: no" >&5 | |
10168 | echo "${ECHO_T}no" >&6 | |
10169 | fi | |
10170 | ||
10171 | ||
a848cd7e SC |
10172 | enablestring= |
10173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
10174 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10175 | no_cache=0 | |
10176 | # Check whether --enable-validators or --disable-validators was given. | |
10177 | if test "${enable_validators+set}" = set; then | |
10178 | enableval="$enable_validators" | |
10179 | ||
10180 | if test "$enableval" = yes; then | |
10181 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
10182 | else | |
10183 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
10184 | fi | |
10185 | ||
10186 | else | |
10187 | ||
10188 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
10189 | if test "x$LINE" != x ; then | |
10190 | eval "DEFAULT_$LINE" | |
10191 | else | |
10192 | no_cache=1 | |
10193 | fi | |
10194 | ||
10195 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10196 | ||
10197 | fi; | |
10198 | ||
10199 | eval "$ac_cv_use_validators" | |
10200 | if test "$no_cache" != 1; then | |
10201 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
10202 | fi | |
10203 | ||
10204 | if test "$wxUSE_VALIDATORS" = yes; then | |
10205 | echo "$as_me:$LINENO: result: yes" >&5 | |
10206 | echo "${ECHO_T}yes" >&6 | |
10207 | else | |
10208 | echo "$as_me:$LINENO: result: no" >&5 | |
10209 | echo "${ECHO_T}no" >&6 | |
10210 | fi | |
10211 | ||
10212 | ||
10213 | enablestring= | |
10214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10215 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10216 | no_cache=0 | |
10217 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
10218 | if test "${enable_busyinfo+set}" = set; then | |
10219 | enableval="$enable_busyinfo" | |
10220 | ||
10221 | if test "$enableval" = yes; then | |
10222 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
10223 | else | |
10224 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
10225 | fi | |
10226 | ||
10227 | else | |
10228 | ||
10229 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
10230 | if test "x$LINE" != x ; then | |
10231 | eval "DEFAULT_$LINE" | |
10232 | else | |
10233 | no_cache=1 | |
10234 | fi | |
10235 | ||
10236 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10237 | ||
10238 | fi; | |
10239 | ||
10240 | eval "$ac_cv_use_busyinfo" | |
10241 | if test "$no_cache" != 1; then | |
10242 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
10243 | fi | |
10244 | ||
10245 | if test "$wxUSE_BUSYINFO" = yes; then | |
10246 | echo "$as_me:$LINENO: result: yes" >&5 | |
10247 | echo "${ECHO_T}yes" >&6 | |
10248 | else | |
10249 | echo "$as_me:$LINENO: result: no" >&5 | |
10250 | echo "${ECHO_T}no" >&6 | |
10251 | fi | |
10252 | ||
10253 | ||
10254 | enablestring= | |
10255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
10256 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
10257 | no_cache=0 | |
10258 | # Check whether --enable-joystick or --disable-joystick was given. | |
10259 | if test "${enable_joystick+set}" = set; then | |
10260 | enableval="$enable_joystick" | |
10261 | ||
10262 | if test "$enableval" = yes; then | |
10263 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
10264 | else | |
10265 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
10266 | fi | |
10267 | ||
10268 | else | |
10269 | ||
10270 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
10271 | if test "x$LINE" != x ; then | |
10272 | eval "DEFAULT_$LINE" | |
10273 | else | |
10274 | no_cache=1 | |
10275 | fi | |
10276 | ||
10277 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10278 | ||
10279 | fi; | |
10280 | ||
10281 | eval "$ac_cv_use_joystick" | |
10282 | if test "$no_cache" != 1; then | |
10283 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10284 | fi | |
10285 | ||
10286 | if test "$wxUSE_JOYSTICK" = yes; then | |
10287 | echo "$as_me:$LINENO: result: yes" >&5 | |
10288 | echo "${ECHO_T}yes" >&6 | |
10289 | else | |
10290 | echo "$as_me:$LINENO: result: no" >&5 | |
10291 | echo "${ECHO_T}no" >&6 | |
10292 | fi | |
10293 | ||
10294 | ||
10295 | enablestring= | |
10296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10297 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10298 | no_cache=0 | |
10299 | # Check whether --enable-metafile or --disable-metafile was given. | |
10300 | if test "${enable_metafile+set}" = set; then | |
10301 | enableval="$enable_metafile" | |
10302 | ||
10303 | if test "$enableval" = yes; then | |
10304 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10305 | else | |
10306 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10307 | fi | |
10308 | ||
10309 | else | |
10310 | ||
10311 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10312 | if test "x$LINE" != x ; then | |
10313 | eval "DEFAULT_$LINE" | |
10314 | else | |
10315 | no_cache=1 | |
10316 | fi | |
10317 | ||
10318 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10319 | ||
10320 | fi; | |
10321 | ||
10322 | eval "$ac_cv_use_metafile" | |
10323 | if test "$no_cache" != 1; then | |
10324 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10325 | fi | |
10326 | ||
10327 | if test "$wxUSE_METAFILE" = yes; then | |
10328 | echo "$as_me:$LINENO: result: yes" >&5 | |
10329 | echo "${ECHO_T}yes" >&6 | |
10330 | else | |
10331 | echo "$as_me:$LINENO: result: no" >&5 | |
10332 | echo "${ECHO_T}no" >&6 | |
10333 | fi | |
10334 | ||
10335 | ||
10336 | enablestring= | |
10337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10338 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10339 | no_cache=0 | |
10340 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10341 | if test "${enable_dragimage+set}" = set; then | |
10342 | enableval="$enable_dragimage" | |
10343 | ||
10344 | if test "$enableval" = yes; then | |
10345 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10346 | else | |
10347 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10348 | fi | |
10349 | ||
10350 | else | |
10351 | ||
10352 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10353 | if test "x$LINE" != x ; then | |
10354 | eval "DEFAULT_$LINE" | |
10355 | else | |
10356 | no_cache=1 | |
10357 | fi | |
10358 | ||
10359 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10360 | ||
10361 | fi; | |
10362 | ||
10363 | eval "$ac_cv_use_dragimage" | |
10364 | if test "$no_cache" != 1; then | |
10365 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10366 | fi | |
10367 | ||
10368 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10369 | echo "$as_me:$LINENO: result: yes" >&5 | |
10370 | echo "${ECHO_T}yes" >&6 | |
10371 | else | |
10372 | echo "$as_me:$LINENO: result: no" >&5 | |
10373 | echo "${ECHO_T}no" >&6 | |
10374 | fi | |
10375 | ||
10376 | ||
10377 | enablestring= | |
10378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10379 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10380 | no_cache=0 | |
10381 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10382 | if test "${enable_accessibility+set}" = set; then | |
10383 | enableval="$enable_accessibility" | |
10384 | ||
10385 | if test "$enableval" = yes; then | |
10386 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10387 | else | |
10388 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10389 | fi | |
10390 | ||
10391 | else | |
10392 | ||
10393 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10394 | if test "x$LINE" != x ; then | |
10395 | eval "DEFAULT_$LINE" | |
10396 | else | |
10397 | no_cache=1 | |
10398 | fi | |
10399 | ||
10400 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10401 | ||
10402 | fi; | |
10403 | ||
10404 | eval "$ac_cv_use_accessibility" | |
10405 | if test "$no_cache" != 1; then | |
10406 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10407 | fi | |
10408 | ||
10409 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10410 | echo "$as_me:$LINENO: result: yes" >&5 | |
10411 | echo "${ECHO_T}yes" >&6 | |
10412 | else | |
10413 | echo "$as_me:$LINENO: result: no" >&5 | |
10414 | echo "${ECHO_T}no" >&6 | |
10415 | fi | |
10416 | ||
10417 | ||
38b4a946 VZ |
10418 | if test "$wxUSE_MSW" = "1"; then |
10419 | ||
10420 | enablestring= | |
10421 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10422 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10423 | no_cache=0 | |
10424 | # Check whether --enable-dccache or --disable-dccache was given. | |
10425 | if test "${enable_dccache+set}" = set; then | |
10426 | enableval="$enable_dccache" | |
10427 | ||
10428 | if test "$enableval" = yes; then | |
10429 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10430 | else | |
10431 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10432 | fi | |
10433 | ||
10434 | else | |
10435 | ||
10436 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10437 | if test "x$LINE" != x ; then | |
10438 | eval "DEFAULT_$LINE" | |
10439 | else | |
10440 | no_cache=1 | |
10441 | fi | |
10442 | ||
10443 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10444 | ||
10445 | fi; | |
10446 | ||
10447 | eval "$ac_cv_use_dccache" | |
10448 | if test "$no_cache" != 1; then | |
10449 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10450 | fi | |
10451 | ||
10452 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10453 | echo "$as_me:$LINENO: result: yes" >&5 | |
10454 | echo "${ECHO_T}yes" >&6 | |
10455 | else | |
10456 | echo "$as_me:$LINENO: result: no" >&5 | |
10457 | echo "${ECHO_T}no" >&6 | |
10458 | fi | |
10459 | ||
10460 | fi | |
10461 | ||
a848cd7e SC |
10462 | |
10463 | ||
10464 | enablestring= | |
10465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10466 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10467 | no_cache=0 | |
10468 | # Check whether --enable-palette or --disable-palette was given. | |
10469 | if test "${enable_palette+set}" = set; then | |
10470 | enableval="$enable_palette" | |
10471 | ||
10472 | if test "$enableval" = yes; then | |
10473 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10474 | else | |
10475 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10476 | fi | |
10477 | ||
10478 | else | |
10479 | ||
10480 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10481 | if test "x$LINE" != x ; then | |
10482 | eval "DEFAULT_$LINE" | |
10483 | else | |
10484 | no_cache=1 | |
10485 | fi | |
10486 | ||
10487 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10488 | ||
10489 | fi; | |
10490 | ||
10491 | eval "$ac_cv_use_palette" | |
10492 | if test "$no_cache" != 1; then | |
10493 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10494 | fi | |
10495 | ||
10496 | if test "$wxUSE_PALETTE" = yes; then | |
10497 | echo "$as_me:$LINENO: result: yes" >&5 | |
10498 | echo "${ECHO_T}yes" >&6 | |
10499 | else | |
10500 | echo "$as_me:$LINENO: result: no" >&5 | |
10501 | echo "${ECHO_T}no" >&6 | |
10502 | fi | |
10503 | ||
10504 | ||
10505 | enablestring= | |
10506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10507 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10508 | no_cache=0 | |
10509 | # Check whether --enable-image or --disable-image was given. | |
10510 | if test "${enable_image+set}" = set; then | |
10511 | enableval="$enable_image" | |
10512 | ||
10513 | if test "$enableval" = yes; then | |
10514 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10515 | else | |
10516 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10517 | fi | |
10518 | ||
10519 | else | |
10520 | ||
10521 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10522 | if test "x$LINE" != x ; then | |
10523 | eval "DEFAULT_$LINE" | |
10524 | else | |
10525 | no_cache=1 | |
10526 | fi | |
10527 | ||
10528 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10529 | ||
10530 | fi; | |
10531 | ||
10532 | eval "$ac_cv_use_image" | |
10533 | if test "$no_cache" != 1; then | |
10534 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10535 | fi | |
10536 | ||
10537 | if test "$wxUSE_IMAGE" = yes; then | |
10538 | echo "$as_me:$LINENO: result: yes" >&5 | |
10539 | echo "${ECHO_T}yes" >&6 | |
10540 | else | |
10541 | echo "$as_me:$LINENO: result: no" >&5 | |
10542 | echo "${ECHO_T}no" >&6 | |
10543 | fi | |
10544 | ||
10545 | ||
10546 | enablestring= | |
10547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10548 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10549 | no_cache=0 | |
10550 | # Check whether --enable-gif or --disable-gif was given. | |
10551 | if test "${enable_gif+set}" = set; then | |
10552 | enableval="$enable_gif" | |
10553 | ||
10554 | if test "$enableval" = yes; then | |
10555 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10556 | else | |
10557 | ac_cv_use_gif='wxUSE_GIF=no' | |
10558 | fi | |
10559 | ||
10560 | else | |
10561 | ||
10562 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10563 | if test "x$LINE" != x ; then | |
10564 | eval "DEFAULT_$LINE" | |
10565 | else | |
10566 | no_cache=1 | |
10567 | fi | |
10568 | ||
10569 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10570 | ||
10571 | fi; | |
10572 | ||
10573 | eval "$ac_cv_use_gif" | |
10574 | if test "$no_cache" != 1; then | |
10575 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10576 | fi | |
10577 | ||
10578 | if test "$wxUSE_GIF" = yes; then | |
10579 | echo "$as_me:$LINENO: result: yes" >&5 | |
10580 | echo "${ECHO_T}yes" >&6 | |
10581 | else | |
10582 | echo "$as_me:$LINENO: result: no" >&5 | |
10583 | echo "${ECHO_T}no" >&6 | |
10584 | fi | |
10585 | ||
10586 | ||
10587 | enablestring= | |
10588 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10589 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10590 | no_cache=0 | |
10591 | # Check whether --enable-pcx or --disable-pcx was given. | |
10592 | if test "${enable_pcx+set}" = set; then | |
10593 | enableval="$enable_pcx" | |
10594 | ||
10595 | if test "$enableval" = yes; then | |
10596 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10597 | else | |
10598 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10599 | fi | |
10600 | ||
10601 | else | |
10602 | ||
10603 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10604 | if test "x$LINE" != x ; then | |
10605 | eval "DEFAULT_$LINE" | |
10606 | else | |
10607 | no_cache=1 | |
10608 | fi | |
10609 | ||
10610 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10611 | ||
10612 | fi; | |
10613 | ||
10614 | eval "$ac_cv_use_pcx" | |
10615 | if test "$no_cache" != 1; then | |
10616 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10617 | fi | |
10618 | ||
10619 | if test "$wxUSE_PCX" = yes; then | |
10620 | echo "$as_me:$LINENO: result: yes" >&5 | |
10621 | echo "${ECHO_T}yes" >&6 | |
10622 | else | |
10623 | echo "$as_me:$LINENO: result: no" >&5 | |
10624 | echo "${ECHO_T}no" >&6 | |
10625 | fi | |
10626 | ||
10627 | ||
10628 | enablestring= | |
10629 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10630 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10631 | no_cache=0 | |
10632 | # Check whether --enable-iff or --disable-iff was given. | |
10633 | if test "${enable_iff+set}" = set; then | |
10634 | enableval="$enable_iff" | |
10635 | ||
10636 | if test "$enableval" = yes; then | |
10637 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10638 | else | |
10639 | ac_cv_use_iff='wxUSE_IFF=no' | |
10640 | fi | |
10641 | ||
10642 | else | |
10643 | ||
10644 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10645 | if test "x$LINE" != x ; then | |
10646 | eval "DEFAULT_$LINE" | |
10647 | else | |
10648 | no_cache=1 | |
10649 | fi | |
10650 | ||
10651 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10652 | ||
10653 | fi; | |
10654 | ||
10655 | eval "$ac_cv_use_iff" | |
10656 | if test "$no_cache" != 1; then | |
10657 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10658 | fi | |
10659 | ||
10660 | if test "$wxUSE_IFF" = yes; then | |
10661 | echo "$as_me:$LINENO: result: yes" >&5 | |
10662 | echo "${ECHO_T}yes" >&6 | |
10663 | else | |
10664 | echo "$as_me:$LINENO: result: no" >&5 | |
10665 | echo "${ECHO_T}no" >&6 | |
10666 | fi | |
10667 | ||
10668 | ||
10669 | enablestring= | |
10670 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10671 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10672 | no_cache=0 | |
10673 | # Check whether --enable-pnm or --disable-pnm was given. | |
10674 | if test "${enable_pnm+set}" = set; then | |
10675 | enableval="$enable_pnm" | |
10676 | ||
10677 | if test "$enableval" = yes; then | |
10678 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10679 | else | |
10680 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10681 | fi | |
10682 | ||
10683 | else | |
10684 | ||
10685 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10686 | if test "x$LINE" != x ; then | |
10687 | eval "DEFAULT_$LINE" | |
10688 | else | |
10689 | no_cache=1 | |
10690 | fi | |
10691 | ||
10692 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10693 | ||
10694 | fi; | |
10695 | ||
10696 | eval "$ac_cv_use_pnm" | |
10697 | if test "$no_cache" != 1; then | |
10698 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10699 | fi | |
10700 | ||
10701 | if test "$wxUSE_PNM" = yes; then | |
10702 | echo "$as_me:$LINENO: result: yes" >&5 | |
10703 | echo "${ECHO_T}yes" >&6 | |
10704 | else | |
10705 | echo "$as_me:$LINENO: result: no" >&5 | |
10706 | echo "${ECHO_T}no" >&6 | |
10707 | fi | |
10708 | ||
10709 | ||
10710 | enablestring= | |
10711 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10712 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10713 | no_cache=0 | |
10714 | # Check whether --enable-xpm or --disable-xpm was given. | |
10715 | if test "${enable_xpm+set}" = set; then | |
10716 | enableval="$enable_xpm" | |
10717 | ||
10718 | if test "$enableval" = yes; then | |
10719 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10720 | else | |
10721 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10722 | fi | |
10723 | ||
10724 | else | |
10725 | ||
10726 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10727 | if test "x$LINE" != x ; then | |
10728 | eval "DEFAULT_$LINE" | |
10729 | else | |
10730 | no_cache=1 | |
10731 | fi | |
10732 | ||
10733 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10734 | ||
10735 | fi; | |
10736 | ||
10737 | eval "$ac_cv_use_xpm" | |
10738 | if test "$no_cache" != 1; then | |
10739 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10740 | fi | |
10741 | ||
10742 | if test "$wxUSE_XPM" = yes; then | |
10743 | echo "$as_me:$LINENO: result: yes" >&5 | |
10744 | echo "${ECHO_T}yes" >&6 | |
10745 | else | |
10746 | echo "$as_me:$LINENO: result: no" >&5 | |
10747 | echo "${ECHO_T}no" >&6 | |
10748 | fi | |
10749 | ||
10750 | ||
10751 | enablestring= | |
10752 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10753 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10754 | no_cache=0 | |
10755 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10756 | if test "${enable_ico_cur+set}" = set; then | |
10757 | enableval="$enable_ico_cur" | |
10758 | ||
10759 | if test "$enableval" = yes; then | |
10760 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10761 | else | |
10762 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10763 | fi | |
10764 | ||
10765 | else | |
10766 | ||
10767 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10768 | if test "x$LINE" != x ; then | |
10769 | eval "DEFAULT_$LINE" | |
10770 | else | |
10771 | no_cache=1 | |
10772 | fi | |
10773 | ||
10774 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10775 | ||
10776 | fi; | |
10777 | ||
10778 | eval "$ac_cv_use_ico_cur" | |
10779 | if test "$no_cache" != 1; then | |
10780 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10781 | fi | |
10782 | ||
10783 | if test "$wxUSE_ICO_CUR" = yes; then | |
10784 | echo "$as_me:$LINENO: result: yes" >&5 | |
10785 | echo "${ECHO_T}yes" >&6 | |
10786 | else | |
10787 | echo "$as_me:$LINENO: result: no" >&5 | |
10788 | echo "${ECHO_T}no" >&6 | |
10789 | fi | |
10790 | ||
10791 | ||
10792 | fi | |
10793 | ||
10794 | ||
10795 | ||
ceec2216 RL |
10796 | # Check whether --with-flavour or --without-flavour was given. |
10797 | if test "${with_flavour+set}" = set; then | |
10798 | withval="$with_flavour" | |
10799 | WX_FLAVOUR="$withval" | |
10800 | fi; | |
10801 | ||
10802 | ||
10803 | ||
a848cd7e SC |
10804 | enablestring= |
10805 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10806 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10807 | no_cache=0 | |
10808 | # Check whether --enable-official_build or --disable-official_build was given. | |
10809 | if test "${enable_official_build+set}" = set; then | |
10810 | enableval="$enable_official_build" | |
10811 | ||
10812 | if test "$enableval" = yes; then | |
10813 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10814 | else | |
10815 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10816 | fi | |
10817 | ||
10818 | else | |
10819 | ||
10820 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10821 | if test "x$LINE" != x ; then | |
10822 | eval "DEFAULT_$LINE" | |
10823 | else | |
10824 | no_cache=1 | |
10825 | fi | |
10826 | ||
10827 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10828 | ||
10829 | fi; | |
10830 | ||
10831 | eval "$ac_cv_use_official_build" | |
10832 | if test "$no_cache" != 1; then | |
10833 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10834 | fi | |
10835 | ||
10836 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10837 | echo "$as_me:$LINENO: result: yes" >&5 | |
10838 | echo "${ECHO_T}yes" >&6 | |
10839 | else | |
10840 | echo "$as_me:$LINENO: result: no" >&5 | |
10841 | echo "${ECHO_T}no" >&6 | |
10842 | fi | |
10843 | ||
10844 | # Check whether --enable-vendor or --disable-vendor was given. | |
10845 | if test "${enable_vendor+set}" = set; then | |
10846 | enableval="$enable_vendor" | |
10847 | VENDOR="$enableval" | |
10848 | fi; | |
10849 | if test "x$VENDOR" = "x"; then | |
10850 | VENDOR="custom" | |
10851 | fi | |
10852 | ||
a848cd7e SC |
10853 | |
10854 | ||
10855 | ||
10856 | echo "saving argument cache $wx_arg_cache_file" | |
10857 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10858 | ||
10859 | ||
10860 | ||
10861 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10862 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10863 | ||
10864 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10865 | if test "$wxUSE_WINE" = "yes"; then | |
10866 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10867 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10868 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10869 | wxUSE_SHARED=no | |
10870 | fi | |
10871 | ||
f597b41c | 10872 | |
a848cd7e SC |
10873 | if test "$wxUSE_GUI" = "yes"; then |
10874 | ||
10875 | if test "$USE_BEOS" = 1; then | |
10876 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10877 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10878 | { (exit 1); exit 1; }; } | |
10879 | fi | |
10880 | ||
10881 | if test "$TOOLKIT_GIVEN" = 1; then | |
10882 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10883 | var=wxUSE_$toolkit | |
10884 | eval "value=\$${var}" | |
f34ca037 MW |
10885 | if test "x$value" = "xno"; then |
10886 | eval "$var=0" | |
10887 | elif test "x$value" != "x"; then | |
10888 | eval "$var=1" | |
10889 | fi | |
10890 | ||
10891 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10892 | eval "wx${toolkit}_VERSION=$value" | |
10893 | fi | |
a848cd7e SC |
10894 | done |
10895 | else | |
10896 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10897 | if test "$has_toolkit_in_cache" != 1; then | |
10898 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10899 | else | |
10900 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10901 | |
10902 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10903 | if test "x$version" != "x"; then | |
10904 | eval "wx${toolkit}_VERSION=$version" | |
10905 | fi | |
a848cd7e SC |
10906 | fi |
10907 | eval "wxUSE_$toolkit=\$${var}" | |
10908 | done | |
10909 | fi | |
10910 | ||
10911 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10912 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10913 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10914 | ||
10915 | case "${host}" in | |
10916 | *-pc-os2_emx | *-pc-os2-emx ) | |
10917 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10918 | esac | |
10919 | ||
10920 | case "$NUM_TOOLKITS" in | |
10921 | 1) | |
10922 | ;; | |
10923 | 0) | |
10924 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10925 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10926 | { (exit 1); exit 1; }; } | |
10927 | ;; | |
10928 | *) | |
10929 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10930 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10931 | { (exit 1); exit 1; }; } | |
10932 | esac | |
10933 | ||
f34ca037 MW |
10934 | # to be removed when --disable-gtk2 isn't needed |
10935 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10936 | wxGTK_VERSION=2 | |
10937 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10938 | wxGTK_VERSION=1 | |
10939 | fi | |
10940 | ||
a848cd7e SC |
10941 | for toolkit in `echo $ALL_TOOLKITS`; do |
10942 | var=wxUSE_$toolkit | |
10943 | eval "value=\$${var}" | |
10944 | if test "x$value" != x; then | |
10945 | cache_var=CACHE_$toolkit | |
10946 | eval "cache=\$${cache_var}" | |
10947 | if test "$cache" = 1; then | |
10948 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10949 | eval "version=\$wx${toolkit}_VERSION" |
10950 | if test "x$version" != "x"; then | |
10951 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10952 | fi | |
a848cd7e SC |
10953 | fi |
10954 | if test "$value" = 1; then | |
10955 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10956 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10957 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10958 | fi | |
10959 | fi | |
10960 | done | |
10961 | else | |
10962 | if test "x$host_alias" != "x"; then | |
10963 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10964 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10965 | else | |
10966 | echo "$as_me:$LINENO: result: base only" >&5 | |
10967 | echo "${ECHO_T}base only" >&6 | |
10968 | fi | |
10969 | fi | |
10970 | ||
10971 | wants_win32=0 | |
10972 | doesnt_want_win32=0 | |
10973 | case "${host}" in | |
10974 | *-*-cygwin*) | |
10975 | if test "$wxUSE_MSW" = 1 ; then | |
10976 | wants_win32=1 | |
7275146d | 10977 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
10978 | else |
10979 | doesnt_want_win32=1 | |
10980 | fi | |
10981 | ;; | |
10982 | *-*-mingw*) | |
10983 | wants_win32=1 | |
10984 | ;; | |
10985 | esac | |
10986 | ||
10987 | if test "$wxUSE_WINE" = "yes"; then | |
10988 | wants_win32=1 | |
10989 | CC=winegcc | |
10990 | CXX=wineg++ | |
a848cd7e SC |
10991 | LDFLAGS_GUI="-mwindows" |
10992 | fi | |
10993 | ||
10994 | if test "$wants_win32" = 1 ; then | |
10995 | USE_UNIX=0 | |
10996 | USE_WIN32=1 | |
10997 | cat >>confdefs.h <<\_ACEOF | |
10998 | #define __WIN32__ 1 | |
10999 | _ACEOF | |
11000 | ||
11001 | cat >>confdefs.h <<\_ACEOF | |
11002 | #define __WIN95__ 1 | |
11003 | _ACEOF | |
11004 | ||
11005 | cat >>confdefs.h <<\_ACEOF | |
11006 | #define __WINDOWS__ 1 | |
11007 | _ACEOF | |
11008 | ||
11009 | cat >>confdefs.h <<\_ACEOF | |
11010 | #define __GNUWIN32__ 1 | |
11011 | _ACEOF | |
11012 | ||
11013 | cat >>confdefs.h <<\_ACEOF | |
11014 | #define STRICT 1 | |
11015 | _ACEOF | |
11016 | ||
11017 | cat >>confdefs.h <<\_ACEOF | |
11018 | #define WINVER 0x0400 | |
11019 | _ACEOF | |
11020 | ||
11021 | fi | |
11022 | if test "$doesnt_want_win32" = 1 ; then | |
11023 | USE_UNIX=1 | |
11024 | USE_WIN32=0 | |
11025 | fi | |
11026 | ||
11027 | if test "$USE_UNIX" = 1 ; then | |
11028 | wxUSE_UNIX=yes | |
11029 | cat >>confdefs.h <<\_ACEOF | |
11030 | #define __UNIX__ 1 | |
11031 | _ACEOF | |
11032 | ||
11033 | fi | |
11034 | ||
11035 | ||
11036 | cat >confcache <<\_ACEOF | |
11037 | # This file is a shell script that caches the results of configure | |
11038 | # tests run on this system so they can be shared between configure | |
11039 | # scripts and configure runs, see configure's option --config-cache. | |
11040 | # It is not useful on other systems. If it contains results you don't | |
11041 | # want to keep, you may remove or edit it. | |
11042 | # | |
11043 | # config.status only pays attention to the cache file if you give it | |
11044 | # the --recheck option to rerun configure. | |
11045 | # | |
11046 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11047 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11048 | # following values. | |
11049 | ||
11050 | _ACEOF | |
11051 | ||
11052 | # The following way of writing the cache mishandles newlines in values, | |
11053 | # but we know of no workaround that is simple, portable, and efficient. | |
11054 | # So, don't put newlines in cache variables' values. | |
11055 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11056 | # and sets the high bit in the cache file unless we assign to the vars. | |
11057 | { | |
11058 | (set) 2>&1 | | |
11059 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11060 | *ac_space=\ *) | |
11061 | # `set' does not quote correctly, so add quotes (double-quote | |
11062 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11063 | sed -n \ | |
ac1cb8d3 VS |
11064 | "s/'/'\\\\''/g; |
11065 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
11066 | ;; |
11067 | *) | |
11068 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11069 | sed -n \ | |
ac1cb8d3 | 11070 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
11071 | ;; |
11072 | esac; | |
11073 | } | | |
11074 | sed ' | |
11075 | t clear | |
11076 | : clear | |
11077 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11078 | t end | |
11079 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11080 | : end' >>confcache | |
11081 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11082 | if test -w $cache_file; then | |
11083 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11084 | cat confcache >$cache_file | |
11085 | else | |
11086 | echo "not updating unwritable cache $cache_file" | |
11087 | fi | |
11088 | fi | |
11089 | rm -f confcache | |
11090 | ||
a848cd7e | 11091 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
11092 | |
11093 | ||
3006edc0 | 11094 | |
6dcfc289 | 11095 | ac_ext=c |
a848cd7e SC |
11096 | ac_cpp='$CPP $CPPFLAGS' |
11097 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11098 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11099 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11100 | if test -n "$ac_tool_prefix"; then | |
11101 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
11102 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
11103 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11105 | if test "${ac_cv_prog_CC+set}" = set; then | |
11106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11107 | else | |
11108 | if test -n "$CC"; then | |
11109 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11110 | else | |
11111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11112 | for as_dir in $PATH | |
11113 | do | |
11114 | IFS=$as_save_IFS | |
11115 | test -z "$as_dir" && as_dir=. | |
11116 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11117 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11118 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
11119 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11120 | break 2 | |
11121 | fi | |
11122 | done | |
11123 | done | |
11124 | ||
11125 | fi | |
11126 | fi | |
11127 | CC=$ac_cv_prog_CC | |
11128 | if test -n "$CC"; then | |
11129 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11130 | echo "${ECHO_T}$CC" >&6 | |
11131 | else | |
11132 | echo "$as_me:$LINENO: result: no" >&5 | |
11133 | echo "${ECHO_T}no" >&6 | |
11134 | fi | |
11135 | ||
11136 | fi | |
11137 | if test -z "$ac_cv_prog_CC"; then | |
11138 | ac_ct_CC=$CC | |
11139 | # Extract the first word of "gcc", so it can be a program name with args. | |
11140 | set dummy gcc; ac_word=$2 | |
11141 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11143 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11145 | else | |
11146 | if test -n "$ac_ct_CC"; then | |
11147 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11148 | else | |
11149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11150 | for as_dir in $PATH | |
11151 | do | |
11152 | IFS=$as_save_IFS | |
11153 | test -z "$as_dir" && as_dir=. | |
11154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11155 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11156 | ac_cv_prog_ac_ct_CC="gcc" | |
11157 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11158 | break 2 | |
11159 | fi | |
11160 | done | |
11161 | done | |
11162 | ||
11163 | fi | |
11164 | fi | |
11165 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11166 | if test -n "$ac_ct_CC"; then | |
11167 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11168 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11169 | else | |
11170 | echo "$as_me:$LINENO: result: no" >&5 | |
11171 | echo "${ECHO_T}no" >&6 | |
11172 | fi | |
11173 | ||
11174 | CC=$ac_ct_CC | |
11175 | else | |
11176 | CC="$ac_cv_prog_CC" | |
11177 | fi | |
11178 | ||
11179 | if test -z "$CC"; then | |
11180 | if test -n "$ac_tool_prefix"; then | |
11181 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
11182 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
11183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11185 | if test "${ac_cv_prog_CC+set}" = set; then | |
11186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11187 | else | |
11188 | if test -n "$CC"; then | |
11189 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11190 | else | |
11191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11192 | for as_dir in $PATH | |
11193 | do | |
11194 | IFS=$as_save_IFS | |
11195 | test -z "$as_dir" && as_dir=. | |
11196 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11197 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11198 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
11199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11200 | break 2 | |
11201 | fi | |
11202 | done | |
11203 | done | |
11204 | ||
11205 | fi | |
11206 | fi | |
11207 | CC=$ac_cv_prog_CC | |
11208 | if test -n "$CC"; then | |
11209 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11210 | echo "${ECHO_T}$CC" >&6 | |
11211 | else | |
11212 | echo "$as_me:$LINENO: result: no" >&5 | |
11213 | echo "${ECHO_T}no" >&6 | |
11214 | fi | |
11215 | ||
11216 | fi | |
11217 | if test -z "$ac_cv_prog_CC"; then | |
11218 | ac_ct_CC=$CC | |
11219 | # Extract the first word of "cc", so it can be a program name with args. | |
11220 | set dummy cc; ac_word=$2 | |
11221 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11222 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11223 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11225 | else | |
11226 | if test -n "$ac_ct_CC"; then | |
11227 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11228 | else | |
11229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11230 | for as_dir in $PATH | |
11231 | do | |
11232 | IFS=$as_save_IFS | |
11233 | test -z "$as_dir" && as_dir=. | |
11234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11235 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11236 | ac_cv_prog_ac_ct_CC="cc" | |
11237 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11238 | break 2 | |
11239 | fi | |
11240 | done | |
11241 | done | |
11242 | ||
11243 | fi | |
11244 | fi | |
11245 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11246 | if test -n "$ac_ct_CC"; then | |
11247 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11248 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11249 | else | |
11250 | echo "$as_me:$LINENO: result: no" >&5 | |
11251 | echo "${ECHO_T}no" >&6 | |
11252 | fi | |
11253 | ||
11254 | CC=$ac_ct_CC | |
11255 | else | |
11256 | CC="$ac_cv_prog_CC" | |
11257 | fi | |
11258 | ||
11259 | fi | |
11260 | if test -z "$CC"; then | |
11261 | # Extract the first word of "cc", so it can be a program name with args. | |
11262 | set dummy cc; ac_word=$2 | |
11263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11265 | if test "${ac_cv_prog_CC+set}" = set; then | |
11266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11267 | else | |
11268 | if test -n "$CC"; then | |
11269 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11270 | else | |
11271 | ac_prog_rejected=no | |
11272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11273 | for as_dir in $PATH | |
11274 | do | |
11275 | IFS=$as_save_IFS | |
11276 | test -z "$as_dir" && as_dir=. | |
11277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11278 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11279 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11280 | ac_prog_rejected=yes | |
11281 | continue | |
11282 | fi | |
11283 | ac_cv_prog_CC="cc" | |
11284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11285 | break 2 | |
11286 | fi | |
11287 | done | |
11288 | done | |
11289 | ||
11290 | if test $ac_prog_rejected = yes; then | |
11291 | # We found a bogon in the path, so make sure we never use it. | |
11292 | set dummy $ac_cv_prog_CC | |
11293 | shift | |
11294 | if test $# != 0; then | |
11295 | # We chose a different compiler from the bogus one. | |
11296 | # However, it has the same basename, so the bogon will be chosen | |
11297 | # first if we set CC to just the basename; use the full file name. | |
11298 | shift | |
11299 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11300 | fi | |
11301 | fi | |
11302 | fi | |
11303 | fi | |
11304 | CC=$ac_cv_prog_CC | |
11305 | if test -n "$CC"; then | |
11306 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11307 | echo "${ECHO_T}$CC" >&6 | |
11308 | else | |
11309 | echo "$as_me:$LINENO: result: no" >&5 | |
11310 | echo "${ECHO_T}no" >&6 | |
11311 | fi | |
11312 | ||
11313 | fi | |
11314 | if test -z "$CC"; then | |
11315 | if test -n "$ac_tool_prefix"; then | |
11316 | for ac_prog in cl | |
11317 | do | |
11318 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11319 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11320 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11322 | if test "${ac_cv_prog_CC+set}" = set; then | |
11323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11324 | else | |
11325 | if test -n "$CC"; then | |
11326 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11327 | else | |
11328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11329 | for as_dir in $PATH | |
11330 | do | |
11331 | IFS=$as_save_IFS | |
11332 | test -z "$as_dir" && as_dir=. | |
11333 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11334 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11335 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11336 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11337 | break 2 | |
11338 | fi | |
11339 | done | |
11340 | done | |
11341 | ||
11342 | fi | |
11343 | fi | |
11344 | CC=$ac_cv_prog_CC | |
11345 | if test -n "$CC"; then | |
11346 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11347 | echo "${ECHO_T}$CC" >&6 | |
11348 | else | |
11349 | echo "$as_me:$LINENO: result: no" >&5 | |
11350 | echo "${ECHO_T}no" >&6 | |
11351 | fi | |
11352 | ||
11353 | test -n "$CC" && break | |
11354 | done | |
11355 | fi | |
11356 | if test -z "$CC"; then | |
11357 | ac_ct_CC=$CC | |
11358 | for ac_prog in cl | |
11359 | do | |
11360 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11361 | set dummy $ac_prog; ac_word=$2 | |
11362 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11364 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11366 | else | |
11367 | if test -n "$ac_ct_CC"; then | |
11368 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11369 | else | |
11370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11371 | for as_dir in $PATH | |
11372 | do | |
11373 | IFS=$as_save_IFS | |
11374 | test -z "$as_dir" && as_dir=. | |
11375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11376 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11377 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11379 | break 2 | |
11380 | fi | |
11381 | done | |
11382 | done | |
11383 | ||
11384 | fi | |
11385 | fi | |
11386 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11387 | if test -n "$ac_ct_CC"; then | |
11388 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11389 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11390 | else | |
11391 | echo "$as_me:$LINENO: result: no" >&5 | |
11392 | echo "${ECHO_T}no" >&6 | |
11393 | fi | |
11394 | ||
11395 | test -n "$ac_ct_CC" && break | |
11396 | done | |
11397 | ||
11398 | CC=$ac_ct_CC | |
11399 | fi | |
11400 | ||
11401 | fi | |
11402 | ||
11403 | ||
11404 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11405 | See \`config.log' for more details." >&5 | |
11406 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11407 | See \`config.log' for more details." >&2;} | |
11408 | { (exit 1); exit 1; }; } | |
11409 | ||
11410 | # Provide some information about the compiler. | |
11411 | echo "$as_me:$LINENO:" \ | |
11412 | "checking for C compiler version" >&5 | |
11413 | ac_compiler=`set X $ac_compile; echo $2` | |
11414 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11415 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11416 | ac_status=$? | |
11417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11418 | (exit $ac_status); } | |
11419 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11420 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11421 | ac_status=$? | |
11422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11423 | (exit $ac_status); } | |
11424 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11425 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11426 | ac_status=$? | |
11427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11428 | (exit $ac_status); } | |
11429 | ||
11430 | cat >conftest.$ac_ext <<_ACEOF | |
11431 | /* confdefs.h. */ | |
11432 | _ACEOF | |
11433 | cat confdefs.h >>conftest.$ac_ext | |
11434 | cat >>conftest.$ac_ext <<_ACEOF | |
11435 | /* end confdefs.h. */ | |
11436 | ||
11437 | int | |
11438 | main () | |
11439 | { | |
11440 | ||
11441 | ; | |
11442 | return 0; | |
11443 | } | |
11444 | _ACEOF | |
11445 | ac_clean_files_save=$ac_clean_files | |
11446 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11447 | # Try to create an executable without -o first, disregard a.out. | |
11448 | # It will help us diagnose broken compilers, and finding out an intuition | |
11449 | # of exeext. | |
ac1cb8d3 VS |
11450 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11451 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11452 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11453 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11454 | (eval $ac_link_default) 2>&5 | |
11455 | ac_status=$? | |
11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11457 | (exit $ac_status); }; then | |
11458 | # Find the output, starting from the most likely. This scheme is | |
11459 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11460 | # resort. | |
11461 | ||
11462 | # Be careful to initialize this variable, since it used to be cached. | |
11463 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11464 | ac_cv_exeext= | |
11465 | # b.out is created by i960 compilers. | |
11466 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11467 | do | |
11468 | test -f "$ac_file" || continue | |
11469 | case $ac_file in | |
11470 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11471 | ;; |
a848cd7e | 11472 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11473 | # This is the source file. |
11474 | ;; | |
a848cd7e | 11475 | [ab].out ) |
ac1cb8d3 VS |
11476 | # We found the default executable, but exeext='' is most |
11477 | # certainly right. | |
11478 | break;; | |
a848cd7e | 11479 | *.* ) |
ac1cb8d3 VS |
11480 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11481 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11482 | # but it would be cool to find out if it's true. Does anybody | |
11483 | # maintain Libtool? --akim. | |
11484 | export ac_cv_exeext | |
11485 | break;; | |
a848cd7e | 11486 | * ) |
ac1cb8d3 | 11487 | break;; |
a848cd7e SC |
11488 | esac |
11489 | done | |
11490 | else | |
11491 | echo "$as_me: failed program was:" >&5 | |
11492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11493 | ||
11494 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11495 | See \`config.log' for more details." >&5 | |
11496 | echo "$as_me: error: C compiler cannot create executables | |
11497 | See \`config.log' for more details." >&2;} | |
11498 | { (exit 77); exit 77; }; } | |
11499 | fi | |
11500 | ||
11501 | ac_exeext=$ac_cv_exeext | |
11502 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11503 | echo "${ECHO_T}$ac_file" >&6 | |
11504 | ||
11505 | # Check the compiler produces executables we can run. If not, either | |
11506 | # the compiler is broken, or we cross compile. | |
11507 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11508 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11509 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11510 | # If not cross compiling, check that we can run a simple program. | |
11511 | if test "$cross_compiling" != yes; then | |
11512 | if { ac_try='./$ac_file' | |
11513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11514 | (eval $ac_try) 2>&5 | |
11515 | ac_status=$? | |
11516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11517 | (exit $ac_status); }; }; then | |
11518 | cross_compiling=no | |
11519 | else | |
11520 | if test "$cross_compiling" = maybe; then | |
11521 | cross_compiling=yes | |
11522 | else | |
11523 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11524 | If you meant to cross compile, use \`--host'. | |
11525 | See \`config.log' for more details." >&5 | |
11526 | echo "$as_me: error: cannot run C compiled programs. | |
11527 | If you meant to cross compile, use \`--host'. | |
11528 | See \`config.log' for more details." >&2;} | |
11529 | { (exit 1); exit 1; }; } | |
11530 | fi | |
11531 | fi | |
11532 | fi | |
11533 | echo "$as_me:$LINENO: result: yes" >&5 | |
11534 | echo "${ECHO_T}yes" >&6 | |
11535 | ||
11536 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11537 | ac_clean_files=$ac_clean_files_save | |
11538 | # Check the compiler produces executables we can run. If not, either | |
11539 | # the compiler is broken, or we cross compile. | |
11540 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11541 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11542 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11543 | echo "${ECHO_T}$cross_compiling" >&6 | |
11544 | ||
11545 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11546 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11548 | (eval $ac_link) 2>&5 | |
11549 | ac_status=$? | |
11550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11551 | (exit $ac_status); }; then | |
11552 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11553 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11554 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11555 | # `rm'. | |
11556 | for ac_file in conftest.exe conftest conftest.*; do | |
11557 | test -f "$ac_file" || continue | |
11558 | case $ac_file in | |
11559 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11560 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11561 | export ac_cv_exeext |
11562 | break;; | |
a848cd7e SC |
11563 | * ) break;; |
11564 | esac | |
11565 | done | |
11566 | else | |
11567 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11568 | See \`config.log' for more details." >&5 | |
11569 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11570 | See \`config.log' for more details." >&2;} | |
11571 | { (exit 1); exit 1; }; } | |
11572 | fi | |
11573 | ||
11574 | rm -f conftest$ac_cv_exeext | |
11575 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11576 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11577 | ||
11578 | rm -f conftest.$ac_ext | |
11579 | EXEEXT=$ac_cv_exeext | |
11580 | ac_exeext=$EXEEXT | |
11581 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11582 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11583 | if test "${ac_cv_objext+set}" = set; then | |
11584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11585 | else | |
11586 | cat >conftest.$ac_ext <<_ACEOF | |
11587 | /* confdefs.h. */ | |
11588 | _ACEOF | |
11589 | cat confdefs.h >>conftest.$ac_ext | |
11590 | cat >>conftest.$ac_ext <<_ACEOF | |
11591 | /* end confdefs.h. */ | |
11592 | ||
11593 | int | |
11594 | main () | |
11595 | { | |
11596 | ||
11597 | ; | |
11598 | return 0; | |
11599 | } | |
11600 | _ACEOF | |
11601 | rm -f conftest.o conftest.obj | |
11602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11603 | (eval $ac_compile) 2>&5 | |
11604 | ac_status=$? | |
11605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11606 | (exit $ac_status); }; then | |
11607 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11608 | case $ac_file in | |
11609 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11610 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11611 | break;; | |
11612 | esac | |
11613 | done | |
11614 | else | |
11615 | echo "$as_me: failed program was:" >&5 | |
11616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11617 | ||
11618 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11619 | See \`config.log' for more details." >&5 | |
11620 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11621 | See \`config.log' for more details." >&2;} | |
11622 | { (exit 1); exit 1; }; } | |
11623 | fi | |
11624 | ||
11625 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11626 | fi | |
11627 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11628 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11629 | OBJEXT=$ac_cv_objext | |
11630 | ac_objext=$OBJEXT | |
11631 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11632 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11633 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11635 | else | |
11636 | cat >conftest.$ac_ext <<_ACEOF | |
11637 | /* confdefs.h. */ | |
11638 | _ACEOF | |
11639 | cat confdefs.h >>conftest.$ac_ext | |
11640 | cat >>conftest.$ac_ext <<_ACEOF | |
11641 | /* end confdefs.h. */ | |
11642 | ||
11643 | int | |
11644 | main () | |
11645 | { | |
11646 | #ifndef __GNUC__ | |
11647 | choke me | |
11648 | #endif | |
11649 | ||
11650 | ; | |
11651 | return 0; | |
11652 | } | |
11653 | _ACEOF | |
11654 | rm -f conftest.$ac_objext | |
11655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11656 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11657 | ac_status=$? |
ac1cb8d3 VS |
11658 | grep -v '^ *+' conftest.er1 >conftest.err |
11659 | rm -f conftest.er1 | |
11660 | cat conftest.err >&5 | |
a848cd7e SC |
11661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11662 | (exit $ac_status); } && | |
f10e38c4 | 11663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11665 | (eval $ac_try) 2>&5 | |
11666 | ac_status=$? | |
11667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11668 | (exit $ac_status); }; } && | |
11669 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11671 | (eval $ac_try) 2>&5 | |
11672 | ac_status=$? | |
11673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11674 | (exit $ac_status); }; }; then | |
11675 | ac_compiler_gnu=yes | |
11676 | else | |
11677 | echo "$as_me: failed program was:" >&5 | |
11678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11679 | ||
11680 | ac_compiler_gnu=no | |
11681 | fi | |
ac1cb8d3 | 11682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11683 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11684 | ||
11685 | fi | |
11686 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11687 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11688 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11689 | ac_test_CFLAGS=${CFLAGS+set} | |
11690 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 11691 | CFLAGS="-g" |
a848cd7e SC |
11692 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11693 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11694 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11696 | else | |
11697 | cat >conftest.$ac_ext <<_ACEOF | |
11698 | /* confdefs.h. */ | |
11699 | _ACEOF | |
11700 | cat confdefs.h >>conftest.$ac_ext | |
11701 | cat >>conftest.$ac_ext <<_ACEOF | |
11702 | /* end confdefs.h. */ | |
11703 | ||
11704 | int | |
11705 | main () | |
11706 | { | |
11707 | ||
11708 | ; | |
11709 | return 0; | |
11710 | } | |
11711 | _ACEOF | |
11712 | rm -f conftest.$ac_objext | |
11713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11714 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11715 | ac_status=$? |
ac1cb8d3 VS |
11716 | grep -v '^ *+' conftest.er1 >conftest.err |
11717 | rm -f conftest.er1 | |
11718 | cat conftest.err >&5 | |
a848cd7e SC |
11719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11720 | (exit $ac_status); } && | |
f10e38c4 | 11721 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11723 | (eval $ac_try) 2>&5 | |
11724 | ac_status=$? | |
11725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11726 | (exit $ac_status); }; } && | |
11727 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11729 | (eval $ac_try) 2>&5 | |
11730 | ac_status=$? | |
11731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11732 | (exit $ac_status); }; }; then | |
11733 | ac_cv_prog_cc_g=yes | |
11734 | else | |
11735 | echo "$as_me: failed program was:" >&5 | |
11736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11737 | ||
11738 | ac_cv_prog_cc_g=no | |
11739 | fi | |
ac1cb8d3 | 11740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11741 | fi |
11742 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11743 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11744 | if test "$ac_test_CFLAGS" = set; then | |
11745 | CFLAGS=$ac_save_CFLAGS | |
11746 | elif test $ac_cv_prog_cc_g = yes; then | |
11747 | if test "$GCC" = yes; then | |
11748 | CFLAGS="-g -O2" | |
11749 | else | |
11750 | CFLAGS="-g" | |
11751 | fi | |
11752 | else | |
11753 | if test "$GCC" = yes; then | |
11754 | CFLAGS="-O2" | |
11755 | else | |
11756 | CFLAGS= | |
11757 | fi | |
11758 | fi | |
11759 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11760 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11761 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11763 | else | |
11764 | ac_cv_prog_cc_stdc=no | |
11765 | ac_save_CC=$CC | |
11766 | cat >conftest.$ac_ext <<_ACEOF | |
11767 | /* confdefs.h. */ | |
11768 | _ACEOF | |
11769 | cat confdefs.h >>conftest.$ac_ext | |
11770 | cat >>conftest.$ac_ext <<_ACEOF | |
11771 | /* end confdefs.h. */ | |
11772 | #include <stdarg.h> | |
11773 | #include <stdio.h> | |
11774 | #include <sys/types.h> | |
11775 | #include <sys/stat.h> | |
11776 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11777 | struct buf { int x; }; | |
11778 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11779 | static char *e (p, i) | |
11780 | char **p; | |
11781 | int i; | |
11782 | { | |
11783 | return p[i]; | |
11784 | } | |
11785 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11786 | { | |
11787 | char *s; | |
11788 | va_list v; | |
11789 | va_start (v,p); | |
11790 | s = g (p, va_arg (v,int)); | |
11791 | va_end (v); | |
11792 | return s; | |
11793 | } | |
ac1cb8d3 VS |
11794 | |
11795 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11796 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11797 | These don't provoke an error unfortunately, instead are silently treated | |
11798 | as 'x'. The following induces an error, until -std1 is added to get | |
11799 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11800 | array size at least. It's necessary to write '\x00'==0 to get something | |
11801 | that's true only with -std1. */ | |
11802 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11803 | ||
a848cd7e SC |
11804 | int test (int i, double x); |
11805 | struct s1 {int (*f) (int a);}; | |
11806 | struct s2 {int (*f) (double a);}; | |
11807 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11808 | int argc; | |
11809 | char **argv; | |
11810 | int | |
11811 | main () | |
11812 | { | |
11813 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11814 | ; | |
11815 | return 0; | |
11816 | } | |
11817 | _ACEOF | |
11818 | # Don't try gcc -ansi; that turns off useful extensions and | |
11819 | # breaks some systems' header files. | |
11820 | # AIX -qlanglvl=ansi | |
11821 | # Ultrix and OSF/1 -std1 | |
11822 | # HP-UX 10.20 and later -Ae | |
11823 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11824 | # SVR4 -Xc -D__EXTENSIONS__ | |
11825 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11826 | do | |
11827 | CC="$ac_save_CC $ac_arg" | |
11828 | rm -f conftest.$ac_objext | |
11829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11830 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11831 | ac_status=$? |
ac1cb8d3 VS |
11832 | grep -v '^ *+' conftest.er1 >conftest.err |
11833 | rm -f conftest.er1 | |
11834 | cat conftest.err >&5 | |
a848cd7e SC |
11835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11836 | (exit $ac_status); } && | |
f10e38c4 | 11837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11839 | (eval $ac_try) 2>&5 | |
11840 | ac_status=$? | |
11841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11842 | (exit $ac_status); }; } && | |
11843 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11845 | (eval $ac_try) 2>&5 | |
11846 | ac_status=$? | |
11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11848 | (exit $ac_status); }; }; then | |
11849 | ac_cv_prog_cc_stdc=$ac_arg | |
11850 | break | |
11851 | else | |
11852 | echo "$as_me: failed program was:" >&5 | |
11853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11854 | ||
11855 | fi | |
ac1cb8d3 | 11856 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11857 | done |
11858 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11859 | CC=$ac_save_CC | |
11860 | ||
11861 | fi | |
11862 | ||
11863 | case "x$ac_cv_prog_cc_stdc" in | |
11864 | x|xno) | |
11865 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11866 | echo "${ECHO_T}none needed" >&6 ;; | |
11867 | *) | |
11868 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11869 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11870 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11871 | esac | |
11872 | ||
11873 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11874 | # in C++ we need to declare it. In case someone uses the same compiler | |
11875 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11876 | # the declaration of exit, since it's the most demanding environment. | |
11877 | cat >conftest.$ac_ext <<_ACEOF | |
11878 | #ifndef __cplusplus | |
11879 | choke me | |
11880 | #endif | |
11881 | _ACEOF | |
11882 | rm -f conftest.$ac_objext | |
11883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11884 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11885 | ac_status=$? |
ac1cb8d3 VS |
11886 | grep -v '^ *+' conftest.er1 >conftest.err |
11887 | rm -f conftest.er1 | |
11888 | cat conftest.err >&5 | |
a848cd7e SC |
11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11890 | (exit $ac_status); } && | |
f10e38c4 | 11891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11893 | (eval $ac_try) 2>&5 | |
11894 | ac_status=$? | |
11895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11896 | (exit $ac_status); }; } && | |
11897 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11899 | (eval $ac_try) 2>&5 | |
11900 | ac_status=$? | |
11901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11902 | (exit $ac_status); }; }; then | |
11903 | for ac_declaration in \ | |
ac1cb8d3 | 11904 | '' \ |
a848cd7e SC |
11905 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11906 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11907 | 'extern "C" void exit (int) throw ();' \ | |
11908 | 'extern "C" void exit (int);' \ | |
11909 | 'void exit (int);' | |
11910 | do | |
11911 | cat >conftest.$ac_ext <<_ACEOF | |
11912 | /* confdefs.h. */ | |
11913 | _ACEOF | |
11914 | cat confdefs.h >>conftest.$ac_ext | |
11915 | cat >>conftest.$ac_ext <<_ACEOF | |
11916 | /* end confdefs.h. */ | |
de59c161 | 11917 | $ac_declaration |
ac1cb8d3 | 11918 | #include <stdlib.h> |
a848cd7e SC |
11919 | int |
11920 | main () | |
11921 | { | |
11922 | exit (42); | |
11923 | ; | |
11924 | return 0; | |
11925 | } | |
11926 | _ACEOF | |
11927 | rm -f conftest.$ac_objext | |
11928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11929 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11930 | ac_status=$? |
ac1cb8d3 VS |
11931 | grep -v '^ *+' conftest.er1 >conftest.err |
11932 | rm -f conftest.er1 | |
11933 | cat conftest.err >&5 | |
a848cd7e SC |
11934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11935 | (exit $ac_status); } && | |
f10e38c4 | 11936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11938 | (eval $ac_try) 2>&5 | |
11939 | ac_status=$? | |
11940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11941 | (exit $ac_status); }; } && | |
11942 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11944 | (eval $ac_try) 2>&5 | |
11945 | ac_status=$? | |
11946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11947 | (exit $ac_status); }; }; then | |
11948 | : | |
11949 | else | |
11950 | echo "$as_me: failed program was:" >&5 | |
11951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11952 | ||
11953 | continue | |
11954 | fi | |
ac1cb8d3 | 11955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11956 | cat >conftest.$ac_ext <<_ACEOF |
11957 | /* confdefs.h. */ | |
11958 | _ACEOF | |
11959 | cat confdefs.h >>conftest.$ac_ext | |
11960 | cat >>conftest.$ac_ext <<_ACEOF | |
11961 | /* end confdefs.h. */ | |
11962 | $ac_declaration | |
11963 | int | |
11964 | main () | |
11965 | { | |
11966 | exit (42); | |
11967 | ; | |
11968 | return 0; | |
11969 | } | |
11970 | _ACEOF | |
11971 | rm -f conftest.$ac_objext | |
11972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11973 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11974 | ac_status=$? |
ac1cb8d3 VS |
11975 | grep -v '^ *+' conftest.er1 >conftest.err |
11976 | rm -f conftest.er1 | |
11977 | cat conftest.err >&5 | |
a848cd7e SC |
11978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11979 | (exit $ac_status); } && | |
f10e38c4 | 11980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11982 | (eval $ac_try) 2>&5 | |
11983 | ac_status=$? | |
11984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11985 | (exit $ac_status); }; } && | |
11986 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11988 | (eval $ac_try) 2>&5 | |
11989 | ac_status=$? | |
11990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11991 | (exit $ac_status); }; }; then | |
11992 | break | |
11993 | else | |
11994 | echo "$as_me: failed program was:" >&5 | |
11995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11996 | ||
11997 | fi | |
ac1cb8d3 | 11998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11999 | done |
12000 | rm -f conftest* | |
12001 | if test -n "$ac_declaration"; then | |
12002 | echo '#ifdef __cplusplus' >>confdefs.h | |
12003 | echo $ac_declaration >>confdefs.h | |
12004 | echo '#endif' >>confdefs.h | |
12005 | fi | |
12006 | ||
12007 | else | |
12008 | echo "$as_me: failed program was:" >&5 | |
12009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12010 | ||
12011 | fi | |
ac1cb8d3 | 12012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12013 | ac_ext=c |
12014 | ac_cpp='$CPP $CPPFLAGS' | |
12015 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12016 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12018 | ||
ab0ad5f1 VZ |
12019 | |
12020 | ||
12021 | ac_ext=c | |
12022 | ac_cpp='$CPP $CPPFLAGS' | |
12023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12026 | ||
12027 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
12028 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
12029 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
12030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12031 | else | |
12032 | cat >conftest.$ac_ext <<_ACEOF | |
12033 | /* confdefs.h. */ | |
12034 | _ACEOF | |
12035 | cat confdefs.h >>conftest.$ac_ext | |
12036 | cat >>conftest.$ac_ext <<_ACEOF | |
12037 | /* end confdefs.h. */ | |
12038 | ||
12039 | int | |
12040 | main () | |
12041 | { | |
12042 | ||
12043 | #ifndef __INTEL_COMPILER | |
12044 | choke me | |
12045 | #endif | |
12046 | ||
12047 | ; | |
12048 | return 0; | |
12049 | } | |
12050 | _ACEOF | |
12051 | rm -f conftest.$ac_objext | |
12052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12053 | (eval $ac_compile) 2>conftest.er1 | |
12054 | ac_status=$? | |
12055 | grep -v '^ *+' conftest.er1 >conftest.err | |
12056 | rm -f conftest.er1 | |
12057 | cat conftest.err >&5 | |
12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12059 | (exit $ac_status); } && | |
f10e38c4 | 12060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
12061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12062 | (eval $ac_try) 2>&5 | |
12063 | ac_status=$? | |
12064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12065 | (exit $ac_status); }; } && | |
12066 | { ac_try='test -s conftest.$ac_objext' | |
12067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12068 | (eval $ac_try) 2>&5 | |
12069 | ac_status=$? | |
12070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12071 | (exit $ac_status); }; }; then | |
12072 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
12073 | else | |
12074 | echo "$as_me: failed program was:" >&5 | |
12075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12076 | ||
12077 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
12078 | ||
12079 | fi | |
12080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12081 | ||
12082 | ||
12083 | fi | |
12084 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
12085 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
12086 | ac_ext=c | |
12087 | ac_cpp='$CPP $CPPFLAGS' | |
12088 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12089 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12090 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12091 | ||
12092 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
12093 | :; INTELCC=yes | |
12094 | else | |
12095 | :; | |
12096 | fi | |
12097 | ||
12098 | ||
12099 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
12100 | if test "xCC" = "xC"; then |
12101 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 12102 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 12103 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
12104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12105 | else | |
12106 | cat >conftest.$ac_ext <<_ACEOF | |
12107 | /* confdefs.h. */ | |
12108 | _ACEOF | |
12109 | cat confdefs.h >>conftest.$ac_ext | |
12110 | cat >>conftest.$ac_ext <<_ACEOF | |
12111 | /* end confdefs.h. */ | |
12112 | ||
12113 | int | |
12114 | main () | |
12115 | { | |
12116 | ||
12117 | ; | |
12118 | return 0; | |
12119 | } | |
12120 | _ACEOF | |
12121 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12123 | (eval $ac_compile) 2>&5 | |
12124 | ac_status=$? | |
12125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12126 | (exit $ac_status); }; then | |
12127 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12128 | case $ac_file in | |
12129 | conftest.$ac_ext.o) | |
0093c2fc | 12130 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
12131 | ;; |
12132 | *) | |
12133 | ;; | |
12134 | esac | |
12135 | done | |
12136 | else | |
12137 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12138 | See \`config.log' for more details." >&5 | |
12139 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12140 | See \`config.log' for more details." >&2;} | |
12141 | { (exit 1); exit 1; }; } | |
12142 | ||
12143 | fi | |
12144 | ||
12145 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12146 | ||
12147 | fi | |
0093c2fc VZ |
12148 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12149 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12150 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12151 | if test "c" = "c"; then |
0093c2fc | 12152 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12153 | fi |
12154 | if test "c" = "cxx"; then | |
0093c2fc | 12155 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12156 | fi |
12157 | fi | |
12158 | ||
0093c2fc | 12159 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12160 | unset ac_cv_prog_cc_g |
12161 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12162 | ac_save_CFLAGS=$CFLAGS |
8aeeb05c | 12163 | CFLAGS="-g" |
480ccd21 DE |
12164 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12165 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12166 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12168 | else | |
12169 | cat >conftest.$ac_ext <<_ACEOF | |
12170 | /* confdefs.h. */ | |
12171 | _ACEOF | |
12172 | cat confdefs.h >>conftest.$ac_ext | |
12173 | cat >>conftest.$ac_ext <<_ACEOF | |
12174 | /* end confdefs.h. */ | |
12175 | ||
12176 | int | |
12177 | main () | |
12178 | { | |
12179 | ||
12180 | ; | |
12181 | return 0; | |
12182 | } | |
12183 | _ACEOF | |
12184 | rm -f conftest.$ac_objext | |
12185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12186 | (eval $ac_compile) 2>conftest.er1 | |
12187 | ac_status=$? | |
12188 | grep -v '^ *+' conftest.er1 >conftest.err | |
12189 | rm -f conftest.er1 | |
12190 | cat conftest.err >&5 | |
12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12192 | (exit $ac_status); } && | |
f10e38c4 | 12193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12195 | (eval $ac_try) 2>&5 | |
12196 | ac_status=$? | |
12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12198 | (exit $ac_status); }; } && | |
12199 | { ac_try='test -s conftest.$ac_objext' | |
12200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12201 | (eval $ac_try) 2>&5 | |
12202 | ac_status=$? | |
12203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12204 | (exit $ac_status); }; }; then | |
12205 | ac_cv_prog_cc_g=yes | |
12206 | else | |
12207 | echo "$as_me: failed program was:" >&5 | |
12208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12209 | ||
12210 | ac_cv_prog_cc_g=no | |
12211 | fi | |
12212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12213 | fi | |
12214 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12215 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12216 | if test "$ac_test_CFLAGS" = set; then | |
12217 | CFLAGS=$ac_save_CFLAGS | |
12218 | elif test $ac_cv_prog_cc_g = yes; then | |
12219 | if test "$GCC" = yes; then | |
12220 | CFLAGS="-g -O2" | |
12221 | else | |
12222 | CFLAGS="-g" | |
12223 | fi | |
12224 | else | |
12225 | if test "$GCC" = yes; then | |
12226 | CFLAGS="-O2" | |
12227 | else | |
12228 | CFLAGS= | |
12229 | fi | |
12230 | fi | |
3006edc0 | 12231 | fi |
ab0ad5f1 | 12232 | fi |
3006edc0 VZ |
12233 | |
12234 | case `uname -s` in | |
12235 | AIX*) | |
12236 | ac_ext=c | |
12237 | ac_cpp='$CPP $CPPFLAGS' | |
12238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12241 | ||
12242 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12243 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12244 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12246 | else | |
12247 | cat >conftest.$ac_ext <<_ACEOF | |
12248 | /* confdefs.h. */ | |
12249 | _ACEOF | |
12250 | cat confdefs.h >>conftest.$ac_ext | |
12251 | cat >>conftest.$ac_ext <<_ACEOF | |
12252 | /* end confdefs.h. */ | |
12253 | ||
12254 | int | |
12255 | main () | |
12256 | { | |
12257 | #ifndef __xlC__ | |
12258 | choke me | |
12259 | #endif | |
12260 | ||
12261 | ; | |
12262 | return 0; | |
12263 | } | |
12264 | _ACEOF | |
12265 | rm -f conftest.$ac_objext | |
12266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12267 | (eval $ac_compile) 2>conftest.er1 | |
12268 | ac_status=$? | |
12269 | grep -v '^ *+' conftest.er1 >conftest.err | |
12270 | rm -f conftest.er1 | |
12271 | cat conftest.err >&5 | |
12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12273 | (exit $ac_status); } && | |
f10e38c4 | 12274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12276 | (eval $ac_try) 2>&5 | |
12277 | ac_status=$? | |
12278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12279 | (exit $ac_status); }; } && | |
12280 | { ac_try='test -s conftest.$ac_objext' | |
12281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12282 | (eval $ac_try) 2>&5 | |
12283 | ac_status=$? | |
12284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12285 | (exit $ac_status); }; }; then | |
0093c2fc | 12286 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12287 | else |
12288 | echo "$as_me: failed program was:" >&5 | |
12289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12290 | ||
0093c2fc | 12291 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12292 | fi |
12293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12294 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12295 | |
12296 | fi | |
0093c2fc VZ |
12297 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12298 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12299 | |
0093c2fc | 12300 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12301 | ac_ext=c |
12302 | ac_cpp='$CPP $CPPFLAGS' | |
12303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12306 | ||
12307 | ||
12308 | ;; | |
12309 | ||
12310 | Darwin) | |
12311 | ac_ext=c | |
95986553 DE |
12312 | ac_cpp='$CPP $CPPFLAGS' |
12313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12316 | ||
12317 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12318 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12319 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12321 | else | |
12322 | cat >conftest.$ac_ext <<_ACEOF | |
12323 | /* confdefs.h. */ | |
12324 | _ACEOF | |
12325 | cat confdefs.h >>conftest.$ac_ext | |
12326 | cat >>conftest.$ac_ext <<_ACEOF | |
12327 | /* end confdefs.h. */ | |
12328 | ||
12329 | int | |
12330 | main () | |
12331 | { | |
12332 | #ifndef __MWERKS__ | |
12333 | choke me | |
12334 | #endif | |
12335 | ||
12336 | ; | |
12337 | return 0; | |
12338 | } | |
12339 | _ACEOF | |
12340 | rm -f conftest.$ac_objext | |
12341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12342 | (eval $ac_compile) 2>conftest.er1 | |
12343 | ac_status=$? | |
12344 | grep -v '^ *+' conftest.er1 >conftest.err | |
12345 | rm -f conftest.er1 | |
12346 | cat conftest.err >&5 | |
12347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12348 | (exit $ac_status); } && | |
f10e38c4 | 12349 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12351 | (eval $ac_try) 2>&5 | |
12352 | ac_status=$? | |
12353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12354 | (exit $ac_status); }; } && | |
12355 | { ac_try='test -s conftest.$ac_objext' | |
12356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12357 | (eval $ac_try) 2>&5 | |
12358 | ac_status=$? | |
12359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12360 | (exit $ac_status); }; }; then | |
12361 | bakefile_compiler_mwerks=yes | |
12362 | else | |
12363 | echo "$as_me: failed program was:" >&5 | |
12364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12365 | ||
12366 | bakefile_compiler_mwerks=no | |
12367 | fi | |
12368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12369 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12370 | ||
12371 | fi | |
12372 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12373 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12374 | ||
0e6fa1d9 | 12375 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12376 | ac_ext=c |
12377 | ac_cpp='$CPP $CPPFLAGS' | |
12378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12381 | ||
12382 | ||
3006edc0 | 12383 | ac_ext=c |
9273ffba DE |
12384 | ac_cpp='$CPP $CPPFLAGS' |
12385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12388 | ||
12389 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12390 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12391 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12393 | else | |
12394 | cat >conftest.$ac_ext <<_ACEOF | |
12395 | /* confdefs.h. */ | |
12396 | _ACEOF | |
12397 | cat confdefs.h >>conftest.$ac_ext | |
12398 | cat >>conftest.$ac_ext <<_ACEOF | |
12399 | /* end confdefs.h. */ | |
12400 | ||
12401 | int | |
12402 | main () | |
12403 | { | |
12404 | #ifndef __xlC__ | |
12405 | choke me | |
12406 | #endif | |
12407 | ||
12408 | ; | |
12409 | return 0; | |
12410 | } | |
12411 | _ACEOF | |
12412 | rm -f conftest.$ac_objext | |
12413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12414 | (eval $ac_compile) 2>conftest.er1 | |
12415 | ac_status=$? | |
12416 | grep -v '^ *+' conftest.er1 >conftest.err | |
12417 | rm -f conftest.er1 | |
12418 | cat conftest.err >&5 | |
12419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12420 | (exit $ac_status); } && | |
f10e38c4 | 12421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12423 | (eval $ac_try) 2>&5 | |
12424 | ac_status=$? | |
12425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12426 | (exit $ac_status); }; } && | |
12427 | { ac_try='test -s conftest.$ac_objext' | |
12428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12429 | (eval $ac_try) 2>&5 | |
12430 | ac_status=$? | |
12431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12432 | (exit $ac_status); }; }; then | |
0093c2fc | 12433 | bakefile_compiler_xlc=yes |
9273ffba DE |
12434 | else |
12435 | echo "$as_me: failed program was:" >&5 | |
12436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12437 | ||
0093c2fc | 12438 | bakefile_compiler_xlc=no |
9273ffba DE |
12439 | fi |
12440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12441 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12442 | |
12443 | fi | |
0093c2fc VZ |
12444 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12445 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12446 | |
0093c2fc | 12447 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12448 | ac_ext=c |
12449 | ac_cpp='$CPP $CPPFLAGS' | |
12450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12453 | ||
12454 | ||
3006edc0 VZ |
12455 | ;; |
12456 | ||
12457 | IRIX*) | |
a848cd7e | 12458 | |
6dcfc289 | 12459 | |
0ad5d837 VZ |
12460 | ac_ext=c |
12461 | ac_cpp='$CPP $CPPFLAGS' | |
12462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12465 | ||
12466 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12467 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12468 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12470 | else | |
12471 | cat >conftest.$ac_ext <<_ACEOF | |
12472 | /* confdefs.h. */ | |
12473 | _ACEOF | |
12474 | cat confdefs.h >>conftest.$ac_ext | |
12475 | cat >>conftest.$ac_ext <<_ACEOF | |
12476 | /* end confdefs.h. */ | |
12477 | ||
12478 | int | |
12479 | main () | |
12480 | { | |
12481 | ||
12482 | #ifndef _SGI_COMPILER_VERSION | |
12483 | choke me | |
12484 | #endif | |
12485 | ||
12486 | ; | |
12487 | return 0; | |
12488 | } | |
12489 | _ACEOF | |
12490 | rm -f conftest.$ac_objext | |
12491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12492 | (eval $ac_compile) 2>conftest.er1 | |
12493 | ac_status=$? | |
12494 | grep -v '^ *+' conftest.er1 >conftest.err | |
12495 | rm -f conftest.er1 | |
12496 | cat conftest.err >&5 | |
12497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12498 | (exit $ac_status); } && | |
f10e38c4 | 12499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
12500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12501 | (eval $ac_try) 2>&5 | |
12502 | ac_status=$? | |
12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12504 | (exit $ac_status); }; } && | |
12505 | { ac_try='test -s conftest.$ac_objext' | |
12506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12507 | (eval $ac_try) 2>&5 | |
12508 | ac_status=$? | |
12509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12510 | (exit $ac_status); }; }; then | |
12511 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12512 | else | |
12513 | echo "$as_me: failed program was:" >&5 | |
12514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12515 | ||
12516 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12517 | ||
12518 | fi | |
12519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12520 | ||
12521 | ||
12522 | fi | |
12523 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12524 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12525 | ac_ext=c | |
12526 | ac_cpp='$CPP $CPPFLAGS' | |
12527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12530 | ||
12531 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12532 | :; SGICC=yes | |
12533 | else | |
12534 | :; | |
12535 | fi | |
12536 | ||
12537 | ||
3006edc0 VZ |
12538 | ;; |
12539 | ||
0093c2fc | 12540 | HP-UX*) |
3006edc0 VZ |
12541 | |
12542 | ||
12543 | ac_ext=c | |
12544 | ac_cpp='$CPP $CPPFLAGS' | |
12545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12548 | ||
0093c2fc VZ |
12549 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12550 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12551 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
12552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12553 | else | |
12554 | cat >conftest.$ac_ext <<_ACEOF | |
12555 | /* confdefs.h. */ | |
12556 | _ACEOF | |
12557 | cat confdefs.h >>conftest.$ac_ext | |
12558 | cat >>conftest.$ac_ext <<_ACEOF | |
12559 | /* end confdefs.h. */ | |
12560 | ||
12561 | int | |
12562 | main () | |
12563 | { | |
12564 | ||
0093c2fc | 12565 | #ifndef __HP_cc |
3006edc0 VZ |
12566 | choke me |
12567 | #endif | |
12568 | ||
12569 | ; | |
12570 | return 0; | |
12571 | } | |
12572 | _ACEOF | |
12573 | rm -f conftest.$ac_objext | |
12574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12575 | (eval $ac_compile) 2>conftest.er1 | |
12576 | ac_status=$? | |
12577 | grep -v '^ *+' conftest.er1 >conftest.err | |
12578 | rm -f conftest.er1 | |
12579 | cat conftest.err >&5 | |
12580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12581 | (exit $ac_status); } && | |
f10e38c4 | 12582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12584 | (eval $ac_try) 2>&5 | |
12585 | ac_status=$? | |
12586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12587 | (exit $ac_status); }; } && | |
12588 | { ac_try='test -s conftest.$ac_objext' | |
12589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12590 | (eval $ac_try) 2>&5 | |
12591 | ac_status=$? | |
12592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12593 | (exit $ac_status); }; }; then | |
0093c2fc | 12594 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
12595 | else |
12596 | echo "$as_me: failed program was:" >&5 | |
12597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12598 | ||
0093c2fc | 12599 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
12600 | |
12601 | fi | |
12602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12603 | ||
12604 | ||
12605 | fi | |
0093c2fc VZ |
12606 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
12607 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
12608 | ac_ext=c |
12609 | ac_cpp='$CPP $CPPFLAGS' | |
12610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12613 | ||
0093c2fc VZ |
12614 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
12615 | :; HPCC=yes | |
a1aa0349 VZ |
12616 | else |
12617 | :; | |
12618 | fi | |
12619 | ||
12620 | ||
12621 | ;; | |
12622 | ||
0093c2fc | 12623 | OSF1) |
a1aa0349 VZ |
12624 | |
12625 | ||
12626 | ac_ext=c | |
12627 | ac_cpp='$CPP $CPPFLAGS' | |
12628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12631 | ||
0093c2fc VZ |
12632 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
12633 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
12634 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
12635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12636 | else | |
12637 | cat >conftest.$ac_ext <<_ACEOF | |
12638 | /* confdefs.h. */ | |
12639 | _ACEOF | |
12640 | cat confdefs.h >>conftest.$ac_ext | |
12641 | cat >>conftest.$ac_ext <<_ACEOF | |
12642 | /* end confdefs.h. */ | |
12643 | ||
12644 | int | |
12645 | main () | |
12646 | { | |
12647 | ||
0093c2fc | 12648 | #ifndef __DECC |
a1aa0349 VZ |
12649 | choke me |
12650 | #endif | |
12651 | ||
12652 | ; | |
12653 | return 0; | |
12654 | } | |
12655 | _ACEOF | |
12656 | rm -f conftest.$ac_objext | |
12657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12658 | (eval $ac_compile) 2>conftest.er1 | |
12659 | ac_status=$? | |
12660 | grep -v '^ *+' conftest.er1 >conftest.err | |
12661 | rm -f conftest.er1 | |
12662 | cat conftest.err >&5 | |
12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12664 | (exit $ac_status); } && | |
f10e38c4 | 12665 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
12666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12667 | (eval $ac_try) 2>&5 | |
12668 | ac_status=$? | |
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12670 | (exit $ac_status); }; } && | |
12671 | { ac_try='test -s conftest.$ac_objext' | |
12672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12673 | (eval $ac_try) 2>&5 | |
12674 | ac_status=$? | |
12675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12676 | (exit $ac_status); }; }; then | |
0093c2fc | 12677 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
12678 | else |
12679 | echo "$as_me: failed program was:" >&5 | |
12680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12681 | ||
0093c2fc | 12682 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
12683 | |
12684 | fi | |
12685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12686 | ||
12687 | ||
12688 | fi | |
0093c2fc VZ |
12689 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
12690 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
12691 | ac_ext=c |
12692 | ac_cpp='$CPP $CPPFLAGS' | |
12693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12696 | ||
0093c2fc VZ |
12697 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
12698 | :; COMPAQCC=yes | |
12699 | else | |
12700 | :; | |
12701 | fi | |
12702 | ||
12703 | ||
12704 | ;; | |
12705 | ||
12706 | SunOS) | |
12707 | ||
12708 | ||
12709 | ac_ext=c | |
12710 | ac_cpp='$CPP $CPPFLAGS' | |
12711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12714 | ||
12715 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12716 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12717 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12719 | else | |
12720 | cat >conftest.$ac_ext <<_ACEOF | |
12721 | /* confdefs.h. */ | |
12722 | _ACEOF | |
12723 | cat confdefs.h >>conftest.$ac_ext | |
12724 | cat >>conftest.$ac_ext <<_ACEOF | |
12725 | /* end confdefs.h. */ | |
12726 | ||
12727 | int | |
12728 | main () | |
12729 | { | |
12730 | ||
12731 | #ifndef __SUNPRO_C | |
12732 | choke me | |
12733 | #endif | |
12734 | ||
12735 | ; | |
12736 | return 0; | |
12737 | } | |
12738 | _ACEOF | |
12739 | rm -f conftest.$ac_objext | |
12740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12741 | (eval $ac_compile) 2>conftest.er1 | |
12742 | ac_status=$? | |
12743 | grep -v '^ *+' conftest.er1 >conftest.err | |
12744 | rm -f conftest.er1 | |
12745 | cat conftest.err >&5 | |
12746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12747 | (exit $ac_status); } && | |
f10e38c4 | 12748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
12749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12750 | (eval $ac_try) 2>&5 | |
12751 | ac_status=$? | |
12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12753 | (exit $ac_status); }; } && | |
12754 | { ac_try='test -s conftest.$ac_objext' | |
12755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12756 | (eval $ac_try) 2>&5 | |
12757 | ac_status=$? | |
12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12759 | (exit $ac_status); }; }; then | |
12760 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12761 | else | |
12762 | echo "$as_me: failed program was:" >&5 | |
12763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12764 | ||
12765 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12766 | ||
12767 | fi | |
12768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12769 | ||
12770 | ||
12771 | fi | |
12772 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12773 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12774 | ac_ext=c | |
12775 | ac_cpp='$CPP $CPPFLAGS' | |
12776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12779 | ||
12780 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12781 | :; SUNCC=yes | |
3006edc0 VZ |
12782 | else |
12783 | :; | |
12784 | fi | |
12785 | ||
12786 | ||
12787 | ;; | |
12788 | esac | |
ab0ad5f1 | 12789 | fi |
a9e5b1f0 MW |
12790 | |
12791 | ||
3006edc0 | 12792 | |
a848cd7e SC |
12793 | ac_ext=c |
12794 | ac_cpp='$CPP $CPPFLAGS' | |
12795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12798 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12799 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12800 | # On Suns, sometimes $CPP names a directory. | |
12801 | if test -n "$CPP" && test -d "$CPP"; then | |
12802 | CPP= | |
12803 | fi | |
12804 | if test -z "$CPP"; then | |
12805 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12807 | else | |
12808 | # Double quotes because CPP needs to be expanded | |
12809 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12810 | do | |
12811 | ac_preproc_ok=false | |
12812 | for ac_c_preproc_warn_flag in '' yes | |
12813 | do | |
12814 | # Use a header file that comes with gcc, so configuring glibc | |
12815 | # with a fresh cross-compiler works. | |
12816 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12817 | # <limits.h> exists even on freestanding compilers. | |
12818 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12819 | # not just through cpp. "Syntax error" is here to catch this case. | |
12820 | cat >conftest.$ac_ext <<_ACEOF | |
12821 | /* confdefs.h. */ | |
12822 | _ACEOF | |
12823 | cat confdefs.h >>conftest.$ac_ext | |
12824 | cat >>conftest.$ac_ext <<_ACEOF | |
12825 | /* end confdefs.h. */ | |
12826 | #ifdef __STDC__ | |
12827 | # include <limits.h> | |
12828 | #else | |
12829 | # include <assert.h> | |
12830 | #endif | |
ac1cb8d3 | 12831 | Syntax error |
a848cd7e SC |
12832 | _ACEOF |
12833 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12834 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12835 | ac_status=$? | |
12836 | grep -v '^ *+' conftest.er1 >conftest.err | |
12837 | rm -f conftest.er1 | |
12838 | cat conftest.err >&5 | |
12839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12840 | (exit $ac_status); } >/dev/null; then | |
12841 | if test -s conftest.err; then | |
12842 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12843 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12844 | else |
12845 | ac_cpp_err= | |
12846 | fi | |
12847 | else | |
12848 | ac_cpp_err=yes | |
12849 | fi | |
12850 | if test -z "$ac_cpp_err"; then | |
12851 | : | |
12852 | else | |
12853 | echo "$as_me: failed program was:" >&5 | |
12854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12855 | ||
12856 | # Broken: fails on valid input. | |
12857 | continue | |
12858 | fi | |
12859 | rm -f conftest.err conftest.$ac_ext | |
12860 | ||
12861 | # OK, works on sane cases. Now check whether non-existent headers | |
12862 | # can be detected and how. | |
12863 | cat >conftest.$ac_ext <<_ACEOF | |
12864 | /* confdefs.h. */ | |
12865 | _ACEOF | |
12866 | cat confdefs.h >>conftest.$ac_ext | |
12867 | cat >>conftest.$ac_ext <<_ACEOF | |
12868 | /* end confdefs.h. */ | |
12869 | #include <ac_nonexistent.h> | |
12870 | _ACEOF | |
12871 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12872 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12873 | ac_status=$? | |
12874 | grep -v '^ *+' conftest.er1 >conftest.err | |
12875 | rm -f conftest.er1 | |
12876 | cat conftest.err >&5 | |
12877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12878 | (exit $ac_status); } >/dev/null; then | |
12879 | if test -s conftest.err; then | |
12880 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12881 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12882 | else |
12883 | ac_cpp_err= | |
12884 | fi | |
12885 | else | |
12886 | ac_cpp_err=yes | |
12887 | fi | |
12888 | if test -z "$ac_cpp_err"; then | |
12889 | # Broken: success on invalid input. | |
12890 | continue | |
12891 | else | |
12892 | echo "$as_me: failed program was:" >&5 | |
12893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12894 | ||
12895 | # Passes both tests. | |
12896 | ac_preproc_ok=: | |
12897 | break | |
12898 | fi | |
12899 | rm -f conftest.err conftest.$ac_ext | |
12900 | ||
12901 | done | |
12902 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12903 | rm -f conftest.err conftest.$ac_ext | |
12904 | if $ac_preproc_ok; then | |
12905 | break | |
12906 | fi | |
12907 | ||
12908 | done | |
12909 | ac_cv_prog_CPP=$CPP | |
12910 | ||
12911 | fi | |
12912 | CPP=$ac_cv_prog_CPP | |
12913 | else | |
12914 | ac_cv_prog_CPP=$CPP | |
12915 | fi | |
12916 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12917 | echo "${ECHO_T}$CPP" >&6 | |
12918 | ac_preproc_ok=false | |
12919 | for ac_c_preproc_warn_flag in '' yes | |
12920 | do | |
12921 | # Use a header file that comes with gcc, so configuring glibc | |
12922 | # with a fresh cross-compiler works. | |
12923 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12924 | # <limits.h> exists even on freestanding compilers. | |
12925 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12926 | # not just through cpp. "Syntax error" is here to catch this case. | |
12927 | cat >conftest.$ac_ext <<_ACEOF | |
12928 | /* confdefs.h. */ | |
12929 | _ACEOF | |
12930 | cat confdefs.h >>conftest.$ac_ext | |
12931 | cat >>conftest.$ac_ext <<_ACEOF | |
12932 | /* end confdefs.h. */ | |
12933 | #ifdef __STDC__ | |
12934 | # include <limits.h> | |
12935 | #else | |
12936 | # include <assert.h> | |
12937 | #endif | |
ac1cb8d3 | 12938 | Syntax error |
a848cd7e SC |
12939 | _ACEOF |
12940 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12941 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12942 | ac_status=$? | |
12943 | grep -v '^ *+' conftest.er1 >conftest.err | |
12944 | rm -f conftest.er1 | |
12945 | cat conftest.err >&5 | |
12946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12947 | (exit $ac_status); } >/dev/null; then | |
12948 | if test -s conftest.err; then | |
12949 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12950 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12951 | else |
12952 | ac_cpp_err= | |
12953 | fi | |
12954 | else | |
12955 | ac_cpp_err=yes | |
12956 | fi | |
12957 | if test -z "$ac_cpp_err"; then | |
12958 | : | |
12959 | else | |
12960 | echo "$as_me: failed program was:" >&5 | |
12961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12962 | ||
12963 | # Broken: fails on valid input. | |
12964 | continue | |
12965 | fi | |
12966 | rm -f conftest.err conftest.$ac_ext | |
12967 | ||
12968 | # OK, works on sane cases. Now check whether non-existent headers | |
12969 | # can be detected and how. | |
12970 | cat >conftest.$ac_ext <<_ACEOF | |
12971 | /* confdefs.h. */ | |
12972 | _ACEOF | |
12973 | cat confdefs.h >>conftest.$ac_ext | |
12974 | cat >>conftest.$ac_ext <<_ACEOF | |
12975 | /* end confdefs.h. */ | |
12976 | #include <ac_nonexistent.h> | |
12977 | _ACEOF | |
12978 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12979 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12980 | ac_status=$? | |
12981 | grep -v '^ *+' conftest.er1 >conftest.err | |
12982 | rm -f conftest.er1 | |
12983 | cat conftest.err >&5 | |
12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12985 | (exit $ac_status); } >/dev/null; then | |
12986 | if test -s conftest.err; then | |
12987 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12988 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12989 | else |
12990 | ac_cpp_err= | |
12991 | fi | |
12992 | else | |
12993 | ac_cpp_err=yes | |
12994 | fi | |
12995 | if test -z "$ac_cpp_err"; then | |
12996 | # Broken: success on invalid input. | |
12997 | continue | |
12998 | else | |
12999 | echo "$as_me: failed program was:" >&5 | |
13000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13001 | ||
13002 | # Passes both tests. | |
13003 | ac_preproc_ok=: | |
13004 | break | |
13005 | fi | |
13006 | rm -f conftest.err conftest.$ac_ext | |
13007 | ||
13008 | done | |
13009 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13010 | rm -f conftest.err conftest.$ac_ext | |
13011 | if $ac_preproc_ok; then | |
13012 | : | |
13013 | else | |
13014 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
13015 | See \`config.log' for more details." >&5 | |
13016 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
13017 | See \`config.log' for more details." >&2;} | |
13018 | { (exit 1); exit 1; }; } | |
13019 | fi | |
13020 | ||
13021 | ac_ext=c | |
13022 | ac_cpp='$CPP $CPPFLAGS' | |
13023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13026 | ||
13027 | ||
13028 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
13029 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
13030 | if test "${ac_cv_prog_egrep+set}" = set; then | |
13031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13032 | else | |
13033 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
13034 | then ac_cv_prog_egrep='grep -E' | |
13035 | else ac_cv_prog_egrep='egrep' | |
13036 | fi | |
13037 | fi | |
13038 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
13039 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
13040 | EGREP=$ac_cv_prog_egrep | |
13041 | ||
13042 | ||
13043 | if test $ac_cv_c_compiler_gnu = yes; then | |
13044 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
13045 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
13046 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
13047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13048 | else | |
13049 | ac_pattern="Autoconf.*'x'" | |
13050 | cat >conftest.$ac_ext <<_ACEOF | |
13051 | /* confdefs.h. */ | |
13052 | _ACEOF | |
13053 | cat confdefs.h >>conftest.$ac_ext | |
13054 | cat >>conftest.$ac_ext <<_ACEOF | |
13055 | /* end confdefs.h. */ | |
13056 | #include <sgtty.h> | |
13057 | Autoconf TIOCGETP | |
13058 | _ACEOF | |
13059 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13060 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13061 | ac_cv_prog_gcc_traditional=yes | |
13062 | else | |
13063 | ac_cv_prog_gcc_traditional=no | |
13064 | fi | |
13065 | rm -f conftest* | |
13066 | ||
13067 | ||
13068 | if test $ac_cv_prog_gcc_traditional = no; then | |
13069 | cat >conftest.$ac_ext <<_ACEOF | |
13070 | /* confdefs.h. */ | |
13071 | _ACEOF | |
13072 | cat confdefs.h >>conftest.$ac_ext | |
13073 | cat >>conftest.$ac_ext <<_ACEOF | |
13074 | /* end confdefs.h. */ | |
13075 | #include <termio.h> | |
13076 | Autoconf TCGETA | |
13077 | _ACEOF | |
13078 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13079 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13080 | ac_cv_prog_gcc_traditional=yes | |
13081 | fi | |
13082 | rm -f conftest* | |
13083 | ||
13084 | fi | |
13085 | fi | |
13086 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
13087 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
13088 | if test $ac_cv_prog_gcc_traditional = yes; then | |
13089 | CC="$CC -traditional" | |
13090 | fi | |
13091 | fi | |
13092 | ||
13093 | ||
a848cd7e SC |
13094 | ac_ext=cc |
13095 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13096 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13097 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13098 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13099 | ||
13100 | ||
13101 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
13102 | |
13103 | ||
3006edc0 | 13104 | |
6dcfc289 | 13105 | ac_ext=cc |
a848cd7e SC |
13106 | ac_cpp='$CXXCPP $CPPFLAGS' |
13107 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13108 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13109 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13110 | if test -n "$ac_tool_prefix"; then | |
13111 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13112 | do | |
13113 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13114 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13117 | if test "${ac_cv_prog_CXX+set}" = set; then | |
13118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13119 | else | |
13120 | if test -n "$CXX"; then | |
13121 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13122 | else | |
13123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13124 | for as_dir in $PATH | |
13125 | do | |
13126 | IFS=$as_save_IFS | |
13127 | test -z "$as_dir" && as_dir=. | |
13128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13129 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13130 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13132 | break 2 | |
13133 | fi | |
13134 | done | |
13135 | done | |
13136 | ||
13137 | fi | |
13138 | fi | |
13139 | CXX=$ac_cv_prog_CXX | |
13140 | if test -n "$CXX"; then | |
13141 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13142 | echo "${ECHO_T}$CXX" >&6 | |
13143 | else | |
13144 | echo "$as_me:$LINENO: result: no" >&5 | |
13145 | echo "${ECHO_T}no" >&6 | |
13146 | fi | |
13147 | ||
13148 | test -n "$CXX" && break | |
13149 | done | |
13150 | fi | |
13151 | if test -z "$CXX"; then | |
13152 | ac_ct_CXX=$CXX | |
13153 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13154 | do | |
13155 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13156 | set dummy $ac_prog; ac_word=$2 | |
13157 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13159 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13161 | else | |
13162 | if test -n "$ac_ct_CXX"; then | |
13163 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13164 | else | |
13165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13166 | for as_dir in $PATH | |
13167 | do | |
13168 | IFS=$as_save_IFS | |
13169 | test -z "$as_dir" && as_dir=. | |
13170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13172 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13174 | break 2 | |
13175 | fi | |
13176 | done | |
13177 | done | |
13178 | ||
13179 | fi | |
13180 | fi | |
13181 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13182 | if test -n "$ac_ct_CXX"; then | |
13183 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13184 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13185 | else | |
13186 | echo "$as_me:$LINENO: result: no" >&5 | |
13187 | echo "${ECHO_T}no" >&6 | |
13188 | fi | |
13189 | ||
13190 | test -n "$ac_ct_CXX" && break | |
13191 | done | |
13192 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13193 | ||
13194 | CXX=$ac_ct_CXX | |
13195 | fi | |
13196 | ||
13197 | ||
13198 | # Provide some information about the compiler. | |
13199 | echo "$as_me:$LINENO:" \ | |
13200 | "checking for C++ compiler version" >&5 | |
13201 | ac_compiler=`set X $ac_compile; echo $2` | |
13202 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13203 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13204 | ac_status=$? | |
13205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13206 | (exit $ac_status); } | |
13207 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13208 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13209 | ac_status=$? | |
13210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13211 | (exit $ac_status); } | |
13212 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13213 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13214 | ac_status=$? | |
13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13216 | (exit $ac_status); } | |
13217 | ||
13218 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13219 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13220 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
13221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13222 | else | |
13223 | cat >conftest.$ac_ext <<_ACEOF | |
13224 | /* confdefs.h. */ | |
13225 | _ACEOF | |
13226 | cat confdefs.h >>conftest.$ac_ext | |
13227 | cat >>conftest.$ac_ext <<_ACEOF | |
13228 | /* end confdefs.h. */ | |
13229 | ||
13230 | int | |
13231 | main () | |
13232 | { | |
13233 | #ifndef __GNUC__ | |
13234 | choke me | |
13235 | #endif | |
13236 | ||
13237 | ; | |
13238 | return 0; | |
13239 | } | |
13240 | _ACEOF | |
13241 | rm -f conftest.$ac_objext | |
13242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13243 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13244 | ac_status=$? |
ac1cb8d3 VS |
13245 | grep -v '^ *+' conftest.er1 >conftest.err |
13246 | rm -f conftest.er1 | |
13247 | cat conftest.err >&5 | |
a848cd7e SC |
13248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13249 | (exit $ac_status); } && | |
f10e38c4 | 13250 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13252 | (eval $ac_try) 2>&5 | |
13253 | ac_status=$? | |
13254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13255 | (exit $ac_status); }; } && | |
13256 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13258 | (eval $ac_try) 2>&5 | |
13259 | ac_status=$? | |
13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13261 | (exit $ac_status); }; }; then | |
13262 | ac_compiler_gnu=yes | |
13263 | else | |
13264 | echo "$as_me: failed program was:" >&5 | |
13265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13266 | ||
13267 | ac_compiler_gnu=no | |
13268 | fi | |
ac1cb8d3 | 13269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13270 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13271 | ||
13272 | fi | |
13273 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13274 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13275 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13276 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13277 | ac_save_CXXFLAGS=$CXXFLAGS | |
13278 | CXXFLAGS="-g" | |
13279 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13280 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13281 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13283 | else | |
13284 | cat >conftest.$ac_ext <<_ACEOF | |
13285 | /* confdefs.h. */ | |
13286 | _ACEOF | |
13287 | cat confdefs.h >>conftest.$ac_ext | |
13288 | cat >>conftest.$ac_ext <<_ACEOF | |
13289 | /* end confdefs.h. */ | |
13290 | ||
13291 | int | |
13292 | main () | |
13293 | { | |
13294 | ||
13295 | ; | |
13296 | return 0; | |
13297 | } | |
13298 | _ACEOF | |
13299 | rm -f conftest.$ac_objext | |
13300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13301 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13302 | ac_status=$? |
ac1cb8d3 VS |
13303 | grep -v '^ *+' conftest.er1 >conftest.err |
13304 | rm -f conftest.er1 | |
13305 | cat conftest.err >&5 | |
a848cd7e SC |
13306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13307 | (exit $ac_status); } && | |
f10e38c4 | 13308 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13310 | (eval $ac_try) 2>&5 | |
13311 | ac_status=$? | |
13312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13313 | (exit $ac_status); }; } && | |
13314 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13316 | (eval $ac_try) 2>&5 | |
13317 | ac_status=$? | |
13318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13319 | (exit $ac_status); }; }; then | |
13320 | ac_cv_prog_cxx_g=yes | |
13321 | else | |
13322 | echo "$as_me: failed program was:" >&5 | |
13323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13324 | ||
13325 | ac_cv_prog_cxx_g=no | |
13326 | fi | |
ac1cb8d3 | 13327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13328 | fi |
13329 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13330 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13331 | if test "$ac_test_CXXFLAGS" = set; then | |
13332 | CXXFLAGS=$ac_save_CXXFLAGS | |
13333 | elif test $ac_cv_prog_cxx_g = yes; then | |
13334 | if test "$GXX" = yes; then | |
8aeeb05c | 13335 | CXXFLAGS="-g -O2" |
a848cd7e | 13336 | else |
8aeeb05c | 13337 | CXXFLAGS="-g" |
a848cd7e SC |
13338 | fi |
13339 | else | |
13340 | if test "$GXX" = yes; then | |
13341 | CXXFLAGS="-O2" | |
13342 | else | |
13343 | CXXFLAGS= | |
13344 | fi | |
13345 | fi | |
13346 | for ac_declaration in \ | |
ac1cb8d3 | 13347 | '' \ |
a848cd7e SC |
13348 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13349 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13350 | 'extern "C" void exit (int) throw ();' \ | |
13351 | 'extern "C" void exit (int);' \ | |
13352 | 'void exit (int);' | |
13353 | do | |
13354 | cat >conftest.$ac_ext <<_ACEOF | |
13355 | /* confdefs.h. */ | |
13356 | _ACEOF | |
13357 | cat confdefs.h >>conftest.$ac_ext | |
13358 | cat >>conftest.$ac_ext <<_ACEOF | |
13359 | /* end confdefs.h. */ | |
de59c161 | 13360 | $ac_declaration |
ac1cb8d3 | 13361 | #include <stdlib.h> |
a848cd7e SC |
13362 | int |
13363 | main () | |
13364 | { | |
13365 | exit (42); | |
13366 | ; | |
13367 | return 0; | |
13368 | } | |
13369 | _ACEOF | |
13370 | rm -f conftest.$ac_objext | |
13371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13372 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13373 | ac_status=$? |
ac1cb8d3 VS |
13374 | grep -v '^ *+' conftest.er1 >conftest.err |
13375 | rm -f conftest.er1 | |
13376 | cat conftest.err >&5 | |
a848cd7e SC |
13377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13378 | (exit $ac_status); } && | |
f10e38c4 | 13379 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13381 | (eval $ac_try) 2>&5 | |
13382 | ac_status=$? | |
13383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13384 | (exit $ac_status); }; } && | |
13385 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13387 | (eval $ac_try) 2>&5 | |
13388 | ac_status=$? | |
13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13390 | (exit $ac_status); }; }; then | |
13391 | : | |
13392 | else | |
13393 | echo "$as_me: failed program was:" >&5 | |
13394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13395 | ||
13396 | continue | |
13397 | fi | |
ac1cb8d3 | 13398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13399 | cat >conftest.$ac_ext <<_ACEOF |
13400 | /* confdefs.h. */ | |
13401 | _ACEOF | |
13402 | cat confdefs.h >>conftest.$ac_ext | |
13403 | cat >>conftest.$ac_ext <<_ACEOF | |
13404 | /* end confdefs.h. */ | |
13405 | $ac_declaration | |
13406 | int | |
13407 | main () | |
13408 | { | |
13409 | exit (42); | |
13410 | ; | |
13411 | return 0; | |
13412 | } | |
13413 | _ACEOF | |
13414 | rm -f conftest.$ac_objext | |
13415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13416 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13417 | ac_status=$? |
ac1cb8d3 VS |
13418 | grep -v '^ *+' conftest.er1 >conftest.err |
13419 | rm -f conftest.er1 | |
13420 | cat conftest.err >&5 | |
a848cd7e SC |
13421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13422 | (exit $ac_status); } && | |
f10e38c4 | 13423 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13425 | (eval $ac_try) 2>&5 | |
13426 | ac_status=$? | |
13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13428 | (exit $ac_status); }; } && | |
13429 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13431 | (eval $ac_try) 2>&5 | |
13432 | ac_status=$? | |
13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13434 | (exit $ac_status); }; }; then | |
13435 | break | |
13436 | else | |
13437 | echo "$as_me: failed program was:" >&5 | |
13438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13439 | ||
13440 | fi | |
ac1cb8d3 | 13441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13442 | done |
13443 | rm -f conftest* | |
13444 | if test -n "$ac_declaration"; then | |
13445 | echo '#ifdef __cplusplus' >>confdefs.h | |
13446 | echo $ac_declaration >>confdefs.h | |
13447 | echo '#endif' >>confdefs.h | |
13448 | fi | |
13449 | ||
13450 | ac_ext=cc | |
13451 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13452 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13453 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13454 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13455 | ||
ab0ad5f1 VZ |
13456 | |
13457 | ||
13458 | ac_ext=cc | |
13459 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13460 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13461 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13462 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13463 | ||
13464 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13465 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13466 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13468 | else | |
13469 | cat >conftest.$ac_ext <<_ACEOF | |
13470 | /* confdefs.h. */ | |
13471 | _ACEOF | |
13472 | cat confdefs.h >>conftest.$ac_ext | |
13473 | cat >>conftest.$ac_ext <<_ACEOF | |
13474 | /* end confdefs.h. */ | |
13475 | ||
13476 | int | |
13477 | main () | |
13478 | { | |
13479 | ||
13480 | #ifndef __INTEL_COMPILER | |
13481 | choke me | |
13482 | #endif | |
13483 | ||
13484 | ; | |
13485 | return 0; | |
13486 | } | |
13487 | _ACEOF | |
13488 | rm -f conftest.$ac_objext | |
13489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13490 | (eval $ac_compile) 2>conftest.er1 | |
13491 | ac_status=$? | |
13492 | grep -v '^ *+' conftest.er1 >conftest.err | |
13493 | rm -f conftest.er1 | |
13494 | cat conftest.err >&5 | |
13495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13496 | (exit $ac_status); } && | |
f10e38c4 | 13497 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
13498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13499 | (eval $ac_try) 2>&5 | |
13500 | ac_status=$? | |
13501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13502 | (exit $ac_status); }; } && | |
13503 | { ac_try='test -s conftest.$ac_objext' | |
13504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13505 | (eval $ac_try) 2>&5 | |
13506 | ac_status=$? | |
13507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13508 | (exit $ac_status); }; }; then | |
13509 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13510 | else | |
13511 | echo "$as_me: failed program was:" >&5 | |
13512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13513 | ||
13514 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13515 | ||
13516 | fi | |
13517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13518 | ||
13519 | ||
13520 | fi | |
13521 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13522 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13523 | ac_ext=cc | |
13524 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13525 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13526 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13527 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13528 | ||
13529 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13530 | :; INTELCXX=yes | |
13531 | else | |
13532 | :; | |
13533 | fi | |
13534 | ||
13535 | ||
3006edc0 VZ |
13536 | if test "x$GCXX" != "xyes"; then |
13537 | if test "xCXX" = "xC"; then | |
13538 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13539 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 13540 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13542 | else | |
13543 | cat >conftest.$ac_ext <<_ACEOF | |
13544 | /* confdefs.h. */ | |
13545 | _ACEOF | |
13546 | cat confdefs.h >>conftest.$ac_ext | |
13547 | cat >>conftest.$ac_ext <<_ACEOF | |
13548 | /* end confdefs.h. */ | |
13549 | ||
13550 | int | |
13551 | main () | |
13552 | { | |
13553 | ||
13554 | ; | |
13555 | return 0; | |
13556 | } | |
13557 | _ACEOF | |
13558 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13560 | (eval $ac_compile) 2>&5 | |
13561 | ac_status=$? | |
13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13563 | (exit $ac_status); }; then | |
13564 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13565 | case $ac_file in | |
13566 | conftest.$ac_ext.o) | |
0093c2fc | 13567 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
13568 | ;; |
13569 | *) | |
13570 | ;; | |
13571 | esac | |
13572 | done | |
13573 | else | |
13574 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13575 | See \`config.log' for more details." >&5 | |
13576 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13577 | See \`config.log' for more details." >&2;} | |
13578 | { (exit 1); exit 1; }; } | |
13579 | ||
13580 | fi | |
13581 | ||
13582 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13583 | ||
13584 | fi | |
0093c2fc VZ |
13585 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
13586 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
13587 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 13588 | if test "cxx" = "c"; then |
0093c2fc | 13589 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
13590 | fi |
13591 | if test "cxx" = "cxx"; then | |
0093c2fc | 13592 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
13593 | fi |
13594 | fi | |
13595 | ||
0093c2fc | 13596 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
13597 | unset ac_cv_prog_cc_g |
13598 | ac_test_CFLAGS=${CFLAGS+set} | |
13599 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 13600 | CFLAGS="-g" |
3006edc0 VZ |
13601 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
13602 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
13603 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
13604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13605 | else | |
13606 | cat >conftest.$ac_ext <<_ACEOF | |
13607 | /* confdefs.h. */ | |
13608 | _ACEOF | |
13609 | cat confdefs.h >>conftest.$ac_ext | |
13610 | cat >>conftest.$ac_ext <<_ACEOF | |
13611 | /* end confdefs.h. */ | |
13612 | ||
13613 | int | |
13614 | main () | |
13615 | { | |
13616 | ||
13617 | ; | |
13618 | return 0; | |
13619 | } | |
13620 | _ACEOF | |
13621 | rm -f conftest.$ac_objext | |
13622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13623 | (eval $ac_compile) 2>conftest.er1 | |
13624 | ac_status=$? | |
13625 | grep -v '^ *+' conftest.er1 >conftest.err | |
13626 | rm -f conftest.er1 | |
13627 | cat conftest.err >&5 | |
13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13629 | (exit $ac_status); } && | |
f10e38c4 | 13630 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
13631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13632 | (eval $ac_try) 2>&5 | |
13633 | ac_status=$? | |
13634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13635 | (exit $ac_status); }; } && | |
13636 | { ac_try='test -s conftest.$ac_objext' | |
13637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13638 | (eval $ac_try) 2>&5 | |
13639 | ac_status=$? | |
13640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13641 | (exit $ac_status); }; }; then | |
3006edc0 | 13642 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
13643 | else |
13644 | echo "$as_me: failed program was:" >&5 | |
13645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13646 | ||
3006edc0 | 13647 | ac_cv_prog_cc_g=no |
480ccd21 DE |
13648 | fi |
13649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13650 | fi | |
3006edc0 VZ |
13651 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
13652 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
13653 | if test "$ac_test_CFLAGS" = set; then | |
13654 | CFLAGS=$ac_save_CFLAGS | |
13655 | elif test $ac_cv_prog_cc_g = yes; then | |
13656 | if test "$GCC" = yes; then | |
13657 | CFLAGS="-g -O2" | |
480ccd21 | 13658 | else |
3006edc0 | 13659 | CFLAGS="-g" |
480ccd21 DE |
13660 | fi |
13661 | else | |
3006edc0 VZ |
13662 | if test "$GCC" = yes; then |
13663 | CFLAGS="-O2" | |
480ccd21 | 13664 | else |
3006edc0 | 13665 | CFLAGS= |
480ccd21 DE |
13666 | fi |
13667 | fi | |
3006edc0 | 13668 | fi |
ab0ad5f1 | 13669 | fi |
3006edc0 VZ |
13670 | |
13671 | case `uname -s` in | |
13672 | AIX*) | |
13673 | ac_ext=cc | |
13674 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13675 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13676 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13677 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13678 | ||
13679 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13680 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13681 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
13682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13683 | else | |
13684 | cat >conftest.$ac_ext <<_ACEOF | |
13685 | /* confdefs.h. */ | |
13686 | _ACEOF | |
13687 | cat confdefs.h >>conftest.$ac_ext | |
13688 | cat >>conftest.$ac_ext <<_ACEOF | |
13689 | /* end confdefs.h. */ | |
13690 | ||
13691 | int | |
13692 | main () | |
13693 | { | |
13694 | #ifndef __xlC__ | |
13695 | choke me | |
13696 | #endif | |
13697 | ||
13698 | ; | |
13699 | return 0; | |
13700 | } | |
13701 | _ACEOF | |
13702 | rm -f conftest.$ac_objext | |
13703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13704 | (eval $ac_compile) 2>conftest.er1 | |
13705 | ac_status=$? | |
13706 | grep -v '^ *+' conftest.er1 >conftest.err | |
13707 | rm -f conftest.er1 | |
13708 | cat conftest.err >&5 | |
13709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13710 | (exit $ac_status); } && | |
f10e38c4 | 13711 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
13712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13713 | (eval $ac_try) 2>&5 | |
13714 | ac_status=$? | |
13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13716 | (exit $ac_status); }; } && | |
13717 | { ac_try='test -s conftest.$ac_objext' | |
13718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13719 | (eval $ac_try) 2>&5 | |
13720 | ac_status=$? | |
13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13722 | (exit $ac_status); }; }; then | |
0093c2fc | 13723 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
13724 | else |
13725 | echo "$as_me: failed program was:" >&5 | |
13726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13727 | ||
0093c2fc | 13728 | bakefile_compiler_xlc=no |
3006edc0 VZ |
13729 | fi |
13730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13731 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
13732 | |
13733 | fi | |
0093c2fc VZ |
13734 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13735 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 13736 | |
0093c2fc | 13737 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
13738 | ac_ext=cc |
13739 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13740 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13741 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13742 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13743 | ||
13744 | ||
13745 | ;; | |
13746 | ||
13747 | Darwin) | |
13748 | ac_ext=cc | |
95986553 DE |
13749 | ac_cpp='$CXXCPP $CPPFLAGS' |
13750 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13751 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13752 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13753 | ||
13754 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13755 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13756 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13758 | else | |
13759 | cat >conftest.$ac_ext <<_ACEOF | |
13760 | /* confdefs.h. */ | |
13761 | _ACEOF | |
13762 | cat confdefs.h >>conftest.$ac_ext | |
13763 | cat >>conftest.$ac_ext <<_ACEOF | |
13764 | /* end confdefs.h. */ | |
13765 | ||
13766 | int | |
13767 | main () | |
13768 | { | |
13769 | #ifndef __MWERKS__ | |
13770 | choke me | |
13771 | #endif | |
13772 | ||
13773 | ; | |
13774 | return 0; | |
13775 | } | |
13776 | _ACEOF | |
13777 | rm -f conftest.$ac_objext | |
13778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13779 | (eval $ac_compile) 2>conftest.er1 | |
13780 | ac_status=$? | |
13781 | grep -v '^ *+' conftest.er1 >conftest.err | |
13782 | rm -f conftest.er1 | |
13783 | cat conftest.err >&5 | |
13784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13785 | (exit $ac_status); } && | |
f10e38c4 | 13786 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
13787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13788 | (eval $ac_try) 2>&5 | |
13789 | ac_status=$? | |
13790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13791 | (exit $ac_status); }; } && | |
13792 | { ac_try='test -s conftest.$ac_objext' | |
13793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13794 | (eval $ac_try) 2>&5 | |
13795 | ac_status=$? | |
13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13797 | (exit $ac_status); }; }; then | |
13798 | bakefile_compiler_mwerks=yes | |
13799 | else | |
13800 | echo "$as_me: failed program was:" >&5 | |
13801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13802 | ||
13803 | bakefile_compiler_mwerks=no | |
13804 | fi | |
13805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13806 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13807 | ||
13808 | fi | |
13809 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13810 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13811 | ||
0e6fa1d9 | 13812 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13813 | ac_ext=cc |
13814 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13815 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13816 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13817 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13818 | ||
13819 | ||
3006edc0 | 13820 | ac_ext=cc |
9273ffba DE |
13821 | ac_cpp='$CXXCPP $CPPFLAGS' |
13822 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13823 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13824 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13825 | ||
13826 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13827 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13828 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
13829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13830 | else | |
13831 | cat >conftest.$ac_ext <<_ACEOF | |
13832 | /* confdefs.h. */ | |
13833 | _ACEOF | |
13834 | cat confdefs.h >>conftest.$ac_ext | |
13835 | cat >>conftest.$ac_ext <<_ACEOF | |
13836 | /* end confdefs.h. */ | |
13837 | ||
13838 | int | |
13839 | main () | |
13840 | { | |
13841 | #ifndef __xlC__ | |
13842 | choke me | |
13843 | #endif | |
13844 | ||
13845 | ; | |
13846 | return 0; | |
13847 | } | |
13848 | _ACEOF | |
13849 | rm -f conftest.$ac_objext | |
13850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13851 | (eval $ac_compile) 2>conftest.er1 | |
13852 | ac_status=$? | |
13853 | grep -v '^ *+' conftest.er1 >conftest.err | |
13854 | rm -f conftest.er1 | |
13855 | cat conftest.err >&5 | |
13856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13857 | (exit $ac_status); } && | |
f10e38c4 | 13858 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
13859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13860 | (eval $ac_try) 2>&5 | |
13861 | ac_status=$? | |
13862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13863 | (exit $ac_status); }; } && | |
13864 | { ac_try='test -s conftest.$ac_objext' | |
13865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13866 | (eval $ac_try) 2>&5 | |
13867 | ac_status=$? | |
13868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13869 | (exit $ac_status); }; }; then | |
0093c2fc | 13870 | bakefile_compiler_xlc=yes |
9273ffba DE |
13871 | else |
13872 | echo "$as_me: failed program was:" >&5 | |
13873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13874 | ||
0093c2fc | 13875 | bakefile_compiler_xlc=no |
9273ffba DE |
13876 | fi |
13877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13878 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
13879 | |
13880 | fi | |
0093c2fc VZ |
13881 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13882 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 13883 | |
0093c2fc | 13884 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
13885 | ac_ext=cc |
13886 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13887 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13888 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13889 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13890 | ||
13891 | ||
3006edc0 VZ |
13892 | ;; |
13893 | ||
13894 | IRIX*) | |
95986553 | 13895 | |
6dcfc289 | 13896 | |
0ad5d837 VZ |
13897 | ac_ext=cc |
13898 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13899 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13900 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13901 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13902 | ||
13903 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
13904 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
13905 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13907 | else | |
13908 | cat >conftest.$ac_ext <<_ACEOF | |
13909 | /* confdefs.h. */ | |
13910 | _ACEOF | |
13911 | cat confdefs.h >>conftest.$ac_ext | |
13912 | cat >>conftest.$ac_ext <<_ACEOF | |
13913 | /* end confdefs.h. */ | |
13914 | ||
13915 | int | |
13916 | main () | |
13917 | { | |
13918 | ||
13919 | #ifndef _SGI_COMPILER_VERSION | |
13920 | choke me | |
13921 | #endif | |
13922 | ||
13923 | ; | |
13924 | return 0; | |
13925 | } | |
13926 | _ACEOF | |
13927 | rm -f conftest.$ac_objext | |
13928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13929 | (eval $ac_compile) 2>conftest.er1 | |
13930 | ac_status=$? | |
13931 | grep -v '^ *+' conftest.er1 >conftest.err | |
13932 | rm -f conftest.er1 | |
13933 | cat conftest.err >&5 | |
13934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13935 | (exit $ac_status); } && | |
f10e38c4 | 13936 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
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); }; } && | |
13942 | { ac_try='test -s conftest.$ac_objext' | |
13943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13944 | (eval $ac_try) 2>&5 | |
13945 | ac_status=$? | |
13946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13947 | (exit $ac_status); }; }; then | |
13948 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
13949 | else | |
13950 | echo "$as_me: failed program was:" >&5 | |
13951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13952 | ||
13953 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
13954 | ||
13955 | fi | |
13956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13957 | ||
13958 | ||
13959 | fi | |
13960 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
13961 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
13962 | ac_ext=cc | |
13963 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13964 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13965 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13966 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13967 | ||
13968 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13969 | :; SGICXX=yes | |
13970 | else | |
13971 | :; | |
13972 | fi | |
13973 | ||
13974 | ||
3006edc0 VZ |
13975 | ;; |
13976 | ||
0093c2fc | 13977 | HP-UX*) |
3006edc0 VZ |
13978 | |
13979 | ||
13980 | ac_ext=cc | |
13981 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13982 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13983 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13984 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13985 | ||
0093c2fc VZ |
13986 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
13987 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
13988 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
13989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13990 | else | |
13991 | cat >conftest.$ac_ext <<_ACEOF | |
13992 | /* confdefs.h. */ | |
13993 | _ACEOF | |
13994 | cat confdefs.h >>conftest.$ac_ext | |
13995 | cat >>conftest.$ac_ext <<_ACEOF | |
13996 | /* end confdefs.h. */ | |
13997 | ||
13998 | int | |
13999 | main () | |
14000 | { | |
14001 | ||
0093c2fc | 14002 | #ifndef __HP_aCC |
3006edc0 VZ |
14003 | choke me |
14004 | #endif | |
14005 | ||
14006 | ; | |
14007 | return 0; | |
14008 | } | |
14009 | _ACEOF | |
14010 | rm -f conftest.$ac_objext | |
14011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14012 | (eval $ac_compile) 2>conftest.er1 | |
14013 | ac_status=$? | |
14014 | grep -v '^ *+' conftest.er1 >conftest.err | |
14015 | rm -f conftest.er1 | |
14016 | cat conftest.err >&5 | |
14017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14018 | (exit $ac_status); } && | |
f10e38c4 | 14019 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14021 | (eval $ac_try) 2>&5 | |
14022 | ac_status=$? | |
14023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14024 | (exit $ac_status); }; } && | |
14025 | { ac_try='test -s conftest.$ac_objext' | |
14026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14027 | (eval $ac_try) 2>&5 | |
14028 | ac_status=$? | |
14029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14030 | (exit $ac_status); }; }; then | |
0093c2fc | 14031 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
14032 | else |
14033 | echo "$as_me: failed program was:" >&5 | |
14034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14035 | ||
0093c2fc | 14036 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
14037 | |
14038 | fi | |
14039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14040 | ||
14041 | ||
14042 | fi | |
0093c2fc VZ |
14043 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
14044 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
14045 | ac_ext=cc |
14046 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14047 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14048 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14049 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14050 | ||
0093c2fc VZ |
14051 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
14052 | :; HPCXX=yes | |
a1aa0349 VZ |
14053 | else |
14054 | :; | |
14055 | fi | |
14056 | ||
14057 | ||
14058 | ;; | |
14059 | ||
0093c2fc | 14060 | OSF1) |
a1aa0349 VZ |
14061 | |
14062 | ||
14063 | ac_ext=cc | |
14064 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14065 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14066 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14067 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14068 | ||
0093c2fc VZ |
14069 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
14070 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
14071 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
14072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14073 | else | |
14074 | cat >conftest.$ac_ext <<_ACEOF | |
14075 | /* confdefs.h. */ | |
14076 | _ACEOF | |
14077 | cat confdefs.h >>conftest.$ac_ext | |
14078 | cat >>conftest.$ac_ext <<_ACEOF | |
14079 | /* end confdefs.h. */ | |
14080 | ||
14081 | int | |
14082 | main () | |
14083 | { | |
14084 | ||
0093c2fc | 14085 | #ifndef __DECCXX |
a1aa0349 VZ |
14086 | choke me |
14087 | #endif | |
14088 | ||
14089 | ; | |
14090 | return 0; | |
14091 | } | |
14092 | _ACEOF | |
14093 | rm -f conftest.$ac_objext | |
14094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14095 | (eval $ac_compile) 2>conftest.er1 | |
14096 | ac_status=$? | |
14097 | grep -v '^ *+' conftest.er1 >conftest.err | |
14098 | rm -f conftest.er1 | |
14099 | cat conftest.err >&5 | |
14100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14101 | (exit $ac_status); } && | |
f10e38c4 | 14102 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
14103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14104 | (eval $ac_try) 2>&5 | |
14105 | ac_status=$? | |
14106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14107 | (exit $ac_status); }; } && | |
14108 | { ac_try='test -s conftest.$ac_objext' | |
14109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14110 | (eval $ac_try) 2>&5 | |
14111 | ac_status=$? | |
14112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14113 | (exit $ac_status); }; }; then | |
0093c2fc | 14114 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14115 | else |
14116 | echo "$as_me: failed program was:" >&5 | |
14117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14118 | ||
0093c2fc | 14119 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14120 | |
14121 | fi | |
14122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14123 | ||
14124 | ||
14125 | fi | |
0093c2fc VZ |
14126 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14127 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14128 | ac_ext=cc |
14129 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14130 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14131 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14132 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14133 | ||
0093c2fc VZ |
14134 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14135 | :; COMPAQCXX=yes | |
14136 | else | |
14137 | :; | |
14138 | fi | |
14139 | ||
14140 | ||
14141 | ;; | |
14142 | ||
14143 | SunOS) | |
14144 | ||
14145 | ||
14146 | ac_ext=cc | |
14147 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14148 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14149 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14150 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14151 | ||
14152 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14153 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14154 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14156 | else | |
14157 | cat >conftest.$ac_ext <<_ACEOF | |
14158 | /* confdefs.h. */ | |
14159 | _ACEOF | |
14160 | cat confdefs.h >>conftest.$ac_ext | |
14161 | cat >>conftest.$ac_ext <<_ACEOF | |
14162 | /* end confdefs.h. */ | |
14163 | ||
14164 | int | |
14165 | main () | |
14166 | { | |
14167 | ||
14168 | #ifndef __SUNPRO_CC | |
14169 | choke me | |
14170 | #endif | |
14171 | ||
14172 | ; | |
14173 | return 0; | |
14174 | } | |
14175 | _ACEOF | |
14176 | rm -f conftest.$ac_objext | |
14177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14178 | (eval $ac_compile) 2>conftest.er1 | |
14179 | ac_status=$? | |
14180 | grep -v '^ *+' conftest.er1 >conftest.err | |
14181 | rm -f conftest.er1 | |
14182 | cat conftest.err >&5 | |
14183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14184 | (exit $ac_status); } && | |
f10e38c4 | 14185 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
14186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14187 | (eval $ac_try) 2>&5 | |
14188 | ac_status=$? | |
14189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14190 | (exit $ac_status); }; } && | |
14191 | { ac_try='test -s conftest.$ac_objext' | |
14192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14193 | (eval $ac_try) 2>&5 | |
14194 | ac_status=$? | |
14195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14196 | (exit $ac_status); }; }; then | |
14197 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14198 | else | |
14199 | echo "$as_me: failed program was:" >&5 | |
14200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14201 | ||
14202 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14203 | ||
14204 | fi | |
14205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14206 | ||
14207 | ||
14208 | fi | |
14209 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14210 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14211 | ac_ext=cc | |
14212 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14213 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14214 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14215 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14216 | ||
14217 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14218 | :; SUNCXX=yes | |
3006edc0 VZ |
14219 | else |
14220 | :; | |
ab0ad5f1 | 14221 | fi |
a9e5b1f0 MW |
14222 | |
14223 | ||
3006edc0 VZ |
14224 | ;; |
14225 | esac | |
14226 | fi | |
14227 | ||
14228 | ||
14229 | ||
a848cd7e SC |
14230 | ac_ext=c |
14231 | ac_cpp='$CPP $CPPFLAGS' | |
14232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14235 | ||
14236 | ||
a848cd7e SC |
14237 | if test -n "$ac_tool_prefix"; then |
14238 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14239 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14240 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14242 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14244 | else | |
14245 | if test -n "$RANLIB"; then | |
14246 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14247 | else | |
14248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14249 | for as_dir in $PATH | |
14250 | do | |
14251 | IFS=$as_save_IFS | |
14252 | test -z "$as_dir" && as_dir=. | |
14253 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14254 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14255 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14257 | break 2 | |
14258 | fi | |
14259 | done | |
14260 | done | |
14261 | ||
14262 | fi | |
14263 | fi | |
14264 | RANLIB=$ac_cv_prog_RANLIB | |
14265 | if test -n "$RANLIB"; then | |
14266 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14267 | echo "${ECHO_T}$RANLIB" >&6 | |
14268 | else | |
14269 | echo "$as_me:$LINENO: result: no" >&5 | |
14270 | echo "${ECHO_T}no" >&6 | |
14271 | fi | |
14272 | ||
14273 | fi | |
14274 | if test -z "$ac_cv_prog_RANLIB"; then | |
14275 | ac_ct_RANLIB=$RANLIB | |
14276 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14277 | set dummy ranlib; ac_word=$2 | |
14278 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14280 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14282 | else | |
14283 | if test -n "$ac_ct_RANLIB"; then | |
14284 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14285 | else | |
14286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14287 | for as_dir in $PATH | |
14288 | do | |
14289 | IFS=$as_save_IFS | |
14290 | test -z "$as_dir" && as_dir=. | |
14291 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14292 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14293 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14295 | break 2 | |
14296 | fi | |
14297 | done | |
14298 | done | |
14299 | ||
14300 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14301 | fi | |
14302 | fi | |
14303 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14304 | if test -n "$ac_ct_RANLIB"; then | |
14305 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14306 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14307 | else | |
14308 | echo "$as_me:$LINENO: result: no" >&5 | |
14309 | echo "${ECHO_T}no" >&6 | |
14310 | fi | |
14311 | ||
14312 | RANLIB=$ac_ct_RANLIB | |
14313 | else | |
14314 | RANLIB="$ac_cv_prog_RANLIB" | |
14315 | fi | |
14316 | ||
14317 | ||
8c80d384 DE |
14318 | if test -n "$ac_tool_prefix"; then |
14319 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14320 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14323 | if test "${ac_cv_prog_AR+set}" = set; then | |
14324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14325 | else | |
14326 | if test -n "$AR"; then | |
14327 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14328 | else | |
14329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14330 | for as_dir in $PATH | |
14331 | do | |
14332 | IFS=$as_save_IFS | |
14333 | test -z "$as_dir" && as_dir=. | |
14334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14335 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14336 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14338 | break 2 | |
14339 | fi | |
14340 | done | |
14341 | done | |
14342 | ||
14343 | fi | |
14344 | fi | |
14345 | AR=$ac_cv_prog_AR | |
14346 | if test -n "$AR"; then | |
14347 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14348 | echo "${ECHO_T}$AR" >&6 | |
14349 | else | |
14350 | echo "$as_me:$LINENO: result: no" >&5 | |
14351 | echo "${ECHO_T}no" >&6 | |
14352 | fi | |
14353 | ||
8c80d384 DE |
14354 | fi |
14355 | if test -z "$ac_cv_prog_AR"; then | |
14356 | ac_ct_AR=$AR | |
14357 | # Extract the first word of "ar", so it can be a program name with args. | |
14358 | set dummy ar; ac_word=$2 | |
14359 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14361 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14363 | else | |
14364 | if test -n "$ac_ct_AR"; then | |
14365 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14366 | else | |
14367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14368 | for as_dir in $PATH | |
14369 | do | |
14370 | IFS=$as_save_IFS | |
14371 | test -z "$as_dir" && as_dir=. | |
14372 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14373 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14374 | ac_cv_prog_ac_ct_AR="ar" | |
14375 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14376 | break 2 | |
14377 | fi | |
14378 | done | |
14379 | done | |
14380 | ||
14381 | fi | |
14382 | fi | |
14383 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14384 | if test -n "$ac_ct_AR"; then | |
14385 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14386 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14387 | else | |
14388 | echo "$as_me:$LINENO: result: no" >&5 | |
14389 | echo "${ECHO_T}no" >&6 | |
14390 | fi | |
14391 | ||
14392 | AR=$ac_ct_AR | |
14393 | else | |
14394 | AR="$ac_cv_prog_AR" | |
14395 | fi | |
14396 | ||
a848cd7e | 14397 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14398 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14399 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14400 | { (exit 1); exit 1; }; } |
14401 | fi | |
14402 | ||
14403 | # Find a good install program. We prefer a C program (faster), | |
14404 | # so one script is as good as another. But avoid the broken or | |
14405 | # incompatible versions: | |
14406 | # SysV /etc/install, /usr/sbin/install | |
14407 | # SunOS /usr/etc/install | |
14408 | # IRIX /sbin/install | |
14409 | # AIX /bin/install | |
14410 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14411 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14412 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14413 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14414 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14415 | # ./install, which can be erroneously created by make from ./install.sh. |
14416 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14417 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14418 | if test -z "$INSTALL"; then | |
14419 | if test "${ac_cv_path_install+set}" = set; then | |
14420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14421 | else | |
14422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14423 | for as_dir in $PATH | |
14424 | do | |
14425 | IFS=$as_save_IFS | |
14426 | test -z "$as_dir" && as_dir=. | |
14427 | # Account for people who put trailing slashes in PATH elements. | |
14428 | case $as_dir/ in | |
14429 | ./ | .// | /cC/* | \ | |
14430 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14431 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14432 | /usr/ucb/* ) ;; |
14433 | *) | |
14434 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14435 | # Don't use installbsd from OSF since it installs stuff as root | |
14436 | # by default. | |
14437 | for ac_prog in ginstall scoinst install; do | |
14438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14439 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14440 | if test $ac_prog = install && | |
14441 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14442 | # AIX install. It has an incompatible calling convention. | |
14443 | : | |
14444 | elif test $ac_prog = install && | |
14445 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14446 | # program-specific install script used by HP pwplus--don't use. | |
14447 | : | |
14448 | else | |
14449 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14450 | break 3 | |
14451 | fi | |
14452 | fi | |
a848cd7e SC |
14453 | done |
14454 | done | |
14455 | ;; | |
14456 | esac | |
14457 | done | |
14458 | ||
14459 | ||
14460 | fi | |
14461 | if test "${ac_cv_path_install+set}" = set; then | |
14462 | INSTALL=$ac_cv_path_install | |
14463 | else | |
14464 | # As a last resort, use the slow shell script. We don't cache a | |
14465 | # path for INSTALL within a source directory, because that will | |
14466 | # break other packages using the cache if that directory is | |
14467 | # removed, or if the path is relative. | |
14468 | INSTALL=$ac_install_sh | |
14469 | fi | |
14470 | fi | |
14471 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14472 | echo "${ECHO_T}$INSTALL" >&6 | |
14473 | ||
14474 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14475 | # It thinks the first close brace ends the variable substitution. | |
14476 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14477 | ||
14478 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14479 | ||
14480 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14481 | ||
14482 | ||
14483 | case ${INSTALL} in | |
14484 | /* ) # Absolute | |
14485 | ;; | |
14486 | ?:* ) # Drive letter, considered as absolute. | |
14487 | ;; | |
14488 | *) | |
14489 | INSTALL=`pwd`/${INSTALL} ;; | |
14490 | esac | |
14491 | ||
a848cd7e SC |
14492 | |
14493 | case "${host}" in | |
14494 | ||
cfda0ea8 | 14495 | *-*-darwin* ) |
a848cd7e SC |
14496 | INSTALL_PROGRAM="cp -fp" |
14497 | INSTALL_DATA="cp -fp" | |
14498 | ;; | |
14499 | *) | |
14500 | ;; | |
14501 | esac | |
14502 | ||
8c80d384 DE |
14503 | if test -n "$ac_tool_prefix"; then |
14504 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14505 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14506 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14508 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14510 | else | |
14511 | if test -n "$STRIP"; then | |
14512 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14513 | else | |
14514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14515 | for as_dir in $PATH | |
14516 | do | |
14517 | IFS=$as_save_IFS | |
14518 | test -z "$as_dir" && as_dir=. | |
14519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14520 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14521 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14523 | break 2 | |
14524 | fi | |
14525 | done | |
14526 | done | |
14527 | ||
a848cd7e SC |
14528 | fi |
14529 | fi | |
14530 | STRIP=$ac_cv_prog_STRIP | |
14531 | if test -n "$STRIP"; then | |
14532 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14533 | echo "${ECHO_T}$STRIP" >&6 | |
14534 | else | |
14535 | echo "$as_me:$LINENO: result: no" >&5 | |
14536 | echo "${ECHO_T}no" >&6 | |
14537 | fi | |
14538 | ||
8c80d384 DE |
14539 | fi |
14540 | if test -z "$ac_cv_prog_STRIP"; then | |
14541 | ac_ct_STRIP=$STRIP | |
14542 | # Extract the first word of "strip", so it can be a program name with args. | |
14543 | set dummy strip; ac_word=$2 | |
14544 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14546 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14548 | else | |
14549 | if test -n "$ac_ct_STRIP"; then | |
14550 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14551 | else | |
14552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14553 | for as_dir in $PATH | |
14554 | do | |
14555 | IFS=$as_save_IFS | |
14556 | test -z "$as_dir" && as_dir=. | |
14557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14558 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14559 | ac_cv_prog_ac_ct_STRIP="strip" | |
14560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14561 | break 2 | |
14562 | fi | |
14563 | done | |
14564 | done | |
14565 | ||
14566 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
14567 | fi | |
14568 | fi | |
14569 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14570 | if test -n "$ac_ct_STRIP"; then | |
14571 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
14572 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
14573 | else | |
14574 | echo "$as_me:$LINENO: result: no" >&5 | |
14575 | echo "${ECHO_T}no" >&6 | |
14576 | fi | |
14577 | ||
14578 | STRIP=$ac_ct_STRIP | |
14579 | else | |
14580 | STRIP="$ac_cv_prog_STRIP" | |
14581 | fi | |
14582 | ||
14583 | ||
14584 | if test "$wxUSE_WINE" = "yes"; then | |
14585 | if test -n "$ac_tool_prefix"; then | |
14586 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
14587 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
14588 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14590 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
14591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14592 | else | |
8ced02f6 DE |
14593 | if test -n "$WINDRES"; then |
14594 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
14595 | else |
14596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14597 | for as_dir in $PATH | |
14598 | do | |
14599 | IFS=$as_save_IFS | |
14600 | test -z "$as_dir" && as_dir=. | |
14601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14602 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14603 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
14604 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14605 | break 2 | |
14606 | fi | |
14607 | done | |
14608 | done | |
14609 | ||
14610 | fi | |
14611 | fi | |
8ced02f6 DE |
14612 | WINDRES=$ac_cv_prog_WINDRES |
14613 | if test -n "$WINDRES"; then | |
14614 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14615 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
14616 | else |
14617 | echo "$as_me:$LINENO: result: no" >&5 | |
14618 | echo "${ECHO_T}no" >&6 | |
14619 | fi | |
14620 | ||
14621 | fi | |
8ced02f6 DE |
14622 | if test -z "$ac_cv_prog_WINDRES"; then |
14623 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
14624 | # Extract the first word of "wrc", so it can be a program name with args. |
14625 | set dummy wrc; ac_word=$2 | |
14626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14628 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
14629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14630 | else | |
8ced02f6 DE |
14631 | if test -n "$ac_ct_WINDRES"; then |
14632 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
14633 | else |
14634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14635 | for as_dir in $PATH | |
14636 | do | |
14637 | IFS=$as_save_IFS | |
14638 | test -z "$as_dir" && as_dir=. | |
14639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14640 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14641 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
14642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14643 | break 2 | |
14644 | fi | |
14645 | done | |
14646 | done | |
14647 | ||
14648 | fi | |
14649 | fi | |
8ced02f6 DE |
14650 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
14651 | if test -n "$ac_ct_WINDRES"; then | |
14652 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14653 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
14654 | else |
14655 | echo "$as_me:$LINENO: result: no" >&5 | |
14656 | echo "${ECHO_T}no" >&6 | |
14657 | fi | |
14658 | ||
8ced02f6 | 14659 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 14660 | else |
8ced02f6 | 14661 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
14662 | fi |
14663 | ||
004ee6da | 14664 | RESCOMP="$WINDRES" |
8c80d384 DE |
14665 | else |
14666 | case "${host}" in | |
14667 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
14668 | if test -n "$ac_tool_prefix"; then |
14669 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
14670 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
14671 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14673 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
14674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14675 | else | |
14676 | if test -n "$WINDRES"; then | |
14677 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
14678 | else | |
14679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14680 | for as_dir in $PATH | |
14681 | do | |
14682 | IFS=$as_save_IFS | |
14683 | test -z "$as_dir" && as_dir=. | |
14684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14686 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
14687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14688 | break 2 | |
14689 | fi | |
14690 | done | |
14691 | done | |
14692 | ||
14693 | fi | |
14694 | fi | |
14695 | WINDRES=$ac_cv_prog_WINDRES | |
14696 | if test -n "$WINDRES"; then | |
14697 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14698 | echo "${ECHO_T}$WINDRES" >&6 | |
14699 | else | |
14700 | echo "$as_me:$LINENO: result: no" >&5 | |
14701 | echo "${ECHO_T}no" >&6 | |
14702 | fi | |
14703 | ||
14704 | fi | |
14705 | if test -z "$ac_cv_prog_WINDRES"; then | |
14706 | ac_ct_WINDRES=$WINDRES | |
14707 | # Extract the first word of "windres", so it can be a program name with args. | |
14708 | set dummy windres; ac_word=$2 | |
14709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14711 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
14712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14713 | else | |
14714 | if test -n "$ac_ct_WINDRES"; then | |
14715 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
14716 | else | |
14717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14718 | for as_dir in $PATH | |
14719 | do | |
14720 | IFS=$as_save_IFS | |
14721 | test -z "$as_dir" && as_dir=. | |
14722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14723 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14724 | ac_cv_prog_ac_ct_WINDRES="windres" | |
14725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14726 | break 2 | |
14727 | fi | |
14728 | done | |
14729 | done | |
14730 | ||
14731 | fi | |
14732 | fi | |
14733 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
14734 | if test -n "$ac_ct_WINDRES"; then | |
14735 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14736 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
14737 | else | |
14738 | echo "$as_me:$LINENO: result: no" >&5 | |
14739 | echo "${ECHO_T}no" >&6 | |
14740 | fi | |
14741 | ||
14742 | WINDRES=$ac_ct_WINDRES | |
14743 | else | |
14744 | WINDRES="$ac_cv_prog_WINDRES" | |
14745 | fi | |
14746 | ||
14747 | RESCOMP="$WINDRES" | |
14748 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
14749 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
14750 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
14751 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14752 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14753 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
14754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14755 | else | |
14756 | if test -n "$DLLTOOL"; then | |
14757 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
14758 | else | |
14759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14760 | for as_dir in $PATH | |
14761 | do | |
14762 | IFS=$as_save_IFS | |
14763 | test -z "$as_dir" && as_dir=. | |
14764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14765 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14766 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
14767 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14768 | break 2 | |
14769 | fi | |
14770 | done | |
14771 | done | |
14772 | ||
14773 | fi | |
14774 | fi | |
14775 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
14776 | if test -n "$DLLTOOL"; then | |
14777 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
14778 | echo "${ECHO_T}$DLLTOOL" >&6 | |
14779 | else | |
14780 | echo "$as_me:$LINENO: result: no" >&5 | |
14781 | echo "${ECHO_T}no" >&6 | |
14782 | fi | |
14783 | ||
14784 | fi | |
14785 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
14786 | ac_ct_DLLTOOL=$DLLTOOL | |
14787 | # Extract the first word of "dlltool", so it can be a program name with args. | |
14788 | set dummy dlltool; ac_word=$2 | |
14789 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14791 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
14792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14793 | else | |
14794 | if test -n "$ac_ct_DLLTOOL"; then | |
14795 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
14796 | else | |
14797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14798 | for as_dir in $PATH | |
14799 | do | |
14800 | IFS=$as_save_IFS | |
14801 | test -z "$as_dir" && as_dir=. | |
14802 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14803 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14804 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
14805 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14806 | break 2 | |
14807 | fi | |
14808 | done | |
14809 | done | |
14810 | ||
14811 | fi | |
14812 | fi | |
14813 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
14814 | if test -n "$ac_ct_DLLTOOL"; then | |
14815 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
14816 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
14817 | else | |
14818 | echo "$as_me:$LINENO: result: no" >&5 | |
14819 | echo "${ECHO_T}no" >&6 | |
14820 | fi | |
14821 | ||
14822 | DLLTOOL=$ac_ct_DLLTOOL | |
14823 | else | |
14824 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
14825 | fi | |
14826 | ||
14827 | ;; | |
14828 | esac | |
14829 | fi | |
a848cd7e SC |
14830 | |
14831 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
14832 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
14833 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
14834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14835 | else | |
14836 | ||
14837 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
14838 | egrep -s GNU > /dev/null); then | |
14839 | wx_cv_prog_makeisgnu="yes" | |
14840 | else | |
14841 | wx_cv_prog_makeisgnu="no" | |
14842 | fi | |
14843 | ||
14844 | fi | |
14845 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
14846 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
14847 | ||
14848 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
14849 | IF_GNU_MAKE="" | |
14850 | else | |
14851 | IF_GNU_MAKE="#" | |
14852 | fi | |
14853 | ||
14854 | ||
14855 | ||
14856 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
14857 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
14858 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
14859 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
14860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14861 | else | |
14862 | ||
14863 | cat - << EOF > confMake | |
14864 | check : file | |
14865 | cp \$? \$@ | |
14866 | cp \$? final_file | |
14867 | EOF | |
14868 | ||
14869 | if test ! -d sub ; then | |
14870 | mkdir sub | |
14871 | fi | |
14872 | echo dummy > sub/file | |
14873 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
14874 | RESULT=$? | |
14875 | rm -f sub/file check final_file confMake | |
14876 | rmdir sub | |
14877 | if test "$RESULT" = 0; then | |
14878 | wx_cv_prog_makevpath="yes" | |
14879 | else | |
14880 | wx_cv_prog_makevpath="no" | |
14881 | fi | |
14882 | ||
14883 | fi | |
14884 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
14885 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
14886 | ||
14887 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
14888 | { { echo "$as_me:$LINENO: error: | |
14889 | You need a make-utility that is able to use the variable | |
14890 | VPATH correctly. | |
14891 | If your version of make does not support VPATH correctly, | |
14892 | please install GNU-make (possibly as gmake), and start | |
14893 | configure with the following command: | |
14894 | export MAKE=gmake; ./configure for sh-type shells | |
14895 | setenv MAKE gmake; ./configure for csh-type shells | |
14896 | Also please do remember to use gmake in this case every time | |
14897 | you are trying to compile. | |
14898 | " >&5 | |
14899 | echo "$as_me: error: | |
14900 | You need a make-utility that is able to use the variable | |
14901 | VPATH correctly. | |
14902 | If your version of make does not support VPATH correctly, | |
14903 | please install GNU-make (possibly as gmake), and start | |
14904 | configure with the following command: | |
14905 | export MAKE=gmake; ./configure for sh-type shells | |
14906 | setenv MAKE gmake; ./configure for csh-type shells | |
14907 | Also please do remember to use gmake in this case every time | |
14908 | you are trying to compile. | |
14909 | " >&2;} | |
14910 | { (exit 1); exit 1; }; } | |
14911 | fi fi | |
14912 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
14913 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
14914 | LN_S=$as_ln_s | |
14915 | if test "$LN_S" = "ln -s"; then | |
14916 | echo "$as_me:$LINENO: result: yes" >&5 | |
14917 | echo "${ECHO_T}yes" >&6 | |
14918 | else | |
14919 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
14920 | echo "${ECHO_T}no, using $LN_S" >&6 | |
14921 | fi | |
14922 | ||
14923 | ||
bcaab0f9 | 14924 | |
a848cd7e | 14925 | |
2113bc77 | 14926 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 14927 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
14928 | fi |
14929 | ||
4d7ec9f1 DE |
14930 | case "${host}" in |
14931 | powerpc-*-darwin* ) | |
14932 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
14933 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
14934 | cat >conftest.$ac_ext <<_ACEOF | |
14935 | /* confdefs.h. */ | |
14936 | _ACEOF | |
14937 | cat confdefs.h >>conftest.$ac_ext | |
14938 | cat >>conftest.$ac_ext <<_ACEOF | |
14939 | /* end confdefs.h. */ | |
14940 | ||
14941 | int | |
14942 | main () | |
14943 | { | |
14944 | #ifndef __POWERPC__ | |
14945 | choke me for lack of PowerPC | |
14946 | #endif | |
14947 | ||
14948 | ; | |
14949 | return 0; | |
14950 | } | |
14951 | _ACEOF | |
14952 | rm -f conftest.$ac_objext | |
14953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14954 | (eval $ac_compile) 2>conftest.er1 | |
14955 | ac_status=$? | |
14956 | grep -v '^ *+' conftest.er1 >conftest.err | |
14957 | rm -f conftest.er1 | |
14958 | cat conftest.err >&5 | |
14959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14960 | (exit $ac_status); } && | |
f10e38c4 | 14961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
14962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14963 | (eval $ac_try) 2>&5 | |
14964 | ac_status=$? | |
14965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14966 | (exit $ac_status); }; } && | |
14967 | { ac_try='test -s conftest.$ac_objext' | |
14968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14969 | (eval $ac_try) 2>&5 | |
14970 | ac_status=$? | |
14971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14972 | (exit $ac_status); }; }; then | |
14973 | echo "$as_me:$LINENO: result: yes" >&5 | |
14974 | echo "${ECHO_T}yes" >&6 | |
14975 | else | |
14976 | echo "$as_me: failed program was:" >&5 | |
14977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14978 | ||
14979 | echo "$as_me:$LINENO: result: no" >&5 | |
14980 | echo "${ECHO_T}no" >&6 | |
14981 | cat >>confdefs.h <<\_ACEOF | |
14982 | #define __POWERPC__ 1 | |
14983 | _ACEOF | |
14984 | ||
14985 | ||
14986 | fi | |
14987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
14988 | ;; |
14989 | esac | |
14990 | ||
14991 | case "${host}" in | |
14992 | *-*-darwin* ) | |
4d7ec9f1 DE |
14993 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
14994 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
14995 | cat >conftest.$ac_ext <<_ACEOF | |
14996 | /* confdefs.h. */ | |
14997 | _ACEOF | |
14998 | cat confdefs.h >>conftest.$ac_ext | |
14999 | cat >>conftest.$ac_ext <<_ACEOF | |
15000 | /* end confdefs.h. */ | |
15001 | #include <CoreFoundation/CFBase.h> | |
15002 | ||
15003 | int | |
15004 | main () | |
15005 | { | |
15006 | ||
15007 | ; | |
15008 | return 0; | |
15009 | } | |
15010 | _ACEOF | |
15011 | rm -f conftest.$ac_objext | |
15012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15013 | (eval $ac_compile) 2>conftest.er1 | |
15014 | ac_status=$? | |
15015 | grep -v '^ *+' conftest.er1 >conftest.err | |
15016 | rm -f conftest.er1 | |
15017 | cat conftest.err >&5 | |
15018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15019 | (exit $ac_status); } && | |
f10e38c4 | 15020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15022 | (eval $ac_try) 2>&5 | |
15023 | ac_status=$? | |
15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15025 | (exit $ac_status); }; } && | |
15026 | { ac_try='test -s conftest.$ac_objext' | |
15027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15028 | (eval $ac_try) 2>&5 | |
15029 | ac_status=$? | |
15030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15031 | (exit $ac_status); }; }; then | |
15032 | echo "$as_me:$LINENO: result: yes" >&5 | |
15033 | echo "${ECHO_T}yes" >&6 | |
15034 | else | |
15035 | echo "$as_me: failed program was:" >&5 | |
15036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15037 | ||
15038 | echo "$as_me:$LINENO: result: no" >&5 | |
15039 | echo "${ECHO_T}no" >&6 | |
15040 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
15041 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
15042 | cat >conftest.$ac_ext <<_ACEOF | |
15043 | /* confdefs.h. */ | |
15044 | _ACEOF | |
15045 | cat confdefs.h >>conftest.$ac_ext | |
15046 | cat >>conftest.$ac_ext <<_ACEOF | |
15047 | /* end confdefs.h. */ | |
15048 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
15049 | #include <CoreFoundation/CFBase.h> | |
15050 | ||
15051 | int | |
15052 | main () | |
15053 | { | |
15054 | ||
15055 | ; | |
15056 | return 0; | |
15057 | } | |
15058 | _ACEOF | |
15059 | rm -f conftest.$ac_objext | |
15060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15061 | (eval $ac_compile) 2>conftest.er1 | |
15062 | ac_status=$? | |
15063 | grep -v '^ *+' conftest.er1 >conftest.err | |
15064 | rm -f conftest.er1 | |
15065 | cat conftest.err >&5 | |
15066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15067 | (exit $ac_status); } && | |
f10e38c4 | 15068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15070 | (eval $ac_try) 2>&5 | |
15071 | ac_status=$? | |
15072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15073 | (exit $ac_status); }; } && | |
15074 | { ac_try='test -s conftest.$ac_objext' | |
15075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15076 | (eval $ac_try) 2>&5 | |
15077 | ac_status=$? | |
15078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15079 | (exit $ac_status); }; }; then | |
15080 | echo "$as_me:$LINENO: result: yes" >&5 | |
15081 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15082 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15083 | else |
15084 | echo "$as_me: failed program was:" >&5 | |
15085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15086 | ||
15087 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15088 | See \`config.log' for more details." >&5 | |
15089 | echo "$as_me: error: no. CoreFoundation not available. | |
15090 | See \`config.log' for more details." >&2;} | |
15091 | { (exit 1); exit 1; }; } | |
15092 | ||
15093 | fi | |
15094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15095 | ||
15096 | ||
15097 | fi | |
15098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15099 | ;; | |
15100 | esac | |
15101 | ||
a848cd7e SC |
15102 | case "${host}" in |
15103 | *-pc-os2_emx | *-pc-os2-emx ) | |
15104 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
15105 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
15106 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15107 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15109 | else | |
15110 | ac_check_lib_save_LIBS=$LIBS | |
15111 | LIBS="-lcExt $LIBS" | |
15112 | cat >conftest.$ac_ext <<_ACEOF | |
15113 | /* confdefs.h. */ | |
15114 | _ACEOF | |
15115 | cat confdefs.h >>conftest.$ac_ext | |
15116 | cat >>conftest.$ac_ext <<_ACEOF | |
15117 | /* end confdefs.h. */ | |
15118 | ||
15119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15120 | #ifdef __cplusplus | |
15121 | extern "C" | |
15122 | #endif | |
15123 | /* We use char because int might match the return type of a gcc2 | |
15124 | builtin and then its argument prototype would still apply. */ | |
15125 | char drand48 (); | |
15126 | int | |
15127 | main () | |
15128 | { | |
15129 | drand48 (); | |
15130 | ; | |
15131 | return 0; | |
15132 | } | |
15133 | _ACEOF | |
15134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15136 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15137 | ac_status=$? |
ac1cb8d3 VS |
15138 | grep -v '^ *+' conftest.er1 >conftest.err |
15139 | rm -f conftest.er1 | |
15140 | cat conftest.err >&5 | |
a848cd7e SC |
15141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15142 | (exit $ac_status); } && | |
f10e38c4 | 15143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15145 | (eval $ac_try) 2>&5 | |
15146 | ac_status=$? | |
15147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15148 | (exit $ac_status); }; } && | |
15149 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15151 | (eval $ac_try) 2>&5 | |
15152 | ac_status=$? | |
15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15154 | (exit $ac_status); }; }; then | |
15155 | ac_cv_lib_cExt_drand48=yes | |
15156 | else | |
15157 | echo "$as_me: failed program was:" >&5 | |
15158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15159 | ||
15160 | ac_cv_lib_cExt_drand48=no | |
15161 | fi | |
ac1cb8d3 VS |
15162 | rm -f conftest.err conftest.$ac_objext \ |
15163 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15164 | LIBS=$ac_check_lib_save_LIBS |
15165 | fi | |
15166 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15167 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15168 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15169 | LIBS="$LIBS -lcExt" | |
15170 | fi | |
15171 | ||
15172 | else | |
15173 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15174 | fi | |
69120ee4 VZ |
15175 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15176 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15177 | if test "${wx_cv_gccversion+set}" = set; then |
15178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15179 | else | |
15180 | ||
391a765e VS |
15181 | if test "$cross_compiling" = yes; then |
15182 | wx_cv_gccversion="EMX2" | |
15183 | ||
15184 | else | |
15185 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15186 | /* confdefs.h. */ |
15187 | _ACEOF | |
15188 | cat confdefs.h >>conftest.$ac_ext | |
15189 | cat >>conftest.$ac_ext <<_ACEOF | |
15190 | /* end confdefs.h. */ | |
15191 | ||
391a765e | 15192 | #include <stdio.h> |
a848cd7e | 15193 | |
391a765e VS |
15194 | int main() |
15195 | { | |
15196 | FILE *f=fopen("conftestval", "w"); | |
15197 | if (!f) exit(1); | |
15198 | fprintf(f, | |
a848cd7e | 15199 | #if (__GNUC__ < 3) |
391a765e VS |
15200 | "EMX2" |
15201 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15202 | "EMX3" | |
15203 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15204 | "Innotek5" | |
15205 | #else | |
15206 | "Innotek6" | |
a848cd7e | 15207 | #endif |
391a765e VS |
15208 | ); |
15209 | exit(0); | |
15210 | } | |
a848cd7e | 15211 | |
a848cd7e | 15212 | _ACEOF |
391a765e VS |
15213 | rm -f conftest$ac_exeext |
15214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15215 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15216 | ac_status=$? |
15217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15218 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15220 | (eval $ac_try) 2>&5 | |
15221 | ac_status=$? | |
15222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15223 | (exit $ac_status); }; }; then | |
391a765e | 15224 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15225 | else |
391a765e VS |
15226 | echo "$as_me: program exited with status $ac_status" >&5 |
15227 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15228 | sed 's/^/| /' conftest.$ac_ext >&5 |
15229 | ||
391a765e VS |
15230 | ( exit $ac_status ) |
15231 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15232 | fi |
391a765e | 15233 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15234 | fi |
a848cd7e SC |
15235 | |
15236 | fi | |
15237 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15238 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 15239 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15240 | LIBS="$LIBS -lstdcpp" |
15241 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15242 | else | |
391a765e | 15243 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15244 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15245 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15246 | else | |
15247 | LIBS="$LIBS -lstdc++" | |
15248 | fi | |
15249 | fi | |
94acd38e DE |
15250 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15251 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15252 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15253 | wxUSE_OMF=yes | |
2da0c077 | 15254 | enable_omf=yes |
a848cd7e SC |
15255 | fi |
15256 | ;; | |
15257 | *) | |
15258 | ||
a848cd7e SC |
15259 | ac_ext=cc |
15260 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15261 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15262 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15263 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15264 | ||
15265 | ||
95986553 | 15266 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15267 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15268 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15270 | else | |
15271 | ||
15272 | cat >conftest.$ac_ext <<_ACEOF | |
15273 | /* confdefs.h. */ | |
15274 | _ACEOF | |
15275 | cat confdefs.h >>conftest.$ac_ext | |
15276 | cat >>conftest.$ac_ext <<_ACEOF | |
15277 | /* end confdefs.h. */ | |
15278 | ||
15279 | #include <string.h> | |
15280 | ||
15281 | int | |
15282 | main () | |
15283 | { | |
15284 | ||
15285 | strcasecmp("foo", "bar"); | |
15286 | ||
15287 | ; | |
15288 | return 0; | |
15289 | } | |
15290 | _ACEOF | |
15291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15293 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15294 | ac_status=$? |
ac1cb8d3 VS |
15295 | grep -v '^ *+' conftest.er1 >conftest.err |
15296 | rm -f conftest.er1 | |
15297 | cat conftest.err >&5 | |
a848cd7e SC |
15298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15299 | (exit $ac_status); } && | |
f10e38c4 | 15300 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15302 | (eval $ac_try) 2>&5 | |
15303 | ac_status=$? | |
15304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15305 | (exit $ac_status); }; } && | |
15306 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15308 | (eval $ac_try) 2>&5 | |
15309 | ac_status=$? | |
15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15311 | (exit $ac_status); }; }; then | |
15312 | ac_cv_string_strcasecmp=yes | |
15313 | else | |
15314 | echo "$as_me: failed program was:" >&5 | |
15315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15316 | ||
15317 | ac_cv_string_strcasecmp=no | |
15318 | ||
15319 | fi | |
ac1cb8d3 VS |
15320 | rm -f conftest.err conftest.$ac_objext \ |
15321 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15322 | |
15323 | fi | |
15324 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15325 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15326 | ||
15327 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15328 | cat >>confdefs.h <<\_ACEOF | |
15329 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15330 | _ACEOF | |
15331 | ||
15332 | else | |
15333 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15334 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15335 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15337 | else | |
15338 | ||
15339 | cat >conftest.$ac_ext <<_ACEOF | |
15340 | /* confdefs.h. */ | |
15341 | _ACEOF | |
15342 | cat confdefs.h >>conftest.$ac_ext | |
15343 | cat >>conftest.$ac_ext <<_ACEOF | |
15344 | /* end confdefs.h. */ | |
15345 | ||
15346 | #include <strings.h> | |
15347 | ||
15348 | int | |
15349 | main () | |
15350 | { | |
15351 | ||
15352 | strcasecmp("foo", "bar"); | |
15353 | ||
15354 | ; | |
15355 | return 0; | |
15356 | } | |
15357 | _ACEOF | |
15358 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15360 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15361 | ac_status=$? |
ac1cb8d3 VS |
15362 | grep -v '^ *+' conftest.er1 >conftest.err |
15363 | rm -f conftest.er1 | |
15364 | cat conftest.err >&5 | |
a848cd7e SC |
15365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15366 | (exit $ac_status); } && | |
f10e38c4 | 15367 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15369 | (eval $ac_try) 2>&5 | |
15370 | ac_status=$? | |
15371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15372 | (exit $ac_status); }; } && | |
15373 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15375 | (eval $ac_try) 2>&5 | |
15376 | ac_status=$? | |
15377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15378 | (exit $ac_status); }; }; then | |
15379 | ac_cv_strings_strcasecmp=yes | |
15380 | else | |
15381 | echo "$as_me: failed program was:" >&5 | |
15382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15383 | ||
15384 | ac_cv_strings_strcasecmp=no | |
15385 | ||
15386 | fi | |
ac1cb8d3 VS |
15387 | rm -f conftest.err conftest.$ac_objext \ |
15388 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15389 | |
15390 | fi | |
15391 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15392 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15393 | ||
0c3c69fc | 15394 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15395 | cat >>confdefs.h <<\_ACEOF |
15396 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15397 | _ACEOF | |
15398 | ||
15399 | else | |
15400 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15401 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15402 | { (exit 1); exit 1; }; } | |
15403 | fi | |
15404 | fi | |
15405 | ||
15406 | ac_ext=c | |
15407 | ac_cpp='$CPP $CPPFLAGS' | |
15408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15411 | ||
15412 | ;; | |
15413 | esac | |
15414 | ||
15415 | ||
15416 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
15417 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
15418 | if test "${ac_cv_header_stdc+set}" = set; then | |
15419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15420 | else | |
15421 | cat >conftest.$ac_ext <<_ACEOF | |
15422 | /* confdefs.h. */ | |
15423 | _ACEOF | |
15424 | cat confdefs.h >>conftest.$ac_ext | |
15425 | cat >>conftest.$ac_ext <<_ACEOF | |
15426 | /* end confdefs.h. */ | |
15427 | #include <stdlib.h> | |
15428 | #include <stdarg.h> | |
15429 | #include <string.h> | |
15430 | #include <float.h> | |
15431 | ||
15432 | int | |
15433 | main () | |
15434 | { | |
15435 | ||
15436 | ; | |
15437 | return 0; | |
15438 | } | |
15439 | _ACEOF | |
15440 | rm -f conftest.$ac_objext | |
15441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15442 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15443 | ac_status=$? |
ac1cb8d3 VS |
15444 | grep -v '^ *+' conftest.er1 >conftest.err |
15445 | rm -f conftest.er1 | |
15446 | cat conftest.err >&5 | |
a848cd7e SC |
15447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15448 | (exit $ac_status); } && | |
f10e38c4 | 15449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15451 | (eval $ac_try) 2>&5 | |
15452 | ac_status=$? | |
15453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15454 | (exit $ac_status); }; } && | |
15455 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15457 | (eval $ac_try) 2>&5 | |
15458 | ac_status=$? | |
15459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15460 | (exit $ac_status); }; }; then | |
15461 | ac_cv_header_stdc=yes | |
15462 | else | |
15463 | echo "$as_me: failed program was:" >&5 | |
15464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15465 | ||
15466 | ac_cv_header_stdc=no | |
15467 | fi | |
ac1cb8d3 | 15468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15469 | |
15470 | if test $ac_cv_header_stdc = yes; then | |
15471 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15472 | cat >conftest.$ac_ext <<_ACEOF | |
15473 | /* confdefs.h. */ | |
15474 | _ACEOF | |
15475 | cat confdefs.h >>conftest.$ac_ext | |
15476 | cat >>conftest.$ac_ext <<_ACEOF | |
15477 | /* end confdefs.h. */ | |
15478 | #include <string.h> | |
15479 | ||
15480 | _ACEOF | |
15481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15482 | $EGREP "memchr" >/dev/null 2>&1; then | |
15483 | : | |
15484 | else | |
15485 | ac_cv_header_stdc=no | |
15486 | fi | |
15487 | rm -f conftest* | |
15488 | ||
15489 | fi | |
15490 | ||
15491 | if test $ac_cv_header_stdc = yes; then | |
15492 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15493 | cat >conftest.$ac_ext <<_ACEOF | |
15494 | /* confdefs.h. */ | |
15495 | _ACEOF | |
15496 | cat confdefs.h >>conftest.$ac_ext | |
15497 | cat >>conftest.$ac_ext <<_ACEOF | |
15498 | /* end confdefs.h. */ | |
15499 | #include <stdlib.h> | |
15500 | ||
15501 | _ACEOF | |
15502 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15503 | $EGREP "free" >/dev/null 2>&1; then | |
15504 | : | |
15505 | else | |
15506 | ac_cv_header_stdc=no | |
15507 | fi | |
15508 | rm -f conftest* | |
15509 | ||
15510 | fi | |
15511 | ||
15512 | if test $ac_cv_header_stdc = yes; then | |
15513 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15514 | if test "$cross_compiling" = yes; then | |
15515 | : | |
15516 | else | |
15517 | cat >conftest.$ac_ext <<_ACEOF | |
15518 | /* confdefs.h. */ | |
15519 | _ACEOF | |
15520 | cat confdefs.h >>conftest.$ac_ext | |
15521 | cat >>conftest.$ac_ext <<_ACEOF | |
15522 | /* end confdefs.h. */ | |
15523 | #include <ctype.h> | |
15524 | #if ((' ' & 0x0FF) == 0x020) | |
15525 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15526 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15527 | #else | |
15528 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
15529 | (('a' <= (c) && (c) <= 'i') \ |
15530 | || ('j' <= (c) && (c) <= 'r') \ | |
15531 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
15532 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
15533 | #endif | |
15534 | ||
15535 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15536 | int | |
15537 | main () | |
15538 | { | |
15539 | int i; | |
15540 | for (i = 0; i < 256; i++) | |
15541 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 15542 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
15543 | exit(2); |
15544 | exit (0); | |
15545 | } | |
15546 | _ACEOF | |
15547 | rm -f conftest$ac_exeext | |
15548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15549 | (eval $ac_link) 2>&5 | |
15550 | ac_status=$? | |
15551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15552 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15554 | (eval $ac_try) 2>&5 | |
15555 | ac_status=$? | |
15556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15557 | (exit $ac_status); }; }; then | |
15558 | : | |
15559 | else | |
15560 | echo "$as_me: program exited with status $ac_status" >&5 | |
15561 | echo "$as_me: failed program was:" >&5 | |
15562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15563 | ||
15564 | ( exit $ac_status ) | |
15565 | ac_cv_header_stdc=no | |
15566 | fi | |
ac1cb8d3 | 15567 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15568 | fi |
15569 | fi | |
15570 | fi | |
15571 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
15572 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
15573 | if test $ac_cv_header_stdc = yes; then | |
15574 | ||
15575 | cat >>confdefs.h <<\_ACEOF | |
15576 | #define STDC_HEADERS 1 | |
15577 | _ACEOF | |
15578 | ||
15579 | fi | |
15580 | ||
15581 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
15582 | ||
15583 | ||
15584 | ||
15585 | ||
15586 | ||
15587 | ||
15588 | ||
15589 | ||
15590 | ||
15591 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 15592 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
15593 | do |
15594 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15599 | else | |
15600 | cat >conftest.$ac_ext <<_ACEOF | |
15601 | /* confdefs.h. */ | |
15602 | _ACEOF | |
15603 | cat confdefs.h >>conftest.$ac_ext | |
15604 | cat >>conftest.$ac_ext <<_ACEOF | |
15605 | /* end confdefs.h. */ | |
15606 | $ac_includes_default | |
15607 | ||
15608 | #include <$ac_header> | |
15609 | _ACEOF | |
15610 | rm -f conftest.$ac_objext | |
15611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15612 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15613 | ac_status=$? |
ac1cb8d3 VS |
15614 | grep -v '^ *+' conftest.er1 >conftest.err |
15615 | rm -f conftest.er1 | |
15616 | cat conftest.err >&5 | |
a848cd7e SC |
15617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15618 | (exit $ac_status); } && | |
f10e38c4 | 15619 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15621 | (eval $ac_try) 2>&5 | |
15622 | ac_status=$? | |
15623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15624 | (exit $ac_status); }; } && | |
15625 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15627 | (eval $ac_try) 2>&5 | |
15628 | ac_status=$? | |
15629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15630 | (exit $ac_status); }; }; then | |
15631 | eval "$as_ac_Header=yes" | |
15632 | else | |
15633 | echo "$as_me: failed program was:" >&5 | |
15634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15635 | ||
15636 | eval "$as_ac_Header=no" | |
15637 | fi | |
ac1cb8d3 | 15638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15639 | fi |
15640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15641 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15642 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15643 | cat >>confdefs.h <<_ACEOF | |
15644 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15645 | _ACEOF | |
15646 | ||
15647 | fi | |
15648 | ||
15649 | done | |
15650 | ||
15651 | ||
15652 | ||
15653 | for ac_header in stdlib.h | |
15654 | do | |
15655 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15656 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15657 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15661 | fi | |
15662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15663 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15664 | else | |
15665 | # Is the header compilable? | |
15666 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15667 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15668 | cat >conftest.$ac_ext <<_ACEOF | |
15669 | /* confdefs.h. */ | |
15670 | _ACEOF | |
15671 | cat confdefs.h >>conftest.$ac_ext | |
15672 | cat >>conftest.$ac_ext <<_ACEOF | |
15673 | /* end confdefs.h. */ | |
15674 | $ac_includes_default | |
15675 | #include <$ac_header> | |
15676 | _ACEOF | |
15677 | rm -f conftest.$ac_objext | |
15678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15679 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15680 | ac_status=$? |
ac1cb8d3 VS |
15681 | grep -v '^ *+' conftest.er1 >conftest.err |
15682 | rm -f conftest.er1 | |
15683 | cat conftest.err >&5 | |
a848cd7e SC |
15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15685 | (exit $ac_status); } && | |
f10e38c4 | 15686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15688 | (eval $ac_try) 2>&5 | |
15689 | ac_status=$? | |
15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15691 | (exit $ac_status); }; } && | |
15692 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15694 | (eval $ac_try) 2>&5 | |
15695 | ac_status=$? | |
15696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15697 | (exit $ac_status); }; }; then | |
15698 | ac_header_compiler=yes | |
15699 | else | |
15700 | echo "$as_me: failed program was:" >&5 | |
15701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15702 | ||
15703 | ac_header_compiler=no | |
15704 | fi | |
ac1cb8d3 | 15705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15706 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15707 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15708 | ||
15709 | # Is the header present? | |
15710 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15711 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15712 | cat >conftest.$ac_ext <<_ACEOF | |
15713 | /* confdefs.h. */ | |
15714 | _ACEOF | |
15715 | cat confdefs.h >>conftest.$ac_ext | |
15716 | cat >>conftest.$ac_ext <<_ACEOF | |
15717 | /* end confdefs.h. */ | |
15718 | #include <$ac_header> | |
15719 | _ACEOF | |
15720 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15721 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15722 | ac_status=$? | |
15723 | grep -v '^ *+' conftest.er1 >conftest.err | |
15724 | rm -f conftest.er1 | |
15725 | cat conftest.err >&5 | |
15726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15727 | (exit $ac_status); } >/dev/null; then | |
15728 | if test -s conftest.err; then | |
15729 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15730 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15731 | else |
15732 | ac_cpp_err= | |
15733 | fi | |
15734 | else | |
15735 | ac_cpp_err=yes | |
15736 | fi | |
15737 | if test -z "$ac_cpp_err"; then | |
15738 | ac_header_preproc=yes | |
15739 | else | |
15740 | echo "$as_me: failed program was:" >&5 | |
15741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15742 | ||
15743 | ac_header_preproc=no | |
15744 | fi | |
15745 | rm -f conftest.err conftest.$ac_ext | |
15746 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15747 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15748 | ||
15749 | # So? What about this header? | |
ac1cb8d3 VS |
15750 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15751 | yes:no: ) | |
a848cd7e SC |
15752 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15753 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15754 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15755 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15756 | ac_header_preproc=yes | |
a848cd7e | 15757 | ;; |
ac1cb8d3 | 15758 | no:yes:* ) |
a848cd7e SC |
15759 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15760 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15761 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15762 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15763 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15764 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15765 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15766 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15767 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15768 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15769 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15770 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15771 | ( |
15772 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15773 | ## ----------------------------------------- ## |
15774 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15775 | ## ----------------------------------------- ## | |
a848cd7e SC |
15776 | _ASBOX |
15777 | ) | | |
15778 | sed "s/^/$as_me: WARNING: /" >&2 | |
15779 | ;; | |
15780 | esac | |
15781 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15785 | else | |
ac1cb8d3 | 15786 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15787 | fi |
15788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15789 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15790 | ||
15791 | fi | |
15792 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15793 | cat >>confdefs.h <<_ACEOF | |
15794 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15795 | _ACEOF | |
15796 | ||
15797 | fi | |
15798 | ||
15799 | done | |
15800 | ||
15801 | ||
15802 | for ac_header in malloc.h | |
15803 | do | |
15804 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15806 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15807 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15810 | fi | |
15811 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15812 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15813 | else | |
15814 | # Is the header compilable? | |
15815 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15816 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15817 | cat >conftest.$ac_ext <<_ACEOF | |
15818 | /* confdefs.h. */ | |
15819 | _ACEOF | |
15820 | cat confdefs.h >>conftest.$ac_ext | |
15821 | cat >>conftest.$ac_ext <<_ACEOF | |
15822 | /* end confdefs.h. */ | |
15823 | $ac_includes_default | |
15824 | #include <$ac_header> | |
15825 | _ACEOF | |
15826 | rm -f conftest.$ac_objext | |
15827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15828 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15829 | ac_status=$? |
ac1cb8d3 VS |
15830 | grep -v '^ *+' conftest.er1 >conftest.err |
15831 | rm -f conftest.er1 | |
15832 | cat conftest.err >&5 | |
a848cd7e SC |
15833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15834 | (exit $ac_status); } && | |
f10e38c4 | 15835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15837 | (eval $ac_try) 2>&5 | |
15838 | ac_status=$? | |
15839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15840 | (exit $ac_status); }; } && | |
15841 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15843 | (eval $ac_try) 2>&5 | |
15844 | ac_status=$? | |
15845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15846 | (exit $ac_status); }; }; then | |
15847 | ac_header_compiler=yes | |
15848 | else | |
15849 | echo "$as_me: failed program was:" >&5 | |
15850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15851 | ||
15852 | ac_header_compiler=no | |
15853 | fi | |
ac1cb8d3 | 15854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15855 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15856 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15857 | ||
15858 | # Is the header present? | |
15859 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15860 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15861 | cat >conftest.$ac_ext <<_ACEOF | |
15862 | /* confdefs.h. */ | |
15863 | _ACEOF | |
15864 | cat confdefs.h >>conftest.$ac_ext | |
15865 | cat >>conftest.$ac_ext <<_ACEOF | |
15866 | /* end confdefs.h. */ | |
15867 | #include <$ac_header> | |
15868 | _ACEOF | |
15869 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15870 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15871 | ac_status=$? | |
15872 | grep -v '^ *+' conftest.er1 >conftest.err | |
15873 | rm -f conftest.er1 | |
15874 | cat conftest.err >&5 | |
15875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15876 | (exit $ac_status); } >/dev/null; then | |
15877 | if test -s conftest.err; then | |
15878 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15879 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15880 | else |
15881 | ac_cpp_err= | |
15882 | fi | |
15883 | else | |
15884 | ac_cpp_err=yes | |
15885 | fi | |
15886 | if test -z "$ac_cpp_err"; then | |
15887 | ac_header_preproc=yes | |
15888 | else | |
15889 | echo "$as_me: failed program was:" >&5 | |
15890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15891 | ||
15892 | ac_header_preproc=no | |
15893 | fi | |
15894 | rm -f conftest.err conftest.$ac_ext | |
15895 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15896 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15897 | ||
15898 | # So? What about this header? | |
ac1cb8d3 VS |
15899 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15900 | yes:no: ) | |
a848cd7e SC |
15901 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15902 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15904 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15905 | ac_header_preproc=yes | |
a848cd7e | 15906 | ;; |
ac1cb8d3 | 15907 | no:yes:* ) |
a848cd7e SC |
15908 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15909 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15910 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15911 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15912 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15913 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15914 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15915 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15916 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15917 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15918 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15919 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15920 | ( |
15921 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15922 | ## ----------------------------------------- ## |
15923 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15924 | ## ----------------------------------------- ## | |
a848cd7e SC |
15925 | _ASBOX |
15926 | ) | | |
15927 | sed "s/^/$as_me: WARNING: /" >&2 | |
15928 | ;; | |
15929 | esac | |
15930 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15934 | else | |
ac1cb8d3 | 15935 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15936 | fi |
15937 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15938 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15939 | ||
15940 | fi | |
15941 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15942 | cat >>confdefs.h <<_ACEOF | |
15943 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15944 | _ACEOF | |
15945 | ||
15946 | fi | |
15947 | ||
15948 | done | |
15949 | ||
15950 | ||
15951 | for ac_header in unistd.h | |
15952 | do | |
15953 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15955 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15956 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15959 | fi | |
15960 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15961 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15962 | else | |
15963 | # Is the header compilable? | |
15964 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15965 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15966 | cat >conftest.$ac_ext <<_ACEOF | |
15967 | /* confdefs.h. */ | |
15968 | _ACEOF | |
15969 | cat confdefs.h >>conftest.$ac_ext | |
15970 | cat >>conftest.$ac_ext <<_ACEOF | |
15971 | /* end confdefs.h. */ | |
15972 | $ac_includes_default | |
15973 | #include <$ac_header> | |
15974 | _ACEOF | |
15975 | rm -f conftest.$ac_objext | |
15976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15977 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15978 | ac_status=$? |
ac1cb8d3 VS |
15979 | grep -v '^ *+' conftest.er1 >conftest.err |
15980 | rm -f conftest.er1 | |
15981 | cat conftest.err >&5 | |
a848cd7e SC |
15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15983 | (exit $ac_status); } && | |
f10e38c4 | 15984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15986 | (eval $ac_try) 2>&5 | |
15987 | ac_status=$? | |
15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15989 | (exit $ac_status); }; } && | |
15990 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15992 | (eval $ac_try) 2>&5 | |
15993 | ac_status=$? | |
15994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15995 | (exit $ac_status); }; }; then | |
15996 | ac_header_compiler=yes | |
15997 | else | |
15998 | echo "$as_me: failed program was:" >&5 | |
15999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16000 | ||
16001 | ac_header_compiler=no | |
16002 | fi | |
ac1cb8d3 | 16003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16004 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16005 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16006 | ||
16007 | # Is the header present? | |
16008 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16009 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16010 | cat >conftest.$ac_ext <<_ACEOF | |
16011 | /* confdefs.h. */ | |
16012 | _ACEOF | |
16013 | cat confdefs.h >>conftest.$ac_ext | |
16014 | cat >>conftest.$ac_ext <<_ACEOF | |
16015 | /* end confdefs.h. */ | |
16016 | #include <$ac_header> | |
16017 | _ACEOF | |
16018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16020 | ac_status=$? | |
16021 | grep -v '^ *+' conftest.er1 >conftest.err | |
16022 | rm -f conftest.er1 | |
16023 | cat conftest.err >&5 | |
16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16025 | (exit $ac_status); } >/dev/null; then | |
16026 | if test -s conftest.err; then | |
16027 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16028 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16029 | else |
16030 | ac_cpp_err= | |
16031 | fi | |
16032 | else | |
16033 | ac_cpp_err=yes | |
16034 | fi | |
16035 | if test -z "$ac_cpp_err"; then | |
16036 | ac_header_preproc=yes | |
16037 | else | |
16038 | echo "$as_me: failed program was:" >&5 | |
16039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16040 | ||
16041 | ac_header_preproc=no | |
16042 | fi | |
16043 | rm -f conftest.err conftest.$ac_ext | |
16044 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16045 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16046 | ||
16047 | # So? What about this header? | |
ac1cb8d3 VS |
16048 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16049 | yes:no: ) | |
a848cd7e SC |
16050 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16051 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16053 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16054 | ac_header_preproc=yes | |
a848cd7e | 16055 | ;; |
ac1cb8d3 | 16056 | no:yes:* ) |
a848cd7e SC |
16057 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16058 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16059 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16060 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16061 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16062 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16063 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16064 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16065 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16066 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16067 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16068 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16069 | ( |
16070 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16071 | ## ----------------------------------------- ## |
16072 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16073 | ## ----------------------------------------- ## | |
a848cd7e SC |
16074 | _ASBOX |
16075 | ) | | |
16076 | sed "s/^/$as_me: WARNING: /" >&2 | |
16077 | ;; | |
16078 | esac | |
16079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16083 | else | |
ac1cb8d3 | 16084 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16085 | fi |
16086 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16087 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16088 | ||
16089 | fi | |
16090 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16091 | cat >>confdefs.h <<_ACEOF | |
16092 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16093 | _ACEOF | |
16094 | ||
16095 | fi | |
16096 | ||
16097 | done | |
16098 | ||
16099 | ||
16100 | for ac_header in wchar.h | |
16101 | do | |
16102 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16104 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16105 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16106 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16108 | fi | |
16109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16110 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16111 | else | |
16112 | # Is the header compilable? | |
16113 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16114 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16115 | cat >conftest.$ac_ext <<_ACEOF | |
16116 | /* confdefs.h. */ | |
16117 | _ACEOF | |
16118 | cat confdefs.h >>conftest.$ac_ext | |
16119 | cat >>conftest.$ac_ext <<_ACEOF | |
16120 | /* end confdefs.h. */ | |
16121 | $ac_includes_default | |
16122 | #include <$ac_header> | |
16123 | _ACEOF | |
16124 | rm -f conftest.$ac_objext | |
16125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16126 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16127 | ac_status=$? |
ac1cb8d3 VS |
16128 | grep -v '^ *+' conftest.er1 >conftest.err |
16129 | rm -f conftest.er1 | |
16130 | cat conftest.err >&5 | |
a848cd7e SC |
16131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16132 | (exit $ac_status); } && | |
f10e38c4 | 16133 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16135 | (eval $ac_try) 2>&5 | |
16136 | ac_status=$? | |
16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16138 | (exit $ac_status); }; } && | |
16139 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16141 | (eval $ac_try) 2>&5 | |
16142 | ac_status=$? | |
16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16144 | (exit $ac_status); }; }; then | |
16145 | ac_header_compiler=yes | |
16146 | else | |
16147 | echo "$as_me: failed program was:" >&5 | |
16148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16149 | ||
16150 | ac_header_compiler=no | |
16151 | fi | |
ac1cb8d3 | 16152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16153 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16154 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16155 | ||
16156 | # Is the header present? | |
16157 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16158 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16159 | cat >conftest.$ac_ext <<_ACEOF | |
16160 | /* confdefs.h. */ | |
16161 | _ACEOF | |
16162 | cat confdefs.h >>conftest.$ac_ext | |
16163 | cat >>conftest.$ac_ext <<_ACEOF | |
16164 | /* end confdefs.h. */ | |
16165 | #include <$ac_header> | |
16166 | _ACEOF | |
16167 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16168 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16169 | ac_status=$? | |
16170 | grep -v '^ *+' conftest.er1 >conftest.err | |
16171 | rm -f conftest.er1 | |
16172 | cat conftest.err >&5 | |
16173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16174 | (exit $ac_status); } >/dev/null; then | |
16175 | if test -s conftest.err; then | |
16176 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16177 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16178 | else |
16179 | ac_cpp_err= | |
16180 | fi | |
16181 | else | |
16182 | ac_cpp_err=yes | |
16183 | fi | |
16184 | if test -z "$ac_cpp_err"; then | |
16185 | ac_header_preproc=yes | |
16186 | else | |
16187 | echo "$as_me: failed program was:" >&5 | |
16188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16189 | ||
16190 | ac_header_preproc=no | |
16191 | fi | |
16192 | rm -f conftest.err conftest.$ac_ext | |
16193 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16194 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16195 | ||
16196 | # So? What about this header? | |
ac1cb8d3 VS |
16197 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16198 | yes:no: ) | |
a848cd7e SC |
16199 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16200 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16201 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16202 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16203 | ac_header_preproc=yes | |
a848cd7e | 16204 | ;; |
ac1cb8d3 | 16205 | no:yes:* ) |
a848cd7e SC |
16206 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16207 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16208 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16209 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16210 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16211 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16212 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16213 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16214 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16215 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16216 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16217 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16218 | ( |
16219 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16220 | ## ----------------------------------------- ## |
16221 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16222 | ## ----------------------------------------- ## | |
a848cd7e SC |
16223 | _ASBOX |
16224 | ) | | |
16225 | sed "s/^/$as_me: WARNING: /" >&2 | |
16226 | ;; | |
16227 | esac | |
16228 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16229 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16232 | else | |
ac1cb8d3 | 16233 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16234 | fi |
16235 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16236 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16237 | ||
16238 | fi | |
16239 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16240 | cat >>confdefs.h <<_ACEOF | |
16241 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16242 | _ACEOF | |
16243 | ||
16244 | fi | |
16245 | ||
16246 | done | |
16247 | ||
16248 | ||
16249 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16250 | ||
16251 | for ac_header in wcstr.h | |
16252 | do | |
16253 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16254 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16255 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16256 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16257 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16259 | fi | |
16260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16261 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16262 | else | |
16263 | # Is the header compilable? | |
16264 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16265 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16266 | cat >conftest.$ac_ext <<_ACEOF | |
16267 | /* confdefs.h. */ | |
16268 | _ACEOF | |
16269 | cat confdefs.h >>conftest.$ac_ext | |
16270 | cat >>conftest.$ac_ext <<_ACEOF | |
16271 | /* end confdefs.h. */ | |
16272 | $ac_includes_default | |
16273 | #include <$ac_header> | |
16274 | _ACEOF | |
16275 | rm -f conftest.$ac_objext | |
16276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16277 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16278 | ac_status=$? |
ac1cb8d3 VS |
16279 | grep -v '^ *+' conftest.er1 >conftest.err |
16280 | rm -f conftest.er1 | |
16281 | cat conftest.err >&5 | |
a848cd7e SC |
16282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16283 | (exit $ac_status); } && | |
f10e38c4 | 16284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16286 | (eval $ac_try) 2>&5 | |
16287 | ac_status=$? | |
16288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16289 | (exit $ac_status); }; } && | |
16290 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16292 | (eval $ac_try) 2>&5 | |
16293 | ac_status=$? | |
16294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16295 | (exit $ac_status); }; }; then | |
16296 | ac_header_compiler=yes | |
16297 | else | |
16298 | echo "$as_me: failed program was:" >&5 | |
16299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16300 | ||
16301 | ac_header_compiler=no | |
16302 | fi | |
ac1cb8d3 | 16303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16304 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16305 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16306 | ||
16307 | # Is the header present? | |
16308 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16309 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16310 | cat >conftest.$ac_ext <<_ACEOF | |
16311 | /* confdefs.h. */ | |
16312 | _ACEOF | |
16313 | cat confdefs.h >>conftest.$ac_ext | |
16314 | cat >>conftest.$ac_ext <<_ACEOF | |
16315 | /* end confdefs.h. */ | |
16316 | #include <$ac_header> | |
16317 | _ACEOF | |
16318 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16319 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16320 | ac_status=$? | |
16321 | grep -v '^ *+' conftest.er1 >conftest.err | |
16322 | rm -f conftest.er1 | |
16323 | cat conftest.err >&5 | |
16324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16325 | (exit $ac_status); } >/dev/null; then | |
16326 | if test -s conftest.err; then | |
16327 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16328 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16329 | else |
16330 | ac_cpp_err= | |
16331 | fi | |
16332 | else | |
16333 | ac_cpp_err=yes | |
16334 | fi | |
16335 | if test -z "$ac_cpp_err"; then | |
16336 | ac_header_preproc=yes | |
16337 | else | |
16338 | echo "$as_me: failed program was:" >&5 | |
16339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16340 | ||
16341 | ac_header_preproc=no | |
16342 | fi | |
16343 | rm -f conftest.err conftest.$ac_ext | |
16344 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16345 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16346 | ||
16347 | # So? What about this header? | |
ac1cb8d3 VS |
16348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16349 | yes:no: ) | |
a848cd7e SC |
16350 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16351 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16352 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16353 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16354 | ac_header_preproc=yes | |
a848cd7e | 16355 | ;; |
ac1cb8d3 | 16356 | no:yes:* ) |
a848cd7e SC |
16357 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16358 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16359 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16360 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16361 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16362 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16363 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16364 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16365 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16366 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16367 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16368 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16369 | ( |
16370 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16371 | ## ----------------------------------------- ## |
16372 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16373 | ## ----------------------------------------- ## | |
a848cd7e SC |
16374 | _ASBOX |
16375 | ) | | |
16376 | sed "s/^/$as_me: WARNING: /" >&2 | |
16377 | ;; | |
16378 | esac | |
16379 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16380 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16381 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16383 | else | |
ac1cb8d3 | 16384 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16385 | fi |
16386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16388 | ||
16389 | fi | |
16390 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16391 | cat >>confdefs.h <<_ACEOF | |
16392 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16393 | _ACEOF | |
16394 | ||
16395 | fi | |
16396 | ||
16397 | done | |
16398 | ||
16399 | fi | |
16400 | ||
16401 | ||
16402 | for ac_header in fnmatch.h | |
16403 | do | |
16404 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16405 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16406 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16407 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16408 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16410 | fi | |
16411 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16412 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16413 | else | |
16414 | # Is the header compilable? | |
16415 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16416 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16417 | cat >conftest.$ac_ext <<_ACEOF | |
16418 | /* confdefs.h. */ | |
16419 | _ACEOF | |
16420 | cat confdefs.h >>conftest.$ac_ext | |
16421 | cat >>conftest.$ac_ext <<_ACEOF | |
16422 | /* end confdefs.h. */ | |
16423 | $ac_includes_default | |
16424 | #include <$ac_header> | |
16425 | _ACEOF | |
16426 | rm -f conftest.$ac_objext | |
16427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16428 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16429 | ac_status=$? |
ac1cb8d3 VS |
16430 | grep -v '^ *+' conftest.er1 >conftest.err |
16431 | rm -f conftest.er1 | |
16432 | cat conftest.err >&5 | |
a848cd7e SC |
16433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16434 | (exit $ac_status); } && | |
f10e38c4 | 16435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16437 | (eval $ac_try) 2>&5 | |
16438 | ac_status=$? | |
16439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16440 | (exit $ac_status); }; } && | |
16441 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16443 | (eval $ac_try) 2>&5 | |
16444 | ac_status=$? | |
16445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16446 | (exit $ac_status); }; }; then | |
16447 | ac_header_compiler=yes | |
16448 | else | |
16449 | echo "$as_me: failed program was:" >&5 | |
16450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16451 | ||
16452 | ac_header_compiler=no | |
16453 | fi | |
ac1cb8d3 | 16454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16455 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16456 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16457 | ||
16458 | # Is the header present? | |
16459 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16460 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16461 | cat >conftest.$ac_ext <<_ACEOF | |
16462 | /* confdefs.h. */ | |
16463 | _ACEOF | |
16464 | cat confdefs.h >>conftest.$ac_ext | |
16465 | cat >>conftest.$ac_ext <<_ACEOF | |
16466 | /* end confdefs.h. */ | |
16467 | #include <$ac_header> | |
16468 | _ACEOF | |
16469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16471 | ac_status=$? | |
16472 | grep -v '^ *+' conftest.er1 >conftest.err | |
16473 | rm -f conftest.er1 | |
16474 | cat conftest.err >&5 | |
16475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16476 | (exit $ac_status); } >/dev/null; then | |
16477 | if test -s conftest.err; then | |
16478 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16480 | else |
16481 | ac_cpp_err= | |
16482 | fi | |
16483 | else | |
16484 | ac_cpp_err=yes | |
16485 | fi | |
16486 | if test -z "$ac_cpp_err"; then | |
16487 | ac_header_preproc=yes | |
16488 | else | |
16489 | echo "$as_me: failed program was:" >&5 | |
16490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16491 | ||
16492 | ac_header_preproc=no | |
16493 | fi | |
16494 | rm -f conftest.err conftest.$ac_ext | |
16495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16496 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16497 | ||
16498 | # So? What about this header? | |
ac1cb8d3 VS |
16499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16500 | yes:no: ) | |
a848cd7e SC |
16501 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16502 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16503 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16504 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16505 | ac_header_preproc=yes | |
a848cd7e | 16506 | ;; |
ac1cb8d3 | 16507 | no:yes:* ) |
a848cd7e SC |
16508 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16509 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16510 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16511 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16512 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16513 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16514 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16515 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16516 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16517 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16518 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16519 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16520 | ( |
16521 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16522 | ## ----------------------------------------- ## |
16523 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16524 | ## ----------------------------------------- ## | |
a848cd7e SC |
16525 | _ASBOX |
16526 | ) | | |
16527 | sed "s/^/$as_me: WARNING: /" >&2 | |
16528 | ;; | |
16529 | esac | |
16530 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16531 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16534 | else | |
ac1cb8d3 | 16535 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16536 | fi |
16537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16538 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16539 | ||
16540 | fi | |
16541 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16542 | cat >>confdefs.h <<_ACEOF | |
16543 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16544 | _ACEOF | |
16545 | ||
16546 | fi | |
16547 | ||
16548 | done | |
16549 | ||
16550 | ||
a848cd7e SC |
16551 | |
16552 | for ac_header in langinfo.h | |
16553 | do | |
16554 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16555 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16556 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16557 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16558 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16560 | fi | |
16561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16562 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16563 | else | |
16564 | # Is the header compilable? | |
16565 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16566 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16567 | cat >conftest.$ac_ext <<_ACEOF | |
16568 | /* confdefs.h. */ | |
16569 | _ACEOF | |
16570 | cat confdefs.h >>conftest.$ac_ext | |
16571 | cat >>conftest.$ac_ext <<_ACEOF | |
16572 | /* end confdefs.h. */ | |
16573 | $ac_includes_default | |
16574 | #include <$ac_header> | |
16575 | _ACEOF | |
16576 | rm -f conftest.$ac_objext | |
16577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16578 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16579 | ac_status=$? |
ac1cb8d3 VS |
16580 | grep -v '^ *+' conftest.er1 >conftest.err |
16581 | rm -f conftest.er1 | |
16582 | cat conftest.err >&5 | |
a848cd7e SC |
16583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16584 | (exit $ac_status); } && | |
f10e38c4 | 16585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16587 | (eval $ac_try) 2>&5 | |
16588 | ac_status=$? | |
16589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16590 | (exit $ac_status); }; } && | |
16591 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16593 | (eval $ac_try) 2>&5 | |
16594 | ac_status=$? | |
16595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16596 | (exit $ac_status); }; }; then | |
16597 | ac_header_compiler=yes | |
16598 | else | |
16599 | echo "$as_me: failed program was:" >&5 | |
16600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16601 | ||
16602 | ac_header_compiler=no | |
16603 | fi | |
ac1cb8d3 | 16604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16605 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16606 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16607 | ||
16608 | # Is the header present? | |
16609 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16610 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16611 | cat >conftest.$ac_ext <<_ACEOF | |
16612 | /* confdefs.h. */ | |
16613 | _ACEOF | |
16614 | cat confdefs.h >>conftest.$ac_ext | |
16615 | cat >>conftest.$ac_ext <<_ACEOF | |
16616 | /* end confdefs.h. */ | |
16617 | #include <$ac_header> | |
16618 | _ACEOF | |
16619 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16620 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16621 | ac_status=$? | |
16622 | grep -v '^ *+' conftest.er1 >conftest.err | |
16623 | rm -f conftest.er1 | |
16624 | cat conftest.err >&5 | |
16625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16626 | (exit $ac_status); } >/dev/null; then | |
16627 | if test -s conftest.err; then | |
16628 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16629 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16630 | else |
16631 | ac_cpp_err= | |
16632 | fi | |
16633 | else | |
16634 | ac_cpp_err=yes | |
16635 | fi | |
16636 | if test -z "$ac_cpp_err"; then | |
16637 | ac_header_preproc=yes | |
16638 | else | |
16639 | echo "$as_me: failed program was:" >&5 | |
16640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16641 | ||
16642 | ac_header_preproc=no | |
16643 | fi | |
16644 | rm -f conftest.err conftest.$ac_ext | |
16645 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16646 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16647 | ||
16648 | # So? What about this header? | |
ac1cb8d3 VS |
16649 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16650 | yes:no: ) | |
a848cd7e SC |
16651 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16652 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16653 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16654 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16655 | ac_header_preproc=yes | |
a848cd7e | 16656 | ;; |
ac1cb8d3 | 16657 | no:yes:* ) |
a848cd7e SC |
16658 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16659 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16660 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16661 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16662 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16663 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16664 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16665 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16666 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16667 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16668 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16669 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16670 | ( |
16671 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16672 | ## ----------------------------------------- ## |
16673 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16674 | ## ----------------------------------------- ## | |
a848cd7e SC |
16675 | _ASBOX |
16676 | ) | | |
16677 | sed "s/^/$as_me: WARNING: /" >&2 | |
16678 | ;; | |
16679 | esac | |
16680 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16681 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16682 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16684 | else | |
ac1cb8d3 | 16685 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16686 | fi |
16687 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16688 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16689 | ||
16690 | fi | |
16691 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16692 | cat >>confdefs.h <<_ACEOF | |
16693 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16694 | _ACEOF | |
16695 | ||
16696 | fi | |
16697 | ||
16698 | done | |
16699 | ||
16700 | ||
16701 | case "${host}" in | |
16702 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
16703 | if test $ac_cv_header_langinfo_h = "yes" \ |
16704 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
16705 | -o "$wx_cv_gccversion" = "EMX3" \ | |
16706 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
16707 | LIBS="$LIBS -lintl" |
16708 | fi | |
16709 | ;; | |
16710 | esac | |
16711 | ||
a848cd7e SC |
16712 | |
16713 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
16714 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
16715 | if test "${ac_cv_c_const+set}" = set; then | |
16716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16717 | else | |
16718 | cat >conftest.$ac_ext <<_ACEOF | |
16719 | /* confdefs.h. */ | |
16720 | _ACEOF | |
16721 | cat confdefs.h >>conftest.$ac_ext | |
16722 | cat >>conftest.$ac_ext <<_ACEOF | |
16723 | /* end confdefs.h. */ | |
16724 | ||
16725 | int | |
16726 | main () | |
16727 | { | |
16728 | /* FIXME: Include the comments suggested by Paul. */ | |
16729 | #ifndef __cplusplus | |
16730 | /* Ultrix mips cc rejects this. */ | |
16731 | typedef int charset[2]; | |
16732 | const charset x; | |
16733 | /* SunOS 4.1.1 cc rejects this. */ | |
16734 | char const *const *ccp; | |
16735 | char **p; | |
16736 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
16737 | struct point {int x, y;}; | |
16738 | static struct point const zero = {0,0}; | |
16739 | /* AIX XL C 1.02.0.0 rejects this. | |
16740 | It does not let you subtract one const X* pointer from another in | |
16741 | an arm of an if-expression whose if-part is not a constant | |
16742 | expression */ | |
16743 | const char *g = "string"; | |
16744 | ccp = &g + (g ? g-g : 0); | |
16745 | /* HPUX 7.0 cc rejects these. */ | |
16746 | ++ccp; | |
16747 | p = (char**) ccp; | |
16748 | ccp = (char const *const *) p; | |
16749 | { /* SCO 3.2v4 cc rejects this. */ | |
16750 | char *t; | |
16751 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
16752 | ||
16753 | *t++ = 0; | |
16754 | } | |
16755 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
16756 | int x[] = {25, 17}; | |
16757 | const int *foo = &x[0]; | |
16758 | ++foo; | |
16759 | } | |
16760 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
16761 | typedef const int *iptr; | |
16762 | iptr p = 0; | |
16763 | ++p; | |
16764 | } | |
16765 | { /* AIX XL C 1.02.0.0 rejects this saying | |
16766 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
16767 | struct s { int j; const int *ap[3]; }; | |
16768 | struct s *b; b->j = 5; | |
16769 | } | |
16770 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
16771 | const int foo = 10; | |
16772 | } | |
16773 | #endif | |
16774 | ||
16775 | ; | |
16776 | return 0; | |
16777 | } | |
16778 | _ACEOF | |
16779 | rm -f conftest.$ac_objext | |
16780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16781 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16782 | ac_status=$? |
ac1cb8d3 VS |
16783 | grep -v '^ *+' conftest.er1 >conftest.err |
16784 | rm -f conftest.er1 | |
16785 | cat conftest.err >&5 | |
a848cd7e SC |
16786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16787 | (exit $ac_status); } && | |
f10e38c4 | 16788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16790 | (eval $ac_try) 2>&5 | |
16791 | ac_status=$? | |
16792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16793 | (exit $ac_status); }; } && | |
16794 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16796 | (eval $ac_try) 2>&5 | |
16797 | ac_status=$? | |
16798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16799 | (exit $ac_status); }; }; then | |
16800 | ac_cv_c_const=yes | |
16801 | else | |
16802 | echo "$as_me: failed program was:" >&5 | |
16803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16804 | ||
16805 | ac_cv_c_const=no | |
16806 | fi | |
ac1cb8d3 | 16807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16808 | fi |
16809 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
16810 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
16811 | if test $ac_cv_c_const = no; then | |
16812 | ||
16813 | cat >>confdefs.h <<\_ACEOF | |
16814 | #define const | |
16815 | _ACEOF | |
16816 | ||
16817 | fi | |
16818 | ||
16819 | echo "$as_me:$LINENO: checking for inline" >&5 | |
16820 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
16821 | if test "${ac_cv_c_inline+set}" = set; then | |
16822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16823 | else | |
16824 | ac_cv_c_inline=no | |
16825 | for ac_kw in inline __inline__ __inline; do | |
16826 | cat >conftest.$ac_ext <<_ACEOF | |
16827 | /* confdefs.h. */ | |
16828 | _ACEOF | |
16829 | cat confdefs.h >>conftest.$ac_ext | |
16830 | cat >>conftest.$ac_ext <<_ACEOF | |
16831 | /* end confdefs.h. */ | |
16832 | #ifndef __cplusplus | |
16833 | typedef int foo_t; | |
16834 | static $ac_kw foo_t static_foo () {return 0; } | |
16835 | $ac_kw foo_t foo () {return 0; } | |
16836 | #endif | |
16837 | ||
16838 | _ACEOF | |
16839 | rm -f conftest.$ac_objext | |
16840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16841 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16842 | ac_status=$? |
ac1cb8d3 VS |
16843 | grep -v '^ *+' conftest.er1 >conftest.err |
16844 | rm -f conftest.er1 | |
16845 | cat conftest.err >&5 | |
a848cd7e SC |
16846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16847 | (exit $ac_status); } && | |
f10e38c4 | 16848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16850 | (eval $ac_try) 2>&5 | |
16851 | ac_status=$? | |
16852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16853 | (exit $ac_status); }; } && | |
16854 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16856 | (eval $ac_try) 2>&5 | |
16857 | ac_status=$? | |
16858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16859 | (exit $ac_status); }; }; then | |
16860 | ac_cv_c_inline=$ac_kw; break | |
16861 | else | |
16862 | echo "$as_me: failed program was:" >&5 | |
16863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16864 | ||
16865 | fi | |
ac1cb8d3 | 16866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16867 | done |
16868 | ||
16869 | fi | |
16870 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
16871 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
16872 | |
16873 | ||
a848cd7e SC |
16874 | case $ac_cv_c_inline in |
16875 | inline | yes) ;; | |
ac1cb8d3 VS |
16876 | *) |
16877 | case $ac_cv_c_inline in | |
16878 | no) ac_val=;; | |
16879 | *) ac_val=$ac_cv_c_inline;; | |
16880 | esac | |
16881 | cat >>confdefs.h <<_ACEOF | |
16882 | #ifndef __cplusplus | |
16883 | #define inline $ac_val | |
16884 | #endif | |
de59c161 | 16885 | _ACEOF |
ac1cb8d3 | 16886 | ;; |
a848cd7e SC |
16887 | esac |
16888 | ||
16889 | ||
16890 | echo "$as_me:$LINENO: checking for char" >&5 | |
16891 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
16892 | if test "${ac_cv_type_char+set}" = set; then | |
16893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16894 | else | |
16895 | cat >conftest.$ac_ext <<_ACEOF | |
16896 | /* confdefs.h. */ | |
16897 | _ACEOF | |
16898 | cat confdefs.h >>conftest.$ac_ext | |
16899 | cat >>conftest.$ac_ext <<_ACEOF | |
16900 | /* end confdefs.h. */ | |
16901 | $ac_includes_default | |
16902 | int | |
16903 | main () | |
16904 | { | |
16905 | if ((char *) 0) | |
16906 | return 0; | |
16907 | if (sizeof (char)) | |
16908 | return 0; | |
16909 | ; | |
16910 | return 0; | |
16911 | } | |
16912 | _ACEOF | |
16913 | rm -f conftest.$ac_objext | |
16914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16915 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16916 | ac_status=$? |
ac1cb8d3 VS |
16917 | grep -v '^ *+' conftest.er1 >conftest.err |
16918 | rm -f conftest.er1 | |
16919 | cat conftest.err >&5 | |
a848cd7e SC |
16920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16921 | (exit $ac_status); } && | |
f10e38c4 | 16922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16924 | (eval $ac_try) 2>&5 | |
16925 | ac_status=$? | |
16926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16927 | (exit $ac_status); }; } && | |
16928 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16930 | (eval $ac_try) 2>&5 | |
16931 | ac_status=$? | |
16932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16933 | (exit $ac_status); }; }; then | |
16934 | ac_cv_type_char=yes | |
16935 | else | |
16936 | echo "$as_me: failed program was:" >&5 | |
16937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16938 | ||
16939 | ac_cv_type_char=no | |
16940 | fi | |
ac1cb8d3 | 16941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16942 | fi |
16943 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
16944 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
16945 | ||
16946 | echo "$as_me:$LINENO: checking size of char" >&5 | |
16947 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
16948 | if test "${ac_cv_sizeof_char+set}" = set; then | |
16949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16950 | else | |
16951 | if test "$ac_cv_type_char" = yes; then | |
16952 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16953 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16954 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16955 | # This bug is HP SR number 8606223364. | |
16956 | if test "$cross_compiling" = yes; then | |
16957 | # Depending upon the size, compute the lo and hi bounds. | |
16958 | cat >conftest.$ac_ext <<_ACEOF | |
16959 | /* confdefs.h. */ | |
16960 | _ACEOF | |
16961 | cat confdefs.h >>conftest.$ac_ext | |
16962 | cat >>conftest.$ac_ext <<_ACEOF | |
16963 | /* end confdefs.h. */ | |
16964 | $ac_includes_default | |
16965 | int | |
16966 | main () | |
16967 | { | |
16968 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
16969 | test_array [0] = 0 | |
16970 | ||
16971 | ; | |
16972 | return 0; | |
16973 | } | |
16974 | _ACEOF | |
16975 | rm -f conftest.$ac_objext | |
16976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16977 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16978 | ac_status=$? |
ac1cb8d3 VS |
16979 | grep -v '^ *+' conftest.er1 >conftest.err |
16980 | rm -f conftest.er1 | |
16981 | cat conftest.err >&5 | |
a848cd7e SC |
16982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16983 | (exit $ac_status); } && | |
f10e38c4 | 16984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16986 | (eval $ac_try) 2>&5 | |
16987 | ac_status=$? | |
16988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16989 | (exit $ac_status); }; } && | |
16990 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16992 | (eval $ac_try) 2>&5 | |
16993 | ac_status=$? | |
16994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16995 | (exit $ac_status); }; }; then | |
16996 | ac_lo=0 ac_mid=0 | |
16997 | while :; do | |
16998 | cat >conftest.$ac_ext <<_ACEOF | |
16999 | /* confdefs.h. */ | |
17000 | _ACEOF | |
17001 | cat confdefs.h >>conftest.$ac_ext | |
17002 | cat >>conftest.$ac_ext <<_ACEOF | |
17003 | /* end confdefs.h. */ | |
17004 | $ac_includes_default | |
17005 | int | |
17006 | main () | |
17007 | { | |
17008 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17009 | test_array [0] = 0 | |
17010 | ||
17011 | ; | |
17012 | return 0; | |
17013 | } | |
17014 | _ACEOF | |
17015 | rm -f conftest.$ac_objext | |
17016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17017 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17018 | ac_status=$? |
ac1cb8d3 VS |
17019 | grep -v '^ *+' conftest.er1 >conftest.err |
17020 | rm -f conftest.er1 | |
17021 | cat conftest.err >&5 | |
a848cd7e SC |
17022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17023 | (exit $ac_status); } && | |
f10e38c4 | 17024 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17026 | (eval $ac_try) 2>&5 | |
17027 | ac_status=$? | |
17028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17029 | (exit $ac_status); }; } && | |
17030 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17032 | (eval $ac_try) 2>&5 | |
17033 | ac_status=$? | |
17034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17035 | (exit $ac_status); }; }; then | |
17036 | ac_hi=$ac_mid; break | |
17037 | else | |
17038 | echo "$as_me: failed program was:" >&5 | |
17039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17040 | ||
17041 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17042 | if test $ac_lo -le $ac_mid; then |
17043 | ac_lo= ac_hi= | |
17044 | break | |
17045 | fi | |
17046 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17047 | fi |
ac1cb8d3 | 17048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17049 | done |
17050 | else | |
17051 | echo "$as_me: failed program was:" >&5 | |
17052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17053 | ||
17054 | cat >conftest.$ac_ext <<_ACEOF | |
17055 | /* confdefs.h. */ | |
17056 | _ACEOF | |
17057 | cat confdefs.h >>conftest.$ac_ext | |
17058 | cat >>conftest.$ac_ext <<_ACEOF | |
17059 | /* end confdefs.h. */ | |
17060 | $ac_includes_default | |
17061 | int | |
17062 | main () | |
17063 | { | |
17064 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17065 | test_array [0] = 0 | |
17066 | ||
17067 | ; | |
17068 | return 0; | |
17069 | } | |
17070 | _ACEOF | |
17071 | rm -f conftest.$ac_objext | |
17072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17073 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17074 | ac_status=$? |
ac1cb8d3 VS |
17075 | grep -v '^ *+' conftest.er1 >conftest.err |
17076 | rm -f conftest.er1 | |
17077 | cat conftest.err >&5 | |
a848cd7e SC |
17078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17079 | (exit $ac_status); } && | |
f10e38c4 | 17080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17082 | (eval $ac_try) 2>&5 | |
17083 | ac_status=$? | |
17084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17085 | (exit $ac_status); }; } && | |
17086 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17088 | (eval $ac_try) 2>&5 | |
17089 | ac_status=$? | |
17090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17091 | (exit $ac_status); }; }; then | |
17092 | ac_hi=-1 ac_mid=-1 | |
17093 | while :; do | |
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 | int | |
17102 | main () | |
17103 | { | |
17104 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17105 | test_array [0] = 0 | |
17106 | ||
17107 | ; | |
17108 | return 0; | |
17109 | } | |
17110 | _ACEOF | |
17111 | rm -f conftest.$ac_objext | |
17112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17113 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17114 | ac_status=$? |
ac1cb8d3 VS |
17115 | grep -v '^ *+' conftest.er1 >conftest.err |
17116 | rm -f conftest.er1 | |
17117 | cat conftest.err >&5 | |
a848cd7e SC |
17118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17119 | (exit $ac_status); } && | |
f10e38c4 | 17120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17122 | (eval $ac_try) 2>&5 | |
17123 | ac_status=$? | |
17124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17125 | (exit $ac_status); }; } && | |
17126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17128 | (eval $ac_try) 2>&5 | |
17129 | ac_status=$? | |
17130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17131 | (exit $ac_status); }; }; then | |
17132 | ac_lo=$ac_mid; break | |
17133 | else | |
17134 | echo "$as_me: failed program was:" >&5 | |
17135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17136 | ||
17137 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17138 | if test $ac_mid -le $ac_hi; then |
17139 | ac_lo= ac_hi= | |
17140 | break | |
17141 | fi | |
17142 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17143 | fi |
ac1cb8d3 | 17144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17145 | done |
17146 | else | |
17147 | echo "$as_me: failed program was:" >&5 | |
17148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17149 | ||
17150 | ac_lo= ac_hi= | |
17151 | fi | |
ac1cb8d3 | 17152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17153 | fi |
ac1cb8d3 | 17154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17155 | # Binary search between lo and hi bounds. |
17156 | while test "x$ac_lo" != "x$ac_hi"; do | |
17157 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17158 | cat >conftest.$ac_ext <<_ACEOF | |
17159 | /* confdefs.h. */ | |
17160 | _ACEOF | |
17161 | cat confdefs.h >>conftest.$ac_ext | |
17162 | cat >>conftest.$ac_ext <<_ACEOF | |
17163 | /* end confdefs.h. */ | |
17164 | $ac_includes_default | |
17165 | int | |
17166 | main () | |
17167 | { | |
17168 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17169 | test_array [0] = 0 | |
17170 | ||
17171 | ; | |
17172 | return 0; | |
17173 | } | |
17174 | _ACEOF | |
17175 | rm -f conftest.$ac_objext | |
17176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17177 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17178 | ac_status=$? |
ac1cb8d3 VS |
17179 | grep -v '^ *+' conftest.er1 >conftest.err |
17180 | rm -f conftest.er1 | |
17181 | cat conftest.err >&5 | |
a848cd7e SC |
17182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17183 | (exit $ac_status); } && | |
f10e38c4 | 17184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17186 | (eval $ac_try) 2>&5 | |
17187 | ac_status=$? | |
17188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17189 | (exit $ac_status); }; } && | |
17190 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17192 | (eval $ac_try) 2>&5 | |
17193 | ac_status=$? | |
17194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17195 | (exit $ac_status); }; }; then | |
17196 | ac_hi=$ac_mid | |
17197 | else | |
17198 | echo "$as_me: failed program was:" >&5 | |
17199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17200 | ||
17201 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17202 | fi | |
ac1cb8d3 | 17203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17204 | done |
17205 | case $ac_lo in | |
17206 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
17207 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17208 | See \`config.log' for more details." >&5 | |
17209 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17210 | See \`config.log' for more details." >&2;} | |
17211 | { (exit 1); exit 1; }; } ;; | |
17212 | esac | |
17213 | else | |
17214 | if test "$cross_compiling" = yes; then | |
f10e38c4 VZ |
17215 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17216 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17217 | { (exit 1); exit 1; }; } |
17218 | else | |
17219 | cat >conftest.$ac_ext <<_ACEOF | |
17220 | /* confdefs.h. */ | |
17221 | _ACEOF | |
17222 | cat confdefs.h >>conftest.$ac_ext | |
17223 | cat >>conftest.$ac_ext <<_ACEOF | |
17224 | /* end confdefs.h. */ | |
17225 | $ac_includes_default | |
17226 | long longval () { return (long) (sizeof (char)); } | |
17227 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
17228 | #include <stdio.h> | |
17229 | #include <stdlib.h> | |
17230 | int | |
17231 | main () | |
17232 | { | |
17233 | ||
17234 | FILE *f = fopen ("conftest.val", "w"); | |
17235 | if (! f) | |
17236 | exit (1); | |
17237 | if (((long) (sizeof (char))) < 0) | |
17238 | { | |
17239 | long i = longval (); | |
17240 | if (i != ((long) (sizeof (char)))) | |
17241 | exit (1); | |
17242 | fprintf (f, "%ld\n", i); | |
17243 | } | |
17244 | else | |
17245 | { | |
17246 | unsigned long i = ulongval (); | |
17247 | if (i != ((long) (sizeof (char)))) | |
17248 | exit (1); | |
17249 | fprintf (f, "%lu\n", i); | |
17250 | } | |
17251 | exit (ferror (f) || fclose (f) != 0); | |
17252 | ||
17253 | ; | |
17254 | return 0; | |
17255 | } | |
17256 | _ACEOF | |
17257 | rm -f conftest$ac_exeext | |
17258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17259 | (eval $ac_link) 2>&5 | |
17260 | ac_status=$? | |
17261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17262 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17264 | (eval $ac_try) 2>&5 | |
17265 | ac_status=$? | |
17266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17267 | (exit $ac_status); }; }; then | |
17268 | ac_cv_sizeof_char=`cat conftest.val` | |
17269 | else | |
17270 | echo "$as_me: program exited with status $ac_status" >&5 | |
17271 | echo "$as_me: failed program was:" >&5 | |
17272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17273 | ||
17274 | ( exit $ac_status ) | |
17275 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17276 | See \`config.log' for more details." >&5 | |
17277 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17278 | See \`config.log' for more details." >&2;} | |
17279 | { (exit 1); exit 1; }; } | |
17280 | fi | |
ac1cb8d3 | 17281 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17282 | fi |
17283 | fi | |
17284 | rm -f conftest.val | |
17285 | else | |
17286 | ac_cv_sizeof_char=0 | |
17287 | fi | |
17288 | fi | |
17289 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17290 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17291 | cat >>confdefs.h <<_ACEOF | |
17292 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17293 | _ACEOF | |
17294 | ||
17295 | ||
17296 | echo "$as_me:$LINENO: checking for short" >&5 | |
17297 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
17298 | if test "${ac_cv_type_short+set}" = set; then | |
17299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17300 | else | |
17301 | cat >conftest.$ac_ext <<_ACEOF | |
17302 | /* confdefs.h. */ | |
17303 | _ACEOF | |
17304 | cat confdefs.h >>conftest.$ac_ext | |
17305 | cat >>conftest.$ac_ext <<_ACEOF | |
17306 | /* end confdefs.h. */ | |
17307 | $ac_includes_default | |
17308 | int | |
17309 | main () | |
17310 | { | |
17311 | if ((short *) 0) | |
17312 | return 0; | |
17313 | if (sizeof (short)) | |
17314 | return 0; | |
17315 | ; | |
17316 | return 0; | |
17317 | } | |
17318 | _ACEOF | |
17319 | rm -f conftest.$ac_objext | |
17320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17321 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17322 | ac_status=$? |
ac1cb8d3 VS |
17323 | grep -v '^ *+' conftest.er1 >conftest.err |
17324 | rm -f conftest.er1 | |
17325 | cat conftest.err >&5 | |
a848cd7e SC |
17326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17327 | (exit $ac_status); } && | |
f10e38c4 | 17328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17330 | (eval $ac_try) 2>&5 | |
17331 | ac_status=$? | |
17332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17333 | (exit $ac_status); }; } && | |
17334 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17336 | (eval $ac_try) 2>&5 | |
17337 | ac_status=$? | |
17338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17339 | (exit $ac_status); }; }; then | |
17340 | ac_cv_type_short=yes | |
17341 | else | |
17342 | echo "$as_me: failed program was:" >&5 | |
17343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17344 | ||
17345 | ac_cv_type_short=no | |
17346 | fi | |
ac1cb8d3 | 17347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17348 | fi |
17349 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
17350 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
17351 | ||
17352 | echo "$as_me:$LINENO: checking size of short" >&5 | |
17353 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
17354 | if test "${ac_cv_sizeof_short+set}" = set; then | |
17355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17356 | else | |
17357 | if test "$ac_cv_type_short" = yes; then | |
17358 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17359 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17360 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17361 | # This bug is HP SR number 8606223364. | |
17362 | if test "$cross_compiling" = yes; then | |
17363 | # Depending upon the size, compute the lo and hi bounds. | |
17364 | cat >conftest.$ac_ext <<_ACEOF | |
17365 | /* confdefs.h. */ | |
17366 | _ACEOF | |
17367 | cat confdefs.h >>conftest.$ac_ext | |
17368 | cat >>conftest.$ac_ext <<_ACEOF | |
17369 | /* end confdefs.h. */ | |
17370 | $ac_includes_default | |
17371 | int | |
17372 | main () | |
17373 | { | |
17374 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
17375 | test_array [0] = 0 | |
17376 | ||
17377 | ; | |
17378 | return 0; | |
17379 | } | |
17380 | _ACEOF | |
17381 | rm -f conftest.$ac_objext | |
17382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17383 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17384 | ac_status=$? |
ac1cb8d3 VS |
17385 | grep -v '^ *+' conftest.er1 >conftest.err |
17386 | rm -f conftest.er1 | |
17387 | cat conftest.err >&5 | |
a848cd7e SC |
17388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17389 | (exit $ac_status); } && | |
f10e38c4 | 17390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17392 | (eval $ac_try) 2>&5 | |
17393 | ac_status=$? | |
17394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17395 | (exit $ac_status); }; } && | |
17396 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17398 | (eval $ac_try) 2>&5 | |
17399 | ac_status=$? | |
17400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17401 | (exit $ac_status); }; }; then | |
17402 | ac_lo=0 ac_mid=0 | |
17403 | while :; do | |
17404 | cat >conftest.$ac_ext <<_ACEOF | |
17405 | /* confdefs.h. */ | |
17406 | _ACEOF | |
17407 | cat confdefs.h >>conftest.$ac_ext | |
17408 | cat >>conftest.$ac_ext <<_ACEOF | |
17409 | /* end confdefs.h. */ | |
17410 | $ac_includes_default | |
17411 | int | |
17412 | main () | |
17413 | { | |
17414 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17415 | test_array [0] = 0 | |
17416 | ||
17417 | ; | |
17418 | return 0; | |
17419 | } | |
17420 | _ACEOF | |
17421 | rm -f conftest.$ac_objext | |
17422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17423 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17424 | ac_status=$? |
ac1cb8d3 VS |
17425 | grep -v '^ *+' conftest.er1 >conftest.err |
17426 | rm -f conftest.er1 | |
17427 | cat conftest.err >&5 | |
a848cd7e SC |
17428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17429 | (exit $ac_status); } && | |
f10e38c4 | 17430 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17432 | (eval $ac_try) 2>&5 | |
17433 | ac_status=$? | |
17434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17435 | (exit $ac_status); }; } && | |
17436 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17438 | (eval $ac_try) 2>&5 | |
17439 | ac_status=$? | |
17440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17441 | (exit $ac_status); }; }; then | |
17442 | ac_hi=$ac_mid; break | |
17443 | else | |
17444 | echo "$as_me: failed program was:" >&5 | |
17445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17446 | ||
17447 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17448 | if test $ac_lo -le $ac_mid; then |
17449 | ac_lo= ac_hi= | |
17450 | break | |
17451 | fi | |
17452 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17453 | fi |
ac1cb8d3 | 17454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17455 | done |
17456 | else | |
17457 | echo "$as_me: failed program was:" >&5 | |
17458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17459 | ||
17460 | cat >conftest.$ac_ext <<_ACEOF | |
17461 | /* confdefs.h. */ | |
17462 | _ACEOF | |
17463 | cat confdefs.h >>conftest.$ac_ext | |
17464 | cat >>conftest.$ac_ext <<_ACEOF | |
17465 | /* end confdefs.h. */ | |
17466 | $ac_includes_default | |
17467 | int | |
17468 | main () | |
17469 | { | |
17470 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
17471 | test_array [0] = 0 | |
17472 | ||
17473 | ; | |
17474 | return 0; | |
17475 | } | |
17476 | _ACEOF | |
17477 | rm -f conftest.$ac_objext | |
17478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17479 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17480 | ac_status=$? |
ac1cb8d3 VS |
17481 | grep -v '^ *+' conftest.er1 >conftest.err |
17482 | rm -f conftest.er1 | |
17483 | cat conftest.err >&5 | |
a848cd7e SC |
17484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17485 | (exit $ac_status); } && | |
f10e38c4 | 17486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17488 | (eval $ac_try) 2>&5 | |
17489 | ac_status=$? | |
17490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17491 | (exit $ac_status); }; } && | |
17492 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17494 | (eval $ac_try) 2>&5 | |
17495 | ac_status=$? | |
17496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17497 | (exit $ac_status); }; }; then | |
17498 | ac_hi=-1 ac_mid=-1 | |
17499 | while :; do | |
17500 | cat >conftest.$ac_ext <<_ACEOF | |
17501 | /* confdefs.h. */ | |
17502 | _ACEOF | |
17503 | cat confdefs.h >>conftest.$ac_ext | |
17504 | cat >>conftest.$ac_ext <<_ACEOF | |
17505 | /* end confdefs.h. */ | |
17506 | $ac_includes_default | |
17507 | int | |
17508 | main () | |
17509 | { | |
17510 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
17511 | test_array [0] = 0 | |
17512 | ||
17513 | ; | |
17514 | return 0; | |
17515 | } | |
17516 | _ACEOF | |
17517 | rm -f conftest.$ac_objext | |
17518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17519 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17520 | ac_status=$? |
ac1cb8d3 VS |
17521 | grep -v '^ *+' conftest.er1 >conftest.err |
17522 | rm -f conftest.er1 | |
17523 | cat conftest.err >&5 | |
a848cd7e SC |
17524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17525 | (exit $ac_status); } && | |
f10e38c4 | 17526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17528 | (eval $ac_try) 2>&5 | |
17529 | ac_status=$? | |
17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17531 | (exit $ac_status); }; } && | |
17532 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17534 | (eval $ac_try) 2>&5 | |
17535 | ac_status=$? | |
17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17537 | (exit $ac_status); }; }; then | |
17538 | ac_lo=$ac_mid; break | |
17539 | else | |
17540 | echo "$as_me: failed program was:" >&5 | |
17541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17542 | ||
17543 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17544 | if test $ac_mid -le $ac_hi; then |
17545 | ac_lo= ac_hi= | |
17546 | break | |
17547 | fi | |
17548 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17549 | fi |
ac1cb8d3 | 17550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17551 | done |
17552 | else | |
17553 | echo "$as_me: failed program was:" >&5 | |
17554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17555 | ||
17556 | ac_lo= ac_hi= | |
17557 | fi | |
ac1cb8d3 | 17558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17559 | fi |
ac1cb8d3 | 17560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17561 | # Binary search between lo and hi bounds. |
17562 | while test "x$ac_lo" != "x$ac_hi"; do | |
17563 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17564 | cat >conftest.$ac_ext <<_ACEOF | |
17565 | /* confdefs.h. */ | |
17566 | _ACEOF | |
17567 | cat confdefs.h >>conftest.$ac_ext | |
17568 | cat >>conftest.$ac_ext <<_ACEOF | |
17569 | /* end confdefs.h. */ | |
17570 | $ac_includes_default | |
17571 | int | |
17572 | main () | |
17573 | { | |
17574 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17575 | test_array [0] = 0 | |
17576 | ||
17577 | ; | |
17578 | return 0; | |
17579 | } | |
17580 | _ACEOF | |
17581 | rm -f conftest.$ac_objext | |
17582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17583 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17584 | ac_status=$? |
ac1cb8d3 VS |
17585 | grep -v '^ *+' conftest.er1 >conftest.err |
17586 | rm -f conftest.er1 | |
17587 | cat conftest.err >&5 | |
a848cd7e SC |
17588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17589 | (exit $ac_status); } && | |
f10e38c4 | 17590 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17592 | (eval $ac_try) 2>&5 | |
17593 | ac_status=$? | |
17594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17595 | (exit $ac_status); }; } && | |
17596 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17598 | (eval $ac_try) 2>&5 | |
17599 | ac_status=$? | |
17600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17601 | (exit $ac_status); }; }; then | |
17602 | ac_hi=$ac_mid | |
17603 | else | |
17604 | echo "$as_me: failed program was:" >&5 | |
17605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17606 | ||
17607 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17608 | fi | |
ac1cb8d3 | 17609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17610 | done |
17611 | case $ac_lo in | |
17612 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
17613 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17614 | See \`config.log' for more details." >&5 | |
17615 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17616 | See \`config.log' for more details." >&2;} | |
17617 | { (exit 1); exit 1; }; } ;; | |
17618 | esac | |
17619 | else | |
17620 | if test "$cross_compiling" = yes; then | |
f10e38c4 VZ |
17621 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17622 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17623 | { (exit 1); exit 1; }; } |
17624 | else | |
17625 | cat >conftest.$ac_ext <<_ACEOF | |
17626 | /* confdefs.h. */ | |
17627 | _ACEOF | |
17628 | cat confdefs.h >>conftest.$ac_ext | |
17629 | cat >>conftest.$ac_ext <<_ACEOF | |
17630 | /* end confdefs.h. */ | |
17631 | $ac_includes_default | |
17632 | long longval () { return (long) (sizeof (short)); } | |
17633 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
17634 | #include <stdio.h> | |
17635 | #include <stdlib.h> | |
17636 | int | |
17637 | main () | |
17638 | { | |
17639 | ||
17640 | FILE *f = fopen ("conftest.val", "w"); | |
17641 | if (! f) | |
17642 | exit (1); | |
17643 | if (((long) (sizeof (short))) < 0) | |
17644 | { | |
17645 | long i = longval (); | |
17646 | if (i != ((long) (sizeof (short)))) | |
17647 | exit (1); | |
17648 | fprintf (f, "%ld\n", i); | |
17649 | } | |
17650 | else | |
17651 | { | |
17652 | unsigned long i = ulongval (); | |
17653 | if (i != ((long) (sizeof (short)))) | |
17654 | exit (1); | |
17655 | fprintf (f, "%lu\n", i); | |
17656 | } | |
17657 | exit (ferror (f) || fclose (f) != 0); | |
17658 | ||
17659 | ; | |
17660 | return 0; | |
17661 | } | |
17662 | _ACEOF | |
17663 | rm -f conftest$ac_exeext | |
17664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17665 | (eval $ac_link) 2>&5 | |
17666 | ac_status=$? | |
17667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17668 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17670 | (eval $ac_try) 2>&5 | |
17671 | ac_status=$? | |
17672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17673 | (exit $ac_status); }; }; then | |
17674 | ac_cv_sizeof_short=`cat conftest.val` | |
17675 | else | |
17676 | echo "$as_me: program exited with status $ac_status" >&5 | |
17677 | echo "$as_me: failed program was:" >&5 | |
17678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17679 | ||
17680 | ( exit $ac_status ) | |
17681 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17682 | See \`config.log' for more details." >&5 | |
17683 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17684 | See \`config.log' for more details." >&2;} | |
17685 | { (exit 1); exit 1; }; } | |
17686 | fi | |
ac1cb8d3 | 17687 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17688 | fi |
17689 | fi | |
17690 | rm -f conftest.val | |
17691 | else | |
17692 | ac_cv_sizeof_short=0 | |
17693 | fi | |
17694 | fi | |
17695 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
17696 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
17697 | cat >>confdefs.h <<_ACEOF | |
17698 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
17699 | _ACEOF | |
17700 | ||
17701 | ||
17702 | echo "$as_me:$LINENO: checking for void *" >&5 | |
17703 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
17704 | if test "${ac_cv_type_void_p+set}" = set; then | |
17705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17706 | else | |
17707 | cat >conftest.$ac_ext <<_ACEOF | |
17708 | /* confdefs.h. */ | |
17709 | _ACEOF | |
17710 | cat confdefs.h >>conftest.$ac_ext | |
17711 | cat >>conftest.$ac_ext <<_ACEOF | |
17712 | /* end confdefs.h. */ | |
17713 | $ac_includes_default | |
17714 | int | |
17715 | main () | |
17716 | { | |
17717 | if ((void * *) 0) | |
17718 | return 0; | |
17719 | if (sizeof (void *)) | |
17720 | return 0; | |
17721 | ; | |
17722 | return 0; | |
17723 | } | |
17724 | _ACEOF | |
17725 | rm -f conftest.$ac_objext | |
17726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17727 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17728 | ac_status=$? |
ac1cb8d3 VS |
17729 | grep -v '^ *+' conftest.er1 >conftest.err |
17730 | rm -f conftest.er1 | |
17731 | cat conftest.err >&5 | |
a848cd7e SC |
17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17733 | (exit $ac_status); } && | |
f10e38c4 | 17734 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17736 | (eval $ac_try) 2>&5 | |
17737 | ac_status=$? | |
17738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17739 | (exit $ac_status); }; } && | |
17740 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17742 | (eval $ac_try) 2>&5 | |
17743 | ac_status=$? | |
17744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17745 | (exit $ac_status); }; }; then | |
17746 | ac_cv_type_void_p=yes | |
17747 | else | |
17748 | echo "$as_me: failed program was:" >&5 | |
17749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17750 | ||
17751 | ac_cv_type_void_p=no | |
17752 | fi | |
ac1cb8d3 | 17753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17754 | fi |
17755 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
17756 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
17757 | ||
17758 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
17759 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
17760 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
17761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17762 | else | |
17763 | if test "$ac_cv_type_void_p" = yes; then | |
17764 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17765 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17766 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17767 | # This bug is HP SR number 8606223364. | |
17768 | if test "$cross_compiling" = yes; then | |
17769 | # Depending upon the size, compute the lo and hi bounds. | |
17770 | cat >conftest.$ac_ext <<_ACEOF | |
17771 | /* confdefs.h. */ | |
17772 | _ACEOF | |
17773 | cat confdefs.h >>conftest.$ac_ext | |
17774 | cat >>conftest.$ac_ext <<_ACEOF | |
17775 | /* end confdefs.h. */ | |
17776 | $ac_includes_default | |
17777 | int | |
17778 | main () | |
17779 | { | |
17780 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
17781 | test_array [0] = 0 | |
17782 | ||
17783 | ; | |
17784 | return 0; | |
17785 | } | |
17786 | _ACEOF | |
17787 | rm -f conftest.$ac_objext | |
17788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17789 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17790 | ac_status=$? |
ac1cb8d3 VS |
17791 | grep -v '^ *+' conftest.er1 >conftest.err |
17792 | rm -f conftest.er1 | |
17793 | cat conftest.err >&5 | |
a848cd7e SC |
17794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17795 | (exit $ac_status); } && | |
f10e38c4 | 17796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17798 | (eval $ac_try) 2>&5 | |
17799 | ac_status=$? | |
17800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17801 | (exit $ac_status); }; } && | |
17802 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17804 | (eval $ac_try) 2>&5 | |
17805 | ac_status=$? | |
17806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17807 | (exit $ac_status); }; }; then | |
17808 | ac_lo=0 ac_mid=0 | |
17809 | while :; do | |
17810 | cat >conftest.$ac_ext <<_ACEOF | |
17811 | /* confdefs.h. */ | |
17812 | _ACEOF | |
17813 | cat confdefs.h >>conftest.$ac_ext | |
17814 | cat >>conftest.$ac_ext <<_ACEOF | |
17815 | /* end confdefs.h. */ | |
17816 | $ac_includes_default | |
17817 | int | |
17818 | main () | |
17819 | { | |
17820 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17821 | test_array [0] = 0 | |
17822 | ||
17823 | ; | |
17824 | return 0; | |
17825 | } | |
17826 | _ACEOF | |
17827 | rm -f conftest.$ac_objext | |
17828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17829 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17830 | ac_status=$? |
ac1cb8d3 VS |
17831 | grep -v '^ *+' conftest.er1 >conftest.err |
17832 | rm -f conftest.er1 | |
17833 | cat conftest.err >&5 | |
a848cd7e SC |
17834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17835 | (exit $ac_status); } && | |
f10e38c4 | 17836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17838 | (eval $ac_try) 2>&5 | |
17839 | ac_status=$? | |
17840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17841 | (exit $ac_status); }; } && | |
17842 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17844 | (eval $ac_try) 2>&5 | |
17845 | ac_status=$? | |
17846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17847 | (exit $ac_status); }; }; then | |
17848 | ac_hi=$ac_mid; break | |
17849 | else | |
17850 | echo "$as_me: failed program was:" >&5 | |
17851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17852 | ||
17853 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17854 | if test $ac_lo -le $ac_mid; then |
17855 | ac_lo= ac_hi= | |
17856 | break | |
17857 | fi | |
17858 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17859 | fi |
ac1cb8d3 | 17860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17861 | done |
17862 | else | |
17863 | echo "$as_me: failed program was:" >&5 | |
17864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17865 | ||
17866 | cat >conftest.$ac_ext <<_ACEOF | |
17867 | /* confdefs.h. */ | |
17868 | _ACEOF | |
17869 | cat confdefs.h >>conftest.$ac_ext | |
17870 | cat >>conftest.$ac_ext <<_ACEOF | |
17871 | /* end confdefs.h. */ | |
17872 | $ac_includes_default | |
17873 | int | |
17874 | main () | |
17875 | { | |
17876 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
17877 | test_array [0] = 0 | |
17878 | ||
17879 | ; | |
17880 | return 0; | |
17881 | } | |
17882 | _ACEOF | |
17883 | rm -f conftest.$ac_objext | |
17884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17885 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17886 | ac_status=$? |
ac1cb8d3 VS |
17887 | grep -v '^ *+' conftest.er1 >conftest.err |
17888 | rm -f conftest.er1 | |
17889 | cat conftest.err >&5 | |
a848cd7e SC |
17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17891 | (exit $ac_status); } && | |
f10e38c4 | 17892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17894 | (eval $ac_try) 2>&5 | |
17895 | ac_status=$? | |
17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17897 | (exit $ac_status); }; } && | |
17898 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17900 | (eval $ac_try) 2>&5 | |
17901 | ac_status=$? | |
17902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17903 | (exit $ac_status); }; }; then | |
17904 | ac_hi=-1 ac_mid=-1 | |
17905 | while :; do | |
17906 | cat >conftest.$ac_ext <<_ACEOF | |
17907 | /* confdefs.h. */ | |
17908 | _ACEOF | |
17909 | cat confdefs.h >>conftest.$ac_ext | |
17910 | cat >>conftest.$ac_ext <<_ACEOF | |
17911 | /* end confdefs.h. */ | |
17912 | $ac_includes_default | |
17913 | int | |
17914 | main () | |
17915 | { | |
17916 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
17917 | test_array [0] = 0 | |
17918 | ||
17919 | ; | |
17920 | return 0; | |
17921 | } | |
17922 | _ACEOF | |
17923 | rm -f conftest.$ac_objext | |
17924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17925 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17926 | ac_status=$? |
ac1cb8d3 VS |
17927 | grep -v '^ *+' conftest.er1 >conftest.err |
17928 | rm -f conftest.er1 | |
17929 | cat conftest.err >&5 | |
a848cd7e SC |
17930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17931 | (exit $ac_status); } && | |
f10e38c4 | 17932 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17934 | (eval $ac_try) 2>&5 | |
17935 | ac_status=$? | |
17936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17937 | (exit $ac_status); }; } && | |
17938 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17940 | (eval $ac_try) 2>&5 | |
17941 | ac_status=$? | |
17942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17943 | (exit $ac_status); }; }; then | |
17944 | ac_lo=$ac_mid; break | |
17945 | else | |
17946 | echo "$as_me: failed program was:" >&5 | |
17947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17948 | ||
17949 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17950 | if test $ac_mid -le $ac_hi; then |
17951 | ac_lo= ac_hi= | |
17952 | break | |
17953 | fi | |
17954 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17955 | fi |
ac1cb8d3 | 17956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17957 | done |
17958 | else | |
17959 | echo "$as_me: failed program was:" >&5 | |
17960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17961 | ||
17962 | ac_lo= ac_hi= | |
17963 | fi | |
ac1cb8d3 | 17964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17965 | fi |
ac1cb8d3 | 17966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17967 | # Binary search between lo and hi bounds. |
17968 | while test "x$ac_lo" != "x$ac_hi"; do | |
17969 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17970 | cat >conftest.$ac_ext <<_ACEOF | |
17971 | /* confdefs.h. */ | |
17972 | _ACEOF | |
17973 | cat confdefs.h >>conftest.$ac_ext | |
17974 | cat >>conftest.$ac_ext <<_ACEOF | |
17975 | /* end confdefs.h. */ | |
17976 | $ac_includes_default | |
17977 | int | |
17978 | main () | |
17979 | { | |
17980 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17981 | test_array [0] = 0 | |
17982 | ||
17983 | ; | |
17984 | return 0; | |
17985 | } | |
17986 | _ACEOF | |
17987 | rm -f conftest.$ac_objext | |
17988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17989 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17990 | ac_status=$? |
ac1cb8d3 VS |
17991 | grep -v '^ *+' conftest.er1 >conftest.err |
17992 | rm -f conftest.er1 | |
17993 | cat conftest.err >&5 | |
a848cd7e SC |
17994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17995 | (exit $ac_status); } && | |
f10e38c4 | 17996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17998 | (eval $ac_try) 2>&5 | |
17999 | ac_status=$? | |
18000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18001 | (exit $ac_status); }; } && | |
18002 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18004 | (eval $ac_try) 2>&5 | |
18005 | ac_status=$? | |
18006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18007 | (exit $ac_status); }; }; then | |
18008 | ac_hi=$ac_mid | |
18009 | else | |
18010 | echo "$as_me: failed program was:" >&5 | |
18011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18012 | ||
18013 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18014 | fi | |
ac1cb8d3 | 18015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18016 | done |
18017 | case $ac_lo in | |
18018 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
18019 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18020 | See \`config.log' for more details." >&5 | |
18021 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18022 | See \`config.log' for more details." >&2;} | |
18023 | { (exit 1); exit 1; }; } ;; | |
18024 | esac | |
18025 | else | |
18026 | if test "$cross_compiling" = yes; then | |
f10e38c4 VZ |
18027 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18028 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18029 | { (exit 1); exit 1; }; } |
18030 | else | |
18031 | cat >conftest.$ac_ext <<_ACEOF | |
18032 | /* confdefs.h. */ | |
18033 | _ACEOF | |
18034 | cat confdefs.h >>conftest.$ac_ext | |
18035 | cat >>conftest.$ac_ext <<_ACEOF | |
18036 | /* end confdefs.h. */ | |
18037 | $ac_includes_default | |
18038 | long longval () { return (long) (sizeof (void *)); } | |
18039 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
18040 | #include <stdio.h> | |
18041 | #include <stdlib.h> | |
18042 | int | |
18043 | main () | |
18044 | { | |
18045 | ||
18046 | FILE *f = fopen ("conftest.val", "w"); | |
18047 | if (! f) | |
18048 | exit (1); | |
18049 | if (((long) (sizeof (void *))) < 0) | |
18050 | { | |
18051 | long i = longval (); | |
18052 | if (i != ((long) (sizeof (void *)))) | |
18053 | exit (1); | |
18054 | fprintf (f, "%ld\n", i); | |
18055 | } | |
18056 | else | |
18057 | { | |
18058 | unsigned long i = ulongval (); | |
18059 | if (i != ((long) (sizeof (void *)))) | |
18060 | exit (1); | |
18061 | fprintf (f, "%lu\n", i); | |
18062 | } | |
18063 | exit (ferror (f) || fclose (f) != 0); | |
18064 | ||
18065 | ; | |
18066 | return 0; | |
18067 | } | |
18068 | _ACEOF | |
18069 | rm -f conftest$ac_exeext | |
18070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18071 | (eval $ac_link) 2>&5 | |
18072 | ac_status=$? | |
18073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18074 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18076 | (eval $ac_try) 2>&5 | |
18077 | ac_status=$? | |
18078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18079 | (exit $ac_status); }; }; then | |
18080 | ac_cv_sizeof_void_p=`cat conftest.val` | |
18081 | else | |
18082 | echo "$as_me: program exited with status $ac_status" >&5 | |
18083 | echo "$as_me: failed program was:" >&5 | |
18084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18085 | ||
18086 | ( exit $ac_status ) | |
18087 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18088 | See \`config.log' for more details." >&5 | |
18089 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18090 | See \`config.log' for more details." >&2;} | |
18091 | { (exit 1); exit 1; }; } | |
18092 | fi | |
ac1cb8d3 | 18093 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18094 | fi |
18095 | fi | |
18096 | rm -f conftest.val | |
18097 | else | |
18098 | ac_cv_sizeof_void_p=0 | |
18099 | fi | |
18100 | fi | |
18101 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
18102 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
18103 | cat >>confdefs.h <<_ACEOF | |
18104 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
18105 | _ACEOF | |
18106 | ||
18107 | ||
18108 | echo "$as_me:$LINENO: checking for int" >&5 | |
18109 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
18110 | if test "${ac_cv_type_int+set}" = set; then | |
18111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18112 | else | |
18113 | cat >conftest.$ac_ext <<_ACEOF | |
18114 | /* confdefs.h. */ | |
18115 | _ACEOF | |
18116 | cat confdefs.h >>conftest.$ac_ext | |
18117 | cat >>conftest.$ac_ext <<_ACEOF | |
18118 | /* end confdefs.h. */ | |
18119 | $ac_includes_default | |
18120 | int | |
18121 | main () | |
18122 | { | |
18123 | if ((int *) 0) | |
18124 | return 0; | |
18125 | if (sizeof (int)) | |
18126 | return 0; | |
18127 | ; | |
18128 | return 0; | |
18129 | } | |
18130 | _ACEOF | |
18131 | rm -f conftest.$ac_objext | |
18132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18133 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18134 | ac_status=$? |
ac1cb8d3 VS |
18135 | grep -v '^ *+' conftest.er1 >conftest.err |
18136 | rm -f conftest.er1 | |
18137 | cat conftest.err >&5 | |
a848cd7e SC |
18138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18139 | (exit $ac_status); } && | |
f10e38c4 | 18140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18142 | (eval $ac_try) 2>&5 | |
18143 | ac_status=$? | |
18144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18145 | (exit $ac_status); }; } && | |
18146 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18148 | (eval $ac_try) 2>&5 | |
18149 | ac_status=$? | |
18150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18151 | (exit $ac_status); }; }; then | |
18152 | ac_cv_type_int=yes | |
18153 | else | |
18154 | echo "$as_me: failed program was:" >&5 | |
18155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18156 | ||
18157 | ac_cv_type_int=no | |
18158 | fi | |
ac1cb8d3 | 18159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18160 | fi |
18161 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
18162 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
18163 | ||
18164 | echo "$as_me:$LINENO: checking size of int" >&5 | |
18165 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
18166 | if test "${ac_cv_sizeof_int+set}" = set; then | |
18167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18168 | else | |
18169 | if test "$ac_cv_type_int" = yes; then | |
18170 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18171 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18172 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18173 | # This bug is HP SR number 8606223364. | |
18174 | if test "$cross_compiling" = yes; then | |
18175 | # Depending upon the size, compute the lo and hi bounds. | |
18176 | cat >conftest.$ac_ext <<_ACEOF | |
18177 | /* confdefs.h. */ | |
18178 | _ACEOF | |
18179 | cat confdefs.h >>conftest.$ac_ext | |
18180 | cat >>conftest.$ac_ext <<_ACEOF | |
18181 | /* end confdefs.h. */ | |
18182 | $ac_includes_default | |
18183 | int | |
18184 | main () | |
18185 | { | |
18186 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
18187 | test_array [0] = 0 | |
18188 | ||
18189 | ; | |
18190 | return 0; | |
18191 | } | |
18192 | _ACEOF | |
18193 | rm -f conftest.$ac_objext | |
18194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18195 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18196 | ac_status=$? |
ac1cb8d3 VS |
18197 | grep -v '^ *+' conftest.er1 >conftest.err |
18198 | rm -f conftest.er1 | |
18199 | cat conftest.err >&5 | |
a848cd7e SC |
18200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18201 | (exit $ac_status); } && | |
f10e38c4 | 18202 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18204 | (eval $ac_try) 2>&5 | |
18205 | ac_status=$? | |
18206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18207 | (exit $ac_status); }; } && | |
18208 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18210 | (eval $ac_try) 2>&5 | |
18211 | ac_status=$? | |
18212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18213 | (exit $ac_status); }; }; then | |
18214 | ac_lo=0 ac_mid=0 | |
18215 | while :; do | |
18216 | cat >conftest.$ac_ext <<_ACEOF | |
18217 | /* confdefs.h. */ | |
18218 | _ACEOF | |
18219 | cat confdefs.h >>conftest.$ac_ext | |
18220 | cat >>conftest.$ac_ext <<_ACEOF | |
18221 | /* end confdefs.h. */ | |
18222 | $ac_includes_default | |
18223 | int | |
18224 | main () | |
18225 | { | |
18226 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18227 | test_array [0] = 0 | |
18228 | ||
18229 | ; | |
18230 | return 0; | |
18231 | } | |
18232 | _ACEOF | |
18233 | rm -f conftest.$ac_objext | |
18234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18235 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18236 | ac_status=$? |
ac1cb8d3 VS |
18237 | grep -v '^ *+' conftest.er1 >conftest.err |
18238 | rm -f conftest.er1 | |
18239 | cat conftest.err >&5 | |
a848cd7e SC |
18240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18241 | (exit $ac_status); } && | |
f10e38c4 | 18242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18244 | (eval $ac_try) 2>&5 | |
18245 | ac_status=$? | |
18246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18247 | (exit $ac_status); }; } && | |
18248 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18250 | (eval $ac_try) 2>&5 | |
18251 | ac_status=$? | |
18252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18253 | (exit $ac_status); }; }; then | |
18254 | ac_hi=$ac_mid; break | |
18255 | else | |
18256 | echo "$as_me: failed program was:" >&5 | |
18257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18258 | ||
18259 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18260 | if test $ac_lo -le $ac_mid; then |
18261 | ac_lo= ac_hi= | |
18262 | break | |
18263 | fi | |
18264 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18265 | fi |
ac1cb8d3 | 18266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18267 | done |
18268 | else | |
18269 | echo "$as_me: failed program was:" >&5 | |
18270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18271 | ||
18272 | cat >conftest.$ac_ext <<_ACEOF | |
18273 | /* confdefs.h. */ | |
18274 | _ACEOF | |
18275 | cat confdefs.h >>conftest.$ac_ext | |
18276 | cat >>conftest.$ac_ext <<_ACEOF | |
18277 | /* end confdefs.h. */ | |
18278 | $ac_includes_default | |
18279 | int | |
18280 | main () | |
18281 | { | |
18282 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
18283 | test_array [0] = 0 | |
18284 | ||
18285 | ; | |
18286 | return 0; | |
18287 | } | |
18288 | _ACEOF | |
18289 | rm -f conftest.$ac_objext | |
18290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18291 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18292 | ac_status=$? |
ac1cb8d3 VS |
18293 | grep -v '^ *+' conftest.er1 >conftest.err |
18294 | rm -f conftest.er1 | |
18295 | cat conftest.err >&5 | |
a848cd7e SC |
18296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18297 | (exit $ac_status); } && | |
f10e38c4 | 18298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18300 | (eval $ac_try) 2>&5 | |
18301 | ac_status=$? | |
18302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18303 | (exit $ac_status); }; } && | |
18304 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18306 | (eval $ac_try) 2>&5 | |
18307 | ac_status=$? | |
18308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18309 | (exit $ac_status); }; }; then | |
18310 | ac_hi=-1 ac_mid=-1 | |
18311 | while :; do | |
18312 | cat >conftest.$ac_ext <<_ACEOF | |
18313 | /* confdefs.h. */ | |
18314 | _ACEOF | |
18315 | cat confdefs.h >>conftest.$ac_ext | |
18316 | cat >>conftest.$ac_ext <<_ACEOF | |
18317 | /* end confdefs.h. */ | |
18318 | $ac_includes_default | |
18319 | int | |
18320 | main () | |
18321 | { | |
18322 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
18323 | test_array [0] = 0 | |
18324 | ||
18325 | ; | |
18326 | return 0; | |
18327 | } | |
18328 | _ACEOF | |
18329 | rm -f conftest.$ac_objext | |
18330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18331 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18332 | ac_status=$? |
ac1cb8d3 VS |
18333 | grep -v '^ *+' conftest.er1 >conftest.err |
18334 | rm -f conftest.er1 | |
18335 | cat conftest.err >&5 | |
a848cd7e SC |
18336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18337 | (exit $ac_status); } && | |
f10e38c4 | 18338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18340 | (eval $ac_try) 2>&5 | |
18341 | ac_status=$? | |
18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18343 | (exit $ac_status); }; } && | |
18344 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18346 | (eval $ac_try) 2>&5 | |
18347 | ac_status=$? | |
18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18349 | (exit $ac_status); }; }; then | |
18350 | ac_lo=$ac_mid; break | |
18351 | else | |
18352 | echo "$as_me: failed program was:" >&5 | |
18353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18354 | ||
18355 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18356 | if test $ac_mid -le $ac_hi; then |
18357 | ac_lo= ac_hi= | |
18358 | break | |
18359 | fi | |
18360 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18361 | fi |
ac1cb8d3 | 18362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18363 | done |
18364 | else | |
18365 | echo "$as_me: failed program was:" >&5 | |
18366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18367 | ||
18368 | ac_lo= ac_hi= | |
18369 | fi | |
ac1cb8d3 | 18370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18371 | fi |
ac1cb8d3 | 18372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18373 | # Binary search between lo and hi bounds. |
18374 | while test "x$ac_lo" != "x$ac_hi"; do | |
18375 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18376 | cat >conftest.$ac_ext <<_ACEOF | |
18377 | /* confdefs.h. */ | |
18378 | _ACEOF | |
18379 | cat confdefs.h >>conftest.$ac_ext | |
18380 | cat >>conftest.$ac_ext <<_ACEOF | |
18381 | /* end confdefs.h. */ | |
18382 | $ac_includes_default | |
18383 | int | |
18384 | main () | |
18385 | { | |
18386 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18387 | test_array [0] = 0 | |
18388 | ||
18389 | ; | |
18390 | return 0; | |
18391 | } | |
18392 | _ACEOF | |
18393 | rm -f conftest.$ac_objext | |
18394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18395 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18396 | ac_status=$? |
ac1cb8d3 VS |
18397 | grep -v '^ *+' conftest.er1 >conftest.err |
18398 | rm -f conftest.er1 | |
18399 | cat conftest.err >&5 | |
a848cd7e SC |
18400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18401 | (exit $ac_status); } && | |
f10e38c4 | 18402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18404 | (eval $ac_try) 2>&5 | |
18405 | ac_status=$? | |
18406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18407 | (exit $ac_status); }; } && | |
18408 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18410 | (eval $ac_try) 2>&5 | |
18411 | ac_status=$? | |
18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18413 | (exit $ac_status); }; }; then | |
18414 | ac_hi=$ac_mid | |
18415 | else | |
18416 | echo "$as_me: failed program was:" >&5 | |
18417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18418 | ||
18419 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18420 | fi | |
ac1cb8d3 | 18421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18422 | done |
18423 | case $ac_lo in | |
18424 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18425 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18426 | See \`config.log' for more details." >&5 | |
18427 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18428 | See \`config.log' for more details." >&2;} | |
18429 | { (exit 1); exit 1; }; } ;; | |
18430 | esac | |
18431 | else | |
18432 | if test "$cross_compiling" = yes; then | |
f10e38c4 VZ |
18433 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18434 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18435 | { (exit 1); exit 1; }; } |
18436 | else | |
18437 | cat >conftest.$ac_ext <<_ACEOF | |
18438 | /* confdefs.h. */ | |
18439 | _ACEOF | |
18440 | cat confdefs.h >>conftest.$ac_ext | |
18441 | cat >>conftest.$ac_ext <<_ACEOF | |
18442 | /* end confdefs.h. */ | |
18443 | $ac_includes_default | |
18444 | long longval () { return (long) (sizeof (int)); } | |
18445 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
18446 | #include <stdio.h> | |
18447 | #include <stdlib.h> | |
18448 | int | |
18449 | main () | |
18450 | { | |
18451 | ||
18452 | FILE *f = fopen ("conftest.val", "w"); | |
18453 | if (! f) | |
18454 | exit (1); | |
18455 | if (((long) (sizeof (int))) < 0) | |
18456 | { | |
18457 | long i = longval (); | |
18458 | if (i != ((long) (sizeof (int)))) | |
18459 | exit (1); | |
18460 | fprintf (f, "%ld\n", i); | |
18461 | } | |
18462 | else | |
18463 | { | |
18464 | unsigned long i = ulongval (); | |
18465 | if (i != ((long) (sizeof (int)))) | |
18466 | exit (1); | |
18467 | fprintf (f, "%lu\n", i); | |
18468 | } | |
18469 | exit (ferror (f) || fclose (f) != 0); | |
18470 | ||
18471 | ; | |
18472 | return 0; | |
18473 | } | |
18474 | _ACEOF | |
18475 | rm -f conftest$ac_exeext | |
18476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18477 | (eval $ac_link) 2>&5 | |
18478 | ac_status=$? | |
18479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18482 | (eval $ac_try) 2>&5 | |
18483 | ac_status=$? | |
18484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18485 | (exit $ac_status); }; }; then | |
18486 | ac_cv_sizeof_int=`cat conftest.val` | |
18487 | else | |
18488 | echo "$as_me: program exited with status $ac_status" >&5 | |
18489 | echo "$as_me: failed program was:" >&5 | |
18490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18491 | ||
18492 | ( exit $ac_status ) | |
18493 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18494 | See \`config.log' for more details." >&5 | |
18495 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18496 | See \`config.log' for more details." >&2;} | |
18497 | { (exit 1); exit 1; }; } | |
18498 | fi | |
ac1cb8d3 | 18499 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18500 | fi |
18501 | fi | |
18502 | rm -f conftest.val | |
18503 | else | |
18504 | ac_cv_sizeof_int=0 | |
18505 | fi | |
18506 | fi | |
18507 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
18508 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
18509 | cat >>confdefs.h <<_ACEOF | |
18510 | #define SIZEOF_INT $ac_cv_sizeof_int | |
18511 | _ACEOF | |
18512 | ||
18513 | ||
18514 | echo "$as_me:$LINENO: checking for long" >&5 | |
18515 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
18516 | if test "${ac_cv_type_long+set}" = set; then | |
18517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18518 | else | |
18519 | cat >conftest.$ac_ext <<_ACEOF | |
18520 | /* confdefs.h. */ | |
18521 | _ACEOF | |
18522 | cat confdefs.h >>conftest.$ac_ext | |
18523 | cat >>conftest.$ac_ext <<_ACEOF | |
18524 | /* end confdefs.h. */ | |
18525 | $ac_includes_default | |
18526 | int | |
18527 | main () | |
18528 | { | |
18529 | if ((long *) 0) | |
18530 | return 0; | |
18531 | if (sizeof (long)) | |
18532 | return 0; | |
18533 | ; | |
18534 | return 0; | |
18535 | } | |
18536 | _ACEOF | |
18537 | rm -f conftest.$ac_objext | |
18538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18539 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18540 | ac_status=$? |
ac1cb8d3 VS |
18541 | grep -v '^ *+' conftest.er1 >conftest.err |
18542 | rm -f conftest.er1 | |
18543 | cat conftest.err >&5 | |
a848cd7e SC |
18544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18545 | (exit $ac_status); } && | |
f10e38c4 | 18546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18548 | (eval $ac_try) 2>&5 | |
18549 | ac_status=$? | |
18550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18551 | (exit $ac_status); }; } && | |
18552 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18554 | (eval $ac_try) 2>&5 | |
18555 | ac_status=$? | |
18556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18557 | (exit $ac_status); }; }; then | |
18558 | ac_cv_type_long=yes | |
18559 | else | |
18560 | echo "$as_me: failed program was:" >&5 | |
18561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18562 | ||
18563 | ac_cv_type_long=no | |
18564 | fi | |
ac1cb8d3 | 18565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18566 | fi |
18567 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
18568 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
18569 | ||
18570 | echo "$as_me:$LINENO: checking size of long" >&5 | |
18571 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
18572 | if test "${ac_cv_sizeof_long+set}" = set; then | |
18573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18574 | else | |
18575 | if test "$ac_cv_type_long" = yes; then | |
18576 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18577 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18578 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18579 | # This bug is HP SR number 8606223364. | |
18580 | if test "$cross_compiling" = yes; then | |
18581 | # Depending upon the size, compute the lo and hi bounds. | |
18582 | cat >conftest.$ac_ext <<_ACEOF | |
18583 | /* confdefs.h. */ | |
18584 | _ACEOF | |
18585 | cat confdefs.h >>conftest.$ac_ext | |
18586 | cat >>conftest.$ac_ext <<_ACEOF | |
18587 | /* end confdefs.h. */ | |
18588 | $ac_includes_default | |
18589 | int | |
18590 | main () | |
18591 | { | |
18592 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
18593 | test_array [0] = 0 | |
18594 | ||
18595 | ; | |
18596 | return 0; | |
18597 | } | |
18598 | _ACEOF | |
18599 | rm -f conftest.$ac_objext | |
18600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18601 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18602 | ac_status=$? |
ac1cb8d3 VS |
18603 | grep -v '^ *+' conftest.er1 >conftest.err |
18604 | rm -f conftest.er1 | |
18605 | cat conftest.err >&5 | |
a848cd7e SC |
18606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18607 | (exit $ac_status); } && | |
f10e38c4 | 18608 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18610 | (eval $ac_try) 2>&5 | |
18611 | ac_status=$? | |
18612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18613 | (exit $ac_status); }; } && | |
18614 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18616 | (eval $ac_try) 2>&5 | |
18617 | ac_status=$? | |
18618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18619 | (exit $ac_status); }; }; then | |
18620 | ac_lo=0 ac_mid=0 | |
18621 | while :; do | |
18622 | cat >conftest.$ac_ext <<_ACEOF | |
18623 | /* confdefs.h. */ | |
18624 | _ACEOF | |
18625 | cat confdefs.h >>conftest.$ac_ext | |
18626 | cat >>conftest.$ac_ext <<_ACEOF | |
18627 | /* end confdefs.h. */ | |
18628 | $ac_includes_default | |
18629 | int | |
18630 | main () | |
18631 | { | |
18632 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18633 | test_array [0] = 0 | |
18634 | ||
18635 | ; | |
18636 | return 0; | |
18637 | } | |
18638 | _ACEOF | |
18639 | rm -f conftest.$ac_objext | |
18640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18641 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18642 | ac_status=$? |
ac1cb8d3 VS |
18643 | grep -v '^ *+' conftest.er1 >conftest.err |
18644 | rm -f conftest.er1 | |
18645 | cat conftest.err >&5 | |
a848cd7e SC |
18646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18647 | (exit $ac_status); } && | |
f10e38c4 | 18648 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18650 | (eval $ac_try) 2>&5 | |
18651 | ac_status=$? | |
18652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18653 | (exit $ac_status); }; } && | |
18654 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18656 | (eval $ac_try) 2>&5 | |
18657 | ac_status=$? | |
18658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18659 | (exit $ac_status); }; }; then | |
18660 | ac_hi=$ac_mid; break | |
18661 | else | |
18662 | echo "$as_me: failed program was:" >&5 | |
18663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18664 | ||
18665 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18666 | if test $ac_lo -le $ac_mid; then |
18667 | ac_lo= ac_hi= | |
18668 | break | |
18669 | fi | |
18670 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18671 | fi |
ac1cb8d3 | 18672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18673 | done |
18674 | else | |
18675 | echo "$as_me: failed program was:" >&5 | |
18676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18677 | ||
18678 | cat >conftest.$ac_ext <<_ACEOF | |
18679 | /* confdefs.h. */ | |
18680 | _ACEOF | |
18681 | cat confdefs.h >>conftest.$ac_ext | |
18682 | cat >>conftest.$ac_ext <<_ACEOF | |
18683 | /* end confdefs.h. */ | |
18684 | $ac_includes_default | |
18685 | int | |
18686 | main () | |
18687 | { | |
18688 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
18689 | test_array [0] = 0 | |
18690 | ||
18691 | ; | |
18692 | return 0; | |
18693 | } | |
18694 | _ACEOF | |
18695 | rm -f conftest.$ac_objext | |
18696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18697 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18698 | ac_status=$? |
ac1cb8d3 VS |
18699 | grep -v '^ *+' conftest.er1 >conftest.err |
18700 | rm -f conftest.er1 | |
18701 | cat conftest.err >&5 | |
a848cd7e SC |
18702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18703 | (exit $ac_status); } && | |
f10e38c4 | 18704 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18706 | (eval $ac_try) 2>&5 | |
18707 | ac_status=$? | |
18708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18709 | (exit $ac_status); }; } && | |
18710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18712 | (eval $ac_try) 2>&5 | |
18713 | ac_status=$? | |
18714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18715 | (exit $ac_status); }; }; then | |
18716 | ac_hi=-1 ac_mid=-1 | |
18717 | while :; do | |
18718 | cat >conftest.$ac_ext <<_ACEOF | |
18719 | /* confdefs.h. */ | |
18720 | _ACEOF | |
18721 | cat confdefs.h >>conftest.$ac_ext | |
18722 | cat >>conftest.$ac_ext <<_ACEOF | |
18723 | /* end confdefs.h. */ | |
18724 | $ac_includes_default | |
18725 | int | |
18726 | main () | |
18727 | { | |
18728 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
18729 | test_array [0] = 0 | |
18730 | ||
18731 | ; | |
18732 | return 0; | |
18733 | } | |
18734 | _ACEOF | |
18735 | rm -f conftest.$ac_objext | |
18736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18737 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18738 | ac_status=$? |
ac1cb8d3 VS |
18739 | grep -v '^ *+' conftest.er1 >conftest.err |
18740 | rm -f conftest.er1 | |
18741 | cat conftest.err >&5 | |
a848cd7e SC |
18742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18743 | (exit $ac_status); } && | |
f10e38c4 | 18744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18746 | (eval $ac_try) 2>&5 | |
18747 | ac_status=$? | |
18748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18749 | (exit $ac_status); }; } && | |
18750 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18752 | (eval $ac_try) 2>&5 | |
18753 | ac_status=$? | |
18754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18755 | (exit $ac_status); }; }; then | |
18756 | ac_lo=$ac_mid; break | |
18757 | else | |
18758 | echo "$as_me: failed program was:" >&5 | |
18759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18760 | ||
18761 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18762 | if test $ac_mid -le $ac_hi; then |
18763 | ac_lo= ac_hi= | |
18764 | break | |
18765 | fi | |
18766 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18767 | fi |
ac1cb8d3 | 18768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18769 | done |
18770 | else | |
18771 | echo "$as_me: failed program was:" >&5 | |
18772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18773 | ||
18774 | ac_lo= ac_hi= | |
18775 | fi | |
ac1cb8d3 | 18776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18777 | fi |
ac1cb8d3 | 18778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18779 | # Binary search between lo and hi bounds. |
18780 | while test "x$ac_lo" != "x$ac_hi"; do | |
18781 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18782 | cat >conftest.$ac_ext <<_ACEOF | |
18783 | /* confdefs.h. */ | |
18784 | _ACEOF | |
18785 | cat confdefs.h >>conftest.$ac_ext | |
18786 | cat >>conftest.$ac_ext <<_ACEOF | |
18787 | /* end confdefs.h. */ | |
18788 | $ac_includes_default | |
18789 | int | |
18790 | main () | |
18791 | { | |
18792 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18793 | test_array [0] = 0 | |
18794 | ||
18795 | ; | |
18796 | return 0; | |
18797 | } | |
18798 | _ACEOF | |
18799 | rm -f conftest.$ac_objext | |
18800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18801 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18802 | ac_status=$? |
ac1cb8d3 VS |
18803 | grep -v '^ *+' conftest.er1 >conftest.err |
18804 | rm -f conftest.er1 | |
18805 | cat conftest.err >&5 | |
a848cd7e SC |
18806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18807 | (exit $ac_status); } && | |
f10e38c4 | 18808 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18810 | (eval $ac_try) 2>&5 | |
18811 | ac_status=$? | |
18812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18813 | (exit $ac_status); }; } && | |
18814 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18816 | (eval $ac_try) 2>&5 | |
18817 | ac_status=$? | |
18818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18819 | (exit $ac_status); }; }; then | |
18820 | ac_hi=$ac_mid | |
18821 | else | |
18822 | echo "$as_me: failed program was:" >&5 | |
18823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18824 | ||
18825 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18826 | fi | |
ac1cb8d3 | 18827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18828 | done |
18829 | case $ac_lo in | |
18830 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
18831 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18832 | See \`config.log' for more details." >&5 | |
18833 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18834 | See \`config.log' for more details." >&2;} | |
18835 | { (exit 1); exit 1; }; } ;; | |
18836 | esac | |
18837 | else | |
18838 | if test "$cross_compiling" = yes; then | |
f10e38c4 VZ |
18839 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18840 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18841 | { (exit 1); exit 1; }; } |
18842 | else | |
18843 | cat >conftest.$ac_ext <<_ACEOF | |
18844 | /* confdefs.h. */ | |
18845 | _ACEOF | |
18846 | cat confdefs.h >>conftest.$ac_ext | |
18847 | cat >>conftest.$ac_ext <<_ACEOF | |
18848 | /* end confdefs.h. */ | |
18849 | $ac_includes_default | |
18850 | long longval () { return (long) (sizeof (long)); } | |
18851 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
18852 | #include <stdio.h> | |
18853 | #include <stdlib.h> | |
18854 | int | |
18855 | main () | |
18856 | { | |
18857 | ||
18858 | FILE *f = fopen ("conftest.val", "w"); | |
18859 | if (! f) | |
18860 | exit (1); | |
18861 | if (((long) (sizeof (long))) < 0) | |
18862 | { | |
18863 | long i = longval (); | |
18864 | if (i != ((long) (sizeof (long)))) | |
18865 | exit (1); | |
18866 | fprintf (f, "%ld\n", i); | |
18867 | } | |
18868 | else | |
18869 | { | |
18870 | unsigned long i = ulongval (); | |
18871 | if (i != ((long) (sizeof (long)))) | |
18872 | exit (1); | |
18873 | fprintf (f, "%lu\n", i); | |
18874 | } | |
18875 | exit (ferror (f) || fclose (f) != 0); | |
18876 | ||
18877 | ; | |
18878 | return 0; | |
18879 | } | |
18880 | _ACEOF | |
18881 | rm -f conftest$ac_exeext | |
18882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18883 | (eval $ac_link) 2>&5 | |
18884 | ac_status=$? | |
18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18886 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18888 | (eval $ac_try) 2>&5 | |
18889 | ac_status=$? | |
18890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18891 | (exit $ac_status); }; }; then | |
18892 | ac_cv_sizeof_long=`cat conftest.val` | |
18893 | else | |
18894 | echo "$as_me: program exited with status $ac_status" >&5 | |
18895 | echo "$as_me: failed program was:" >&5 | |
18896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18897 | ||
18898 | ( exit $ac_status ) | |
18899 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18900 | See \`config.log' for more details." >&5 | |
18901 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18902 | See \`config.log' for more details." >&2;} | |
18903 | { (exit 1); exit 1; }; } | |
18904 | fi | |
ac1cb8d3 | 18905 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18906 | fi |
18907 | fi | |
18908 | rm -f conftest.val | |
18909 | else | |
18910 | ac_cv_sizeof_long=0 | |
18911 | fi | |
18912 | fi | |
18913 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
18914 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
18915 | cat >>confdefs.h <<_ACEOF | |
18916 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
18917 | _ACEOF | |
18918 | ||
18919 | ||
18920 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
18921 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
18922 | if test "${ac_cv_type_size_t+set}" = set; then | |
18923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18924 | else | |
18925 | cat >conftest.$ac_ext <<_ACEOF | |
18926 | /* confdefs.h. */ | |
18927 | _ACEOF | |
18928 | cat confdefs.h >>conftest.$ac_ext | |
18929 | cat >>conftest.$ac_ext <<_ACEOF | |
18930 | /* end confdefs.h. */ | |
18931 | $ac_includes_default | |
18932 | int | |
18933 | main () | |
18934 | { | |
18935 | if ((size_t *) 0) | |
18936 | return 0; | |
18937 | if (sizeof (size_t)) | |
18938 | return 0; | |
18939 | ; | |
18940 | return 0; | |
18941 | } | |
18942 | _ACEOF | |
18943 | rm -f conftest.$ac_objext | |
18944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18945 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18946 | ac_status=$? |
ac1cb8d3 VS |
18947 | grep -v '^ *+' conftest.er1 >conftest.err |
18948 | rm -f conftest.er1 | |
18949 | cat conftest.err >&5 | |
a848cd7e SC |
18950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18951 | (exit $ac_status); } && | |
f10e38c4 | 18952 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18954 | (eval $ac_try) 2>&5 | |
18955 | ac_status=$? | |
18956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18957 | (exit $ac_status); }; } && | |
18958 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18960 | (eval $ac_try) 2>&5 | |
18961 | ac_status=$? | |
18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18963 | (exit $ac_status); }; }; then | |
18964 | ac_cv_type_size_t=yes | |
18965 | else | |
18966 | echo "$as_me: failed program was:" >&5 | |
18967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18968 | ||
18969 | ac_cv_type_size_t=no | |
18970 | fi | |
ac1cb8d3 | 18971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18972 | fi |
18973 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
18974 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
18975 | ||
18976 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
18977 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
18978 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
18979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18980 | else | |
18981 | if test "$ac_cv_type_size_t" = yes; then | |
18982 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18983 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18984 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18985 | # This bug is HP SR number 8606223364. | |
18986 | if test "$cross_compiling" = yes; then | |
18987 | # Depending upon the size, compute the lo and hi bounds. | |
18988 | cat >conftest.$ac_ext <<_ACEOF | |
18989 | /* confdefs.h. */ | |
18990 | _ACEOF | |
18991 | cat confdefs.h >>conftest.$ac_ext | |
18992 | cat >>conftest.$ac_ext <<_ACEOF | |
18993 | /* end confdefs.h. */ | |
18994 | $ac_includes_default | |
18995 | int | |
18996 | main () | |
18997 | { | |
18998 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
18999 | test_array [0] = 0 | |
19000 | ||
19001 | ; | |
19002 | return 0; | |
19003 | } | |
19004 | _ACEOF | |
19005 | rm -f conftest.$ac_objext | |
19006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19008 | ac_status=$? |
ac1cb8d3 VS |
19009 | grep -v '^ *+' conftest.er1 >conftest.err |
19010 | rm -f conftest.er1 | |
19011 | cat conftest.err >&5 | |
a848cd7e SC |
19012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19013 | (exit $ac_status); } && | |
f10e38c4 | 19014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19016 | (eval $ac_try) 2>&5 | |
19017 | ac_status=$? | |
19018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19019 | (exit $ac_status); }; } && | |
19020 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19022 | (eval $ac_try) 2>&5 | |
19023 | ac_status=$? | |
19024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19025 | (exit $ac_status); }; }; then | |
19026 | ac_lo=0 ac_mid=0 | |
19027 | while :; do | |
19028 | cat >conftest.$ac_ext <<_ACEOF | |
19029 | /* confdefs.h. */ | |
19030 | _ACEOF | |
19031 | cat confdefs.h >>conftest.$ac_ext | |
19032 | cat >>conftest.$ac_ext <<_ACEOF | |
19033 | /* end confdefs.h. */ | |
19034 | $ac_includes_default | |
19035 | int | |
19036 | main () | |
19037 | { | |
19038 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19039 | test_array [0] = 0 | |
19040 | ||
19041 | ; | |
19042 | return 0; | |
19043 | } | |
19044 | _ACEOF | |
19045 | rm -f conftest.$ac_objext | |
19046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19047 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19048 | ac_status=$? |
ac1cb8d3 VS |
19049 | grep -v '^ *+' conftest.er1 >conftest.err |
19050 | rm -f conftest.er1 | |
19051 | cat conftest.err >&5 | |
a848cd7e SC |
19052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19053 | (exit $ac_status); } && | |
f10e38c4 | 19054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
19060 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19062 | (eval $ac_try) 2>&5 | |
19063 | ac_status=$? | |
19064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19065 | (exit $ac_status); }; }; then | |
19066 | ac_hi=$ac_mid; break | |
19067 | else | |
19068 | echo "$as_me: failed program was:" >&5 | |
19069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19070 | ||
19071 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19072 | if test $ac_lo -le $ac_mid; then |
19073 | ac_lo= ac_hi= | |
19074 | break | |
19075 | fi | |
19076 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19077 | fi |
ac1cb8d3 | 19078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19079 | done |
19080 | else | |
19081 | echo "$as_me: failed program was:" >&5 | |
19082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19083 | ||
19084 | cat >conftest.$ac_ext <<_ACEOF | |
19085 | /* confdefs.h. */ | |
19086 | _ACEOF | |
19087 | cat confdefs.h >>conftest.$ac_ext | |
19088 | cat >>conftest.$ac_ext <<_ACEOF | |
19089 | /* end confdefs.h. */ | |
19090 | $ac_includes_default | |
19091 | int | |
19092 | main () | |
19093 | { | |
19094 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
19095 | test_array [0] = 0 | |
19096 | ||
19097 | ; | |
19098 | return 0; | |
19099 | } | |
19100 | _ACEOF | |
19101 | rm -f conftest.$ac_objext | |
19102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19103 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19104 | ac_status=$? |
ac1cb8d3 VS |
19105 | grep -v '^ *+' conftest.er1 >conftest.err |
19106 | rm -f conftest.er1 | |
19107 | cat conftest.err >&5 | |
a848cd7e SC |
19108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19109 | (exit $ac_status); } && | |
f10e38c4 | 19110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19112 | (eval $ac_try) 2>&5 | |
19113 | ac_status=$? | |
19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19115 | (exit $ac_status); }; } && | |
19116 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19118 | (eval $ac_try) 2>&5 | |
19119 | ac_status=$? | |
19120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19121 | (exit $ac_status); }; }; then | |
19122 | ac_hi=-1 ac_mid=-1 | |
19123 | while :; do | |
19124 | cat >conftest.$ac_ext <<_ACEOF | |
19125 | /* confdefs.h. */ | |
19126 | _ACEOF | |
19127 | cat confdefs.h >>conftest.$ac_ext | |
19128 | cat >>conftest.$ac_ext <<_ACEOF | |
19129 | /* end confdefs.h. */ | |
19130 | $ac_includes_default | |
19131 | int | |
19132 | main () | |
19133 | { | |
19134 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
19135 | test_array [0] = 0 | |
19136 | ||
19137 | ; | |
19138 | return 0; | |
19139 | } | |
19140 | _ACEOF | |
19141 | rm -f conftest.$ac_objext | |
19142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19143 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19144 | ac_status=$? |
ac1cb8d3 VS |
19145 | grep -v '^ *+' conftest.er1 >conftest.err |
19146 | rm -f conftest.er1 | |
19147 | cat conftest.err >&5 | |
a848cd7e SC |
19148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19149 | (exit $ac_status); } && | |
f10e38c4 | 19150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19152 | (eval $ac_try) 2>&5 | |
19153 | ac_status=$? | |
19154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19155 | (exit $ac_status); }; } && | |
19156 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19158 | (eval $ac_try) 2>&5 | |
19159 | ac_status=$? | |
19160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19161 | (exit $ac_status); }; }; then | |
19162 | ac_lo=$ac_mid; break | |
19163 | else | |
19164 | echo "$as_me: failed program was:" >&5 | |
19165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19166 | ||
19167 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19168 | if test $ac_mid -le $ac_hi; then |
19169 | ac_lo= ac_hi= | |
19170 | break | |
19171 | fi | |
19172 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19173 | fi |
ac1cb8d3 | 19174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19175 | done |
19176 | else | |
19177 | echo "$as_me: failed program was:" >&5 | |
19178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19179 | ||
19180 | ac_lo= ac_hi= | |
19181 | fi | |
ac1cb8d3 | 19182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19183 | fi |
ac1cb8d3 | 19184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19185 | # Binary search between lo and hi bounds. |
19186 | while test "x$ac_lo" != "x$ac_hi"; do | |
19187 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19188 | cat >conftest.$ac_ext <<_ACEOF | |
19189 | /* confdefs.h. */ | |
19190 | _ACEOF | |
19191 | cat confdefs.h >>conftest.$ac_ext | |
19192 | cat >>conftest.$ac_ext <<_ACEOF | |
19193 | /* end confdefs.h. */ | |
19194 | $ac_includes_default | |
19195 | int | |
19196 | main () | |
19197 | { | |
19198 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19199 | test_array [0] = 0 | |
19200 | ||
19201 | ; | |
19202 | return 0; | |
19203 | } | |
19204 | _ACEOF | |
19205 | rm -f conftest.$ac_objext | |
19206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19207 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19208 | ac_status=$? |
ac1cb8d3 VS |
19209 | grep -v '^ *+' conftest.er1 >conftest.err |
19210 | rm -f conftest.er1 | |
19211 | cat conftest.err >&5 | |
a848cd7e SC |
19212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19213 | (exit $ac_status); } && | |
f10e38c4 | 19214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19216 | (eval $ac_try) 2>&5 | |
19217 | ac_status=$? | |
19218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19219 | (exit $ac_status); }; } && | |
19220 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19222 | (eval $ac_try) 2>&5 | |
19223 | ac_status=$? | |
19224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19225 | (exit $ac_status); }; }; then | |
19226 | ac_hi=$ac_mid | |
19227 | else | |
19228 | echo "$as_me: failed program was:" >&5 | |
19229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19230 | ||
19231 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19232 | fi | |
ac1cb8d3 | 19233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19234 | done |
19235 | case $ac_lo in | |
19236 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
19237 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19238 | See \`config.log' for more details." >&5 | |
19239 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19240 | See \`config.log' for more details." >&2;} | |
19241 | { (exit 1); exit 1; }; } ;; | |
19242 | esac | |
19243 | else | |
19244 | if test "$cross_compiling" = yes; then | |
f10e38c4 VZ |
19245 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19246 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19247 | { (exit 1); exit 1; }; } |
19248 | else | |
19249 | cat >conftest.$ac_ext <<_ACEOF | |
19250 | /* confdefs.h. */ | |
19251 | _ACEOF | |
19252 | cat confdefs.h >>conftest.$ac_ext | |
19253 | cat >>conftest.$ac_ext <<_ACEOF | |
19254 | /* end confdefs.h. */ | |
19255 | $ac_includes_default | |
19256 | long longval () { return (long) (sizeof (size_t)); } | |
19257 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
19258 | #include <stdio.h> | |
19259 | #include <stdlib.h> | |
19260 | int | |
19261 | main () | |
19262 | { | |
19263 | ||
19264 | FILE *f = fopen ("conftest.val", "w"); | |
19265 | if (! f) | |
19266 | exit (1); | |
19267 | if (((long) (sizeof (size_t))) < 0) | |
19268 | { | |
19269 | long i = longval (); | |
19270 | if (i != ((long) (sizeof (size_t)))) | |
19271 | exit (1); | |
19272 | fprintf (f, "%ld\n", i); | |
19273 | } | |
19274 | else | |
19275 | { | |
19276 | unsigned long i = ulongval (); | |
19277 | if (i != ((long) (sizeof (size_t)))) | |
19278 | exit (1); | |
19279 | fprintf (f, "%lu\n", i); | |
19280 | } | |
19281 | exit (ferror (f) || fclose (f) != 0); | |
19282 | ||
19283 | ; | |
19284 | return 0; | |
19285 | } | |
19286 | _ACEOF | |
19287 | rm -f conftest$ac_exeext | |
19288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19289 | (eval $ac_link) 2>&5 | |
19290 | ac_status=$? | |
19291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19292 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19294 | (eval $ac_try) 2>&5 | |
19295 | ac_status=$? | |
19296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19297 | (exit $ac_status); }; }; then | |
19298 | ac_cv_sizeof_size_t=`cat conftest.val` | |
19299 | else | |
19300 | echo "$as_me: program exited with status $ac_status" >&5 | |
19301 | echo "$as_me: failed program was:" >&5 | |
19302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19303 | ||
19304 | ( exit $ac_status ) | |
19305 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19306 | See \`config.log' for more details." >&5 | |
19307 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19308 | See \`config.log' for more details." >&2;} | |
19309 | { (exit 1); exit 1; }; } | |
19310 | fi | |
ac1cb8d3 | 19311 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19312 | fi |
19313 | fi | |
19314 | rm -f conftest.val | |
19315 | else | |
19316 | ac_cv_sizeof_size_t=0 | |
19317 | fi | |
19318 | fi | |
19319 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
19320 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
19321 | cat >>confdefs.h <<_ACEOF | |
19322 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
19323 | _ACEOF | |
19324 | ||
19325 | ||
19326 | ||
19327 | case "${host}" in | |
19328 | arm-*-linux* ) | |
19329 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19330 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19331 | if test "${ac_cv_type_long_long+set}" = set; then | |
19332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19333 | else | |
19334 | cat >conftest.$ac_ext <<_ACEOF | |
19335 | /* confdefs.h. */ | |
19336 | _ACEOF | |
19337 | cat confdefs.h >>conftest.$ac_ext | |
19338 | cat >>conftest.$ac_ext <<_ACEOF | |
19339 | /* end confdefs.h. */ | |
19340 | $ac_includes_default | |
19341 | int | |
19342 | main () | |
19343 | { | |
19344 | if ((long long *) 0) | |
19345 | return 0; | |
19346 | if (sizeof (long long)) | |
19347 | return 0; | |
19348 | ; | |
19349 | return 0; | |
19350 | } | |
19351 | _ACEOF | |
19352 | rm -f conftest.$ac_objext | |
19353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19354 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19355 | ac_status=$? |
ac1cb8d3 VS |
19356 | grep -v '^ *+' conftest.er1 >conftest.err |
19357 | rm -f conftest.er1 | |
19358 | cat conftest.err >&5 | |
a848cd7e SC |
19359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19360 | (exit $ac_status); } && | |
f10e38c4 | 19361 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19363 | (eval $ac_try) 2>&5 | |
19364 | ac_status=$? | |
19365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19366 | (exit $ac_status); }; } && | |
19367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19369 | (eval $ac_try) 2>&5 | |
19370 | ac_status=$? | |
19371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19372 | (exit $ac_status); }; }; then | |
19373 | ac_cv_type_long_long=yes | |
19374 | else | |
19375 | echo "$as_me: failed program was:" >&5 | |
19376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19377 | ||
19378 | ac_cv_type_long_long=no | |
19379 | fi | |
ac1cb8d3 | 19380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19381 | fi |
19382 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19383 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19384 | ||
19385 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19386 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19387 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19389 | else | |
19390 | if test "$ac_cv_type_long_long" = yes; then | |
19391 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19392 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19393 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19394 | # This bug is HP SR number 8606223364. | |
19395 | if test "$cross_compiling" = yes; then | |
19396 | # Depending upon the size, compute the lo and hi bounds. | |
19397 | cat >conftest.$ac_ext <<_ACEOF | |
19398 | /* confdefs.h. */ | |
19399 | _ACEOF | |
19400 | cat confdefs.h >>conftest.$ac_ext | |
19401 | cat >>conftest.$ac_ext <<_ACEOF | |
19402 | /* end confdefs.h. */ | |
19403 | $ac_includes_default | |
19404 | int | |
19405 | main () | |
19406 | { | |
19407 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19408 | test_array [0] = 0 | |
19409 | ||
19410 | ; | |
19411 | return 0; | |
19412 | } | |
19413 | _ACEOF | |
19414 | rm -f conftest.$ac_objext | |
19415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19416 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19417 | ac_status=$? |
ac1cb8d3 VS |
19418 | grep -v '^ *+' conftest.er1 >conftest.err |
19419 | rm -f conftest.er1 | |
19420 | cat conftest.err >&5 | |
a848cd7e SC |
19421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19422 | (exit $ac_status); } && | |
f10e38c4 | 19423 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19425 | (eval $ac_try) 2>&5 | |
19426 | ac_status=$? | |
19427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19428 | (exit $ac_status); }; } && | |
19429 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19431 | (eval $ac_try) 2>&5 | |
19432 | ac_status=$? | |
19433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19434 | (exit $ac_status); }; }; then | |
19435 | ac_lo=0 ac_mid=0 | |
19436 | while :; do | |
19437 | cat >conftest.$ac_ext <<_ACEOF | |
19438 | /* confdefs.h. */ | |
19439 | _ACEOF | |
19440 | cat confdefs.h >>conftest.$ac_ext | |
19441 | cat >>conftest.$ac_ext <<_ACEOF | |
19442 | /* end confdefs.h. */ | |
19443 | $ac_includes_default | |
19444 | int | |
19445 | main () | |
19446 | { | |
19447 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19448 | test_array [0] = 0 | |
19449 | ||
19450 | ; | |
19451 | return 0; | |
19452 | } | |
19453 | _ACEOF | |
19454 | rm -f conftest.$ac_objext | |
19455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19456 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19457 | ac_status=$? |
ac1cb8d3 VS |
19458 | grep -v '^ *+' conftest.er1 >conftest.err |
19459 | rm -f conftest.er1 | |
19460 | cat conftest.err >&5 | |
a848cd7e SC |
19461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19462 | (exit $ac_status); } && | |
f10e38c4 | 19463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19465 | (eval $ac_try) 2>&5 | |
19466 | ac_status=$? | |
19467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19468 | (exit $ac_status); }; } && | |
19469 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19471 | (eval $ac_try) 2>&5 | |
19472 | ac_status=$? | |
19473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19474 | (exit $ac_status); }; }; then | |
19475 | ac_hi=$ac_mid; break | |
19476 | else | |
19477 | echo "$as_me: failed program was:" >&5 | |
19478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19479 | ||
19480 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19481 | if test $ac_lo -le $ac_mid; then |
19482 | ac_lo= ac_hi= | |
19483 | break | |
19484 | fi | |
19485 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19486 | fi |
ac1cb8d3 | 19487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19488 | done |
19489 | else | |
19490 | echo "$as_me: failed program was:" >&5 | |
19491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19492 | ||
19493 | cat >conftest.$ac_ext <<_ACEOF | |
19494 | /* confdefs.h. */ | |
19495 | _ACEOF | |
19496 | cat confdefs.h >>conftest.$ac_ext | |
19497 | cat >>conftest.$ac_ext <<_ACEOF | |
19498 | /* end confdefs.h. */ | |
19499 | $ac_includes_default | |
19500 | int | |
19501 | main () | |
19502 | { | |
19503 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19504 | test_array [0] = 0 | |
19505 | ||
19506 | ; | |
19507 | return 0; | |
19508 | } | |
19509 | _ACEOF | |
19510 | rm -f conftest.$ac_objext | |
19511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19512 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19513 | ac_status=$? |
ac1cb8d3 VS |
19514 | grep -v '^ *+' conftest.er1 >conftest.err |
19515 | rm -f conftest.er1 | |
19516 | cat conftest.err >&5 | |
a848cd7e SC |
19517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19518 | (exit $ac_status); } && | |
f10e38c4 | 19519 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19521 | (eval $ac_try) 2>&5 | |
19522 | ac_status=$? | |
19523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19524 | (exit $ac_status); }; } && | |
19525 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19527 | (eval $ac_try) 2>&5 | |
19528 | ac_status=$? | |
19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19530 | (exit $ac_status); }; }; then | |
19531 | ac_hi=-1 ac_mid=-1 | |
19532 | while :; do | |
19533 | cat >conftest.$ac_ext <<_ACEOF | |
19534 | /* confdefs.h. */ | |
19535 | _ACEOF | |
19536 | cat confdefs.h >>conftest.$ac_ext | |
19537 | cat >>conftest.$ac_ext <<_ACEOF | |
19538 | /* end confdefs.h. */ | |
19539 | $ac_includes_default | |
19540 | int | |
19541 | main () | |
19542 | { | |
19543 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19544 | test_array [0] = 0 | |
19545 | ||
19546 | ; | |
19547 | return 0; | |
19548 | } | |
19549 | _ACEOF | |
19550 | rm -f conftest.$ac_objext | |
19551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19552 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19553 | ac_status=$? |
ac1cb8d3 VS |
19554 | grep -v '^ *+' conftest.er1 >conftest.err |
19555 | rm -f conftest.er1 | |
19556 | cat conftest.err >&5 | |
a848cd7e SC |
19557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19558 | (exit $ac_status); } && | |
f10e38c4 | 19559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19561 | (eval $ac_try) 2>&5 | |
19562 | ac_status=$? | |
19563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19564 | (exit $ac_status); }; } && | |
19565 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19567 | (eval $ac_try) 2>&5 | |
19568 | ac_status=$? | |
19569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19570 | (exit $ac_status); }; }; then | |
19571 | ac_lo=$ac_mid; break | |
19572 | else | |
19573 | echo "$as_me: failed program was:" >&5 | |
19574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19575 | ||
19576 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19577 | if test $ac_mid -le $ac_hi; then |
19578 | ac_lo= ac_hi= | |
19579 | break | |
19580 | fi | |
19581 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19582 | fi |
ac1cb8d3 | 19583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19584 | done |
19585 | else | |
19586 | echo "$as_me: failed program was:" >&5 | |
19587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19588 | ||
19589 | ac_lo= ac_hi= | |
19590 | fi | |
ac1cb8d3 | 19591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19592 | fi |
ac1cb8d3 | 19593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19594 | # Binary search between lo and hi bounds. |
19595 | while test "x$ac_lo" != "x$ac_hi"; do | |
19596 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19597 | cat >conftest.$ac_ext <<_ACEOF | |
19598 | /* confdefs.h. */ | |
19599 | _ACEOF | |
19600 | cat confdefs.h >>conftest.$ac_ext | |
19601 | cat >>conftest.$ac_ext <<_ACEOF | |
19602 | /* end confdefs.h. */ | |
19603 | $ac_includes_default | |
19604 | int | |
19605 | main () | |
19606 | { | |
19607 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19608 | test_array [0] = 0 | |
19609 | ||
19610 | ; | |
19611 | return 0; | |
19612 | } | |
19613 | _ACEOF | |
19614 | rm -f conftest.$ac_objext | |
19615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19616 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19617 | ac_status=$? |
ac1cb8d3 VS |
19618 | grep -v '^ *+' conftest.er1 >conftest.err |
19619 | rm -f conftest.er1 | |
19620 | cat conftest.err >&5 | |
a848cd7e SC |
19621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19622 | (exit $ac_status); } && | |
f10e38c4 | 19623 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19625 | (eval $ac_try) 2>&5 | |
19626 | ac_status=$? | |
19627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19628 | (exit $ac_status); }; } && | |
19629 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19631 | (eval $ac_try) 2>&5 | |
19632 | ac_status=$? | |
19633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19634 | (exit $ac_status); }; }; then | |
19635 | ac_hi=$ac_mid | |
19636 | else | |
19637 | echo "$as_me: failed program was:" >&5 | |
19638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19639 | ||
19640 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19641 | fi | |
ac1cb8d3 | 19642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19643 | done |
19644 | case $ac_lo in | |
19645 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19646 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19647 | See \`config.log' for more details." >&5 | |
19648 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19649 | See \`config.log' for more details." >&2;} | |
19650 | { (exit 1); exit 1; }; } ;; | |
19651 | esac | |
19652 | else | |
19653 | if test "$cross_compiling" = yes; then | |
f10e38c4 VZ |
19654 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19655 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19656 | { (exit 1); exit 1; }; } |
19657 | else | |
19658 | cat >conftest.$ac_ext <<_ACEOF | |
19659 | /* confdefs.h. */ | |
19660 | _ACEOF | |
19661 | cat confdefs.h >>conftest.$ac_ext | |
19662 | cat >>conftest.$ac_ext <<_ACEOF | |
19663 | /* end confdefs.h. */ | |
19664 | $ac_includes_default | |
19665 | long longval () { return (long) (sizeof (long long)); } | |
19666 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19667 | #include <stdio.h> | |
19668 | #include <stdlib.h> | |
19669 | int | |
19670 | main () | |
19671 | { | |
19672 | ||
19673 | FILE *f = fopen ("conftest.val", "w"); | |
19674 | if (! f) | |
19675 | exit (1); | |
19676 | if (((long) (sizeof (long long))) < 0) | |
19677 | { | |
19678 | long i = longval (); | |
19679 | if (i != ((long) (sizeof (long long)))) | |
19680 | exit (1); | |
19681 | fprintf (f, "%ld\n", i); | |
19682 | } | |
19683 | else | |
19684 | { | |
19685 | unsigned long i = ulongval (); | |
19686 | if (i != ((long) (sizeof (long long)))) | |
19687 | exit (1); | |
19688 | fprintf (f, "%lu\n", i); | |
19689 | } | |
19690 | exit (ferror (f) || fclose (f) != 0); | |
19691 | ||
19692 | ; | |
19693 | return 0; | |
19694 | } | |
19695 | _ACEOF | |
19696 | rm -f conftest$ac_exeext | |
19697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19698 | (eval $ac_link) 2>&5 | |
19699 | ac_status=$? | |
19700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19701 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19703 | (eval $ac_try) 2>&5 | |
19704 | ac_status=$? | |
19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19706 | (exit $ac_status); }; }; then | |
19707 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19708 | else | |
19709 | echo "$as_me: program exited with status $ac_status" >&5 | |
19710 | echo "$as_me: failed program was:" >&5 | |
19711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19712 | ||
19713 | ( exit $ac_status ) | |
19714 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19715 | See \`config.log' for more details." >&5 | |
19716 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19717 | See \`config.log' for more details." >&2;} | |
19718 | { (exit 1); exit 1; }; } | |
19719 | fi | |
ac1cb8d3 | 19720 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19721 | fi |
19722 | fi | |
19723 | rm -f conftest.val | |
19724 | else | |
19725 | ac_cv_sizeof_long_long=0 | |
19726 | fi | |
19727 | fi | |
19728 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19729 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19730 | cat >>confdefs.h <<_ACEOF | |
19731 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19732 | _ACEOF | |
19733 | ||
19734 | ||
19735 | ;; | |
19736 | *-hp-hpux* ) | |
19737 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19738 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19739 | if test "${ac_cv_type_long_long+set}" = set; then | |
19740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19741 | else | |
19742 | cat >conftest.$ac_ext <<_ACEOF | |
19743 | /* confdefs.h. */ | |
19744 | _ACEOF | |
19745 | cat confdefs.h >>conftest.$ac_ext | |
19746 | cat >>conftest.$ac_ext <<_ACEOF | |
19747 | /* end confdefs.h. */ | |
19748 | $ac_includes_default | |
19749 | int | |
19750 | main () | |
19751 | { | |
19752 | if ((long long *) 0) | |
19753 | return 0; | |
19754 | if (sizeof (long long)) | |
19755 | return 0; | |
19756 | ; | |
19757 | return 0; | |
19758 | } | |
19759 | _ACEOF | |
19760 | rm -f conftest.$ac_objext | |
19761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19762 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19763 | ac_status=$? |
ac1cb8d3 VS |
19764 | grep -v '^ *+' conftest.er1 >conftest.err |
19765 | rm -f conftest.er1 | |
19766 | cat conftest.err >&5 | |
a848cd7e SC |
19767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19768 | (exit $ac_status); } && | |
f10e38c4 | 19769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19771 | (eval $ac_try) 2>&5 | |
19772 | ac_status=$? | |
19773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19774 | (exit $ac_status); }; } && | |
19775 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19777 | (eval $ac_try) 2>&5 | |
19778 | ac_status=$? | |
19779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19780 | (exit $ac_status); }; }; then | |
19781 | ac_cv_type_long_long=yes | |
19782 | else | |
19783 | echo "$as_me: failed program was:" >&5 | |
19784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19785 | ||
19786 | ac_cv_type_long_long=no | |
19787 | fi | |
ac1cb8d3 | 19788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19789 | fi |
19790 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19791 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19792 | ||
19793 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19794 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19795 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19797 | else | |
19798 | if test "$ac_cv_type_long_long" = yes; then | |
19799 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19800 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19801 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19802 | # This bug is HP SR number 8606223364. | |
19803 | if test "$cross_compiling" = yes; then | |
19804 | # Depending upon the size, compute the lo and hi bounds. | |
19805 | cat >conftest.$ac_ext <<_ACEOF | |
19806 | /* confdefs.h. */ | |
19807 | _ACEOF | |
19808 | cat confdefs.h >>conftest.$ac_ext | |
19809 | cat >>conftest.$ac_ext <<_ACEOF | |
19810 | /* end confdefs.h. */ | |
19811 | $ac_includes_default | |
19812 | int | |
19813 | main () | |
19814 | { | |
19815 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19816 | test_array [0] = 0 | |
19817 | ||
19818 | ; | |
19819 | return 0; | |
19820 | } | |
19821 | _ACEOF | |
19822 | rm -f conftest.$ac_objext | |
19823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19824 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19825 | ac_status=$? |
ac1cb8d3 VS |
19826 | grep -v '^ *+' conftest.er1 >conftest.err |
19827 | rm -f conftest.er1 | |
19828 | cat conftest.err >&5 | |
a848cd7e SC |
19829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19830 | (exit $ac_status); } && | |
f10e38c4 | 19831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19833 | (eval $ac_try) 2>&5 | |
19834 | ac_status=$? | |
19835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19836 | (exit $ac_status); }; } && | |
19837 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19839 | (eval $ac_try) 2>&5 | |
19840 | ac_status=$? | |
19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19842 | (exit $ac_status); }; }; then | |
19843 | ac_lo=0 ac_mid=0 | |
19844 | while :; do | |
19845 | cat >conftest.$ac_ext <<_ACEOF | |
19846 | /* confdefs.h. */ | |
19847 | _ACEOF | |
19848 | cat confdefs.h >>conftest.$ac_ext | |
19849 | cat >>conftest.$ac_ext <<_ACEOF | |
19850 | /* end confdefs.h. */ | |
19851 | $ac_includes_default | |
19852 | int | |
19853 | main () | |
19854 | { | |
19855 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19856 | test_array [0] = 0 | |
19857 | ||
19858 | ; | |
19859 | return 0; | |
19860 | } | |
19861 | _ACEOF | |
19862 | rm -f conftest.$ac_objext | |
19863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19864 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19865 | ac_status=$? |
ac1cb8d3 VS |
19866 | grep -v '^ *+' conftest.er1 >conftest.err |
19867 | rm -f conftest.er1 | |
19868 | cat conftest.err >&5 | |
a848cd7e SC |
19869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19870 | (exit $ac_status); } && | |
f10e38c4 | 19871 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19873 | (eval $ac_try) 2>&5 | |
19874 | ac_status=$? | |
19875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19876 | (exit $ac_status); }; } && | |
19877 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19879 | (eval $ac_try) 2>&5 | |
19880 | ac_status=$? | |
19881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19882 | (exit $ac_status); }; }; then | |
19883 | ac_hi=$ac_mid; break | |
19884 | else | |
19885 | echo "$as_me: failed program was:" >&5 | |
19886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19887 | ||
19888 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19889 | if test $ac_lo -le $ac_mid; then |
19890 | ac_lo= ac_hi= | |
19891 | break | |
19892 | fi | |
19893 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19894 | fi |
ac1cb8d3 | 19895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19896 | done |
19897 | else | |
19898 | echo "$as_me: failed program was:" >&5 | |
19899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19900 | ||
19901 | cat >conftest.$ac_ext <<_ACEOF | |
19902 | /* confdefs.h. */ | |
19903 | _ACEOF | |
19904 | cat confdefs.h >>conftest.$ac_ext | |
19905 | cat >>conftest.$ac_ext <<_ACEOF | |
19906 | /* end confdefs.h. */ | |
19907 | $ac_includes_default | |
19908 | int | |
19909 | main () | |
19910 | { | |
19911 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19912 | test_array [0] = 0 | |
19913 | ||
19914 | ; | |
19915 | return 0; | |
19916 | } | |
19917 | _ACEOF | |
19918 | rm -f conftest.$ac_objext | |
19919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19920 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19921 | ac_status=$? |
ac1cb8d3 VS |
19922 | grep -v '^ *+' conftest.er1 >conftest.err |
19923 | rm -f conftest.er1 | |
19924 | cat conftest.err >&5 | |
a848cd7e SC |
19925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19926 | (exit $ac_status); } && | |
f10e38c4 | 19927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19929 | (eval $ac_try) 2>&5 | |
19930 | ac_status=$? | |
19931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19932 | (exit $ac_status); }; } && | |
19933 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19935 | (eval $ac_try) 2>&5 | |
19936 | ac_status=$? | |
19937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19938 | (exit $ac_status); }; }; then | |
19939 | ac_hi=-1 ac_mid=-1 | |
19940 | while :; do | |
19941 | cat >conftest.$ac_ext <<_ACEOF | |
19942 | /* confdefs.h. */ | |
19943 | _ACEOF | |
19944 | cat confdefs.h >>conftest.$ac_ext | |
19945 | cat >>conftest.$ac_ext <<_ACEOF | |
19946 | /* end confdefs.h. */ | |
19947 | $ac_includes_default | |
19948 | int | |
19949 | main () | |
19950 | { | |
19951 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19952 | test_array [0] = 0 | |
19953 | ||
19954 | ; | |
19955 | return 0; | |
19956 | } | |
19957 | _ACEOF | |
19958 | rm -f conftest.$ac_objext | |
19959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19960 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19961 | ac_status=$? |
ac1cb8d3 VS |
19962 | grep -v '^ *+' conftest.er1 >conftest.err |
19963 | rm -f conftest.er1 | |
19964 | cat conftest.err >&5 | |
a848cd7e SC |
19965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19966 | (exit $ac_status); } && | |
f10e38c4 | 19967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19969 | (eval $ac_try) 2>&5 | |
19970 | ac_status=$? | |
19971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19972 | (exit $ac_status); }; } && | |
19973 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19975 | (eval $ac_try) 2>&5 | |
19976 | ac_status=$? | |
19977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19978 | (exit $ac_status); }; }; then | |
19979 | ac_lo=$ac_mid; break | |
19980 | else | |
19981 | echo "$as_me: failed program was:" >&5 | |
19982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19983 | ||
19984 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19985 | if test $ac_mid -le $ac_hi; then |
19986 | ac_lo= ac_hi= | |
19987 | break | |
19988 | fi | |
19989 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19990 | fi |
ac1cb8d3 | 19991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19992 | done |
19993 | else | |
19994 | echo "$as_me: failed program was:" >&5 | |
19995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19996 | ||
19997 | ac_lo= ac_hi= | |
19998 | fi | |
ac1cb8d3 | 19999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20000 | fi |
ac1cb8d3 | 20001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20002 | # Binary search between lo and hi bounds. |
20003 | while test "x$ac_lo" != "x$ac_hi"; do | |
20004 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20005 | cat >conftest.$ac_ext <<_ACEOF | |
20006 | /* confdefs.h. */ | |
20007 | _ACEOF | |
20008 | cat confdefs.h >>conftest.$ac_ext | |
20009 | cat >>conftest.$ac_ext <<_ACEOF | |
20010 | /* end confdefs.h. */ | |
20011 | $ac_includes_default | |
20012 | int | |
20013 | main () | |
20014 | { | |
20015 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20016 | test_array [0] = 0 | |
20017 | ||
20018 | ; | |
20019 | return 0; | |
20020 | } | |
20021 | _ACEOF | |
20022 | rm -f conftest.$ac_objext | |
20023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20024 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20025 | ac_status=$? |
ac1cb8d3 VS |
20026 | grep -v '^ *+' conftest.er1 >conftest.err |
20027 | rm -f conftest.er1 | |
20028 | cat conftest.err >&5 | |
a848cd7e SC |
20029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20030 | (exit $ac_status); } && | |
f10e38c4 | 20031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20033 | (eval $ac_try) 2>&5 | |
20034 | ac_status=$? | |
20035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20036 | (exit $ac_status); }; } && | |
20037 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20039 | (eval $ac_try) 2>&5 | |
20040 | ac_status=$? | |
20041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20042 | (exit $ac_status); }; }; then | |
20043 | ac_hi=$ac_mid | |
20044 | else | |
20045 | echo "$as_me: failed program was:" >&5 | |
20046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20047 | ||
20048 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20049 | fi | |
ac1cb8d3 | 20050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20051 | done |
20052 | case $ac_lo in | |
20053 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20054 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20055 | See \`config.log' for more details." >&5 | |
20056 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20057 | See \`config.log' for more details." >&2;} | |
20058 | { (exit 1); exit 1; }; } ;; | |
20059 | esac | |
20060 | else | |
20061 | if test "$cross_compiling" = yes; then | |
f10e38c4 VZ |
20062 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20063 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20064 | { (exit 1); exit 1; }; } |
20065 | else | |
20066 | cat >conftest.$ac_ext <<_ACEOF | |
20067 | /* confdefs.h. */ | |
20068 | _ACEOF | |
20069 | cat confdefs.h >>conftest.$ac_ext | |
20070 | cat >>conftest.$ac_ext <<_ACEOF | |
20071 | /* end confdefs.h. */ | |
20072 | $ac_includes_default | |
20073 | long longval () { return (long) (sizeof (long long)); } | |
20074 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20075 | #include <stdio.h> | |
20076 | #include <stdlib.h> | |
20077 | int | |
20078 | main () | |
20079 | { | |
20080 | ||
20081 | FILE *f = fopen ("conftest.val", "w"); | |
20082 | if (! f) | |
20083 | exit (1); | |
20084 | if (((long) (sizeof (long long))) < 0) | |
20085 | { | |
20086 | long i = longval (); | |
20087 | if (i != ((long) (sizeof (long long)))) | |
20088 | exit (1); | |
20089 | fprintf (f, "%ld\n", i); | |
20090 | } | |
20091 | else | |
20092 | { | |
20093 | unsigned long i = ulongval (); | |
20094 | if (i != ((long) (sizeof (long long)))) | |
20095 | exit (1); | |
20096 | fprintf (f, "%lu\n", i); | |
20097 | } | |
20098 | exit (ferror (f) || fclose (f) != 0); | |
20099 | ||
20100 | ; | |
20101 | return 0; | |
20102 | } | |
20103 | _ACEOF | |
20104 | rm -f conftest$ac_exeext | |
20105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20106 | (eval $ac_link) 2>&5 | |
20107 | ac_status=$? | |
20108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20109 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20111 | (eval $ac_try) 2>&5 | |
20112 | ac_status=$? | |
20113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20114 | (exit $ac_status); }; }; then | |
20115 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20116 | else | |
20117 | echo "$as_me: program exited with status $ac_status" >&5 | |
20118 | echo "$as_me: failed program was:" >&5 | |
20119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20120 | ||
20121 | ( exit $ac_status ) | |
20122 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20123 | See \`config.log' for more details." >&5 | |
20124 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20125 | See \`config.log' for more details." >&2;} | |
20126 | { (exit 1); exit 1; }; } | |
20127 | fi | |
ac1cb8d3 | 20128 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20129 | fi |
20130 | fi | |
20131 | rm -f conftest.val | |
20132 | else | |
20133 | ac_cv_sizeof_long_long=0 | |
20134 | fi | |
20135 | fi | |
20136 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20137 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20138 | cat >>confdefs.h <<_ACEOF | |
20139 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20140 | _ACEOF | |
20141 | ||
20142 | ||
20143 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 20144 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
20145 | fi |
20146 | ;; | |
20147 | * ) | |
20148 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20149 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20150 | if test "${ac_cv_type_long_long+set}" = set; then | |
20151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20152 | else | |
20153 | cat >conftest.$ac_ext <<_ACEOF | |
20154 | /* confdefs.h. */ | |
20155 | _ACEOF | |
20156 | cat confdefs.h >>conftest.$ac_ext | |
20157 | cat >>conftest.$ac_ext <<_ACEOF | |
20158 | /* end confdefs.h. */ | |
20159 | $ac_includes_default | |
20160 | int | |
20161 | main () | |
20162 | { | |
20163 | if ((long long *) 0) | |
20164 | return 0; | |
20165 | if (sizeof (long long)) | |
20166 | return 0; | |
20167 | ; | |
20168 | return 0; | |
20169 | } | |
20170 | _ACEOF | |
20171 | rm -f conftest.$ac_objext | |
20172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20173 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20174 | ac_status=$? |
ac1cb8d3 VS |
20175 | grep -v '^ *+' conftest.er1 >conftest.err |
20176 | rm -f conftest.er1 | |
20177 | cat conftest.err >&5 | |
a848cd7e SC |
20178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20179 | (exit $ac_status); } && | |
f10e38c4 | 20180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20182 | (eval $ac_try) 2>&5 | |
20183 | ac_status=$? | |
20184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20185 | (exit $ac_status); }; } && | |
20186 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20188 | (eval $ac_try) 2>&5 | |
20189 | ac_status=$? | |
20190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20191 | (exit $ac_status); }; }; then | |
20192 | ac_cv_type_long_long=yes | |
20193 | else | |
20194 | echo "$as_me: failed program was:" >&5 | |
20195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20196 | ||
20197 | ac_cv_type_long_long=no | |
20198 | fi | |
ac1cb8d3 | 20199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20200 | fi |
20201 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20202 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20203 | ||
20204 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20205 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20206 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20208 | else | |
20209 | if test "$ac_cv_type_long_long" = yes; then | |
20210 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20211 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20212 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20213 | # This bug is HP SR number 8606223364. | |
20214 | if test "$cross_compiling" = yes; then | |
20215 | # Depending upon the size, compute the lo and hi bounds. | |
20216 | cat >conftest.$ac_ext <<_ACEOF | |
20217 | /* confdefs.h. */ | |
20218 | _ACEOF | |
20219 | cat confdefs.h >>conftest.$ac_ext | |
20220 | cat >>conftest.$ac_ext <<_ACEOF | |
20221 | /* end confdefs.h. */ | |
20222 | $ac_includes_default | |
20223 | int | |
20224 | main () | |
20225 | { | |
20226 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20227 | test_array [0] = 0 | |
20228 | ||
20229 | ; | |
20230 | return 0; | |
20231 | } | |
20232 | _ACEOF | |
20233 | rm -f conftest.$ac_objext | |
20234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20235 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20236 | ac_status=$? |
ac1cb8d3 VS |
20237 | grep -v '^ *+' conftest.er1 >conftest.err |
20238 | rm -f conftest.er1 | |
20239 | cat conftest.err >&5 | |
a848cd7e SC |
20240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20241 | (exit $ac_status); } && | |
f10e38c4 | 20242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20244 | (eval $ac_try) 2>&5 | |
20245 | ac_status=$? | |
20246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20247 | (exit $ac_status); }; } && | |
20248 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20250 | (eval $ac_try) 2>&5 | |
20251 | ac_status=$? | |
20252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20253 | (exit $ac_status); }; }; then | |
20254 | ac_lo=0 ac_mid=0 | |
20255 | while :; do | |
20256 | cat >conftest.$ac_ext <<_ACEOF | |
20257 | /* confdefs.h. */ | |
20258 | _ACEOF | |
20259 | cat confdefs.h >>conftest.$ac_ext | |
20260 | cat >>conftest.$ac_ext <<_ACEOF | |
20261 | /* end confdefs.h. */ | |
20262 | $ac_includes_default | |
20263 | int | |
20264 | main () | |
20265 | { | |
20266 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20267 | test_array [0] = 0 | |
20268 | ||
20269 | ; | |
20270 | return 0; | |
20271 | } | |
20272 | _ACEOF | |
20273 | rm -f conftest.$ac_objext | |
20274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20275 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20276 | ac_status=$? |
ac1cb8d3 VS |
20277 | grep -v '^ *+' conftest.er1 >conftest.err |
20278 | rm -f conftest.er1 | |
20279 | cat conftest.err >&5 | |
a848cd7e SC |
20280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20281 | (exit $ac_status); } && | |
f10e38c4 | 20282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20284 | (eval $ac_try) 2>&5 | |
20285 | ac_status=$? | |
20286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20287 | (exit $ac_status); }; } && | |
20288 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20290 | (eval $ac_try) 2>&5 | |
20291 | ac_status=$? | |
20292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20293 | (exit $ac_status); }; }; then | |
20294 | ac_hi=$ac_mid; break | |
20295 | else | |
20296 | echo "$as_me: failed program was:" >&5 | |
20297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20298 | ||
20299 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20300 | if test $ac_lo -le $ac_mid; then |
20301 | ac_lo= ac_hi= | |
20302 | break | |
20303 | fi | |
20304 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20305 | fi |
ac1cb8d3 | 20306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20307 | done |
20308 | else | |
20309 | echo "$as_me: failed program was:" >&5 | |
20310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20311 | ||
20312 | cat >conftest.$ac_ext <<_ACEOF | |
20313 | /* confdefs.h. */ | |
20314 | _ACEOF | |
20315 | cat confdefs.h >>conftest.$ac_ext | |
20316 | cat >>conftest.$ac_ext <<_ACEOF | |
20317 | /* end confdefs.h. */ | |
20318 | $ac_includes_default | |
20319 | int | |
20320 | main () | |
20321 | { | |
20322 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20323 | test_array [0] = 0 | |
20324 | ||
20325 | ; | |
20326 | return 0; | |
20327 | } | |
20328 | _ACEOF | |
20329 | rm -f conftest.$ac_objext | |
20330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20331 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20332 | ac_status=$? |
ac1cb8d3 VS |
20333 | grep -v '^ *+' conftest.er1 >conftest.err |
20334 | rm -f conftest.er1 | |
20335 | cat conftest.err >&5 | |
a848cd7e SC |
20336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20337 | (exit $ac_status); } && | |
f10e38c4 | 20338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20340 | (eval $ac_try) 2>&5 | |
20341 | ac_status=$? | |
20342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20343 | (exit $ac_status); }; } && | |
20344 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20346 | (eval $ac_try) 2>&5 | |
20347 | ac_status=$? | |
20348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20349 | (exit $ac_status); }; }; then | |
20350 | ac_hi=-1 ac_mid=-1 | |
20351 | while :; do | |
20352 | cat >conftest.$ac_ext <<_ACEOF | |
20353 | /* confdefs.h. */ | |
20354 | _ACEOF | |
20355 | cat confdefs.h >>conftest.$ac_ext | |
20356 | cat >>conftest.$ac_ext <<_ACEOF | |
20357 | /* end confdefs.h. */ | |
20358 | $ac_includes_default | |
20359 | int | |
20360 | main () | |
20361 | { | |
20362 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20363 | test_array [0] = 0 | |
20364 | ||
20365 | ; | |
20366 | return 0; | |
20367 | } | |
20368 | _ACEOF | |
20369 | rm -f conftest.$ac_objext | |
20370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20371 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20372 | ac_status=$? |
ac1cb8d3 VS |
20373 | grep -v '^ *+' conftest.er1 >conftest.err |
20374 | rm -f conftest.er1 | |
20375 | cat conftest.err >&5 | |
a848cd7e SC |
20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20377 | (exit $ac_status); } && | |
f10e38c4 | 20378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20380 | (eval $ac_try) 2>&5 | |
20381 | ac_status=$? | |
20382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20383 | (exit $ac_status); }; } && | |
20384 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20386 | (eval $ac_try) 2>&5 | |
20387 | ac_status=$? | |
20388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20389 | (exit $ac_status); }; }; then | |
20390 | ac_lo=$ac_mid; break | |
20391 | else | |
20392 | echo "$as_me: failed program was:" >&5 | |
20393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20394 | ||
20395 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20396 | if test $ac_mid -le $ac_hi; then |
20397 | ac_lo= ac_hi= | |
20398 | break | |
20399 | fi | |
20400 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20401 | fi |
ac1cb8d3 | 20402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20403 | done |
20404 | else | |
20405 | echo "$as_me: failed program was:" >&5 | |
20406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20407 | ||
20408 | ac_lo= ac_hi= | |
20409 | fi | |
ac1cb8d3 | 20410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20411 | fi |
ac1cb8d3 | 20412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20413 | # Binary search between lo and hi bounds. |
20414 | while test "x$ac_lo" != "x$ac_hi"; do | |
20415 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20416 | cat >conftest.$ac_ext <<_ACEOF | |
20417 | /* confdefs.h. */ | |
20418 | _ACEOF | |
20419 | cat confdefs.h >>conftest.$ac_ext | |
20420 | cat >>conftest.$ac_ext <<_ACEOF | |
20421 | /* end confdefs.h. */ | |
20422 | $ac_includes_default | |
20423 | int | |
20424 | main () | |
20425 | { | |
20426 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20427 | test_array [0] = 0 | |
20428 | ||
20429 | ; | |
20430 | return 0; | |
20431 | } | |
20432 | _ACEOF | |
20433 | rm -f conftest.$ac_objext | |
20434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20435 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20436 | ac_status=$? |
ac1cb8d3 VS |
20437 | grep -v '^ *+' conftest.er1 >conftest.err |
20438 | rm -f conftest.er1 | |
20439 | cat conftest.err >&5 | |
a848cd7e SC |
20440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20441 | (exit $ac_status); } && | |
f10e38c4 | 20442 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20444 | (eval $ac_try) 2>&5 | |
20445 | ac_status=$? | |
20446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20447 | (exit $ac_status); }; } && | |
20448 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20450 | (eval $ac_try) 2>&5 | |
20451 | ac_status=$? | |
20452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20453 | (exit $ac_status); }; }; then | |
20454 | ac_hi=$ac_mid | |
20455 | else | |
20456 | echo "$as_me: failed program was:" >&5 | |
20457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20458 | ||
20459 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20460 | fi | |
ac1cb8d3 | 20461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20462 | done |
20463 | case $ac_lo in | |
20464 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20465 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20466 | See \`config.log' for more details." >&5 | |
20467 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20468 | See \`config.log' for more details." >&2;} | |
20469 | { (exit 1); exit 1; }; } ;; | |
20470 | esac | |
20471 | else | |
20472 | if test "$cross_compiling" = yes; then | |
f10e38c4 VZ |
20473 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20474 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20475 | { (exit 1); exit 1; }; } |
20476 | else | |
20477 | cat >conftest.$ac_ext <<_ACEOF | |
20478 | /* confdefs.h. */ | |
20479 | _ACEOF | |
20480 | cat confdefs.h >>conftest.$ac_ext | |
20481 | cat >>conftest.$ac_ext <<_ACEOF | |
20482 | /* end confdefs.h. */ | |
20483 | $ac_includes_default | |
20484 | long longval () { return (long) (sizeof (long long)); } | |
20485 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20486 | #include <stdio.h> | |
20487 | #include <stdlib.h> | |
20488 | int | |
20489 | main () | |
20490 | { | |
20491 | ||
20492 | FILE *f = fopen ("conftest.val", "w"); | |
20493 | if (! f) | |
20494 | exit (1); | |
20495 | if (((long) (sizeof (long long))) < 0) | |
20496 | { | |
20497 | long i = longval (); | |
20498 | if (i != ((long) (sizeof (long long)))) | |
20499 | exit (1); | |
20500 | fprintf (f, "%ld\n", i); | |
20501 | } | |
20502 | else | |
20503 | { | |
20504 | unsigned long i = ulongval (); | |
20505 | if (i != ((long) (sizeof (long long)))) | |
20506 | exit (1); | |
20507 | fprintf (f, "%lu\n", i); | |
20508 | } | |
20509 | exit (ferror (f) || fclose (f) != 0); | |
20510 | ||
20511 | ; | |
20512 | return 0; | |
20513 | } | |
20514 | _ACEOF | |
20515 | rm -f conftest$ac_exeext | |
20516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20517 | (eval $ac_link) 2>&5 | |
20518 | ac_status=$? | |
20519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20520 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20522 | (eval $ac_try) 2>&5 | |
20523 | ac_status=$? | |
20524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20525 | (exit $ac_status); }; }; then | |
20526 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20527 | else | |
20528 | echo "$as_me: program exited with status $ac_status" >&5 | |
20529 | echo "$as_me: failed program was:" >&5 | |
20530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20531 | ||
20532 | ( exit $ac_status ) | |
20533 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20534 | See \`config.log' for more details." >&5 | |
20535 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20536 | See \`config.log' for more details." >&2;} | |
20537 | { (exit 1); exit 1; }; } | |
20538 | fi | |
ac1cb8d3 | 20539 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20540 | fi |
20541 | fi | |
20542 | rm -f conftest.val | |
20543 | else | |
20544 | ac_cv_sizeof_long_long=0 | |
20545 | fi | |
20546 | fi | |
20547 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20548 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20549 | cat >>confdefs.h <<_ACEOF | |
20550 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20551 | _ACEOF | |
20552 | ||
20553 | ||
20554 | esac | |
20555 | ||
238ecede MW |
20556 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
20557 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
20558 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
20559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20560 | else | |
20561 | cat >conftest.$ac_ext <<_ACEOF | |
20562 | /* confdefs.h. */ | |
20563 | _ACEOF | |
20564 | cat confdefs.h >>conftest.$ac_ext | |
20565 | cat >>conftest.$ac_ext <<_ACEOF | |
20566 | /* end confdefs.h. */ | |
20567 | ||
83d8eb47 MW |
20568 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20569 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20570 | # error "fake wchar_t" |
20571 | #endif | |
20572 | #ifdef HAVE_WCHAR_H | |
20573 | # ifdef __CYGWIN__ | |
20574 | # include <stddef.h> | |
20575 | # endif | |
20576 | # include <wchar.h> | |
20577 | #endif | |
20578 | #ifdef HAVE_STDLIB_H | |
20579 | # include <stdlib.h> | |
20580 | #endif | |
20581 | #include <stdio.h> | |
20582 | ||
20583 | ||
20584 | ||
20585 | int | |
20586 | main () | |
20587 | { | |
20588 | if ((wchar_t *) 0) | |
20589 | return 0; | |
20590 | if (sizeof (wchar_t)) | |
20591 | return 0; | |
20592 | ; | |
20593 | return 0; | |
20594 | } | |
20595 | _ACEOF | |
20596 | rm -f conftest.$ac_objext | |
20597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20598 | (eval $ac_compile) 2>conftest.er1 | |
20599 | ac_status=$? | |
20600 | grep -v '^ *+' conftest.er1 >conftest.err | |
20601 | rm -f conftest.er1 | |
20602 | cat conftest.err >&5 | |
20603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20604 | (exit $ac_status); } && | |
f10e38c4 | 20605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20607 | (eval $ac_try) 2>&5 | |
20608 | ac_status=$? | |
20609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20610 | (exit $ac_status); }; } && | |
20611 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
20617 | ac_cv_type_wchar_t=yes | |
20618 | else | |
20619 | echo "$as_me: failed program was:" >&5 | |
20620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20621 | ||
20622 | ac_cv_type_wchar_t=no | |
20623 | fi | |
20624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20625 | fi | |
20626 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
20627 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
20628 | ||
a848cd7e SC |
20629 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
20630 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 20631 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
20632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20633 | else | |
238ecede MW |
20634 | if test "$ac_cv_type_wchar_t" = yes; then |
20635 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20636 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20637 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20638 | # This bug is HP SR number 8606223364. | |
20639 | if test "$cross_compiling" = yes; then | |
20640 | # Depending upon the size, compute the lo and hi bounds. | |
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 | ||
83d8eb47 MW |
20648 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20649 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20650 | # error "fake wchar_t" |
20651 | #endif | |
20652 | #ifdef HAVE_WCHAR_H | |
20653 | # ifdef __CYGWIN__ | |
20654 | # include <stddef.h> | |
20655 | # endif | |
20656 | # include <wchar.h> | |
20657 | #endif | |
20658 | #ifdef HAVE_STDLIB_H | |
20659 | # include <stdlib.h> | |
20660 | #endif | |
20661 | #include <stdio.h> | |
20662 | ||
20663 | ||
20664 | ||
20665 | int | |
20666 | main () | |
20667 | { | |
20668 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
20669 | test_array [0] = 0 | |
20670 | ||
20671 | ; | |
20672 | return 0; | |
20673 | } | |
20674 | _ACEOF | |
20675 | rm -f conftest.$ac_objext | |
20676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20677 | (eval $ac_compile) 2>conftest.er1 | |
20678 | ac_status=$? | |
20679 | grep -v '^ *+' conftest.er1 >conftest.err | |
20680 | rm -f conftest.er1 | |
20681 | cat conftest.err >&5 | |
20682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20683 | (exit $ac_status); } && | |
f10e38c4 | 20684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20686 | (eval $ac_try) 2>&5 | |
20687 | ac_status=$? | |
20688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20689 | (exit $ac_status); }; } && | |
20690 | { ac_try='test -s conftest.$ac_objext' | |
20691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20692 | (eval $ac_try) 2>&5 | |
20693 | ac_status=$? | |
20694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20695 | (exit $ac_status); }; }; then | |
20696 | ac_lo=0 ac_mid=0 | |
20697 | while :; do | |
20698 | cat >conftest.$ac_ext <<_ACEOF | |
20699 | /* confdefs.h. */ | |
20700 | _ACEOF | |
20701 | cat confdefs.h >>conftest.$ac_ext | |
20702 | cat >>conftest.$ac_ext <<_ACEOF | |
20703 | /* end confdefs.h. */ | |
20704 | ||
83d8eb47 MW |
20705 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20706 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20707 | # error "fake wchar_t" |
20708 | #endif | |
20709 | #ifdef HAVE_WCHAR_H | |
20710 | # ifdef __CYGWIN__ | |
20711 | # include <stddef.h> | |
20712 | # endif | |
20713 | # include <wchar.h> | |
20714 | #endif | |
20715 | #ifdef HAVE_STDLIB_H | |
20716 | # include <stdlib.h> | |
20717 | #endif | |
20718 | #include <stdio.h> | |
20719 | ||
20720 | ||
20721 | ||
20722 | int | |
20723 | main () | |
20724 | { | |
20725 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20726 | test_array [0] = 0 | |
20727 | ||
20728 | ; | |
20729 | return 0; | |
20730 | } | |
20731 | _ACEOF | |
20732 | rm -f conftest.$ac_objext | |
20733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20734 | (eval $ac_compile) 2>conftest.er1 | |
20735 | ac_status=$? | |
20736 | grep -v '^ *+' conftest.er1 >conftest.err | |
20737 | rm -f conftest.er1 | |
20738 | cat conftest.err >&5 | |
20739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20740 | (exit $ac_status); } && | |
f10e38c4 | 20741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20743 | (eval $ac_try) 2>&5 | |
20744 | ac_status=$? | |
20745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20746 | (exit $ac_status); }; } && | |
20747 | { ac_try='test -s conftest.$ac_objext' | |
20748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20749 | (eval $ac_try) 2>&5 | |
20750 | ac_status=$? | |
20751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20752 | (exit $ac_status); }; }; then | |
20753 | ac_hi=$ac_mid; break | |
20754 | else | |
20755 | echo "$as_me: failed program was:" >&5 | |
20756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20757 | ||
20758 | ac_lo=`expr $ac_mid + 1` | |
20759 | if test $ac_lo -le $ac_mid; then | |
20760 | ac_lo= ac_hi= | |
20761 | break | |
20762 | fi | |
20763 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
20764 | fi | |
20765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20766 | done | |
20767 | else | |
20768 | echo "$as_me: failed program was:" >&5 | |
20769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20770 | ||
20771 | cat >conftest.$ac_ext <<_ACEOF | |
20772 | /* confdefs.h. */ | |
20773 | _ACEOF | |
20774 | cat confdefs.h >>conftest.$ac_ext | |
20775 | cat >>conftest.$ac_ext <<_ACEOF | |
20776 | /* end confdefs.h. */ | |
20777 | ||
83d8eb47 MW |
20778 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20779 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20780 | # error "fake wchar_t" |
20781 | #endif | |
20782 | #ifdef HAVE_WCHAR_H | |
20783 | # ifdef __CYGWIN__ | |
20784 | # include <stddef.h> | |
20785 | # endif | |
20786 | # include <wchar.h> | |
20787 | #endif | |
20788 | #ifdef HAVE_STDLIB_H | |
20789 | # include <stdlib.h> | |
20790 | #endif | |
20791 | #include <stdio.h> | |
20792 | ||
20793 | ||
20794 | ||
20795 | int | |
20796 | main () | |
20797 | { | |
20798 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
20799 | test_array [0] = 0 | |
20800 | ||
20801 | ; | |
20802 | return 0; | |
20803 | } | |
20804 | _ACEOF | |
20805 | rm -f conftest.$ac_objext | |
20806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20807 | (eval $ac_compile) 2>conftest.er1 | |
20808 | ac_status=$? | |
20809 | grep -v '^ *+' conftest.er1 >conftest.err | |
20810 | rm -f conftest.er1 | |
20811 | cat conftest.err >&5 | |
20812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20813 | (exit $ac_status); } && | |
f10e38c4 | 20814 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20816 | (eval $ac_try) 2>&5 | |
20817 | ac_status=$? | |
20818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20819 | (exit $ac_status); }; } && | |
20820 | { ac_try='test -s conftest.$ac_objext' | |
20821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20822 | (eval $ac_try) 2>&5 | |
20823 | ac_status=$? | |
20824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20825 | (exit $ac_status); }; }; then | |
20826 | ac_hi=-1 ac_mid=-1 | |
20827 | while :; do | |
20828 | cat >conftest.$ac_ext <<_ACEOF | |
20829 | /* confdefs.h. */ | |
20830 | _ACEOF | |
20831 | cat confdefs.h >>conftest.$ac_ext | |
20832 | cat >>conftest.$ac_ext <<_ACEOF | |
20833 | /* end confdefs.h. */ | |
20834 | ||
83d8eb47 MW |
20835 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20836 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20837 | # error "fake wchar_t" |
20838 | #endif | |
20839 | #ifdef HAVE_WCHAR_H | |
20840 | # ifdef __CYGWIN__ | |
20841 | # include <stddef.h> | |
20842 | # endif | |
20843 | # include <wchar.h> | |
20844 | #endif | |
20845 | #ifdef HAVE_STDLIB_H | |
20846 | # include <stdlib.h> | |
20847 | #endif | |
20848 | #include <stdio.h> | |
20849 | ||
20850 | ||
20851 | ||
20852 | int | |
20853 | main () | |
20854 | { | |
20855 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
20856 | test_array [0] = 0 | |
20857 | ||
20858 | ; | |
20859 | return 0; | |
20860 | } | |
20861 | _ACEOF | |
20862 | rm -f conftest.$ac_objext | |
20863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20864 | (eval $ac_compile) 2>conftest.er1 | |
20865 | ac_status=$? | |
20866 | grep -v '^ *+' conftest.er1 >conftest.err | |
20867 | rm -f conftest.er1 | |
20868 | cat conftest.err >&5 | |
20869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20870 | (exit $ac_status); } && | |
f10e38c4 | 20871 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20873 | (eval $ac_try) 2>&5 | |
20874 | ac_status=$? | |
20875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20876 | (exit $ac_status); }; } && | |
20877 | { ac_try='test -s conftest.$ac_objext' | |
20878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20879 | (eval $ac_try) 2>&5 | |
20880 | ac_status=$? | |
20881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20882 | (exit $ac_status); }; }; then | |
20883 | ac_lo=$ac_mid; break | |
20884 | else | |
20885 | echo "$as_me: failed program was:" >&5 | |
20886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20887 | ||
20888 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20889 | if test $ac_mid -le $ac_hi; then | |
20890 | ac_lo= ac_hi= | |
20891 | break | |
20892 | fi | |
20893 | ac_mid=`expr 2 '*' $ac_mid` | |
20894 | fi | |
20895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20896 | done | |
20897 | else | |
20898 | echo "$as_me: failed program was:" >&5 | |
20899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20900 | ||
20901 | ac_lo= ac_hi= | |
20902 | fi | |
20903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20904 | fi | |
20905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20906 | # Binary search between lo and hi bounds. | |
20907 | while test "x$ac_lo" != "x$ac_hi"; do | |
20908 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20909 | cat >conftest.$ac_ext <<_ACEOF | |
20910 | /* confdefs.h. */ | |
20911 | _ACEOF | |
20912 | cat confdefs.h >>conftest.$ac_ext | |
20913 | cat >>conftest.$ac_ext <<_ACEOF | |
20914 | /* end confdefs.h. */ | |
20915 | ||
83d8eb47 MW |
20916 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20917 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20918 | # error "fake wchar_t" |
20919 | #endif | |
20920 | #ifdef HAVE_WCHAR_H | |
20921 | # ifdef __CYGWIN__ | |
20922 | # include <stddef.h> | |
20923 | # endif | |
20924 | # include <wchar.h> | |
20925 | #endif | |
20926 | #ifdef HAVE_STDLIB_H | |
20927 | # include <stdlib.h> | |
20928 | #endif | |
20929 | #include <stdio.h> | |
a848cd7e | 20930 | |
a848cd7e | 20931 | |
a848cd7e | 20932 | |
238ecede MW |
20933 | int |
20934 | main () | |
20935 | { | |
20936 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20937 | test_array [0] = 0 | |
a848cd7e | 20938 | |
238ecede MW |
20939 | ; |
20940 | return 0; | |
20941 | } | |
20942 | _ACEOF | |
20943 | rm -f conftest.$ac_objext | |
20944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20945 | (eval $ac_compile) 2>conftest.er1 | |
20946 | ac_status=$? | |
20947 | grep -v '^ *+' conftest.er1 >conftest.err | |
20948 | rm -f conftest.er1 | |
20949 | cat conftest.err >&5 | |
20950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20951 | (exit $ac_status); } && | |
f10e38c4 | 20952 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20954 | (eval $ac_try) 2>&5 | |
20955 | ac_status=$? | |
20956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20957 | (exit $ac_status); }; } && | |
20958 | { ac_try='test -s conftest.$ac_objext' | |
20959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20960 | (eval $ac_try) 2>&5 | |
20961 | ac_status=$? | |
20962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20963 | (exit $ac_status); }; }; then | |
20964 | ac_hi=$ac_mid | |
20965 | else | |
20966 | echo "$as_me: failed program was:" >&5 | |
20967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20968 | ||
20969 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20970 | fi | |
20971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20972 | done | |
20973 | case $ac_lo in | |
20974 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
20975 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
20976 | See \`config.log' for more details." >&5 | |
20977 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
20978 | See \`config.log' for more details." >&2;} | |
20979 | { (exit 1); exit 1; }; } ;; | |
20980 | esac | |
20981 | else | |
20982 | if test "$cross_compiling" = yes; then | |
f10e38c4 VZ |
20983 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20984 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 20985 | { (exit 1); exit 1; }; } |
a848cd7e SC |
20986 | else |
20987 | cat >conftest.$ac_ext <<_ACEOF | |
20988 | /* confdefs.h. */ | |
20989 | _ACEOF | |
20990 | cat confdefs.h >>conftest.$ac_ext | |
20991 | cat >>conftest.$ac_ext <<_ACEOF | |
20992 | /* end confdefs.h. */ | |
20993 | ||
83d8eb47 MW |
20994 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20995 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20996 | # error "fake wchar_t" |
20997 | #endif | |
20998 | #ifdef HAVE_WCHAR_H | |
20999 | # ifdef __CYGWIN__ | |
21000 | # include <stddef.h> | |
21001 | # endif | |
21002 | # include <wchar.h> | |
21003 | #endif | |
21004 | #ifdef HAVE_STDLIB_H | |
21005 | # include <stdlib.h> | |
21006 | #endif | |
21007 | #include <stdio.h> | |
21008 | ||
21009 | ||
21010 | ||
21011 | long longval () { return (long) (sizeof (wchar_t)); } | |
21012 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21013 | #include <stdio.h> | |
21014 | #include <stdlib.h> | |
21015 | int | |
21016 | main () | |
21017 | { | |
a848cd7e | 21018 | |
238ecede MW |
21019 | FILE *f = fopen ("conftest.val", "w"); |
21020 | if (! f) | |
21021 | exit (1); | |
21022 | if (((long) (sizeof (wchar_t))) < 0) | |
21023 | { | |
21024 | long i = longval (); | |
21025 | if (i != ((long) (sizeof (wchar_t)))) | |
21026 | exit (1); | |
21027 | fprintf (f, "%ld\n", i); | |
21028 | } | |
21029 | else | |
21030 | { | |
21031 | unsigned long i = ulongval (); | |
21032 | if (i != ((long) (sizeof (wchar_t)))) | |
21033 | exit (1); | |
21034 | fprintf (f, "%lu\n", i); | |
21035 | } | |
21036 | exit (ferror (f) || fclose (f) != 0); | |
21037 | ||
21038 | ; | |
21039 | return 0; | |
21040 | } | |
a848cd7e SC |
21041 | _ACEOF |
21042 | rm -f conftest$ac_exeext | |
21043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21044 | (eval $ac_link) 2>&5 | |
21045 | ac_status=$? | |
21046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21047 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21049 | (eval $ac_try) 2>&5 | |
21050 | ac_status=$? | |
21051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21052 | (exit $ac_status); }; }; then | |
238ecede | 21053 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
21054 | else |
21055 | echo "$as_me: program exited with status $ac_status" >&5 | |
21056 | echo "$as_me: failed program was:" >&5 | |
21057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21058 | ||
21059 | ( exit $ac_status ) | |
238ecede MW |
21060 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
21061 | See \`config.log' for more details." >&5 | |
21062 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21063 | See \`config.log' for more details." >&2;} | |
21064 | { (exit 1); exit 1; }; } | |
a848cd7e | 21065 | fi |
ac1cb8d3 | 21066 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21067 | fi |
a848cd7e | 21068 | fi |
238ecede MW |
21069 | rm -f conftest.val |
21070 | else | |
21071 | ac_cv_sizeof_wchar_t=0 | |
21072 | fi | |
21073 | fi | |
21074 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
21075 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 21076 | cat >>confdefs.h <<_ACEOF |
238ecede | 21077 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
21078 | _ACEOF |
21079 | ||
21080 | ||
47a7e797 MW |
21081 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
21082 | wxUSE_WCHAR_T=yes | |
21083 | else | |
21084 | wxUSE_WCHAR_T=no | |
21085 | fi | |
238ecede | 21086 | |
ba3d13e1 VZ |
21087 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
21088 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
21089 | if test "${wx_cv_func_va_copy+set}" = set; then | |
21090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21091 | else | |
21092 | ||
21093 | cat >conftest.$ac_ext <<_ACEOF | |
21094 | ||
21095 | #include <stdarg.h> | |
21096 | void foo(char *f, ...) | |
21097 | { | |
21098 | va_list ap1, ap2; | |
21099 | va_start(ap1, f); | |
21100 | va_copy(ap2, ap1); | |
21101 | va_end(ap2); | |
21102 | va_end(ap1); | |
21103 | } | |
5886b072 VZ |
21104 | int main() |
21105 | { | |
b902e639 VZ |
21106 | foo("hi", 17); |
21107 | return 0; | |
5886b072 | 21108 | } |
ba3d13e1 VZ |
21109 | _ACEOF |
21110 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21112 | (eval $ac_link) 2>conftest.er1 | |
21113 | ac_status=$? | |
21114 | grep -v '^ *+' conftest.er1 >conftest.err | |
21115 | rm -f conftest.er1 | |
21116 | cat conftest.err >&5 | |
21117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21118 | (exit $ac_status); } && | |
f10e38c4 | 21119 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
21120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21121 | (eval $ac_try) 2>&5 | |
21122 | ac_status=$? | |
21123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21124 | (exit $ac_status); }; } && | |
21125 | { ac_try='test -s conftest$ac_exeext' | |
21126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21127 | (eval $ac_try) 2>&5 | |
21128 | ac_status=$? | |
21129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21130 | (exit $ac_status); }; }; then | |
21131 | wx_cv_func_va_copy=yes | |
21132 | else | |
21133 | echo "$as_me: failed program was:" >&5 | |
21134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21135 | ||
21136 | wx_cv_func_va_copy=no | |
21137 | ||
21138 | fi | |
21139 | rm -f conftest.err conftest.$ac_objext \ | |
21140 | conftest$ac_exeext conftest.$ac_ext | |
21141 | ||
21142 | ||
21143 | fi | |
21144 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
21145 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
21146 | ||
21147 | if test $wx_cv_func_va_copy = "yes"; then | |
21148 | cat >>confdefs.h <<\_ACEOF | |
21149 | #define HAVE_VA_COPY 1 | |
21150 | _ACEOF | |
21151 | ||
21152 | else | |
21153 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
21154 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
21155 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
21156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21157 | else | |
21158 | ||
21159 | if test "$cross_compiling" = yes; then | |
21160 | wx_cv_type_va_list_lvalue=yes | |
21161 | ||
21162 | else | |
21163 | cat >conftest.$ac_ext <<_ACEOF | |
21164 | ||
21165 | #include <stdarg.h> | |
21166 | int foo(char *f, ...) | |
21167 | { | |
21168 | va_list ap1, ap2; | |
21169 | va_start(ap1, f); | |
21170 | ap2 = ap1; | |
21171 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
21172 | return 1; | |
21173 | va_end(ap2); | |
21174 | va_end(ap1); | |
21175 | return 0; | |
21176 | } | |
21177 | int main() | |
21178 | { | |
21179 | return foo("hi", 17); | |
21180 | } | |
21181 | _ACEOF | |
21182 | rm -f conftest$ac_exeext | |
21183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21184 | (eval $ac_link) 2>&5 | |
21185 | ac_status=$? | |
21186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21187 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21189 | (eval $ac_try) 2>&5 | |
21190 | ac_status=$? | |
21191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21192 | (exit $ac_status); }; }; then | |
21193 | wx_cv_type_va_list_lvalue=yes | |
21194 | else | |
21195 | echo "$as_me: program exited with status $ac_status" >&5 | |
21196 | echo "$as_me: failed program was:" >&5 | |
21197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21198 | ||
21199 | ( exit $ac_status ) | |
21200 | wx_cv_type_va_list_lvalue=no | |
21201 | fi | |
21202 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21203 | fi | |
21204 | ||
21205 | ||
21206 | fi | |
21207 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
21208 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
21209 | ||
21210 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
21211 | cat >>confdefs.h <<\_ACEOF | |
21212 | #define VA_LIST_IS_ARRAY 1 | |
21213 | _ACEOF | |
21214 | ||
21215 | fi | |
21216 | fi | |
21217 | ||
a848cd7e SC |
21218 | # Check whether --enable-largefile or --disable-largefile was given. |
21219 | if test "${enable_largefile+set}" = set; then | |
21220 | enableval="$enable_largefile" | |
21221 | ||
21222 | fi; | |
21223 | if test "$enable_largefile" != no; then | |
21224 | wx_largefile=no | |
21225 | ||
21226 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
21227 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
21228 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
21229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21230 | else | |
21231 | ||
21232 | cat >conftest.$ac_ext <<_ACEOF | |
21233 | /* confdefs.h. */ | |
21234 | _ACEOF | |
21235 | cat confdefs.h >>conftest.$ac_ext | |
21236 | cat >>conftest.$ac_ext <<_ACEOF | |
21237 | /* end confdefs.h. */ | |
21238 | #define _FILE_OFFSET_BITS 64 | |
21239 | #include <sys/types.h> | |
21240 | int | |
21241 | main () | |
21242 | { | |
21243 | typedef struct { | |
21244 | unsigned int field: sizeof(off_t) == 8; | |
21245 | } wxlf; | |
21246 | ||
21247 | ; | |
21248 | return 0; | |
21249 | } | |
21250 | _ACEOF | |
21251 | rm -f conftest.$ac_objext | |
21252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21253 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21254 | ac_status=$? |
ac1cb8d3 VS |
21255 | grep -v '^ *+' conftest.er1 >conftest.err |
21256 | rm -f conftest.er1 | |
21257 | cat conftest.err >&5 | |
a848cd7e SC |
21258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21259 | (exit $ac_status); } && | |
f10e38c4 | 21260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21262 | (eval $ac_try) 2>&5 | |
21263 | ac_status=$? | |
21264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21265 | (exit $ac_status); }; } && | |
21266 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21268 | (eval $ac_try) 2>&5 | |
21269 | ac_status=$? | |
21270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21271 | (exit $ac_status); }; }; then | |
21272 | ac_cv_sys_file_offset_bits=64 | |
21273 | else | |
21274 | echo "$as_me: failed program was:" >&5 | |
21275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21276 | ||
21277 | ac_cv_sys_file_offset_bits=no | |
21278 | fi | |
ac1cb8d3 | 21279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21280 | |
21281 | ||
21282 | fi | |
21283 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
21284 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21285 | ||
21286 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
21287 | wx_largefile=yes | |
21288 | cat >>confdefs.h <<_ACEOF | |
21289 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
21290 | _ACEOF | |
21291 | ||
21292 | fi | |
21293 | ||
21294 | if test "x$wx_largefile" != "xyes"; then | |
21295 | ||
21296 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
21297 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
21298 | if test "${ac_cv_sys_large_files+set}" = set; then | |
21299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21300 | else | |
21301 | ||
21302 | cat >conftest.$ac_ext <<_ACEOF | |
21303 | /* confdefs.h. */ | |
21304 | _ACEOF | |
21305 | cat confdefs.h >>conftest.$ac_ext | |
21306 | cat >>conftest.$ac_ext <<_ACEOF | |
21307 | /* end confdefs.h. */ | |
21308 | #define _LARGE_FILES 1 | |
21309 | #include <sys/types.h> | |
21310 | int | |
21311 | main () | |
21312 | { | |
21313 | typedef struct { | |
21314 | unsigned int field: sizeof(off_t) == 8; | |
21315 | } wxlf; | |
21316 | ||
21317 | ; | |
21318 | return 0; | |
21319 | } | |
21320 | _ACEOF | |
21321 | rm -f conftest.$ac_objext | |
21322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21324 | ac_status=$? |
ac1cb8d3 VS |
21325 | grep -v '^ *+' conftest.er1 >conftest.err |
21326 | rm -f conftest.er1 | |
21327 | cat conftest.err >&5 | |
a848cd7e SC |
21328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21329 | (exit $ac_status); } && | |
f10e38c4 | 21330 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21332 | (eval $ac_try) 2>&5 | |
21333 | ac_status=$? | |
21334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21335 | (exit $ac_status); }; } && | |
21336 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21338 | (eval $ac_try) 2>&5 | |
21339 | ac_status=$? | |
21340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21341 | (exit $ac_status); }; }; then | |
21342 | ac_cv_sys_large_files=1 | |
21343 | else | |
21344 | echo "$as_me: failed program was:" >&5 | |
21345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21346 | ||
21347 | ac_cv_sys_large_files=no | |
21348 | fi | |
ac1cb8d3 | 21349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21350 | |
21351 | ||
21352 | fi | |
21353 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
21354 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
21355 | ||
21356 | if test "$ac_cv_sys_large_files" != no; then | |
21357 | wx_largefile=yes | |
21358 | cat >>confdefs.h <<_ACEOF | |
21359 | #define _LARGE_FILES $ac_cv_sys_large_files | |
21360 | _ACEOF | |
21361 | ||
21362 | fi | |
21363 | ||
21364 | fi | |
21365 | ||
21366 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
21367 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21368 | if test "x$wx_largefile" = "xyes"; then | |
21369 | cat >>confdefs.h <<\_ACEOF | |
21370 | #define HAVE_LARGEFILE_SUPPORT 1 | |
21371 | _ACEOF | |
21372 | ||
21373 | fi | |
21374 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
21375 | echo "${ECHO_T}$wx_largefile" >&6 | |
21376 | fi | |
21377 | ||
5b674b9d DE |
21378 | |
21379 | if test "x$wx_largefile" = "xyes"; then | |
21380 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 21381 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
21382 | |
21383 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
21384 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
21385 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
21386 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
21387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21388 | else | |
21389 | ||
00421666 MW |
21390 | ac_ext=cc |
21391 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21392 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21393 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21394 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21395 | ||
21396 | cat >conftest.$ac_ext <<_ACEOF | |
21397 | /* confdefs.h. */ | |
21398 | _ACEOF | |
21399 | cat confdefs.h >>conftest.$ac_ext | |
21400 | cat >>conftest.$ac_ext <<_ACEOF | |
21401 | /* end confdefs.h. */ | |
21402 | ||
21403 | int | |
21404 | main () | |
21405 | { | |
21406 | ||
21407 | #ifndef __STDC_EXT__ | |
21408 | choke me | |
21409 | #endif | |
21410 | ||
21411 | ; | |
21412 | return 0; | |
21413 | } | |
21414 | _ACEOF | |
21415 | rm -f conftest.$ac_objext | |
21416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21417 | (eval $ac_compile) 2>conftest.er1 | |
21418 | ac_status=$? | |
21419 | grep -v '^ *+' conftest.er1 >conftest.err | |
21420 | rm -f conftest.er1 | |
21421 | cat conftest.err >&5 | |
21422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21423 | (exit $ac_status); } && | |
f10e38c4 | 21424 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
00421666 MW |
21425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21426 | (eval $ac_try) 2>&5 | |
21427 | ac_status=$? | |
21428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21429 | (exit $ac_status); }; } && | |
21430 | { ac_try='test -s conftest.$ac_objext' | |
21431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21432 | (eval $ac_try) 2>&5 | |
21433 | ac_status=$? | |
21434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21435 | (exit $ac_status); }; }; then | |
21436 | wx_cv_STDC_EXT_required=no | |
21437 | else | |
21438 | echo "$as_me: failed program was:" >&5 | |
21439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21440 | ||
21441 | wx_cv_STDC_EXT_required=yes | |
21442 | ||
21443 | fi | |
21444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21445 | ac_ext=c | |
21446 | ac_cpp='$CPP $CPPFLAGS' | |
21447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21450 | ||
21451 | ||
21452 | ||
21453 | fi | |
21454 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
21455 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
21456 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 21457 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
21458 | fi |
21459 | fi | |
5b674b9d | 21460 | else |
5ff751d6 | 21461 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
21462 | fi |
21463 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
21464 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
21465 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
21466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21467 | else | |
21468 | while :; do | |
21469 | ac_cv_sys_largefile_source=no | |
21470 | cat >conftest.$ac_ext <<_ACEOF | |
21471 | /* confdefs.h. */ | |
21472 | _ACEOF | |
21473 | cat confdefs.h >>conftest.$ac_ext | |
21474 | cat >>conftest.$ac_ext <<_ACEOF | |
21475 | /* end confdefs.h. */ | |
21476 | #include <stdio.h> | |
21477 | int | |
21478 | main () | |
21479 | { | |
21480 | return !fseeko; | |
21481 | ; | |
21482 | return 0; | |
21483 | } | |
21484 | _ACEOF | |
21485 | rm -f conftest.$ac_objext | |
21486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21487 | (eval $ac_compile) 2>conftest.er1 | |
21488 | ac_status=$? | |
21489 | grep -v '^ *+' conftest.er1 >conftest.err | |
21490 | rm -f conftest.er1 | |
21491 | cat conftest.err >&5 | |
21492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21493 | (exit $ac_status); } && | |
f10e38c4 | 21494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21496 | (eval $ac_try) 2>&5 | |
21497 | ac_status=$? | |
21498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21499 | (exit $ac_status); }; } && | |
21500 | { ac_try='test -s conftest.$ac_objext' | |
21501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21502 | (eval $ac_try) 2>&5 | |
21503 | ac_status=$? | |
21504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21505 | (exit $ac_status); }; }; then | |
21506 | break | |
21507 | else | |
21508 | echo "$as_me: failed program was:" >&5 | |
21509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21510 | ||
21511 | fi | |
21512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21513 | cat >conftest.$ac_ext <<_ACEOF | |
21514 | /* confdefs.h. */ | |
21515 | _ACEOF | |
21516 | cat confdefs.h >>conftest.$ac_ext | |
21517 | cat >>conftest.$ac_ext <<_ACEOF | |
21518 | /* end confdefs.h. */ | |
21519 | #define _LARGEFILE_SOURCE 1 | |
21520 | #include <stdio.h> | |
21521 | int | |
21522 | main () | |
21523 | { | |
21524 | return !fseeko; | |
21525 | ; | |
21526 | return 0; | |
21527 | } | |
21528 | _ACEOF | |
21529 | rm -f conftest.$ac_objext | |
21530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21531 | (eval $ac_compile) 2>conftest.er1 | |
21532 | ac_status=$? | |
21533 | grep -v '^ *+' conftest.er1 >conftest.err | |
21534 | rm -f conftest.er1 | |
21535 | cat conftest.err >&5 | |
21536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21537 | (exit $ac_status); } && | |
f10e38c4 | 21538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21540 | (eval $ac_try) 2>&5 | |
21541 | ac_status=$? | |
21542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21543 | (exit $ac_status); }; } && | |
21544 | { ac_try='test -s conftest.$ac_objext' | |
21545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21546 | (eval $ac_try) 2>&5 | |
21547 | ac_status=$? | |
21548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21549 | (exit $ac_status); }; }; then | |
21550 | ac_cv_sys_largefile_source=1; break | |
21551 | else | |
21552 | echo "$as_me: failed program was:" >&5 | |
21553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21554 | ||
21555 | fi | |
21556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21557 | break | |
21558 | done | |
21559 | fi | |
21560 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
21561 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
21562 | if test "$ac_cv_sys_largefile_source" != no; then | |
21563 | ||
21564 | cat >>confdefs.h <<_ACEOF | |
21565 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
21566 | _ACEOF | |
21567 | ||
21568 | fi | |
21569 | rm -f conftest* | |
21570 | ||
21571 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
21572 | # in glibc 2.1.3, but that breaks too many other things. | |
21573 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
21574 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
21575 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
21576 | if test "${ac_cv_func_fseeko+set}" = set; then | |
21577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21578 | else | |
21579 | cat >conftest.$ac_ext <<_ACEOF | |
21580 | /* confdefs.h. */ | |
21581 | _ACEOF | |
21582 | cat confdefs.h >>conftest.$ac_ext | |
21583 | cat >>conftest.$ac_ext <<_ACEOF | |
21584 | /* end confdefs.h. */ | |
21585 | #include <stdio.h> | |
21586 | int | |
21587 | main () | |
21588 | { | |
21589 | return fseeko && fseeko (stdin, 0, 0); | |
21590 | ; | |
21591 | return 0; | |
21592 | } | |
21593 | _ACEOF | |
21594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21596 | (eval $ac_link) 2>conftest.er1 | |
21597 | ac_status=$? | |
21598 | grep -v '^ *+' conftest.er1 >conftest.err | |
21599 | rm -f conftest.er1 | |
21600 | cat conftest.err >&5 | |
21601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21602 | (exit $ac_status); } && | |
f10e38c4 | 21603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21605 | (eval $ac_try) 2>&5 | |
21606 | ac_status=$? | |
21607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21608 | (exit $ac_status); }; } && | |
21609 | { ac_try='test -s conftest$ac_exeext' | |
21610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21611 | (eval $ac_try) 2>&5 | |
21612 | ac_status=$? | |
21613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21614 | (exit $ac_status); }; }; then | |
21615 | ac_cv_func_fseeko=yes | |
21616 | else | |
21617 | echo "$as_me: failed program was:" >&5 | |
21618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21619 | ||
21620 | ac_cv_func_fseeko=no | |
21621 | fi | |
21622 | rm -f conftest.err conftest.$ac_objext \ | |
21623 | conftest$ac_exeext conftest.$ac_ext | |
21624 | fi | |
21625 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
21626 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
21627 | if test $ac_cv_func_fseeko = yes; then | |
21628 | ||
21629 | cat >>confdefs.h <<\_ACEOF | |
21630 | #define HAVE_FSEEKO 1 | |
21631 | _ACEOF | |
21632 | ||
21633 | fi | |
21634 | ||
5b674b9d | 21635 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 21636 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 21637 | fi |
a848cd7e SC |
21638 | fi |
21639 | ||
21640 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
21641 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
21642 | if test "${ac_cv_c_bigendian+set}" = set; then | |
21643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21644 | else | |
21645 | ac_cv_c_bigendian=unknown | |
21646 | # See if sys/param.h defines the BYTE_ORDER macro. | |
21647 | cat >conftest.$ac_ext <<_ACEOF | |
21648 | /* confdefs.h. */ | |
21649 | _ACEOF | |
21650 | cat confdefs.h >>conftest.$ac_ext | |
21651 | cat >>conftest.$ac_ext <<_ACEOF | |
21652 | /* end confdefs.h. */ | |
21653 | #include <sys/types.h> | |
21654 | #include <sys/param.h> | |
21655 | int | |
21656 | main () | |
21657 | { | |
21658 | ||
21659 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
21660 | bogus endian macros | |
21661 | #endif | |
21662 | ; | |
21663 | return 0; | |
21664 | } | |
21665 | _ACEOF | |
21666 | rm -f conftest.$ac_objext | |
21667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21668 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21669 | ac_status=$? |
ac1cb8d3 VS |
21670 | grep -v '^ *+' conftest.er1 >conftest.err |
21671 | rm -f conftest.er1 | |
21672 | cat conftest.err >&5 | |
a848cd7e SC |
21673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21674 | (exit $ac_status); } && | |
f10e38c4 | 21675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21677 | (eval $ac_try) 2>&5 | |
21678 | ac_status=$? | |
21679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21680 | (exit $ac_status); }; } && | |
21681 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21683 | (eval $ac_try) 2>&5 | |
21684 | ac_status=$? | |
21685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21686 | (exit $ac_status); }; }; then | |
21687 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
21688 | cat >conftest.$ac_ext <<_ACEOF | |
21689 | /* confdefs.h. */ | |
21690 | _ACEOF | |
21691 | cat confdefs.h >>conftest.$ac_ext | |
21692 | cat >>conftest.$ac_ext <<_ACEOF | |
21693 | /* end confdefs.h. */ | |
21694 | #include <sys/types.h> | |
21695 | #include <sys/param.h> | |
21696 | int | |
21697 | main () | |
21698 | { | |
21699 | ||
21700 | #if BYTE_ORDER != BIG_ENDIAN | |
21701 | not big endian | |
21702 | #endif | |
21703 | ; | |
21704 | return 0; | |
21705 | } | |
21706 | _ACEOF | |
21707 | rm -f conftest.$ac_objext | |
21708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21709 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21710 | ac_status=$? |
ac1cb8d3 VS |
21711 | grep -v '^ *+' conftest.er1 >conftest.err |
21712 | rm -f conftest.er1 | |
21713 | cat conftest.err >&5 | |
a848cd7e SC |
21714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21715 | (exit $ac_status); } && | |
f10e38c4 | 21716 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21718 | (eval $ac_try) 2>&5 | |
21719 | ac_status=$? | |
21720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21721 | (exit $ac_status); }; } && | |
21722 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21724 | (eval $ac_try) 2>&5 | |
21725 | ac_status=$? | |
21726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21727 | (exit $ac_status); }; }; then | |
21728 | ac_cv_c_bigendian=yes | |
21729 | else | |
21730 | echo "$as_me: failed program was:" >&5 | |
21731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21732 | ||
21733 | ac_cv_c_bigendian=no | |
21734 | fi | |
ac1cb8d3 | 21735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21736 | else |
21737 | echo "$as_me: failed program was:" >&5 | |
21738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21739 | ||
21740 | fi | |
ac1cb8d3 | 21741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21742 | if test $ac_cv_c_bigendian = unknown; then |
21743 | if test "$cross_compiling" = yes; then | |
21744 | ac_cv_c_bigendian=unknown | |
21745 | else | |
21746 | cat >conftest.$ac_ext <<_ACEOF | |
21747 | /* confdefs.h. */ | |
21748 | _ACEOF | |
21749 | cat confdefs.h >>conftest.$ac_ext | |
21750 | cat >>conftest.$ac_ext <<_ACEOF | |
21751 | /* end confdefs.h. */ | |
21752 | main () { | |
21753 | /* Are we little or big endian? From Harbison&Steele. */ | |
21754 | union | |
21755 | { | |
21756 | long l; | |
21757 | char c[sizeof (long)]; | |
21758 | } u; | |
21759 | u.l = 1; | |
21760 | exit (u.c[sizeof (long) - 1] == 1); | |
21761 | } | |
21762 | _ACEOF | |
21763 | rm -f conftest$ac_exeext | |
21764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21765 | (eval $ac_link) 2>&5 | |
21766 | ac_status=$? | |
21767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21768 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21770 | (eval $ac_try) 2>&5 | |
21771 | ac_status=$? | |
21772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21773 | (exit $ac_status); }; }; then | |
21774 | ac_cv_c_bigendian=no | |
21775 | else | |
21776 | echo "$as_me: program exited with status $ac_status" >&5 | |
21777 | echo "$as_me: failed program was:" >&5 | |
21778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21779 | ||
21780 | ( exit $ac_status ) | |
21781 | ac_cv_c_bigendian=yes | |
21782 | fi | |
ac1cb8d3 | 21783 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21784 | fi |
21785 | fi | |
21786 | fi | |
21787 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
21788 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
21789 | if test $ac_cv_c_bigendian = unknown; then | |
21790 | { 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 | |
21791 | 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;} | |
21792 | fi | |
21793 | if test $ac_cv_c_bigendian = yes; then | |
21794 | cat >>confdefs.h <<\_ACEOF | |
21795 | #define WORDS_BIGENDIAN 1 | |
21796 | _ACEOF | |
21797 | ||
21798 | fi | |
21799 | ||
21800 | ||
21801 | ac_ext=cc | |
21802 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21803 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21804 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21805 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21806 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
21807 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
21808 | if test -z "$CXXCPP"; then | |
21809 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
21810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21811 | else | |
21812 | # Double quotes because CXXCPP needs to be expanded | |
21813 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
21814 | do | |
21815 | ac_preproc_ok=false | |
21816 | for ac_cxx_preproc_warn_flag in '' yes | |
21817 | do | |
21818 | # Use a header file that comes with gcc, so configuring glibc | |
21819 | # with a fresh cross-compiler works. | |
21820 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21821 | # <limits.h> exists even on freestanding compilers. | |
21822 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21823 | # not just through cpp. "Syntax error" is here to catch this case. | |
21824 | cat >conftest.$ac_ext <<_ACEOF | |
21825 | /* confdefs.h. */ | |
21826 | _ACEOF | |
21827 | cat confdefs.h >>conftest.$ac_ext | |
21828 | cat >>conftest.$ac_ext <<_ACEOF | |
21829 | /* end confdefs.h. */ | |
21830 | #ifdef __STDC__ | |
21831 | # include <limits.h> | |
21832 | #else | |
21833 | # include <assert.h> | |
21834 | #endif | |
ac1cb8d3 | 21835 | Syntax error |
a848cd7e SC |
21836 | _ACEOF |
21837 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21838 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21839 | ac_status=$? | |
21840 | grep -v '^ *+' conftest.er1 >conftest.err | |
21841 | rm -f conftest.er1 | |
21842 | cat conftest.err >&5 | |
21843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21844 | (exit $ac_status); } >/dev/null; then | |
21845 | if test -s conftest.err; then | |
21846 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21847 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21848 | else |
21849 | ac_cpp_err= | |
21850 | fi | |
21851 | else | |
21852 | ac_cpp_err=yes | |
21853 | fi | |
21854 | if test -z "$ac_cpp_err"; then | |
21855 | : | |
21856 | else | |
21857 | echo "$as_me: failed program was:" >&5 | |
21858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21859 | ||
21860 | # Broken: fails on valid input. | |
21861 | continue | |
21862 | fi | |
21863 | rm -f conftest.err conftest.$ac_ext | |
21864 | ||
21865 | # OK, works on sane cases. Now check whether non-existent headers | |
21866 | # can be detected and how. | |
21867 | cat >conftest.$ac_ext <<_ACEOF | |
21868 | /* confdefs.h. */ | |
21869 | _ACEOF | |
21870 | cat confdefs.h >>conftest.$ac_ext | |
21871 | cat >>conftest.$ac_ext <<_ACEOF | |
21872 | /* end confdefs.h. */ | |
21873 | #include <ac_nonexistent.h> | |
21874 | _ACEOF | |
21875 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21876 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21877 | ac_status=$? | |
21878 | grep -v '^ *+' conftest.er1 >conftest.err | |
21879 | rm -f conftest.er1 | |
21880 | cat conftest.err >&5 | |
21881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21882 | (exit $ac_status); } >/dev/null; then | |
21883 | if test -s conftest.err; then | |
21884 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21885 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21886 | else |
21887 | ac_cpp_err= | |
21888 | fi | |
21889 | else | |
21890 | ac_cpp_err=yes | |
21891 | fi | |
21892 | if test -z "$ac_cpp_err"; then | |
21893 | # Broken: success on invalid input. | |
21894 | continue | |
21895 | else | |
21896 | echo "$as_me: failed program was:" >&5 | |
21897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21898 | ||
21899 | # Passes both tests. | |
21900 | ac_preproc_ok=: | |
21901 | break | |
21902 | fi | |
21903 | rm -f conftest.err conftest.$ac_ext | |
21904 | ||
21905 | done | |
21906 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21907 | rm -f conftest.err conftest.$ac_ext | |
21908 | if $ac_preproc_ok; then | |
21909 | break | |
21910 | fi | |
21911 | ||
21912 | done | |
21913 | ac_cv_prog_CXXCPP=$CXXCPP | |
21914 | ||
21915 | fi | |
21916 | CXXCPP=$ac_cv_prog_CXXCPP | |
21917 | else | |
21918 | ac_cv_prog_CXXCPP=$CXXCPP | |
21919 | fi | |
21920 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
21921 | echo "${ECHO_T}$CXXCPP" >&6 | |
21922 | ac_preproc_ok=false | |
21923 | for ac_cxx_preproc_warn_flag in '' yes | |
21924 | do | |
21925 | # Use a header file that comes with gcc, so configuring glibc | |
21926 | # with a fresh cross-compiler works. | |
21927 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21928 | # <limits.h> exists even on freestanding compilers. | |
21929 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21930 | # not just through cpp. "Syntax error" is here to catch this case. | |
21931 | cat >conftest.$ac_ext <<_ACEOF | |
21932 | /* confdefs.h. */ | |
21933 | _ACEOF | |
21934 | cat confdefs.h >>conftest.$ac_ext | |
21935 | cat >>conftest.$ac_ext <<_ACEOF | |
21936 | /* end confdefs.h. */ | |
21937 | #ifdef __STDC__ | |
21938 | # include <limits.h> | |
21939 | #else | |
21940 | # include <assert.h> | |
21941 | #endif | |
ac1cb8d3 | 21942 | Syntax error |
a848cd7e SC |
21943 | _ACEOF |
21944 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21945 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21946 | ac_status=$? | |
21947 | grep -v '^ *+' conftest.er1 >conftest.err | |
21948 | rm -f conftest.er1 | |
21949 | cat conftest.err >&5 | |
21950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21951 | (exit $ac_status); } >/dev/null; then | |
21952 | if test -s conftest.err; then | |
21953 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21954 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21955 | else |
21956 | ac_cpp_err= | |
21957 | fi | |
21958 | else | |
21959 | ac_cpp_err=yes | |
21960 | fi | |
21961 | if test -z "$ac_cpp_err"; then | |
21962 | : | |
21963 | else | |
21964 | echo "$as_me: failed program was:" >&5 | |
21965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21966 | ||
21967 | # Broken: fails on valid input. | |
21968 | continue | |
21969 | fi | |
21970 | rm -f conftest.err conftest.$ac_ext | |
21971 | ||
21972 | # OK, works on sane cases. Now check whether non-existent headers | |
21973 | # can be detected and how. | |
21974 | cat >conftest.$ac_ext <<_ACEOF | |
21975 | /* confdefs.h. */ | |
21976 | _ACEOF | |
21977 | cat confdefs.h >>conftest.$ac_ext | |
21978 | cat >>conftest.$ac_ext <<_ACEOF | |
21979 | /* end confdefs.h. */ | |
21980 | #include <ac_nonexistent.h> | |
21981 | _ACEOF | |
21982 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21984 | ac_status=$? | |
21985 | grep -v '^ *+' conftest.er1 >conftest.err | |
21986 | rm -f conftest.er1 | |
21987 | cat conftest.err >&5 | |
21988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21989 | (exit $ac_status); } >/dev/null; then | |
21990 | if test -s conftest.err; then | |
21991 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21992 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21993 | else |
21994 | ac_cpp_err= | |
21995 | fi | |
21996 | else | |
21997 | ac_cpp_err=yes | |
21998 | fi | |
21999 | if test -z "$ac_cpp_err"; then | |
22000 | # Broken: success on invalid input. | |
22001 | continue | |
22002 | else | |
22003 | echo "$as_me: failed program was:" >&5 | |
22004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22005 | ||
22006 | # Passes both tests. | |
22007 | ac_preproc_ok=: | |
22008 | break | |
22009 | fi | |
22010 | rm -f conftest.err conftest.$ac_ext | |
22011 | ||
22012 | done | |
22013 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22014 | rm -f conftest.err conftest.$ac_ext | |
22015 | if $ac_preproc_ok; then | |
22016 | : | |
22017 | else | |
22018 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
22019 | See \`config.log' for more details." >&5 | |
22020 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
22021 | See \`config.log' for more details." >&2;} | |
22022 | { (exit 1); exit 1; }; } | |
22023 | fi | |
22024 | ||
22025 | ac_ext=cc | |
22026 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22027 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22028 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22029 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22030 | ||
22031 | ||
22032 | ||
22033 | ||
22034 | ||
22035 | ac_ext=cc | |
22036 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22037 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22038 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22039 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22040 | ||
22041 | ||
22042 | ||
22043 | for ac_header in iostream | |
22044 | do | |
22045 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22051 | fi | |
22052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22054 | else | |
22055 | # Is the header compilable? | |
22056 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22057 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22058 | cat >conftest.$ac_ext <<_ACEOF | |
22059 | /* confdefs.h. */ | |
22060 | _ACEOF | |
22061 | cat confdefs.h >>conftest.$ac_ext | |
22062 | cat >>conftest.$ac_ext <<_ACEOF | |
22063 | /* end confdefs.h. */ | |
22064 | $ac_includes_default | |
22065 | #include <$ac_header> | |
22066 | _ACEOF | |
22067 | rm -f conftest.$ac_objext | |
22068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22069 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22070 | ac_status=$? |
ac1cb8d3 VS |
22071 | grep -v '^ *+' conftest.er1 >conftest.err |
22072 | rm -f conftest.er1 | |
22073 | cat conftest.err >&5 | |
a848cd7e SC |
22074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22075 | (exit $ac_status); } && | |
f10e38c4 | 22076 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22078 | (eval $ac_try) 2>&5 | |
22079 | ac_status=$? | |
22080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22081 | (exit $ac_status); }; } && | |
22082 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22084 | (eval $ac_try) 2>&5 | |
22085 | ac_status=$? | |
22086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22087 | (exit $ac_status); }; }; then | |
22088 | ac_header_compiler=yes | |
22089 | else | |
22090 | echo "$as_me: failed program was:" >&5 | |
22091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22092 | ||
22093 | ac_header_compiler=no | |
22094 | fi | |
ac1cb8d3 | 22095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22096 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22097 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22098 | ||
22099 | # Is the header present? | |
22100 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22101 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22102 | cat >conftest.$ac_ext <<_ACEOF | |
22103 | /* confdefs.h. */ | |
22104 | _ACEOF | |
22105 | cat confdefs.h >>conftest.$ac_ext | |
22106 | cat >>conftest.$ac_ext <<_ACEOF | |
22107 | /* end confdefs.h. */ | |
22108 | #include <$ac_header> | |
22109 | _ACEOF | |
22110 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22112 | ac_status=$? | |
22113 | grep -v '^ *+' conftest.er1 >conftest.err | |
22114 | rm -f conftest.er1 | |
22115 | cat conftest.err >&5 | |
22116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22117 | (exit $ac_status); } >/dev/null; then | |
22118 | if test -s conftest.err; then | |
22119 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22120 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22121 | else |
22122 | ac_cpp_err= | |
22123 | fi | |
22124 | else | |
22125 | ac_cpp_err=yes | |
22126 | fi | |
22127 | if test -z "$ac_cpp_err"; then | |
22128 | ac_header_preproc=yes | |
22129 | else | |
22130 | echo "$as_me: failed program was:" >&5 | |
22131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22132 | ||
22133 | ac_header_preproc=no | |
22134 | fi | |
22135 | rm -f conftest.err conftest.$ac_ext | |
22136 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22137 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22138 | ||
22139 | # So? What about this header? | |
ac1cb8d3 VS |
22140 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22141 | yes:no: ) | |
a848cd7e SC |
22142 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22143 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22145 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22146 | ac_header_preproc=yes | |
a848cd7e | 22147 | ;; |
ac1cb8d3 | 22148 | no:yes:* ) |
a848cd7e SC |
22149 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22150 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22151 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22152 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22153 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22154 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22155 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22156 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22159 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22160 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22161 | ( |
22162 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22163 | ## ----------------------------------------- ## |
22164 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22165 | ## ----------------------------------------- ## | |
a848cd7e SC |
22166 | _ASBOX |
22167 | ) | | |
22168 | sed "s/^/$as_me: WARNING: /" >&2 | |
22169 | ;; | |
22170 | esac | |
22171 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22173 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22175 | else | |
ac1cb8d3 | 22176 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22177 | fi |
22178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22179 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22180 | ||
22181 | fi | |
22182 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22183 | cat >>confdefs.h <<_ACEOF | |
22184 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22185 | _ACEOF | |
22186 | ||
22187 | fi | |
22188 | ||
22189 | done | |
22190 | ||
22191 | ||
22192 | if test "$ac_cv_header_iostream" = "yes" ; then | |
22193 | : | |
22194 | else | |
22195 | cat >>confdefs.h <<\_ACEOF | |
22196 | #define wxUSE_IOSTREAMH 1 | |
22197 | _ACEOF | |
22198 | ||
22199 | fi | |
22200 | ||
22201 | ac_ext=c | |
22202 | ac_cpp='$CPP $CPPFLAGS' | |
22203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22206 | ||
22207 | ||
22208 | ||
22209 | ||
22210 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
22211 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
22212 | if test "${wx_cv_cpp_bool+set}" = set; then | |
22213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22214 | else | |
22215 | ||
22216 | ||
22217 | ||
22218 | ac_ext=cc | |
22219 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22220 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22221 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22222 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22223 | ||
22224 | ||
22225 | cat >conftest.$ac_ext <<_ACEOF | |
22226 | /* confdefs.h. */ | |
22227 | _ACEOF | |
22228 | cat confdefs.h >>conftest.$ac_ext | |
22229 | cat >>conftest.$ac_ext <<_ACEOF | |
22230 | /* end confdefs.h. */ | |
22231 | ||
22232 | ||
22233 | int | |
22234 | main () | |
22235 | { | |
22236 | ||
22237 | bool b = true; | |
22238 | ||
22239 | return 0; | |
22240 | ||
22241 | ; | |
22242 | return 0; | |
22243 | } | |
22244 | _ACEOF | |
22245 | rm -f conftest.$ac_objext | |
22246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22247 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22248 | ac_status=$? |
ac1cb8d3 VS |
22249 | grep -v '^ *+' conftest.er1 >conftest.err |
22250 | rm -f conftest.er1 | |
22251 | cat conftest.err >&5 | |
a848cd7e SC |
22252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22253 | (exit $ac_status); } && | |
f10e38c4 | 22254 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
22260 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22262 | (eval $ac_try) 2>&5 | |
22263 | ac_status=$? | |
22264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22265 | (exit $ac_status); }; }; then | |
22266 | ||
22267 | wx_cv_cpp_bool=yes | |
22268 | ||
22269 | else | |
22270 | echo "$as_me: failed program was:" >&5 | |
22271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22272 | ||
22273 | ||
22274 | wx_cv_cpp_bool=no | |
22275 | ||
22276 | ||
22277 | fi | |
ac1cb8d3 | 22278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22279 | |
22280 | ac_ext=c | |
22281 | ac_cpp='$CPP $CPPFLAGS' | |
22282 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22283 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22285 | ||
22286 | ||
22287 | fi | |
22288 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22289 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22290 | ||
22291 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22292 | cat >>confdefs.h <<\_ACEOF | |
22293 | #define HAVE_BOOL 1 | |
22294 | _ACEOF | |
22295 | ||
22296 | fi | |
22297 | ||
22298 | ||
22299 | ||
22300 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22301 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22302 | if test "${wx_cv_explicit+set}" = set; then | |
22303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22304 | else | |
22305 | ||
22306 | ||
22307 | ||
22308 | ac_ext=cc | |
22309 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22310 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22311 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22312 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22313 | ||
22314 | ||
22315 | cat >conftest.$ac_ext <<_ACEOF | |
22316 | /* confdefs.h. */ | |
22317 | _ACEOF | |
22318 | cat confdefs.h >>conftest.$ac_ext | |
22319 | cat >>conftest.$ac_ext <<_ACEOF | |
22320 | /* end confdefs.h. */ | |
22321 | ||
22322 | class Foo { public: explicit Foo(int) {} }; | |
22323 | ||
22324 | int | |
22325 | main () | |
22326 | { | |
22327 | ||
22328 | return 0; | |
22329 | ||
22330 | ; | |
22331 | return 0; | |
22332 | } | |
22333 | _ACEOF | |
22334 | rm -f conftest.$ac_objext | |
22335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22336 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22337 | ac_status=$? |
ac1cb8d3 VS |
22338 | grep -v '^ *+' conftest.er1 >conftest.err |
22339 | rm -f conftest.er1 | |
22340 | cat conftest.err >&5 | |
a848cd7e SC |
22341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22342 | (exit $ac_status); } && | |
f10e38c4 | 22343 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22345 | (eval $ac_try) 2>&5 | |
22346 | ac_status=$? | |
22347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22348 | (exit $ac_status); }; } && | |
22349 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22351 | (eval $ac_try) 2>&5 | |
22352 | ac_status=$? | |
22353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22354 | (exit $ac_status); }; }; then | |
22355 | ||
22356 | cat >conftest.$ac_ext <<_ACEOF | |
22357 | /* confdefs.h. */ | |
22358 | _ACEOF | |
22359 | cat confdefs.h >>conftest.$ac_ext | |
22360 | cat >>conftest.$ac_ext <<_ACEOF | |
22361 | /* end confdefs.h. */ | |
22362 | ||
22363 | class Foo { public: explicit Foo(int) {} }; | |
22364 | static void TakeFoo(const Foo& foo) { } | |
22365 | ||
22366 | int | |
22367 | main () | |
22368 | { | |
22369 | ||
22370 | TakeFoo(17); | |
22371 | return 0; | |
22372 | ||
22373 | ; | |
22374 | return 0; | |
22375 | } | |
22376 | _ACEOF | |
22377 | rm -f conftest.$ac_objext | |
22378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22380 | ac_status=$? |
ac1cb8d3 VS |
22381 | grep -v '^ *+' conftest.er1 >conftest.err |
22382 | rm -f conftest.er1 | |
22383 | cat conftest.err >&5 | |
a848cd7e SC |
22384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22385 | (exit $ac_status); } && | |
f10e38c4 | 22386 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22388 | (eval $ac_try) 2>&5 | |
22389 | ac_status=$? | |
22390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22391 | (exit $ac_status); }; } && | |
22392 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22394 | (eval $ac_try) 2>&5 | |
22395 | ac_status=$? | |
22396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22397 | (exit $ac_status); }; }; then | |
22398 | wx_cv_explicit=no | |
22399 | else | |
22400 | echo "$as_me: failed program was:" >&5 | |
22401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22402 | ||
22403 | wx_cv_explicit=yes | |
22404 | ||
22405 | fi | |
ac1cb8d3 | 22406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22407 | |
22408 | else | |
22409 | echo "$as_me: failed program was:" >&5 | |
22410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22411 | ||
22412 | wx_cv_explicit=no | |
22413 | ||
22414 | fi | |
ac1cb8d3 | 22415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22416 | |
22417 | ac_ext=c | |
22418 | ac_cpp='$CPP $CPPFLAGS' | |
22419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22422 | ||
22423 | ||
22424 | fi | |
22425 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22426 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22427 | ||
22428 | if test "$wx_cv_explicit" = "yes"; then | |
22429 | cat >>confdefs.h <<\_ACEOF | |
22430 | #define HAVE_EXPLICIT 1 | |
22431 | _ACEOF | |
22432 | ||
22433 | fi | |
22434 | ||
22435 | ||
22436 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22437 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22438 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22440 | else | |
22441 | ||
22442 | ||
22443 | ac_ext=cc | |
22444 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22445 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22446 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22447 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22448 | ||
22449 | cat >conftest.$ac_ext <<_ACEOF | |
22450 | /* confdefs.h. */ | |
22451 | _ACEOF | |
22452 | cat confdefs.h >>conftest.$ac_ext | |
22453 | cat >>conftest.$ac_ext <<_ACEOF | |
22454 | /* end confdefs.h. */ | |
22455 | ||
22456 | int | |
22457 | main () | |
22458 | { | |
22459 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
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); } && | |
f10e38c4 | 22473 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22475 | (eval $ac_try) 2>&5 | |
22476 | ac_status=$? | |
22477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22478 | (exit $ac_status); }; } && | |
22479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22481 | (eval $ac_try) 2>&5 | |
22482 | ac_status=$? | |
22483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22484 | (exit $ac_status); }; }; then | |
22485 | ac_cv_cxx_const_cast=yes | |
22486 | else | |
22487 | echo "$as_me: failed program was:" >&5 | |
22488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22489 | ||
22490 | ac_cv_cxx_const_cast=no | |
22491 | fi | |
ac1cb8d3 | 22492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22493 | ac_ext=c |
22494 | ac_cpp='$CPP $CPPFLAGS' | |
22495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22498 | ||
22499 | ||
22500 | fi | |
22501 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
22502 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
22503 | if test "$ac_cv_cxx_const_cast" = yes; then | |
22504 | ||
22505 | cat >>confdefs.h <<\_ACEOF | |
22506 | #define HAVE_CONST_CAST | |
22507 | _ACEOF | |
22508 | ||
22509 | fi | |
22510 | ||
7714864e RL |
22511 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
22512 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
22513 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
22514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22515 | else | |
22516 | ||
22517 | ||
22518 | ac_ext=cc | |
22519 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22520 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22521 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22522 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22523 | ||
22524 | cat >conftest.$ac_ext <<_ACEOF | |
22525 | /* confdefs.h. */ | |
22526 | _ACEOF | |
22527 | cat confdefs.h >>conftest.$ac_ext | |
22528 | cat >>conftest.$ac_ext <<_ACEOF | |
22529 | /* end confdefs.h. */ | |
22530 | #include <typeinfo> | |
22531 | class Base { public : Base () {} virtual void f () = 0;}; | |
22532 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22533 | class Unrelated { public : Unrelated () {} }; | |
22534 | int g (Unrelated&) { return 0; } | |
22535 | int | |
22536 | main () | |
22537 | { | |
22538 | ||
22539 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
22540 | ; | |
22541 | return 0; | |
22542 | } | |
22543 | _ACEOF | |
22544 | rm -f conftest.$ac_objext | |
22545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22546 | (eval $ac_compile) 2>conftest.er1 | |
22547 | ac_status=$? | |
22548 | grep -v '^ *+' conftest.er1 >conftest.err | |
22549 | rm -f conftest.er1 | |
22550 | cat conftest.err >&5 | |
22551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22552 | (exit $ac_status); } && | |
f10e38c4 | 22553 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
22554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22555 | (eval $ac_try) 2>&5 | |
22556 | ac_status=$? | |
22557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22558 | (exit $ac_status); }; } && | |
22559 | { ac_try='test -s conftest.$ac_objext' | |
22560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22561 | (eval $ac_try) 2>&5 | |
22562 | ac_status=$? | |
22563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22564 | (exit $ac_status); }; }; then | |
22565 | ac_cv_cxx_reinterpret_cast=yes | |
22566 | else | |
22567 | echo "$as_me: failed program was:" >&5 | |
22568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22569 | ||
22570 | ac_cv_cxx_reinterpret_cast=no | |
22571 | fi | |
22572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22573 | ac_ext=c | |
22574 | ac_cpp='$CPP $CPPFLAGS' | |
22575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22578 | ||
22579 | ||
22580 | fi | |
22581 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
22582 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
22583 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
22584 | ||
22585 | cat >>confdefs.h <<\_ACEOF | |
22586 | #define HAVE_REINTERPRET_CAST | |
22587 | _ACEOF | |
22588 | ||
22589 | fi | |
22590 | ||
a848cd7e SC |
22591 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
22592 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
22593 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
22594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22595 | else | |
22596 | ||
22597 | ||
22598 | ac_ext=cc | |
22599 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22600 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22601 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22602 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22603 | ||
22604 | cat >conftest.$ac_ext <<_ACEOF | |
22605 | /* confdefs.h. */ | |
22606 | _ACEOF | |
22607 | cat confdefs.h >>conftest.$ac_ext | |
22608 | cat >>conftest.$ac_ext <<_ACEOF | |
22609 | /* end confdefs.h. */ | |
22610 | #include <typeinfo> | |
22611 | class Base { public : Base () {} virtual void f () = 0; }; | |
22612 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22613 | int g (Derived&) { return 0; } | |
22614 | int | |
22615 | main () | |
22616 | { | |
22617 | ||
22618 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
22619 | ; | |
22620 | return 0; | |
22621 | } | |
22622 | _ACEOF | |
22623 | rm -f conftest.$ac_objext | |
22624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22625 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22626 | ac_status=$? |
ac1cb8d3 VS |
22627 | grep -v '^ *+' conftest.er1 >conftest.err |
22628 | rm -f conftest.er1 | |
22629 | cat conftest.err >&5 | |
a848cd7e SC |
22630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22631 | (exit $ac_status); } && | |
f10e38c4 | 22632 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22634 | (eval $ac_try) 2>&5 | |
22635 | ac_status=$? | |
22636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22637 | (exit $ac_status); }; } && | |
22638 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22640 | (eval $ac_try) 2>&5 | |
22641 | ac_status=$? | |
22642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22643 | (exit $ac_status); }; }; then | |
22644 | ac_cv_cxx_static_cast=yes | |
22645 | else | |
22646 | echo "$as_me: failed program was:" >&5 | |
22647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22648 | ||
22649 | ac_cv_cxx_static_cast=no | |
22650 | fi | |
ac1cb8d3 | 22651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22652 | ac_ext=c |
22653 | ac_cpp='$CPP $CPPFLAGS' | |
22654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22657 | ||
22658 | ||
22659 | fi | |
22660 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
22661 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
22662 | if test "$ac_cv_cxx_static_cast" = yes; then | |
22663 | ||
22664 | cat >>confdefs.h <<\_ACEOF | |
22665 | #define HAVE_STATIC_CAST | |
22666 | _ACEOF | |
22667 | ||
22668 | fi | |
22669 | ||
22670 | ||
3c28b7cb | 22671 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 22672 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
22673 | fi |
22674 | ||
9122d155 | 22675 | if test "x$SUNCC" = xyes; then |
c92ad099 | 22676 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
22677 | fi |
22678 | ||
0ad5d837 | 22679 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 22680 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
22681 | fi |
22682 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 22683 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
22684 | fi |
22685 | ||
2eef8513 | 22686 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 22687 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
22688 | fi |
22689 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 22690 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
22691 | fi |
22692 | ||
22693 | if test "x$COMPAQCXX" = "xyes"; then | |
22694 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
22695 | fi | |
22696 | ||
f56c22b4 | 22697 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
22698 | ac_ext=cc |
22699 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22700 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22701 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22702 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22703 | ||
22704 | ||
f56c22b4 MW |
22705 | if test "$wxUSE_UNICODE" = "yes"; then |
22706 | std_string="std::wstring" | |
22707 | char_type="wchar_t" | |
22708 | else | |
22709 | std_string="std::string" | |
22710 | char_type="char" | |
22711 | fi | |
22712 | ||
22713 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
22714 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
22715 | cat >conftest.$ac_ext <<_ACEOF |
22716 | /* confdefs.h. */ | |
22717 | _ACEOF | |
22718 | cat confdefs.h >>conftest.$ac_ext | |
22719 | cat >>conftest.$ac_ext <<_ACEOF | |
22720 | /* end confdefs.h. */ | |
22721 | #include <string> | |
a848cd7e SC |
22722 | int |
22723 | main () | |
22724 | { | |
f56c22b4 | 22725 | $std_string foo; |
a848cd7e SC |
22726 | ; |
22727 | return 0; | |
22728 | } | |
22729 | _ACEOF | |
22730 | rm -f conftest.$ac_objext | |
22731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22732 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22733 | ac_status=$? |
ac1cb8d3 VS |
22734 | grep -v '^ *+' conftest.er1 >conftest.err |
22735 | rm -f conftest.er1 | |
22736 | cat conftest.err >&5 | |
a848cd7e SC |
22737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22738 | (exit $ac_status); } && | |
f10e38c4 | 22739 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22741 | (eval $ac_try) 2>&5 | |
22742 | ac_status=$? | |
22743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22744 | (exit $ac_status); }; } && | |
22745 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22747 | (eval $ac_try) 2>&5 | |
22748 | ac_status=$? | |
22749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22750 | (exit $ac_status); }; }; then | |
22751 | echo "$as_me:$LINENO: result: yes" >&5 | |
22752 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
22753 | cat >>confdefs.h <<\_ACEOF |
22754 | #define HAVE_STD_WSTRING 1 | |
22755 | _ACEOF | |
22756 | ||
a848cd7e SC |
22757 | else |
22758 | echo "$as_me: failed program was:" >&5 | |
22759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22760 | ||
22761 | echo "$as_me:$LINENO: result: no" >&5 | |
22762 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
22763 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
22764 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
22765 | cat >conftest.$ac_ext <<_ACEOF |
22766 | /* confdefs.h. */ | |
22767 | _ACEOF | |
22768 | cat confdefs.h >>conftest.$ac_ext | |
22769 | cat >>conftest.$ac_ext <<_ACEOF | |
22770 | /* end confdefs.h. */ | |
22771 | ||
22772 | #ifdef HAVE_WCHAR_H | |
22773 | # ifdef __CYGWIN__ | |
22774 | # include <stddef.h> | |
22775 | # endif | |
22776 | # include <wchar.h> | |
22777 | #endif | |
22778 | #ifdef HAVE_STDLIB_H | |
22779 | # include <stdlib.h> | |
22780 | #endif | |
22781 | #include <stdio.h> | |
22782 | #include <string> | |
22783 | ||
22784 | int | |
22785 | main () | |
22786 | { | |
f56c22b4 MW |
22787 | std::basic_string<$char_type> foo; |
22788 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
22789 | ; |
22790 | return 0; | |
22791 | } | |
22792 | _ACEOF | |
22793 | rm -f conftest.$ac_objext | |
22794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22795 | (eval $ac_compile) 2>conftest.er1 | |
22796 | ac_status=$? | |
22797 | grep -v '^ *+' conftest.er1 >conftest.err | |
22798 | rm -f conftest.er1 | |
22799 | cat conftest.err >&5 | |
22800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22801 | (exit $ac_status); } && | |
f10e38c4 | 22802 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
22803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22804 | (eval $ac_try) 2>&5 | |
22805 | ac_status=$? | |
22806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22807 | (exit $ac_status); }; } && | |
22808 | { ac_try='test -s conftest.$ac_objext' | |
22809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22810 | (eval $ac_try) 2>&5 | |
22811 | ac_status=$? | |
22812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22813 | (exit $ac_status); }; }; then | |
22814 | echo "$as_me:$LINENO: result: yes" >&5 | |
22815 | echo "${ECHO_T}yes" >&6 | |
22816 | else | |
22817 | echo "$as_me: failed program was:" >&5 | |
22818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22819 | ||
22820 | echo "$as_me:$LINENO: result: no" >&5 | |
22821 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 22822 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
22823 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
22824 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
22825 | { (exit 1); exit 1; }; } | |
22826 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
22827 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
22828 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 22829 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
22830 | else |
22831 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
22832 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
22833 | wxUSE_STD_STRING=no | |
22834 | fi | |
22835 | ||
0a08f02a | 22836 | |
a848cd7e | 22837 | fi |
ac1cb8d3 | 22838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22839 | |
0a08f02a MB |
22840 | fi |
22841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22842 | ||
22843 | ac_ext=c | |
22844 | ac_cpp='$CPP $CPPFLAGS' | |
22845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
22847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22848 | ||
22849 | fi | |
22850 | ||
22851 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
22852 | ac_ext=cc | |
22853 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22854 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22855 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22856 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22857 | ||
22858 | ||
22859 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
22860 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
22861 | if test "${ac_cv_type_std__istream+set}" = set; then | |
22862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22863 | else | |
22864 | cat >conftest.$ac_ext <<_ACEOF | |
22865 | /* confdefs.h. */ | |
22866 | _ACEOF | |
22867 | cat confdefs.h >>conftest.$ac_ext | |
22868 | cat >>conftest.$ac_ext <<_ACEOF | |
22869 | /* end confdefs.h. */ | |
22870 | #include <iostream> | |
22871 | ||
22872 | int | |
22873 | main () | |
22874 | { | |
22875 | if ((std::istream *) 0) | |
22876 | return 0; | |
22877 | if (sizeof (std::istream)) | |
22878 | return 0; | |
22879 | ; | |
22880 | return 0; | |
22881 | } | |
22882 | _ACEOF | |
22883 | rm -f conftest.$ac_objext | |
22884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22885 | (eval $ac_compile) 2>conftest.er1 | |
22886 | ac_status=$? | |
22887 | grep -v '^ *+' conftest.er1 >conftest.err | |
22888 | rm -f conftest.er1 | |
22889 | cat conftest.err >&5 | |
22890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22891 | (exit $ac_status); } && | |
f10e38c4 | 22892 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22894 | (eval $ac_try) 2>&5 | |
22895 | ac_status=$? | |
22896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22897 | (exit $ac_status); }; } && | |
22898 | { ac_try='test -s conftest.$ac_objext' | |
22899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22900 | (eval $ac_try) 2>&5 | |
22901 | ac_status=$? | |
22902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22903 | (exit $ac_status); }; }; then | |
22904 | ac_cv_type_std__istream=yes | |
22905 | else | |
22906 | echo "$as_me: failed program was:" >&5 | |
22907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22908 | ||
22909 | ac_cv_type_std__istream=no | |
22910 | fi | |
22911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22912 | fi | |
22913 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
22914 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
22915 | if test $ac_cv_type_std__istream = yes; then | |
22916 | ||
22917 | cat >>confdefs.h <<_ACEOF | |
22918 | #define HAVE_STD__ISTREAM 1 | |
22919 | _ACEOF | |
22920 | ||
22921 | ||
22922 | else | |
22923 | wxUSE_STD_IOSTREAM=no | |
22924 | fi | |
22925 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
22926 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
22927 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
22928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22929 | else | |
22930 | cat >conftest.$ac_ext <<_ACEOF | |
22931 | /* confdefs.h. */ | |
22932 | _ACEOF | |
22933 | cat confdefs.h >>conftest.$ac_ext | |
22934 | cat >>conftest.$ac_ext <<_ACEOF | |
22935 | /* end confdefs.h. */ | |
22936 | #include <iostream> | |
22937 | ||
22938 | int | |
22939 | main () | |
22940 | { | |
22941 | if ((std::ostream *) 0) | |
22942 | return 0; | |
22943 | if (sizeof (std::ostream)) | |
22944 | return 0; | |
22945 | ; | |
22946 | return 0; | |
22947 | } | |
22948 | _ACEOF | |
22949 | rm -f conftest.$ac_objext | |
22950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22951 | (eval $ac_compile) 2>conftest.er1 | |
22952 | ac_status=$? | |
22953 | grep -v '^ *+' conftest.er1 >conftest.err | |
22954 | rm -f conftest.er1 | |
22955 | cat conftest.err >&5 | |
22956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22957 | (exit $ac_status); } && | |
f10e38c4 | 22958 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22960 | (eval $ac_try) 2>&5 | |
22961 | ac_status=$? | |
22962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22963 | (exit $ac_status); }; } && | |
22964 | { ac_try='test -s conftest.$ac_objext' | |
22965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22966 | (eval $ac_try) 2>&5 | |
22967 | ac_status=$? | |
22968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22969 | (exit $ac_status); }; }; then | |
22970 | ac_cv_type_std__ostream=yes | |
22971 | else | |
22972 | echo "$as_me: failed program was:" >&5 | |
22973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22974 | ||
22975 | ac_cv_type_std__ostream=no | |
22976 | fi | |
22977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22978 | fi | |
22979 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
22980 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
22981 | if test $ac_cv_type_std__ostream = yes; then | |
22982 | ||
22983 | cat >>confdefs.h <<_ACEOF | |
22984 | #define HAVE_STD__OSTREAM 1 | |
22985 | _ACEOF | |
22986 | ||
22987 | ||
22988 | else | |
22989 | wxUSE_STD_IOSTREAM=no | |
22990 | fi | |
22991 | ||
22992 | ||
22993 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
22994 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
22995 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
22996 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
22997 | { (exit 1); exit 1; }; } | |
22998 | else | |
22999 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23000 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23001 | fi |
f56c22b4 MW |
23002 | fi |
23003 | ||
23004 | ac_ext=c | |
23005 | ac_cpp='$CPP $CPPFLAGS' | |
23006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
23008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
23009 | ||
23010 | fi | |
23011 | ||
23012 | if test "$wxUSE_STL" = "yes"; then | |
23013 | ac_ext=cc | |
23014 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23015 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23016 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23017 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23018 | ||
23019 | ||
23020 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
23021 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23022 | cat >conftest.$ac_ext <<_ACEOF |
23023 | /* confdefs.h. */ | |
23024 | _ACEOF | |
23025 | cat confdefs.h >>conftest.$ac_ext | |
23026 | cat >>conftest.$ac_ext <<_ACEOF | |
23027 | /* end confdefs.h. */ | |
23028 | #include <string> | |
0a08f02a MB |
23029 | #include <functional> |
23030 | #include <algorithm> | |
23031 | #include <vector> | |
23032 | #include <list> | |
a848cd7e SC |
23033 | int |
23034 | main () | |
23035 | { | |
0a08f02a MB |
23036 | std::vector<int> moo; |
23037 | std::list<int> foo; | |
23038 | std::vector<int>::iterator it = | |
23039 | std::find_if(moo.begin(), moo.end(), | |
23040 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23041 | ; |
23042 | return 0; | |
23043 | } | |
23044 | _ACEOF | |
23045 | rm -f conftest.$ac_objext | |
23046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23047 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23048 | ac_status=$? |
ac1cb8d3 VS |
23049 | grep -v '^ *+' conftest.er1 >conftest.err |
23050 | rm -f conftest.er1 | |
23051 | cat conftest.err >&5 | |
a848cd7e SC |
23052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23053 | (exit $ac_status); } && | |
f10e38c4 | 23054 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23056 | (eval $ac_try) 2>&5 | |
23057 | ac_status=$? | |
23058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23059 | (exit $ac_status); }; } && | |
23060 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23062 | (eval $ac_try) 2>&5 | |
23063 | ac_status=$? | |
23064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23065 | (exit $ac_status); }; }; then | |
23066 | echo "$as_me:$LINENO: result: yes" >&5 | |
23067 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23068 | else |
23069 | echo "$as_me: failed program was:" >&5 | |
23070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23071 | ||
23072 | echo "$as_me:$LINENO: result: no" >&5 | |
23073 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23074 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23075 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23076 | { (exit 1); exit 1; }; } | |
a848cd7e | 23077 | fi |
ac1cb8d3 | 23078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23079 | |
23080 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23081 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23082 | cat >conftest.$ac_ext <<_ACEOF | |
23083 | /* confdefs.h. */ | |
23084 | _ACEOF | |
23085 | cat confdefs.h >>conftest.$ac_ext | |
23086 | cat >>conftest.$ac_ext <<_ACEOF | |
23087 | /* end confdefs.h. */ | |
23088 | #include <string> | |
23089 | int | |
23090 | main () | |
23091 | { | |
23092 | std::string foo, bar; | |
23093 | foo.compare(bar); | |
23094 | foo.compare(1, 1, bar); | |
23095 | foo.compare(1, 1, bar, 1, 1); | |
23096 | foo.compare(""); | |
23097 | foo.compare(1, 1, ""); | |
23098 | foo.compare(1, 1, "", 2); | |
23099 | ; | |
23100 | return 0; | |
23101 | } | |
23102 | _ACEOF | |
23103 | rm -f conftest.$ac_objext | |
23104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23105 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23106 | ac_status=$? |
ac1cb8d3 VS |
23107 | grep -v '^ *+' conftest.er1 >conftest.err |
23108 | rm -f conftest.er1 | |
23109 | cat conftest.err >&5 | |
a848cd7e SC |
23110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23111 | (exit $ac_status); } && | |
f10e38c4 | 23112 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23114 | (eval $ac_try) 2>&5 | |
23115 | ac_status=$? | |
23116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23117 | (exit $ac_status); }; } && | |
23118 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23120 | (eval $ac_try) 2>&5 | |
23121 | ac_status=$? | |
23122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23123 | (exit $ac_status); }; }; then | |
23124 | echo "$as_me:$LINENO: result: yes" >&5 | |
23125 | echo "${ECHO_T}yes" >&6 | |
23126 | cat >>confdefs.h <<\_ACEOF | |
23127 | #define HAVE_STD_STRING_COMPARE 1 | |
23128 | _ACEOF | |
23129 | ||
23130 | else | |
23131 | echo "$as_me: failed program was:" >&5 | |
23132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23133 | ||
23134 | echo "$as_me:$LINENO: result: no" >&5 | |
23135 | echo "${ECHO_T}no" >&6 | |
23136 | fi | |
ac1cb8d3 | 23137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23138 | |
23139 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23140 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23141 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23142 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23144 | fi | |
23145 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23146 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23147 | else | |
23148 | # Is the header compilable? | |
23149 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23150 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23151 | cat >conftest.$ac_ext <<_ACEOF | |
23152 | /* confdefs.h. */ | |
23153 | _ACEOF | |
23154 | cat confdefs.h >>conftest.$ac_ext | |
23155 | cat >>conftest.$ac_ext <<_ACEOF | |
23156 | /* end confdefs.h. */ | |
23157 | $ac_includes_default | |
23158 | #include <hash_map> | |
23159 | _ACEOF | |
23160 | rm -f conftest.$ac_objext | |
23161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23162 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23163 | ac_status=$? |
ac1cb8d3 VS |
23164 | grep -v '^ *+' conftest.er1 >conftest.err |
23165 | rm -f conftest.er1 | |
23166 | cat conftest.err >&5 | |
bdcade0a MB |
23167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23168 | (exit $ac_status); } && | |
f10e38c4 | 23169 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23171 | (eval $ac_try) 2>&5 | |
23172 | ac_status=$? | |
23173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23174 | (exit $ac_status); }; } && | |
23175 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23177 | (eval $ac_try) 2>&5 | |
23178 | ac_status=$? | |
23179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23180 | (exit $ac_status); }; }; then | |
23181 | ac_header_compiler=yes | |
23182 | else | |
23183 | echo "$as_me: failed program was:" >&5 | |
23184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23185 | ||
23186 | ac_header_compiler=no | |
23187 | fi | |
ac1cb8d3 | 23188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23189 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23190 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23191 | ||
23192 | # Is the header present? | |
23193 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23194 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23195 | cat >conftest.$ac_ext <<_ACEOF | |
23196 | /* confdefs.h. */ | |
23197 | _ACEOF | |
23198 | cat confdefs.h >>conftest.$ac_ext | |
23199 | cat >>conftest.$ac_ext <<_ACEOF | |
23200 | /* end confdefs.h. */ | |
23201 | #include <hash_map> | |
23202 | _ACEOF | |
23203 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23204 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23205 | ac_status=$? | |
23206 | grep -v '^ *+' conftest.er1 >conftest.err | |
23207 | rm -f conftest.er1 | |
23208 | cat conftest.err >&5 | |
23209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23210 | (exit $ac_status); } >/dev/null; then | |
23211 | if test -s conftest.err; then | |
23212 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23213 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23214 | else |
23215 | ac_cpp_err= | |
23216 | fi | |
23217 | else | |
23218 | ac_cpp_err=yes | |
23219 | fi | |
23220 | if test -z "$ac_cpp_err"; then | |
23221 | ac_header_preproc=yes | |
23222 | else | |
23223 | echo "$as_me: failed program was:" >&5 | |
23224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23225 | ||
23226 | ac_header_preproc=no | |
23227 | fi | |
23228 | rm -f conftest.err conftest.$ac_ext | |
23229 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23230 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23231 | ||
23232 | # So? What about this header? | |
ac1cb8d3 VS |
23233 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23234 | yes:no: ) | |
bdcade0a MB |
23235 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23236 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23237 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23238 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23239 | ac_header_preproc=yes | |
bdcade0a | 23240 | ;; |
ac1cb8d3 | 23241 | no:yes:* ) |
bdcade0a MB |
23242 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23243 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23244 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23245 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23246 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23247 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23248 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23249 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23250 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23251 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23252 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23253 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23254 | ( |
23255 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23256 | ## ----------------------------------------- ## |
23257 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23258 | ## ----------------------------------------- ## | |
bdcade0a MB |
23259 | _ASBOX |
23260 | ) | | |
23261 | sed "s/^/$as_me: WARNING: /" >&2 | |
23262 | ;; | |
23263 | esac | |
23264 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23265 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23266 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23268 | else | |
23269 | ac_cv_header_hash_map=$ac_header_preproc | |
23270 | fi | |
23271 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23272 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23273 | ||
23274 | fi | |
23275 | if test $ac_cv_header_hash_map = yes; then | |
23276 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23277 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23278 | cat >conftest.$ac_ext <<_ACEOF | |
23279 | /* confdefs.h. */ | |
23280 | _ACEOF | |
23281 | cat confdefs.h >>conftest.$ac_ext | |
23282 | cat >>conftest.$ac_ext <<_ACEOF | |
23283 | /* end confdefs.h. */ | |
23284 | #include <hash_map> | |
23285 | #include <hash_set> | |
23286 | int | |
23287 | main () | |
23288 | { | |
23289 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23290 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23291 | ; | |
23292 | return 0; | |
23293 | } | |
23294 | _ACEOF | |
23295 | rm -f conftest.$ac_objext | |
23296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23297 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23298 | ac_status=$? |
ac1cb8d3 VS |
23299 | grep -v '^ *+' conftest.er1 >conftest.err |
23300 | rm -f conftest.er1 | |
23301 | cat conftest.err >&5 | |
bdcade0a MB |
23302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23303 | (exit $ac_status); } && | |
f10e38c4 | 23304 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23306 | (eval $ac_try) 2>&5 | |
23307 | ac_status=$? | |
23308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23309 | (exit $ac_status); }; } && | |
23310 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23312 | (eval $ac_try) 2>&5 | |
23313 | ac_status=$? | |
23314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23315 | (exit $ac_status); }; }; then | |
23316 | echo "$as_me:$LINENO: result: yes" >&5 | |
23317 | echo "${ECHO_T}yes" >&6 | |
23318 | cat >>confdefs.h <<\_ACEOF | |
23319 | #define HAVE_HASH_MAP 1 | |
23320 | _ACEOF | |
23321 | ||
23322 | cat >>confdefs.h <<\_ACEOF | |
23323 | #define HAVE_STD_HASH_MAP 1 | |
23324 | _ACEOF | |
23325 | ||
23326 | else | |
23327 | echo "$as_me: failed program was:" >&5 | |
23328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23329 | ||
23330 | echo "$as_me:$LINENO: result: no" >&5 | |
23331 | echo "${ECHO_T}no" >&6 | |
23332 | fi | |
ac1cb8d3 | 23333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23334 | |
23335 | fi | |
23336 | ||
23337 | ||
23338 | ||
23339 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23340 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23341 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23342 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23344 | fi | |
23345 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23346 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23347 | else | |
23348 | # Is the header compilable? | |
23349 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23350 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23351 | cat >conftest.$ac_ext <<_ACEOF | |
23352 | /* confdefs.h. */ | |
23353 | _ACEOF | |
23354 | cat confdefs.h >>conftest.$ac_ext | |
23355 | cat >>conftest.$ac_ext <<_ACEOF | |
23356 | /* end confdefs.h. */ | |
23357 | $ac_includes_default | |
23358 | #include <ext/hash_map> | |
23359 | _ACEOF | |
23360 | rm -f conftest.$ac_objext | |
23361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23362 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23363 | ac_status=$? |
ac1cb8d3 VS |
23364 | grep -v '^ *+' conftest.er1 >conftest.err |
23365 | rm -f conftest.er1 | |
23366 | cat conftest.err >&5 | |
bdcade0a MB |
23367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23368 | (exit $ac_status); } && | |
f10e38c4 | 23369 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23371 | (eval $ac_try) 2>&5 | |
23372 | ac_status=$? | |
23373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23374 | (exit $ac_status); }; } && | |
23375 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23377 | (eval $ac_try) 2>&5 | |
23378 | ac_status=$? | |
23379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23380 | (exit $ac_status); }; }; then | |
23381 | ac_header_compiler=yes | |
23382 | else | |
23383 | echo "$as_me: failed program was:" >&5 | |
23384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23385 | ||
23386 | ac_header_compiler=no | |
23387 | fi | |
ac1cb8d3 | 23388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23389 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23390 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23391 | ||
23392 | # Is the header present? | |
23393 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23394 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23395 | cat >conftest.$ac_ext <<_ACEOF | |
23396 | /* confdefs.h. */ | |
23397 | _ACEOF | |
23398 | cat confdefs.h >>conftest.$ac_ext | |
23399 | cat >>conftest.$ac_ext <<_ACEOF | |
23400 | /* end confdefs.h. */ | |
23401 | #include <ext/hash_map> | |
23402 | _ACEOF | |
23403 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23404 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23405 | ac_status=$? | |
23406 | grep -v '^ *+' conftest.er1 >conftest.err | |
23407 | rm -f conftest.er1 | |
23408 | cat conftest.err >&5 | |
23409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23410 | (exit $ac_status); } >/dev/null; then | |
23411 | if test -s conftest.err; then | |
23412 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23413 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23414 | else |
23415 | ac_cpp_err= | |
23416 | fi | |
23417 | else | |
23418 | ac_cpp_err=yes | |
23419 | fi | |
23420 | if test -z "$ac_cpp_err"; then | |
23421 | ac_header_preproc=yes | |
23422 | else | |
23423 | echo "$as_me: failed program was:" >&5 | |
23424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23425 | ||
23426 | ac_header_preproc=no | |
23427 | fi | |
23428 | rm -f conftest.err conftest.$ac_ext | |
23429 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23430 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23431 | ||
23432 | # So? What about this header? | |
ac1cb8d3 VS |
23433 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23434 | yes:no: ) | |
bdcade0a MB |
23435 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23436 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23437 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23438 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23439 | ac_header_preproc=yes | |
bdcade0a | 23440 | ;; |
ac1cb8d3 | 23441 | no:yes:* ) |
bdcade0a MB |
23442 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23443 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23444 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23445 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23446 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23447 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23448 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23449 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23450 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23451 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23452 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23453 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23454 | ( |
23455 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23456 | ## ----------------------------------------- ## |
23457 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23458 | ## ----------------------------------------- ## | |
bdcade0a MB |
23459 | _ASBOX |
23460 | ) | | |
23461 | sed "s/^/$as_me: WARNING: /" >&2 | |
23462 | ;; | |
23463 | esac | |
23464 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23465 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23466 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23468 | else | |
23469 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23470 | fi | |
23471 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23472 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23473 | ||
23474 | fi | |
23475 | if test $ac_cv_header_ext_hash_map = yes; then | |
23476 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23477 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23478 | cat >conftest.$ac_ext <<_ACEOF | |
23479 | /* confdefs.h. */ | |
23480 | _ACEOF | |
23481 | cat confdefs.h >>conftest.$ac_ext | |
23482 | cat >>conftest.$ac_ext <<_ACEOF | |
23483 | /* end confdefs.h. */ | |
23484 | #include <ext/hash_map> | |
23485 | #include <ext/hash_set> | |
23486 | int | |
23487 | main () | |
23488 | { | |
23489 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23490 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23491 | ; | |
23492 | return 0; | |
23493 | } | |
23494 | _ACEOF | |
23495 | rm -f conftest.$ac_objext | |
23496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23497 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23498 | ac_status=$? |
ac1cb8d3 VS |
23499 | grep -v '^ *+' conftest.er1 >conftest.err |
23500 | rm -f conftest.er1 | |
23501 | cat conftest.err >&5 | |
bdcade0a MB |
23502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23503 | (exit $ac_status); } && | |
f10e38c4 | 23504 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23506 | (eval $ac_try) 2>&5 | |
23507 | ac_status=$? | |
23508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23509 | (exit $ac_status); }; } && | |
23510 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23512 | (eval $ac_try) 2>&5 | |
23513 | ac_status=$? | |
23514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23515 | (exit $ac_status); }; }; then | |
23516 | echo "$as_me:$LINENO: result: yes" >&5 | |
23517 | echo "${ECHO_T}yes" >&6 | |
23518 | cat >>confdefs.h <<\_ACEOF | |
23519 | #define HAVE_EXT_HASH_MAP 1 | |
23520 | _ACEOF | |
23521 | ||
23522 | cat >>confdefs.h <<\_ACEOF | |
23523 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
23524 | _ACEOF | |
23525 | ||
23526 | else | |
23527 | echo "$as_me: failed program was:" >&5 | |
23528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23529 | ||
23530 | echo "$as_me:$LINENO: result: no" >&5 | |
23531 | echo "${ECHO_T}no" >&6 | |
23532 | fi | |
ac1cb8d3 | 23533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23534 | |
23535 | fi | |
23536 | ||
23537 | ||
a848cd7e SC |
23538 | |
23539 | ac_ext=c | |
23540 | ac_cpp='$CPP $CPPFLAGS' | |
23541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23544 | ||
23545 | fi | |
23546 | ||
23547 | ||
23548 | SEARCH_INCLUDE="\ | |
23549 | /usr/local/include \ | |
23550 | \ | |
23551 | /usr/Motif-2.1/include \ | |
23552 | /usr/Motif-1.2/include \ | |
23553 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
23554 | \ |
23555 | /usr/dt/include \ | |
23556 | /usr/openwin/include \ | |
23557 | \ | |
23558 | /usr/include/Xm \ | |
23559 | \ | |
23560 | /usr/X11R6/include \ | |
23561 | /usr/X11R6.4/include \ | |
23562 | /usr/X11R5/include \ | |
23563 | /usr/X11R4/include \ | |
23564 | \ | |
23565 | /usr/include/X11R6 \ | |
23566 | /usr/include/X11R5 \ | |
23567 | /usr/include/X11R4 \ | |
23568 | \ | |
23569 | /usr/local/X11R6/include \ | |
23570 | /usr/local/X11R5/include \ | |
23571 | /usr/local/X11R4/include \ | |
23572 | \ | |
23573 | /usr/local/include/X11R6 \ | |
23574 | /usr/local/include/X11R5 \ | |
23575 | /usr/local/include/X11R4 \ | |
23576 | \ | |
23577 | /usr/X11/include \ | |
23578 | /usr/include/X11 \ | |
23579 | /usr/local/X11/include \ | |
23580 | /usr/local/include/X11 \ | |
23581 | \ | |
a848cd7e | 23582 | /usr/XFree86/include/X11 \ |
e051b34e MW |
23583 | /usr/pkg/include \ |
23584 | \ | |
a848cd7e SC |
23585 | /usr/openwin/share/include" |
23586 | ||
6f9cf1e6 | 23587 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 23588 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
23589 | |
23590 | case "${host}" in | |
23591 | *-*-irix6* ) | |
23592 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
23593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23594 | else | |
23595 | ||
c687b303 VZ |
23596 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
23597 | for e in a so sl dylib dll.a; do | |
23598 | libc="$d/libc.$e" | |
23599 | if test -f $libc; then | |
23600 | save_LIBS="$LIBS" | |
23601 | LIBS="$libc" | |
23602 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
23603 | int main() { return 0; } |
23604 | _ACEOF | |
23605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23607 | (eval $ac_link) 2>conftest.er1 | |
23608 | ac_status=$? | |
23609 | grep -v '^ *+' conftest.er1 >conftest.err | |
23610 | rm -f conftest.er1 | |
23611 | cat conftest.err >&5 | |
23612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23613 | (exit $ac_status); } && | |
f10e38c4 | 23614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
23615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23616 | (eval $ac_try) 2>&5 | |
23617 | ac_status=$? | |
23618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23619 | (exit $ac_status); }; } && | |
23620 | { ac_try='test -s conftest$ac_exeext' | |
23621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23622 | (eval $ac_try) 2>&5 | |
23623 | ac_status=$? | |
23624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23625 | (exit $ac_status); }; }; then | |
23626 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
23627 | else | |
23628 | echo "$as_me: failed program was:" >&5 | |
23629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23630 | ||
23631 | fi | |
23632 | rm -f conftest.err conftest.$ac_objext \ | |
23633 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
23634 | LIBS="$save_LIBS" |
23635 | if test "x$wx_cv_std_libpath" != "x"; then | |
23636 | break 2 | |
23637 | fi | |
23638 | fi | |
23639 | done | |
23640 | done | |
23641 | if test "x$wx_cv_std_libpath" = "x"; then | |
23642 | wx_cv_std_libpath="lib" | |
0ad5d837 | 23643 | fi |
0ad5d837 VZ |
23644 | |
23645 | ||
23646 | fi | |
6f9cf1e6 MW |
23647 | |
23648 | ;; | |
23649 | ||
23650 | *-*-solaris2* ) | |
23651 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
23652 | wx_cv_std_libpath="lib/64" | |
23653 | else | |
23654 | wx_cv_std_libpath="lib" | |
23655 | fi | |
23656 | ;; | |
23657 | ||
23658 | *-*-linux* ) | |
23659 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
23660 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
23661 | wx_cv_std_libpath="lib64" | |
23662 | else | |
23663 | wx_cv_std_libpath="lib" | |
23664 | fi | |
c687b303 VZ |
23665 | ;; |
23666 | ||
23667 | *) | |
23668 | wx_cv_std_libpath="lib"; | |
23669 | ;; | |
23670 | esac | |
0ad5d837 | 23671 | |
6f9cf1e6 MW |
23672 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
23673 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
23674 | ||
23675 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 23676 | |
3eca31dc MW |
23677 | if test "$build" != "$host" -a "$GCC" = yes; then |
23678 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
23679 | cross_root=`dirname $cross_root` | |
23680 | cross_root=`dirname $cross_root` | |
23681 | ||
23682 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23683 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 23684 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
23685 | |
23686 | if test -z "$PKG_CONFIG_PATH"; then | |
23687 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
23688 | export PKG_CONFIG_PATH | |
23689 | fi | |
23690 | ||
23691 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
23692 | ||
23693 | ac_find_includes= | |
23694 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
23695 | do | |
23696 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
23697 | ac_find_includes=$ac_dir | |
23698 | break | |
23699 | fi | |
23700 | done | |
23701 | ||
23702 | x_includes=$ac_find_includes | |
23703 | fi | |
23704 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
23705 | ||
0ad5d837 VZ |
23706 | ac_find_libraries= |
23707 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
23708 | do |
23709 | for ac_extension in a so sl dylib dll.a; do | |
23710 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
23711 | ac_find_libraries=$ac_dir | |
23712 | break 2 | |
23713 | fi | |
23714 | done | |
23715 | done | |
23716 | ||
23717 | x_libraries=$ac_find_libraries | |
23718 | fi | |
23719 | fi | |
23720 | fi | |
23721 | ||
a848cd7e SC |
23722 | |
23723 | cat >confcache <<\_ACEOF | |
23724 | # This file is a shell script that caches the results of configure | |
23725 | # tests run on this system so they can be shared between configure | |
23726 | # scripts and configure runs, see configure's option --config-cache. | |
23727 | # It is not useful on other systems. If it contains results you don't | |
23728 | # want to keep, you may remove or edit it. | |
23729 | # | |
23730 | # config.status only pays attention to the cache file if you give it | |
23731 | # the --recheck option to rerun configure. | |
23732 | # | |
23733 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23734 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23735 | # following values. | |
23736 | ||
23737 | _ACEOF | |
23738 | ||
23739 | # The following way of writing the cache mishandles newlines in values, | |
23740 | # but we know of no workaround that is simple, portable, and efficient. | |
23741 | # So, don't put newlines in cache variables' values. | |
23742 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23743 | # and sets the high bit in the cache file unless we assign to the vars. | |
23744 | { | |
23745 | (set) 2>&1 | | |
23746 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23747 | *ac_space=\ *) | |
23748 | # `set' does not quote correctly, so add quotes (double-quote | |
23749 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23750 | sed -n \ | |
ac1cb8d3 VS |
23751 | "s/'/'\\\\''/g; |
23752 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
23753 | ;; |
23754 | *) | |
23755 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23756 | sed -n \ | |
ac1cb8d3 | 23757 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
23758 | ;; |
23759 | esac; | |
23760 | } | | |
23761 | sed ' | |
23762 | t clear | |
23763 | : clear | |
23764 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23765 | t end | |
23766 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23767 | : end' >>confcache | |
23768 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
23769 | if test -w $cache_file; then | |
23770 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23771 | cat confcache >$cache_file | |
23772 | else | |
23773 | echo "not updating unwritable cache $cache_file" | |
23774 | fi | |
23775 | fi | |
23776 | rm -f confcache | |
23777 | ||
23778 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
23779 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
23780 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
23781 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
23782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23783 | else | |
23784 | ||
23785 | cat >conftest.$ac_ext <<_ACEOF | |
23786 | /* confdefs.h. */ | |
23787 | _ACEOF | |
23788 | cat confdefs.h >>conftest.$ac_ext | |
23789 | cat >>conftest.$ac_ext <<_ACEOF | |
23790 | /* end confdefs.h. */ | |
23791 | #include <features.h> | |
23792 | int | |
23793 | main () | |
23794 | { | |
23795 | ||
23796 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 23797 | not glibc 2.1 |
a848cd7e SC |
23798 | #endif |
23799 | ||
23800 | ; | |
23801 | return 0; | |
23802 | } | |
23803 | _ACEOF | |
23804 | rm -f conftest.$ac_objext | |
23805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23806 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23807 | ac_status=$? |
ac1cb8d3 VS |
23808 | grep -v '^ *+' conftest.er1 >conftest.err |
23809 | rm -f conftest.er1 | |
23810 | cat conftest.err >&5 | |
a848cd7e SC |
23811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23812 | (exit $ac_status); } && | |
f10e38c4 | 23813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23815 | (eval $ac_try) 2>&5 | |
23816 | ac_status=$? | |
23817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23818 | (exit $ac_status); }; } && | |
23819 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23821 | (eval $ac_try) 2>&5 | |
23822 | ac_status=$? | |
23823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23824 | (exit $ac_status); }; }; then | |
23825 | ||
23826 | wx_cv_lib_glibc21=yes | |
23827 | ||
23828 | else | |
23829 | echo "$as_me: failed program was:" >&5 | |
23830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23831 | ||
23832 | ||
23833 | wx_cv_lib_glibc21=no | |
23834 | ||
23835 | ||
23836 | fi | |
ac1cb8d3 | 23837 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23838 | |
23839 | fi | |
23840 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
23841 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
23842 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
23843 | cat >>confdefs.h <<\_ACEOF | |
23844 | #define wxHAVE_GLIBC2 1 | |
23845 | _ACEOF | |
23846 | ||
23847 | fi | |
23848 | fi | |
23849 | ||
23850 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
23851 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
23852 | cat >>confdefs.h <<\_ACEOF | |
23853 | #define _GNU_SOURCE 1 | |
23854 | _ACEOF | |
23855 | ||
23856 | fi | |
23857 | fi | |
23858 | ||
23859 | ||
23860 | ||
23861 | if test "$wxUSE_REGEX" != "no"; then | |
23862 | cat >>confdefs.h <<\_ACEOF | |
23863 | #define wxUSE_REGEX 1 | |
23864 | _ACEOF | |
23865 | ||
23866 | ||
23867 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
23868 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
23869 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
23870 | wxUSE_REGEX=builtin | |
23871 | fi | |
23872 | ||
23873 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
23874 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23875 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23876 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23877 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23879 | fi | |
23880 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23881 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23882 | else | |
23883 | # Is the header compilable? | |
23884 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
23885 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
23886 | cat >conftest.$ac_ext <<_ACEOF | |
23887 | /* confdefs.h. */ | |
23888 | _ACEOF | |
23889 | cat confdefs.h >>conftest.$ac_ext | |
23890 | cat >>conftest.$ac_ext <<_ACEOF | |
23891 | /* end confdefs.h. */ | |
23892 | $ac_includes_default | |
23893 | #include <regex.h> | |
23894 | _ACEOF | |
23895 | rm -f conftest.$ac_objext | |
23896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23897 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23898 | ac_status=$? |
ac1cb8d3 VS |
23899 | grep -v '^ *+' conftest.er1 >conftest.err |
23900 | rm -f conftest.er1 | |
23901 | cat conftest.err >&5 | |
a848cd7e SC |
23902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23903 | (exit $ac_status); } && | |
f10e38c4 | 23904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23906 | (eval $ac_try) 2>&5 | |
23907 | ac_status=$? | |
23908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23909 | (exit $ac_status); }; } && | |
23910 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23912 | (eval $ac_try) 2>&5 | |
23913 | ac_status=$? | |
23914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23915 | (exit $ac_status); }; }; then | |
23916 | ac_header_compiler=yes | |
23917 | else | |
23918 | echo "$as_me: failed program was:" >&5 | |
23919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23920 | ||
23921 | ac_header_compiler=no | |
23922 | fi | |
ac1cb8d3 | 23923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23924 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23925 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23926 | ||
23927 | # Is the header present? | |
23928 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
23929 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
23930 | cat >conftest.$ac_ext <<_ACEOF | |
23931 | /* confdefs.h. */ | |
23932 | _ACEOF | |
23933 | cat confdefs.h >>conftest.$ac_ext | |
23934 | cat >>conftest.$ac_ext <<_ACEOF | |
23935 | /* end confdefs.h. */ | |
23936 | #include <regex.h> | |
23937 | _ACEOF | |
23938 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23939 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23940 | ac_status=$? | |
23941 | grep -v '^ *+' conftest.er1 >conftest.err | |
23942 | rm -f conftest.er1 | |
23943 | cat conftest.err >&5 | |
23944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23945 | (exit $ac_status); } >/dev/null; then | |
23946 | if test -s conftest.err; then | |
23947 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23948 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23949 | else |
23950 | ac_cpp_err= | |
23951 | fi | |
23952 | else | |
23953 | ac_cpp_err=yes | |
23954 | fi | |
23955 | if test -z "$ac_cpp_err"; then | |
23956 | ac_header_preproc=yes | |
23957 | else | |
23958 | echo "$as_me: failed program was:" >&5 | |
23959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23960 | ||
23961 | ac_header_preproc=no | |
23962 | fi | |
23963 | rm -f conftest.err conftest.$ac_ext | |
23964 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23965 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23966 | ||
23967 | # So? What about this header? | |
ac1cb8d3 VS |
23968 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23969 | yes:no: ) | |
a848cd7e SC |
23970 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23971 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23972 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
23973 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
23974 | ac_header_preproc=yes | |
a848cd7e | 23975 | ;; |
ac1cb8d3 | 23976 | no:yes:* ) |
a848cd7e SC |
23977 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
23978 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23979 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
23980 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
23981 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
23982 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
23983 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23984 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23985 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
23986 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23987 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
23988 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23989 | ( |
23990 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23991 | ## ----------------------------------------- ## |
23992 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23993 | ## ----------------------------------------- ## | |
a848cd7e SC |
23994 | _ASBOX |
23995 | ) | | |
23996 | sed "s/^/$as_me: WARNING: /" >&2 | |
23997 | ;; | |
23998 | esac | |
23999 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24000 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24001 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24003 | else | |
24004 | ac_cv_header_regex_h=$ac_header_preproc | |
24005 | fi | |
24006 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24007 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24008 | ||
24009 | fi | |
24010 | if test $ac_cv_header_regex_h = yes; then | |
24011 | ||
ab0f0edd MW |
24012 | |
24013 | for ac_func in regcomp re_search | |
a848cd7e SC |
24014 | do |
24015 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24016 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24017 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24018 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24020 | else | |
24021 | cat >conftest.$ac_ext <<_ACEOF | |
24022 | /* confdefs.h. */ | |
24023 | _ACEOF | |
24024 | cat confdefs.h >>conftest.$ac_ext | |
24025 | cat >>conftest.$ac_ext <<_ACEOF | |
24026 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24027 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24028 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24029 | #define $ac_func innocuous_$ac_func | |
24030 | ||
a848cd7e SC |
24031 | /* System header to define __stub macros and hopefully few prototypes, |
24032 | which can conflict with char $ac_func (); below. | |
24033 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24034 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24035 | |
a848cd7e SC |
24036 | #ifdef __STDC__ |
24037 | # include <limits.h> | |
24038 | #else | |
24039 | # include <assert.h> | |
24040 | #endif | |
ac1cb8d3 VS |
24041 | |
24042 | #undef $ac_func | |
24043 | ||
a848cd7e SC |
24044 | /* Override any gcc2 internal prototype to avoid an error. */ |
24045 | #ifdef __cplusplus | |
24046 | extern "C" | |
24047 | { | |
24048 | #endif | |
24049 | /* We use char because int might match the return type of a gcc2 | |
24050 | builtin and then its argument prototype would still apply. */ | |
24051 | char $ac_func (); | |
24052 | /* The GNU C library defines this for functions which it implements | |
24053 | to always fail with ENOSYS. Some functions are actually named | |
24054 | something starting with __ and the normal name is an alias. */ | |
24055 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24056 | choke me | |
24057 | #else | |
24058 | char (*f) () = $ac_func; | |
24059 | #endif | |
24060 | #ifdef __cplusplus | |
24061 | } | |
24062 | #endif | |
24063 | ||
24064 | int | |
24065 | main () | |
24066 | { | |
24067 | return f != $ac_func; | |
24068 | ; | |
24069 | return 0; | |
24070 | } | |
24071 | _ACEOF | |
24072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24074 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24075 | ac_status=$? |
ac1cb8d3 VS |
24076 | grep -v '^ *+' conftest.er1 >conftest.err |
24077 | rm -f conftest.er1 | |
24078 | cat conftest.err >&5 | |
a848cd7e SC |
24079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24080 | (exit $ac_status); } && | |
f10e38c4 | 24081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24083 | (eval $ac_try) 2>&5 | |
24084 | ac_status=$? | |
24085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24086 | (exit $ac_status); }; } && | |
24087 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24089 | (eval $ac_try) 2>&5 | |
24090 | ac_status=$? | |
24091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24092 | (exit $ac_status); }; }; then | |
24093 | eval "$as_ac_var=yes" | |
24094 | else | |
24095 | echo "$as_me: failed program was:" >&5 | |
24096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24097 | ||
24098 | eval "$as_ac_var=no" | |
24099 | fi | |
ac1cb8d3 VS |
24100 | rm -f conftest.err conftest.$ac_objext \ |
24101 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24102 | fi |
24103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24104 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24105 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24106 | cat >>confdefs.h <<_ACEOF | |
24107 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24108 | _ACEOF | |
24109 | ||
24110 | fi | |
24111 | done | |
24112 | ||
24113 | fi | |
24114 | ||
24115 | ||
24116 | ||
24117 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
24118 | if test "$wxUSE_REGEX" = "sys" ; then | |
24119 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
24120 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
24121 | { (exit 1); exit 1; }; } | |
24122 | else | |
24123 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
24124 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
24125 | wxUSE_REGEX=builtin | |
24126 | fi | |
24127 | else | |
24128 | wxUSE_REGEX=sys | |
24129 | cat >>confdefs.h <<\_ACEOF | |
24130 | #define WX_NO_REGEX_ADVANCED 1 | |
24131 | _ACEOF | |
24132 | ||
24133 | fi | |
24134 | fi | |
24135 | fi | |
24136 | ||
24137 | ||
24138 | ZLIB_LINK= | |
24139 | if test "$wxUSE_ZLIB" != "no" ; then | |
24140 | cat >>confdefs.h <<\_ACEOF | |
24141 | #define wxUSE_ZLIB 1 | |
24142 | _ACEOF | |
24143 | ||
24144 | ||
24145 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
24146 | if test "$USE_DARWIN" = 1; then | |
24147 | system_zlib_h_ok="yes" | |
24148 | else | |
24149 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
24150 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
24151 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24153 | else | |
24154 | if test "$cross_compiling" = yes; then | |
24155 | unset ac_cv_header_zlib_h | |
24156 | ||
24157 | else | |
24158 | cat >conftest.$ac_ext <<_ACEOF | |
24159 | /* confdefs.h. */ | |
24160 | _ACEOF | |
24161 | cat confdefs.h >>conftest.$ac_ext | |
24162 | cat >>conftest.$ac_ext <<_ACEOF | |
24163 | /* end confdefs.h. */ | |
24164 | ||
24165 | #include <zlib.h> | |
24166 | #include <stdio.h> | |
24167 | ||
24168 | int main() | |
24169 | { | |
24170 | FILE *f=fopen("conftestval", "w"); | |
24171 | if (!f) exit(1); | |
24172 | fprintf(f, "%s", | |
24173 | ZLIB_VERSION[0] == '1' && | |
24174 | (ZLIB_VERSION[2] > '1' || | |
24175 | (ZLIB_VERSION[2] == '1' && | |
24176 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
24177 | exit(0); | |
24178 | } | |
24179 | ||
24180 | _ACEOF | |
24181 | rm -f conftest$ac_exeext | |
24182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24183 | (eval $ac_link) 2>&5 | |
24184 | ac_status=$? | |
24185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24186 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24188 | (eval $ac_try) 2>&5 | |
24189 | ac_status=$? | |
24190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24191 | (exit $ac_status); }; }; then | |
24192 | ac_cv_header_zlib_h=`cat conftestval` | |
24193 | else | |
24194 | echo "$as_me: program exited with status $ac_status" >&5 | |
24195 | echo "$as_me: failed program was:" >&5 | |
24196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24197 | ||
24198 | ( exit $ac_status ) | |
24199 | ac_cv_header_zlib_h=no | |
24200 | fi | |
ac1cb8d3 | 24201 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24202 | fi |
24203 | ||
24204 | fi | |
24205 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24206 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24207 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24208 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24209 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24210 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24212 | fi | |
24213 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24214 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24215 | else | |
24216 | # Is the header compilable? | |
24217 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
24218 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
24219 | cat >conftest.$ac_ext <<_ACEOF | |
24220 | /* confdefs.h. */ | |
24221 | _ACEOF | |
24222 | cat confdefs.h >>conftest.$ac_ext | |
24223 | cat >>conftest.$ac_ext <<_ACEOF | |
24224 | /* end confdefs.h. */ | |
24225 | $ac_includes_default | |
24226 | #include <zlib.h> | |
24227 | _ACEOF | |
24228 | rm -f conftest.$ac_objext | |
24229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24230 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24231 | ac_status=$? |
ac1cb8d3 VS |
24232 | grep -v '^ *+' conftest.er1 >conftest.err |
24233 | rm -f conftest.er1 | |
24234 | cat conftest.err >&5 | |
a848cd7e SC |
24235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24236 | (exit $ac_status); } && | |
f10e38c4 | 24237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24239 | (eval $ac_try) 2>&5 | |
24240 | ac_status=$? | |
24241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24242 | (exit $ac_status); }; } && | |
24243 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24245 | (eval $ac_try) 2>&5 | |
24246 | ac_status=$? | |
24247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24248 | (exit $ac_status); }; }; then | |
24249 | ac_header_compiler=yes | |
24250 | else | |
24251 | echo "$as_me: failed program was:" >&5 | |
24252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24253 | ||
24254 | ac_header_compiler=no | |
24255 | fi | |
ac1cb8d3 | 24256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24257 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24258 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24259 | ||
24260 | # Is the header present? | |
24261 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
24262 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
24263 | cat >conftest.$ac_ext <<_ACEOF | |
24264 | /* confdefs.h. */ | |
24265 | _ACEOF | |
24266 | cat confdefs.h >>conftest.$ac_ext | |
24267 | cat >>conftest.$ac_ext <<_ACEOF | |
24268 | /* end confdefs.h. */ | |
24269 | #include <zlib.h> | |
24270 | _ACEOF | |
24271 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24272 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24273 | ac_status=$? | |
24274 | grep -v '^ *+' conftest.er1 >conftest.err | |
24275 | rm -f conftest.er1 | |
24276 | cat conftest.err >&5 | |
24277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24278 | (exit $ac_status); } >/dev/null; then | |
24279 | if test -s conftest.err; then | |
24280 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24281 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24282 | else |
24283 | ac_cpp_err= | |
24284 | fi | |
24285 | else | |
24286 | ac_cpp_err=yes | |
24287 | fi | |
24288 | if test -z "$ac_cpp_err"; then | |
24289 | ac_header_preproc=yes | |
24290 | else | |
24291 | echo "$as_me: failed program was:" >&5 | |
24292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24293 | ||
24294 | ac_header_preproc=no | |
24295 | fi | |
24296 | rm -f conftest.err conftest.$ac_ext | |
24297 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24298 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24299 | ||
24300 | # So? What about this header? | |
ac1cb8d3 VS |
24301 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24302 | yes:no: ) | |
a848cd7e SC |
24303 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24304 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24305 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
24306 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
24307 | ac_header_preproc=yes | |
a848cd7e | 24308 | ;; |
ac1cb8d3 | 24309 | no:yes:* ) |
a848cd7e SC |
24310 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
24311 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24312 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
24313 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
24314 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
24315 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
24316 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24317 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24318 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
24319 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24320 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
24321 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24322 | ( |
24323 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24324 | ## ----------------------------------------- ## |
24325 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24326 | ## ----------------------------------------- ## | |
a848cd7e SC |
24327 | _ASBOX |
24328 | ) | | |
24329 | sed "s/^/$as_me: WARNING: /" >&2 | |
24330 | ;; | |
24331 | esac | |
24332 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24333 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24334 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24336 | else | |
24337 | ac_cv_header_zlib_h=$ac_header_preproc | |
24338 | fi | |
24339 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24340 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24341 | ||
24342 | fi | |
24343 | ||
24344 | ||
24345 | ||
24346 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
24347 | fi | |
24348 | ||
24349 | if test "$system_zlib_h_ok" = "yes"; then | |
24350 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
24351 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
24352 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
24353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24354 | else | |
24355 | ac_check_lib_save_LIBS=$LIBS | |
24356 | LIBS="-lz $LIBS" | |
24357 | cat >conftest.$ac_ext <<_ACEOF | |
24358 | /* confdefs.h. */ | |
24359 | _ACEOF | |
24360 | cat confdefs.h >>conftest.$ac_ext | |
24361 | cat >>conftest.$ac_ext <<_ACEOF | |
24362 | /* end confdefs.h. */ | |
24363 | ||
24364 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24365 | #ifdef __cplusplus | |
24366 | extern "C" | |
24367 | #endif | |
24368 | /* We use char because int might match the return type of a gcc2 | |
24369 | builtin and then its argument prototype would still apply. */ | |
24370 | char deflate (); | |
24371 | int | |
24372 | main () | |
24373 | { | |
24374 | deflate (); | |
24375 | ; | |
24376 | return 0; | |
24377 | } | |
24378 | _ACEOF | |
24379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24381 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24382 | ac_status=$? |
ac1cb8d3 VS |
24383 | grep -v '^ *+' conftest.er1 >conftest.err |
24384 | rm -f conftest.er1 | |
24385 | cat conftest.err >&5 | |
a848cd7e SC |
24386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24387 | (exit $ac_status); } && | |
f10e38c4 | 24388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24390 | (eval $ac_try) 2>&5 | |
24391 | ac_status=$? | |
24392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24393 | (exit $ac_status); }; } && | |
24394 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24396 | (eval $ac_try) 2>&5 | |
24397 | ac_status=$? | |
24398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24399 | (exit $ac_status); }; }; then | |
24400 | ac_cv_lib_z_deflate=yes | |
24401 | else | |
24402 | echo "$as_me: failed program was:" >&5 | |
24403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24404 | ||
24405 | ac_cv_lib_z_deflate=no | |
24406 | fi | |
ac1cb8d3 VS |
24407 | rm -f conftest.err conftest.$ac_objext \ |
24408 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24409 | LIBS=$ac_check_lib_save_LIBS |
24410 | fi | |
24411 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
24412 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
24413 | if test $ac_cv_lib_z_deflate = yes; then | |
24414 | ZLIB_LINK=" -lz" | |
24415 | fi | |
24416 | ||
24417 | fi | |
24418 | ||
24419 | if test "x$ZLIB_LINK" = "x" ; then | |
24420 | if test "$wxUSE_ZLIB" = "sys" ; then | |
24421 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
24422 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
24423 | { (exit 1); exit 1; }; } | |
24424 | else | |
24425 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
24426 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
24427 | wxUSE_ZLIB=builtin | |
24428 | fi | |
24429 | else | |
24430 | wxUSE_ZLIB=sys | |
24431 | fi | |
24432 | fi | |
24433 | fi | |
24434 | ||
24435 | ||
24436 | PNG_LINK= | |
24437 | if test "$wxUSE_LIBPNG" != "no" ; then | |
24438 | cat >>confdefs.h <<\_ACEOF | |
24439 | #define wxUSE_LIBPNG 1 | |
24440 | _ACEOF | |
24441 | ||
24442 | ||
24443 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
24444 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
24445 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
24446 | wxUSE_LIBPNG=sys | |
24447 | fi | |
24448 | ||
24449 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
24450 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
24451 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
24452 | wxUSE_LIBPNG=builtin | |
24453 | fi | |
24454 | ||
24455 | if test "$wxUSE_MGL" != 1 ; then | |
24456 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
24457 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
24458 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
24459 | if test "${ac_cv_header_png_h+set}" = set; then | |
24460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24461 | else | |
24462 | if test "$cross_compiling" = yes; then | |
24463 | unset ac_cv_header_png_h | |
24464 | ||
24465 | else | |
24466 | cat >conftest.$ac_ext <<_ACEOF | |
24467 | /* confdefs.h. */ | |
24468 | _ACEOF | |
24469 | cat confdefs.h >>conftest.$ac_ext | |
24470 | cat >>conftest.$ac_ext <<_ACEOF | |
24471 | /* end confdefs.h. */ | |
24472 | ||
24473 | #include <png.h> | |
24474 | #include <stdio.h> | |
24475 | ||
24476 | int main() | |
24477 | { | |
24478 | FILE *f=fopen("conftestval", "w"); | |
24479 | if (!f) exit(1); | |
24480 | fprintf(f, "%s", | |
24481 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
24482 | exit(0); | |
24483 | } | |
24484 | ||
24485 | _ACEOF | |
24486 | rm -f conftest$ac_exeext | |
24487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24488 | (eval $ac_link) 2>&5 | |
24489 | ac_status=$? | |
24490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24491 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24493 | (eval $ac_try) 2>&5 | |
24494 | ac_status=$? | |
24495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24496 | (exit $ac_status); }; }; then | |
24497 | ac_cv_header_png_h=`cat conftestval` | |
24498 | else | |
24499 | echo "$as_me: program exited with status $ac_status" >&5 | |
24500 | echo "$as_me: failed program was:" >&5 | |
24501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24502 | ||
24503 | ( exit $ac_status ) | |
24504 | ac_cv_header_png_h=no | |
24505 | fi | |
ac1cb8d3 | 24506 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24507 | fi |
24508 | ||
24509 | fi | |
24510 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24511 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24512 | if test "${ac_cv_header_png_h+set}" = set; then | |
24513 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24514 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24515 | if test "${ac_cv_header_png_h+set}" = set; then | |
24516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24517 | fi | |
24518 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24519 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24520 | else | |
24521 | # Is the header compilable? | |
24522 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
24523 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
24524 | cat >conftest.$ac_ext <<_ACEOF | |
24525 | /* confdefs.h. */ | |
24526 | _ACEOF | |
24527 | cat confdefs.h >>conftest.$ac_ext | |
24528 | cat >>conftest.$ac_ext <<_ACEOF | |
24529 | /* end confdefs.h. */ | |
24530 | $ac_includes_default | |
24531 | #include <png.h> | |
24532 | _ACEOF | |
24533 | rm -f conftest.$ac_objext | |
24534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24535 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24536 | ac_status=$? |
ac1cb8d3 VS |
24537 | grep -v '^ *+' conftest.er1 >conftest.err |
24538 | rm -f conftest.er1 | |
24539 | cat conftest.err >&5 | |
a848cd7e SC |
24540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24541 | (exit $ac_status); } && | |
f10e38c4 | 24542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24544 | (eval $ac_try) 2>&5 | |
24545 | ac_status=$? | |
24546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24547 | (exit $ac_status); }; } && | |
24548 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24550 | (eval $ac_try) 2>&5 | |
24551 | ac_status=$? | |
24552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24553 | (exit $ac_status); }; }; then | |
24554 | ac_header_compiler=yes | |
24555 | else | |
24556 | echo "$as_me: failed program was:" >&5 | |
24557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24558 | ||
24559 | ac_header_compiler=no | |
24560 | fi | |
ac1cb8d3 | 24561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24562 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24563 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24564 | ||
24565 | # Is the header present? | |
24566 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
24567 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
24568 | cat >conftest.$ac_ext <<_ACEOF | |
24569 | /* confdefs.h. */ | |
24570 | _ACEOF | |
24571 | cat confdefs.h >>conftest.$ac_ext | |
24572 | cat >>conftest.$ac_ext <<_ACEOF | |
24573 | /* end confdefs.h. */ | |
24574 | #include <png.h> | |
24575 | _ACEOF | |
24576 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24577 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24578 | ac_status=$? | |
24579 | grep -v '^ *+' conftest.er1 >conftest.err | |
24580 | rm -f conftest.er1 | |
24581 | cat conftest.err >&5 | |
24582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24583 | (exit $ac_status); } >/dev/null; then | |
24584 | if test -s conftest.err; then | |
24585 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24586 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24587 | else |
24588 | ac_cpp_err= | |
24589 | fi | |
24590 | else | |
24591 | ac_cpp_err=yes | |
24592 | fi | |
24593 | if test -z "$ac_cpp_err"; then | |
24594 | ac_header_preproc=yes | |
24595 | else | |
24596 | echo "$as_me: failed program was:" >&5 | |
24597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24598 | ||
24599 | ac_header_preproc=no | |
24600 | fi | |
24601 | rm -f conftest.err conftest.$ac_ext | |
24602 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24603 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24604 | ||
24605 | # So? What about this header? | |
ac1cb8d3 VS |
24606 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24607 | yes:no: ) | |
a848cd7e SC |
24608 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24609 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24610 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
24611 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
24612 | ac_header_preproc=yes | |
a848cd7e | 24613 | ;; |
ac1cb8d3 | 24614 | no:yes:* ) |
a848cd7e SC |
24615 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
24616 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24617 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
24618 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
24619 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
24620 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
24621 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24622 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24623 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
24624 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24625 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
24626 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24627 | ( |
24628 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24629 | ## ----------------------------------------- ## |
24630 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24631 | ## ----------------------------------------- ## | |
a848cd7e SC |
24632 | _ASBOX |
24633 | ) | | |
24634 | sed "s/^/$as_me: WARNING: /" >&2 | |
24635 | ;; | |
24636 | esac | |
24637 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24638 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24639 | if test "${ac_cv_header_png_h+set}" = set; then | |
24640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24641 | else | |
24642 | ac_cv_header_png_h=$ac_header_preproc | |
24643 | fi | |
24644 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24645 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24646 | ||
24647 | fi | |
24648 | ||
24649 | ||
24650 | ||
24651 | if test "$ac_cv_header_png_h" = "yes"; then | |
24652 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
24653 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
24654 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
24655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24656 | else | |
24657 | ac_check_lib_save_LIBS=$LIBS | |
24658 | LIBS="-lpng -lz -lm $LIBS" | |
24659 | cat >conftest.$ac_ext <<_ACEOF | |
24660 | /* confdefs.h. */ | |
24661 | _ACEOF | |
24662 | cat confdefs.h >>conftest.$ac_ext | |
24663 | cat >>conftest.$ac_ext <<_ACEOF | |
24664 | /* end confdefs.h. */ | |
24665 | ||
24666 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24667 | #ifdef __cplusplus | |
24668 | extern "C" | |
24669 | #endif | |
24670 | /* We use char because int might match the return type of a gcc2 | |
24671 | builtin and then its argument prototype would still apply. */ | |
24672 | char png_check_sig (); | |
24673 | int | |
24674 | main () | |
24675 | { | |
24676 | png_check_sig (); | |
24677 | ; | |
24678 | return 0; | |
24679 | } | |
24680 | _ACEOF | |
24681 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24683 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24684 | ac_status=$? |
ac1cb8d3 VS |
24685 | grep -v '^ *+' conftest.er1 >conftest.err |
24686 | rm -f conftest.er1 | |
24687 | cat conftest.err >&5 | |
a848cd7e SC |
24688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24689 | (exit $ac_status); } && | |
f10e38c4 | 24690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24692 | (eval $ac_try) 2>&5 | |
24693 | ac_status=$? | |
24694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24695 | (exit $ac_status); }; } && | |
24696 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24698 | (eval $ac_try) 2>&5 | |
24699 | ac_status=$? | |
24700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24701 | (exit $ac_status); }; }; then | |
24702 | ac_cv_lib_png_png_check_sig=yes | |
24703 | else | |
24704 | echo "$as_me: failed program was:" >&5 | |
24705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24706 | ||
24707 | ac_cv_lib_png_png_check_sig=no | |
24708 | fi | |
ac1cb8d3 VS |
24709 | rm -f conftest.err conftest.$ac_objext \ |
24710 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24711 | LIBS=$ac_check_lib_save_LIBS |
24712 | fi | |
24713 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
24714 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
24715 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
24716 | PNG_LINK=" -lpng -lz" | |
24717 | fi | |
24718 | ||
24719 | fi | |
24720 | ||
24721 | if test "x$PNG_LINK" = "x" ; then | |
24722 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
24723 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
24724 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
24725 | { (exit 1); exit 1; }; } | |
24726 | else | |
24727 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
24728 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
24729 | wxUSE_LIBPNG=builtin | |
24730 | fi | |
24731 | else | |
24732 | wxUSE_LIBPNG=sys | |
24733 | fi | |
24734 | fi | |
24735 | fi | |
24736 | ||
24737 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
24738 | fi | |
24739 | ||
24740 | ||
24741 | JPEG_LINK= | |
24742 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
24743 | cat >>confdefs.h <<\_ACEOF | |
24744 | #define wxUSE_LIBJPEG 1 | |
24745 | _ACEOF | |
24746 | ||
24747 | ||
24748 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
24749 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
24750 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
24751 | wxUSE_LIBJPEG=sys | |
24752 | fi | |
24753 | ||
24754 | if test "$wxUSE_MGL" != 1 ; then | |
24755 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
24756 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
24757 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
24758 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
24759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24760 | else | |
24761 | cat >conftest.$ac_ext <<_ACEOF | |
24762 | /* confdefs.h. */ | |
24763 | _ACEOF | |
24764 | cat confdefs.h >>conftest.$ac_ext | |
24765 | cat >>conftest.$ac_ext <<_ACEOF | |
24766 | /* end confdefs.h. */ | |
24767 | ||
24768 | #undef HAVE_STDLIB_H | |
24769 | #include <stdio.h> | |
24770 | #include <jpeglib.h> | |
24771 | ||
24772 | int | |
24773 | main () | |
24774 | { | |
24775 | ||
24776 | ||
24777 | ; | |
24778 | return 0; | |
24779 | } | |
24780 | _ACEOF | |
24781 | rm -f conftest.$ac_objext | |
24782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24783 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24784 | ac_status=$? |
ac1cb8d3 VS |
24785 | grep -v '^ *+' conftest.er1 >conftest.err |
24786 | rm -f conftest.er1 | |
24787 | cat conftest.err >&5 | |
a848cd7e SC |
24788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24789 | (exit $ac_status); } && | |
f10e38c4 | 24790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24792 | (eval $ac_try) 2>&5 | |
24793 | ac_status=$? | |
24794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24795 | (exit $ac_status); }; } && | |
24796 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24798 | (eval $ac_try) 2>&5 | |
24799 | ac_status=$? | |
24800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24801 | (exit $ac_status); }; }; then | |
24802 | ac_cv_header_jpeglib_h=yes | |
24803 | else | |
24804 | echo "$as_me: failed program was:" >&5 | |
24805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24806 | ||
24807 | ac_cv_header_jpeglib_h=no | |
24808 | ||
24809 | fi | |
ac1cb8d3 | 24810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24811 | |
24812 | fi | |
24813 | ||
24814 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
24815 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
24816 | ||
24817 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
24818 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
24819 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
24820 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
24821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24822 | else | |
24823 | ac_check_lib_save_LIBS=$LIBS | |
24824 | LIBS="-ljpeg $LIBS" | |
24825 | cat >conftest.$ac_ext <<_ACEOF | |
24826 | /* confdefs.h. */ | |
24827 | _ACEOF | |
24828 | cat confdefs.h >>conftest.$ac_ext | |
24829 | cat >>conftest.$ac_ext <<_ACEOF | |
24830 | /* end confdefs.h. */ | |
24831 | ||
24832 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24833 | #ifdef __cplusplus | |
24834 | extern "C" | |
24835 | #endif | |
24836 | /* We use char because int might match the return type of a gcc2 | |
24837 | builtin and then its argument prototype would still apply. */ | |
24838 | char jpeg_read_header (); | |
24839 | int | |
24840 | main () | |
24841 | { | |
24842 | jpeg_read_header (); | |
24843 | ; | |
24844 | return 0; | |
24845 | } | |
24846 | _ACEOF | |
24847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24849 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24850 | ac_status=$? |
ac1cb8d3 VS |
24851 | grep -v '^ *+' conftest.er1 >conftest.err |
24852 | rm -f conftest.er1 | |
24853 | cat conftest.err >&5 | |
a848cd7e SC |
24854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24855 | (exit $ac_status); } && | |
f10e38c4 | 24856 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24858 | (eval $ac_try) 2>&5 | |
24859 | ac_status=$? | |
24860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24861 | (exit $ac_status); }; } && | |
24862 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24864 | (eval $ac_try) 2>&5 | |
24865 | ac_status=$? | |
24866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24867 | (exit $ac_status); }; }; then | |
24868 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
24869 | else | |
24870 | echo "$as_me: failed program was:" >&5 | |
24871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24872 | ||
24873 | ac_cv_lib_jpeg_jpeg_read_header=no | |
24874 | fi | |
ac1cb8d3 VS |
24875 | rm -f conftest.err conftest.$ac_objext \ |
24876 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24877 | LIBS=$ac_check_lib_save_LIBS |
24878 | fi | |
24879 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
24880 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
24881 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
24882 | JPEG_LINK=" -ljpeg" | |
24883 | fi | |
24884 | ||
24885 | fi | |
24886 | ||
24887 | if test "x$JPEG_LINK" = "x" ; then | |
24888 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
24889 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
24890 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
24891 | { (exit 1); exit 1; }; } | |
24892 | else | |
24893 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
24894 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
24895 | wxUSE_LIBJPEG=builtin | |
24896 | fi | |
24897 | else | |
24898 | wxUSE_LIBJPEG=sys | |
24899 | fi | |
24900 | fi | |
24901 | fi | |
24902 | fi | |
24903 | ||
24904 | ||
24905 | TIFF_LINK= | |
24906 | TIFF_PREREQ_LINKS=-lm | |
24907 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
24908 | cat >>confdefs.h <<\_ACEOF | |
24909 | #define wxUSE_LIBTIFF 1 | |
24910 | _ACEOF | |
24911 | ||
24912 | ||
24913 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
24914 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
24915 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
24916 | fi | |
24917 | if test "$wxUSE_ZLIB" = "sys"; then | |
24918 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
24919 | fi | |
24920 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24921 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24922 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24923 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24925 | fi | |
24926 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24927 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24928 | else | |
24929 | # Is the header compilable? | |
24930 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
24931 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
24932 | cat >conftest.$ac_ext <<_ACEOF | |
24933 | /* confdefs.h. */ | |
24934 | _ACEOF | |
24935 | cat confdefs.h >>conftest.$ac_ext | |
24936 | cat >>conftest.$ac_ext <<_ACEOF | |
24937 | /* end confdefs.h. */ | |
24938 | $ac_includes_default | |
24939 | #include <tiffio.h> | |
24940 | _ACEOF | |
24941 | rm -f conftest.$ac_objext | |
24942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24943 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24944 | ac_status=$? |
ac1cb8d3 VS |
24945 | grep -v '^ *+' conftest.er1 >conftest.err |
24946 | rm -f conftest.er1 | |
24947 | cat conftest.err >&5 | |
a848cd7e SC |
24948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24949 | (exit $ac_status); } && | |
f10e38c4 | 24950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24952 | (eval $ac_try) 2>&5 | |
24953 | ac_status=$? | |
24954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24955 | (exit $ac_status); }; } && | |
24956 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24958 | (eval $ac_try) 2>&5 | |
24959 | ac_status=$? | |
24960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24961 | (exit $ac_status); }; }; then | |
24962 | ac_header_compiler=yes | |
24963 | else | |
24964 | echo "$as_me: failed program was:" >&5 | |
24965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24966 | ||
24967 | ac_header_compiler=no | |
24968 | fi | |
ac1cb8d3 | 24969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24970 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24971 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24972 | ||
24973 | # Is the header present? | |
24974 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
24975 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
24976 | cat >conftest.$ac_ext <<_ACEOF | |
24977 | /* confdefs.h. */ | |
24978 | _ACEOF | |
24979 | cat confdefs.h >>conftest.$ac_ext | |
24980 | cat >>conftest.$ac_ext <<_ACEOF | |
24981 | /* end confdefs.h. */ | |
24982 | #include <tiffio.h> | |
24983 | _ACEOF | |
24984 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24985 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24986 | ac_status=$? | |
24987 | grep -v '^ *+' conftest.er1 >conftest.err | |
24988 | rm -f conftest.er1 | |
24989 | cat conftest.err >&5 | |
24990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24991 | (exit $ac_status); } >/dev/null; then | |
24992 | if test -s conftest.err; then | |
24993 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24994 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24995 | else |
24996 | ac_cpp_err= | |
24997 | fi | |
24998 | else | |
24999 | ac_cpp_err=yes | |
25000 | fi | |
25001 | if test -z "$ac_cpp_err"; then | |
25002 | ac_header_preproc=yes | |
25003 | else | |
25004 | echo "$as_me: failed program was:" >&5 | |
25005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25006 | ||
25007 | ac_header_preproc=no | |
25008 | fi | |
25009 | rm -f conftest.err conftest.$ac_ext | |
25010 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25011 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25012 | ||
25013 | # So? What about this header? | |
ac1cb8d3 VS |
25014 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25015 | yes:no: ) | |
a848cd7e SC |
25016 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25017 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25018 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
25019 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
25020 | ac_header_preproc=yes | |
a848cd7e | 25021 | ;; |
ac1cb8d3 | 25022 | no:yes:* ) |
a848cd7e SC |
25023 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
25024 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25025 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
25026 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
25027 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
25028 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
25029 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25030 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25031 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
25032 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25033 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
25034 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25035 | ( |
25036 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25037 | ## ----------------------------------------- ## |
25038 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25039 | ## ----------------------------------------- ## | |
a848cd7e SC |
25040 | _ASBOX |
25041 | ) | | |
25042 | sed "s/^/$as_me: WARNING: /" >&2 | |
25043 | ;; | |
25044 | esac | |
25045 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25046 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25047 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25049 | else | |
25050 | ac_cv_header_tiffio_h=$ac_header_preproc | |
25051 | fi | |
25052 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25053 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25054 | ||
25055 | fi | |
25056 | if test $ac_cv_header_tiffio_h = yes; then | |
25057 | ||
25058 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
25059 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
25060 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
25061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25062 | else | |
25063 | ac_check_lib_save_LIBS=$LIBS | |
25064 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
25065 | cat >conftest.$ac_ext <<_ACEOF | |
25066 | /* confdefs.h. */ | |
25067 | _ACEOF | |
25068 | cat confdefs.h >>conftest.$ac_ext | |
25069 | cat >>conftest.$ac_ext <<_ACEOF | |
25070 | /* end confdefs.h. */ | |
25071 | ||
25072 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25073 | #ifdef __cplusplus | |
25074 | extern "C" | |
25075 | #endif | |
25076 | /* We use char because int might match the return type of a gcc2 | |
25077 | builtin and then its argument prototype would still apply. */ | |
25078 | char TIFFError (); | |
25079 | int | |
25080 | main () | |
25081 | { | |
25082 | TIFFError (); | |
25083 | ; | |
25084 | return 0; | |
25085 | } | |
25086 | _ACEOF | |
25087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25089 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25090 | ac_status=$? |
ac1cb8d3 VS |
25091 | grep -v '^ *+' conftest.er1 >conftest.err |
25092 | rm -f conftest.er1 | |
25093 | cat conftest.err >&5 | |
a848cd7e SC |
25094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25095 | (exit $ac_status); } && | |
f10e38c4 | 25096 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25098 | (eval $ac_try) 2>&5 | |
25099 | ac_status=$? | |
25100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25101 | (exit $ac_status); }; } && | |
25102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25104 | (eval $ac_try) 2>&5 | |
25105 | ac_status=$? | |
25106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25107 | (exit $ac_status); }; }; then | |
25108 | ac_cv_lib_tiff_TIFFError=yes | |
25109 | else | |
25110 | echo "$as_me: failed program was:" >&5 | |
25111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25112 | ||
25113 | ac_cv_lib_tiff_TIFFError=no | |
25114 | fi | |
ac1cb8d3 VS |
25115 | rm -f conftest.err conftest.$ac_objext \ |
25116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25117 | LIBS=$ac_check_lib_save_LIBS |
25118 | fi | |
25119 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
25120 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
25121 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
25122 | TIFF_LINK=" -ltiff" | |
25123 | fi | |
25124 | ||
25125 | ||
25126 | ||
25127 | fi | |
25128 | ||
25129 | ||
25130 | ||
25131 | if test "x$TIFF_LINK" = "x" ; then | |
25132 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
25133 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
25134 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
25135 | { (exit 1); exit 1; }; } | |
25136 | else | |
25137 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
25138 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
25139 | wxUSE_LIBTIFF=builtin | |
25140 | fi | |
25141 | else | |
25142 | wxUSE_LIBTIFF=sys | |
25143 | fi | |
25144 | fi | |
25145 | fi | |
25146 | ||
25147 | ||
47a7e797 MW |
25148 | if test "$wxUSE_WCHAR_T" != "yes"; then |
25149 | if test "$wxUSE_EXPAT" != "no"; then | |
25150 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
25151 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
25152 | wxUSE_EXPAT=no | |
25153 | fi | |
25154 | if test "$wxUSE_XML" != "no"; then | |
25155 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
25156 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
25157 | wxUSE_XML=no | |
25158 | fi | |
25159 | fi | |
25160 | ||
a848cd7e SC |
25161 | if test "$wxUSE_EXPAT" != "no"; then |
25162 | wxUSE_XML=yes | |
25163 | cat >>confdefs.h <<\_ACEOF | |
25164 | #define wxUSE_EXPAT 1 | |
25165 | _ACEOF | |
25166 | ||
25167 | cat >>confdefs.h <<\_ACEOF | |
25168 | #define wxUSE_XML 1 | |
25169 | _ACEOF | |
25170 | ||
25171 | ||
25172 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
25173 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25174 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25175 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25176 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25178 | fi | |
25179 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25180 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25181 | else | |
25182 | # Is the header compilable? | |
25183 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
25184 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
25185 | cat >conftest.$ac_ext <<_ACEOF | |
25186 | /* confdefs.h. */ | |
25187 | _ACEOF | |
25188 | cat confdefs.h >>conftest.$ac_ext | |
25189 | cat >>conftest.$ac_ext <<_ACEOF | |
25190 | /* end confdefs.h. */ | |
25191 | $ac_includes_default | |
25192 | #include <expat.h> | |
25193 | _ACEOF | |
25194 | rm -f conftest.$ac_objext | |
25195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25196 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25197 | ac_status=$? |
ac1cb8d3 VS |
25198 | grep -v '^ *+' conftest.er1 >conftest.err |
25199 | rm -f conftest.er1 | |
25200 | cat conftest.err >&5 | |
a848cd7e SC |
25201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25202 | (exit $ac_status); } && | |
f10e38c4 | 25203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25205 | (eval $ac_try) 2>&5 | |
25206 | ac_status=$? | |
25207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25208 | (exit $ac_status); }; } && | |
25209 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25211 | (eval $ac_try) 2>&5 | |
25212 | ac_status=$? | |
25213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25214 | (exit $ac_status); }; }; then | |
25215 | ac_header_compiler=yes | |
25216 | else | |
25217 | echo "$as_me: failed program was:" >&5 | |
25218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25219 | ||
25220 | ac_header_compiler=no | |
25221 | fi | |
ac1cb8d3 | 25222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25223 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25224 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25225 | ||
25226 | # Is the header present? | |
25227 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
25228 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
25229 | cat >conftest.$ac_ext <<_ACEOF | |
25230 | /* confdefs.h. */ | |
25231 | _ACEOF | |
25232 | cat confdefs.h >>conftest.$ac_ext | |
25233 | cat >>conftest.$ac_ext <<_ACEOF | |
25234 | /* end confdefs.h. */ | |
25235 | #include <expat.h> | |
25236 | _ACEOF | |
25237 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25238 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25239 | ac_status=$? | |
25240 | grep -v '^ *+' conftest.er1 >conftest.err | |
25241 | rm -f conftest.er1 | |
25242 | cat conftest.err >&5 | |
25243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25244 | (exit $ac_status); } >/dev/null; then | |
25245 | if test -s conftest.err; then | |
25246 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25247 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25248 | else |
25249 | ac_cpp_err= | |
25250 | fi | |
25251 | else | |
25252 | ac_cpp_err=yes | |
25253 | fi | |
25254 | if test -z "$ac_cpp_err"; then | |
25255 | ac_header_preproc=yes | |
25256 | else | |
25257 | echo "$as_me: failed program was:" >&5 | |
25258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25259 | ||
25260 | ac_header_preproc=no | |
25261 | fi | |
25262 | rm -f conftest.err conftest.$ac_ext | |
25263 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25264 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25265 | ||
25266 | # So? What about this header? | |
ac1cb8d3 VS |
25267 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25268 | yes:no: ) | |
a848cd7e SC |
25269 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25270 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25271 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
25272 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
25273 | ac_header_preproc=yes | |
a848cd7e | 25274 | ;; |
ac1cb8d3 | 25275 | no:yes:* ) |
a848cd7e SC |
25276 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
25277 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25278 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
25279 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
25280 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
25281 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
25282 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25283 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25284 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
25285 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25286 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
25287 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25288 | ( |
25289 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25290 | ## ----------------------------------------- ## |
25291 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25292 | ## ----------------------------------------- ## | |
a848cd7e SC |
25293 | _ASBOX |
25294 | ) | | |
25295 | sed "s/^/$as_me: WARNING: /" >&2 | |
25296 | ;; | |
25297 | esac | |
25298 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25299 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25300 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25302 | else | |
25303 | ac_cv_header_expat_h=$ac_header_preproc | |
25304 | fi | |
25305 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25306 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25307 | ||
25308 | fi | |
25309 | if test $ac_cv_header_expat_h = yes; then | |
25310 | found_expat_h=1 | |
25311 | fi | |
25312 | ||
25313 | ||
25314 | if test "x$found_expat_h" = "x1"; then | |
25315 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
25316 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
25317 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
25318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25319 | else | |
25320 | ||
a848cd7e SC |
25321 | ac_ext=cc |
25322 | ac_cpp='$CXXCPP $CPPFLAGS' | |
25323 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25324 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25325 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25326 | ||
25327 | cat >conftest.$ac_ext <<_ACEOF | |
25328 | /* confdefs.h. */ | |
25329 | _ACEOF | |
25330 | cat confdefs.h >>conftest.$ac_ext | |
25331 | cat >>conftest.$ac_ext <<_ACEOF | |
25332 | /* end confdefs.h. */ | |
25333 | #include <expat.h> | |
25334 | int | |
25335 | main () | |
25336 | { | |
25337 | ||
25338 | ; | |
25339 | return 0; | |
25340 | } | |
25341 | _ACEOF | |
25342 | rm -f conftest.$ac_objext | |
25343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25344 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25345 | ac_status=$? |
ac1cb8d3 VS |
25346 | grep -v '^ *+' conftest.er1 >conftest.err |
25347 | rm -f conftest.er1 | |
25348 | cat conftest.err >&5 | |
a848cd7e SC |
25349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25350 | (exit $ac_status); } && | |
f10e38c4 | 25351 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25353 | (eval $ac_try) 2>&5 | |
25354 | ac_status=$? | |
25355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25356 | (exit $ac_status); }; } && | |
25357 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25359 | (eval $ac_try) 2>&5 | |
25360 | ac_status=$? | |
25361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25362 | (exit $ac_status); }; }; then | |
25363 | wx_cv_expat_is_not_broken=yes | |
25364 | else | |
25365 | echo "$as_me: failed program was:" >&5 | |
25366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25367 | ||
25368 | wx_cv_expat_is_not_broken=no | |
25369 | ||
25370 | fi | |
ac1cb8d3 | 25371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25372 | ac_ext=c |
25373 | ac_cpp='$CPP $CPPFLAGS' | |
25374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25377 | ||
25378 | ||
25379 | ||
25380 | fi | |
25381 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
25382 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
25383 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
25384 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
25385 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
25386 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
25387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25388 | else | |
25389 | ac_check_lib_save_LIBS=$LIBS | |
25390 | LIBS="-lexpat $LIBS" | |
25391 | cat >conftest.$ac_ext <<_ACEOF | |
25392 | /* confdefs.h. */ | |
25393 | _ACEOF | |
25394 | cat confdefs.h >>conftest.$ac_ext | |
25395 | cat >>conftest.$ac_ext <<_ACEOF | |
25396 | /* end confdefs.h. */ | |
25397 | ||
25398 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25399 | #ifdef __cplusplus | |
25400 | extern "C" | |
25401 | #endif | |
25402 | /* We use char because int might match the return type of a gcc2 | |
25403 | builtin and then its argument prototype would still apply. */ | |
25404 | char XML_ParserCreate (); | |
25405 | int | |
25406 | main () | |
25407 | { | |
25408 | XML_ParserCreate (); | |
25409 | ; | |
25410 | return 0; | |
25411 | } | |
25412 | _ACEOF | |
25413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25415 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25416 | ac_status=$? |
ac1cb8d3 VS |
25417 | grep -v '^ *+' conftest.er1 >conftest.err |
25418 | rm -f conftest.er1 | |
25419 | cat conftest.err >&5 | |
a848cd7e SC |
25420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25421 | (exit $ac_status); } && | |
f10e38c4 | 25422 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25424 | (eval $ac_try) 2>&5 | |
25425 | ac_status=$? | |
25426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25427 | (exit $ac_status); }; } && | |
25428 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25430 | (eval $ac_try) 2>&5 | |
25431 | ac_status=$? | |
25432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25433 | (exit $ac_status); }; }; then | |
25434 | ac_cv_lib_expat_XML_ParserCreate=yes | |
25435 | else | |
25436 | echo "$as_me: failed program was:" >&5 | |
25437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25438 | ||
25439 | ac_cv_lib_expat_XML_ParserCreate=no | |
25440 | fi | |
ac1cb8d3 VS |
25441 | rm -f conftest.err conftest.$ac_objext \ |
25442 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25443 | LIBS=$ac_check_lib_save_LIBS |
25444 | fi | |
25445 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
25446 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
25447 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
25448 | EXPAT_LINK=" -lexpat" | |
25449 | fi | |
25450 | ||
25451 | fi | |
25452 | fi | |
25453 | if test "x$EXPAT_LINK" = "x" ; then | |
25454 | if test "$wxUSE_EXPAT" = "sys" ; then | |
25455 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
25456 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
25457 | { (exit 1); exit 1; }; } | |
25458 | else | |
25459 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
25460 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
25461 | wxUSE_EXPAT=builtin | |
25462 | fi | |
25463 | else | |
25464 | wxUSE_EXPAT=sys | |
25465 | fi | |
25466 | fi | |
25467 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
25468 | ||
25469 | ||
25470 | subdirs="$subdirs src/expat" | |
25471 | ||
25472 | fi | |
25473 | fi | |
25474 | ||
25475 | ||
25476 | ||
25477 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
25478 | if test "${ac_cv_header_mspack_h+set}" = set; then |
25479 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25480 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25481 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25483 | fi | |
25484 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25485 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25486 | else | |
25487 | # Is the header compilable? | |
25488 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
25489 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
25490 | cat >conftest.$ac_ext <<_ACEOF | |
25491 | /* confdefs.h. */ | |
25492 | _ACEOF | |
25493 | cat confdefs.h >>conftest.$ac_ext | |
25494 | cat >>conftest.$ac_ext <<_ACEOF | |
25495 | /* end confdefs.h. */ | |
25496 | $ac_includes_default | |
25497 | #include <mspack.h> | |
25498 | _ACEOF | |
25499 | rm -f conftest.$ac_objext | |
25500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25501 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25502 | ac_status=$? |
ac1cb8d3 VS |
25503 | grep -v '^ *+' conftest.er1 >conftest.err |
25504 | rm -f conftest.er1 | |
25505 | cat conftest.err >&5 | |
a848cd7e SC |
25506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25507 | (exit $ac_status); } && | |
f10e38c4 | 25508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25510 | (eval $ac_try) 2>&5 | |
25511 | ac_status=$? | |
25512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25513 | (exit $ac_status); }; } && | |
25514 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25516 | (eval $ac_try) 2>&5 | |
25517 | ac_status=$? | |
25518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25519 | (exit $ac_status); }; }; then | |
25520 | ac_header_compiler=yes | |
25521 | else | |
25522 | echo "$as_me: failed program was:" >&5 | |
25523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25524 | ||
25525 | ac_header_compiler=no | |
25526 | fi | |
ac1cb8d3 | 25527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25528 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25529 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25530 | ||
25531 | # Is the header present? | |
25532 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
25533 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
25534 | cat >conftest.$ac_ext <<_ACEOF | |
25535 | /* confdefs.h. */ | |
25536 | _ACEOF | |
25537 | cat confdefs.h >>conftest.$ac_ext | |
25538 | cat >>conftest.$ac_ext <<_ACEOF | |
25539 | /* end confdefs.h. */ | |
25540 | #include <mspack.h> | |
25541 | _ACEOF | |
25542 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25543 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25544 | ac_status=$? | |
25545 | grep -v '^ *+' conftest.er1 >conftest.err | |
25546 | rm -f conftest.er1 | |
25547 | cat conftest.err >&5 | |
25548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25549 | (exit $ac_status); } >/dev/null; then | |
25550 | if test -s conftest.err; then | |
25551 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25552 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25553 | else |
25554 | ac_cpp_err= | |
25555 | fi | |
25556 | else | |
25557 | ac_cpp_err=yes | |
25558 | fi | |
25559 | if test -z "$ac_cpp_err"; then | |
25560 | ac_header_preproc=yes | |
25561 | else | |
25562 | echo "$as_me: failed program was:" >&5 | |
25563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25564 | ||
25565 | ac_header_preproc=no | |
25566 | fi | |
25567 | rm -f conftest.err conftest.$ac_ext | |
25568 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25569 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25570 | ||
25571 | # So? What about this header? | |
ac1cb8d3 VS |
25572 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25573 | yes:no: ) | |
a848cd7e SC |
25574 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25575 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25576 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
25577 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
25578 | ac_header_preproc=yes | |
a848cd7e | 25579 | ;; |
ac1cb8d3 | 25580 | no:yes:* ) |
a848cd7e SC |
25581 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
25582 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25583 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
25584 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
25585 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
25586 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
25587 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25588 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25589 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
25590 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25591 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
25592 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25593 | ( |
25594 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25595 | ## ----------------------------------------- ## |
25596 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25597 | ## ----------------------------------------- ## | |
a848cd7e SC |
25598 | _ASBOX |
25599 | ) | | |
25600 | sed "s/^/$as_me: WARNING: /" >&2 | |
25601 | ;; | |
25602 | esac | |
25603 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25604 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25605 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25607 | else | |
25608 | ac_cv_header_mspack_h=$ac_header_preproc | |
25609 | fi | |
25610 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25611 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25612 | ||
25613 | fi | |
25614 | if test $ac_cv_header_mspack_h = yes; then | |
25615 | found_mspack_h=1 | |
25616 | fi | |
25617 | ||
25618 | ||
25619 | if test "x$found_mspack_h" = "x1"; then | |
25620 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
25621 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
25622 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
25623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25624 | else | |
25625 | ac_check_lib_save_LIBS=$LIBS | |
25626 | LIBS="-lmspack $LIBS" | |
25627 | cat >conftest.$ac_ext <<_ACEOF | |
25628 | /* confdefs.h. */ | |
25629 | _ACEOF | |
25630 | cat confdefs.h >>conftest.$ac_ext | |
25631 | cat >>conftest.$ac_ext <<_ACEOF | |
25632 | /* end confdefs.h. */ | |
25633 | ||
25634 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25635 | #ifdef __cplusplus | |
25636 | extern "C" | |
25637 | #endif | |
25638 | /* We use char because int might match the return type of a gcc2 | |
25639 | builtin and then its argument prototype would still apply. */ | |
25640 | char mspack_create_chm_decompressor (); | |
25641 | int | |
25642 | main () | |
25643 | { | |
25644 | mspack_create_chm_decompressor (); | |
25645 | ; | |
25646 | return 0; | |
25647 | } | |
25648 | _ACEOF | |
25649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25651 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25652 | ac_status=$? |
ac1cb8d3 VS |
25653 | grep -v '^ *+' conftest.er1 >conftest.err |
25654 | rm -f conftest.er1 | |
25655 | cat conftest.err >&5 | |
a848cd7e SC |
25656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25657 | (exit $ac_status); } && | |
f10e38c4 | 25658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25660 | (eval $ac_try) 2>&5 | |
25661 | ac_status=$? | |
25662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25663 | (exit $ac_status); }; } && | |
25664 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25666 | (eval $ac_try) 2>&5 | |
25667 | ac_status=$? | |
25668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25669 | (exit $ac_status); }; }; then | |
25670 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
25671 | else | |
25672 | echo "$as_me: failed program was:" >&5 | |
25673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25674 | ||
25675 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
25676 | fi | |
ac1cb8d3 VS |
25677 | rm -f conftest.err conftest.$ac_objext \ |
25678 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25679 | LIBS=$ac_check_lib_save_LIBS |
25680 | fi | |
25681 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
25682 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
25683 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
25684 | MSPACK_LINK=" -lmspack" | |
25685 | fi | |
25686 | ||
25687 | fi | |
25688 | if test "x$MSPACK_LINK" = "x" ; then | |
25689 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
25690 | fi |
25691 | fi | |
25692 | ||
25693 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
25694 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
25695 | #define wxUSE_LIBMSPACK 1 |
25696 | _ACEOF | |
25697 | ||
a848cd7e SC |
25698 | fi |
25699 | ||
25700 | ||
25701 | ||
25702 | AFMINSTALL= | |
25703 | WIN32INSTALL= | |
25704 | ||
25705 | TOOLKIT= | |
25706 | TOOLKIT_INCLUDE= | |
25707 | WIDGET_SET= | |
25708 | ||
25709 | if test "$USE_WIN32" = 1 ; then | |
25710 | ||
25711 | for ac_header in w32api.h | |
25712 | do | |
25713 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25715 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25717 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25719 | fi | |
25720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25721 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25722 | else | |
25723 | # Is the header compilable? | |
25724 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25725 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
25726 | cat >conftest.$ac_ext <<_ACEOF | |
25727 | /* confdefs.h. */ | |
25728 | _ACEOF | |
25729 | cat confdefs.h >>conftest.$ac_ext | |
25730 | cat >>conftest.$ac_ext <<_ACEOF | |
25731 | /* end confdefs.h. */ | |
25732 | $ac_includes_default | |
25733 | #include <$ac_header> | |
25734 | _ACEOF | |
25735 | rm -f conftest.$ac_objext | |
25736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25737 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25738 | ac_status=$? |
ac1cb8d3 VS |
25739 | grep -v '^ *+' conftest.er1 >conftest.err |
25740 | rm -f conftest.er1 | |
25741 | cat conftest.err >&5 | |
a848cd7e SC |
25742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25743 | (exit $ac_status); } && | |
f10e38c4 | 25744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25746 | (eval $ac_try) 2>&5 | |
25747 | ac_status=$? | |
25748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25749 | (exit $ac_status); }; } && | |
25750 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25752 | (eval $ac_try) 2>&5 | |
25753 | ac_status=$? | |
25754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25755 | (exit $ac_status); }; }; then | |
25756 | ac_header_compiler=yes | |
25757 | else | |
25758 | echo "$as_me: failed program was:" >&5 | |
25759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25760 | ||
25761 | ac_header_compiler=no | |
25762 | fi | |
ac1cb8d3 | 25763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25764 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25765 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25766 | ||
25767 | # Is the header present? | |
25768 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25769 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
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 | #include <$ac_header> | |
25777 | _ACEOF | |
25778 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25779 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25780 | ac_status=$? | |
25781 | grep -v '^ *+' conftest.er1 >conftest.err | |
25782 | rm -f conftest.er1 | |
25783 | cat conftest.err >&5 | |
25784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25785 | (exit $ac_status); } >/dev/null; then | |
25786 | if test -s conftest.err; then | |
25787 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25788 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25789 | else |
25790 | ac_cpp_err= | |
25791 | fi | |
25792 | else | |
25793 | ac_cpp_err=yes | |
25794 | fi | |
25795 | if test -z "$ac_cpp_err"; then | |
25796 | ac_header_preproc=yes | |
25797 | else | |
25798 | echo "$as_me: failed program was:" >&5 | |
25799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25800 | ||
25801 | ac_header_preproc=no | |
25802 | fi | |
25803 | rm -f conftest.err conftest.$ac_ext | |
25804 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25805 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25806 | ||
25807 | # So? What about this header? | |
ac1cb8d3 VS |
25808 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25809 | yes:no: ) | |
a848cd7e SC |
25810 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
25811 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25812 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
25813 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25814 | ac_header_preproc=yes | |
a848cd7e | 25815 | ;; |
ac1cb8d3 | 25816 | no:yes:* ) |
a848cd7e SC |
25817 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
25818 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25819 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
25820 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25821 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25822 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25823 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25824 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
25826 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25827 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
25828 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25829 | ( |
25830 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25831 | ## ----------------------------------------- ## |
25832 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25833 | ## ----------------------------------------- ## | |
a848cd7e SC |
25834 | _ASBOX |
25835 | ) | | |
25836 | sed "s/^/$as_me: WARNING: /" >&2 | |
25837 | ;; | |
25838 | esac | |
25839 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25840 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25841 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25843 | else | |
ac1cb8d3 | 25844 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
25845 | fi |
25846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25847 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25848 | ||
25849 | fi | |
25850 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25851 | cat >>confdefs.h <<_ACEOF | |
25852 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25853 | _ACEOF | |
25854 | ||
25855 | fi | |
25856 | ||
25857 | done | |
25858 | ||
25859 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25860 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25861 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25862 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25864 | fi | |
25865 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25866 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25867 | else | |
25868 | # Is the header compilable? | |
25869 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
25870 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
25871 | cat >conftest.$ac_ext <<_ACEOF | |
25872 | /* confdefs.h. */ | |
25873 | _ACEOF | |
25874 | cat confdefs.h >>conftest.$ac_ext | |
25875 | cat >>conftest.$ac_ext <<_ACEOF | |
25876 | /* end confdefs.h. */ | |
25877 | $ac_includes_default | |
25878 | #include <windows.h> | |
25879 | _ACEOF | |
25880 | rm -f conftest.$ac_objext | |
25881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25882 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25883 | ac_status=$? |
ac1cb8d3 VS |
25884 | grep -v '^ *+' conftest.er1 >conftest.err |
25885 | rm -f conftest.er1 | |
25886 | cat conftest.err >&5 | |
a848cd7e SC |
25887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25888 | (exit $ac_status); } && | |
f10e38c4 | 25889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25891 | (eval $ac_try) 2>&5 | |
25892 | ac_status=$? | |
25893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25894 | (exit $ac_status); }; } && | |
25895 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25897 | (eval $ac_try) 2>&5 | |
25898 | ac_status=$? | |
25899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25900 | (exit $ac_status); }; }; then | |
25901 | ac_header_compiler=yes | |
25902 | else | |
25903 | echo "$as_me: failed program was:" >&5 | |
25904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25905 | ||
25906 | ac_header_compiler=no | |
25907 | fi | |
ac1cb8d3 | 25908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25909 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25910 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25911 | ||
25912 | # Is the header present? | |
25913 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
25914 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
25915 | cat >conftest.$ac_ext <<_ACEOF | |
25916 | /* confdefs.h. */ | |
25917 | _ACEOF | |
25918 | cat confdefs.h >>conftest.$ac_ext | |
25919 | cat >>conftest.$ac_ext <<_ACEOF | |
25920 | /* end confdefs.h. */ | |
25921 | #include <windows.h> | |
25922 | _ACEOF | |
25923 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25924 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25925 | ac_status=$? | |
25926 | grep -v '^ *+' conftest.er1 >conftest.err | |
25927 | rm -f conftest.er1 | |
25928 | cat conftest.err >&5 | |
25929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25930 | (exit $ac_status); } >/dev/null; then | |
25931 | if test -s conftest.err; then | |
25932 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25933 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25934 | else |
25935 | ac_cpp_err= | |
25936 | fi | |
25937 | else | |
25938 | ac_cpp_err=yes | |
25939 | fi | |
25940 | if test -z "$ac_cpp_err"; then | |
25941 | ac_header_preproc=yes | |
25942 | else | |
25943 | echo "$as_me: failed program was:" >&5 | |
25944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25945 | ||
25946 | ac_header_preproc=no | |
25947 | fi | |
25948 | rm -f conftest.err conftest.$ac_ext | |
25949 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25950 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25951 | ||
25952 | # So? What about this header? | |
ac1cb8d3 VS |
25953 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25954 | yes:no: ) | |
a848cd7e SC |
25955 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25956 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25957 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
25958 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
25959 | ac_header_preproc=yes | |
a848cd7e | 25960 | ;; |
ac1cb8d3 | 25961 | no:yes:* ) |
a848cd7e SC |
25962 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
25963 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25964 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
25965 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
25966 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
25967 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
25968 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25969 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25970 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
25971 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25972 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
25973 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25974 | ( |
25975 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25976 | ## ----------------------------------------- ## |
25977 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25978 | ## ----------------------------------------- ## | |
a848cd7e SC |
25979 | _ASBOX |
25980 | ) | | |
25981 | sed "s/^/$as_me: WARNING: /" >&2 | |
25982 | ;; | |
25983 | esac | |
25984 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25985 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25986 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25988 | else | |
25989 | ac_cv_header_windows_h=$ac_header_preproc | |
25990 | fi | |
25991 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25992 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25993 | ||
25994 | fi | |
25995 | if test $ac_cv_header_windows_h = yes; then | |
25996 | : | |
25997 | else | |
25998 | ||
25999 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
26000 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
26001 | { (exit 1); exit 1; }; } | |
26002 | ||
26003 | fi | |
26004 | ||
26005 | ||
26006 | ||
26007 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
26008 | ||
26009 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
26010 | LIBS="$LIBS -loleacc" | |
26011 | fi | |
26012 | ||
26013 | case "${host}" in | |
26014 | *-*-cygwin* ) | |
26015 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
26016 | esac |
26017 | ||
26018 | if test "$wxUSE_ODBC" = "sys" ; then | |
26019 | wxUSE_ODBC = "yes" | |
26020 | fi | |
26021 | if test "$wxUSE_ODBC" = "yes" ; then | |
26022 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
26023 | cat >>confdefs.h <<\_ACEOF | |
26024 | #define wxUSE_ODBC 1 | |
26025 | _ACEOF | |
26026 | ||
26027 | fi | |
26028 | ||
370d2fd7 | 26029 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
26030 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
26031 | ||
004ee6da | 26032 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 26033 | |
a848cd7e SC |
26034 | WIN32INSTALL=win32install |
26035 | fi | |
26036 | ||
26037 | if test "$wxUSE_GUI" = "yes"; then | |
26038 | USE_GUI=1 | |
26039 | ||
26040 | GUI_TK_LIBRARY= | |
26041 | ||
26042 | WXGTK12= | |
26043 | WXGTK127= | |
26044 | WXGTK20= | |
26045 | WXGPE= | |
26046 | ||
207bc66c RN |
26047 | if test "$wxUSE_COCOA" = 1 ; then |
26048 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
26049 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
26050 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
26051 | wxUSE_PRINTING_ARCHITECTURE=no | |
26052 | fi | |
26053 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
26054 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
26055 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
26056 | wxUSE_DRAG_AND_DROP=no | |
26057 | fi | |
26058 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
26059 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
26060 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
26061 | wxUSE_DRAGIMAGE=no | |
26062 | fi | |
26063 | fi | |
26064 | ||
a848cd7e SC |
26065 | if test "$wxUSE_MSW" = 1 ; then |
26066 | TOOLKIT=MSW | |
26067 | GUIDIST=MSW_DIST | |
26068 | ||
ceec2216 | 26069 | case "${host}" in |
a848cd7e SC |
26070 | *-*-mingw32* ) |
26071 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
26072 | esac | |
26073 | fi | |
26074 | ||
26075 | if test "$wxUSE_GTK" = 1; then | |
26076 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
26077 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
26078 | ||
26079 | gtk_version_cached=1 | |
26080 | if test "${wx_cv_lib_gtk+set}" = set; then | |
26081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26082 | else | |
26083 | ||
26084 | gtk_version_cached=0 | |
26085 | echo "$as_me:$LINENO: result: " >&5 | |
26086 | echo "${ECHO_T}" >&6 | |
26087 | ||
26088 | GTK_MODULES= | |
26089 | if test "$wxUSE_THREADS" = "yes"; then | |
26090 | GTK_MODULES=gthread | |
26091 | fi | |
26092 | ||
f597b41c | 26093 | wx_cv_lib_gtk= |
5001df0d MW |
26094 | if test "x$wxGTK_VERSION" != "x1" |
26095 | then | |
26096 | case "${host}" in | |
26097 | *-*-solaris2* ) | |
26098 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 26099 | enable_gtktest=no |
5001df0d MW |
26100 | fi |
26101 | esac | |
26102 | ||
a848cd7e SC |
26103 | # Check whether --enable-gtktest or --disable-gtktest was given. |
26104 | if test "${enable_gtktest+set}" = set; then | |
26105 | enableval="$enable_gtktest" | |
26106 | ||
26107 | else | |
26108 | enable_gtktest=yes | |
26109 | fi; | |
26110 | ||
26111 | pkg_config_args=gtk+-2.0 | |
26112 | for module in . $GTK_MODULES | |
26113 | do | |
26114 | case "$module" in | |
26115 | gthread) | |
26116 | pkg_config_args="$pkg_config_args gthread-2.0" | |
26117 | ;; | |
26118 | esac | |
26119 | done | |
26120 | ||
26121 | no_gtk="" | |
26122 | ||
26123 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26124 | set dummy pkg-config; ac_word=$2 | |
26125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26127 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26129 | else | |
26130 | case $PKG_CONFIG in | |
26131 | [\\/]* | ?:[\\/]*) | |
26132 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26133 | ;; | |
26134 | *) | |
26135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26136 | for as_dir in $PATH | |
26137 | do | |
26138 | IFS=$as_save_IFS | |
26139 | test -z "$as_dir" && as_dir=. | |
26140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26141 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26142 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26144 | break 2 | |
26145 | fi | |
26146 | done | |
26147 | done | |
26148 | ||
26149 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26150 | ;; | |
26151 | esac | |
26152 | fi | |
26153 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26154 | ||
26155 | if test -n "$PKG_CONFIG"; then | |
26156 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26157 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26158 | else | |
26159 | echo "$as_me:$LINENO: result: no" >&5 | |
26160 | echo "${ECHO_T}no" >&6 | |
26161 | fi | |
26162 | ||
26163 | ||
26164 | if test x$PKG_CONFIG != xno ; then | |
26165 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
26166 | : | |
26167 | else | |
c2218763 | 26168 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
26169 | no_gtk=yes |
26170 | PKG_CONFIG=no | |
26171 | fi | |
26172 | else | |
26173 | no_gtk=yes | |
26174 | fi | |
26175 | ||
26176 | min_gtk_version=2.0.0 | |
26177 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
26178 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
26179 | ||
26180 | if test x$PKG_CONFIG != xno ; then | |
26181 | ## don't try to run the test against uninstalled libtool libs | |
26182 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
26183 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
26184 | enable_gtktest=no | |
26185 | fi | |
26186 | ||
26187 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
26188 | : | |
26189 | else | |
26190 | no_gtk=yes | |
26191 | fi | |
26192 | fi | |
26193 | ||
26194 | if test x"$no_gtk" = x ; then | |
26195 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
26196 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
26197 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26198 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26199 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26200 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26201 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26202 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26203 | if test "x$enable_gtktest" = "xyes" ; then | |
26204 | ac_save_CFLAGS="$CFLAGS" | |
26205 | ac_save_LIBS="$LIBS" | |
26206 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26207 | LIBS="$GTK_LIBS $LIBS" | |
26208 | rm -f conf.gtktest | |
26209 | if test "$cross_compiling" = yes; then | |
26210 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26211 | else | |
26212 | cat >conftest.$ac_ext <<_ACEOF | |
26213 | /* confdefs.h. */ | |
26214 | _ACEOF | |
26215 | cat confdefs.h >>conftest.$ac_ext | |
26216 | cat >>conftest.$ac_ext <<_ACEOF | |
26217 | /* end confdefs.h. */ | |
26218 | ||
26219 | #include <gtk/gtk.h> | |
26220 | #include <stdio.h> | |
26221 | #include <stdlib.h> | |
26222 | ||
26223 | int | |
26224 | main () | |
26225 | { | |
26226 | int major, minor, micro; | |
26227 | char *tmp_version; | |
26228 | ||
26229 | system ("touch conf.gtktest"); | |
26230 | ||
26231 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26232 | tmp_version = g_strdup("$min_gtk_version"); | |
26233 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26234 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26235 | exit(1); | |
26236 | } | |
26237 | ||
26238 | if ((gtk_major_version != $gtk_config_major_version) || | |
26239 | (gtk_minor_version != $gtk_config_minor_version) || | |
26240 | (gtk_micro_version != $gtk_config_micro_version)) | |
26241 | { | |
26242 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26243 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26244 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26245 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
26246 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26247 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26248 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26249 | printf("*** required on your system.\n"); | |
26250 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
26251 | printf("*** to point to the correct configuration files\n"); | |
26252 | } | |
26253 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26254 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26255 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26256 | { | |
26257 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26258 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26259 | printf("*** library (version %d.%d.%d)\n", | |
26260 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26261 | } | |
26262 | else | |
26263 | { | |
26264 | if ((gtk_major_version > major) || | |
26265 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26266 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26267 | { | |
26268 | return 0; | |
26269 | } | |
26270 | else | |
26271 | { | |
26272 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26273 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26274 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26275 | major, minor, micro); | |
26276 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26277 | printf("***\n"); | |
26278 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26279 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
26280 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26281 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
26282 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
26283 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26284 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26285 | } | |
26286 | } | |
26287 | return 1; | |
26288 | } | |
26289 | ||
26290 | _ACEOF | |
26291 | rm -f conftest$ac_exeext | |
26292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26293 | (eval $ac_link) 2>&5 | |
26294 | ac_status=$? | |
26295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26296 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26298 | (eval $ac_try) 2>&5 | |
26299 | ac_status=$? | |
26300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26301 | (exit $ac_status); }; }; then | |
26302 | : | |
26303 | else | |
26304 | echo "$as_me: program exited with status $ac_status" >&5 | |
26305 | echo "$as_me: failed program was:" >&5 | |
26306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26307 | ||
26308 | ( exit $ac_status ) | |
26309 | no_gtk=yes | |
26310 | fi | |
ac1cb8d3 | 26311 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26312 | fi |
26313 | CFLAGS="$ac_save_CFLAGS" | |
26314 | LIBS="$ac_save_LIBS" | |
26315 | fi | |
26316 | fi | |
26317 | if test "x$no_gtk" = x ; then | |
26318 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
26319 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
26320 | wx_cv_lib_gtk=2.0 | |
26321 | else | |
26322 | echo "$as_me:$LINENO: result: no" >&5 | |
26323 | echo "${ECHO_T}no" >&6 | |
26324 | if test "$PKG_CONFIG" = "no" ; then | |
26325 | echo "*** A new enough version of pkg-config was not found." | |
26326 | echo "*** See http://pkgconfig.sourceforge.net" | |
26327 | else | |
26328 | if test -f conf.gtktest ; then | |
26329 | : | |
26330 | else | |
26331 | echo "*** Could not run GTK+ test program, checking why..." | |
26332 | ac_save_CFLAGS="$CFLAGS" | |
26333 | ac_save_LIBS="$LIBS" | |
26334 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26335 | LIBS="$LIBS $GTK_LIBS" | |
26336 | cat >conftest.$ac_ext <<_ACEOF | |
26337 | /* confdefs.h. */ | |
26338 | _ACEOF | |
26339 | cat confdefs.h >>conftest.$ac_ext | |
26340 | cat >>conftest.$ac_ext <<_ACEOF | |
26341 | /* end confdefs.h. */ | |
26342 | ||
26343 | #include <gtk/gtk.h> | |
26344 | #include <stdio.h> | |
26345 | ||
26346 | int | |
26347 | main () | |
26348 | { | |
26349 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26350 | ; | |
26351 | return 0; | |
26352 | } | |
26353 | _ACEOF | |
26354 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26356 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26357 | ac_status=$? |
ac1cb8d3 VS |
26358 | grep -v '^ *+' conftest.er1 >conftest.err |
26359 | rm -f conftest.er1 | |
26360 | cat conftest.err >&5 | |
a848cd7e SC |
26361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26362 | (exit $ac_status); } && | |
f10e38c4 | 26363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26365 | (eval $ac_try) 2>&5 | |
26366 | ac_status=$? | |
26367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26368 | (exit $ac_status); }; } && | |
26369 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26371 | (eval $ac_try) 2>&5 | |
26372 | ac_status=$? | |
26373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26374 | (exit $ac_status); }; }; then | |
26375 | echo "*** The test program compiled, but did not run. This usually means" | |
26376 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
26377 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
26378 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26379 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26380 | echo "*** is required on your system" | |
26381 | echo "***" | |
26382 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26383 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26384 | else | |
26385 | echo "$as_me: failed program was:" >&5 | |
26386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26387 | ||
26388 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26389 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
26390 | fi | |
ac1cb8d3 VS |
26391 | rm -f conftest.err conftest.$ac_objext \ |
26392 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26393 | CFLAGS="$ac_save_CFLAGS" |
26394 | LIBS="$ac_save_LIBS" | |
26395 | fi | |
26396 | fi | |
26397 | GTK_CFLAGS="" | |
26398 | GTK_LIBS="" | |
26399 | : | |
26400 | fi | |
26401 | ||
26402 | ||
26403 | rm -f conf.gtktest | |
26404 | ||
5001df0d MW |
26405 | |
26406 | case "${host}" in | |
26407 | *-*-solaris2* ) | |
26408 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
26409 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
26410 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
26411 | fi | |
26412 | if test "$wxUSE_SHARED" != "yes"; then | |
26413 | GTK_LIBS="$GTK_LIBS -lX11" | |
26414 | fi | |
26415 | esac | |
f597b41c MW |
26416 | fi |
26417 | ||
f34ca037 MW |
26418 | if test -z "$wx_cv_lib_gtk"; then |
26419 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
26420 | |
26421 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26422 | if test "${with_gtk_prefix+set}" = set; then | |
26423 | withval="$with_gtk_prefix" | |
26424 | gtk_config_prefix="$withval" | |
26425 | else | |
26426 | gtk_config_prefix="" | |
26427 | fi; | |
26428 | ||
26429 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26430 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26431 | withval="$with_gtk_exec_prefix" | |
26432 | gtk_config_exec_prefix="$withval" | |
26433 | else | |
26434 | gtk_config_exec_prefix="" | |
26435 | fi; | |
26436 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26437 | if test "${enable_gtktest+set}" = set; then | |
26438 | enableval="$enable_gtktest" | |
26439 | ||
26440 | else | |
26441 | enable_gtktest=yes | |
26442 | fi; | |
26443 | ||
26444 | for module in . $GTK_MODULES | |
26445 | do | |
26446 | case "$module" in | |
26447 | gthread) | |
26448 | gtk_config_args="$gtk_config_args gthread" | |
26449 | ;; | |
26450 | esac | |
26451 | done | |
26452 | ||
26453 | if test x$gtk_config_exec_prefix != x ; then | |
26454 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26455 | if test x${GTK_CONFIG+set} != xset ; then | |
26456 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26457 | fi | |
26458 | fi | |
26459 | if test x$gtk_config_prefix != x ; then | |
26460 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26461 | if test x${GTK_CONFIG+set} != xset ; then | |
26462 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26463 | fi | |
26464 | fi | |
26465 | ||
26466 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26467 | set dummy gtk-config; ac_word=$2 | |
26468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26470 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26472 | else | |
26473 | case $GTK_CONFIG in | |
26474 | [\\/]* | ?:[\\/]*) | |
26475 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26476 | ;; | |
26477 | *) | |
26478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26479 | for as_dir in $PATH | |
26480 | do | |
26481 | IFS=$as_save_IFS | |
26482 | test -z "$as_dir" && as_dir=. | |
26483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26485 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26487 | break 2 | |
26488 | fi | |
26489 | done | |
26490 | done | |
26491 | ||
26492 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26493 | ;; | |
26494 | esac | |
26495 | fi | |
26496 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26497 | ||
26498 | if test -n "$GTK_CONFIG"; then | |
26499 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26500 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26501 | else | |
26502 | echo "$as_me:$LINENO: result: no" >&5 | |
26503 | echo "${ECHO_T}no" >&6 | |
26504 | fi | |
26505 | ||
26506 | min_gtk_version=1.2.7 | |
26507 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26508 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26509 | no_gtk="" | |
26510 | if test "$GTK_CONFIG" = "no" ; then | |
26511 | no_gtk=yes | |
26512 | else | |
26513 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26514 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26515 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26516 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26517 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26518 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26519 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26520 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26521 | if test "x$enable_gtktest" = "xyes" ; then | |
26522 | ac_save_CFLAGS="$CFLAGS" | |
26523 | ac_save_LIBS="$LIBS" | |
26524 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26525 | LIBS="$GTK_LIBS $LIBS" | |
26526 | rm -f conf.gtktest | |
26527 | if test "$cross_compiling" = yes; then | |
26528 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26529 | else | |
26530 | cat >conftest.$ac_ext <<_ACEOF | |
26531 | /* confdefs.h. */ | |
26532 | _ACEOF | |
26533 | cat confdefs.h >>conftest.$ac_ext | |
26534 | cat >>conftest.$ac_ext <<_ACEOF | |
26535 | /* end confdefs.h. */ | |
26536 | ||
26537 | #include <gtk/gtk.h> | |
26538 | #include <stdio.h> | |
26539 | #include <stdlib.h> | |
26540 | ||
26541 | int | |
26542 | main () | |
26543 | { | |
26544 | int major, minor, micro; | |
26545 | char *tmp_version; | |
26546 | ||
26547 | system ("touch conf.gtktest"); | |
26548 | ||
26549 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26550 | tmp_version = g_strdup("$min_gtk_version"); | |
26551 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26552 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26553 | exit(1); | |
26554 | } | |
26555 | ||
26556 | if ((gtk_major_version != $gtk_config_major_version) || | |
26557 | (gtk_minor_version != $gtk_config_minor_version) || | |
26558 | (gtk_micro_version != $gtk_config_micro_version)) | |
26559 | { | |
26560 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26561 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26562 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26563 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26564 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26565 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26566 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26567 | printf("*** required on your system.\n"); | |
26568 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26569 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26570 | printf("*** before re-running configure\n"); | |
26571 | } | |
26572 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26573 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26574 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26575 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26576 | { | |
26577 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26578 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26579 | printf("*** library (version %d.%d.%d)\n", | |
26580 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26581 | } | |
26582 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26583 | else | |
26584 | { | |
26585 | if ((gtk_major_version > major) || | |
26586 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26587 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26588 | { | |
26589 | return 0; | |
26590 | } | |
26591 | else | |
26592 | { | |
26593 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26594 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26595 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26596 | major, minor, micro); | |
26597 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26598 | printf("***\n"); | |
26599 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26600 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26601 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26602 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26603 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26604 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26605 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26606 | } | |
26607 | } | |
26608 | return 1; | |
26609 | } | |
26610 | ||
26611 | _ACEOF | |
26612 | rm -f conftest$ac_exeext | |
26613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26614 | (eval $ac_link) 2>&5 | |
26615 | ac_status=$? | |
26616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26619 | (eval $ac_try) 2>&5 | |
26620 | ac_status=$? | |
26621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26622 | (exit $ac_status); }; }; then | |
26623 | : | |
26624 | else | |
26625 | echo "$as_me: program exited with status $ac_status" >&5 | |
26626 | echo "$as_me: failed program was:" >&5 | |
26627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26628 | ||
26629 | ( exit $ac_status ) | |
26630 | no_gtk=yes | |
26631 | fi | |
ac1cb8d3 | 26632 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26633 | fi |
26634 | CFLAGS="$ac_save_CFLAGS" | |
26635 | LIBS="$ac_save_LIBS" | |
26636 | fi | |
26637 | fi | |
26638 | if test "x$no_gtk" = x ; then | |
26639 | echo "$as_me:$LINENO: result: yes" >&5 | |
26640 | echo "${ECHO_T}yes" >&6 | |
26641 | wx_cv_lib_gtk=1.2.7 | |
26642 | else | |
26643 | echo "$as_me:$LINENO: result: no" >&5 | |
26644 | echo "${ECHO_T}no" >&6 | |
26645 | if test "$GTK_CONFIG" = "no" ; then | |
26646 | echo "*** The gtk-config script installed by GTK could not be found" | |
26647 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26648 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26649 | echo "*** full path to gtk-config." | |
26650 | else | |
26651 | if test -f conf.gtktest ; then | |
26652 | : | |
26653 | else | |
26654 | echo "*** Could not run GTK test program, checking why..." | |
26655 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26656 | LIBS="$LIBS $GTK_LIBS" | |
26657 | cat >conftest.$ac_ext <<_ACEOF | |
26658 | /* confdefs.h. */ | |
26659 | _ACEOF | |
26660 | cat confdefs.h >>conftest.$ac_ext | |
26661 | cat >>conftest.$ac_ext <<_ACEOF | |
26662 | /* end confdefs.h. */ | |
26663 | ||
26664 | #include <gtk/gtk.h> | |
26665 | #include <stdio.h> | |
26666 | ||
26667 | int | |
26668 | main () | |
26669 | { | |
26670 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26671 | ; | |
26672 | return 0; | |
26673 | } | |
26674 | _ACEOF | |
26675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26677 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26678 | ac_status=$? |
ac1cb8d3 VS |
26679 | grep -v '^ *+' conftest.er1 >conftest.err |
26680 | rm -f conftest.er1 | |
26681 | cat conftest.err >&5 | |
a848cd7e SC |
26682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26683 | (exit $ac_status); } && | |
f10e38c4 | 26684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26686 | (eval $ac_try) 2>&5 | |
26687 | ac_status=$? | |
26688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26689 | (exit $ac_status); }; } && | |
26690 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26692 | (eval $ac_try) 2>&5 | |
26693 | ac_status=$? | |
26694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26695 | (exit $ac_status); }; }; then | |
26696 | echo "*** The test program compiled, but did not run. This usually means" | |
26697 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
26698 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
26699 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26700 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26701 | echo "*** is required on your system" | |
26702 | echo "***" | |
26703 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26704 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26705 | echo "***" | |
26706 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
26707 | echo "*** came with the system with the command" | |
26708 | echo "***" | |
26709 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
26710 | else | |
26711 | echo "$as_me: failed program was:" >&5 | |
26712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26713 | ||
26714 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26715 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
26716 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
26717 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
26718 | fi | |
ac1cb8d3 VS |
26719 | rm -f conftest.err conftest.$ac_objext \ |
26720 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26721 | CFLAGS="$ac_save_CFLAGS" |
26722 | LIBS="$ac_save_LIBS" | |
26723 | fi | |
26724 | fi | |
26725 | GTK_CFLAGS="" | |
26726 | GTK_LIBS="" | |
26727 | : | |
26728 | fi | |
26729 | ||
26730 | ||
26731 | rm -f conf.gtktest | |
26732 | ||
26733 | ||
f34ca037 | 26734 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
26735 | |
26736 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26737 | if test "${with_gtk_prefix+set}" = set; then | |
26738 | withval="$with_gtk_prefix" | |
26739 | gtk_config_prefix="$withval" | |
26740 | else | |
26741 | gtk_config_prefix="" | |
26742 | fi; | |
26743 | ||
26744 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26745 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26746 | withval="$with_gtk_exec_prefix" | |
26747 | gtk_config_exec_prefix="$withval" | |
26748 | else | |
26749 | gtk_config_exec_prefix="" | |
26750 | fi; | |
26751 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26752 | if test "${enable_gtktest+set}" = set; then | |
26753 | enableval="$enable_gtktest" | |
26754 | ||
26755 | else | |
26756 | enable_gtktest=yes | |
26757 | fi; | |
26758 | ||
26759 | for module in . $GTK_MODULES | |
26760 | do | |
26761 | case "$module" in | |
26762 | gthread) | |
26763 | gtk_config_args="$gtk_config_args gthread" | |
26764 | ;; | |
26765 | esac | |
26766 | done | |
26767 | ||
26768 | if test x$gtk_config_exec_prefix != x ; then | |
26769 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26770 | if test x${GTK_CONFIG+set} != xset ; then | |
26771 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26772 | fi | |
26773 | fi | |
26774 | if test x$gtk_config_prefix != x ; then | |
26775 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26776 | if test x${GTK_CONFIG+set} != xset ; then | |
26777 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26778 | fi | |
26779 | fi | |
26780 | ||
26781 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26782 | set dummy gtk-config; ac_word=$2 | |
26783 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26785 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26787 | else | |
26788 | case $GTK_CONFIG in | |
26789 | [\\/]* | ?:[\\/]*) | |
26790 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26791 | ;; | |
26792 | *) | |
26793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26794 | for as_dir in $PATH | |
26795 | do | |
26796 | IFS=$as_save_IFS | |
26797 | test -z "$as_dir" && as_dir=. | |
26798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26799 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26800 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26801 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26802 | break 2 | |
26803 | fi | |
26804 | done | |
26805 | done | |
26806 | ||
26807 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26808 | ;; | |
26809 | esac | |
26810 | fi | |
26811 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26812 | ||
26813 | if test -n "$GTK_CONFIG"; then | |
26814 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26815 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26816 | else | |
26817 | echo "$as_me:$LINENO: result: no" >&5 | |
26818 | echo "${ECHO_T}no" >&6 | |
26819 | fi | |
26820 | ||
26821 | min_gtk_version=1.2.3 | |
26822 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26823 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26824 | no_gtk="" | |
26825 | if test "$GTK_CONFIG" = "no" ; then | |
26826 | no_gtk=yes | |
26827 | else | |
26828 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26829 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26830 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26831 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26832 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26833 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26834 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26835 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26836 | if test "x$enable_gtktest" = "xyes" ; then | |
26837 | ac_save_CFLAGS="$CFLAGS" | |
26838 | ac_save_LIBS="$LIBS" | |
26839 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26840 | LIBS="$GTK_LIBS $LIBS" | |
26841 | rm -f conf.gtktest | |
26842 | if test "$cross_compiling" = yes; then | |
26843 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26844 | else | |
26845 | cat >conftest.$ac_ext <<_ACEOF | |
26846 | /* confdefs.h. */ | |
26847 | _ACEOF | |
26848 | cat confdefs.h >>conftest.$ac_ext | |
26849 | cat >>conftest.$ac_ext <<_ACEOF | |
26850 | /* end confdefs.h. */ | |
26851 | ||
26852 | #include <gtk/gtk.h> | |
26853 | #include <stdio.h> | |
26854 | #include <stdlib.h> | |
26855 | ||
26856 | int | |
26857 | main () | |
26858 | { | |
26859 | int major, minor, micro; | |
26860 | char *tmp_version; | |
26861 | ||
26862 | system ("touch conf.gtktest"); | |
26863 | ||
26864 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26865 | tmp_version = g_strdup("$min_gtk_version"); | |
26866 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26867 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26868 | exit(1); | |
26869 | } | |
26870 | ||
26871 | if ((gtk_major_version != $gtk_config_major_version) || | |
26872 | (gtk_minor_version != $gtk_config_minor_version) || | |
26873 | (gtk_micro_version != $gtk_config_micro_version)) | |
26874 | { | |
26875 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26876 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26877 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26878 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26879 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26880 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26881 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26882 | printf("*** required on your system.\n"); | |
26883 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26884 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26885 | printf("*** before re-running configure\n"); | |
26886 | } | |
26887 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26888 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26889 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26890 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26891 | { | |
26892 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26893 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26894 | printf("*** library (version %d.%d.%d)\n", | |
26895 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26896 | } | |
26897 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26898 | else | |
26899 | { | |
26900 | if ((gtk_major_version > major) || | |
26901 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26902 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26903 | { | |
26904 | return 0; | |
26905 | } | |
26906 | else | |
26907 | { | |
26908 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26909 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26910 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26911 | major, minor, micro); | |
26912 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26913 | printf("***\n"); | |
26914 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26915 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26916 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26917 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26918 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26919 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26920 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26921 | } | |
26922 | } | |
26923 | return 1; | |
26924 | } | |
26925 | ||
26926 | _ACEOF | |
26927 | rm -f conftest$ac_exeext | |
26928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26929 | (eval $ac_link) 2>&5 | |
26930 | ac_status=$? | |
26931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26932 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26934 | (eval $ac_try) 2>&5 | |
26935 | ac_status=$? | |
26936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26937 | (exit $ac_status); }; }; then | |
26938 | : | |
26939 | else | |
26940 | echo "$as_me: program exited with status $ac_status" >&5 | |
26941 | echo "$as_me: failed program was:" >&5 | |
26942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26943 | ||
26944 | ( exit $ac_status ) | |
26945 | no_gtk=yes | |
26946 | fi | |
ac1cb8d3 | 26947 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26948 | fi |
26949 | CFLAGS="$ac_save_CFLAGS" | |
26950 | LIBS="$ac_save_LIBS" | |
26951 | fi | |
26952 | fi | |
26953 | if test "x$no_gtk" = x ; then | |
26954 | echo "$as_me:$LINENO: result: yes" >&5 | |
26955 | echo "${ECHO_T}yes" >&6 | |
26956 | wx_cv_lib_gtk=1.2.3 | |
26957 | else | |
26958 | echo "$as_me:$LINENO: result: no" >&5 | |
26959 | echo "${ECHO_T}no" >&6 | |
26960 | if test "$GTK_CONFIG" = "no" ; then | |
26961 | echo "*** The gtk-config script installed by GTK could not be found" | |
26962 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26963 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26964 | echo "*** full path to gtk-config." | |
26965 | else | |
26966 | if test -f conf.gtktest ; then | |
26967 | : | |
26968 | else | |
26969 | echo "*** Could not run GTK test program, checking why..." | |
26970 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26971 | LIBS="$LIBS $GTK_LIBS" | |
26972 | cat >conftest.$ac_ext <<_ACEOF | |
26973 | /* confdefs.h. */ | |
26974 | _ACEOF | |
26975 | cat confdefs.h >>conftest.$ac_ext | |
26976 | cat >>conftest.$ac_ext <<_ACEOF | |
26977 | /* end confdefs.h. */ | |
26978 | ||
26979 | #include <gtk/gtk.h> | |
26980 | #include <stdio.h> | |
26981 | ||
26982 | int | |
26983 | main () | |
26984 | { | |
26985 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26986 | ; | |
26987 | return 0; | |
26988 | } | |
26989 | _ACEOF | |
26990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26992 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26993 | ac_status=$? |
ac1cb8d3 VS |
26994 | grep -v '^ *+' conftest.er1 >conftest.err |
26995 | rm -f conftest.er1 | |
26996 | cat conftest.err >&5 | |
a848cd7e SC |
26997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26998 | (exit $ac_status); } && | |
f10e38c4 | 26999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27001 | (eval $ac_try) 2>&5 | |
27002 | ac_status=$? | |
27003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27004 | (exit $ac_status); }; } && | |
27005 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27007 | (eval $ac_try) 2>&5 | |
27008 | ac_status=$? | |
27009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27010 | (exit $ac_status); }; }; then | |
27011 | echo "*** The test program compiled, but did not run. This usually means" | |
27012 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27013 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27014 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27015 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27016 | echo "*** is required on your system" | |
27017 | echo "***" | |
27018 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27019 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27020 | echo "***" | |
27021 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27022 | echo "*** came with the system with the command" | |
27023 | echo "***" | |
27024 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27025 | else | |
27026 | echo "$as_me: failed program was:" >&5 | |
27027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27028 | ||
27029 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27030 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27031 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27032 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27033 | fi | |
ac1cb8d3 VS |
27034 | rm -f conftest.err conftest.$ac_objext \ |
27035 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27036 | CFLAGS="$ac_save_CFLAGS" |
27037 | LIBS="$ac_save_LIBS" | |
27038 | fi | |
27039 | fi | |
27040 | GTK_CFLAGS="" | |
27041 | GTK_LIBS="" | |
27042 | : | |
27043 | fi | |
27044 | ||
27045 | ||
27046 | rm -f conf.gtktest | |
27047 | ||
f34ca037 | 27048 | fi |
a848cd7e SC |
27049 | fi |
27050 | fi | |
27051 | ||
27052 | if test -z "$wx_cv_lib_gtk"; then | |
27053 | wx_cv_lib_gtk=none | |
27054 | else | |
27055 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 27056 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
27057 | fi |
27058 | ||
27059 | ||
27060 | fi | |
27061 | ||
27062 | ||
27063 | if test "$gtk_version_cached" = 1; then | |
27064 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
27065 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
27066 | fi | |
27067 | ||
27068 | case "$wx_cv_lib_gtk" in | |
27069 | 2.0) WXGTK20=1 | |
27070 | TOOLKIT_VERSION=2 | |
27071 | ;; | |
27072 | 1.2.7) WXGTK127=1 | |
27073 | WXGTK12=1 | |
27074 | ;; | |
27075 | 1.2.3) WXGTK12=1 | |
27076 | ;; | |
27077 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
27078 | The development files for GTK+ were not found. For GTK+ 2, please |
27079 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27080 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27081 | and that the version is 1.2.3 or above. Also check that the | |
27082 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27083 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27084 | " >&5 |
27085 | echo "$as_me: error: | |
f597b41c MW |
27086 | The development files for GTK+ were not found. For GTK+ 2, please |
27087 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27088 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27089 | and that the version is 1.2.3 or above. Also check that the | |
27090 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27091 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27092 | " >&2;} |
27093 | { (exit 1); exit 1; }; } | |
27094 | ;; | |
27095 | esac | |
27096 | ||
27097 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
27098 | save_CFLAGS="$CFLAGS" |
27099 | save_LIBS="$LIBS" | |
c92ad099 | 27100 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 27101 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 27102 | |
d12aef51 VZ |
27103 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
27104 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
27105 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
27106 | /* confdefs.h. */ |
27107 | _ACEOF | |
27108 | cat confdefs.h >>conftest.$ac_ext | |
27109 | cat >>conftest.$ac_ext <<_ACEOF | |
27110 | /* end confdefs.h. */ | |
304205f1 | 27111 | |
d12aef51 | 27112 | #include <gtk/gtk.h> |
304205f1 | 27113 | |
d12aef51 VZ |
27114 | int |
27115 | main () | |
27116 | { | |
304205f1 | 27117 | |
d12aef51 | 27118 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
27119 | |
27120 | ; | |
27121 | return 0; | |
27122 | } | |
27123 | _ACEOF | |
27124 | rm -f conftest.$ac_objext | |
27125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27126 | (eval $ac_compile) 2>conftest.er1 | |
27127 | ac_status=$? | |
27128 | grep -v '^ *+' conftest.er1 >conftest.err | |
27129 | rm -f conftest.er1 | |
27130 | cat conftest.err >&5 | |
27131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27132 | (exit $ac_status); } && | |
f10e38c4 | 27133 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
27134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27135 | (eval $ac_try) 2>&5 | |
27136 | ac_status=$? | |
27137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27138 | (exit $ac_status); }; } && | |
27139 | { ac_try='test -s conftest.$ac_objext' | |
27140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27141 | (eval $ac_try) 2>&5 | |
27142 | ac_status=$? | |
27143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27144 | (exit $ac_status); }; }; then | |
27145 | ||
27146 | echo "$as_me:$LINENO: result: no" >&5 | |
27147 | echo "${ECHO_T}no" >&6 | |
27148 | ||
27149 | else | |
27150 | echo "$as_me: failed program was:" >&5 | |
27151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27152 | ||
27153 | ||
27154 | cat >>confdefs.h <<\_ACEOF | |
27155 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
27156 | _ACEOF | |
27157 | ||
27158 | echo "$as_me:$LINENO: result: yes" >&5 | |
27159 | echo "${ECHO_T}yes" >&6 | |
27160 | ||
27161 | fi | |
27162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27163 | ||
9755e73b VS |
27164 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
27165 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
27166 | cat >conftest.$ac_ext <<_ACEOF | |
27167 | /* confdefs.h. */ | |
27168 | _ACEOF | |
27169 | cat confdefs.h >>conftest.$ac_ext | |
27170 | cat >>conftest.$ac_ext <<_ACEOF | |
27171 | /* end confdefs.h. */ | |
27172 | ||
27173 | #include <gtk/gtk.h> | |
27174 | ||
27175 | int | |
27176 | main () | |
27177 | { | |
27178 | ||
27179 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 27180 | Not GTK+ 2.4 |
9755e73b VS |
27181 | #endif |
27182 | ||
27183 | ; | |
27184 | return 0; | |
27185 | } | |
27186 | _ACEOF | |
27187 | rm -f conftest.$ac_objext | |
27188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27189 | (eval $ac_compile) 2>conftest.er1 | |
27190 | ac_status=$? | |
27191 | grep -v '^ *+' conftest.er1 >conftest.err | |
27192 | rm -f conftest.er1 | |
27193 | cat conftest.err >&5 | |
27194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27195 | (exit $ac_status); } && | |
f10e38c4 | 27196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
27197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27198 | (eval $ac_try) 2>&5 | |
27199 | ac_status=$? | |
27200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27201 | (exit $ac_status); }; } && | |
27202 | { ac_try='test -s conftest.$ac_objext' | |
27203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27204 | (eval $ac_try) 2>&5 | |
27205 | ac_status=$? | |
27206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27207 | (exit $ac_status); }; }; then | |
27208 | ||
27209 | cat >>confdefs.h <<\_ACEOF | |
27210 | #define __WXGTK24__ 1 | |
27211 | _ACEOF | |
27212 | ||
27213 | echo "$as_me:$LINENO: result: yes" >&5 | |
27214 | echo "${ECHO_T}yes" >&6 | |
27215 | ||
27216 | else | |
27217 | echo "$as_me: failed program was:" >&5 | |
27218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27219 | ||
27220 | ||
27221 | echo "$as_me:$LINENO: result: no" >&5 | |
27222 | echo "${ECHO_T}no" >&6 | |
27223 | ||
27224 | fi | |
27225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27226 | ||
304205f1 VS |
27227 | CFLAGS="$save_CFLAGS" |
27228 | LIBS="$save_LIBS" | |
a848cd7e SC |
27229 | else |
27230 | if test "$wxUSE_UNICODE" = "yes"; then | |
27231 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
27232 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
27233 | wxUSE_UNICODE=no | |
27234 | fi | |
27235 | fi | |
27236 | ||
27237 | if test "$USE_DARWIN" != 1; then | |
27238 | ||
27239 | for ac_func in poll | |
27240 | do | |
27241 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27242 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27244 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27246 | else | |
27247 | cat >conftest.$ac_ext <<_ACEOF | |
27248 | /* confdefs.h. */ | |
27249 | _ACEOF | |
27250 | cat confdefs.h >>conftest.$ac_ext | |
27251 | cat >>conftest.$ac_ext <<_ACEOF | |
27252 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27253 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
27254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27255 | #define $ac_func innocuous_$ac_func | |
27256 | ||
a848cd7e SC |
27257 | /* System header to define __stub macros and hopefully few prototypes, |
27258 | which can conflict with char $ac_func (); below. | |
27259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27260 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27261 | |
a848cd7e SC |
27262 | #ifdef __STDC__ |
27263 | # include <limits.h> | |
27264 | #else | |
27265 | # include <assert.h> | |
27266 | #endif | |
ac1cb8d3 VS |
27267 | |
27268 | #undef $ac_func | |
27269 | ||
a848cd7e SC |
27270 | /* Override any gcc2 internal prototype to avoid an error. */ |
27271 | #ifdef __cplusplus | |
27272 | extern "C" | |
27273 | { | |
27274 | #endif | |
27275 | /* We use char because int might match the return type of a gcc2 | |
27276 | builtin and then its argument prototype would still apply. */ | |
27277 | char $ac_func (); | |
27278 | /* The GNU C library defines this for functions which it implements | |
27279 | to always fail with ENOSYS. Some functions are actually named | |
27280 | something starting with __ and the normal name is an alias. */ | |
27281 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27282 | choke me | |
27283 | #else | |
27284 | char (*f) () = $ac_func; | |
27285 | #endif | |
27286 | #ifdef __cplusplus | |
27287 | } | |
27288 | #endif | |
27289 | ||
27290 | int | |
27291 | main () | |
27292 | { | |
27293 | return f != $ac_func; | |
27294 | ; | |
27295 | return 0; | |
27296 | } | |
27297 | _ACEOF | |
27298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27300 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27301 | ac_status=$? |
ac1cb8d3 VS |
27302 | grep -v '^ *+' conftest.er1 >conftest.err |
27303 | rm -f conftest.er1 | |
27304 | cat conftest.err >&5 | |
a848cd7e SC |
27305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27306 | (exit $ac_status); } && | |
f10e38c4 | 27307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27309 | (eval $ac_try) 2>&5 | |
27310 | ac_status=$? | |
27311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27312 | (exit $ac_status); }; } && | |
27313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27315 | (eval $ac_try) 2>&5 | |
27316 | ac_status=$? | |
27317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27318 | (exit $ac_status); }; }; then | |
27319 | eval "$as_ac_var=yes" | |
27320 | else | |
27321 | echo "$as_me: failed program was:" >&5 | |
27322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27323 | ||
27324 | eval "$as_ac_var=no" | |
27325 | fi | |
ac1cb8d3 VS |
27326 | rm -f conftest.err conftest.$ac_objext \ |
27327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27328 | fi |
27329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27330 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27331 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27332 | cat >>confdefs.h <<_ACEOF | |
27333 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27334 | _ACEOF | |
27335 | ||
27336 | fi | |
27337 | done | |
27338 | ||
27339 | fi | |
27340 | ||
27341 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
27342 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
27343 | ||
27344 | AFMINSTALL=afminstall | |
27345 | TOOLKIT=GTK | |
27346 | GUIDIST=GTK_DIST | |
27347 | ||
27348 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
27349 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
27350 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
27351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27352 | else | |
27353 | ac_check_lib_save_LIBS=$LIBS | |
27354 | LIBS="-lgdk $LIBS" | |
27355 | cat >conftest.$ac_ext <<_ACEOF | |
27356 | /* confdefs.h. */ | |
27357 | _ACEOF | |
27358 | cat confdefs.h >>conftest.$ac_ext | |
27359 | cat >>conftest.$ac_ext <<_ACEOF | |
27360 | /* end confdefs.h. */ | |
27361 | ||
27362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27363 | #ifdef __cplusplus | |
27364 | extern "C" | |
27365 | #endif | |
27366 | /* We use char because int might match the return type of a gcc2 | |
27367 | builtin and then its argument prototype would still apply. */ | |
27368 | char gdk_im_open (); | |
27369 | int | |
27370 | main () | |
27371 | { | |
27372 | gdk_im_open (); | |
27373 | ; | |
27374 | return 0; | |
27375 | } | |
27376 | _ACEOF | |
27377 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27379 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27380 | ac_status=$? |
ac1cb8d3 VS |
27381 | grep -v '^ *+' conftest.er1 >conftest.err |
27382 | rm -f conftest.er1 | |
27383 | cat conftest.err >&5 | |
a848cd7e SC |
27384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27385 | (exit $ac_status); } && | |
f10e38c4 | 27386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27388 | (eval $ac_try) 2>&5 | |
27389 | ac_status=$? | |
27390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27391 | (exit $ac_status); }; } && | |
27392 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27394 | (eval $ac_try) 2>&5 | |
27395 | ac_status=$? | |
27396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27397 | (exit $ac_status); }; }; then | |
27398 | ac_cv_lib_gdk_gdk_im_open=yes | |
27399 | else | |
27400 | echo "$as_me: failed program was:" >&5 | |
27401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27402 | ||
27403 | ac_cv_lib_gdk_gdk_im_open=no | |
27404 | fi | |
ac1cb8d3 VS |
27405 | rm -f conftest.err conftest.$ac_objext \ |
27406 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27407 | LIBS=$ac_check_lib_save_LIBS |
27408 | fi | |
27409 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
27410 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
27411 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
27412 | cat >>confdefs.h <<\_ACEOF | |
27413 | #define HAVE_XIM 1 | |
27414 | _ACEOF | |
27415 | ||
27416 | fi | |
27417 | ||
27418 | ||
27419 | ||
27420 | if test "$wxUSE_GPE" = "yes"; then | |
27421 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
27422 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
27423 | ||
0ad5d837 VZ |
27424 | ac_find_libraries= |
27425 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 27426 | do |
3eca31dc | 27427 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
27428 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
27429 | ac_find_libraries=$ac_dir | |
27430 | break 2 | |
27431 | fi | |
27432 | done | |
27433 | done | |
27434 | ||
27435 | if test "$ac_find_libraries" != "" ; then | |
27436 | ||
0ad5d837 | 27437 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
27438 | ac_path_to_link="" |
27439 | else | |
0ad5d837 VZ |
27440 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
27441 | result=$? | |
27442 | if test $result = 0; then | |
27443 | ac_path_to_link="" | |
27444 | else | |
27445 | ac_path_to_link=" -L$ac_find_libraries" | |
27446 | fi | |
a848cd7e SC |
27447 | fi |
27448 | ||
27449 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
27450 | WXGPE=1 | |
0ad5d837 VZ |
27451 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
27452 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
27453 | else |
27454 | echo "$as_me:$LINENO: result: not found" >&5 | |
27455 | echo "${ECHO_T}not found" >&6 | |
27456 | fi | |
27457 | ||
27458 | fi | |
27459 | fi | |
27460 | ||
27461 | if test "$wxUSE_MGL" = 1; then | |
27462 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
27463 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
27464 | if test "x$MGL_ROOT" = x ; then | |
27465 | echo "$as_me:$LINENO: result: not found" >&5 | |
27466 | echo "${ECHO_T}not found" >&6 | |
27467 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
27468 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
27469 | { (exit 1); exit 1; }; } | |
27470 | else | |
27471 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
27472 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
27473 | fi | |
27474 | ||
27475 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
27476 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
27477 | case "${host}" in | |
27478 | *-*-linux* ) | |
27479 | if test "x$wxUSE_SHARED" = xyes ; then | |
27480 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
27481 | else | |
27482 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
27483 | fi | |
27484 | ;; | |
27485 | *-pc-msdosdjgpp ) | |
27486 | mgl_os_candidates="dos32/dj2" | |
27487 | ;; | |
27488 | *) | |
27489 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
27490 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
27491 | { (exit 1); exit 1; }; } | |
27492 | esac | |
27493 | ||
27494 | mgl_lib_type="" | |
27495 | mgl_os="" | |
27496 | ||
27497 | for mgl_os_i in $mgl_os_candidates ; do | |
27498 | if test "x$mgl_os" = x ; then | |
27499 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
27500 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
27501 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
27502 | mgl_lib_type=debug | |
27503 | mgl_os=$mgl_os_i | |
27504 | fi | |
27505 | fi | |
27506 | if test "x$mgl_lib_type" = x ; then | |
27507 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
27508 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
27509 | mgl_lib_type=release | |
27510 | mgl_os=$mgl_os_i | |
27511 | fi | |
27512 | fi | |
27513 | fi | |
27514 | done | |
27515 | ||
27516 | if test "x$mgl_os" = x ; then | |
27517 | echo "$as_me:$LINENO: result: not found" >&5 | |
27518 | echo "${ECHO_T}not found" >&6 | |
27519 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
27520 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
27521 | { (exit 1); exit 1; }; } | |
27522 | fi | |
27523 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
27524 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
27525 | ||
27526 | wxUSE_UNIVERSAL="yes" | |
27527 | ||
27528 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
27529 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
27530 | ||
27531 | AFMINSTALL=afminstall | |
27532 | TOOLKIT=MGL | |
27533 | GUIDIST=MGL_DIST | |
27534 | fi | |
27535 | ||
27536 | if test "$wxUSE_MICROWIN" = 1; then | |
27537 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
27538 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
27539 | if test "x$MICROWINDOWS" = x ; then | |
27540 | echo "$as_me:$LINENO: result: not found" >&5 | |
27541 | echo "${ECHO_T}not found" >&6 | |
27542 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
27543 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
27544 | { (exit 1); exit 1; }; } | |
27545 | else | |
27546 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
27547 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
27548 | fi | |
27549 | ||
27550 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
27551 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
27552 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
27553 | else | |
27554 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
27555 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
27556 | { (exit 1); exit 1; }; } | |
27557 | fi | |
27558 | ||
27559 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
27560 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
27561 | ||
27562 | wxUSE_UNIVERSAL="yes" | |
27563 | ||
27564 | AFMINSTALL=afminstall | |
27565 | TOOLKIT=MICROWIN | |
27566 | GUIDIST=MICROWIN_DIST | |
27567 | ||
27568 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
27569 | fi | |
27570 | ||
74b84332 | 27571 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
f10e38c4 VZ |
27572 | |
27573 | if test "x$ac_path_x_has_been_run" != xyes; then | |
27574 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
27575 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
27576 | ||
f10e38c4 | 27577 | ac_path_x_has_been_run=yes |
a848cd7e SC |
27578 | |
27579 | # Check whether --with-x or --without-x was given. | |
27580 | if test "${with_x+set}" = set; then | |
27581 | withval="$with_x" | |
27582 | ||
27583 | fi; | |
27584 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
27585 | if test "x$with_x" = xno; then | |
27586 | # The user explicitly disabled X. | |
27587 | have_x=disabled | |
27588 | else | |
27589 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
27590 | # Both variables are already set. | |
27591 | have_x=yes | |
27592 | else | |
27593 | if test "${ac_cv_have_x+set}" = set; then | |
27594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27595 | else | |
27596 | # One or both of the vars are not set, and there is no cached value. | |
27597 | ac_x_includes=no ac_x_libraries=no | |
27598 | rm -fr conftest.dir | |
27599 | if mkdir conftest.dir; then | |
27600 | cd conftest.dir | |
27601 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
27602 | cat >Imakefile <<'_ACEOF' | |
27603 | acfindx: | |
27604 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
27605 | _ACEOF | |
27606 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
27607 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
27608 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
27609 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
27610 | for ac_extension in a so sl; do | |
27611 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
27612 | test -f $ac_im_libdir/libX11.$ac_extension; then |
27613 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
27614 | fi |
27615 | done | |
27616 | # Screen out bogus values from the imake configuration. They are | |
27617 | # bogus both because they are the default anyway, and because | |
27618 | # using them would break gcc on systems where it needs fixed includes. | |
27619 | case $ac_im_incroot in | |
27620 | /usr/include) ;; | |
27621 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
27622 | esac | |
27623 | case $ac_im_usrlibdir in | |
27624 | /usr/lib | /lib) ;; | |
27625 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
27626 | esac | |
27627 | fi | |
27628 | cd .. | |
27629 | rm -fr conftest.dir | |
27630 | fi | |
27631 | ||
27632 | # Standard set of common directories for X headers. | |
27633 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
27634 | ac_x_header_dirs=' | |
27635 | /usr/X11/include | |
27636 | /usr/X11R6/include | |
27637 | /usr/X11R5/include | |
27638 | /usr/X11R4/include | |
27639 | ||
27640 | /usr/include/X11 | |
27641 | /usr/include/X11R6 | |
27642 | /usr/include/X11R5 | |
27643 | /usr/include/X11R4 | |
27644 | ||
27645 | /usr/local/X11/include | |
27646 | /usr/local/X11R6/include | |
27647 | /usr/local/X11R5/include | |
27648 | /usr/local/X11R4/include | |
27649 | ||
27650 | /usr/local/include/X11 | |
27651 | /usr/local/include/X11R6 | |
27652 | /usr/local/include/X11R5 | |
27653 | /usr/local/include/X11R4 | |
27654 | ||
27655 | /usr/X386/include | |
27656 | /usr/x386/include | |
27657 | /usr/XFree86/include/X11 | |
27658 | ||
27659 | /usr/include | |
27660 | /usr/local/include | |
27661 | /usr/unsupported/include | |
27662 | /usr/athena/include | |
27663 | /usr/local/x11r5/include | |
27664 | /usr/lpp/Xamples/include | |
27665 | ||
27666 | /usr/openwin/include | |
27667 | /usr/openwin/share/include' | |
27668 | ||
27669 | if test "$ac_x_includes" = no; then | |
f10e38c4 | 27670 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
27671 | # First, try using that file with no special directory specified. |
27672 | cat >conftest.$ac_ext <<_ACEOF | |
27673 | /* confdefs.h. */ | |
27674 | _ACEOF | |
27675 | cat confdefs.h >>conftest.$ac_ext | |
27676 | cat >>conftest.$ac_ext <<_ACEOF | |
27677 | /* end confdefs.h. */ | |
f10e38c4 | 27678 | #include <X11/Xlib.h> |
a848cd7e SC |
27679 | _ACEOF |
27680 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27681 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27682 | ac_status=$? | |
27683 | grep -v '^ *+' conftest.er1 >conftest.err | |
27684 | rm -f conftest.er1 | |
27685 | cat conftest.err >&5 | |
27686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27687 | (exit $ac_status); } >/dev/null; then | |
27688 | if test -s conftest.err; then | |
27689 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27690 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27691 | else |
27692 | ac_cpp_err= | |
27693 | fi | |
27694 | else | |
27695 | ac_cpp_err=yes | |
27696 | fi | |
27697 | if test -z "$ac_cpp_err"; then | |
27698 | # We can compile using X headers with no special include directory. | |
27699 | ac_x_includes= | |
27700 | else | |
27701 | echo "$as_me: failed program was:" >&5 | |
27702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27703 | ||
27704 | for ac_dir in $ac_x_header_dirs; do | |
f10e38c4 | 27705 | if test -r "$ac_dir/X11/Xlib.h"; then |
a848cd7e SC |
27706 | ac_x_includes=$ac_dir |
27707 | break | |
27708 | fi | |
27709 | done | |
27710 | fi | |
27711 | rm -f conftest.err conftest.$ac_ext | |
27712 | fi # $ac_x_includes = no | |
27713 | ||
27714 | if test "$ac_x_libraries" = no; then | |
27715 | # Check for the libraries. | |
27716 | # See if we find them without any special options. | |
27717 | # Don't add to $LIBS permanently. | |
27718 | ac_save_LIBS=$LIBS | |
f10e38c4 | 27719 | LIBS="-lX11 $LIBS" |
a848cd7e SC |
27720 | cat >conftest.$ac_ext <<_ACEOF |
27721 | /* confdefs.h. */ | |
27722 | _ACEOF | |
27723 | cat confdefs.h >>conftest.$ac_ext | |
27724 | cat >>conftest.$ac_ext <<_ACEOF | |
27725 | /* end confdefs.h. */ | |
f10e38c4 | 27726 | #include <X11/Xlib.h> |
a848cd7e SC |
27727 | int |
27728 | main () | |
27729 | { | |
f10e38c4 | 27730 | XrmInitialize () |
a848cd7e SC |
27731 | ; |
27732 | return 0; | |
27733 | } | |
27734 | _ACEOF | |
27735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27737 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27738 | ac_status=$? |
ac1cb8d3 VS |
27739 | grep -v '^ *+' conftest.er1 >conftest.err |
27740 | rm -f conftest.er1 | |
27741 | cat conftest.err >&5 | |
a848cd7e SC |
27742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27743 | (exit $ac_status); } && | |
f10e38c4 | 27744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27746 | (eval $ac_try) 2>&5 | |
27747 | ac_status=$? | |
27748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27749 | (exit $ac_status); }; } && | |
27750 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27752 | (eval $ac_try) 2>&5 | |
27753 | ac_status=$? | |
27754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27755 | (exit $ac_status); }; }; then | |
27756 | LIBS=$ac_save_LIBS | |
27757 | # We can link X programs with no special library path. | |
27758 | ac_x_libraries= | |
27759 | else | |
27760 | echo "$as_me: failed program was:" >&5 | |
27761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27762 | ||
27763 | LIBS=$ac_save_LIBS | |
27764 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
27765 | do | |
27766 | # Don't even attempt the hair of trying to link an X program! | |
27767 | for ac_extension in a so sl; do | |
f10e38c4 | 27768 | if test -r $ac_dir/libX11.$ac_extension; then |
a848cd7e SC |
27769 | ac_x_libraries=$ac_dir |
27770 | break 2 | |
27771 | fi | |
27772 | done | |
27773 | done | |
27774 | fi | |
ac1cb8d3 VS |
27775 | rm -f conftest.err conftest.$ac_objext \ |
27776 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27777 | fi # $ac_x_libraries = no |
27778 | ||
27779 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
27780 | # Didn't find X anywhere. Cache the known absence of X. | |
27781 | ac_cv_have_x="have_x=no" | |
27782 | else | |
27783 | # Record where we found X for the cache. | |
27784 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 27785 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
27786 | fi |
27787 | fi | |
27788 | ||
27789 | fi | |
27790 | eval "$ac_cv_have_x" | |
27791 | fi # $with_x != no | |
27792 | ||
27793 | if test "$have_x" != yes; then | |
27794 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
27795 | echo "${ECHO_T}$have_x" >&6 | |
27796 | no_x=yes | |
27797 | else | |
27798 | # If each of the values was on the command line, it overrides each guess. | |
27799 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
27800 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
27801 | # Update the cache value to reflect the command line values. | |
27802 | ac_cv_have_x="have_x=yes \ | |
27803 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
f10e38c4 VZ |
27804 | # It might be that x_includes is empty (headers are found in the |
27805 | # standard search path. Then output the corresponding message | |
27806 | ac_out_x_includes=$x_includes | |
27807 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
27808 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
27809 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
27810 | fi |
27811 | ||
f10e38c4 | 27812 | fi |
a848cd7e SC |
27813 | if test "$no_x" = yes; then |
27814 | # Not all programs may use this symbol, but it does not hurt to define it. | |
27815 | ||
27816 | cat >>confdefs.h <<\_ACEOF | |
27817 | #define X_DISPLAY_MISSING 1 | |
27818 | _ACEOF | |
27819 | ||
27820 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
27821 | else | |
27822 | if test -n "$x_includes"; then | |
27823 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
27824 | fi | |
27825 | ||
27826 | # It would also be nice to do this for all -L options, not just this one. | |
27827 | if test -n "$x_libraries"; then | |
27828 | X_LIBS="$X_LIBS -L$x_libraries" | |
27829 | # For Solaris; some versions of Sun CC require a space after -R and | |
27830 | # others require no space. Words are not sufficient . . . . | |
27831 | case `(uname -sr) 2>/dev/null` in | |
27832 | "SunOS 5"*) | |
27833 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
27834 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
27835 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
27836 | cat >conftest.$ac_ext <<_ACEOF | |
27837 | /* confdefs.h. */ | |
27838 | _ACEOF | |
27839 | cat confdefs.h >>conftest.$ac_ext | |
27840 | cat >>conftest.$ac_ext <<_ACEOF | |
27841 | /* end confdefs.h. */ | |
27842 | ||
27843 | int | |
27844 | main () | |
27845 | { | |
27846 | ||
27847 | ; | |
27848 | return 0; | |
27849 | } | |
27850 | _ACEOF | |
27851 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27853 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27854 | ac_status=$? |
ac1cb8d3 VS |
27855 | grep -v '^ *+' conftest.er1 >conftest.err |
27856 | rm -f conftest.er1 | |
27857 | cat conftest.err >&5 | |
a848cd7e SC |
27858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27859 | (exit $ac_status); } && | |
f10e38c4 | 27860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27862 | (eval $ac_try) 2>&5 | |
27863 | ac_status=$? | |
27864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27865 | (exit $ac_status); }; } && | |
27866 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27868 | (eval $ac_try) 2>&5 | |
27869 | ac_status=$? | |
27870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27871 | (exit $ac_status); }; }; then | |
27872 | ac_R_nospace=yes | |
27873 | else | |
27874 | echo "$as_me: failed program was:" >&5 | |
27875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27876 | ||
27877 | ac_R_nospace=no | |
27878 | fi | |
ac1cb8d3 VS |
27879 | rm -f conftest.err conftest.$ac_objext \ |
27880 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27881 | if test $ac_R_nospace = yes; then |
27882 | echo "$as_me:$LINENO: result: no" >&5 | |
27883 | echo "${ECHO_T}no" >&6 | |
27884 | X_LIBS="$X_LIBS -R$x_libraries" | |
27885 | else | |
27886 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
27887 | cat >conftest.$ac_ext <<_ACEOF | |
27888 | /* confdefs.h. */ | |
27889 | _ACEOF | |
27890 | cat confdefs.h >>conftest.$ac_ext | |
27891 | cat >>conftest.$ac_ext <<_ACEOF | |
27892 | /* end confdefs.h. */ | |
27893 | ||
27894 | int | |
27895 | main () | |
27896 | { | |
27897 | ||
27898 | ; | |
27899 | return 0; | |
27900 | } | |
27901 | _ACEOF | |
27902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27904 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27905 | ac_status=$? |
ac1cb8d3 VS |
27906 | grep -v '^ *+' conftest.er1 >conftest.err |
27907 | rm -f conftest.er1 | |
27908 | cat conftest.err >&5 | |
a848cd7e SC |
27909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27910 | (exit $ac_status); } && | |
f10e38c4 | 27911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27913 | (eval $ac_try) 2>&5 | |
27914 | ac_status=$? | |
27915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27916 | (exit $ac_status); }; } && | |
27917 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27919 | (eval $ac_try) 2>&5 | |
27920 | ac_status=$? | |
27921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27922 | (exit $ac_status); }; }; then | |
27923 | ac_R_space=yes | |
27924 | else | |
27925 | echo "$as_me: failed program was:" >&5 | |
27926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27927 | ||
27928 | ac_R_space=no | |
27929 | fi | |
ac1cb8d3 VS |
27930 | rm -f conftest.err conftest.$ac_objext \ |
27931 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27932 | if test $ac_R_space = yes; then |
27933 | echo "$as_me:$LINENO: result: yes" >&5 | |
27934 | echo "${ECHO_T}yes" >&6 | |
27935 | X_LIBS="$X_LIBS -R $x_libraries" | |
27936 | else | |
27937 | echo "$as_me:$LINENO: result: neither works" >&5 | |
27938 | echo "${ECHO_T}neither works" >&6 | |
27939 | fi | |
27940 | fi | |
27941 | LIBS=$ac_xsave_LIBS | |
27942 | esac | |
27943 | fi | |
27944 | ||
27945 | # Check for system-dependent libraries X programs must link with. | |
27946 | # Do this before checking for the system-independent R6 libraries | |
27947 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
27948 | ||
27949 | if test "$ISC" = yes; then | |
27950 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
27951 | else | |
27952 | # Martyn Johnson says this is needed for Ultrix, if the X | |
27953 | # libraries were built with DECnet support. And Karl Berry says | |
27954 | # the Alpha needs dnet_stub (dnet does not exist). | |
27955 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
27956 | cat >conftest.$ac_ext <<_ACEOF | |
27957 | /* confdefs.h. */ | |
27958 | _ACEOF | |
27959 | cat confdefs.h >>conftest.$ac_ext | |
27960 | cat >>conftest.$ac_ext <<_ACEOF | |
27961 | /* end confdefs.h. */ | |
27962 | ||
27963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27964 | #ifdef __cplusplus | |
27965 | extern "C" | |
27966 | #endif | |
27967 | /* We use char because int might match the return type of a gcc2 | |
27968 | builtin and then its argument prototype would still apply. */ | |
27969 | char XOpenDisplay (); | |
27970 | int | |
27971 | main () | |
27972 | { | |
27973 | XOpenDisplay (); | |
27974 | ; | |
27975 | return 0; | |
27976 | } | |
27977 | _ACEOF | |
27978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27980 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27981 | ac_status=$? |
ac1cb8d3 VS |
27982 | grep -v '^ *+' conftest.er1 >conftest.err |
27983 | rm -f conftest.er1 | |
27984 | cat conftest.err >&5 | |
a848cd7e SC |
27985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27986 | (exit $ac_status); } && | |
f10e38c4 | 27987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27989 | (eval $ac_try) 2>&5 | |
27990 | ac_status=$? | |
27991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27992 | (exit $ac_status); }; } && | |
27993 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27995 | (eval $ac_try) 2>&5 | |
27996 | ac_status=$? | |
27997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27998 | (exit $ac_status); }; }; then | |
27999 | : | |
28000 | else | |
28001 | echo "$as_me: failed program was:" >&5 | |
28002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28003 | ||
28004 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
28005 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
28006 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
28007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28008 | else | |
28009 | ac_check_lib_save_LIBS=$LIBS | |
28010 | LIBS="-ldnet $LIBS" | |
28011 | cat >conftest.$ac_ext <<_ACEOF | |
28012 | /* confdefs.h. */ | |
28013 | _ACEOF | |
28014 | cat confdefs.h >>conftest.$ac_ext | |
28015 | cat >>conftest.$ac_ext <<_ACEOF | |
28016 | /* end confdefs.h. */ | |
28017 | ||
28018 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28019 | #ifdef __cplusplus | |
28020 | extern "C" | |
28021 | #endif | |
28022 | /* We use char because int might match the return type of a gcc2 | |
28023 | builtin and then its argument prototype would still apply. */ | |
28024 | char dnet_ntoa (); | |
28025 | int | |
28026 | main () | |
28027 | { | |
28028 | dnet_ntoa (); | |
28029 | ; | |
28030 | return 0; | |
28031 | } | |
28032 | _ACEOF | |
28033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28035 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28036 | ac_status=$? |
ac1cb8d3 VS |
28037 | grep -v '^ *+' conftest.er1 >conftest.err |
28038 | rm -f conftest.er1 | |
28039 | cat conftest.err >&5 | |
a848cd7e SC |
28040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28041 | (exit $ac_status); } && | |
f10e38c4 | 28042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28044 | (eval $ac_try) 2>&5 | |
28045 | ac_status=$? | |
28046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28047 | (exit $ac_status); }; } && | |
28048 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28050 | (eval $ac_try) 2>&5 | |
28051 | ac_status=$? | |
28052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28053 | (exit $ac_status); }; }; then | |
28054 | ac_cv_lib_dnet_dnet_ntoa=yes | |
28055 | else | |
28056 | echo "$as_me: failed program was:" >&5 | |
28057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28058 | ||
28059 | ac_cv_lib_dnet_dnet_ntoa=no | |
28060 | fi | |
ac1cb8d3 VS |
28061 | rm -f conftest.err conftest.$ac_objext \ |
28062 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28063 | LIBS=$ac_check_lib_save_LIBS |
28064 | fi | |
28065 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
28066 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
28067 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
28068 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
28069 | fi | |
28070 | ||
28071 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
28072 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
28073 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
28074 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
28075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28076 | else | |
28077 | ac_check_lib_save_LIBS=$LIBS | |
28078 | LIBS="-ldnet_stub $LIBS" | |
28079 | cat >conftest.$ac_ext <<_ACEOF | |
28080 | /* confdefs.h. */ | |
28081 | _ACEOF | |
28082 | cat confdefs.h >>conftest.$ac_ext | |
28083 | cat >>conftest.$ac_ext <<_ACEOF | |
28084 | /* end confdefs.h. */ | |
28085 | ||
28086 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28087 | #ifdef __cplusplus | |
28088 | extern "C" | |
28089 | #endif | |
28090 | /* We use char because int might match the return type of a gcc2 | |
28091 | builtin and then its argument prototype would still apply. */ | |
28092 | char dnet_ntoa (); | |
28093 | int | |
28094 | main () | |
28095 | { | |
28096 | dnet_ntoa (); | |
28097 | ; | |
28098 | return 0; | |
28099 | } | |
28100 | _ACEOF | |
28101 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28103 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28104 | ac_status=$? |
ac1cb8d3 VS |
28105 | grep -v '^ *+' conftest.er1 >conftest.err |
28106 | rm -f conftest.er1 | |
28107 | cat conftest.err >&5 | |
a848cd7e SC |
28108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28109 | (exit $ac_status); } && | |
f10e38c4 | 28110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28112 | (eval $ac_try) 2>&5 | |
28113 | ac_status=$? | |
28114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28115 | (exit $ac_status); }; } && | |
28116 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28118 | (eval $ac_try) 2>&5 | |
28119 | ac_status=$? | |
28120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28121 | (exit $ac_status); }; }; then | |
28122 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
28123 | else | |
28124 | echo "$as_me: failed program was:" >&5 | |
28125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28126 | ||
28127 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
28128 | fi | |
ac1cb8d3 VS |
28129 | rm -f conftest.err conftest.$ac_objext \ |
28130 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28131 | LIBS=$ac_check_lib_save_LIBS |
28132 | fi | |
28133 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
28134 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
28135 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
28136 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
28137 | fi | |
28138 | ||
28139 | fi | |
28140 | fi | |
ac1cb8d3 VS |
28141 | rm -f conftest.err conftest.$ac_objext \ |
28142 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28143 | LIBS="$ac_xsave_LIBS" |
28144 | ||
28145 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
28146 | # to get the SysV transport functions. | |
28147 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
28148 | # needs -lnsl. | |
28149 | # The nsl library prevents programs from opening the X display | |
28150 | # on Irix 5.2, according to T.E. Dickey. | |
28151 | # The functions gethostbyname, getservbyname, and inet_addr are | |
28152 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
28153 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
28154 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
28155 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
28156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28157 | else | |
28158 | cat >conftest.$ac_ext <<_ACEOF | |
28159 | /* confdefs.h. */ | |
28160 | _ACEOF | |
28161 | cat confdefs.h >>conftest.$ac_ext | |
28162 | cat >>conftest.$ac_ext <<_ACEOF | |
28163 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28164 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
28165 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28166 | #define gethostbyname innocuous_gethostbyname | |
28167 | ||
a848cd7e SC |
28168 | /* System header to define __stub macros and hopefully few prototypes, |
28169 | which can conflict with char gethostbyname (); below. | |
28170 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28171 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28172 | |
a848cd7e SC |
28173 | #ifdef __STDC__ |
28174 | # include <limits.h> | |
28175 | #else | |
28176 | # include <assert.h> | |
28177 | #endif | |
ac1cb8d3 VS |
28178 | |
28179 | #undef gethostbyname | |
28180 | ||
a848cd7e SC |
28181 | /* Override any gcc2 internal prototype to avoid an error. */ |
28182 | #ifdef __cplusplus | |
28183 | extern "C" | |
28184 | { | |
28185 | #endif | |
28186 | /* We use char because int might match the return type of a gcc2 | |
28187 | builtin and then its argument prototype would still apply. */ | |
28188 | char gethostbyname (); | |
28189 | /* The GNU C library defines this for functions which it implements | |
28190 | to always fail with ENOSYS. Some functions are actually named | |
28191 | something starting with __ and the normal name is an alias. */ | |
28192 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
28193 | choke me | |
28194 | #else | |
28195 | char (*f) () = gethostbyname; | |
28196 | #endif | |
28197 | #ifdef __cplusplus | |
28198 | } | |
28199 | #endif | |
28200 | ||
28201 | int | |
28202 | main () | |
28203 | { | |
28204 | return f != gethostbyname; | |
28205 | ; | |
28206 | return 0; | |
28207 | } | |
28208 | _ACEOF | |
28209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28211 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28212 | ac_status=$? |
ac1cb8d3 VS |
28213 | grep -v '^ *+' conftest.er1 >conftest.err |
28214 | rm -f conftest.er1 | |
28215 | cat conftest.err >&5 | |
a848cd7e SC |
28216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28217 | (exit $ac_status); } && | |
f10e38c4 | 28218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28220 | (eval $ac_try) 2>&5 | |
28221 | ac_status=$? | |
28222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28223 | (exit $ac_status); }; } && | |
28224 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28226 | (eval $ac_try) 2>&5 | |
28227 | ac_status=$? | |
28228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28229 | (exit $ac_status); }; }; then | |
28230 | ac_cv_func_gethostbyname=yes | |
28231 | else | |
28232 | echo "$as_me: failed program was:" >&5 | |
28233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28234 | ||
28235 | ac_cv_func_gethostbyname=no | |
28236 | fi | |
ac1cb8d3 VS |
28237 | rm -f conftest.err conftest.$ac_objext \ |
28238 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28239 | fi |
28240 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
28241 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
28242 | ||
28243 | if test $ac_cv_func_gethostbyname = no; then | |
28244 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
28245 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
28246 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
28247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28248 | else | |
28249 | ac_check_lib_save_LIBS=$LIBS | |
28250 | LIBS="-lnsl $LIBS" | |
28251 | cat >conftest.$ac_ext <<_ACEOF | |
28252 | /* confdefs.h. */ | |
28253 | _ACEOF | |
28254 | cat confdefs.h >>conftest.$ac_ext | |
28255 | cat >>conftest.$ac_ext <<_ACEOF | |
28256 | /* end confdefs.h. */ | |
28257 | ||
28258 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28259 | #ifdef __cplusplus | |
28260 | extern "C" | |
28261 | #endif | |
28262 | /* We use char because int might match the return type of a gcc2 | |
28263 | builtin and then its argument prototype would still apply. */ | |
28264 | char gethostbyname (); | |
28265 | int | |
28266 | main () | |
28267 | { | |
28268 | gethostbyname (); | |
28269 | ; | |
28270 | return 0; | |
28271 | } | |
28272 | _ACEOF | |
28273 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
28275 | (eval $ac_link) 2>conftest.er1 |
28276 | ac_status=$? | |
28277 | grep -v '^ *+' conftest.er1 >conftest.err | |
28278 | rm -f conftest.er1 | |
28279 | cat conftest.err >&5 | |
28280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28281 | (exit $ac_status); } && | |
f10e38c4 | 28282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28284 | (eval $ac_try) 2>&5 | |
28285 | ac_status=$? | |
28286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28287 | (exit $ac_status); }; } && | |
28288 | { ac_try='test -s conftest$ac_exeext' | |
28289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28290 | (eval $ac_try) 2>&5 | |
28291 | ac_status=$? | |
28292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28293 | (exit $ac_status); }; }; then | |
28294 | ac_cv_lib_nsl_gethostbyname=yes | |
28295 | else | |
28296 | echo "$as_me: failed program was:" >&5 | |
28297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28298 | ||
28299 | ac_cv_lib_nsl_gethostbyname=no | |
28300 | fi | |
28301 | rm -f conftest.err conftest.$ac_objext \ | |
28302 | conftest$ac_exeext conftest.$ac_ext | |
28303 | LIBS=$ac_check_lib_save_LIBS | |
28304 | fi | |
28305 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
28306 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
28307 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
28308 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
28309 | fi | |
28310 | ||
28311 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
28312 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
28313 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
28314 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
28315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28316 | else | |
28317 | ac_check_lib_save_LIBS=$LIBS | |
28318 | LIBS="-lbsd $LIBS" | |
28319 | cat >conftest.$ac_ext <<_ACEOF | |
28320 | /* confdefs.h. */ | |
28321 | _ACEOF | |
28322 | cat confdefs.h >>conftest.$ac_ext | |
28323 | cat >>conftest.$ac_ext <<_ACEOF | |
28324 | /* end confdefs.h. */ | |
28325 | ||
28326 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28327 | #ifdef __cplusplus | |
28328 | extern "C" | |
28329 | #endif | |
28330 | /* We use char because int might match the return type of a gcc2 | |
28331 | builtin and then its argument prototype would still apply. */ | |
28332 | char gethostbyname (); | |
28333 | int | |
28334 | main () | |
28335 | { | |
28336 | gethostbyname (); | |
28337 | ; | |
28338 | return 0; | |
28339 | } | |
28340 | _ACEOF | |
28341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28343 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28344 | ac_status=$? |
ac1cb8d3 VS |
28345 | grep -v '^ *+' conftest.er1 >conftest.err |
28346 | rm -f conftest.er1 | |
28347 | cat conftest.err >&5 | |
a848cd7e SC |
28348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28349 | (exit $ac_status); } && | |
f10e38c4 | 28350 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
28351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28352 | (eval $ac_try) 2>&5 | |
28353 | ac_status=$? | |
28354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
28355 | (exit $ac_status); }; } && |
28356 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28358 | (eval $ac_try) 2>&5 | |
28359 | ac_status=$? | |
28360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28361 | (exit $ac_status); }; }; then | |
28362 | ac_cv_lib_bsd_gethostbyname=yes | |
28363 | else | |
28364 | echo "$as_me: failed program was:" >&5 | |
28365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28366 | ||
28367 | ac_cv_lib_bsd_gethostbyname=no | |
28368 | fi | |
ac1cb8d3 VS |
28369 | rm -f conftest.err conftest.$ac_objext \ |
28370 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28371 | LIBS=$ac_check_lib_save_LIBS |
28372 | fi | |
28373 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
28374 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
28375 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
28376 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
28377 | fi | |
28378 | ||
28379 | fi | |
28380 | fi | |
28381 | ||
28382 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
28383 | # socket/setsockopt and other routines are undefined under SCO ODT | |
28384 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
28385 | # on later versions), says Simon Leinen: it contains gethostby* | |
28386 | # variants that don't use the name server (or something). -lsocket | |
28387 | # must be given before -lnsl if both are needed. We assume that | |
28388 | # if connect needs -lnsl, so does gethostbyname. | |
28389 | echo "$as_me:$LINENO: checking for connect" >&5 | |
28390 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
28391 | if test "${ac_cv_func_connect+set}" = set; then | |
28392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28393 | else | |
28394 | cat >conftest.$ac_ext <<_ACEOF | |
28395 | /* confdefs.h. */ | |
28396 | _ACEOF | |
28397 | cat confdefs.h >>conftest.$ac_ext | |
28398 | cat >>conftest.$ac_ext <<_ACEOF | |
28399 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28400 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
28401 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28402 | #define connect innocuous_connect | |
28403 | ||
a848cd7e SC |
28404 | /* System header to define __stub macros and hopefully few prototypes, |
28405 | which can conflict with char connect (); below. | |
28406 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28407 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28408 | |
a848cd7e SC |
28409 | #ifdef __STDC__ |
28410 | # include <limits.h> | |
28411 | #else | |
28412 | # include <assert.h> | |
28413 | #endif | |
ac1cb8d3 VS |
28414 | |
28415 | #undef connect | |
28416 | ||
a848cd7e SC |
28417 | /* Override any gcc2 internal prototype to avoid an error. */ |
28418 | #ifdef __cplusplus | |
28419 | extern "C" | |
28420 | { | |
28421 | #endif | |
28422 | /* We use char because int might match the return type of a gcc2 | |
28423 | builtin and then its argument prototype would still apply. */ | |
28424 | char connect (); | |
28425 | /* The GNU C library defines this for functions which it implements | |
28426 | to always fail with ENOSYS. Some functions are actually named | |
28427 | something starting with __ and the normal name is an alias. */ | |
28428 | #if defined (__stub_connect) || defined (__stub___connect) | |
28429 | choke me | |
28430 | #else | |
28431 | char (*f) () = connect; | |
28432 | #endif | |
28433 | #ifdef __cplusplus | |
28434 | } | |
28435 | #endif | |
28436 | ||
28437 | int | |
28438 | main () | |
28439 | { | |
28440 | return f != connect; | |
28441 | ; | |
28442 | return 0; | |
28443 | } | |
28444 | _ACEOF | |
28445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28447 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28448 | ac_status=$? |
ac1cb8d3 VS |
28449 | grep -v '^ *+' conftest.er1 >conftest.err |
28450 | rm -f conftest.er1 | |
28451 | cat conftest.err >&5 | |
a848cd7e SC |
28452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28453 | (exit $ac_status); } && | |
f10e38c4 | 28454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28456 | (eval $ac_try) 2>&5 | |
28457 | ac_status=$? | |
28458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28459 | (exit $ac_status); }; } && | |
28460 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28462 | (eval $ac_try) 2>&5 | |
28463 | ac_status=$? | |
28464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28465 | (exit $ac_status); }; }; then | |
28466 | ac_cv_func_connect=yes | |
28467 | else | |
28468 | echo "$as_me: failed program was:" >&5 | |
28469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28470 | ||
28471 | ac_cv_func_connect=no | |
28472 | fi | |
ac1cb8d3 VS |
28473 | rm -f conftest.err conftest.$ac_objext \ |
28474 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28475 | fi |
28476 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
28477 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
28478 | ||
28479 | if test $ac_cv_func_connect = no; then | |
28480 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
28481 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
28482 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
28483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28484 | else | |
28485 | ac_check_lib_save_LIBS=$LIBS | |
28486 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
28487 | cat >conftest.$ac_ext <<_ACEOF | |
28488 | /* confdefs.h. */ | |
28489 | _ACEOF | |
28490 | cat confdefs.h >>conftest.$ac_ext | |
28491 | cat >>conftest.$ac_ext <<_ACEOF | |
28492 | /* end confdefs.h. */ | |
28493 | ||
28494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28495 | #ifdef __cplusplus | |
28496 | extern "C" | |
28497 | #endif | |
28498 | /* We use char because int might match the return type of a gcc2 | |
28499 | builtin and then its argument prototype would still apply. */ | |
28500 | char connect (); | |
28501 | int | |
28502 | main () | |
28503 | { | |
28504 | connect (); | |
28505 | ; | |
28506 | return 0; | |
28507 | } | |
28508 | _ACEOF | |
28509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28511 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28512 | ac_status=$? |
ac1cb8d3 VS |
28513 | grep -v '^ *+' conftest.er1 >conftest.err |
28514 | rm -f conftest.er1 | |
28515 | cat conftest.err >&5 | |
a848cd7e SC |
28516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28517 | (exit $ac_status); } && | |
f10e38c4 | 28518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28520 | (eval $ac_try) 2>&5 | |
28521 | ac_status=$? | |
28522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28523 | (exit $ac_status); }; } && | |
28524 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28526 | (eval $ac_try) 2>&5 | |
28527 | ac_status=$? | |
28528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28529 | (exit $ac_status); }; }; then | |
28530 | ac_cv_lib_socket_connect=yes | |
28531 | else | |
28532 | echo "$as_me: failed program was:" >&5 | |
28533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28534 | ||
28535 | ac_cv_lib_socket_connect=no | |
28536 | fi | |
ac1cb8d3 VS |
28537 | rm -f conftest.err conftest.$ac_objext \ |
28538 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28539 | LIBS=$ac_check_lib_save_LIBS |
28540 | fi | |
28541 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
28542 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
28543 | if test $ac_cv_lib_socket_connect = yes; then | |
28544 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
28545 | fi | |
28546 | ||
28547 | fi | |
28548 | ||
28549 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
28550 | echo "$as_me:$LINENO: checking for remove" >&5 | |
28551 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
28552 | if test "${ac_cv_func_remove+set}" = set; then | |
28553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28554 | else | |
28555 | cat >conftest.$ac_ext <<_ACEOF | |
28556 | /* confdefs.h. */ | |
28557 | _ACEOF | |
28558 | cat confdefs.h >>conftest.$ac_ext | |
28559 | cat >>conftest.$ac_ext <<_ACEOF | |
28560 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28561 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
28562 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28563 | #define remove innocuous_remove | |
28564 | ||
a848cd7e SC |
28565 | /* System header to define __stub macros and hopefully few prototypes, |
28566 | which can conflict with char remove (); below. | |
28567 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28568 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28569 | |
a848cd7e SC |
28570 | #ifdef __STDC__ |
28571 | # include <limits.h> | |
28572 | #else | |
28573 | # include <assert.h> | |
28574 | #endif | |
ac1cb8d3 VS |
28575 | |
28576 | #undef remove | |
28577 | ||
a848cd7e SC |
28578 | /* Override any gcc2 internal prototype to avoid an error. */ |
28579 | #ifdef __cplusplus | |
28580 | extern "C" | |
28581 | { | |
28582 | #endif | |
28583 | /* We use char because int might match the return type of a gcc2 | |
28584 | builtin and then its argument prototype would still apply. */ | |
28585 | char remove (); | |
28586 | /* The GNU C library defines this for functions which it implements | |
28587 | to always fail with ENOSYS. Some functions are actually named | |
28588 | something starting with __ and the normal name is an alias. */ | |
28589 | #if defined (__stub_remove) || defined (__stub___remove) | |
28590 | choke me | |
28591 | #else | |
28592 | char (*f) () = remove; | |
28593 | #endif | |
28594 | #ifdef __cplusplus | |
28595 | } | |
28596 | #endif | |
28597 | ||
28598 | int | |
28599 | main () | |
28600 | { | |
28601 | return f != remove; | |
28602 | ; | |
28603 | return 0; | |
28604 | } | |
28605 | _ACEOF | |
28606 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28608 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28609 | ac_status=$? |
ac1cb8d3 VS |
28610 | grep -v '^ *+' conftest.er1 >conftest.err |
28611 | rm -f conftest.er1 | |
28612 | cat conftest.err >&5 | |
a848cd7e SC |
28613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28614 | (exit $ac_status); } && | |
f10e38c4 | 28615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28617 | (eval $ac_try) 2>&5 | |
28618 | ac_status=$? | |
28619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28620 | (exit $ac_status); }; } && | |
28621 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28623 | (eval $ac_try) 2>&5 | |
28624 | ac_status=$? | |
28625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28626 | (exit $ac_status); }; }; then | |
28627 | ac_cv_func_remove=yes | |
28628 | else | |
28629 | echo "$as_me: failed program was:" >&5 | |
28630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28631 | ||
28632 | ac_cv_func_remove=no | |
28633 | fi | |
ac1cb8d3 VS |
28634 | rm -f conftest.err conftest.$ac_objext \ |
28635 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28636 | fi |
28637 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
28638 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
28639 | ||
28640 | if test $ac_cv_func_remove = no; then | |
28641 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
28642 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
28643 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
28644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28645 | else | |
28646 | ac_check_lib_save_LIBS=$LIBS | |
28647 | LIBS="-lposix $LIBS" | |
28648 | cat >conftest.$ac_ext <<_ACEOF | |
28649 | /* confdefs.h. */ | |
28650 | _ACEOF | |
28651 | cat confdefs.h >>conftest.$ac_ext | |
28652 | cat >>conftest.$ac_ext <<_ACEOF | |
28653 | /* end confdefs.h. */ | |
28654 | ||
28655 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28656 | #ifdef __cplusplus | |
28657 | extern "C" | |
28658 | #endif | |
28659 | /* We use char because int might match the return type of a gcc2 | |
28660 | builtin and then its argument prototype would still apply. */ | |
28661 | char remove (); | |
28662 | int | |
28663 | main () | |
28664 | { | |
28665 | remove (); | |
28666 | ; | |
28667 | return 0; | |
28668 | } | |
28669 | _ACEOF | |
28670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28672 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28673 | ac_status=$? |
ac1cb8d3 VS |
28674 | grep -v '^ *+' conftest.er1 >conftest.err |
28675 | rm -f conftest.er1 | |
28676 | cat conftest.err >&5 | |
a848cd7e SC |
28677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28678 | (exit $ac_status); } && | |
f10e38c4 | 28679 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28681 | (eval $ac_try) 2>&5 | |
28682 | ac_status=$? | |
28683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28684 | (exit $ac_status); }; } && | |
28685 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28687 | (eval $ac_try) 2>&5 | |
28688 | ac_status=$? | |
28689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28690 | (exit $ac_status); }; }; then | |
28691 | ac_cv_lib_posix_remove=yes | |
28692 | else | |
28693 | echo "$as_me: failed program was:" >&5 | |
28694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28695 | ||
28696 | ac_cv_lib_posix_remove=no | |
28697 | fi | |
ac1cb8d3 VS |
28698 | rm -f conftest.err conftest.$ac_objext \ |
28699 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28700 | LIBS=$ac_check_lib_save_LIBS |
28701 | fi | |
28702 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
28703 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
28704 | if test $ac_cv_lib_posix_remove = yes; then | |
28705 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
28706 | fi | |
28707 | ||
28708 | fi | |
28709 | ||
28710 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
28711 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
28712 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
28713 | if test "${ac_cv_func_shmat+set}" = set; then | |
28714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28715 | else | |
28716 | cat >conftest.$ac_ext <<_ACEOF | |
28717 | /* confdefs.h. */ | |
28718 | _ACEOF | |
28719 | cat confdefs.h >>conftest.$ac_ext | |
28720 | cat >>conftest.$ac_ext <<_ACEOF | |
28721 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28722 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
28723 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28724 | #define shmat innocuous_shmat | |
28725 | ||
a848cd7e SC |
28726 | /* System header to define __stub macros and hopefully few prototypes, |
28727 | which can conflict with char shmat (); below. | |
28728 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28729 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28730 | |
a848cd7e SC |
28731 | #ifdef __STDC__ |
28732 | # include <limits.h> | |
28733 | #else | |
28734 | # include <assert.h> | |
28735 | #endif | |
ac1cb8d3 VS |
28736 | |
28737 | #undef shmat | |
28738 | ||
a848cd7e SC |
28739 | /* Override any gcc2 internal prototype to avoid an error. */ |
28740 | #ifdef __cplusplus | |
28741 | extern "C" | |
28742 | { | |
28743 | #endif | |
28744 | /* We use char because int might match the return type of a gcc2 | |
28745 | builtin and then its argument prototype would still apply. */ | |
28746 | char shmat (); | |
28747 | /* The GNU C library defines this for functions which it implements | |
28748 | to always fail with ENOSYS. Some functions are actually named | |
28749 | something starting with __ and the normal name is an alias. */ | |
28750 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
28751 | choke me | |
28752 | #else | |
28753 | char (*f) () = shmat; | |
28754 | #endif | |
28755 | #ifdef __cplusplus | |
28756 | } | |
28757 | #endif | |
28758 | ||
28759 | int | |
28760 | main () | |
28761 | { | |
28762 | return f != shmat; | |
28763 | ; | |
28764 | return 0; | |
28765 | } | |
28766 | _ACEOF | |
28767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28769 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28770 | ac_status=$? |
ac1cb8d3 VS |
28771 | grep -v '^ *+' conftest.er1 >conftest.err |
28772 | rm -f conftest.er1 | |
28773 | cat conftest.err >&5 | |
a848cd7e SC |
28774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28775 | (exit $ac_status); } && | |
f10e38c4 | 28776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28778 | (eval $ac_try) 2>&5 | |
28779 | ac_status=$? | |
28780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28781 | (exit $ac_status); }; } && | |
28782 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28784 | (eval $ac_try) 2>&5 | |
28785 | ac_status=$? | |
28786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28787 | (exit $ac_status); }; }; then | |
28788 | ac_cv_func_shmat=yes | |
28789 | else | |
28790 | echo "$as_me: failed program was:" >&5 | |
28791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28792 | ||
28793 | ac_cv_func_shmat=no | |
28794 | fi | |
ac1cb8d3 VS |
28795 | rm -f conftest.err conftest.$ac_objext \ |
28796 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28797 | fi |
28798 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
28799 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
28800 | ||
28801 | if test $ac_cv_func_shmat = no; then | |
28802 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
28803 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
28804 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
28805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28806 | else | |
28807 | ac_check_lib_save_LIBS=$LIBS | |
28808 | LIBS="-lipc $LIBS" | |
28809 | cat >conftest.$ac_ext <<_ACEOF | |
28810 | /* confdefs.h. */ | |
28811 | _ACEOF | |
28812 | cat confdefs.h >>conftest.$ac_ext | |
28813 | cat >>conftest.$ac_ext <<_ACEOF | |
28814 | /* end confdefs.h. */ | |
28815 | ||
28816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28817 | #ifdef __cplusplus | |
28818 | extern "C" | |
28819 | #endif | |
28820 | /* We use char because int might match the return type of a gcc2 | |
28821 | builtin and then its argument prototype would still apply. */ | |
28822 | char shmat (); | |
28823 | int | |
28824 | main () | |
28825 | { | |
28826 | shmat (); | |
28827 | ; | |
28828 | return 0; | |
28829 | } | |
28830 | _ACEOF | |
28831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28833 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28834 | ac_status=$? |
ac1cb8d3 VS |
28835 | grep -v '^ *+' conftest.er1 >conftest.err |
28836 | rm -f conftest.er1 | |
28837 | cat conftest.err >&5 | |
a848cd7e SC |
28838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28839 | (exit $ac_status); } && | |
f10e38c4 | 28840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28842 | (eval $ac_try) 2>&5 | |
28843 | ac_status=$? | |
28844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28845 | (exit $ac_status); }; } && | |
28846 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28848 | (eval $ac_try) 2>&5 | |
28849 | ac_status=$? | |
28850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28851 | (exit $ac_status); }; }; then | |
28852 | ac_cv_lib_ipc_shmat=yes | |
28853 | else | |
28854 | echo "$as_me: failed program was:" >&5 | |
28855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28856 | ||
28857 | ac_cv_lib_ipc_shmat=no | |
28858 | fi | |
ac1cb8d3 VS |
28859 | rm -f conftest.err conftest.$ac_objext \ |
28860 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28861 | LIBS=$ac_check_lib_save_LIBS |
28862 | fi | |
28863 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
28864 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
28865 | if test $ac_cv_lib_ipc_shmat = yes; then | |
28866 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
28867 | fi | |
28868 | ||
28869 | fi | |
28870 | fi | |
28871 | ||
28872 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
28873 | ac_save_LDFLAGS=$LDFLAGS | |
28874 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
28875 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
28876 | # check for ICE first), but we must link in the order -lSM -lICE or | |
28877 | # we get undefined symbols. So assume we have SM if we have ICE. | |
28878 | # These have to be linked with before -lX11, unlike the other | |
28879 | # libraries we check for below, so use a different variable. | |
28880 | # John Interrante, Karl Berry | |
28881 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
28882 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
28883 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
28884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28885 | else | |
28886 | ac_check_lib_save_LIBS=$LIBS | |
28887 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
28888 | cat >conftest.$ac_ext <<_ACEOF | |
28889 | /* confdefs.h. */ | |
28890 | _ACEOF | |
28891 | cat confdefs.h >>conftest.$ac_ext | |
28892 | cat >>conftest.$ac_ext <<_ACEOF | |
28893 | /* end confdefs.h. */ | |
28894 | ||
28895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28896 | #ifdef __cplusplus | |
28897 | extern "C" | |
28898 | #endif | |
28899 | /* We use char because int might match the return type of a gcc2 | |
28900 | builtin and then its argument prototype would still apply. */ | |
28901 | char IceConnectionNumber (); | |
28902 | int | |
28903 | main () | |
28904 | { | |
28905 | IceConnectionNumber (); | |
28906 | ; | |
28907 | return 0; | |
28908 | } | |
28909 | _ACEOF | |
28910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28912 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28913 | ac_status=$? |
ac1cb8d3 VS |
28914 | grep -v '^ *+' conftest.er1 >conftest.err |
28915 | rm -f conftest.er1 | |
28916 | cat conftest.err >&5 | |
a848cd7e SC |
28917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28918 | (exit $ac_status); } && | |
f10e38c4 | 28919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28921 | (eval $ac_try) 2>&5 | |
28922 | ac_status=$? | |
28923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28924 | (exit $ac_status); }; } && | |
28925 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28927 | (eval $ac_try) 2>&5 | |
28928 | ac_status=$? | |
28929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28930 | (exit $ac_status); }; }; then | |
28931 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
28932 | else | |
28933 | echo "$as_me: failed program was:" >&5 | |
28934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28935 | ||
28936 | ac_cv_lib_ICE_IceConnectionNumber=no | |
28937 | fi | |
ac1cb8d3 VS |
28938 | rm -f conftest.err conftest.$ac_objext \ |
28939 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28940 | LIBS=$ac_check_lib_save_LIBS |
28941 | fi | |
28942 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
28943 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
28944 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
28945 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
28946 | fi | |
28947 | ||
28948 | LDFLAGS=$ac_save_LDFLAGS | |
28949 | ||
28950 | fi | |
28951 | ||
28952 | ||
28953 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
28954 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
28955 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
28956 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
28957 | fi |
28958 | ||
74b84332 VS |
28959 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
28960 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
28961 | AFMINSTALL=afminstall |
28962 | COMPILED_X_PROGRAM=0 | |
28963 | ||
74b84332 VS |
28964 | fi |
28965 | ||
28966 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
28967 | if test "$wxUSE_NANOX" = "yes"; then |
28968 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
28969 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
28970 | if test "x$MICROWIN" = x ; then | |
28971 | echo "$as_me:$LINENO: result: not found" >&5 | |
28972 | echo "${ECHO_T}not found" >&6 | |
28973 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
28974 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
28975 | { (exit 1); exit 1; }; } | |
28976 | else | |
28977 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
28978 | echo "${ECHO_T}$MICROWIN" >&6 | |
28979 | cat >>confdefs.h <<\_ACEOF | |
28980 | #define wxUSE_NANOX 1 | |
28981 | _ACEOF | |
28982 | ||
28983 | fi | |
28984 | fi | |
28985 | ||
28986 | if test "$wxUSE_UNICODE" = "yes"; then | |
28987 | ||
28988 | succeeded=no | |
28989 | ||
28990 | if test -z "$PKG_CONFIG"; then | |
28991 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28992 | set dummy pkg-config; ac_word=$2 | |
28993 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28995 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28997 | else | |
28998 | case $PKG_CONFIG in | |
28999 | [\\/]* | ?:[\\/]*) | |
29000 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29001 | ;; | |
29002 | *) | |
29003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29004 | for as_dir in $PATH | |
29005 | do | |
29006 | IFS=$as_save_IFS | |
29007 | test -z "$as_dir" && as_dir=. | |
29008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29009 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29010 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29011 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29012 | break 2 | |
29013 | fi | |
29014 | done | |
29015 | done | |
29016 | ||
29017 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29018 | ;; | |
29019 | esac | |
29020 | fi | |
29021 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29022 | ||
29023 | if test -n "$PKG_CONFIG"; then | |
29024 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29025 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29026 | else | |
29027 | echo "$as_me:$LINENO: result: no" >&5 | |
29028 | echo "${ECHO_T}no" >&6 | |
29029 | fi | |
29030 | ||
29031 | fi | |
29032 | ||
29033 | if test "$PKG_CONFIG" = "no" ; then | |
29034 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29035 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29036 | echo "*** to the full path to pkg-config." | |
29037 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29038 | else | |
29039 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29040 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29041 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
29042 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
29043 | ||
29044 | if $PKG_CONFIG --exists "pangox" ; then | |
29045 | echo "$as_me:$LINENO: result: yes" >&5 | |
29046 | echo "${ECHO_T}yes" >&6 | |
29047 | succeeded=yes | |
29048 | ||
29049 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
29050 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
29051 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
29052 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
29053 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
29054 | ||
29055 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
29056 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
29057 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
29058 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
29059 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
29060 | else | |
29061 | PANGOX_CFLAGS="" | |
29062 | PANGOX_LIBS="" | |
29063 | ## If we have a custom action on failure, don't print errors, but | |
29064 | ## do set a variable so people can do so. | |
29065 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
29066 | ||
29067 | fi | |
29068 | ||
29069 | ||
29070 | ||
29071 | else | |
29072 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29073 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29074 | fi | |
29075 | fi | |
29076 | ||
29077 | if test $succeeded = yes; then | |
29078 | ||
c92ad099 | 29079 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29080 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
29081 | ||
29082 | else | |
29083 | ||
29084 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
29085 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
29086 | { (exit 1); exit 1; }; } | |
29087 | ||
29088 | ||
29089 | fi | |
29090 | ||
29091 | ||
29092 | succeeded=no | |
29093 | ||
29094 | if test -z "$PKG_CONFIG"; then | |
29095 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29096 | set dummy pkg-config; ac_word=$2 | |
29097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29099 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29101 | else | |
29102 | case $PKG_CONFIG in | |
29103 | [\\/]* | ?:[\\/]*) | |
29104 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29105 | ;; | |
29106 | *) | |
29107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29108 | for as_dir in $PATH | |
29109 | do | |
29110 | IFS=$as_save_IFS | |
29111 | test -z "$as_dir" && as_dir=. | |
29112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29114 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29116 | break 2 | |
29117 | fi | |
29118 | done | |
29119 | done | |
29120 | ||
29121 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29122 | ;; | |
29123 | esac | |
29124 | fi | |
29125 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29126 | ||
29127 | if test -n "$PKG_CONFIG"; then | |
29128 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29129 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29130 | else | |
29131 | echo "$as_me:$LINENO: result: no" >&5 | |
29132 | echo "${ECHO_T}no" >&6 | |
29133 | fi | |
29134 | ||
29135 | fi | |
29136 | ||
29137 | if test "$PKG_CONFIG" = "no" ; then | |
29138 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29139 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29140 | echo "*** to the full path to pkg-config." | |
29141 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29142 | else | |
29143 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29144 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29145 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
29146 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
29147 | ||
29148 | if $PKG_CONFIG --exists "pangoft2" ; then | |
29149 | echo "$as_me:$LINENO: result: yes" >&5 | |
29150 | echo "${ECHO_T}yes" >&6 | |
29151 | succeeded=yes | |
29152 | ||
29153 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
29154 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
29155 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
29156 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
29157 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
29158 | ||
29159 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
29160 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
29161 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
29162 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
29163 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
29164 | else | |
29165 | PANGOFT2_CFLAGS="" | |
29166 | PANGOFT2_LIBS="" | |
29167 | ## If we have a custom action on failure, don't print errors, but | |
29168 | ## do set a variable so people can do so. | |
29169 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
29170 | ||
29171 | fi | |
29172 | ||
29173 | ||
29174 | ||
29175 | else | |
29176 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29177 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29178 | fi | |
29179 | fi | |
29180 | ||
29181 | if test $succeeded = yes; then | |
29182 | ||
c92ad099 | 29183 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29184 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
29185 | ||
29186 | else | |
29187 | ||
29188 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
29189 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
29190 | wxUSE_PRINTING_ARCHITECTURE="no" | |
29191 | ||
29192 | ||
29193 | fi | |
29194 | ||
29195 | ||
29196 | succeeded=no | |
29197 | ||
29198 | if test -z "$PKG_CONFIG"; then | |
29199 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29200 | set dummy pkg-config; ac_word=$2 | |
29201 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29202 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29203 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29205 | else | |
29206 | case $PKG_CONFIG in | |
29207 | [\\/]* | ?:[\\/]*) | |
29208 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29209 | ;; | |
29210 | *) | |
29211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29212 | for as_dir in $PATH | |
29213 | do | |
29214 | IFS=$as_save_IFS | |
29215 | test -z "$as_dir" && as_dir=. | |
29216 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29217 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29218 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29219 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29220 | break 2 | |
29221 | fi | |
29222 | done | |
29223 | done | |
29224 | ||
29225 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29226 | ;; | |
29227 | esac | |
29228 | fi | |
29229 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29230 | ||
29231 | if test -n "$PKG_CONFIG"; then | |
29232 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29233 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29234 | else | |
29235 | echo "$as_me:$LINENO: result: no" >&5 | |
29236 | echo "${ECHO_T}no" >&6 | |
29237 | fi | |
29238 | ||
29239 | fi | |
29240 | ||
29241 | if test "$PKG_CONFIG" = "no" ; then | |
29242 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29243 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29244 | echo "*** to the full path to pkg-config." | |
29245 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29246 | else | |
29247 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29248 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29249 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
29250 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
29251 | ||
29252 | if $PKG_CONFIG --exists "pangoxft" ; then | |
29253 | echo "$as_me:$LINENO: result: yes" >&5 | |
29254 | echo "${ECHO_T}yes" >&6 | |
29255 | succeeded=yes | |
29256 | ||
29257 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
29258 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
29259 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
29260 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
29261 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
29262 | ||
29263 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
29264 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
29265 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
29266 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
29267 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
29268 | else | |
29269 | PANGOXFT_CFLAGS="" | |
29270 | PANGOXFT_LIBS="" | |
29271 | ## If we have a custom action on failure, don't print errors, but | |
29272 | ## do set a variable so people can do so. | |
29273 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
29274 | ||
29275 | fi | |
29276 | ||
29277 | ||
29278 | ||
29279 | else | |
29280 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29281 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29282 | fi | |
29283 | fi | |
29284 | ||
29285 | if test $succeeded = yes; then | |
29286 | ||
4ae1af05 MB |
29287 | cat >>confdefs.h <<\_ACEOF |
29288 | #define HAVE_PANGO_XFT 1 | |
29289 | _ACEOF | |
29290 | ||
c92ad099 | 29291 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29292 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
29293 | ||
29294 | else | |
29295 | ||
29296 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
29297 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
29298 | ||
29299 | ||
29300 | fi | |
29301 | ||
304205f1 VS |
29302 | save_CFLAGS="$CFLAGS" |
29303 | save_LIBS="$LIBS" | |
c92ad099 | 29304 | CFLAGS="$PANGOX_CFLAGS $CFLAGS" |
304205f1 VS |
29305 | LIBS="$LIBS $PANGOX_LIBS" |
29306 | ||
29307 | for ac_func in pango_font_family_is_monospace | |
29308 | do | |
29309 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29310 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29311 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29312 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29314 | else | |
29315 | cat >conftest.$ac_ext <<_ACEOF | |
29316 | /* confdefs.h. */ | |
29317 | _ACEOF | |
29318 | cat confdefs.h >>conftest.$ac_ext | |
29319 | cat >>conftest.$ac_ext <<_ACEOF | |
29320 | /* end confdefs.h. */ | |
29321 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
29322 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29323 | #define $ac_func innocuous_$ac_func | |
29324 | ||
29325 | /* System header to define __stub macros and hopefully few prototypes, | |
29326 | which can conflict with char $ac_func (); below. | |
29327 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29328 | <limits.h> exists even on freestanding compilers. */ | |
29329 | ||
29330 | #ifdef __STDC__ | |
29331 | # include <limits.h> | |
29332 | #else | |
29333 | # include <assert.h> | |
29334 | #endif | |
29335 | ||
29336 | #undef $ac_func | |
29337 | ||
29338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29339 | #ifdef __cplusplus | |
29340 | extern "C" | |
29341 | { | |
29342 | #endif | |
29343 | /* We use char because int might match the return type of a gcc2 | |
29344 | builtin and then its argument prototype would still apply. */ | |
29345 | char $ac_func (); | |
29346 | /* The GNU C library defines this for functions which it implements | |
29347 | to always fail with ENOSYS. Some functions are actually named | |
29348 | something starting with __ and the normal name is an alias. */ | |
29349 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29350 | choke me | |
29351 | #else | |
29352 | char (*f) () = $ac_func; | |
29353 | #endif | |
29354 | #ifdef __cplusplus | |
29355 | } | |
29356 | #endif | |
29357 | ||
29358 | int | |
29359 | main () | |
29360 | { | |
29361 | return f != $ac_func; | |
29362 | ; | |
29363 | return 0; | |
29364 | } | |
29365 | _ACEOF | |
29366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29368 | (eval $ac_link) 2>conftest.er1 | |
29369 | ac_status=$? | |
29370 | grep -v '^ *+' conftest.er1 >conftest.err | |
29371 | rm -f conftest.er1 | |
29372 | cat conftest.err >&5 | |
29373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29374 | (exit $ac_status); } && | |
f10e38c4 | 29375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
29376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29377 | (eval $ac_try) 2>&5 | |
29378 | ac_status=$? | |
29379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29380 | (exit $ac_status); }; } && | |
29381 | { ac_try='test -s conftest$ac_exeext' | |
29382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29383 | (eval $ac_try) 2>&5 | |
29384 | ac_status=$? | |
29385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29386 | (exit $ac_status); }; }; then | |
29387 | eval "$as_ac_var=yes" | |
29388 | else | |
29389 | echo "$as_me: failed program was:" >&5 | |
29390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29391 | ||
29392 | eval "$as_ac_var=no" | |
29393 | fi | |
29394 | rm -f conftest.err conftest.$ac_objext \ | |
29395 | conftest$ac_exeext conftest.$ac_ext | |
29396 | fi | |
29397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29398 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29399 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29400 | cat >>confdefs.h <<_ACEOF | |
29401 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29402 | _ACEOF | |
29403 | ||
29404 | fi | |
29405 | done | |
29406 | ||
29407 | CFLAGS="$save_CFLAGS" | |
29408 | LIBS="$save_LIBS" | |
a848cd7e SC |
29409 | fi |
29410 | ||
29411 | wxUSE_UNIVERSAL="yes" | |
29412 | ||
29413 | if test "$wxUSE_NANOX" = "yes"; then | |
29414 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
29415 | 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" | |
29416 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
29417 | else | |
29418 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
29419 | fi | |
29420 | ||
a848cd7e SC |
29421 | TOOLKIT=X11 |
29422 | GUIDIST=X11_DIST | |
29423 | fi | |
29424 | ||
29425 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
29426 | if test "$wxUSE_UNICODE" = "yes"; then |
29427 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
29428 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
29429 | { (exit 1); exit 1; }; } | |
29430 | fi | |
29431 | ||
74b84332 VS |
29432 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
29433 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 29434 | |
74b84332 VS |
29435 | ac_find_includes= |
29436 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29437 | do | |
29438 | if test -f "$ac_dir/Xm/Xm.h"; then | |
29439 | ac_find_includes=$ac_dir | |
29440 | break | |
29441 | fi | |
29442 | done | |
a848cd7e | 29443 | |
74b84332 VS |
29444 | if test "$ac_find_includes" != "" ; then |
29445 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29446 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29447 | ||
29448 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29449 | ac_path_to_include="" | |
29450 | else | |
29451 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
29452 | result=$? | |
29453 | if test $result = 0; then | |
29454 | ac_path_to_include="" | |
29455 | else | |
29456 | ac_path_to_include=" -I$ac_find_includes" | |
29457 | fi | |
a848cd7e SC |
29458 | fi |
29459 | ||
74b84332 VS |
29460 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
29461 | else | |
e051b34e | 29462 | save_CFLAGS=$CFLAGS |
c92ad099 | 29463 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
e051b34e | 29464 | |
74b84332 | 29465 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29466 | /* confdefs.h. */ |
29467 | _ACEOF | |
29468 | cat confdefs.h >>conftest.$ac_ext | |
29469 | cat >>conftest.$ac_ext <<_ACEOF | |
29470 | /* end confdefs.h. */ | |
29471 | ||
74b84332 VS |
29472 | #include <Xm/Xm.h> |
29473 | ||
a848cd7e SC |
29474 | int |
29475 | main () | |
29476 | { | |
29477 | ||
74b84332 VS |
29478 | int version; |
29479 | version = xmUseVersion; | |
29480 | ||
a848cd7e SC |
29481 | ; |
29482 | return 0; | |
29483 | } | |
29484 | _ACEOF | |
74b84332 VS |
29485 | rm -f conftest.$ac_objext |
29486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29487 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 29488 | ac_status=$? |
ac1cb8d3 VS |
29489 | grep -v '^ *+' conftest.er1 >conftest.err |
29490 | rm -f conftest.er1 | |
29491 | cat conftest.err >&5 | |
a848cd7e SC |
29492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29493 | (exit $ac_status); } && | |
f10e38c4 | 29494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29496 | (eval $ac_try) 2>&5 | |
29497 | ac_status=$? | |
29498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29499 | (exit $ac_status); }; } && | |
74b84332 | 29500 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
29501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29502 | (eval $ac_try) 2>&5 | |
29503 | ac_status=$? | |
29504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29505 | (exit $ac_status); }; }; then | |
74b84332 VS |
29506 | |
29507 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
29508 | echo "${ECHO_T}found in default search path" >&6 | |
29509 | COMPILED_X_PROGRAM=1 | |
29510 | ||
a848cd7e SC |
29511 | else |
29512 | echo "$as_me: failed program was:" >&5 | |
29513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29514 | ||
a848cd7e | 29515 | |
74b84332 VS |
29516 | echo "$as_me:$LINENO: result: no" >&5 |
29517 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
29518 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
29519 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 29520 | { (exit 1); exit 1; }; } |
a848cd7e | 29521 | |
a848cd7e | 29522 | |
a848cd7e | 29523 | fi |
74b84332 | 29524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e MW |
29525 | |
29526 | CFLAGS=$save_CFLAGS | |
74b84332 VS |
29527 | fi |
29528 | ||
0ad5d837 VZ |
29529 | |
29530 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
29531 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
29532 | ||
0ad5d837 VZ |
29533 | ac_find_libraries= |
29534 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 29535 | do |
3eca31dc | 29536 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
29537 | if test -f "$ac_dir/libXm.$ac_extension"; then |
29538 | ac_find_libraries=$ac_dir | |
29539 | break 2 | |
a848cd7e | 29540 | fi |
74b84332 VS |
29541 | done |
29542 | done | |
a848cd7e | 29543 | |
0ad5d837 VZ |
29544 | |
29545 | if test "x$ac_find_libraries" != "x" ; then | |
29546 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
29547 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 29548 | |
74b84332 | 29549 | |
0ad5d837 | 29550 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 29551 | ac_path_to_link="" |
a848cd7e | 29552 | else |
0ad5d837 VZ |
29553 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29554 | result=$? | |
29555 | if test $result = 0; then | |
29556 | ac_path_to_link="" | |
29557 | else | |
29558 | ac_path_to_link=" -L$ac_find_libraries" | |
29559 | fi | |
74b84332 VS |
29560 | fi |
29561 | ||
0ad5d837 VZ |
29562 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
29563 | else | |
29564 | save_CFLAGS=$CFLAGS | |
c92ad099 | 29565 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
6f9cf1e6 MW |
29566 | save_LIBS="$LIBS" |
29567 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 29568 | |
0ad5d837 | 29569 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29570 | /* confdefs.h. */ |
29571 | _ACEOF | |
29572 | cat confdefs.h >>conftest.$ac_ext | |
29573 | cat >>conftest.$ac_ext <<_ACEOF | |
29574 | /* end confdefs.h. */ | |
29575 | ||
0ad5d837 | 29576 | #include <Xm/Xm.h> |
74b84332 | 29577 | |
a848cd7e SC |
29578 | int |
29579 | main () | |
29580 | { | |
74b84332 | 29581 | |
0ad5d837 VZ |
29582 | int version; |
29583 | version = xmUseVersion; | |
74b84332 | 29584 | |
a848cd7e SC |
29585 | ; |
29586 | return 0; | |
29587 | } | |
29588 | _ACEOF | |
0ad5d837 VZ |
29589 | rm -f conftest.$ac_objext conftest$ac_exeext |
29590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29591 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 29592 | ac_status=$? |
ac1cb8d3 VS |
29593 | grep -v '^ *+' conftest.er1 >conftest.err |
29594 | rm -f conftest.er1 | |
29595 | cat conftest.err >&5 | |
a848cd7e SC |
29596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29597 | (exit $ac_status); } && | |
f10e38c4 | 29598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29600 | (eval $ac_try) 2>&5 | |
29601 | ac_status=$? | |
29602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29603 | (exit $ac_status); }; } && | |
0ad5d837 | 29604 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29606 | (eval $ac_try) 2>&5 | |
29607 | ac_status=$? | |
29608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29609 | (exit $ac_status); }; }; then | |
74b84332 | 29610 | |
0ad5d837 | 29611 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 29612 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 29613 | COMPILED_X_PROGRAM=1 |
74b84332 | 29614 | |
a848cd7e SC |
29615 | else |
29616 | echo "$as_me: failed program was:" >&5 | |
29617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29618 | ||
74b84332 | 29619 | |
6f9cf1e6 | 29620 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 29621 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 29622 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
29623 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
29624 | { (exit 1); exit 1; }; } | |
29625 | ||
29626 | ||
29627 | fi | |
0ad5d837 VZ |
29628 | rm -f conftest.err conftest.$ac_objext \ |
29629 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 29630 | |
0ad5d837 | 29631 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 29632 | LIBS="$save_LIBS" |
74b84332 VS |
29633 | fi |
29634 | ||
29635 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
29636 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
29637 | libp_link="" | |
29638 | libsm_ice_link="" | |
29639 | libs_found=0 | |
29640 | for libp in "" " -lXp"; do | |
29641 | if test "$libs_found" = "0"; then | |
29642 | for libsm_ice in "" " -lSM -lICE"; do | |
29643 | if test "$libs_found" = "0"; then | |
29644 | save_LIBS="$LIBS" | |
29645 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
29646 | save_CFLAGS=$CFLAGS | |
c92ad099 | 29647 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
74b84332 VS |
29648 | |
29649 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29650 | /* confdefs.h. */ |
29651 | _ACEOF | |
29652 | cat confdefs.h >>conftest.$ac_ext | |
29653 | cat >>conftest.$ac_ext <<_ACEOF | |
29654 | /* end confdefs.h. */ | |
29655 | ||
74b84332 VS |
29656 | #include <Xm/Xm.h> |
29657 | #include <Xm/List.h> | |
29658 | ||
a848cd7e SC |
29659 | int |
29660 | main () | |
29661 | { | |
74b84332 VS |
29662 | |
29663 | XmString string = NULL; | |
29664 | Widget w = NULL; | |
29665 | int position = 0; | |
29666 | XmListAddItem(w, string, position); | |
29667 | ||
a848cd7e SC |
29668 | ; |
29669 | return 0; | |
29670 | } | |
29671 | _ACEOF | |
29672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29674 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29675 | ac_status=$? |
ac1cb8d3 VS |
29676 | grep -v '^ *+' conftest.er1 >conftest.err |
29677 | rm -f conftest.er1 | |
29678 | cat conftest.err >&5 | |
a848cd7e SC |
29679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29680 | (exit $ac_status); } && | |
f10e38c4 | 29681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29683 | (eval $ac_try) 2>&5 | |
29684 | ac_status=$? | |
29685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29686 | (exit $ac_status); }; } && | |
29687 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29689 | (eval $ac_try) 2>&5 | |
29690 | ac_status=$? | |
29691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29692 | (exit $ac_status); }; }; then | |
29693 | ||
29694 | libp_link="$libp" | |
29695 | libsm_ice_link="$libsm_ice" | |
29696 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
29697 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
29698 | libs_found=1 | |
29699 | ||
29700 | else | |
29701 | echo "$as_me: failed program was:" >&5 | |
29702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29703 | ||
29704 | ||
29705 | ||
29706 | fi | |
ac1cb8d3 VS |
29707 | rm -f conftest.err conftest.$ac_objext \ |
29708 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29709 | |
29710 | LIBS="$save_LIBS" | |
29711 | CFLAGS=$save_CFLAGS | |
29712 | fi | |
29713 | done | |
29714 | fi | |
29715 | done | |
29716 | ||
29717 | if test "$libs_found" = "0"; then | |
29718 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
29719 | echo "${ECHO_T}can't find the right libraries" >&6 | |
29720 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
29721 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
29722 | { (exit 1); exit 1; }; } | |
29723 | fi | |
29724 | ||
62fa8b3a MW |
29725 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
29726 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
29727 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
29728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29729 | else | |
29730 | ac_check_lib_save_LIBS=$LIBS | |
29731 | LIBS="-lSgm $LIBS" | |
29732 | cat >conftest.$ac_ext <<_ACEOF | |
29733 | /* confdefs.h. */ | |
29734 | _ACEOF | |
29735 | cat confdefs.h >>conftest.$ac_ext | |
29736 | cat >>conftest.$ac_ext <<_ACEOF | |
29737 | /* end confdefs.h. */ | |
29738 | ||
29739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29740 | #ifdef __cplusplus | |
29741 | extern "C" | |
29742 | #endif | |
29743 | /* We use char because int might match the return type of a gcc2 | |
29744 | builtin and then its argument prototype would still apply. */ | |
29745 | char SgCreateList (); | |
29746 | int | |
29747 | main () | |
29748 | { | |
29749 | SgCreateList (); | |
29750 | ; | |
29751 | return 0; | |
29752 | } | |
29753 | _ACEOF | |
29754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29756 | (eval $ac_link) 2>conftest.er1 | |
29757 | ac_status=$? | |
29758 | grep -v '^ *+' conftest.er1 >conftest.err | |
29759 | rm -f conftest.er1 | |
29760 | cat conftest.err >&5 | |
29761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29762 | (exit $ac_status); } && | |
f10e38c4 | 29763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
29764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29765 | (eval $ac_try) 2>&5 | |
29766 | ac_status=$? | |
29767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29768 | (exit $ac_status); }; } && | |
29769 | { ac_try='test -s conftest$ac_exeext' | |
29770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29771 | (eval $ac_try) 2>&5 | |
29772 | ac_status=$? | |
29773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29774 | (exit $ac_status); }; }; then | |
29775 | ac_cv_lib_Sgm_SgCreateList=yes | |
29776 | else | |
29777 | echo "$as_me: failed program was:" >&5 | |
29778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29779 | ||
29780 | ac_cv_lib_Sgm_SgCreateList=no | |
29781 | fi | |
29782 | rm -f conftest.err conftest.$ac_objext \ | |
29783 | conftest$ac_exeext conftest.$ac_ext | |
29784 | LIBS=$ac_check_lib_save_LIBS | |
29785 | fi | |
29786 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
29787 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
29788 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
29789 | libsgm_link=" -lSgm" | |
29790 | fi | |
29791 | ||
29792 | ||
a848cd7e | 29793 | save_CFLAGS=$CFLAGS |
c92ad099 | 29794 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
0ad5d837 | 29795 | |
a848cd7e SC |
29796 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
29797 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
29798 | if test "${wx_cv_lib_motif2+set}" = set; then |
29799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29800 | else | |
29801 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29802 | /* confdefs.h. */ |
29803 | _ACEOF | |
29804 | cat confdefs.h >>conftest.$ac_ext | |
29805 | cat >>conftest.$ac_ext <<_ACEOF | |
29806 | /* end confdefs.h. */ | |
29807 | ||
0ad5d837 | 29808 | #include <Xm/Xm.h> |
a848cd7e SC |
29809 | |
29810 | int | |
29811 | main () | |
29812 | { | |
29813 | ||
0ad5d837 VZ |
29814 | #if XmVersion < 2000 |
29815 | Not Motif 2 | |
29816 | #endif | |
a848cd7e SC |
29817 | |
29818 | ; | |
29819 | return 0; | |
29820 | } | |
29821 | _ACEOF | |
29822 | rm -f conftest.$ac_objext | |
29823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29824 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29825 | ac_status=$? |
ac1cb8d3 VS |
29826 | grep -v '^ *+' conftest.er1 >conftest.err |
29827 | rm -f conftest.er1 | |
29828 | cat conftest.err >&5 | |
a848cd7e SC |
29829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29830 | (exit $ac_status); } && | |
f10e38c4 | 29831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29833 | (eval $ac_try) 2>&5 | |
29834 | ac_status=$? | |
29835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29836 | (exit $ac_status); }; } && | |
29837 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29839 | (eval $ac_try) 2>&5 | |
29840 | ac_status=$? | |
29841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29842 | (exit $ac_status); }; }; then | |
0ad5d837 | 29843 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
29844 | else |
29845 | echo "$as_me: failed program was:" >&5 | |
29846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29847 | ||
0ad5d837 VZ |
29848 | wx_cv_lib_motif2="no" |
29849 | fi | |
29850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29851 | fi | |
29852 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
29853 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
29854 | if test "$wx_cv_lib_motif2" = "yes"; then | |
29855 | cat >>confdefs.h <<\_ACEOF | |
29856 | #define __WXMOTIF20__ 1 | |
29857 | _ACEOF | |
a848cd7e | 29858 | |
0ad5d837 VZ |
29859 | else |
29860 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
29861 | #define __WXMOTIF20__ 0 |
29862 | _ACEOF | |
29863 | ||
0ad5d837 | 29864 | fi |
2113bc77 MW |
29865 | |
29866 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
29867 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
29868 | if test "${wx_cv_lib_lesstif+set}" = set; then |
29869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29870 | else | |
29871 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
29872 | /* confdefs.h. */ |
29873 | _ACEOF | |
29874 | cat confdefs.h >>conftest.$ac_ext | |
29875 | cat >>conftest.$ac_ext <<_ACEOF | |
29876 | /* end confdefs.h. */ | |
29877 | ||
0ad5d837 | 29878 | #include <Xm/Xm.h> |
2113bc77 MW |
29879 | |
29880 | int | |
29881 | main () | |
29882 | { | |
29883 | ||
0ad5d837 VZ |
29884 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
29885 | Not Lesstif | |
29886 | #endif | |
2113bc77 MW |
29887 | |
29888 | ; | |
29889 | return 0; | |
29890 | } | |
29891 | _ACEOF | |
29892 | rm -f conftest.$ac_objext | |
29893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29894 | (eval $ac_compile) 2>conftest.er1 | |
29895 | ac_status=$? | |
29896 | grep -v '^ *+' conftest.er1 >conftest.err | |
29897 | rm -f conftest.er1 | |
29898 | cat conftest.err >&5 | |
29899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29900 | (exit $ac_status); } && | |
f10e38c4 | 29901 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
29902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29903 | (eval $ac_try) 2>&5 | |
29904 | ac_status=$? | |
29905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29906 | (exit $ac_status); }; } && | |
29907 | { ac_try='test -s conftest.$ac_objext' | |
29908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29909 | (eval $ac_try) 2>&5 | |
29910 | ac_status=$? | |
29911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29912 | (exit $ac_status); }; }; then | |
0ad5d837 | 29913 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
29914 | else |
29915 | echo "$as_me: failed program was:" >&5 | |
29916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29917 | ||
0ad5d837 VZ |
29918 | wx_cv_lib_lesstif="no" |
29919 | fi | |
29920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 29921 | |
0ad5d837 VZ |
29922 | fi |
29923 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
29924 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
29925 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
29926 | cat >>confdefs.h <<\_ACEOF | |
29927 | #define __WXLESSTIF__ 1 | |
29928 | _ACEOF | |
29929 | ||
29930 | else | |
29931 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
29932 | #define __WXLESSTIF__ 0 |
29933 | _ACEOF | |
29934 | ||
0ad5d837 | 29935 | fi |
2113bc77 | 29936 | |
a848cd7e SC |
29937 | CFLAGS=$save_CFLAGS |
29938 | ||
62fa8b3a | 29939 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
29940 | TOOLKIT=MOTIF |
29941 | GUIDIST=MOTIF_DIST | |
29942 | fi | |
29943 | ||
74b84332 | 29944 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
29945 | if test "$wxUSE_LIBXPM" = "sys"; then |
29946 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
29947 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
29948 | ||
0ad5d837 VZ |
29949 | ac_find_libraries= |
29950 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 29951 | do |
3eca31dc | 29952 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
29953 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
29954 | ac_find_libraries=$ac_dir | |
29955 | break 2 | |
29956 | fi | |
29957 | done | |
29958 | done | |
29959 | ||
29960 | if test "$ac_find_libraries" != "" ; then | |
29961 | ||
0ad5d837 | 29962 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
29963 | ac_path_to_link="" |
29964 | else | |
0ad5d837 VZ |
29965 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29966 | result=$? | |
29967 | if test $result = 0; then | |
29968 | ac_path_to_link="" | |
29969 | else | |
29970 | ac_path_to_link=" -L$ac_find_libraries" | |
29971 | fi | |
a848cd7e SC |
29972 | fi |
29973 | ||
29974 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
29975 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
29976 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
29977 | |
29978 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
29979 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
29980 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
29981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29982 | else | |
29983 | ||
29984 | save_CFLAGS=$CFLAGS | |
c92ad099 | 29985 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
a848cd7e SC |
29986 | |
29987 | cat >conftest.$ac_ext <<_ACEOF | |
29988 | /* confdefs.h. */ | |
29989 | _ACEOF | |
29990 | cat confdefs.h >>conftest.$ac_ext | |
29991 | cat >>conftest.$ac_ext <<_ACEOF | |
29992 | /* end confdefs.h. */ | |
29993 | ||
29994 | #include <X11/xpm.h> | |
29995 | ||
29996 | int | |
29997 | main () | |
29998 | { | |
29999 | ||
30000 | int version; | |
30001 | version = XpmLibraryVersion(); | |
30002 | ||
30003 | ; | |
30004 | return 0; | |
30005 | } | |
30006 | _ACEOF | |
30007 | rm -f conftest.$ac_objext | |
30008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30009 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30010 | ac_status=$? |
ac1cb8d3 VS |
30011 | grep -v '^ *+' conftest.er1 >conftest.err |
30012 | rm -f conftest.er1 | |
30013 | cat conftest.err >&5 | |
a848cd7e SC |
30014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30015 | (exit $ac_status); } && | |
f10e38c4 | 30016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30018 | (eval $ac_try) 2>&5 | |
30019 | ac_status=$? | |
30020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30021 | (exit $ac_status); }; } && | |
30022 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30024 | (eval $ac_try) 2>&5 | |
30025 | ac_status=$? | |
30026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30027 | (exit $ac_status); }; }; then | |
30028 | wx_cv_x11_xpm_h=yes | |
30029 | else | |
30030 | echo "$as_me: failed program was:" >&5 | |
30031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30032 | ||
30033 | wx_cv_x11_xpm_h=no | |
30034 | ||
30035 | fi | |
ac1cb8d3 | 30036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30037 | |
30038 | CFLAGS=$save_CFLAGS | |
30039 | ||
30040 | ||
30041 | fi | |
30042 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
30043 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
30044 | ||
30045 | if test $wx_cv_x11_xpm_h = "yes"; then | |
30046 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
30047 | cat >>confdefs.h <<\_ACEOF | |
30048 | #define wxHAVE_LIB_XPM 1 | |
30049 | _ACEOF | |
30050 | ||
30051 | else | |
30052 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
30053 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
30054 | fi | |
30055 | fi | |
30056 | ||
30057 | fi | |
30058 | ||
30059 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
30060 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
30061 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
30062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30063 | else | |
30064 | ac_check_lib_save_LIBS=$LIBS | |
30065 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
30066 | cat >conftest.$ac_ext <<_ACEOF | |
30067 | /* confdefs.h. */ | |
30068 | _ACEOF | |
30069 | cat confdefs.h >>conftest.$ac_ext | |
30070 | cat >>conftest.$ac_ext <<_ACEOF | |
30071 | /* end confdefs.h. */ | |
30072 | ||
30073 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30074 | #ifdef __cplusplus | |
30075 | extern "C" | |
30076 | #endif | |
30077 | /* We use char because int might match the return type of a gcc2 | |
30078 | builtin and then its argument prototype would still apply. */ | |
30079 | char XShapeQueryExtension (); | |
30080 | int | |
30081 | main () | |
30082 | { | |
30083 | XShapeQueryExtension (); | |
30084 | ; | |
30085 | return 0; | |
30086 | } | |
30087 | _ACEOF | |
30088 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30090 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30091 | ac_status=$? |
ac1cb8d3 VS |
30092 | grep -v '^ *+' conftest.er1 >conftest.err |
30093 | rm -f conftest.er1 | |
30094 | cat conftest.err >&5 | |
a848cd7e SC |
30095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30096 | (exit $ac_status); } && | |
f10e38c4 | 30097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30099 | (eval $ac_try) 2>&5 | |
30100 | ac_status=$? | |
30101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30102 | (exit $ac_status); }; } && | |
30103 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30105 | (eval $ac_try) 2>&5 | |
30106 | ac_status=$? | |
30107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30108 | (exit $ac_status); }; }; then | |
30109 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
30110 | else | |
30111 | echo "$as_me: failed program was:" >&5 | |
30112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30113 | ||
30114 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
30115 | fi | |
ac1cb8d3 VS |
30116 | rm -f conftest.err conftest.$ac_objext \ |
30117 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30118 | LIBS=$ac_check_lib_save_LIBS |
30119 | fi | |
30120 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
30121 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
30122 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
30123 | ||
30124 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
30125 | wxHAVE_XEXT_LIB=1 | |
30126 | ||
30127 | fi | |
30128 | ||
30129 | ||
30130 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
30131 | save_CFLAGS="$CFLAGS" | |
c92ad099 | 30132 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
a848cd7e SC |
30133 | |
30134 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
30135 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
30136 | cat >conftest.$ac_ext <<_ACEOF | |
30137 | /* confdefs.h. */ | |
30138 | _ACEOF | |
30139 | cat confdefs.h >>conftest.$ac_ext | |
30140 | cat >>conftest.$ac_ext <<_ACEOF | |
30141 | /* end confdefs.h. */ | |
30142 | ||
30143 | #include <X11/Xlib.h> | |
30144 | #include <X11/extensions/shape.h> | |
30145 | ||
30146 | int | |
30147 | main () | |
30148 | { | |
30149 | ||
30150 | int dummy1, dummy2; | |
30151 | XShapeQueryExtension((Display*)NULL, | |
30152 | (int*)NULL, (int*)NULL); | |
30153 | ||
30154 | ; | |
30155 | return 0; | |
30156 | } | |
30157 | _ACEOF | |
30158 | rm -f conftest.$ac_objext | |
30159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30160 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30161 | ac_status=$? |
ac1cb8d3 VS |
30162 | grep -v '^ *+' conftest.er1 >conftest.err |
30163 | rm -f conftest.er1 | |
30164 | cat conftest.err >&5 | |
a848cd7e SC |
30165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30166 | (exit $ac_status); } && | |
f10e38c4 | 30167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30169 | (eval $ac_try) 2>&5 | |
30170 | ac_status=$? | |
30171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30172 | (exit $ac_status); }; } && | |
30173 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30175 | (eval $ac_try) 2>&5 | |
30176 | ac_status=$? | |
30177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30178 | (exit $ac_status); }; }; then | |
30179 | ||
30180 | cat >>confdefs.h <<\_ACEOF | |
30181 | #define HAVE_XSHAPE 1 | |
30182 | _ACEOF | |
30183 | ||
30184 | echo "$as_me:$LINENO: result: found" >&5 | |
30185 | echo "${ECHO_T}found" >&6 | |
30186 | ||
30187 | else | |
30188 | echo "$as_me: failed program was:" >&5 | |
30189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30190 | ||
30191 | ||
30192 | echo "$as_me:$LINENO: result: not found" >&5 | |
30193 | echo "${ECHO_T}not found" >&6 | |
30194 | ||
30195 | fi | |
ac1cb8d3 | 30196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30197 | CFLAGS="$save_CFLAGS" |
30198 | ||
30199 | fi | |
30200 | fi | |
30201 | ||
30202 | if test "$wxUSE_MAC" = 1; then | |
30203 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
30204 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
30205 | if test "$GCC" = yes; then | |
30206 | echo "$as_me:$LINENO: result: gcc" >&5 | |
30207 | echo "${ECHO_T}gcc" >&6 | |
30208 | CPPFLAGS_PASCAL="-fpascal-strings" | |
30209 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
30210 | echo "$as_me:$LINENO: result: xlc" >&5 | |
30211 | echo "${ECHO_T}xlc" >&6 | |
30212 | CPPFLAGS_PASCAL="-qmacpstr" | |
30213 | else | |
30214 | echo "$as_me:$LINENO: result: none" >&5 | |
30215 | echo "${ECHO_T}none" >&6 | |
30216 | fi | |
30217 | ||
1e9e8aba | 30218 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 30219 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 30220 | else |
c92ad099 | 30221 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 30222 | fi |
a848cd7e | 30223 | |
a848cd7e SC |
30224 | TOOLKIT=MAC |
30225 | GUIDIST=MACX_DIST | |
dd21ced8 | 30226 | WXBASEPORT="_carbon" |
a848cd7e SC |
30227 | fi |
30228 | ||
30229 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
30230 | TOOLKIT=COCOA |
30231 | GUIDIST=COCOA_DIST | |
30232 | fi | |
30233 | ||
30234 | if test "$wxUSE_PM" = 1; then | |
30235 | TOOLKIT=PM | |
de59c161 RD |
30236 | GUIDIST=PM_DIST |
30237 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
30238 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
30239 | if test "${wx_cv_spbcdata+set}" = set; then | |
30240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30241 | else | |
30242 | ||
30243 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
30244 | /* confdefs.h. */ |
30245 | _ACEOF | |
30246 | cat confdefs.h >>conftest.$ac_ext | |
30247 | cat >>conftest.$ac_ext <<_ACEOF | |
30248 | /* end confdefs.h. */ | |
30249 | ||
30250 | #define INCL_PM | |
30251 | #include <os2.h> | |
30252 | ||
30253 | int | |
30254 | main () | |
30255 | { | |
30256 | ||
30257 | SPBCDATA test; | |
30258 | ||
30259 | ; | |
30260 | return 0; | |
30261 | } | |
30262 | _ACEOF | |
30263 | rm -f conftest.$ac_objext | |
30264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30265 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 30266 | ac_status=$? |
ac1cb8d3 VS |
30267 | grep -v '^ *+' conftest.er1 >conftest.err |
30268 | rm -f conftest.er1 | |
30269 | cat conftest.err >&5 | |
de59c161 RD |
30270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30271 | (exit $ac_status); } && | |
f10e38c4 | 30272 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30274 | (eval $ac_try) 2>&5 | |
30275 | ac_status=$? | |
30276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30277 | (exit $ac_status); }; } && | |
30278 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
30279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30280 | (eval $ac_try) 2>&5 | |
30281 | ac_status=$? | |
30282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30283 | (exit $ac_status); }; }; then | |
30284 | wx_cv_spbcdata=yes | |
30285 | else | |
30286 | echo "$as_me: failed program was:" >&5 | |
30287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30288 | ||
30289 | wx_cv_spbcdata=no | |
30290 | ||
30291 | fi | |
ac1cb8d3 | 30292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
30293 | |
30294 | ||
30295 | fi | |
30296 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
30297 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
30298 | ||
30299 | if test $wx_cv_spbcdata = "yes"; then | |
30300 | cat >>confdefs.h <<\_ACEOF | |
30301 | #define HAVE_SPBCDATA 1 | |
30302 | _ACEOF | |
30303 | ||
30304 | fi | |
a848cd7e SC |
30305 | fi |
30306 | ||
30307 | if test "$TOOLKIT" = "PM" ; then | |
30308 | TOOLKIT_DIR="os2" | |
30309 | else | |
30310 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
30311 | fi | |
30312 | ||
a848cd7e | 30313 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
30314 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
30315 | WIDGET_SET=univ | |
a848cd7e SC |
30316 | fi |
30317 | ||
30318 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
30319 | DISTDIR="wx\$(TOOLKIT)" | |
30320 | else | |
30321 | USE_GUI=0 | |
30322 | ||
30323 | TOOLKIT_DIR="base" | |
30324 | ||
30325 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 30326 | TOOLKIT="MSW" |
a848cd7e SC |
30327 | fi |
30328 | ||
a848cd7e SC |
30329 | GUIDIST="BASE_DIST" |
30330 | DISTDIR="wxBase" | |
30331 | fi | |
30332 | ||
30333 | ||
d12aef51 VZ |
30334 | if test "$wxUSE_GUI" = "yes"; then |
30335 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
30336 | ||
30337 | for ac_header in X11/Xlib.h | |
30338 | do | |
30339 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30341 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30342 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30343 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30345 | fi | |
30346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30347 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30348 | else | |
30349 | # Is the header compilable? | |
30350 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30351 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30352 | cat >conftest.$ac_ext <<_ACEOF | |
30353 | /* confdefs.h. */ | |
30354 | _ACEOF | |
30355 | cat confdefs.h >>conftest.$ac_ext | |
30356 | cat >>conftest.$ac_ext <<_ACEOF | |
30357 | /* end confdefs.h. */ | |
30358 | $ac_includes_default | |
30359 | #include <$ac_header> | |
30360 | _ACEOF | |
30361 | rm -f conftest.$ac_objext | |
30362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30363 | (eval $ac_compile) 2>conftest.er1 | |
30364 | ac_status=$? | |
30365 | grep -v '^ *+' conftest.er1 >conftest.err | |
30366 | rm -f conftest.er1 | |
30367 | cat conftest.err >&5 | |
30368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30369 | (exit $ac_status); } && | |
f10e38c4 | 30370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
30371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30372 | (eval $ac_try) 2>&5 | |
30373 | ac_status=$? | |
30374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30375 | (exit $ac_status); }; } && | |
30376 | { ac_try='test -s conftest.$ac_objext' | |
30377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30378 | (eval $ac_try) 2>&5 | |
30379 | ac_status=$? | |
30380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30381 | (exit $ac_status); }; }; then | |
30382 | ac_header_compiler=yes | |
30383 | else | |
30384 | echo "$as_me: failed program was:" >&5 | |
30385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30386 | ||
30387 | ac_header_compiler=no | |
30388 | fi | |
30389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30390 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
30391 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30392 | ||
30393 | # Is the header present? | |
30394 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
30395 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
30396 | cat >conftest.$ac_ext <<_ACEOF | |
30397 | /* confdefs.h. */ | |
30398 | _ACEOF | |
30399 | cat confdefs.h >>conftest.$ac_ext | |
30400 | cat >>conftest.$ac_ext <<_ACEOF | |
30401 | /* end confdefs.h. */ | |
30402 | #include <$ac_header> | |
30403 | _ACEOF | |
30404 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30405 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30406 | ac_status=$? | |
30407 | grep -v '^ *+' conftest.er1 >conftest.err | |
30408 | rm -f conftest.er1 | |
30409 | cat conftest.err >&5 | |
30410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30411 | (exit $ac_status); } >/dev/null; then | |
30412 | if test -s conftest.err; then | |
30413 | ac_cpp_err=$ac_c_preproc_warn_flag | |
30414 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
30415 | else | |
30416 | ac_cpp_err= | |
30417 | fi | |
30418 | else | |
30419 | ac_cpp_err=yes | |
30420 | fi | |
30421 | if test -z "$ac_cpp_err"; then | |
30422 | ac_header_preproc=yes | |
30423 | else | |
30424 | echo "$as_me: failed program was:" >&5 | |
30425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30426 | ||
30427 | ac_header_preproc=no | |
30428 | fi | |
30429 | rm -f conftest.err conftest.$ac_ext | |
30430 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30431 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30432 | ||
30433 | # So? What about this header? | |
30434 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
30435 | yes:no: ) | |
30436 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
30437 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
30438 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
30439 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
30440 | ac_header_preproc=yes | |
30441 | ;; | |
30442 | no:yes:* ) | |
30443 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
30444 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
30445 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
30446 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
30447 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
30448 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
30449 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
30450 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
30451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
30452 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30453 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
30454 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
30455 | ( | |
30456 | cat <<\_ASBOX | |
30457 | ## ----------------------------------------- ## | |
30458 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30459 | ## ----------------------------------------- ## | |
30460 | _ASBOX | |
30461 | ) | | |
30462 | sed "s/^/$as_me: WARNING: /" >&2 | |
30463 | ;; | |
30464 | esac | |
30465 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30467 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30469 | else | |
30470 | eval "$as_ac_Header=\$ac_header_preproc" | |
30471 | fi | |
30472 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30473 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30474 | ||
30475 | fi | |
30476 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30477 | cat >>confdefs.h <<_ACEOF | |
30478 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30479 | _ACEOF | |
30480 | ||
30481 | fi | |
30482 | ||
30483 | done | |
30484 | ||
30485 | ||
30486 | for ac_header in X11/XKBlib.h | |
30487 | do | |
30488 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30489 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30490 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30493 | else | |
30494 | cat >conftest.$ac_ext <<_ACEOF | |
30495 | /* confdefs.h. */ | |
30496 | _ACEOF | |
30497 | cat confdefs.h >>conftest.$ac_ext | |
30498 | cat >>conftest.$ac_ext <<_ACEOF | |
30499 | /* end confdefs.h. */ | |
30500 | ||
30501 | #if HAVE_X11_XLIB_H | |
30502 | #include <X11/Xlib.h> | |
30503 | #endif | |
30504 | ||
30505 | ||
30506 | #include <$ac_header> | |
30507 | _ACEOF | |
30508 | rm -f conftest.$ac_objext | |
30509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30510 | (eval $ac_compile) 2>conftest.er1 | |
30511 | ac_status=$? | |
30512 | grep -v '^ *+' conftest.er1 >conftest.err | |
30513 | rm -f conftest.er1 | |
30514 | cat conftest.err >&5 | |
30515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30516 | (exit $ac_status); } && | |
f10e38c4 | 30517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
30518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30519 | (eval $ac_try) 2>&5 | |
30520 | ac_status=$? | |
30521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30522 | (exit $ac_status); }; } && | |
30523 | { ac_try='test -s conftest.$ac_objext' | |
30524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30525 | (eval $ac_try) 2>&5 | |
30526 | ac_status=$? | |
30527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30528 | (exit $ac_status); }; }; then | |
30529 | eval "$as_ac_Header=yes" | |
30530 | else | |
30531 | echo "$as_me: failed program was:" >&5 | |
30532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30533 | ||
30534 | eval "$as_ac_Header=no" | |
30535 | fi | |
30536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30537 | fi | |
30538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30539 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30540 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30541 | cat >>confdefs.h <<_ACEOF | |
30542 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30543 | _ACEOF | |
30544 | ||
30545 | fi | |
30546 | ||
30547 | done | |
30548 | ||
30549 | fi | |
30550 | fi | |
30551 | ||
a848cd7e SC |
30552 | |
30553 | ||
30554 | IODBC_C_SRC="" | |
30555 | ||
30556 | ||
30557 | if test "$TOOLKIT" != "MSW" ; then | |
30558 | ||
30559 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
30560 | ||
30561 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30562 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30563 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30564 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30566 | fi | |
30567 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30568 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30569 | else | |
30570 | # Is the header compilable? | |
30571 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
30572 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
30573 | cat >conftest.$ac_ext <<_ACEOF | |
30574 | /* confdefs.h. */ | |
30575 | _ACEOF | |
30576 | cat confdefs.h >>conftest.$ac_ext | |
30577 | cat >>conftest.$ac_ext <<_ACEOF | |
30578 | /* end confdefs.h. */ | |
30579 | $ac_includes_default | |
30580 | #include <sql.h> | |
30581 | _ACEOF | |
30582 | rm -f conftest.$ac_objext | |
30583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30584 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30585 | ac_status=$? |
ac1cb8d3 VS |
30586 | grep -v '^ *+' conftest.er1 >conftest.err |
30587 | rm -f conftest.er1 | |
30588 | cat conftest.err >&5 | |
a848cd7e SC |
30589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30590 | (exit $ac_status); } && | |
f10e38c4 | 30591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30593 | (eval $ac_try) 2>&5 | |
30594 | ac_status=$? | |
30595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30596 | (exit $ac_status); }; } && | |
30597 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30599 | (eval $ac_try) 2>&5 | |
30600 | ac_status=$? | |
30601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30602 | (exit $ac_status); }; }; then | |
30603 | ac_header_compiler=yes | |
30604 | else | |
30605 | echo "$as_me: failed program was:" >&5 | |
30606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30607 | ||
30608 | ac_header_compiler=no | |
30609 | fi | |
ac1cb8d3 | 30610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30611 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30612 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30613 | ||
30614 | # Is the header present? | |
30615 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
30616 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
30617 | cat >conftest.$ac_ext <<_ACEOF | |
30618 | /* confdefs.h. */ | |
30619 | _ACEOF | |
30620 | cat confdefs.h >>conftest.$ac_ext | |
30621 | cat >>conftest.$ac_ext <<_ACEOF | |
30622 | /* end confdefs.h. */ | |
30623 | #include <sql.h> | |
30624 | _ACEOF | |
30625 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30626 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30627 | ac_status=$? | |
30628 | grep -v '^ *+' conftest.er1 >conftest.err | |
30629 | rm -f conftest.er1 | |
30630 | cat conftest.err >&5 | |
30631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30632 | (exit $ac_status); } >/dev/null; then | |
30633 | if test -s conftest.err; then | |
30634 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 30635 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
30636 | else |
30637 | ac_cpp_err= | |
30638 | fi | |
30639 | else | |
30640 | ac_cpp_err=yes | |
30641 | fi | |
30642 | if test -z "$ac_cpp_err"; then | |
30643 | ac_header_preproc=yes | |
30644 | else | |
30645 | echo "$as_me: failed program was:" >&5 | |
30646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30647 | ||
30648 | ac_header_preproc=no | |
30649 | fi | |
30650 | rm -f conftest.err conftest.$ac_ext | |
30651 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30652 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30653 | ||
30654 | # So? What about this header? | |
ac1cb8d3 VS |
30655 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
30656 | yes:no: ) | |
a848cd7e SC |
30657 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
30658 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
30659 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
30660 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
30661 | ac_header_preproc=yes | |
a848cd7e | 30662 | ;; |
ac1cb8d3 | 30663 | no:yes:* ) |
a848cd7e SC |
30664 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
30665 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
30666 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
30667 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
30668 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
30669 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
30670 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
30671 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
30672 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
30673 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
30674 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
30675 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
30676 | ( |
30677 | cat <<\_ASBOX | |
ac1cb8d3 VS |
30678 | ## ----------------------------------------- ## |
30679 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30680 | ## ----------------------------------------- ## | |
a848cd7e SC |
30681 | _ASBOX |
30682 | ) | | |
30683 | sed "s/^/$as_me: WARNING: /" >&2 | |
30684 | ;; | |
30685 | esac | |
30686 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30687 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30688 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30690 | else | |
30691 | ac_cv_header_sql_h=$ac_header_preproc | |
30692 | fi | |
30693 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30694 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30695 | ||
30696 | fi | |
30697 | if test $ac_cv_header_sql_h = yes; then | |
30698 | found_sql_h=1 | |
30699 | fi | |
30700 | ||
30701 | ||
30702 | if test "x$found_sql_h" = "x1" ; then | |
30703 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
30704 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
30705 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
30706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30707 | else | |
30708 | ac_check_lib_save_LIBS=$LIBS | |
30709 | LIBS="-liodbc $LIBS" | |
30710 | cat >conftest.$ac_ext <<_ACEOF | |
30711 | /* confdefs.h. */ | |
30712 | _ACEOF | |
30713 | cat confdefs.h >>conftest.$ac_ext | |
30714 | cat >>conftest.$ac_ext <<_ACEOF | |
30715 | /* end confdefs.h. */ | |
30716 | ||
30717 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30718 | #ifdef __cplusplus | |
30719 | extern "C" | |
30720 | #endif | |
30721 | /* We use char because int might match the return type of a gcc2 | |
30722 | builtin and then its argument prototype would still apply. */ | |
30723 | char SQLAllocEnv (); | |
30724 | int | |
30725 | main () | |
30726 | { | |
30727 | SQLAllocEnv (); | |
30728 | ; | |
30729 | return 0; | |
30730 | } | |
30731 | _ACEOF | |
30732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30734 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30735 | ac_status=$? |
ac1cb8d3 VS |
30736 | grep -v '^ *+' conftest.er1 >conftest.err |
30737 | rm -f conftest.er1 | |
30738 | cat conftest.err >&5 | |
a848cd7e SC |
30739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30740 | (exit $ac_status); } && | |
f10e38c4 | 30741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30743 | (eval $ac_try) 2>&5 | |
30744 | ac_status=$? | |
30745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30746 | (exit $ac_status); }; } && | |
30747 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30749 | (eval $ac_try) 2>&5 | |
30750 | ac_status=$? | |
30751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30752 | (exit $ac_status); }; }; then | |
30753 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
30754 | else | |
30755 | echo "$as_me: failed program was:" >&5 | |
30756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30757 | ||
30758 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
30759 | fi | |
ac1cb8d3 VS |
30760 | rm -f conftest.err conftest.$ac_objext \ |
30761 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30762 | LIBS=$ac_check_lib_save_LIBS |
30763 | fi | |
30764 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
30765 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
30766 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
30767 | ODBC_LINK=" -liodbc" | |
30768 | else | |
30769 | ||
30770 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
30771 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
30772 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
30773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30774 | else | |
30775 | ac_check_lib_save_LIBS=$LIBS | |
30776 | LIBS="-lunixodbc $LIBS" | |
30777 | cat >conftest.$ac_ext <<_ACEOF | |
30778 | /* confdefs.h. */ | |
30779 | _ACEOF | |
30780 | cat confdefs.h >>conftest.$ac_ext | |
30781 | cat >>conftest.$ac_ext <<_ACEOF | |
30782 | /* end confdefs.h. */ | |
30783 | ||
30784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30785 | #ifdef __cplusplus | |
30786 | extern "C" | |
30787 | #endif | |
30788 | /* We use char because int might match the return type of a gcc2 | |
30789 | builtin and then its argument prototype would still apply. */ | |
30790 | char SQLAllocEnv (); | |
30791 | int | |
30792 | main () | |
30793 | { | |
30794 | SQLAllocEnv (); | |
30795 | ; | |
30796 | return 0; | |
30797 | } | |
30798 | _ACEOF | |
30799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30801 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30802 | ac_status=$? |
ac1cb8d3 VS |
30803 | grep -v '^ *+' conftest.er1 >conftest.err |
30804 | rm -f conftest.er1 | |
30805 | cat conftest.err >&5 | |
a848cd7e SC |
30806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30807 | (exit $ac_status); } && | |
f10e38c4 | 30808 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30810 | (eval $ac_try) 2>&5 | |
30811 | ac_status=$? | |
30812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30813 | (exit $ac_status); }; } && | |
30814 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30816 | (eval $ac_try) 2>&5 | |
30817 | ac_status=$? | |
30818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30819 | (exit $ac_status); }; }; then | |
30820 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
30821 | else | |
30822 | echo "$as_me: failed program was:" >&5 | |
30823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30824 | ||
30825 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
30826 | fi | |
ac1cb8d3 VS |
30827 | rm -f conftest.err conftest.$ac_objext \ |
30828 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30829 | LIBS=$ac_check_lib_save_LIBS |
30830 | fi | |
30831 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
30832 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
30833 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
30834 | ODBC_LINK=" -lunixodbc" | |
30835 | else | |
30836 | ||
30837 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
30838 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
30839 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
30840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30841 | else | |
30842 | ac_check_lib_save_LIBS=$LIBS | |
30843 | LIBS="-lodbc $LIBS" | |
30844 | cat >conftest.$ac_ext <<_ACEOF | |
30845 | /* confdefs.h. */ | |
30846 | _ACEOF | |
30847 | cat confdefs.h >>conftest.$ac_ext | |
30848 | cat >>conftest.$ac_ext <<_ACEOF | |
30849 | /* end confdefs.h. */ | |
30850 | ||
30851 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30852 | #ifdef __cplusplus | |
30853 | extern "C" | |
30854 | #endif | |
30855 | /* We use char because int might match the return type of a gcc2 | |
30856 | builtin and then its argument prototype would still apply. */ | |
30857 | char SQLAllocEnv (); | |
30858 | int | |
30859 | main () | |
30860 | { | |
30861 | SQLAllocEnv (); | |
30862 | ; | |
30863 | return 0; | |
30864 | } | |
30865 | _ACEOF | |
30866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30868 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30869 | ac_status=$? |
ac1cb8d3 VS |
30870 | grep -v '^ *+' conftest.er1 >conftest.err |
30871 | rm -f conftest.er1 | |
30872 | cat conftest.err >&5 | |
a848cd7e SC |
30873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30874 | (exit $ac_status); } && | |
f10e38c4 | 30875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30877 | (eval $ac_try) 2>&5 | |
30878 | ac_status=$? | |
30879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30880 | (exit $ac_status); }; } && | |
30881 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
30887 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
30888 | else | |
30889 | echo "$as_me: failed program was:" >&5 | |
30890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30891 | ||
30892 | ac_cv_lib_odbc_SQLAllocEnv=no | |
30893 | fi | |
ac1cb8d3 VS |
30894 | rm -f conftest.err conftest.$ac_objext \ |
30895 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30896 | LIBS=$ac_check_lib_save_LIBS |
30897 | fi | |
30898 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
30899 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
30900 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
30901 | ODBC_LINK=" -lodbc" | |
30902 | fi | |
30903 | ||
30904 | ||
30905 | fi | |
30906 | ||
30907 | ||
30908 | fi | |
30909 | ||
30910 | fi | |
30911 | if test "x$ODBC_LINK" = "x" ; then | |
30912 | if test "$wxUSE_ODBC" = "sys" ; then | |
30913 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
30914 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
30915 | { (exit 1); exit 1; }; } | |
30916 | else | |
30917 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
30918 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
30919 | wxUSE_ODBC=builtin | |
30920 | fi | |
30921 | else | |
30922 | wxUSE_ODBC=sys | |
30923 | fi | |
30924 | fi | |
a848cd7e | 30925 | |
2da0c077 RD |
30926 | if test "$wxUSE_ODBC" = "builtin" ; then |
30927 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30928 | #define wxUSE_BUILTIN_IODBC 1 |
30929 | _ACEOF | |
30930 | ||
a848cd7e SC |
30931 | fi |
30932 | fi | |
30933 | ||
2da0c077 RD |
30934 | if test "$wxUSE_ODBC" != "no" ; then |
30935 | cat >>confdefs.h <<\_ACEOF | |
30936 | #define wxUSE_ODBC 1 | |
30937 | _ACEOF | |
30938 | ||
30939 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
30940 | ||
5ff751d6 | 30941 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 30942 | fi |
a848cd7e | 30943 | |
01cb68df | 30944 | |
a848cd7e | 30945 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 30946 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
30947 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
30948 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
30949 | ||
0ad5d837 VZ |
30950 | ac_find_libraries= |
30951 | for ac_dir in $SEARCH_LIB; | |
30952 | do | |
30953 | for ac_extension in a so sl dylib dll.a; do | |
30954 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
30955 | ac_find_libraries=$ac_dir | |
30956 | break 2 | |
30957 | fi | |
30958 | done | |
30959 | done | |
30960 | ||
a848cd7e SC |
30961 | if test "$ac_find_libraries" != "" ; then |
30962 | ||
0ad5d837 | 30963 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30964 | ac_path_to_link="" |
30965 | else | |
0ad5d837 VZ |
30966 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30967 | result=$? | |
30968 | if test $result = 0; then | |
30969 | ac_path_to_link="" | |
30970 | else | |
30971 | ac_path_to_link=" -L$ac_find_libraries" | |
30972 | fi | |
a848cd7e SC |
30973 | fi |
30974 | ||
30975 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
30976 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
30977 | fi | |
30978 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
30979 | echo "$as_me:$LINENO: result: yes" >&5 | |
30980 | echo "${ECHO_T}yes" >&6 | |
30981 | ||
30982 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
30983 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
30984 | ||
0ad5d837 VZ |
30985 | ac_find_libraries= |
30986 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30987 | do |
3eca31dc | 30988 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30989 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
30990 | ac_find_libraries=$ac_dir | |
30991 | break 2 | |
30992 | fi | |
30993 | done | |
30994 | done | |
30995 | ||
30996 | if test "$ac_find_libraries" != "" ; then | |
30997 | echo "$as_me:$LINENO: result: yes" >&5 | |
30998 | echo "${ECHO_T}yes" >&6 | |
30999 | ||
31000 | for ac_header in X11/extensions/xf86vmode.h | |
31001 | do | |
31002 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31003 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31005 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31007 | else | |
31008 | cat >conftest.$ac_ext <<_ACEOF | |
31009 | /* confdefs.h. */ | |
31010 | _ACEOF | |
31011 | cat confdefs.h >>conftest.$ac_ext | |
31012 | cat >>conftest.$ac_ext <<_ACEOF | |
31013 | /* end confdefs.h. */ | |
31014 | ||
31015 | #if HAVE_X11_XLIB_H | |
31016 | #include <X11/Xlib.h> | |
31017 | #endif | |
31018 | ||
31019 | ||
31020 | #include <$ac_header> | |
31021 | _ACEOF | |
31022 | rm -f conftest.$ac_objext | |
31023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31024 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31025 | ac_status=$? |
ac1cb8d3 VS |
31026 | grep -v '^ *+' conftest.er1 >conftest.err |
31027 | rm -f conftest.er1 | |
31028 | cat conftest.err >&5 | |
a848cd7e SC |
31029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31030 | (exit $ac_status); } && | |
f10e38c4 | 31031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31033 | (eval $ac_try) 2>&5 | |
31034 | ac_status=$? | |
31035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31036 | (exit $ac_status); }; } && | |
31037 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31039 | (eval $ac_try) 2>&5 | |
31040 | ac_status=$? | |
31041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31042 | (exit $ac_status); }; }; then | |
31043 | eval "$as_ac_Header=yes" | |
31044 | else | |
31045 | echo "$as_me: failed program was:" >&5 | |
31046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31047 | ||
31048 | eval "$as_ac_Header=no" | |
31049 | fi | |
ac1cb8d3 | 31050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31051 | fi |
31052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31054 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31055 | cat >>confdefs.h <<_ACEOF | |
31056 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31057 | _ACEOF | |
31058 | ||
31059 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
31060 | ||
31061 | fi | |
31062 | ||
31063 | done | |
31064 | ||
31065 | else | |
31066 | echo "$as_me:$LINENO: result: no" >&5 | |
31067 | echo "${ECHO_T}no" >&6 | |
31068 | fi | |
31069 | ||
31070 | else | |
31071 | echo "$as_me:$LINENO: result: no" >&5 | |
31072 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
31073 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
31074 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
31075 | wxUSE_DISPLAY="no" |
31076 | fi | |
01cb68df RG |
31077 | elif test "$wxUSE_MSW" = 1; then |
31078 | ||
31079 | ||
31080 | for ac_header in multimon.h ddraw.h | |
31081 | do | |
31082 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 31083 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
31084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
31085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 31087 | else |
5294a27e | 31088 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
31089 | /* confdefs.h. */ |
31090 | _ACEOF | |
31091 | cat confdefs.h >>conftest.$ac_ext | |
31092 | cat >>conftest.$ac_ext <<_ACEOF | |
31093 | /* end confdefs.h. */ | |
5294a27e VZ |
31094 | #include <windows.h> |
31095 | ||
01cb68df RG |
31096 | #include <$ac_header> |
31097 | _ACEOF | |
31098 | rm -f conftest.$ac_objext | |
31099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31100 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 31101 | ac_status=$? |
ac1cb8d3 VS |
31102 | grep -v '^ *+' conftest.er1 >conftest.err |
31103 | rm -f conftest.er1 | |
31104 | cat conftest.err >&5 | |
01cb68df RG |
31105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31106 | (exit $ac_status); } && | |
f10e38c4 | 31107 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31109 | (eval $ac_try) 2>&5 | |
31110 | ac_status=$? | |
31111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31112 | (exit $ac_status); }; } && | |
31113 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
31114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31115 | (eval $ac_try) 2>&5 | |
31116 | ac_status=$? | |
31117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31118 | (exit $ac_status); }; }; then | |
5294a27e | 31119 | eval "$as_ac_Header=yes" |
01cb68df RG |
31120 | else |
31121 | echo "$as_me: failed program was:" >&5 | |
31122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31123 | ||
5294a27e | 31124 | eval "$as_ac_Header=no" |
01cb68df | 31125 | fi |
ac1cb8d3 | 31126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
31127 | fi |
31128 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31129 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
31130 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31131 | cat >>confdefs.h <<_ACEOF | |
31132 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31133 | _ACEOF | |
31134 | ||
31135 | else | |
31136 | ||
5294a27e VZ |
31137 | wxUSE_DISPLAY="no" |
31138 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 31139 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
31140 | |
31141 | fi | |
31142 | ||
31143 | done | |
31144 | ||
a848cd7e SC |
31145 | fi |
31146 | fi | |
31147 | ||
31148 | ||
31149 | USE_OPENGL=0 | |
31150 | if test "$wxUSE_OPENGL" = "yes"; then | |
31151 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
31152 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
31153 | elif test "$wxUSE_MSW" = 1; then | |
31154 | OPENGL_LIBS="-lopengl32 -lglu32" | |
31155 | else | |
31156 | ||
31157 | ||
31158 | ac_find_includes= | |
31159 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
31160 | do | |
31161 | if test -f "$ac_dir/GL/gl.h"; then | |
31162 | ac_find_includes=$ac_dir | |
31163 | break | |
31164 | fi | |
31165 | done | |
31166 | ||
31167 | if test "$ac_find_includes" != "" ; then | |
31168 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
31169 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
31170 | ||
31171 | if test "x$ac_find_includes" = "x/usr/include"; then | |
31172 | ac_path_to_include="" | |
31173 | else | |
31174 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
31175 | result=$? | |
31176 | if test $result = 0; then | |
31177 | ac_path_to_include="" | |
31178 | else | |
31179 | ac_path_to_include=" -I$ac_find_includes" | |
31180 | fi | |
31181 | fi | |
31182 | ||
c92ad099 | 31183 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
31184 | fi |
31185 | ||
31186 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31187 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31188 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31189 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31191 | fi | |
31192 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31193 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31194 | else | |
31195 | # Is the header compilable? | |
31196 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
31197 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
31198 | cat >conftest.$ac_ext <<_ACEOF | |
31199 | /* confdefs.h. */ | |
31200 | _ACEOF | |
31201 | cat confdefs.h >>conftest.$ac_ext | |
31202 | cat >>conftest.$ac_ext <<_ACEOF | |
31203 | /* end confdefs.h. */ | |
31204 | $ac_includes_default | |
31205 | #include <GL/gl.h> | |
31206 | _ACEOF | |
31207 | rm -f conftest.$ac_objext | |
31208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31209 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31210 | ac_status=$? |
ac1cb8d3 VS |
31211 | grep -v '^ *+' conftest.er1 >conftest.err |
31212 | rm -f conftest.er1 | |
31213 | cat conftest.err >&5 | |
a848cd7e SC |
31214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31215 | (exit $ac_status); } && | |
f10e38c4 | 31216 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31218 | (eval $ac_try) 2>&5 | |
31219 | ac_status=$? | |
31220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31221 | (exit $ac_status); }; } && | |
31222 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31224 | (eval $ac_try) 2>&5 | |
31225 | ac_status=$? | |
31226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31227 | (exit $ac_status); }; }; then | |
31228 | ac_header_compiler=yes | |
31229 | else | |
31230 | echo "$as_me: failed program was:" >&5 | |
31231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31232 | ||
31233 | ac_header_compiler=no | |
31234 | fi | |
ac1cb8d3 | 31235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31236 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31237 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31238 | ||
31239 | # Is the header present? | |
31240 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
31241 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
31242 | cat >conftest.$ac_ext <<_ACEOF | |
31243 | /* confdefs.h. */ | |
31244 | _ACEOF | |
31245 | cat confdefs.h >>conftest.$ac_ext | |
31246 | cat >>conftest.$ac_ext <<_ACEOF | |
31247 | /* end confdefs.h. */ | |
31248 | #include <GL/gl.h> | |
31249 | _ACEOF | |
31250 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31251 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31252 | ac_status=$? | |
31253 | grep -v '^ *+' conftest.er1 >conftest.err | |
31254 | rm -f conftest.er1 | |
31255 | cat conftest.err >&5 | |
31256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31257 | (exit $ac_status); } >/dev/null; then | |
31258 | if test -s conftest.err; then | |
31259 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31260 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31261 | else |
31262 | ac_cpp_err= | |
31263 | fi | |
31264 | else | |
31265 | ac_cpp_err=yes | |
31266 | fi | |
31267 | if test -z "$ac_cpp_err"; then | |
31268 | ac_header_preproc=yes | |
31269 | else | |
31270 | echo "$as_me: failed program was:" >&5 | |
31271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31272 | ||
31273 | ac_header_preproc=no | |
31274 | fi | |
31275 | rm -f conftest.err conftest.$ac_ext | |
31276 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31277 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31278 | ||
31279 | # So? What about this header? | |
ac1cb8d3 VS |
31280 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31281 | yes:no: ) | |
a848cd7e SC |
31282 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31283 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31284 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
31285 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
31286 | ac_header_preproc=yes | |
a848cd7e | 31287 | ;; |
ac1cb8d3 | 31288 | no:yes:* ) |
a848cd7e SC |
31289 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
31290 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31291 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
31292 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
31293 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
31294 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
31295 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31296 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31297 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
31298 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31299 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
31300 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31301 | ( |
31302 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31303 | ## ----------------------------------------- ## |
31304 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31305 | ## ----------------------------------------- ## | |
a848cd7e SC |
31306 | _ASBOX |
31307 | ) | | |
31308 | sed "s/^/$as_me: WARNING: /" >&2 | |
31309 | ;; | |
31310 | esac | |
31311 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31312 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31313 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31315 | else | |
31316 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
31317 | fi | |
31318 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31319 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31320 | ||
31321 | fi | |
31322 | if test $ac_cv_header_GL_gl_h = yes; then | |
31323 | ||
31324 | found_gl=0 | |
31325 | ||
31326 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
31327 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
31328 | ||
0ad5d837 VZ |
31329 | ac_find_libraries= |
31330 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31331 | do |
3eca31dc | 31332 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31333 | if test -f "$ac_dir/libGL.$ac_extension"; then |
31334 | ac_find_libraries=$ac_dir | |
31335 | break 2 | |
31336 | fi | |
31337 | done | |
31338 | done | |
31339 | ||
31340 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
31341 | echo "$as_me:$LINENO: result: yes" >&5 |
31342 | echo "${ECHO_T}yes" >&6 | |
31343 | ||
a848cd7e | 31344 | |
0ad5d837 | 31345 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31346 | ac_path_to_link="" |
31347 | else | |
0ad5d837 VZ |
31348 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31349 | result=$? | |
31350 | if test $result = 0; then | |
31351 | ac_path_to_link="" | |
31352 | else | |
31353 | ac_path_to_link=" -L$ac_find_libraries" | |
31354 | fi | |
a848cd7e SC |
31355 | fi |
31356 | ||
31357 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31358 | LDFLAGS_GL="$ac_path_to_link" | |
31359 | fi | |
31360 | ||
69120ee4 VZ |
31361 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
31362 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 31363 | |
0ad5d837 VZ |
31364 | ac_find_libraries= |
31365 | for ac_dir in $SEARCH_LIB; | |
31366 | do | |
31367 | for ac_extension in a so sl dylib dll.a; do | |
31368 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
31369 | ac_find_libraries=$ac_dir | |
31370 | break 2 | |
31371 | fi | |
31372 | done | |
31373 | done | |
31374 | ||
a848cd7e SC |
31375 | if test "$ac_find_libraries" != "" ; then |
31376 | ||
0ad5d837 | 31377 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31378 | ac_path_to_link="" |
31379 | else | |
0ad5d837 VZ |
31380 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31381 | result=$? | |
31382 | if test $result = 0; then | |
31383 | ac_path_to_link="" | |
31384 | else | |
31385 | ac_path_to_link=" -L$ac_find_libraries" | |
31386 | fi | |
a848cd7e SC |
31387 | fi |
31388 | ||
31389 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
31390 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
31391 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
31392 | fi | |
31393 | ||
31394 | found_gl=1 | |
31395 | OPENGL_LIBS="-lGL -lGLU" | |
31396 | echo "$as_me:$LINENO: result: yes" >&5 | |
31397 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
31398 | else |
31399 | echo "$as_me:$LINENO: result: no" >&5 | |
31400 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 31401 | fi |
69120ee4 VZ |
31402 | else |
31403 | echo "$as_me:$LINENO: result: no" >&5 | |
31404 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
31405 | fi |
31406 | ||
31407 | if test "$found_gl" != 1; then | |
a848cd7e SC |
31408 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
31409 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
31410 | ||
0ad5d837 VZ |
31411 | ac_find_libraries= |
31412 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31413 | do |
3eca31dc | 31414 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31415 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
31416 | ac_find_libraries=$ac_dir | |
31417 | break 2 | |
31418 | fi | |
31419 | done | |
31420 | done | |
31421 | ||
31422 | if test "$ac_find_libraries" != "" ; then | |
31423 | ||
0ad5d837 | 31424 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31425 | ac_path_to_link="" |
31426 | else | |
0ad5d837 VZ |
31427 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31428 | result=$? | |
31429 | if test $result = 0; then | |
31430 | ac_path_to_link="" | |
31431 | else | |
31432 | ac_path_to_link=" -L$ac_find_libraries" | |
31433 | fi | |
a848cd7e SC |
31434 | fi |
31435 | ||
31436 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
31437 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
31438 | echo "$as_me:$LINENO: result: yes" >&5 | |
31439 | echo "${ECHO_T}yes" >&6 | |
31440 | else | |
31441 | echo "$as_me:$LINENO: result: no" >&5 | |
31442 | echo "${ECHO_T}no" >&6 | |
31443 | fi | |
31444 | fi | |
31445 | ||
31446 | fi | |
31447 | ||
31448 | ||
31449 | ||
31450 | if test "x$OPENGL_LIBS" = "x"; then | |
31451 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
31452 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
31453 | { (exit 1); exit 1; }; } | |
31454 | fi | |
31455 | fi | |
31456 | ||
31457 | if test "$wxUSE_OPENGL" = "yes"; then | |
31458 | USE_OPENGL=1 | |
31459 | cat >>confdefs.h <<\_ACEOF | |
31460 | #define wxUSE_OPENGL 1 | |
31461 | _ACEOF | |
31462 | ||
31463 | cat >>confdefs.h <<\_ACEOF | |
31464 | #define wxUSE_GLCANVAS 1 | |
31465 | _ACEOF | |
31466 | ||
31467 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
31468 | fi | |
31469 | fi | |
31470 | ||
a848cd7e SC |
31471 | |
31472 | if test -n "$TOOLKIT" ; then | |
31473 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
31474 | fi | |
31475 | ||
a848cd7e SC |
31476 | |
31477 | ||
31478 | if test "$wxUSE_SHARED" = "yes"; then | |
31479 | case "${host}" in | |
31480 | *-pc-msdosdjgpp ) | |
31481 | wxUSE_SHARED=no | |
31482 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
31483 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
31484 | ;; | |
31485 | esac | |
31486 | fi | |
31487 | ||
a848cd7e | 31488 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
31489 | |
31490 | ||
31491 | found_versioning=no | |
31492 | ||
31493 | ||
31494 | if test $found_versioning = no ; then | |
31495 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
31496 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
31497 | if test "${wx_cv_version_script+set}" = set; then | |
31498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31499 | else | |
31500 | ||
31501 | echo "VER_1 { *; };" >conftest.sym | |
31502 | echo "int main() { return 0; }" >conftest.cpp | |
31503 | ||
31504 | if { ac_try=' | |
31505 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31506 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
31507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31508 | (eval $ac_try) 2>&5 | |
31509 | ac_status=$? | |
31510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31511 | (exit $ac_status); }; } ; then | |
31512 | if test -s conftest.stderr ; then | |
31513 | wx_cv_version_script=no | |
31514 | else | |
31515 | wx_cv_version_script=yes | |
31516 | fi | |
31517 | else | |
31518 | wx_cv_version_script=no | |
31519 | fi | |
e5d4b470 MW |
31520 | |
31521 | if test $wx_cv_version_script = yes | |
31522 | then | |
31523 | echo "struct B { virtual ~B() { } }; \ | |
31524 | struct D : public B { }; \ | |
31525 | void F() { D d; }" > conftest.cpp | |
31526 | ||
31527 | if { ac_try=' | |
31528 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31529 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
31530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31531 | (eval $ac_try) 2>&5 | |
31532 | ac_status=$? | |
31533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31534 | (exit $ac_status); }; } && | |
31535 | { ac_try=' | |
31536 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31537 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
31538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31539 | (eval $ac_try) 2>&5 | |
31540 | ac_status=$? | |
31541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31542 | (exit $ac_status); }; } | |
31543 | then | |
31544 | if { ac_try=' | |
31545 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31546 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
31547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31548 | (eval $ac_try) 2>&5 | |
31549 | ac_status=$? | |
31550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31551 | (exit $ac_status); }; } | |
31552 | then | |
31553 | wx_cv_version_script=yes | |
31554 | else | |
31555 | wx_cv_version_script=no | |
31556 | fi | |
31557 | fi | |
31558 | fi | |
31559 | ||
a848cd7e | 31560 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 31561 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
31562 | |
31563 | fi | |
31564 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
31565 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
31566 | if test $wx_cv_version_script = yes ; then | |
31567 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
31568 | fi | |
31569 | fi | |
31570 | ||
31571 | ||
31572 | case "${host}" in | |
31573 | *-*-linux* | *-*-gnu* ) | |
31574 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31575 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 31576 | ;; |
a848cd7e SC |
31577 | |
31578 | *-*-solaris2* ) | |
31579 | if test "$GCC" = yes ; then | |
c92ad099 | 31580 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
31581 | |
31582 | saveLdflags="$LDFLAGS" | |
31583 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
31584 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
31585 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
31586 | cat >conftest.$ac_ext <<_ACEOF | |
31587 | /* confdefs.h. */ | |
31588 | _ACEOF | |
31589 | cat confdefs.h >>conftest.$ac_ext | |
31590 | cat >>conftest.$ac_ext <<_ACEOF | |
31591 | /* end confdefs.h. */ | |
31592 | ||
31593 | int | |
31594 | main () | |
31595 | { | |
31596 | ||
31597 | ; | |
31598 | return 0; | |
31599 | } | |
31600 | _ACEOF | |
31601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31603 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31604 | ac_status=$? |
ac1cb8d3 VS |
31605 | grep -v '^ *+' conftest.er1 >conftest.err |
31606 | rm -f conftest.er1 | |
31607 | cat conftest.err >&5 | |
a848cd7e SC |
31608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31609 | (exit $ac_status); } && | |
f10e38c4 | 31610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31612 | (eval $ac_try) 2>&5 | |
31613 | ac_status=$? | |
31614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31615 | (exit $ac_status); }; } && | |
31616 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31618 | (eval $ac_try) 2>&5 | |
31619 | ac_status=$? | |
31620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31621 | (exit $ac_status); }; }; then | |
31622 | ||
31623 | echo "$as_me:$LINENO: result: yes" >&5 | |
31624 | echo "${ECHO_T}yes" >&6 | |
31625 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31626 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
31627 | |
31628 | else | |
31629 | echo "$as_me: failed program was:" >&5 | |
31630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31631 | ||
31632 | ||
31633 | echo "$as_me:$LINENO: result: no" >&5 | |
31634 | echo "${ECHO_T}no" >&6 | |
31635 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
31636 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
31637 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
31638 | cat >conftest.$ac_ext <<_ACEOF | |
31639 | /* confdefs.h. */ | |
31640 | _ACEOF | |
31641 | cat confdefs.h >>conftest.$ac_ext | |
31642 | cat >>conftest.$ac_ext <<_ACEOF | |
31643 | /* end confdefs.h. */ | |
31644 | ||
31645 | int | |
31646 | main () | |
31647 | { | |
31648 | ||
31649 | ; | |
31650 | return 0; | |
31651 | } | |
31652 | _ACEOF | |
31653 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31655 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31656 | ac_status=$? |
ac1cb8d3 VS |
31657 | grep -v '^ *+' conftest.er1 >conftest.err |
31658 | rm -f conftest.er1 | |
31659 | cat conftest.err >&5 | |
a848cd7e SC |
31660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31661 | (exit $ac_status); } && | |
f10e38c4 | 31662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31664 | (eval $ac_try) 2>&5 | |
31665 | ac_status=$? | |
31666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31667 | (exit $ac_status); }; } && | |
31668 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31670 | (eval $ac_try) 2>&5 | |
31671 | ac_status=$? | |
31672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31673 | (exit $ac_status); }; }; then | |
31674 | ||
ffa0583f | 31675 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 31676 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
31677 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
31678 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
31679 | ||
a848cd7e SC |
31680 | else |
31681 | echo "$as_me: failed program was:" >&5 | |
31682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31683 | ||
31684 | ||
31685 | echo "$as_me:$LINENO: result: no" >&5 | |
31686 | echo "${ECHO_T}no" >&6 | |
31687 | ||
31688 | fi | |
ac1cb8d3 VS |
31689 | rm -f conftest.err conftest.$ac_objext \ |
31690 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31691 | |
31692 | fi | |
ac1cb8d3 VS |
31693 | rm -f conftest.err conftest.$ac_objext \ |
31694 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31695 | LDFLAGS="$saveLdflags" |
31696 | else | |
a848cd7e | 31697 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 31698 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
31699 | fi |
31700 | ;; | |
31701 | ||
cfda0ea8 | 31702 | *-*-darwin* ) |
0caebc27 MW |
31703 | install_name_tool=`which install_name_tool` |
31704 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
31705 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
31706 | cat <<EOF >change-install-names | |
a848cd7e SC |
31707 | #!/bin/sh |
31708 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
31709 | inst_cmd="install_name_tool " | |
31710 | for i in \${libnames} ; do | |
31711 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
31712 | done | |
31713 | \${inst_cmd} \${3} | |
31714 | EOF | |
0caebc27 MW |
31715 | chmod +x change-install-names |
31716 | fi | |
a848cd7e SC |
31717 | ;; |
31718 | ||
31719 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
31720 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
31721 | ;; | |
a848cd7e | 31722 | |
81f90336 MW |
31723 | *-*-hpux* ) |
31724 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
31725 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 31726 | ;; |
81f90336 | 31727 | |
a848cd7e | 31728 | esac |
ceec2216 | 31729 | |
ffa0583f RL |
31730 | if test $wxUSE_RPATH = "no"; then |
31731 | SAMPLES_RPATH_FLAG='' | |
31732 | SAMPLES_RPATH_POSTLINK='' | |
31733 | WXCONFIG_RPATH='' | |
31734 | fi | |
31735 | ||
31736 | SHARED=1 | |
31737 | ||
31738 | else | |
31739 | ||
ceec2216 RL |
31740 | config_linkage_component="-static" |
31741 | SHARED=0 | |
ffa0583f | 31742 | |
ceec2216 | 31743 | fi |
a848cd7e | 31744 | |
a848cd7e | 31745 | |
ceec2216 RL |
31746 | UNICODE=0 |
31747 | lib_unicode_suffix= | |
31748 | WX_CHARTYPE="ansi" | |
31749 | if test "$wxUSE_UNICODE" = "yes"; then | |
31750 | lib_unicode_suffix=u | |
31751 | WX_CHARTYPE="unicode" | |
31752 | UNICODE=1 | |
a848cd7e SC |
31753 | fi |
31754 | ||
ceec2216 RL |
31755 | lib_debug_suffix= |
31756 | WX_DEBUGTYPE="release" | |
31757 | DEBUG_FLAG=0 | |
31758 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
31759 | lib_debug_suffix=d | |
31760 | WX_DEBUGTYPE="debug" | |
31761 | DEBUG_FLAG=1 | |
31762 | fi | |
a848cd7e | 31763 | |
ceec2216 RL |
31764 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
31765 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 31766 | |
ceec2216 RL |
31767 | DEBUG_INFO=0 |
31768 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
31769 | DEBUG_INFO=1 | |
31770 | fi | |
a848cd7e | 31771 | |
ceec2216 | 31772 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 31773 | |
ceec2216 | 31774 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 31775 | |
ceec2216 | 31776 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 31777 | |
ceec2216 RL |
31778 | if test "$cross_compiling" = "yes"; then |
31779 | HOST_SUFFIX="-$host_alias" | |
31780 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
31781 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
31782 | fi |
31783 | ||
dd21ced8 | 31784 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
31785 | if test "${TOOLKIT_DIR}" = "os2"; then |
31786 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31787 | else | |
31788 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31789 | fi | |
ceec2216 RL |
31790 | |
31791 | ||
31792 | ||
1d1af5ea DE |
31793 | if test "$wxUSE_COCOA" = 1; then |
31794 | ||
31795 | ||
31796 | ac_ext=c | |
31797 | ac_cpp='$CPP $CPPFLAGS' | |
31798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31801 | ||
31802 | ac_ext=m | |
31803 | ||
31804 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
31805 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
31806 | cat >conftest.$ac_ext <<_ACEOF | |
31807 | /* confdefs.h. */ | |
31808 | _ACEOF | |
31809 | cat confdefs.h >>conftest.$ac_ext | |
31810 | cat >>conftest.$ac_ext <<_ACEOF | |
31811 | /* end confdefs.h. */ | |
31812 | #include <AppKit/NSEvent.h> | |
31813 | #include <CoreFoundation/CoreFoundation.h> | |
31814 | ||
31815 | int | |
31816 | main () | |
31817 | { | |
31818 | ||
31819 | ; | |
31820 | return 0; | |
31821 | } | |
31822 | _ACEOF | |
31823 | rm -f conftest.$ac_objext | |
31824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31825 | (eval $ac_compile) 2>conftest.er1 | |
31826 | ac_status=$? | |
31827 | grep -v '^ *+' conftest.er1 >conftest.err | |
31828 | rm -f conftest.er1 | |
31829 | cat conftest.err >&5 | |
31830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31831 | (exit $ac_status); } && | |
f10e38c4 | 31832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
31833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31834 | (eval $ac_try) 2>&5 | |
31835 | ac_status=$? | |
31836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31837 | (exit $ac_status); }; } && | |
31838 | { ac_try='test -s conftest.$ac_objext' | |
31839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31840 | (eval $ac_try) 2>&5 | |
31841 | ac_status=$? | |
31842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31843 | (exit $ac_status); }; }; then | |
31844 | echo "$as_me:$LINENO: result: no" >&5 | |
31845 | echo "${ECHO_T}no" >&6 | |
31846 | else | |
31847 | echo "$as_me: failed program was:" >&5 | |
31848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31849 | ||
31850 | echo "$as_me:$LINENO: result: yes" >&5 | |
31851 | echo "${ECHO_T}yes" >&6 | |
31852 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
31853 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
31854 | cat >conftest.$ac_ext <<_ACEOF | |
31855 | /* confdefs.h. */ | |
31856 | _ACEOF | |
31857 | cat confdefs.h >>conftest.$ac_ext | |
31858 | cat >>conftest.$ac_ext <<_ACEOF | |
31859 | /* end confdefs.h. */ | |
31860 | #define __Point__ 1 | |
31861 | #include <AppKit/NSEvent.h> | |
31862 | #include <CoreFoundation/CoreFoundation.h> | |
31863 | ||
31864 | int | |
31865 | main () | |
31866 | { | |
31867 | ||
31868 | ; | |
31869 | return 0; | |
31870 | } | |
31871 | _ACEOF | |
31872 | rm -f conftest.$ac_objext | |
31873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31874 | (eval $ac_compile) 2>conftest.er1 | |
31875 | ac_status=$? | |
31876 | grep -v '^ *+' conftest.er1 >conftest.err | |
31877 | rm -f conftest.er1 | |
31878 | cat conftest.err >&5 | |
31879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31880 | (exit $ac_status); } && | |
f10e38c4 | 31881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
31882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31883 | (eval $ac_try) 2>&5 | |
31884 | ac_status=$? | |
31885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31886 | (exit $ac_status); }; } && | |
31887 | { ac_try='test -s conftest.$ac_objext' | |
31888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31889 | (eval $ac_try) 2>&5 | |
31890 | ac_status=$? | |
31891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31892 | (exit $ac_status); }; }; then | |
31893 | echo "$as_me:$LINENO: result: yes" >&5 | |
31894 | echo "${ECHO_T}yes" >&6 | |
31895 | cat >>confdefs.h <<\_ACEOF | |
31896 | #define __Point__ 1 | |
31897 | _ACEOF | |
31898 | ||
31899 | ||
31900 | else | |
31901 | echo "$as_me: failed program was:" >&5 | |
31902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31903 | ||
31904 | { { echo "$as_me:$LINENO: error: no | |
31905 | See \`config.log' for more details." >&5 | |
31906 | echo "$as_me: error: no | |
31907 | See \`config.log' for more details." >&2;} | |
31908 | { (exit 1); exit 1; }; } | |
31909 | ||
31910 | fi | |
31911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31912 | ||
31913 | fi | |
31914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31915 | ac_ext=c | |
31916 | ac_cpp='$CPP $CPPFLAGS' | |
31917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31920 | ||
31921 | fi | |
31922 | ||
a848cd7e | 31923 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
31924 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
31925 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 31926 | |
a848cd7e | 31927 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
31928 | |
31929 | # Extract the first word of "Rez", so it can be a program name with args. | |
31930 | set dummy Rez; ac_word=$2 | |
31931 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 31933 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
31934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31935 | else | |
8ced02f6 DE |
31936 | if test -n "$REZ"; then |
31937 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
31938 | else |
31939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31940 | for as_dir in $PATH | |
31941 | do | |
31942 | IFS=$as_save_IFS | |
31943 | test -z "$as_dir" && as_dir=. | |
31944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31945 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 31946 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
31947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
31948 | break 2 | |
31949 | fi | |
31950 | done | |
31951 | done | |
31952 | ||
8ced02f6 | 31953 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
31954 | fi |
31955 | fi | |
8ced02f6 DE |
31956 | REZ=$ac_cv_prog_REZ |
31957 | if test -n "$REZ"; then | |
31958 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
31959 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
31960 | else |
31961 | echo "$as_me:$LINENO: result: no" >&5 | |
31962 | echo "${ECHO_T}no" >&6 | |
31963 | fi | |
31964 | ||
31965 | # Extract the first word of "DeRez", so it can be a program name with args. | |
31966 | set dummy DeRez; ac_word=$2 | |
31967 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31969 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
31970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31971 | else | |
31972 | if test -n "$DEREZ"; then | |
31973 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
31974 | else | |
31975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31976 | for as_dir in $PATH | |
31977 | do | |
31978 | IFS=$as_save_IFS | |
31979 | test -z "$as_dir" && as_dir=. | |
31980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31981 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31982 | ac_cv_prog_DEREZ="DeRez" | |
31983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31984 | break 2 | |
31985 | fi | |
31986 | done | |
31987 | done | |
31988 | ||
31989 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
31990 | fi | |
31991 | fi | |
31992 | DEREZ=$ac_cv_prog_DEREZ | |
31993 | if test -n "$DEREZ"; then | |
31994 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
31995 | echo "${ECHO_T}$DEREZ" >&6 | |
31996 | else | |
31997 | echo "$as_me:$LINENO: result: no" >&5 | |
31998 | echo "${ECHO_T}no" >&6 | |
31999 | fi | |
32000 | ||
32001 | # Extract the first word of "SetFile", so it can be a program name with args. | |
32002 | set dummy SetFile; ac_word=$2 | |
32003 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32005 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
32006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32007 | else | |
32008 | if test -n "$SETFILE"; then | |
32009 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
32010 | else | |
32011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32012 | for as_dir in $PATH | |
32013 | do | |
32014 | IFS=$as_save_IFS | |
32015 | test -z "$as_dir" && as_dir=. | |
32016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32017 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32018 | ac_cv_prog_SETFILE="SetFile" | |
32019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32020 | break 2 | |
32021 | fi | |
32022 | done | |
32023 | done | |
32024 | ||
32025 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
32026 | fi | |
32027 | fi | |
32028 | SETFILE=$ac_cv_prog_SETFILE | |
32029 | if test -n "$SETFILE"; then | |
32030 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
32031 | echo "${ECHO_T}$SETFILE" >&6 | |
32032 | else | |
32033 | echo "$as_me:$LINENO: result: no" >&5 | |
32034 | echo "${ECHO_T}no" >&6 | |
32035 | fi | |
32036 | ||
32037 | ||
32038 | MACSETFILE="\$(SETFILE)" | |
32039 | ||
32040 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 32041 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
32042 | RESCOMP="$REZ" |
32043 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 32044 | else |
004ee6da RL |
32045 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
32046 | RESCOMP="echo -n \| $REZ" | |
32047 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 32048 | fi |
004ee6da | 32049 | |
a848cd7e | 32050 | else |
ffa0583f | 32051 | MACSETFILE="@true" |
a848cd7e | 32052 | |
8ced02f6 | 32053 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
32054 | RESCOMP="emxbind" |
32055 | WXCONFIG_RESFLAGS="-ep" | |
32056 | ||
32057 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 32058 | else |
8ced02f6 | 32059 | POSTLINK_COMMAND="@true" |
a848cd7e | 32060 | fi |
004ee6da | 32061 | |
a848cd7e SC |
32062 | fi |
32063 | ||
32064 | ||
32065 | ||
32066 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
32067 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
32068 | if test "${ac_cv_type_mode_t+set}" = set; then | |
32069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32070 | else | |
32071 | cat >conftest.$ac_ext <<_ACEOF | |
32072 | /* confdefs.h. */ | |
32073 | _ACEOF | |
32074 | cat confdefs.h >>conftest.$ac_ext | |
32075 | cat >>conftest.$ac_ext <<_ACEOF | |
32076 | /* end confdefs.h. */ | |
32077 | $ac_includes_default | |
32078 | int | |
32079 | main () | |
32080 | { | |
32081 | if ((mode_t *) 0) | |
32082 | return 0; | |
32083 | if (sizeof (mode_t)) | |
32084 | return 0; | |
32085 | ; | |
32086 | return 0; | |
32087 | } | |
32088 | _ACEOF | |
32089 | rm -f conftest.$ac_objext | |
32090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32091 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32092 | ac_status=$? |
ac1cb8d3 VS |
32093 | grep -v '^ *+' conftest.er1 >conftest.err |
32094 | rm -f conftest.er1 | |
32095 | cat conftest.err >&5 | |
a848cd7e SC |
32096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32097 | (exit $ac_status); } && | |
f10e38c4 | 32098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32100 | (eval $ac_try) 2>&5 | |
32101 | ac_status=$? | |
32102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32103 | (exit $ac_status); }; } && | |
32104 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32106 | (eval $ac_try) 2>&5 | |
32107 | ac_status=$? | |
32108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32109 | (exit $ac_status); }; }; then | |
32110 | ac_cv_type_mode_t=yes | |
32111 | else | |
32112 | echo "$as_me: failed program was:" >&5 | |
32113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32114 | ||
32115 | ac_cv_type_mode_t=no | |
32116 | fi | |
ac1cb8d3 | 32117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32118 | fi |
32119 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
32120 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
32121 | if test $ac_cv_type_mode_t = yes; then | |
32122 | : | |
32123 | else | |
32124 | ||
32125 | cat >>confdefs.h <<_ACEOF | |
32126 | #define mode_t int | |
32127 | _ACEOF | |
32128 | ||
32129 | fi | |
32130 | ||
32131 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
32132 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
32133 | if test "${ac_cv_type_off_t+set}" = set; then | |
32134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32135 | else | |
32136 | cat >conftest.$ac_ext <<_ACEOF | |
32137 | /* confdefs.h. */ | |
32138 | _ACEOF | |
32139 | cat confdefs.h >>conftest.$ac_ext | |
32140 | cat >>conftest.$ac_ext <<_ACEOF | |
32141 | /* end confdefs.h. */ | |
32142 | $ac_includes_default | |
32143 | int | |
32144 | main () | |
32145 | { | |
32146 | if ((off_t *) 0) | |
32147 | return 0; | |
32148 | if (sizeof (off_t)) | |
32149 | return 0; | |
32150 | ; | |
32151 | return 0; | |
32152 | } | |
32153 | _ACEOF | |
32154 | rm -f conftest.$ac_objext | |
32155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32156 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32157 | ac_status=$? |
ac1cb8d3 VS |
32158 | grep -v '^ *+' conftest.er1 >conftest.err |
32159 | rm -f conftest.er1 | |
32160 | cat conftest.err >&5 | |
a848cd7e SC |
32161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32162 | (exit $ac_status); } && | |
f10e38c4 | 32163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32165 | (eval $ac_try) 2>&5 | |
32166 | ac_status=$? | |
32167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32168 | (exit $ac_status); }; } && | |
32169 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
32175 | ac_cv_type_off_t=yes | |
32176 | else | |
32177 | echo "$as_me: failed program was:" >&5 | |
32178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32179 | ||
32180 | ac_cv_type_off_t=no | |
32181 | fi | |
ac1cb8d3 | 32182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32183 | fi |
32184 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
32185 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
32186 | if test $ac_cv_type_off_t = yes; then | |
32187 | : | |
32188 | else | |
32189 | ||
32190 | cat >>confdefs.h <<_ACEOF | |
32191 | #define off_t long | |
32192 | _ACEOF | |
32193 | ||
32194 | fi | |
32195 | ||
32196 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
32197 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
32198 | if test "${ac_cv_type_pid_t+set}" = set; then | |
32199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32200 | else | |
32201 | cat >conftest.$ac_ext <<_ACEOF | |
32202 | /* confdefs.h. */ | |
32203 | _ACEOF | |
32204 | cat confdefs.h >>conftest.$ac_ext | |
32205 | cat >>conftest.$ac_ext <<_ACEOF | |
32206 | /* end confdefs.h. */ | |
32207 | $ac_includes_default | |
32208 | int | |
32209 | main () | |
32210 | { | |
32211 | if ((pid_t *) 0) | |
32212 | return 0; | |
32213 | if (sizeof (pid_t)) | |
32214 | return 0; | |
32215 | ; | |
32216 | return 0; | |
32217 | } | |
32218 | _ACEOF | |
32219 | rm -f conftest.$ac_objext | |
32220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32221 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32222 | ac_status=$? |
ac1cb8d3 VS |
32223 | grep -v '^ *+' conftest.er1 >conftest.err |
32224 | rm -f conftest.er1 | |
32225 | cat conftest.err >&5 | |
a848cd7e SC |
32226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32227 | (exit $ac_status); } && | |
f10e38c4 | 32228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32230 | (eval $ac_try) 2>&5 | |
32231 | ac_status=$? | |
32232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32233 | (exit $ac_status); }; } && | |
32234 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32236 | (eval $ac_try) 2>&5 | |
32237 | ac_status=$? | |
32238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32239 | (exit $ac_status); }; }; then | |
32240 | ac_cv_type_pid_t=yes | |
32241 | else | |
32242 | echo "$as_me: failed program was:" >&5 | |
32243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32244 | ||
32245 | ac_cv_type_pid_t=no | |
32246 | fi | |
ac1cb8d3 | 32247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32248 | fi |
32249 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
32250 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
32251 | if test $ac_cv_type_pid_t = yes; then | |
32252 | : | |
32253 | else | |
32254 | ||
32255 | cat >>confdefs.h <<_ACEOF | |
32256 | #define pid_t int | |
32257 | _ACEOF | |
32258 | ||
32259 | fi | |
32260 | ||
32261 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
32262 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
32263 | if test "${ac_cv_type_size_t+set}" = set; then | |
32264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32265 | else | |
32266 | cat >conftest.$ac_ext <<_ACEOF | |
32267 | /* confdefs.h. */ | |
32268 | _ACEOF | |
32269 | cat confdefs.h >>conftest.$ac_ext | |
32270 | cat >>conftest.$ac_ext <<_ACEOF | |
32271 | /* end confdefs.h. */ | |
32272 | $ac_includes_default | |
32273 | int | |
32274 | main () | |
32275 | { | |
32276 | if ((size_t *) 0) | |
32277 | return 0; | |
32278 | if (sizeof (size_t)) | |
32279 | return 0; | |
32280 | ; | |
32281 | return 0; | |
32282 | } | |
32283 | _ACEOF | |
32284 | rm -f conftest.$ac_objext | |
32285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32286 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32287 | ac_status=$? |
ac1cb8d3 VS |
32288 | grep -v '^ *+' conftest.er1 >conftest.err |
32289 | rm -f conftest.er1 | |
32290 | cat conftest.err >&5 | |
a848cd7e SC |
32291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32292 | (exit $ac_status); } && | |
f10e38c4 | 32293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32295 | (eval $ac_try) 2>&5 | |
32296 | ac_status=$? | |
32297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32298 | (exit $ac_status); }; } && | |
32299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32301 | (eval $ac_try) 2>&5 | |
32302 | ac_status=$? | |
32303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32304 | (exit $ac_status); }; }; then | |
32305 | ac_cv_type_size_t=yes | |
32306 | else | |
32307 | echo "$as_me: failed program was:" >&5 | |
32308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32309 | ||
32310 | ac_cv_type_size_t=no | |
32311 | fi | |
ac1cb8d3 | 32312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32313 | fi |
32314 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
32315 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
32316 | if test $ac_cv_type_size_t = yes; then | |
32317 | : | |
32318 | else | |
32319 | ||
32320 | cat >>confdefs.h <<_ACEOF | |
32321 | #define size_t unsigned | |
32322 | _ACEOF | |
32323 | ||
32324 | fi | |
32325 | ||
32326 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
32327 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
32328 | if test "${ac_cv_type_uid_t+set}" = set; then | |
32329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32330 | else | |
32331 | cat >conftest.$ac_ext <<_ACEOF | |
32332 | /* confdefs.h. */ | |
32333 | _ACEOF | |
32334 | cat confdefs.h >>conftest.$ac_ext | |
32335 | cat >>conftest.$ac_ext <<_ACEOF | |
32336 | /* end confdefs.h. */ | |
32337 | #include <sys/types.h> | |
32338 | ||
32339 | _ACEOF | |
32340 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
32341 | $EGREP "uid_t" >/dev/null 2>&1; then | |
32342 | ac_cv_type_uid_t=yes | |
32343 | else | |
32344 | ac_cv_type_uid_t=no | |
32345 | fi | |
32346 | rm -f conftest* | |
32347 | ||
32348 | fi | |
32349 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
32350 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
32351 | if test $ac_cv_type_uid_t = no; then | |
32352 | ||
32353 | cat >>confdefs.h <<\_ACEOF | |
32354 | #define uid_t int | |
32355 | _ACEOF | |
32356 | ||
32357 | ||
32358 | cat >>confdefs.h <<\_ACEOF | |
32359 | #define gid_t int | |
32360 | _ACEOF | |
32361 | ||
32362 | fi | |
32363 | ||
32364 | ||
d51253e8 RL |
32365 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
32366 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
32367 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
32368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32369 | else | |
32370 | cat >conftest.$ac_ext <<_ACEOF | |
32371 | /* confdefs.h. */ | |
32372 | _ACEOF | |
32373 | cat confdefs.h >>conftest.$ac_ext | |
32374 | cat >>conftest.$ac_ext <<_ACEOF | |
32375 | /* end confdefs.h. */ | |
32376 | $ac_includes_default | |
32377 | int | |
32378 | main () | |
32379 | { | |
32380 | if ((ssize_t *) 0) | |
32381 | return 0; | |
32382 | if (sizeof (ssize_t)) | |
32383 | return 0; | |
32384 | ; | |
32385 | return 0; | |
32386 | } | |
32387 | _ACEOF | |
32388 | rm -f conftest.$ac_objext | |
32389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32390 | (eval $ac_compile) 2>conftest.er1 | |
32391 | ac_status=$? | |
32392 | grep -v '^ *+' conftest.er1 >conftest.err | |
32393 | rm -f conftest.er1 | |
32394 | cat conftest.err >&5 | |
32395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32396 | (exit $ac_status); } && | |
f10e38c4 | 32397 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
32398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32399 | (eval $ac_try) 2>&5 | |
32400 | ac_status=$? | |
32401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32402 | (exit $ac_status); }; } && | |
32403 | { ac_try='test -s conftest.$ac_objext' | |
32404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32405 | (eval $ac_try) 2>&5 | |
32406 | ac_status=$? | |
32407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32408 | (exit $ac_status); }; }; then | |
32409 | ac_cv_type_ssize_t=yes | |
32410 | else | |
32411 | echo "$as_me: failed program was:" >&5 | |
32412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32413 | ||
32414 | ac_cv_type_ssize_t=no | |
32415 | fi | |
32416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32417 | fi | |
32418 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
32419 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
32420 | if test $ac_cv_type_ssize_t = yes; then | |
32421 | ||
32422 | cat >>confdefs.h <<_ACEOF | |
32423 | #define HAVE_SSIZE_T 1 | |
32424 | _ACEOF | |
32425 | ||
32426 | ||
32427 | fi | |
32428 | ||
32429 | ||
a848cd7e SC |
32430 | ac_ext=cc |
32431 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32432 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32433 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32434 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32435 | ||
32436 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
32437 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
32438 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
32439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32440 | else | |
32441 | ||
32442 | cat >conftest.$ac_ext <<_ACEOF | |
32443 | /* confdefs.h. */ | |
32444 | _ACEOF | |
32445 | cat confdefs.h >>conftest.$ac_ext | |
32446 | cat >>conftest.$ac_ext <<_ACEOF | |
32447 | /* end confdefs.h. */ | |
32448 | #include <stddef.h> | |
32449 | int | |
32450 | main () | |
32451 | { | |
32452 | ||
32453 | return 0; } | |
32454 | ||
32455 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
32456 | ||
32457 | int bar() { | |
32458 | ||
32459 | ; | |
32460 | return 0; | |
32461 | } | |
32462 | _ACEOF | |
32463 | rm -f conftest.$ac_objext | |
32464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32465 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32466 | ac_status=$? |
ac1cb8d3 VS |
32467 | grep -v '^ *+' conftest.er1 >conftest.err |
32468 | rm -f conftest.er1 | |
32469 | cat conftest.err >&5 | |
a848cd7e SC |
32470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32471 | (exit $ac_status); } && | |
f10e38c4 | 32472 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32474 | (eval $ac_try) 2>&5 | |
32475 | ac_status=$? | |
32476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32477 | (exit $ac_status); }; } && | |
32478 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32480 | (eval $ac_try) 2>&5 | |
32481 | ac_status=$? | |
32482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32483 | (exit $ac_status); }; }; then | |
32484 | wx_cv_size_t_is_uint=no | |
32485 | else | |
32486 | echo "$as_me: failed program was:" >&5 | |
32487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32488 | ||
32489 | wx_cv_size_t_is_uint=yes | |
32490 | ||
32491 | fi | |
ac1cb8d3 | 32492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32493 | |
32494 | ||
32495 | fi | |
32496 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
32497 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
32498 | ||
32499 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
32500 | cat >>confdefs.h <<\_ACEOF | |
32501 | #define wxSIZE_T_IS_UINT 1 | |
32502 | _ACEOF | |
32503 | ||
32504 | else | |
32505 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
32506 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
32507 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
32508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32509 | else | |
32510 | cat >conftest.$ac_ext <<_ACEOF | |
32511 | /* confdefs.h. */ | |
32512 | _ACEOF | |
32513 | cat confdefs.h >>conftest.$ac_ext | |
32514 | cat >>conftest.$ac_ext <<_ACEOF | |
32515 | /* end confdefs.h. */ | |
32516 | #include <stddef.h> | |
32517 | int | |
32518 | main () | |
32519 | { | |
32520 | ||
32521 | return 0; } | |
32522 | ||
32523 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
32524 | ||
32525 | int bar() { | |
32526 | ||
32527 | ; | |
32528 | return 0; | |
32529 | } | |
32530 | _ACEOF | |
32531 | rm -f conftest.$ac_objext | |
32532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32533 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32534 | ac_status=$? |
ac1cb8d3 VS |
32535 | grep -v '^ *+' conftest.er1 >conftest.err |
32536 | rm -f conftest.er1 | |
32537 | cat conftest.err >&5 | |
a848cd7e SC |
32538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32539 | (exit $ac_status); } && | |
f10e38c4 | 32540 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32542 | (eval $ac_try) 2>&5 | |
32543 | ac_status=$? | |
32544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32545 | (exit $ac_status); }; } && | |
32546 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32548 | (eval $ac_try) 2>&5 | |
32549 | ac_status=$? | |
32550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32551 | (exit $ac_status); }; }; then | |
32552 | wx_cv_size_t_is_ulong=no | |
32553 | else | |
32554 | echo "$as_me: failed program was:" >&5 | |
32555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32556 | ||
32557 | wx_cv_size_t_is_ulong=yes | |
32558 | ||
32559 | fi | |
ac1cb8d3 | 32560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32561 | |
32562 | fi | |
32563 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
32564 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
32565 | ||
32566 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
32567 | cat >>confdefs.h <<\_ACEOF | |
32568 | #define wxSIZE_T_IS_ULONG 1 | |
32569 | _ACEOF | |
32570 | ||
32571 | fi | |
32572 | fi | |
32573 | ||
32574 | ac_ext=c | |
32575 | ac_cpp='$CPP $CPPFLAGS' | |
32576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32579 | ||
32580 | ||
32581 | ||
32582 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
32583 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
32584 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
32585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32586 | else | |
32587 | ||
32588 | cat >conftest.$ac_ext <<_ACEOF | |
32589 | /* confdefs.h. */ | |
32590 | _ACEOF | |
32591 | cat confdefs.h >>conftest.$ac_ext | |
32592 | cat >>conftest.$ac_ext <<_ACEOF | |
32593 | /* end confdefs.h. */ | |
32594 | #include <pwd.h> | |
32595 | int | |
32596 | main () | |
32597 | { | |
32598 | ||
32599 | char *p; | |
32600 | struct passwd *pw; | |
32601 | p = pw->pw_gecos; | |
32602 | ||
32603 | ; | |
32604 | return 0; | |
32605 | } | |
32606 | _ACEOF | |
32607 | rm -f conftest.$ac_objext | |
32608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32610 | ac_status=$? |
ac1cb8d3 VS |
32611 | grep -v '^ *+' conftest.er1 >conftest.err |
32612 | rm -f conftest.er1 | |
32613 | cat conftest.err >&5 | |
a848cd7e SC |
32614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32615 | (exit $ac_status); } && | |
f10e38c4 | 32616 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32618 | (eval $ac_try) 2>&5 | |
32619 | ac_status=$? | |
32620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32621 | (exit $ac_status); }; } && | |
32622 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32624 | (eval $ac_try) 2>&5 | |
32625 | ac_status=$? | |
32626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32627 | (exit $ac_status); }; }; then | |
32628 | ||
32629 | wx_cv_struct_pw_gecos=yes | |
32630 | ||
32631 | else | |
32632 | echo "$as_me: failed program was:" >&5 | |
32633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32634 | ||
32635 | ||
32636 | wx_cv_struct_pw_gecos=no | |
32637 | ||
32638 | ||
32639 | fi | |
ac1cb8d3 | 32640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32641 | |
32642 | ||
32643 | fi | |
32644 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
32645 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
32646 | ||
32647 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
32648 | cat >>confdefs.h <<\_ACEOF | |
32649 | #define HAVE_PW_GECOS 1 | |
32650 | _ACEOF | |
32651 | ||
32652 | fi | |
32653 | ||
32654 | ||
47a7e797 | 32655 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
32656 | cat >>confdefs.h <<\_ACEOF |
32657 | #define wxUSE_WCHAR_T 1 | |
32658 | _ACEOF | |
32659 | ||
32660 | ||
32661 | WCSLEN_FOUND=0 | |
32662 | WCHAR_LINK= | |
32663 | ||
32664 | for ac_func in wcslen | |
32665 | do | |
32666 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32667 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32668 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32669 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32671 | else | |
32672 | cat >conftest.$ac_ext <<_ACEOF | |
32673 | /* confdefs.h. */ | |
32674 | _ACEOF | |
32675 | cat confdefs.h >>conftest.$ac_ext | |
32676 | cat >>conftest.$ac_ext <<_ACEOF | |
32677 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32678 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32679 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32680 | #define $ac_func innocuous_$ac_func | |
32681 | ||
a848cd7e SC |
32682 | /* System header to define __stub macros and hopefully few prototypes, |
32683 | which can conflict with char $ac_func (); below. | |
32684 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32685 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32686 | |
a848cd7e SC |
32687 | #ifdef __STDC__ |
32688 | # include <limits.h> | |
32689 | #else | |
32690 | # include <assert.h> | |
32691 | #endif | |
ac1cb8d3 VS |
32692 | |
32693 | #undef $ac_func | |
32694 | ||
a848cd7e SC |
32695 | /* Override any gcc2 internal prototype to avoid an error. */ |
32696 | #ifdef __cplusplus | |
32697 | extern "C" | |
32698 | { | |
32699 | #endif | |
32700 | /* We use char because int might match the return type of a gcc2 | |
32701 | builtin and then its argument prototype would still apply. */ | |
32702 | char $ac_func (); | |
32703 | /* The GNU C library defines this for functions which it implements | |
32704 | to always fail with ENOSYS. Some functions are actually named | |
32705 | something starting with __ and the normal name is an alias. */ | |
32706 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32707 | choke me | |
32708 | #else | |
32709 | char (*f) () = $ac_func; | |
32710 | #endif | |
32711 | #ifdef __cplusplus | |
32712 | } | |
32713 | #endif | |
32714 | ||
32715 | int | |
32716 | main () | |
32717 | { | |
32718 | return f != $ac_func; | |
32719 | ; | |
32720 | return 0; | |
32721 | } | |
32722 | _ACEOF | |
32723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32725 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32726 | ac_status=$? |
ac1cb8d3 VS |
32727 | grep -v '^ *+' conftest.er1 >conftest.err |
32728 | rm -f conftest.er1 | |
32729 | cat conftest.err >&5 | |
a848cd7e SC |
32730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32731 | (exit $ac_status); } && | |
f10e38c4 | 32732 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32734 | (eval $ac_try) 2>&5 | |
32735 | ac_status=$? | |
32736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32737 | (exit $ac_status); }; } && | |
32738 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32740 | (eval $ac_try) 2>&5 | |
32741 | ac_status=$? | |
32742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32743 | (exit $ac_status); }; }; then | |
32744 | eval "$as_ac_var=yes" | |
32745 | else | |
32746 | echo "$as_me: failed program was:" >&5 | |
32747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32748 | ||
32749 | eval "$as_ac_var=no" | |
32750 | fi | |
ac1cb8d3 VS |
32751 | rm -f conftest.err conftest.$ac_objext \ |
32752 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32753 | fi |
32754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32755 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32756 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32757 | cat >>confdefs.h <<_ACEOF | |
32758 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32759 | _ACEOF | |
32760 | WCSLEN_FOUND=1 | |
32761 | fi | |
32762 | done | |
32763 | ||
32764 | ||
32765 | if test "$WCSLEN_FOUND" = 0; then | |
32766 | if test "$TOOLKIT" = "MSW"; then | |
32767 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
32768 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
32769 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
32770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32771 | else | |
32772 | ac_check_lib_save_LIBS=$LIBS | |
32773 | LIBS="-lmsvcrt $LIBS" | |
32774 | cat >conftest.$ac_ext <<_ACEOF | |
32775 | /* confdefs.h. */ | |
32776 | _ACEOF | |
32777 | cat confdefs.h >>conftest.$ac_ext | |
32778 | cat >>conftest.$ac_ext <<_ACEOF | |
32779 | /* end confdefs.h. */ | |
32780 | ||
32781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32782 | #ifdef __cplusplus | |
32783 | extern "C" | |
32784 | #endif | |
32785 | /* We use char because int might match the return type of a gcc2 | |
32786 | builtin and then its argument prototype would still apply. */ | |
32787 | char wcslen (); | |
32788 | int | |
32789 | main () | |
32790 | { | |
32791 | wcslen (); | |
32792 | ; | |
32793 | return 0; | |
32794 | } | |
32795 | _ACEOF | |
32796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32798 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32799 | ac_status=$? |
ac1cb8d3 VS |
32800 | grep -v '^ *+' conftest.er1 >conftest.err |
32801 | rm -f conftest.er1 | |
32802 | cat conftest.err >&5 | |
a848cd7e SC |
32803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32804 | (exit $ac_status); } && | |
f10e38c4 | 32805 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32807 | (eval $ac_try) 2>&5 | |
32808 | ac_status=$? | |
32809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32810 | (exit $ac_status); }; } && | |
32811 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32813 | (eval $ac_try) 2>&5 | |
32814 | ac_status=$? | |
32815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32816 | (exit $ac_status); }; }; then | |
32817 | ac_cv_lib_msvcrt_wcslen=yes | |
32818 | else | |
32819 | echo "$as_me: failed program was:" >&5 | |
32820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32821 | ||
32822 | ac_cv_lib_msvcrt_wcslen=no | |
32823 | fi | |
ac1cb8d3 VS |
32824 | rm -f conftest.err conftest.$ac_objext \ |
32825 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32826 | LIBS=$ac_check_lib_save_LIBS |
32827 | fi | |
32828 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
32829 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
32830 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
32831 | WCHAR_OK=1 | |
32832 | fi | |
32833 | ||
32834 | else | |
32835 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
32836 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
32837 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
32838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32839 | else | |
32840 | ac_check_lib_save_LIBS=$LIBS | |
32841 | LIBS="-lw $LIBS" | |
32842 | cat >conftest.$ac_ext <<_ACEOF | |
32843 | /* confdefs.h. */ | |
32844 | _ACEOF | |
32845 | cat confdefs.h >>conftest.$ac_ext | |
32846 | cat >>conftest.$ac_ext <<_ACEOF | |
32847 | /* end confdefs.h. */ | |
32848 | ||
32849 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32850 | #ifdef __cplusplus | |
32851 | extern "C" | |
32852 | #endif | |
32853 | /* We use char because int might match the return type of a gcc2 | |
32854 | builtin and then its argument prototype would still apply. */ | |
32855 | char wcslen (); | |
32856 | int | |
32857 | main () | |
32858 | { | |
32859 | wcslen (); | |
32860 | ; | |
32861 | return 0; | |
32862 | } | |
32863 | _ACEOF | |
32864 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32866 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32867 | ac_status=$? |
ac1cb8d3 VS |
32868 | grep -v '^ *+' conftest.er1 >conftest.err |
32869 | rm -f conftest.er1 | |
32870 | cat conftest.err >&5 | |
a848cd7e SC |
32871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32872 | (exit $ac_status); } && | |
f10e38c4 | 32873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32875 | (eval $ac_try) 2>&5 | |
32876 | ac_status=$? | |
32877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32878 | (exit $ac_status); }; } && | |
32879 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32881 | (eval $ac_try) 2>&5 | |
32882 | ac_status=$? | |
32883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32884 | (exit $ac_status); }; }; then | |
32885 | ac_cv_lib_w_wcslen=yes | |
32886 | else | |
32887 | echo "$as_me: failed program was:" >&5 | |
32888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32889 | ||
32890 | ac_cv_lib_w_wcslen=no | |
32891 | fi | |
ac1cb8d3 VS |
32892 | rm -f conftest.err conftest.$ac_objext \ |
32893 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32894 | LIBS=$ac_check_lib_save_LIBS |
32895 | fi | |
32896 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
32897 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
32898 | if test $ac_cv_lib_w_wcslen = yes; then | |
32899 | ||
32900 | WCHAR_LINK=" -lw" | |
32901 | WCSLEN_FOUND=1 | |
32902 | ||
32903 | fi | |
32904 | ||
32905 | fi | |
32906 | fi | |
32907 | ||
32908 | if test "$WCSLEN_FOUND" = 1; then | |
32909 | cat >>confdefs.h <<\_ACEOF | |
32910 | #define HAVE_WCSLEN 1 | |
32911 | _ACEOF | |
32912 | ||
32913 | fi | |
32914 | ||
efdf6afe | 32915 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 32916 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
32917 | fi |
32918 | ||
efdf6afe VZ |
32919 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
32920 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
32921 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
32922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32923 | else | |
32924 | cat >conftest.$ac_ext <<_ACEOF | |
32925 | /* confdefs.h. */ | |
32926 | _ACEOF | |
32927 | cat confdefs.h >>conftest.$ac_ext | |
32928 | cat >>conftest.$ac_ext <<_ACEOF | |
32929 | /* end confdefs.h. */ | |
32930 | #include <wchar.h> | |
32931 | ||
32932 | int | |
32933 | main () | |
32934 | { | |
32935 | if ((mbstate_t *) 0) | |
32936 | return 0; | |
32937 | if (sizeof (mbstate_t)) | |
32938 | return 0; | |
32939 | ; | |
32940 | return 0; | |
32941 | } | |
32942 | _ACEOF | |
32943 | rm -f conftest.$ac_objext | |
32944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32945 | (eval $ac_compile) 2>conftest.er1 | |
32946 | ac_status=$? | |
32947 | grep -v '^ *+' conftest.er1 >conftest.err | |
32948 | rm -f conftest.er1 | |
32949 | cat conftest.err >&5 | |
32950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32951 | (exit $ac_status); } && | |
f10e38c4 | 32952 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
efdf6afe VZ |
32953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32954 | (eval $ac_try) 2>&5 | |
32955 | ac_status=$? | |
32956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32957 | (exit $ac_status); }; } && | |
32958 | { ac_try='test -s conftest.$ac_objext' | |
32959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32960 | (eval $ac_try) 2>&5 | |
32961 | ac_status=$? | |
32962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32963 | (exit $ac_status); }; }; then | |
32964 | ac_cv_type_mbstate_t=yes | |
32965 | else | |
32966 | echo "$as_me: failed program was:" >&5 | |
32967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32968 | ||
32969 | ac_cv_type_mbstate_t=no | |
32970 | fi | |
32971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32972 | fi | |
32973 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
32974 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
32975 | if test $ac_cv_type_mbstate_t = yes; then | |
32976 | ||
32977 | cat >>confdefs.h <<_ACEOF | |
32978 | #define HAVE_MBSTATE_T 1 | |
32979 | _ACEOF | |
32980 | ||
a848cd7e SC |
32981 | |
32982 | for ac_func in wcsrtombs | |
32983 | do | |
32984 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32985 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32986 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32987 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32989 | else | |
32990 | cat >conftest.$ac_ext <<_ACEOF | |
32991 | /* confdefs.h. */ | |
32992 | _ACEOF | |
32993 | cat confdefs.h >>conftest.$ac_ext | |
32994 | cat >>conftest.$ac_ext <<_ACEOF | |
32995 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32996 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32997 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32998 | #define $ac_func innocuous_$ac_func | |
32999 | ||
a848cd7e SC |
33000 | /* System header to define __stub macros and hopefully few prototypes, |
33001 | which can conflict with char $ac_func (); below. | |
33002 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33003 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33004 | |
a848cd7e SC |
33005 | #ifdef __STDC__ |
33006 | # include <limits.h> | |
33007 | #else | |
33008 | # include <assert.h> | |
33009 | #endif | |
ac1cb8d3 VS |
33010 | |
33011 | #undef $ac_func | |
33012 | ||
a848cd7e SC |
33013 | /* Override any gcc2 internal prototype to avoid an error. */ |
33014 | #ifdef __cplusplus | |
33015 | extern "C" | |
33016 | { | |
33017 | #endif | |
33018 | /* We use char because int might match the return type of a gcc2 | |
33019 | builtin and then its argument prototype would still apply. */ | |
33020 | char $ac_func (); | |
33021 | /* The GNU C library defines this for functions which it implements | |
33022 | to always fail with ENOSYS. Some functions are actually named | |
33023 | something starting with __ and the normal name is an alias. */ | |
33024 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33025 | choke me | |
33026 | #else | |
33027 | char (*f) () = $ac_func; | |
33028 | #endif | |
33029 | #ifdef __cplusplus | |
33030 | } | |
33031 | #endif | |
33032 | ||
33033 | int | |
33034 | main () | |
33035 | { | |
33036 | return f != $ac_func; | |
33037 | ; | |
33038 | return 0; | |
33039 | } | |
33040 | _ACEOF | |
33041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33043 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33044 | ac_status=$? |
ac1cb8d3 VS |
33045 | grep -v '^ *+' conftest.er1 >conftest.err |
33046 | rm -f conftest.er1 | |
33047 | cat conftest.err >&5 | |
a848cd7e SC |
33048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33049 | (exit $ac_status); } && | |
f10e38c4 | 33050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33052 | (eval $ac_try) 2>&5 | |
33053 | ac_status=$? | |
33054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33055 | (exit $ac_status); }; } && | |
33056 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33058 | (eval $ac_try) 2>&5 | |
33059 | ac_status=$? | |
33060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33061 | (exit $ac_status); }; }; then | |
33062 | eval "$as_ac_var=yes" | |
33063 | else | |
33064 | echo "$as_me: failed program was:" >&5 | |
33065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33066 | ||
33067 | eval "$as_ac_var=no" | |
33068 | fi | |
ac1cb8d3 VS |
33069 | rm -f conftest.err conftest.$ac_objext \ |
33070 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33071 | fi |
33072 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33073 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33074 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33075 | cat >>confdefs.h <<_ACEOF | |
33076 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33077 | _ACEOF | |
33078 | ||
33079 | fi | |
33080 | done | |
33081 | ||
efdf6afe VZ |
33082 | fi |
33083 | ||
a848cd7e SC |
33084 | else |
33085 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
33086 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
33087 | fi | |
33088 | ||
a848cd7e SC |
33089 | ac_ext=cc |
33090 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33091 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33092 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33093 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33094 | ||
33095 | ||
33096 | ||
4a767dd5 VZ |
33097 | |
33098 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
33099 | do |
33100 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33101 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33102 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33103 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33105 | else | |
33106 | cat >conftest.$ac_ext <<_ACEOF | |
33107 | /* confdefs.h. */ | |
33108 | _ACEOF | |
33109 | cat confdefs.h >>conftest.$ac_ext | |
33110 | cat >>conftest.$ac_ext <<_ACEOF | |
33111 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33112 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33113 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33114 | #define $ac_func innocuous_$ac_func | |
33115 | ||
a848cd7e SC |
33116 | /* System header to define __stub macros and hopefully few prototypes, |
33117 | which can conflict with char $ac_func (); below. | |
33118 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33119 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33120 | |
a848cd7e SC |
33121 | #ifdef __STDC__ |
33122 | # include <limits.h> | |
33123 | #else | |
33124 | # include <assert.h> | |
33125 | #endif | |
ac1cb8d3 VS |
33126 | |
33127 | #undef $ac_func | |
33128 | ||
a848cd7e SC |
33129 | /* Override any gcc2 internal prototype to avoid an error. */ |
33130 | #ifdef __cplusplus | |
33131 | extern "C" | |
33132 | { | |
33133 | #endif | |
33134 | /* We use char because int might match the return type of a gcc2 | |
33135 | builtin and then its argument prototype would still apply. */ | |
33136 | char $ac_func (); | |
33137 | /* The GNU C library defines this for functions which it implements | |
33138 | to always fail with ENOSYS. Some functions are actually named | |
33139 | something starting with __ and the normal name is an alias. */ | |
33140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33141 | choke me | |
33142 | #else | |
33143 | char (*f) () = $ac_func; | |
33144 | #endif | |
33145 | #ifdef __cplusplus | |
33146 | } | |
33147 | #endif | |
33148 | ||
33149 | int | |
33150 | main () | |
33151 | { | |
33152 | return f != $ac_func; | |
33153 | ; | |
33154 | return 0; | |
33155 | } | |
33156 | _ACEOF | |
33157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33159 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33160 | ac_status=$? |
ac1cb8d3 VS |
33161 | grep -v '^ *+' conftest.er1 >conftest.err |
33162 | rm -f conftest.er1 | |
33163 | cat conftest.err >&5 | |
a848cd7e SC |
33164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33165 | (exit $ac_status); } && | |
f10e38c4 | 33166 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
33172 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33174 | (eval $ac_try) 2>&5 | |
33175 | ac_status=$? | |
33176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33177 | (exit $ac_status); }; }; then | |
33178 | eval "$as_ac_var=yes" | |
33179 | else | |
33180 | echo "$as_me: failed program was:" >&5 | |
33181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33182 | ||
33183 | eval "$as_ac_var=no" | |
33184 | fi | |
ac1cb8d3 VS |
33185 | rm -f conftest.err conftest.$ac_objext \ |
33186 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33187 | fi |
33188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33189 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33190 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33191 | cat >>confdefs.h <<_ACEOF | |
33192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33193 | _ACEOF | |
33194 | ||
33195 | fi | |
33196 | done | |
33197 | ||
33198 | ||
33199 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
33200 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
33201 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
33202 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
33203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33204 | else | |
33205 | ||
efdf6afe | 33206 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
33207 | /* confdefs.h. */ |
33208 | _ACEOF | |
33209 | cat confdefs.h >>conftest.$ac_ext | |
33210 | cat >>conftest.$ac_ext <<_ACEOF | |
33211 | /* end confdefs.h. */ | |
33212 | ||
33213 | #include <stdio.h> | |
33214 | #include <stdarg.h> | |
efdf6afe VZ |
33215 | #ifdef __MSL__ |
33216 | #if __MSL__ >= 0x6000 | |
33217 | namespace std {} | |
33218 | using namespace std; | |
33219 | #endif | |
33220 | #endif | |
a848cd7e SC |
33221 | |
33222 | int | |
33223 | main () | |
33224 | { | |
33225 | ||
33226 | char *buf; | |
33227 | va_list ap; | |
62fa8b3a | 33228 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
33229 | |
33230 | ; | |
33231 | return 0; | |
33232 | } | |
33233 | _ACEOF | |
33234 | rm -f conftest.$ac_objext | |
33235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33236 | (eval $ac_compile) 2>conftest.er1 | |
33237 | ac_status=$? | |
33238 | grep -v '^ *+' conftest.er1 >conftest.err | |
33239 | rm -f conftest.er1 | |
33240 | cat conftest.err >&5 | |
33241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33242 | (exit $ac_status); } && | |
f10e38c4 | 33243 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
33244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33245 | (eval $ac_try) 2>&5 | |
33246 | ac_status=$? | |
33247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33248 | (exit $ac_status); }; } && | |
33249 | { ac_try='test -s conftest.$ac_objext' | |
33250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33251 | (eval $ac_try) 2>&5 | |
33252 | ac_status=$? | |
33253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33254 | (exit $ac_status); }; }; then | |
33255 | wx_cv_func_vsnprintf_decl=yes | |
33256 | else | |
33257 | echo "$as_me: failed program was:" >&5 | |
33258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33259 | ||
a848cd7e SC |
33260 | wx_cv_func_vsnprintf_decl=no |
33261 | ||
33262 | fi | |
ac1cb8d3 | 33263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33264 | |
33265 | ||
33266 | fi | |
33267 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
33268 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
33269 | ||
33270 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
33271 | cat >>confdefs.h <<\_ACEOF | |
33272 | #define HAVE_VSNPRINTF_DECL 1 | |
33273 | _ACEOF | |
33274 | ||
62fa8b3a MW |
33275 | |
33276 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
33277 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
33278 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
33279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33280 | else | |
33281 | ||
33282 | cat >conftest.$ac_ext <<_ACEOF | |
33283 | /* confdefs.h. */ | |
33284 | _ACEOF | |
33285 | cat confdefs.h >>conftest.$ac_ext | |
33286 | cat >>conftest.$ac_ext <<_ACEOF | |
33287 | /* end confdefs.h. */ | |
33288 | ||
33289 | #include <stdio.h> | |
33290 | #include <stdarg.h> | |
33291 | #ifdef __MSL__ | |
33292 | #if __MSL__ >= 0x6000 | |
33293 | namespace std {} | |
33294 | using namespace std; | |
33295 | #endif | |
33296 | #endif | |
33297 | ||
33298 | int | |
33299 | main () | |
33300 | { | |
33301 | ||
33302 | char *buf; | |
33303 | va_list ap; | |
33304 | const char *fmt = "%s"; | |
33305 | vsnprintf(buf, 10u, fmt, ap); | |
33306 | ||
33307 | ; | |
33308 | return 0; | |
33309 | } | |
33310 | _ACEOF | |
33311 | rm -f conftest.$ac_objext | |
33312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33313 | (eval $ac_compile) 2>conftest.er1 | |
33314 | ac_status=$? | |
33315 | grep -v '^ *+' conftest.er1 >conftest.err | |
33316 | rm -f conftest.er1 | |
33317 | cat conftest.err >&5 | |
33318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33319 | (exit $ac_status); } && | |
f10e38c4 | 33320 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
33321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33322 | (eval $ac_try) 2>&5 | |
33323 | ac_status=$? | |
33324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33325 | (exit $ac_status); }; } && | |
33326 | { ac_try='test -s conftest.$ac_objext' | |
33327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33328 | (eval $ac_try) 2>&5 | |
33329 | ac_status=$? | |
33330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33331 | (exit $ac_status); }; }; then | |
33332 | wx_cv_func_broken_vsnprintf_decl=no | |
33333 | else | |
33334 | echo "$as_me: failed program was:" >&5 | |
33335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33336 | ||
33337 | wx_cv_func_broken_vsnprintf_decl=yes | |
33338 | ||
33339 | fi | |
33340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33341 | ||
33342 | ||
33343 | fi | |
33344 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
33345 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
33346 | ||
33347 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
33348 | cat >>confdefs.h <<\_ACEOF | |
33349 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
33350 | _ACEOF | |
33351 | ||
33352 | fi | |
a848cd7e SC |
33353 | fi |
33354 | fi | |
33355 | ||
4a767dd5 VZ |
33356 | if test "$ac_cv_func_snprintf" = "yes"; then |
33357 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
33358 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
33359 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
33360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33361 | else | |
33362 | ||
33363 | cat >conftest.$ac_ext <<_ACEOF | |
33364 | /* confdefs.h. */ | |
33365 | _ACEOF | |
33366 | cat confdefs.h >>conftest.$ac_ext | |
33367 | cat >>conftest.$ac_ext <<_ACEOF | |
33368 | /* end confdefs.h. */ | |
33369 | ||
33370 | #include <stdio.h> | |
33371 | #include <stdarg.h> | |
33372 | #ifdef __MSL__ | |
33373 | #if __MSL__ >= 0x6000 | |
33374 | namespace std {} | |
33375 | using namespace std; | |
33376 | #endif | |
33377 | #endif | |
33378 | ||
33379 | int | |
33380 | main () | |
33381 | { | |
33382 | ||
33383 | char *buf; | |
62fa8b3a | 33384 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
33385 | |
33386 | ; | |
33387 | return 0; | |
33388 | } | |
33389 | _ACEOF | |
33390 | rm -f conftest.$ac_objext | |
33391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33392 | (eval $ac_compile) 2>conftest.er1 | |
33393 | ac_status=$? | |
33394 | grep -v '^ *+' conftest.er1 >conftest.err | |
33395 | rm -f conftest.er1 | |
33396 | cat conftest.err >&5 | |
33397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33398 | (exit $ac_status); } && | |
f10e38c4 | 33399 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4a767dd5 VZ |
33400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33401 | (eval $ac_try) 2>&5 | |
33402 | ac_status=$? | |
33403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33404 | (exit $ac_status); }; } && | |
33405 | { ac_try='test -s conftest.$ac_objext' | |
33406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33407 | (eval $ac_try) 2>&5 | |
33408 | ac_status=$? | |
33409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33410 | (exit $ac_status); }; }; then | |
33411 | wx_cv_func_snprintf_decl=yes | |
33412 | else | |
33413 | echo "$as_me: failed program was:" >&5 | |
33414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33415 | ||
33416 | wx_cv_func_snprintf_decl=no | |
33417 | ||
33418 | fi | |
33419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33420 | ||
33421 | ||
33422 | fi | |
33423 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
33424 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
33425 | ||
33426 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
33427 | cat >>confdefs.h <<\_ACEOF | |
33428 | #define HAVE_SNPRINTF_DECL 1 | |
33429 | _ACEOF | |
33430 | ||
62fa8b3a MW |
33431 | |
33432 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
33433 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
33434 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
33435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33436 | else | |
33437 | ||
33438 | cat >conftest.$ac_ext <<_ACEOF | |
33439 | /* confdefs.h. */ | |
33440 | _ACEOF | |
33441 | cat confdefs.h >>conftest.$ac_ext | |
33442 | cat >>conftest.$ac_ext <<_ACEOF | |
33443 | /* end confdefs.h. */ | |
33444 | ||
33445 | #include <stdio.h> | |
33446 | #include <stdarg.h> | |
33447 | #ifdef __MSL__ | |
33448 | #if __MSL__ >= 0x6000 | |
33449 | namespace std {} | |
33450 | using namespace std; | |
33451 | #endif | |
33452 | #endif | |
33453 | ||
33454 | int | |
33455 | main () | |
33456 | { | |
33457 | ||
33458 | char *buf; | |
33459 | const char *fmt = "%s"; | |
33460 | snprintf(buf, 10u, fmt, "wx"); | |
33461 | ||
33462 | ; | |
33463 | return 0; | |
33464 | } | |
33465 | _ACEOF | |
33466 | rm -f conftest.$ac_objext | |
33467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33468 | (eval $ac_compile) 2>conftest.er1 | |
33469 | ac_status=$? | |
33470 | grep -v '^ *+' conftest.er1 >conftest.err | |
33471 | rm -f conftest.er1 | |
33472 | cat conftest.err >&5 | |
33473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33474 | (exit $ac_status); } && | |
f10e38c4 | 33475 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
33476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33477 | (eval $ac_try) 2>&5 | |
33478 | ac_status=$? | |
33479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33480 | (exit $ac_status); }; } && | |
33481 | { ac_try='test -s conftest.$ac_objext' | |
33482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33483 | (eval $ac_try) 2>&5 | |
33484 | ac_status=$? | |
33485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33486 | (exit $ac_status); }; }; then | |
33487 | wx_cv_func_broken_snprintf_decl=no | |
33488 | else | |
33489 | echo "$as_me: failed program was:" >&5 | |
33490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33491 | ||
33492 | wx_cv_func_broken_snprintf_decl=yes | |
33493 | ||
33494 | fi | |
33495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33496 | ||
33497 | ||
33498 | fi | |
33499 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
33500 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
33501 | ||
33502 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
33503 | cat >>confdefs.h <<\_ACEOF | |
33504 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
33505 | _ACEOF | |
33506 | ||
33507 | fi | |
4a767dd5 VZ |
33508 | fi |
33509 | fi | |
33510 | ||
a848cd7e SC |
33511 | if test "$wxUSE_UNICODE" = yes; then |
33512 | ||
33513 | ||
33514 | ||
fbe47c7b VS |
33515 | |
33516 | ||
33517 | ||
33518 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
33519 | do |
33520 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33521 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33522 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33523 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33525 | else | |
33526 | cat >conftest.$ac_ext <<_ACEOF | |
33527 | /* confdefs.h. */ | |
33528 | _ACEOF | |
33529 | cat confdefs.h >>conftest.$ac_ext | |
33530 | cat >>conftest.$ac_ext <<_ACEOF | |
33531 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33532 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33533 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33534 | #define $ac_func innocuous_$ac_func | |
33535 | ||
a848cd7e SC |
33536 | /* System header to define __stub macros and hopefully few prototypes, |
33537 | which can conflict with char $ac_func (); below. | |
33538 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33539 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33540 | |
a848cd7e SC |
33541 | #ifdef __STDC__ |
33542 | # include <limits.h> | |
33543 | #else | |
33544 | # include <assert.h> | |
33545 | #endif | |
ac1cb8d3 VS |
33546 | |
33547 | #undef $ac_func | |
33548 | ||
a848cd7e SC |
33549 | /* Override any gcc2 internal prototype to avoid an error. */ |
33550 | #ifdef __cplusplus | |
33551 | extern "C" | |
33552 | { | |
33553 | #endif | |
33554 | /* We use char because int might match the return type of a gcc2 | |
33555 | builtin and then its argument prototype would still apply. */ | |
33556 | char $ac_func (); | |
33557 | /* The GNU C library defines this for functions which it implements | |
33558 | to always fail with ENOSYS. Some functions are actually named | |
33559 | something starting with __ and the normal name is an alias. */ | |
33560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33561 | choke me | |
33562 | #else | |
33563 | char (*f) () = $ac_func; | |
33564 | #endif | |
33565 | #ifdef __cplusplus | |
33566 | } | |
33567 | #endif | |
33568 | ||
33569 | int | |
33570 | main () | |
33571 | { | |
33572 | return f != $ac_func; | |
33573 | ; | |
33574 | return 0; | |
33575 | } | |
33576 | _ACEOF | |
33577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33579 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33580 | ac_status=$? |
ac1cb8d3 VS |
33581 | grep -v '^ *+' conftest.er1 >conftest.err |
33582 | rm -f conftest.er1 | |
33583 | cat conftest.err >&5 | |
a848cd7e SC |
33584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33585 | (exit $ac_status); } && | |
f10e38c4 | 33586 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33588 | (eval $ac_try) 2>&5 | |
33589 | ac_status=$? | |
33590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33591 | (exit $ac_status); }; } && | |
33592 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33594 | (eval $ac_try) 2>&5 | |
33595 | ac_status=$? | |
33596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33597 | (exit $ac_status); }; }; then | |
33598 | eval "$as_ac_var=yes" | |
33599 | else | |
33600 | echo "$as_me: failed program was:" >&5 | |
33601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33602 | ||
33603 | eval "$as_ac_var=no" | |
33604 | fi | |
ac1cb8d3 VS |
33605 | rm -f conftest.err conftest.$ac_objext \ |
33606 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33607 | fi |
33608 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33609 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33610 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33611 | cat >>confdefs.h <<_ACEOF | |
33612 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33613 | _ACEOF | |
33614 | ||
33615 | fi | |
33616 | done | |
33617 | ||
33618 | ||
33619 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
33620 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
33621 | cat >conftest.$ac_ext <<_ACEOF | |
33622 | /* confdefs.h. */ | |
33623 | _ACEOF | |
33624 | cat confdefs.h >>conftest.$ac_ext | |
33625 | cat >>conftest.$ac_ext <<_ACEOF | |
33626 | /* end confdefs.h. */ | |
33627 | #include <wchar.h> | |
33628 | int | |
33629 | main () | |
33630 | { | |
33631 | &_vsnwprintf; | |
33632 | ; | |
33633 | return 0; | |
33634 | } | |
33635 | _ACEOF | |
33636 | rm -f conftest.$ac_objext | |
33637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33638 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33639 | ac_status=$? |
ac1cb8d3 VS |
33640 | grep -v '^ *+' conftest.er1 >conftest.err |
33641 | rm -f conftest.er1 | |
33642 | cat conftest.err >&5 | |
a848cd7e SC |
33643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33644 | (exit $ac_status); } && | |
f10e38c4 | 33645 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33647 | (eval $ac_try) 2>&5 | |
33648 | ac_status=$? | |
33649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33650 | (exit $ac_status); }; } && | |
33651 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33653 | (eval $ac_try) 2>&5 | |
33654 | ac_status=$? | |
33655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33656 | (exit $ac_status); }; }; then | |
33657 | echo "$as_me:$LINENO: result: yes" >&5 | |
33658 | echo "${ECHO_T}yes" >&6 | |
33659 | cat >>confdefs.h <<\_ACEOF | |
33660 | #define HAVE__VSNWPRINTF 1 | |
33661 | _ACEOF | |
33662 | ||
33663 | else | |
33664 | echo "$as_me: failed program was:" >&5 | |
33665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33666 | ||
33667 | echo "$as_me:$LINENO: result: no" >&5 | |
33668 | echo "${ECHO_T}no" >&6 | |
33669 | fi | |
ac1cb8d3 | 33670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
33671 | fi |
33672 | ||
33673 | ac_ext=c | |
33674 | ac_cpp='$CPP $CPPFLAGS' | |
33675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33678 | ||
33679 | ||
6ebeb4c7 VZ |
33680 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
33681 | ||
33682 | for ac_func in fnmatch | |
33683 | do | |
33684 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33685 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33686 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33687 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33689 | else | |
33690 | cat >conftest.$ac_ext <<_ACEOF | |
33691 | /* confdefs.h. */ | |
33692 | _ACEOF | |
33693 | cat confdefs.h >>conftest.$ac_ext | |
33694 | cat >>conftest.$ac_ext <<_ACEOF | |
33695 | /* end confdefs.h. */ | |
33696 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33697 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33698 | #define $ac_func innocuous_$ac_func | |
33699 | ||
33700 | /* System header to define __stub macros and hopefully few prototypes, | |
33701 | which can conflict with char $ac_func (); below. | |
33702 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33703 | <limits.h> exists even on freestanding compilers. */ | |
33704 | ||
33705 | #ifdef __STDC__ | |
33706 | # include <limits.h> | |
33707 | #else | |
33708 | # include <assert.h> | |
33709 | #endif | |
33710 | ||
33711 | #undef $ac_func | |
33712 | ||
33713 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33714 | #ifdef __cplusplus | |
33715 | extern "C" | |
33716 | { | |
33717 | #endif | |
33718 | /* We use char because int might match the return type of a gcc2 | |
33719 | builtin and then its argument prototype would still apply. */ | |
33720 | char $ac_func (); | |
33721 | /* The GNU C library defines this for functions which it implements | |
33722 | to always fail with ENOSYS. Some functions are actually named | |
33723 | something starting with __ and the normal name is an alias. */ | |
33724 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33725 | choke me | |
33726 | #else | |
33727 | char (*f) () = $ac_func; | |
33728 | #endif | |
33729 | #ifdef __cplusplus | |
33730 | } | |
33731 | #endif | |
33732 | ||
33733 | int | |
33734 | main () | |
33735 | { | |
33736 | return f != $ac_func; | |
33737 | ; | |
33738 | return 0; | |
33739 | } | |
33740 | _ACEOF | |
33741 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33743 | (eval $ac_link) 2>conftest.er1 | |
33744 | ac_status=$? | |
33745 | grep -v '^ *+' conftest.er1 >conftest.err | |
33746 | rm -f conftest.er1 | |
33747 | cat conftest.err >&5 | |
33748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33749 | (exit $ac_status); } && | |
f10e38c4 | 33750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
33751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33752 | (eval $ac_try) 2>&5 | |
33753 | ac_status=$? | |
33754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33755 | (exit $ac_status); }; } && | |
33756 | { ac_try='test -s conftest$ac_exeext' | |
33757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33758 | (eval $ac_try) 2>&5 | |
33759 | ac_status=$? | |
33760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33761 | (exit $ac_status); }; }; then | |
33762 | eval "$as_ac_var=yes" | |
33763 | else | |
33764 | echo "$as_me: failed program was:" >&5 | |
33765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33766 | ||
33767 | eval "$as_ac_var=no" | |
33768 | fi | |
33769 | rm -f conftest.err conftest.$ac_objext \ | |
33770 | conftest$ac_exeext conftest.$ac_ext | |
33771 | fi | |
33772 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33773 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33774 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33775 | cat >>confdefs.h <<_ACEOF | |
33776 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33777 | _ACEOF | |
33778 | ||
33779 | fi | |
33780 | done | |
33781 | ||
33782 | fi | |
33783 | ||
33784 | if test "$wxUSE_FILE" = "yes"; then | |
33785 | ||
33786 | for ac_func in fsync | |
33787 | do | |
33788 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33789 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33790 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33791 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33793 | else | |
33794 | cat >conftest.$ac_ext <<_ACEOF | |
33795 | /* confdefs.h. */ | |
33796 | _ACEOF | |
33797 | cat confdefs.h >>conftest.$ac_ext | |
33798 | cat >>conftest.$ac_ext <<_ACEOF | |
33799 | /* end confdefs.h. */ | |
33800 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33801 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33802 | #define $ac_func innocuous_$ac_func | |
33803 | ||
33804 | /* System header to define __stub macros and hopefully few prototypes, | |
33805 | which can conflict with char $ac_func (); below. | |
33806 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33807 | <limits.h> exists even on freestanding compilers. */ | |
33808 | ||
33809 | #ifdef __STDC__ | |
33810 | # include <limits.h> | |
33811 | #else | |
33812 | # include <assert.h> | |
33813 | #endif | |
33814 | ||
33815 | #undef $ac_func | |
33816 | ||
33817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33818 | #ifdef __cplusplus | |
33819 | extern "C" | |
33820 | { | |
33821 | #endif | |
33822 | /* We use char because int might match the return type of a gcc2 | |
33823 | builtin and then its argument prototype would still apply. */ | |
33824 | char $ac_func (); | |
33825 | /* The GNU C library defines this for functions which it implements | |
33826 | to always fail with ENOSYS. Some functions are actually named | |
33827 | something starting with __ and the normal name is an alias. */ | |
33828 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33829 | choke me | |
33830 | #else | |
33831 | char (*f) () = $ac_func; | |
33832 | #endif | |
33833 | #ifdef __cplusplus | |
33834 | } | |
33835 | #endif | |
33836 | ||
33837 | int | |
33838 | main () | |
33839 | { | |
33840 | return f != $ac_func; | |
33841 | ; | |
33842 | return 0; | |
33843 | } | |
33844 | _ACEOF | |
33845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33847 | (eval $ac_link) 2>conftest.er1 | |
33848 | ac_status=$? | |
33849 | grep -v '^ *+' conftest.er1 >conftest.err | |
33850 | rm -f conftest.er1 | |
33851 | cat conftest.err >&5 | |
33852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33853 | (exit $ac_status); } && | |
f10e38c4 | 33854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
33855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33856 | (eval $ac_try) 2>&5 | |
33857 | ac_status=$? | |
33858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33859 | (exit $ac_status); }; } && | |
33860 | { ac_try='test -s conftest$ac_exeext' | |
33861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33862 | (eval $ac_try) 2>&5 | |
33863 | ac_status=$? | |
33864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33865 | (exit $ac_status); }; }; then | |
33866 | eval "$as_ac_var=yes" | |
33867 | else | |
33868 | echo "$as_me: failed program was:" >&5 | |
33869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33870 | ||
33871 | eval "$as_ac_var=no" | |
33872 | fi | |
33873 | rm -f conftest.err conftest.$ac_objext \ | |
33874 | conftest$ac_exeext conftest.$ac_ext | |
33875 | fi | |
33876 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33877 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33878 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33879 | cat >>confdefs.h <<_ACEOF | |
33880 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33881 | _ACEOF | |
33882 | ||
33883 | fi | |
33884 | done | |
33885 | ||
33886 | fi | |
a848cd7e SC |
33887 | |
33888 | ||
33889 | if test "$TOOLKIT" != "MSW"; then | |
33890 | ||
33891 | ||
a848cd7e SC |
33892 | ac_ext=cc |
33893 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33894 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33895 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33896 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33897 | ||
33898 | ||
33899 | ||
33900 | ||
33901 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
33902 | if test "${with_libiconv_prefix+set}" = set; then | |
33903 | withval="$with_libiconv_prefix" | |
33904 | ||
33905 | for dir in `echo "$withval" | tr : ' '`; do | |
33906 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
33907 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
33908 | done | |
33909 | ||
33910 | fi; | |
33911 | ||
33912 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
33913 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
33914 | if test "${am_cv_func_iconv+set}" = set; then | |
33915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33916 | else | |
33917 | ||
33918 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
33919 | am_cv_lib_iconv=no | |
33920 | cat >conftest.$ac_ext <<_ACEOF | |
33921 | /* confdefs.h. */ | |
33922 | _ACEOF | |
33923 | cat confdefs.h >>conftest.$ac_ext | |
33924 | cat >>conftest.$ac_ext <<_ACEOF | |
33925 | /* end confdefs.h. */ | |
33926 | #include <stdlib.h> | |
33927 | #include <iconv.h> | |
33928 | int | |
33929 | main () | |
33930 | { | |
33931 | iconv_t cd = iconv_open("",""); | |
33932 | iconv(cd,NULL,NULL,NULL,NULL); | |
33933 | iconv_close(cd); | |
33934 | ; | |
33935 | return 0; | |
33936 | } | |
33937 | _ACEOF | |
33938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33940 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33941 | ac_status=$? |
ac1cb8d3 VS |
33942 | grep -v '^ *+' conftest.er1 >conftest.err |
33943 | rm -f conftest.er1 | |
33944 | cat conftest.err >&5 | |
a848cd7e SC |
33945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33946 | (exit $ac_status); } && | |
f10e38c4 | 33947 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33949 | (eval $ac_try) 2>&5 | |
33950 | ac_status=$? | |
33951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33952 | (exit $ac_status); }; } && | |
33953 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33955 | (eval $ac_try) 2>&5 | |
33956 | ac_status=$? | |
33957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33958 | (exit $ac_status); }; }; then | |
33959 | am_cv_func_iconv=yes | |
33960 | else | |
33961 | echo "$as_me: failed program was:" >&5 | |
33962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33963 | ||
33964 | fi | |
ac1cb8d3 VS |
33965 | rm -f conftest.err conftest.$ac_objext \ |
33966 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33967 | if test "$am_cv_func_iconv" != yes; then |
33968 | am_save_LIBS="$LIBS" | |
33969 | LIBS="$LIBS -liconv" | |
33970 | cat >conftest.$ac_ext <<_ACEOF | |
33971 | /* confdefs.h. */ | |
33972 | _ACEOF | |
33973 | cat confdefs.h >>conftest.$ac_ext | |
33974 | cat >>conftest.$ac_ext <<_ACEOF | |
33975 | /* end confdefs.h. */ | |
33976 | #include <stdlib.h> | |
33977 | #include <iconv.h> | |
33978 | int | |
33979 | main () | |
33980 | { | |
33981 | iconv_t cd = iconv_open("",""); | |
33982 | iconv(cd,NULL,NULL,NULL,NULL); | |
33983 | iconv_close(cd); | |
33984 | ; | |
33985 | return 0; | |
33986 | } | |
33987 | _ACEOF | |
33988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33990 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33991 | ac_status=$? |
ac1cb8d3 VS |
33992 | grep -v '^ *+' conftest.er1 >conftest.err |
33993 | rm -f conftest.er1 | |
33994 | cat conftest.err >&5 | |
a848cd7e SC |
33995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33996 | (exit $ac_status); } && | |
f10e38c4 | 33997 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33999 | (eval $ac_try) 2>&5 | |
34000 | ac_status=$? | |
34001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34002 | (exit $ac_status); }; } && | |
34003 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34005 | (eval $ac_try) 2>&5 | |
34006 | ac_status=$? | |
34007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34008 | (exit $ac_status); }; }; then | |
34009 | am_cv_lib_iconv=yes | |
34010 | am_cv_func_iconv=yes | |
34011 | else | |
34012 | echo "$as_me: failed program was:" >&5 | |
34013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34014 | ||
34015 | fi | |
ac1cb8d3 VS |
34016 | rm -f conftest.err conftest.$ac_objext \ |
34017 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34018 | LIBS="$am_save_LIBS" |
34019 | fi | |
34020 | ||
34021 | fi | |
34022 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
34023 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
34024 | if test "$am_cv_func_iconv" = yes; then | |
34025 | ||
34026 | cat >>confdefs.h <<\_ACEOF | |
34027 | #define HAVE_ICONV 1 | |
34028 | _ACEOF | |
34029 | ||
34030 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
34031 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
34032 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
34033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34034 | else | |
34035 | cat >conftest.$ac_ext <<_ACEOF | |
34036 | /* confdefs.h. */ | |
34037 | _ACEOF | |
34038 | cat confdefs.h >>conftest.$ac_ext | |
34039 | cat >>conftest.$ac_ext <<_ACEOF | |
34040 | /* end confdefs.h. */ | |
34041 | ||
34042 | #include <stdlib.h> | |
34043 | #include <iconv.h> | |
34044 | extern | |
34045 | #ifdef __cplusplus | |
34046 | "C" | |
34047 | #endif | |
34048 | #if defined(__STDC__) || defined(__cplusplus) | |
34049 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
34050 | #else | |
34051 | size_t iconv(); | |
34052 | #endif | |
34053 | ||
34054 | int | |
34055 | main () | |
34056 | { | |
34057 | ||
34058 | ; | |
34059 | return 0; | |
34060 | } | |
34061 | _ACEOF | |
34062 | rm -f conftest.$ac_objext | |
34063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34064 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34065 | ac_status=$? |
ac1cb8d3 VS |
34066 | grep -v '^ *+' conftest.er1 >conftest.err |
34067 | rm -f conftest.er1 | |
34068 | cat conftest.err >&5 | |
a848cd7e SC |
34069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34070 | (exit $ac_status); } && | |
f10e38c4 | 34071 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34073 | (eval $ac_try) 2>&5 | |
34074 | ac_status=$? | |
34075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34076 | (exit $ac_status); }; } && | |
34077 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34079 | (eval $ac_try) 2>&5 | |
34080 | ac_status=$? | |
34081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34082 | (exit $ac_status); }; }; then | |
34083 | wx_cv_func_iconv_const="no" | |
34084 | else | |
34085 | echo "$as_me: failed program was:" >&5 | |
34086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34087 | ||
34088 | wx_cv_func_iconv_const="yes" | |
34089 | ||
34090 | fi | |
ac1cb8d3 | 34091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34092 | |
34093 | fi | |
34094 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
34095 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
34096 | ||
34097 | iconv_const= | |
34098 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
34099 | iconv_const="const" | |
34100 | fi | |
34101 | ||
34102 | ||
34103 | cat >>confdefs.h <<_ACEOF | |
34104 | #define ICONV_CONST $iconv_const | |
34105 | _ACEOF | |
34106 | ||
34107 | fi | |
34108 | LIBICONV= | |
34109 | if test "$am_cv_lib_iconv" = yes; then | |
34110 | LIBICONV="-liconv" | |
34111 | fi | |
34112 | ||
34113 | ||
34114 | LIBS="$LIBICONV $LIBS" | |
34115 | ac_ext=c | |
34116 | ac_cpp='$CPP $CPPFLAGS' | |
34117 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34118 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34119 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34120 | ||
34121 | ||
34122 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
34123 | ||
34124 | for ac_func in sigaction | |
34125 | do | |
34126 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34127 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34128 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34129 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34131 | else | |
34132 | cat >conftest.$ac_ext <<_ACEOF | |
34133 | /* confdefs.h. */ | |
34134 | _ACEOF | |
34135 | cat confdefs.h >>conftest.$ac_ext | |
34136 | cat >>conftest.$ac_ext <<_ACEOF | |
34137 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34138 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34139 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34140 | #define $ac_func innocuous_$ac_func | |
34141 | ||
a848cd7e SC |
34142 | /* System header to define __stub macros and hopefully few prototypes, |
34143 | which can conflict with char $ac_func (); below. | |
34144 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34145 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34146 | |
a848cd7e SC |
34147 | #ifdef __STDC__ |
34148 | # include <limits.h> | |
34149 | #else | |
34150 | # include <assert.h> | |
34151 | #endif | |
ac1cb8d3 VS |
34152 | |
34153 | #undef $ac_func | |
34154 | ||
a848cd7e SC |
34155 | /* Override any gcc2 internal prototype to avoid an error. */ |
34156 | #ifdef __cplusplus | |
34157 | extern "C" | |
34158 | { | |
34159 | #endif | |
34160 | /* We use char because int might match the return type of a gcc2 | |
34161 | builtin and then its argument prototype would still apply. */ | |
34162 | char $ac_func (); | |
34163 | /* The GNU C library defines this for functions which it implements | |
34164 | to always fail with ENOSYS. Some functions are actually named | |
34165 | something starting with __ and the normal name is an alias. */ | |
34166 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34167 | choke me | |
34168 | #else | |
34169 | char (*f) () = $ac_func; | |
34170 | #endif | |
34171 | #ifdef __cplusplus | |
34172 | } | |
34173 | #endif | |
34174 | ||
34175 | int | |
34176 | main () | |
34177 | { | |
34178 | return f != $ac_func; | |
34179 | ; | |
34180 | return 0; | |
34181 | } | |
34182 | _ACEOF | |
34183 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34185 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34186 | ac_status=$? |
ac1cb8d3 VS |
34187 | grep -v '^ *+' conftest.er1 >conftest.err |
34188 | rm -f conftest.er1 | |
34189 | cat conftest.err >&5 | |
a848cd7e SC |
34190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34191 | (exit $ac_status); } && | |
f10e38c4 | 34192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34194 | (eval $ac_try) 2>&5 | |
34195 | ac_status=$? | |
34196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34197 | (exit $ac_status); }; } && | |
34198 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34200 | (eval $ac_try) 2>&5 | |
34201 | ac_status=$? | |
34202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34203 | (exit $ac_status); }; }; then | |
34204 | eval "$as_ac_var=yes" | |
34205 | else | |
34206 | echo "$as_me: failed program was:" >&5 | |
34207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34208 | ||
34209 | eval "$as_ac_var=no" | |
34210 | fi | |
ac1cb8d3 VS |
34211 | rm -f conftest.err conftest.$ac_objext \ |
34212 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34213 | fi |
34214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34215 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34216 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34217 | cat >>confdefs.h <<_ACEOF | |
34218 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34219 | _ACEOF | |
34220 | ||
34221 | fi | |
34222 | done | |
34223 | ||
34224 | ||
34225 | if test "$ac_cv_func_sigaction" = "no"; then | |
34226 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
34227 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
34228 | wxUSE_ON_FATAL_EXCEPTION=no | |
34229 | fi | |
34230 | ||
34231 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a848cd7e SC |
34232 | ac_ext=cc |
34233 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34234 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34235 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34236 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34237 | ||
34238 | ||
34239 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
34240 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
34241 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
34242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34243 | else | |
34244 | ||
34245 | cat >conftest.$ac_ext <<_ACEOF | |
34246 | /* confdefs.h. */ | |
34247 | _ACEOF | |
34248 | cat confdefs.h >>conftest.$ac_ext | |
34249 | cat >>conftest.$ac_ext <<_ACEOF | |
34250 | /* end confdefs.h. */ | |
34251 | #include <signal.h> | |
34252 | int | |
34253 | main () | |
34254 | { | |
34255 | ||
34256 | extern void testSigHandler(int); | |
34257 | ||
34258 | struct sigaction sa; | |
34259 | sa.sa_handler = testSigHandler; | |
34260 | ||
34261 | ; | |
34262 | return 0; | |
34263 | } | |
34264 | _ACEOF | |
34265 | rm -f conftest.$ac_objext | |
34266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34267 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34268 | ac_status=$? |
ac1cb8d3 VS |
34269 | grep -v '^ *+' conftest.er1 >conftest.err |
34270 | rm -f conftest.er1 | |
34271 | cat conftest.err >&5 | |
a848cd7e SC |
34272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34273 | (exit $ac_status); } && | |
f10e38c4 | 34274 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34276 | (eval $ac_try) 2>&5 | |
34277 | ac_status=$? | |
34278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34279 | (exit $ac_status); }; } && | |
34280 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34282 | (eval $ac_try) 2>&5 | |
34283 | ac_status=$? | |
34284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34285 | (exit $ac_status); }; }; then | |
34286 | ||
34287 | wx_cv_type_sa_handler=int | |
34288 | ||
34289 | else | |
34290 | echo "$as_me: failed program was:" >&5 | |
34291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34292 | ||
34293 | ||
34294 | wx_cv_type_sa_handler=void | |
34295 | ||
34296 | fi | |
ac1cb8d3 | 34297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34298 | |
34299 | fi | |
34300 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
34301 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
34302 | ||
34303 | ac_ext=c | |
34304 | ac_cpp='$CPP $CPPFLAGS' | |
34305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34308 | ||
34309 | ||
34310 | cat >>confdefs.h <<_ACEOF | |
34311 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
34312 | _ACEOF | |
34313 | ||
34314 | fi | |
34315 | fi | |
34316 | ||
eaff0f0d | 34317 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
eaff0f0d VZ |
34318 | ac_ext=cc |
34319 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34320 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34321 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34322 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34323 | ||
34324 | ||
34325 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
34326 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
34327 | if test "${wx_cv_func_backtrace+set}" = set; then | |
34328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34329 | else | |
34330 | ||
34331 | cat >conftest.$ac_ext <<_ACEOF | |
34332 | /* confdefs.h. */ | |
34333 | _ACEOF | |
34334 | cat confdefs.h >>conftest.$ac_ext | |
34335 | cat >>conftest.$ac_ext <<_ACEOF | |
34336 | /* end confdefs.h. */ | |
34337 | #include <execinfo.h> | |
34338 | int | |
34339 | main () | |
34340 | { | |
34341 | ||
34342 | void *trace[1]; | |
34343 | char **messages; | |
34344 | ||
34345 | backtrace(trace, 1); | |
34346 | messages = backtrace_symbols(trace, 1); | |
34347 | ||
34348 | ; | |
34349 | return 0; | |
34350 | } | |
34351 | _ACEOF | |
34352 | rm -f conftest.$ac_objext | |
34353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34354 | (eval $ac_compile) 2>conftest.er1 | |
34355 | ac_status=$? | |
34356 | grep -v '^ *+' conftest.er1 >conftest.err | |
34357 | rm -f conftest.er1 | |
34358 | cat conftest.err >&5 | |
34359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34360 | (exit $ac_status); } && | |
f10e38c4 | 34361 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
34362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34363 | (eval $ac_try) 2>&5 | |
34364 | ac_status=$? | |
34365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34366 | (exit $ac_status); }; } && | |
34367 | { ac_try='test -s conftest.$ac_objext' | |
34368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34369 | (eval $ac_try) 2>&5 | |
34370 | ac_status=$? | |
34371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34372 | (exit $ac_status); }; }; then | |
34373 | wx_cv_func_backtrace=yes | |
34374 | else | |
34375 | echo "$as_me: failed program was:" >&5 | |
34376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34377 | ||
34378 | wx_cv_func_backtrace=no | |
34379 | ||
34380 | fi | |
34381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34382 | ||
34383 | ||
34384 | fi | |
34385 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
34386 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
34387 | ||
34388 | ||
34389 | if test "$wx_cv_func_backtrace" = "no"; then | |
34390 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
34391 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
34392 | wxUSE_STACKWALKER=no | |
34393 | else | |
34394 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
34395 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
34396 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
34397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34398 | else | |
34399 | ||
34400 | cat >conftest.$ac_ext <<_ACEOF | |
34401 | /* confdefs.h. */ | |
34402 | _ACEOF | |
34403 | cat confdefs.h >>conftest.$ac_ext | |
34404 | cat >>conftest.$ac_ext <<_ACEOF | |
34405 | /* end confdefs.h. */ | |
34406 | #include <cxxabi.h> | |
34407 | int | |
34408 | main () | |
34409 | { | |
34410 | ||
34411 | int rc; | |
34412 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
34413 | ||
34414 | ; | |
34415 | return 0; | |
34416 | } | |
34417 | _ACEOF | |
dfe0c803 JS |
34418 | rm -f conftest.$ac_objext conftest$ac_exeext |
34419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34420 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
34421 | ac_status=$? |
34422 | grep -v '^ *+' conftest.er1 >conftest.err | |
34423 | rm -f conftest.er1 | |
34424 | cat conftest.err >&5 | |
34425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34426 | (exit $ac_status); } && | |
f10e38c4 | 34427 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
34428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34429 | (eval $ac_try) 2>&5 | |
34430 | ac_status=$? | |
34431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34432 | (exit $ac_status); }; } && | |
dfe0c803 | 34433 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
34434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34435 | (eval $ac_try) 2>&5 | |
34436 | ac_status=$? | |
34437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34438 | (exit $ac_status); }; }; then | |
34439 | wx_cv_func_cxa_demangle=yes | |
34440 | else | |
34441 | echo "$as_me: failed program was:" >&5 | |
34442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34443 | ||
34444 | wx_cv_func_cxa_demangle=no | |
34445 | ||
34446 | fi | |
dfe0c803 JS |
34447 | rm -f conftest.err conftest.$ac_objext \ |
34448 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
34449 | |
34450 | ||
34451 | fi | |
34452 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
34453 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
34454 | ||
34455 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
34456 | cat >>confdefs.h <<\_ACEOF | |
34457 | #define HAVE_CXA_DEMANGLE 1 | |
34458 | _ACEOF | |
34459 | ||
34460 | fi | |
34461 | fi | |
34462 | ||
34463 | ac_ext=c | |
34464 | ac_cpp='$CPP $CPPFLAGS' | |
34465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34468 | ||
34469 | fi | |
34470 | ||
898beab1 DE |
34471 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
34472 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
34473 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
34474 | wxUSE_STACKWALKER=no | |
34475 | fi | |
34476 | ||
34477 | ||
a848cd7e SC |
34478 | |
34479 | ||
34480 | for ac_func in mkstemp mktemp | |
34481 | do | |
34482 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34483 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34484 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34485 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34487 | else | |
34488 | cat >conftest.$ac_ext <<_ACEOF | |
34489 | /* confdefs.h. */ | |
34490 | _ACEOF | |
34491 | cat confdefs.h >>conftest.$ac_ext | |
34492 | cat >>conftest.$ac_ext <<_ACEOF | |
34493 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34494 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34495 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34496 | #define $ac_func innocuous_$ac_func | |
34497 | ||
a848cd7e SC |
34498 | /* System header to define __stub macros and hopefully few prototypes, |
34499 | which can conflict with char $ac_func (); below. | |
34500 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34501 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34502 | |
a848cd7e SC |
34503 | #ifdef __STDC__ |
34504 | # include <limits.h> | |
34505 | #else | |
34506 | # include <assert.h> | |
34507 | #endif | |
ac1cb8d3 VS |
34508 | |
34509 | #undef $ac_func | |
34510 | ||
a848cd7e SC |
34511 | /* Override any gcc2 internal prototype to avoid an error. */ |
34512 | #ifdef __cplusplus | |
34513 | extern "C" | |
34514 | { | |
34515 | #endif | |
34516 | /* We use char because int might match the return type of a gcc2 | |
34517 | builtin and then its argument prototype would still apply. */ | |
34518 | char $ac_func (); | |
34519 | /* The GNU C library defines this for functions which it implements | |
34520 | to always fail with ENOSYS. Some functions are actually named | |
34521 | something starting with __ and the normal name is an alias. */ | |
34522 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34523 | choke me | |
34524 | #else | |
34525 | char (*f) () = $ac_func; | |
34526 | #endif | |
34527 | #ifdef __cplusplus | |
34528 | } | |
34529 | #endif | |
34530 | ||
34531 | int | |
34532 | main () | |
34533 | { | |
34534 | return f != $ac_func; | |
34535 | ; | |
34536 | return 0; | |
34537 | } | |
34538 | _ACEOF | |
34539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34541 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34542 | ac_status=$? |
ac1cb8d3 VS |
34543 | grep -v '^ *+' conftest.er1 >conftest.err |
34544 | rm -f conftest.er1 | |
34545 | cat conftest.err >&5 | |
a848cd7e SC |
34546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34547 | (exit $ac_status); } && | |
f10e38c4 | 34548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34550 | (eval $ac_try) 2>&5 | |
34551 | ac_status=$? | |
34552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34553 | (exit $ac_status); }; } && | |
34554 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34556 | (eval $ac_try) 2>&5 | |
34557 | ac_status=$? | |
34558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34559 | (exit $ac_status); }; }; then | |
34560 | eval "$as_ac_var=yes" | |
34561 | else | |
34562 | echo "$as_me: failed program was:" >&5 | |
34563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34564 | ||
34565 | eval "$as_ac_var=no" | |
34566 | fi | |
ac1cb8d3 VS |
34567 | rm -f conftest.err conftest.$ac_objext \ |
34568 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34569 | fi |
34570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34571 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34572 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34573 | cat >>confdefs.h <<_ACEOF | |
34574 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34575 | _ACEOF | |
34576 | break | |
34577 | fi | |
34578 | done | |
34579 | ||
34580 | ||
34581 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
34582 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
34583 | if test "${wx_cv_func_statfs+set}" = set; then | |
34584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34585 | else | |
34586 | cat >conftest.$ac_ext <<_ACEOF | |
34587 | /* confdefs.h. */ | |
34588 | _ACEOF | |
34589 | cat confdefs.h >>conftest.$ac_ext | |
34590 | cat >>conftest.$ac_ext <<_ACEOF | |
34591 | /* end confdefs.h. */ | |
34592 | ||
34593 | #if defined(__BSD__) | |
84ae7ca4 VZ |
34594 | #include <sys/param.h> |
34595 | #include <sys/mount.h> | |
a848cd7e | 34596 | #else |
84ae7ca4 | 34597 | #include <sys/vfs.h> |
a848cd7e SC |
34598 | #endif |
34599 | ||
34600 | int | |
34601 | main () | |
34602 | { | |
34603 | ||
34604 | long l; | |
34605 | struct statfs fs; | |
34606 | statfs("/", &fs); | |
34607 | l = fs.f_bsize; | |
34608 | l += fs.f_blocks; | |
34609 | l += fs.f_bavail; | |
34610 | ||
34611 | ; | |
34612 | return 0; | |
34613 | } | |
34614 | _ACEOF | |
34615 | rm -f conftest.$ac_objext | |
34616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34617 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34618 | ac_status=$? |
ac1cb8d3 VS |
34619 | grep -v '^ *+' conftest.er1 >conftest.err |
34620 | rm -f conftest.er1 | |
34621 | cat conftest.err >&5 | |
a848cd7e SC |
34622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34623 | (exit $ac_status); } && | |
f10e38c4 | 34624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34626 | (eval $ac_try) 2>&5 | |
34627 | ac_status=$? | |
34628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34629 | (exit $ac_status); }; } && | |
34630 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34632 | (eval $ac_try) 2>&5 | |
34633 | ac_status=$? | |
34634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34635 | (exit $ac_status); }; }; then | |
84ae7ca4 | 34636 | wx_cv_func_statfs=yes |
a848cd7e SC |
34637 | else |
34638 | echo "$as_me: failed program was:" >&5 | |
34639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34640 | ||
84ae7ca4 | 34641 | wx_cv_func_statfs=no |
a848cd7e SC |
34642 | |
34643 | fi | |
ac1cb8d3 | 34644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34645 | |
34646 | fi | |
34647 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
34648 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
34649 | ||
34650 | if test "$wx_cv_func_statfs" = "yes"; then | |
5ec3bc43 | 34651 | ac_ext=cc |
84ae7ca4 VZ |
34652 | ac_cpp='$CXXCPP $CPPFLAGS' |
34653 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34654 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34655 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34656 | ||
34657 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 | |
34658 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 | |
34659 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
34660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34661 | else | |
0683aca6 VZ |
34662 | cat >conftest.$ac_ext <<_ACEOF |
34663 | /* confdefs.h. */ | |
34664 | _ACEOF | |
34665 | cat confdefs.h >>conftest.$ac_ext | |
34666 | cat >>conftest.$ac_ext <<_ACEOF | |
34667 | /* end confdefs.h. */ | |
84ae7ca4 | 34668 | |
0683aca6 VZ |
34669 | #if defined(__BSD__) |
34670 | #include <sys/param.h> | |
34671 | #include <sys/mount.h> | |
34672 | #else | |
34673 | #include <sys/vfs.h> | |
34674 | #endif | |
34675 | ||
34676 | int | |
34677 | main () | |
34678 | { | |
34679 | ||
34680 | struct statfs fs; | |
34681 | statfs("", &fs); | |
34682 | ||
34683 | ; | |
34684 | return 0; | |
34685 | } | |
34686 | _ACEOF | |
34687 | rm -f conftest.$ac_objext | |
34688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34689 | (eval $ac_compile) 2>conftest.er1 | |
34690 | ac_status=$? | |
34691 | grep -v '^ *+' conftest.er1 >conftest.err | |
34692 | rm -f conftest.er1 | |
34693 | cat conftest.err >&5 | |
34694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34695 | (exit $ac_status); } && | |
f10e38c4 | 34696 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0683aca6 VZ |
34697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34698 | (eval $ac_try) 2>&5 | |
34699 | ac_status=$? | |
34700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34701 | (exit $ac_status); }; } && | |
34702 | { ac_try='test -s conftest.$ac_objext' | |
34703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34704 | (eval $ac_try) 2>&5 | |
34705 | ac_status=$? | |
34706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34707 | (exit $ac_status); }; }; then | |
34708 | wx_cv_func_statfs_decl=yes | |
34709 | else | |
34710 | echo "$as_me: failed program was:" >&5 | |
34711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34712 | ||
34713 | wx_cv_func_statfs_decl=no | |
34714 | ||
34715 | fi | |
34716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
34717 | |
34718 | fi | |
34719 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
34720 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
34721 | ac_ext=c | |
34722 | ac_cpp='$CPP $CPPFLAGS' | |
34723 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34724 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34725 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34726 | ||
34727 | ||
34728 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
34729 | cat >>confdefs.h <<\_ACEOF | |
34730 | #define HAVE_STATFS_DECL 1 | |
34731 | _ACEOF | |
34732 | ||
34733 | fi | |
34734 | ||
a848cd7e SC |
34735 | wx_cv_type_statvfs_t="struct statfs" |
34736 | cat >>confdefs.h <<\_ACEOF | |
34737 | #define HAVE_STATFS 1 | |
34738 | _ACEOF | |
34739 | ||
34740 | else | |
34741 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
34742 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
34743 | if test "${wx_cv_func_statvfs+set}" = set; then | |
34744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34745 | else | |
34746 | cat >conftest.$ac_ext <<_ACEOF | |
34747 | /* confdefs.h. */ | |
34748 | _ACEOF | |
34749 | cat confdefs.h >>conftest.$ac_ext | |
34750 | cat >>conftest.$ac_ext <<_ACEOF | |
34751 | /* end confdefs.h. */ | |
34752 | ||
34753 | #include <stddef.h> | |
34754 | #include <sys/statvfs.h> | |
34755 | ||
34756 | int | |
34757 | main () | |
34758 | { | |
34759 | ||
34760 | statvfs("/", NULL); | |
34761 | ||
34762 | ; | |
34763 | return 0; | |
34764 | } | |
34765 | _ACEOF | |
34766 | rm -f conftest.$ac_objext | |
34767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34768 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34769 | ac_status=$? |
ac1cb8d3 VS |
34770 | grep -v '^ *+' conftest.er1 >conftest.err |
34771 | rm -f conftest.er1 | |
34772 | cat conftest.err >&5 | |
a848cd7e SC |
34773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34774 | (exit $ac_status); } && | |
f10e38c4 | 34775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34777 | (eval $ac_try) 2>&5 | |
34778 | ac_status=$? | |
34779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34780 | (exit $ac_status); }; } && | |
34781 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34783 | (eval $ac_try) 2>&5 | |
34784 | ac_status=$? | |
34785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34786 | (exit $ac_status); }; }; then | |
34787 | wx_cv_func_statvfs=yes | |
34788 | else | |
34789 | echo "$as_me: failed program was:" >&5 | |
34790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34791 | ||
34792 | wx_cv_func_statvfs=no | |
34793 | ||
34794 | fi | |
ac1cb8d3 | 34795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34796 | |
34797 | fi | |
34798 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
34799 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
34800 | ||
34801 | if test "$wx_cv_func_statvfs" = "yes"; then | |
5ec3bc43 | 34802 | ac_ext=cc |
a848cd7e SC |
34803 | ac_cpp='$CXXCPP $CPPFLAGS' |
34804 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34805 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34806 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34807 | ||
34808 | ||
34809 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
34810 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
34811 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
34812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34813 | else | |
34814 | cat >conftest.$ac_ext <<_ACEOF | |
34815 | /* confdefs.h. */ | |
34816 | _ACEOF | |
34817 | cat confdefs.h >>conftest.$ac_ext | |
34818 | cat >>conftest.$ac_ext <<_ACEOF | |
34819 | /* end confdefs.h. */ | |
34820 | ||
34821 | #include <sys/statvfs.h> | |
34822 | ||
34823 | int | |
34824 | main () | |
34825 | { | |
34826 | ||
34827 | long l; | |
34828 | statvfs_t fs; | |
34829 | statvfs("/", &fs); | |
34830 | l = fs.f_bsize; | |
34831 | l += fs.f_blocks; | |
34832 | l += fs.f_bavail; | |
34833 | ||
34834 | ; | |
34835 | return 0; | |
34836 | } | |
34837 | _ACEOF | |
34838 | rm -f conftest.$ac_objext | |
34839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34840 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34841 | ac_status=$? |
ac1cb8d3 VS |
34842 | grep -v '^ *+' conftest.er1 >conftest.err |
34843 | rm -f conftest.er1 | |
34844 | cat conftest.err >&5 | |
a848cd7e SC |
34845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34846 | (exit $ac_status); } && | |
f10e38c4 | 34847 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34849 | (eval $ac_try) 2>&5 | |
34850 | ac_status=$? | |
34851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34852 | (exit $ac_status); }; } && | |
34853 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34855 | (eval $ac_try) 2>&5 | |
34856 | ac_status=$? | |
34857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34858 | (exit $ac_status); }; }; then | |
34859 | wx_cv_type_statvfs_t=statvfs_t | |
34860 | else | |
34861 | echo "$as_me: failed program was:" >&5 | |
34862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34863 | ||
34864 | ||
34865 | cat >conftest.$ac_ext <<_ACEOF | |
34866 | /* confdefs.h. */ | |
34867 | _ACEOF | |
34868 | cat confdefs.h >>conftest.$ac_ext | |
34869 | cat >>conftest.$ac_ext <<_ACEOF | |
34870 | /* end confdefs.h. */ | |
34871 | ||
34872 | #include <sys/statvfs.h> | |
34873 | ||
34874 | int | |
34875 | main () | |
34876 | { | |
34877 | ||
34878 | long l; | |
34879 | struct statvfs fs; | |
34880 | statvfs("/", &fs); | |
34881 | l = fs.f_bsize; | |
34882 | l += fs.f_blocks; | |
34883 | l += fs.f_bavail; | |
34884 | ||
34885 | ; | |
34886 | return 0; | |
34887 | } | |
34888 | _ACEOF | |
34889 | rm -f conftest.$ac_objext | |
34890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34891 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34892 | ac_status=$? |
ac1cb8d3 VS |
34893 | grep -v '^ *+' conftest.er1 >conftest.err |
34894 | rm -f conftest.er1 | |
34895 | cat conftest.err >&5 | |
a848cd7e SC |
34896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34897 | (exit $ac_status); } && | |
f10e38c4 | 34898 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34900 | (eval $ac_try) 2>&5 | |
34901 | ac_status=$? | |
34902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34903 | (exit $ac_status); }; } && | |
34904 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34906 | (eval $ac_try) 2>&5 | |
34907 | ac_status=$? | |
34908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34909 | (exit $ac_status); }; }; then | |
34910 | wx_cv_type_statvfs_t="struct statvfs" | |
34911 | else | |
34912 | echo "$as_me: failed program was:" >&5 | |
34913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34914 | ||
34915 | wx_cv_type_statvfs_t="unknown" | |
34916 | ||
34917 | fi | |
ac1cb8d3 | 34918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34919 | |
34920 | ||
34921 | fi | |
ac1cb8d3 | 34922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34923 | |
34924 | fi | |
34925 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
34926 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
34927 | ||
34928 | ac_ext=c | |
34929 | ac_cpp='$CPP $CPPFLAGS' | |
34930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34933 | ||
34934 | ||
34935 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
34936 | cat >>confdefs.h <<\_ACEOF | |
34937 | #define HAVE_STATVFS 1 | |
34938 | _ACEOF | |
34939 | ||
34940 | fi | |
34941 | else | |
34942 | wx_cv_type_statvfs_t="unknown" | |
34943 | fi | |
34944 | fi | |
34945 | ||
34946 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
34947 | cat >>confdefs.h <<_ACEOF | |
34948 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
34949 | _ACEOF | |
34950 | ||
34951 | else | |
34952 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
34953 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
34954 | fi | |
34955 | ||
34956 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34957 | ||
34958 | ||
34959 | for ac_func in fcntl flock | |
34960 | do | |
34961 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34962 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34963 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34964 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34966 | else | |
34967 | cat >conftest.$ac_ext <<_ACEOF | |
34968 | /* confdefs.h. */ | |
34969 | _ACEOF | |
34970 | cat confdefs.h >>conftest.$ac_ext | |
34971 | cat >>conftest.$ac_ext <<_ACEOF | |
34972 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34973 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34974 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34975 | #define $ac_func innocuous_$ac_func | |
34976 | ||
a848cd7e SC |
34977 | /* System header to define __stub macros and hopefully few prototypes, |
34978 | which can conflict with char $ac_func (); below. | |
34979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34980 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34981 | |
a848cd7e SC |
34982 | #ifdef __STDC__ |
34983 | # include <limits.h> | |
34984 | #else | |
34985 | # include <assert.h> | |
34986 | #endif | |
ac1cb8d3 VS |
34987 | |
34988 | #undef $ac_func | |
34989 | ||
a848cd7e SC |
34990 | /* Override any gcc2 internal prototype to avoid an error. */ |
34991 | #ifdef __cplusplus | |
34992 | extern "C" | |
34993 | { | |
34994 | #endif | |
34995 | /* We use char because int might match the return type of a gcc2 | |
34996 | builtin and then its argument prototype would still apply. */ | |
34997 | char $ac_func (); | |
34998 | /* The GNU C library defines this for functions which it implements | |
34999 | to always fail with ENOSYS. Some functions are actually named | |
35000 | something starting with __ and the normal name is an alias. */ | |
35001 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35002 | choke me | |
35003 | #else | |
35004 | char (*f) () = $ac_func; | |
35005 | #endif | |
35006 | #ifdef __cplusplus | |
35007 | } | |
35008 | #endif | |
35009 | ||
35010 | int | |
35011 | main () | |
35012 | { | |
35013 | return f != $ac_func; | |
35014 | ; | |
35015 | return 0; | |
35016 | } | |
35017 | _ACEOF | |
35018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35020 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35021 | ac_status=$? |
ac1cb8d3 VS |
35022 | grep -v '^ *+' conftest.er1 >conftest.err |
35023 | rm -f conftest.er1 | |
35024 | cat conftest.err >&5 | |
a848cd7e SC |
35025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35026 | (exit $ac_status); } && | |
f10e38c4 | 35027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35029 | (eval $ac_try) 2>&5 | |
35030 | ac_status=$? | |
35031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35032 | (exit $ac_status); }; } && | |
35033 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35035 | (eval $ac_try) 2>&5 | |
35036 | ac_status=$? | |
35037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35038 | (exit $ac_status); }; }; then | |
35039 | eval "$as_ac_var=yes" | |
35040 | else | |
35041 | echo "$as_me: failed program was:" >&5 | |
35042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35043 | ||
35044 | eval "$as_ac_var=no" | |
35045 | fi | |
ac1cb8d3 VS |
35046 | rm -f conftest.err conftest.$ac_objext \ |
35047 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35048 | fi |
35049 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35050 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35051 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35052 | cat >>confdefs.h <<_ACEOF | |
35053 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35054 | _ACEOF | |
35055 | break | |
35056 | fi | |
35057 | done | |
35058 | ||
35059 | ||
35060 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
35061 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
35062 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
35063 | wxUSE_SNGLINST_CHECKER=no | |
35064 | fi | |
35065 | fi | |
35066 | ||
35067 | ||
35068 | for ac_func in timegm | |
35069 | do | |
35070 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35071 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35072 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35073 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35075 | else | |
35076 | cat >conftest.$ac_ext <<_ACEOF | |
35077 | /* confdefs.h. */ | |
35078 | _ACEOF | |
35079 | cat confdefs.h >>conftest.$ac_ext | |
35080 | cat >>conftest.$ac_ext <<_ACEOF | |
35081 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35082 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35083 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35084 | #define $ac_func innocuous_$ac_func | |
35085 | ||
a848cd7e SC |
35086 | /* System header to define __stub macros and hopefully few prototypes, |
35087 | which can conflict with char $ac_func (); below. | |
35088 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35089 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35090 | |
a848cd7e SC |
35091 | #ifdef __STDC__ |
35092 | # include <limits.h> | |
35093 | #else | |
35094 | # include <assert.h> | |
35095 | #endif | |
ac1cb8d3 VS |
35096 | |
35097 | #undef $ac_func | |
35098 | ||
a848cd7e SC |
35099 | /* Override any gcc2 internal prototype to avoid an error. */ |
35100 | #ifdef __cplusplus | |
35101 | extern "C" | |
35102 | { | |
35103 | #endif | |
35104 | /* We use char because int might match the return type of a gcc2 | |
35105 | builtin and then its argument prototype would still apply. */ | |
35106 | char $ac_func (); | |
35107 | /* The GNU C library defines this for functions which it implements | |
35108 | to always fail with ENOSYS. Some functions are actually named | |
35109 | something starting with __ and the normal name is an alias. */ | |
35110 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35111 | choke me | |
35112 | #else | |
35113 | char (*f) () = $ac_func; | |
35114 | #endif | |
35115 | #ifdef __cplusplus | |
35116 | } | |
35117 | #endif | |
35118 | ||
35119 | int | |
35120 | main () | |
35121 | { | |
35122 | return f != $ac_func; | |
35123 | ; | |
35124 | return 0; | |
35125 | } | |
35126 | _ACEOF | |
35127 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35129 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35130 | ac_status=$? |
ac1cb8d3 VS |
35131 | grep -v '^ *+' conftest.er1 >conftest.err |
35132 | rm -f conftest.er1 | |
35133 | cat conftest.err >&5 | |
a848cd7e SC |
35134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35135 | (exit $ac_status); } && | |
f10e38c4 | 35136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35138 | (eval $ac_try) 2>&5 | |
35139 | ac_status=$? | |
35140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35141 | (exit $ac_status); }; } && | |
35142 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35144 | (eval $ac_try) 2>&5 | |
35145 | ac_status=$? | |
35146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35147 | (exit $ac_status); }; }; then | |
35148 | eval "$as_ac_var=yes" | |
35149 | else | |
35150 | echo "$as_me: failed program was:" >&5 | |
35151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35152 | ||
35153 | eval "$as_ac_var=no" | |
35154 | fi | |
ac1cb8d3 VS |
35155 | rm -f conftest.err conftest.$ac_objext \ |
35156 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35157 | fi |
35158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35159 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35160 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35161 | cat >>confdefs.h <<_ACEOF | |
35162 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35163 | _ACEOF | |
35164 | ||
35165 | fi | |
35166 | done | |
35167 | ||
35168 | ||
35169 | ||
35170 | ||
35171 | for ac_func in putenv setenv | |
35172 | do | |
35173 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35174 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35175 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35176 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35178 | else | |
35179 | cat >conftest.$ac_ext <<_ACEOF | |
35180 | /* confdefs.h. */ | |
35181 | _ACEOF | |
35182 | cat confdefs.h >>conftest.$ac_ext | |
35183 | cat >>conftest.$ac_ext <<_ACEOF | |
35184 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35185 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35186 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35187 | #define $ac_func innocuous_$ac_func | |
35188 | ||
a848cd7e SC |
35189 | /* System header to define __stub macros and hopefully few prototypes, |
35190 | which can conflict with char $ac_func (); below. | |
35191 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35192 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35193 | |
a848cd7e SC |
35194 | #ifdef __STDC__ |
35195 | # include <limits.h> | |
35196 | #else | |
35197 | # include <assert.h> | |
35198 | #endif | |
ac1cb8d3 VS |
35199 | |
35200 | #undef $ac_func | |
35201 | ||
a848cd7e SC |
35202 | /* Override any gcc2 internal prototype to avoid an error. */ |
35203 | #ifdef __cplusplus | |
35204 | extern "C" | |
35205 | { | |
35206 | #endif | |
35207 | /* We use char because int might match the return type of a gcc2 | |
35208 | builtin and then its argument prototype would still apply. */ | |
35209 | char $ac_func (); | |
35210 | /* The GNU C library defines this for functions which it implements | |
35211 | to always fail with ENOSYS. Some functions are actually named | |
35212 | something starting with __ and the normal name is an alias. */ | |
35213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35214 | choke me | |
35215 | #else | |
35216 | char (*f) () = $ac_func; | |
35217 | #endif | |
35218 | #ifdef __cplusplus | |
35219 | } | |
35220 | #endif | |
35221 | ||
35222 | int | |
35223 | main () | |
35224 | { | |
35225 | return f != $ac_func; | |
35226 | ; | |
35227 | return 0; | |
35228 | } | |
35229 | _ACEOF | |
35230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35232 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35233 | ac_status=$? |
ac1cb8d3 VS |
35234 | grep -v '^ *+' conftest.er1 >conftest.err |
35235 | rm -f conftest.er1 | |
35236 | cat conftest.err >&5 | |
a848cd7e SC |
35237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35238 | (exit $ac_status); } && | |
f10e38c4 | 35239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35241 | (eval $ac_try) 2>&5 | |
35242 | ac_status=$? | |
35243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35244 | (exit $ac_status); }; } && | |
35245 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35247 | (eval $ac_try) 2>&5 | |
35248 | ac_status=$? | |
35249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35250 | (exit $ac_status); }; }; then | |
35251 | eval "$as_ac_var=yes" | |
35252 | else | |
35253 | echo "$as_me: failed program was:" >&5 | |
35254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35255 | ||
35256 | eval "$as_ac_var=no" | |
35257 | fi | |
ac1cb8d3 VS |
35258 | rm -f conftest.err conftest.$ac_objext \ |
35259 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35260 | fi |
35261 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35262 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35263 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35264 | cat >>confdefs.h <<_ACEOF | |
35265 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35266 | _ACEOF | |
35267 | break | |
35268 | fi | |
35269 | done | |
35270 | ||
35271 | ||
35272 | HAVE_SOME_SLEEP_FUNC=0 | |
35273 | if test "$USE_BEOS" = 1; then | |
35274 | cat >>confdefs.h <<\_ACEOF | |
35275 | #define HAVE_SLEEP 1 | |
35276 | _ACEOF | |
35277 | ||
35278 | HAVE_SOME_SLEEP_FUNC=1 | |
35279 | fi | |
35280 | ||
35281 | if test "$USE_DARWIN" = 1; then | |
35282 | cat >>confdefs.h <<\_ACEOF | |
35283 | #define HAVE_USLEEP 1 | |
35284 | _ACEOF | |
35285 | ||
35286 | HAVE_SOME_SLEEP_FUNC=1 | |
35287 | fi | |
35288 | ||
35289 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
35290 | POSIX4_LINK= | |
35291 | ||
35292 | for ac_func in nanosleep | |
35293 | do | |
35294 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35295 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35296 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35297 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35299 | else | |
35300 | cat >conftest.$ac_ext <<_ACEOF | |
35301 | /* confdefs.h. */ | |
35302 | _ACEOF | |
35303 | cat confdefs.h >>conftest.$ac_ext | |
35304 | cat >>conftest.$ac_ext <<_ACEOF | |
35305 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35306 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35307 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35308 | #define $ac_func innocuous_$ac_func | |
35309 | ||
a848cd7e SC |
35310 | /* System header to define __stub macros and hopefully few prototypes, |
35311 | which can conflict with char $ac_func (); below. | |
35312 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35313 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35314 | |
a848cd7e SC |
35315 | #ifdef __STDC__ |
35316 | # include <limits.h> | |
35317 | #else | |
35318 | # include <assert.h> | |
35319 | #endif | |
ac1cb8d3 VS |
35320 | |
35321 | #undef $ac_func | |
35322 | ||
a848cd7e SC |
35323 | /* Override any gcc2 internal prototype to avoid an error. */ |
35324 | #ifdef __cplusplus | |
35325 | extern "C" | |
35326 | { | |
35327 | #endif | |
35328 | /* We use char because int might match the return type of a gcc2 | |
35329 | builtin and then its argument prototype would still apply. */ | |
35330 | char $ac_func (); | |
35331 | /* The GNU C library defines this for functions which it implements | |
35332 | to always fail with ENOSYS. Some functions are actually named | |
35333 | something starting with __ and the normal name is an alias. */ | |
35334 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35335 | choke me | |
35336 | #else | |
35337 | char (*f) () = $ac_func; | |
35338 | #endif | |
35339 | #ifdef __cplusplus | |
35340 | } | |
35341 | #endif | |
35342 | ||
35343 | int | |
35344 | main () | |
35345 | { | |
35346 | return f != $ac_func; | |
35347 | ; | |
35348 | return 0; | |
35349 | } | |
35350 | _ACEOF | |
35351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35353 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35354 | ac_status=$? |
ac1cb8d3 VS |
35355 | grep -v '^ *+' conftest.er1 >conftest.err |
35356 | rm -f conftest.er1 | |
35357 | cat conftest.err >&5 | |
a848cd7e SC |
35358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35359 | (exit $ac_status); } && | |
f10e38c4 | 35360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35362 | (eval $ac_try) 2>&5 | |
35363 | ac_status=$? | |
35364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35365 | (exit $ac_status); }; } && | |
35366 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35368 | (eval $ac_try) 2>&5 | |
35369 | ac_status=$? | |
35370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35371 | (exit $ac_status); }; }; then | |
35372 | eval "$as_ac_var=yes" | |
35373 | else | |
35374 | echo "$as_me: failed program was:" >&5 | |
35375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35376 | ||
35377 | eval "$as_ac_var=no" | |
35378 | fi | |
ac1cb8d3 VS |
35379 | rm -f conftest.err conftest.$ac_objext \ |
35380 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35381 | fi |
35382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35383 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35384 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35385 | cat >>confdefs.h <<_ACEOF | |
35386 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35387 | _ACEOF | |
35388 | cat >>confdefs.h <<\_ACEOF | |
35389 | #define HAVE_NANOSLEEP 1 | |
35390 | _ACEOF | |
35391 | ||
35392 | else | |
35393 | ||
35394 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
35395 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
35396 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
35397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35398 | else | |
35399 | ac_check_lib_save_LIBS=$LIBS | |
35400 | LIBS="-lposix4 $LIBS" | |
35401 | cat >conftest.$ac_ext <<_ACEOF | |
35402 | /* confdefs.h. */ | |
35403 | _ACEOF | |
35404 | cat confdefs.h >>conftest.$ac_ext | |
35405 | cat >>conftest.$ac_ext <<_ACEOF | |
35406 | /* end confdefs.h. */ | |
35407 | ||
35408 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35409 | #ifdef __cplusplus | |
35410 | extern "C" | |
35411 | #endif | |
35412 | /* We use char because int might match the return type of a gcc2 | |
35413 | builtin and then its argument prototype would still apply. */ | |
35414 | char nanosleep (); | |
35415 | int | |
35416 | main () | |
35417 | { | |
35418 | nanosleep (); | |
35419 | ; | |
35420 | return 0; | |
35421 | } | |
35422 | _ACEOF | |
35423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35425 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35426 | ac_status=$? |
ac1cb8d3 VS |
35427 | grep -v '^ *+' conftest.er1 >conftest.err |
35428 | rm -f conftest.er1 | |
35429 | cat conftest.err >&5 | |
a848cd7e SC |
35430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35431 | (exit $ac_status); } && | |
f10e38c4 | 35432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35434 | (eval $ac_try) 2>&5 | |
35435 | ac_status=$? | |
35436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35437 | (exit $ac_status); }; } && | |
35438 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35440 | (eval $ac_try) 2>&5 | |
35441 | ac_status=$? | |
35442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35443 | (exit $ac_status); }; }; then | |
35444 | ac_cv_lib_posix4_nanosleep=yes | |
35445 | else | |
35446 | echo "$as_me: failed program was:" >&5 | |
35447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35448 | ||
35449 | ac_cv_lib_posix4_nanosleep=no | |
35450 | fi | |
ac1cb8d3 VS |
35451 | rm -f conftest.err conftest.$ac_objext \ |
35452 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35453 | LIBS=$ac_check_lib_save_LIBS |
35454 | fi | |
35455 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
35456 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
35457 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
35458 | ||
35459 | cat >>confdefs.h <<\_ACEOF | |
35460 | #define HAVE_NANOSLEEP 1 | |
35461 | _ACEOF | |
35462 | ||
35463 | POSIX4_LINK=" -lposix4" | |
35464 | ||
35465 | else | |
35466 | ||
35467 | ||
35468 | for ac_func in usleep | |
35469 | do | |
35470 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35471 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35472 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35473 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35475 | else | |
35476 | cat >conftest.$ac_ext <<_ACEOF | |
35477 | /* confdefs.h. */ | |
35478 | _ACEOF | |
35479 | cat confdefs.h >>conftest.$ac_ext | |
35480 | cat >>conftest.$ac_ext <<_ACEOF | |
35481 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35482 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35483 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35484 | #define $ac_func innocuous_$ac_func | |
35485 | ||
a848cd7e SC |
35486 | /* System header to define __stub macros and hopefully few prototypes, |
35487 | which can conflict with char $ac_func (); below. | |
35488 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35489 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35490 | |
a848cd7e SC |
35491 | #ifdef __STDC__ |
35492 | # include <limits.h> | |
35493 | #else | |
35494 | # include <assert.h> | |
35495 | #endif | |
ac1cb8d3 VS |
35496 | |
35497 | #undef $ac_func | |
35498 | ||
a848cd7e SC |
35499 | /* Override any gcc2 internal prototype to avoid an error. */ |
35500 | #ifdef __cplusplus | |
35501 | extern "C" | |
35502 | { | |
35503 | #endif | |
35504 | /* We use char because int might match the return type of a gcc2 | |
35505 | builtin and then its argument prototype would still apply. */ | |
35506 | char $ac_func (); | |
35507 | /* The GNU C library defines this for functions which it implements | |
35508 | to always fail with ENOSYS. Some functions are actually named | |
35509 | something starting with __ and the normal name is an alias. */ | |
35510 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35511 | choke me | |
35512 | #else | |
35513 | char (*f) () = $ac_func; | |
35514 | #endif | |
35515 | #ifdef __cplusplus | |
35516 | } | |
35517 | #endif | |
35518 | ||
35519 | int | |
35520 | main () | |
35521 | { | |
35522 | return f != $ac_func; | |
35523 | ; | |
35524 | return 0; | |
35525 | } | |
35526 | _ACEOF | |
35527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35529 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35530 | ac_status=$? |
ac1cb8d3 VS |
35531 | grep -v '^ *+' conftest.er1 >conftest.err |
35532 | rm -f conftest.er1 | |
35533 | cat conftest.err >&5 | |
a848cd7e SC |
35534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35535 | (exit $ac_status); } && | |
f10e38c4 | 35536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35538 | (eval $ac_try) 2>&5 | |
35539 | ac_status=$? | |
35540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35541 | (exit $ac_status); }; } && | |
35542 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35544 | (eval $ac_try) 2>&5 | |
35545 | ac_status=$? | |
35546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35547 | (exit $ac_status); }; }; then | |
35548 | eval "$as_ac_var=yes" | |
35549 | else | |
35550 | echo "$as_me: failed program was:" >&5 | |
35551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35552 | ||
35553 | eval "$as_ac_var=no" | |
35554 | fi | |
ac1cb8d3 VS |
35555 | rm -f conftest.err conftest.$ac_objext \ |
35556 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35557 | fi |
35558 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35559 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35560 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35561 | cat >>confdefs.h <<_ACEOF | |
35562 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35563 | _ACEOF | |
35564 | cat >>confdefs.h <<\_ACEOF | |
35565 | #define HAVE_USLEEP 1 | |
35566 | _ACEOF | |
35567 | ||
35568 | else | |
35569 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
35570 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
35571 | ||
35572 | fi | |
35573 | done | |
35574 | ||
35575 | ||
35576 | ||
35577 | fi | |
35578 | ||
35579 | ||
35580 | ||
35581 | fi | |
35582 | done | |
35583 | ||
35584 | fi | |
35585 | ||
35586 | ||
35587 | ||
35588 | for ac_func in uname gethostname | |
35589 | do | |
35590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35591 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35593 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35595 | else | |
35596 | cat >conftest.$ac_ext <<_ACEOF | |
35597 | /* confdefs.h. */ | |
35598 | _ACEOF | |
35599 | cat confdefs.h >>conftest.$ac_ext | |
35600 | cat >>conftest.$ac_ext <<_ACEOF | |
35601 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35602 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35603 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35604 | #define $ac_func innocuous_$ac_func | |
35605 | ||
a848cd7e SC |
35606 | /* System header to define __stub macros and hopefully few prototypes, |
35607 | which can conflict with char $ac_func (); below. | |
35608 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35609 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35610 | |
a848cd7e SC |
35611 | #ifdef __STDC__ |
35612 | # include <limits.h> | |
35613 | #else | |
35614 | # include <assert.h> | |
35615 | #endif | |
ac1cb8d3 VS |
35616 | |
35617 | #undef $ac_func | |
35618 | ||
a848cd7e SC |
35619 | /* Override any gcc2 internal prototype to avoid an error. */ |
35620 | #ifdef __cplusplus | |
35621 | extern "C" | |
35622 | { | |
35623 | #endif | |
35624 | /* We use char because int might match the return type of a gcc2 | |
35625 | builtin and then its argument prototype would still apply. */ | |
35626 | char $ac_func (); | |
35627 | /* The GNU C library defines this for functions which it implements | |
35628 | to always fail with ENOSYS. Some functions are actually named | |
35629 | something starting with __ and the normal name is an alias. */ | |
35630 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35631 | choke me | |
35632 | #else | |
35633 | char (*f) () = $ac_func; | |
35634 | #endif | |
35635 | #ifdef __cplusplus | |
35636 | } | |
35637 | #endif | |
35638 | ||
35639 | int | |
35640 | main () | |
35641 | { | |
35642 | return f != $ac_func; | |
35643 | ; | |
35644 | return 0; | |
35645 | } | |
35646 | _ACEOF | |
35647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35649 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35650 | ac_status=$? |
ac1cb8d3 VS |
35651 | grep -v '^ *+' conftest.er1 >conftest.err |
35652 | rm -f conftest.er1 | |
35653 | cat conftest.err >&5 | |
a848cd7e SC |
35654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35655 | (exit $ac_status); } && | |
f10e38c4 | 35656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35658 | (eval $ac_try) 2>&5 | |
35659 | ac_status=$? | |
35660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35661 | (exit $ac_status); }; } && | |
35662 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35664 | (eval $ac_try) 2>&5 | |
35665 | ac_status=$? | |
35666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35667 | (exit $ac_status); }; }; then | |
35668 | eval "$as_ac_var=yes" | |
35669 | else | |
35670 | echo "$as_me: failed program was:" >&5 | |
35671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35672 | ||
35673 | eval "$as_ac_var=no" | |
35674 | fi | |
ac1cb8d3 VS |
35675 | rm -f conftest.err conftest.$ac_objext \ |
35676 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35677 | fi |
35678 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35679 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35680 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35681 | cat >>confdefs.h <<_ACEOF | |
35682 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35683 | _ACEOF | |
35684 | break | |
35685 | fi | |
35686 | done | |
35687 | ||
35688 | ||
a848cd7e SC |
35689 | ac_ext=cc |
35690 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35691 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35692 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35693 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35694 | ||
35695 | ||
35696 | ||
35697 | for ac_func in strtok_r | |
35698 | do | |
35699 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35700 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35701 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35702 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35704 | else | |
35705 | cat >conftest.$ac_ext <<_ACEOF | |
35706 | /* confdefs.h. */ | |
35707 | _ACEOF | |
35708 | cat confdefs.h >>conftest.$ac_ext | |
35709 | cat >>conftest.$ac_ext <<_ACEOF | |
35710 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35711 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35712 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35713 | #define $ac_func innocuous_$ac_func | |
35714 | ||
a848cd7e SC |
35715 | /* System header to define __stub macros and hopefully few prototypes, |
35716 | which can conflict with char $ac_func (); below. | |
35717 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35718 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35719 | |
a848cd7e SC |
35720 | #ifdef __STDC__ |
35721 | # include <limits.h> | |
35722 | #else | |
35723 | # include <assert.h> | |
35724 | #endif | |
ac1cb8d3 VS |
35725 | |
35726 | #undef $ac_func | |
35727 | ||
a848cd7e SC |
35728 | /* Override any gcc2 internal prototype to avoid an error. */ |
35729 | #ifdef __cplusplus | |
35730 | extern "C" | |
35731 | { | |
35732 | #endif | |
35733 | /* We use char because int might match the return type of a gcc2 | |
35734 | builtin and then its argument prototype would still apply. */ | |
35735 | char $ac_func (); | |
35736 | /* The GNU C library defines this for functions which it implements | |
35737 | to always fail with ENOSYS. Some functions are actually named | |
35738 | something starting with __ and the normal name is an alias. */ | |
35739 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35740 | choke me | |
35741 | #else | |
35742 | char (*f) () = $ac_func; | |
35743 | #endif | |
35744 | #ifdef __cplusplus | |
35745 | } | |
35746 | #endif | |
35747 | ||
35748 | int | |
35749 | main () | |
35750 | { | |
35751 | return f != $ac_func; | |
35752 | ; | |
35753 | return 0; | |
35754 | } | |
35755 | _ACEOF | |
35756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35758 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35759 | ac_status=$? |
ac1cb8d3 VS |
35760 | grep -v '^ *+' conftest.er1 >conftest.err |
35761 | rm -f conftest.er1 | |
35762 | cat conftest.err >&5 | |
a848cd7e SC |
35763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35764 | (exit $ac_status); } && | |
f10e38c4 | 35765 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35767 | (eval $ac_try) 2>&5 | |
35768 | ac_status=$? | |
35769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35770 | (exit $ac_status); }; } && | |
35771 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35773 | (eval $ac_try) 2>&5 | |
35774 | ac_status=$? | |
35775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35776 | (exit $ac_status); }; }; then | |
35777 | eval "$as_ac_var=yes" | |
35778 | else | |
35779 | echo "$as_me: failed program was:" >&5 | |
35780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35781 | ||
35782 | eval "$as_ac_var=no" | |
35783 | fi | |
ac1cb8d3 VS |
35784 | rm -f conftest.err conftest.$ac_objext \ |
35785 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35786 | fi |
35787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35788 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35789 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35790 | cat >>confdefs.h <<_ACEOF | |
35791 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35792 | _ACEOF | |
35793 | ||
35794 | fi | |
35795 | done | |
35796 | ||
35797 | ||
35798 | ac_ext=c | |
35799 | ac_cpp='$CPP $CPPFLAGS' | |
35800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35803 | ||
35804 | ||
35805 | INET_LINK= | |
35806 | ||
35807 | for ac_func in inet_addr | |
35808 | do | |
35809 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35810 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35811 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35812 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35814 | else | |
35815 | cat >conftest.$ac_ext <<_ACEOF | |
35816 | /* confdefs.h. */ | |
35817 | _ACEOF | |
35818 | cat confdefs.h >>conftest.$ac_ext | |
35819 | cat >>conftest.$ac_ext <<_ACEOF | |
35820 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35821 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35822 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35823 | #define $ac_func innocuous_$ac_func | |
35824 | ||
a848cd7e SC |
35825 | /* System header to define __stub macros and hopefully few prototypes, |
35826 | which can conflict with char $ac_func (); below. | |
35827 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35828 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35829 | |
a848cd7e SC |
35830 | #ifdef __STDC__ |
35831 | # include <limits.h> | |
35832 | #else | |
35833 | # include <assert.h> | |
35834 | #endif | |
ac1cb8d3 VS |
35835 | |
35836 | #undef $ac_func | |
35837 | ||
a848cd7e SC |
35838 | /* Override any gcc2 internal prototype to avoid an error. */ |
35839 | #ifdef __cplusplus | |
35840 | extern "C" | |
35841 | { | |
35842 | #endif | |
35843 | /* We use char because int might match the return type of a gcc2 | |
35844 | builtin and then its argument prototype would still apply. */ | |
35845 | char $ac_func (); | |
35846 | /* The GNU C library defines this for functions which it implements | |
35847 | to always fail with ENOSYS. Some functions are actually named | |
35848 | something starting with __ and the normal name is an alias. */ | |
35849 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35850 | choke me | |
35851 | #else | |
35852 | char (*f) () = $ac_func; | |
35853 | #endif | |
35854 | #ifdef __cplusplus | |
35855 | } | |
35856 | #endif | |
35857 | ||
35858 | int | |
35859 | main () | |
35860 | { | |
35861 | return f != $ac_func; | |
35862 | ; | |
35863 | return 0; | |
35864 | } | |
35865 | _ACEOF | |
35866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35868 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35869 | ac_status=$? |
ac1cb8d3 VS |
35870 | grep -v '^ *+' conftest.er1 >conftest.err |
35871 | rm -f conftest.er1 | |
35872 | cat conftest.err >&5 | |
a848cd7e SC |
35873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35874 | (exit $ac_status); } && | |
f10e38c4 | 35875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35877 | (eval $ac_try) 2>&5 | |
35878 | ac_status=$? | |
35879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35880 | (exit $ac_status); }; } && | |
35881 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35883 | (eval $ac_try) 2>&5 | |
35884 | ac_status=$? | |
35885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35886 | (exit $ac_status); }; }; then | |
35887 | eval "$as_ac_var=yes" | |
35888 | else | |
35889 | echo "$as_me: failed program was:" >&5 | |
35890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35891 | ||
35892 | eval "$as_ac_var=no" | |
35893 | fi | |
ac1cb8d3 VS |
35894 | rm -f conftest.err conftest.$ac_objext \ |
35895 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35896 | fi |
35897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35898 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35899 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35900 | cat >>confdefs.h <<_ACEOF | |
35901 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35902 | _ACEOF | |
35903 | cat >>confdefs.h <<\_ACEOF | |
35904 | #define HAVE_INET_ADDR 1 | |
35905 | _ACEOF | |
35906 | ||
35907 | else | |
35908 | ||
35909 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
35910 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
35911 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
35912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35913 | else | |
35914 | ac_check_lib_save_LIBS=$LIBS | |
35915 | LIBS="-lnsl $LIBS" | |
35916 | cat >conftest.$ac_ext <<_ACEOF | |
35917 | /* confdefs.h. */ | |
35918 | _ACEOF | |
35919 | cat confdefs.h >>conftest.$ac_ext | |
35920 | cat >>conftest.$ac_ext <<_ACEOF | |
35921 | /* end confdefs.h. */ | |
35922 | ||
35923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35924 | #ifdef __cplusplus | |
35925 | extern "C" | |
35926 | #endif | |
35927 | /* We use char because int might match the return type of a gcc2 | |
35928 | builtin and then its argument prototype would still apply. */ | |
35929 | char inet_addr (); | |
35930 | int | |
35931 | main () | |
35932 | { | |
35933 | inet_addr (); | |
35934 | ; | |
35935 | return 0; | |
35936 | } | |
35937 | _ACEOF | |
35938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35940 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35941 | ac_status=$? |
ac1cb8d3 VS |
35942 | grep -v '^ *+' conftest.er1 >conftest.err |
35943 | rm -f conftest.er1 | |
35944 | cat conftest.err >&5 | |
a848cd7e SC |
35945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35946 | (exit $ac_status); } && | |
f10e38c4 | 35947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35949 | (eval $ac_try) 2>&5 | |
35950 | ac_status=$? | |
35951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35952 | (exit $ac_status); }; } && | |
35953 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35955 | (eval $ac_try) 2>&5 | |
35956 | ac_status=$? | |
35957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35958 | (exit $ac_status); }; }; then | |
35959 | ac_cv_lib_nsl_inet_addr=yes | |
35960 | else | |
35961 | echo "$as_me: failed program was:" >&5 | |
35962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35963 | ||
35964 | ac_cv_lib_nsl_inet_addr=no | |
35965 | fi | |
ac1cb8d3 VS |
35966 | rm -f conftest.err conftest.$ac_objext \ |
35967 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35968 | LIBS=$ac_check_lib_save_LIBS |
35969 | fi | |
35970 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
35971 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
35972 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
35973 | INET_LINK="nsl" | |
35974 | else | |
35975 | ||
35976 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
35977 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
35978 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
35979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35980 | else | |
35981 | ac_check_lib_save_LIBS=$LIBS | |
35982 | LIBS="-lresolv $LIBS" | |
35983 | cat >conftest.$ac_ext <<_ACEOF | |
35984 | /* confdefs.h. */ | |
35985 | _ACEOF | |
35986 | cat confdefs.h >>conftest.$ac_ext | |
35987 | cat >>conftest.$ac_ext <<_ACEOF | |
35988 | /* end confdefs.h. */ | |
35989 | ||
35990 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35991 | #ifdef __cplusplus | |
35992 | extern "C" | |
35993 | #endif | |
35994 | /* We use char because int might match the return type of a gcc2 | |
35995 | builtin and then its argument prototype would still apply. */ | |
35996 | char inet_addr (); | |
35997 | int | |
35998 | main () | |
35999 | { | |
36000 | inet_addr (); | |
36001 | ; | |
36002 | return 0; | |
36003 | } | |
36004 | _ACEOF | |
36005 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36007 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36008 | ac_status=$? |
ac1cb8d3 VS |
36009 | grep -v '^ *+' conftest.er1 >conftest.err |
36010 | rm -f conftest.er1 | |
36011 | cat conftest.err >&5 | |
a848cd7e SC |
36012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36013 | (exit $ac_status); } && | |
f10e38c4 | 36014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36016 | (eval $ac_try) 2>&5 | |
36017 | ac_status=$? | |
36018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36019 | (exit $ac_status); }; } && | |
36020 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36022 | (eval $ac_try) 2>&5 | |
36023 | ac_status=$? | |
36024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36025 | (exit $ac_status); }; }; then | |
36026 | ac_cv_lib_resolv_inet_addr=yes | |
36027 | else | |
36028 | echo "$as_me: failed program was:" >&5 | |
36029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36030 | ||
36031 | ac_cv_lib_resolv_inet_addr=no | |
36032 | fi | |
ac1cb8d3 VS |
36033 | rm -f conftest.err conftest.$ac_objext \ |
36034 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36035 | LIBS=$ac_check_lib_save_LIBS |
36036 | fi | |
36037 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
36038 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
36039 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
36040 | INET_LINK="resolv" | |
36041 | else | |
36042 | ||
36043 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
36044 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
36045 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
36046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36047 | else | |
36048 | ac_check_lib_save_LIBS=$LIBS | |
36049 | LIBS="-lsocket $LIBS" | |
36050 | cat >conftest.$ac_ext <<_ACEOF | |
36051 | /* confdefs.h. */ | |
36052 | _ACEOF | |
36053 | cat confdefs.h >>conftest.$ac_ext | |
36054 | cat >>conftest.$ac_ext <<_ACEOF | |
36055 | /* end confdefs.h. */ | |
36056 | ||
36057 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36058 | #ifdef __cplusplus | |
36059 | extern "C" | |
36060 | #endif | |
36061 | /* We use char because int might match the return type of a gcc2 | |
36062 | builtin and then its argument prototype would still apply. */ | |
36063 | char inet_addr (); | |
36064 | int | |
36065 | main () | |
36066 | { | |
36067 | inet_addr (); | |
36068 | ; | |
36069 | return 0; | |
36070 | } | |
36071 | _ACEOF | |
36072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36074 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36075 | ac_status=$? |
ac1cb8d3 VS |
36076 | grep -v '^ *+' conftest.er1 >conftest.err |
36077 | rm -f conftest.er1 | |
36078 | cat conftest.err >&5 | |
a848cd7e SC |
36079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36080 | (exit $ac_status); } && | |
f10e38c4 | 36081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36083 | (eval $ac_try) 2>&5 | |
36084 | ac_status=$? | |
36085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36086 | (exit $ac_status); }; } && | |
36087 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36089 | (eval $ac_try) 2>&5 | |
36090 | ac_status=$? | |
36091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36092 | (exit $ac_status); }; }; then | |
36093 | ac_cv_lib_socket_inet_addr=yes | |
36094 | else | |
36095 | echo "$as_me: failed program was:" >&5 | |
36096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36097 | ||
36098 | ac_cv_lib_socket_inet_addr=no | |
36099 | fi | |
ac1cb8d3 VS |
36100 | rm -f conftest.err conftest.$ac_objext \ |
36101 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36102 | LIBS=$ac_check_lib_save_LIBS |
36103 | fi | |
36104 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
36105 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
36106 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
36107 | INET_LINK="socket" | |
36108 | ||
36109 | fi | |
36110 | ||
36111 | ||
36112 | ||
36113 | fi | |
36114 | ||
36115 | ||
36116 | ||
36117 | fi | |
36118 | ||
36119 | ||
36120 | ||
36121 | fi | |
36122 | done | |
36123 | ||
36124 | ||
36125 | ||
36126 | for ac_func in inet_aton | |
36127 | do | |
36128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36129 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36131 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36133 | else | |
36134 | cat >conftest.$ac_ext <<_ACEOF | |
36135 | /* confdefs.h. */ | |
36136 | _ACEOF | |
36137 | cat confdefs.h >>conftest.$ac_ext | |
36138 | cat >>conftest.$ac_ext <<_ACEOF | |
36139 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36142 | #define $ac_func innocuous_$ac_func | |
36143 | ||
a848cd7e SC |
36144 | /* System header to define __stub macros and hopefully few prototypes, |
36145 | which can conflict with char $ac_func (); below. | |
36146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36147 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36148 | |
a848cd7e SC |
36149 | #ifdef __STDC__ |
36150 | # include <limits.h> | |
36151 | #else | |
36152 | # include <assert.h> | |
36153 | #endif | |
ac1cb8d3 VS |
36154 | |
36155 | #undef $ac_func | |
36156 | ||
a848cd7e SC |
36157 | /* Override any gcc2 internal prototype to avoid an error. */ |
36158 | #ifdef __cplusplus | |
36159 | extern "C" | |
36160 | { | |
36161 | #endif | |
36162 | /* We use char because int might match the return type of a gcc2 | |
36163 | builtin and then its argument prototype would still apply. */ | |
36164 | char $ac_func (); | |
36165 | /* The GNU C library defines this for functions which it implements | |
36166 | to always fail with ENOSYS. Some functions are actually named | |
36167 | something starting with __ and the normal name is an alias. */ | |
36168 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36169 | choke me | |
36170 | #else | |
36171 | char (*f) () = $ac_func; | |
36172 | #endif | |
36173 | #ifdef __cplusplus | |
36174 | } | |
36175 | #endif | |
36176 | ||
36177 | int | |
36178 | main () | |
36179 | { | |
36180 | return f != $ac_func; | |
36181 | ; | |
36182 | return 0; | |
36183 | } | |
36184 | _ACEOF | |
36185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36187 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36188 | ac_status=$? |
ac1cb8d3 VS |
36189 | grep -v '^ *+' conftest.er1 >conftest.err |
36190 | rm -f conftest.er1 | |
36191 | cat conftest.err >&5 | |
a848cd7e SC |
36192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36193 | (exit $ac_status); } && | |
f10e38c4 | 36194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36196 | (eval $ac_try) 2>&5 | |
36197 | ac_status=$? | |
36198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36199 | (exit $ac_status); }; } && | |
36200 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36202 | (eval $ac_try) 2>&5 | |
36203 | ac_status=$? | |
36204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36205 | (exit $ac_status); }; }; then | |
36206 | eval "$as_ac_var=yes" | |
36207 | else | |
36208 | echo "$as_me: failed program was:" >&5 | |
36209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36210 | ||
36211 | eval "$as_ac_var=no" | |
36212 | fi | |
ac1cb8d3 VS |
36213 | rm -f conftest.err conftest.$ac_objext \ |
36214 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36215 | fi |
36216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36217 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36218 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36219 | cat >>confdefs.h <<_ACEOF | |
36220 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36221 | _ACEOF | |
36222 | cat >>confdefs.h <<\_ACEOF | |
36223 | #define HAVE_INET_ATON 1 | |
36224 | _ACEOF | |
36225 | ||
36226 | else | |
36227 | ||
36228 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
36229 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
36230 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
36231 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
36232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36233 | else | |
36234 | ac_check_lib_save_LIBS=$LIBS | |
36235 | LIBS="-l$INET_LINK $LIBS" | |
36236 | cat >conftest.$ac_ext <<_ACEOF | |
36237 | /* confdefs.h. */ | |
36238 | _ACEOF | |
36239 | cat confdefs.h >>conftest.$ac_ext | |
36240 | cat >>conftest.$ac_ext <<_ACEOF | |
36241 | /* end confdefs.h. */ | |
36242 | ||
36243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36244 | #ifdef __cplusplus | |
36245 | extern "C" | |
36246 | #endif | |
36247 | /* We use char because int might match the return type of a gcc2 | |
36248 | builtin and then its argument prototype would still apply. */ | |
36249 | char inet_aton (); | |
36250 | int | |
36251 | main () | |
36252 | { | |
36253 | inet_aton (); | |
36254 | ; | |
36255 | return 0; | |
36256 | } | |
36257 | _ACEOF | |
36258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36260 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36261 | ac_status=$? |
ac1cb8d3 VS |
36262 | grep -v '^ *+' conftest.er1 >conftest.err |
36263 | rm -f conftest.er1 | |
36264 | cat conftest.err >&5 | |
a848cd7e SC |
36265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36266 | (exit $ac_status); } && | |
f10e38c4 | 36267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36269 | (eval $ac_try) 2>&5 | |
36270 | ac_status=$? | |
36271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36272 | (exit $ac_status); }; } && | |
36273 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36275 | (eval $ac_try) 2>&5 | |
36276 | ac_status=$? | |
36277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36278 | (exit $ac_status); }; }; then | |
36279 | eval "$as_ac_Lib=yes" | |
36280 | else | |
36281 | echo "$as_me: failed program was:" >&5 | |
36282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36283 | ||
36284 | eval "$as_ac_Lib=no" | |
36285 | fi | |
ac1cb8d3 VS |
36286 | rm -f conftest.err conftest.$ac_objext \ |
36287 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36288 | LIBS=$ac_check_lib_save_LIBS |
36289 | fi | |
36290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
36291 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
36292 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
36293 | cat >>confdefs.h <<\_ACEOF | |
36294 | #define HAVE_INET_ATON 1 | |
36295 | _ACEOF | |
36296 | ||
36297 | fi | |
36298 | ||
36299 | ||
36300 | fi | |
36301 | done | |
36302 | ||
36303 | ||
36304 | if test "x$INET_LINK" != "x"; then | |
36305 | cat >>confdefs.h <<\_ACEOF | |
36306 | #define HAVE_INET_ADDR 1 | |
36307 | _ACEOF | |
36308 | ||
36309 | INET_LINK=" -l$INET_LINK" | |
36310 | fi | |
36311 | ||
36312 | fi | |
36313 | ||
36314 | ||
36315 | ||
36316 | EXTRALIBS_ESD= | |
36317 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
36318 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
36319 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
36320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36321 | else | |
36322 | ac_check_lib_save_LIBS=$LIBS | |
36323 | LIBS="-lesd $LIBS" | |
36324 | cat >conftest.$ac_ext <<_ACEOF | |
36325 | /* confdefs.h. */ | |
36326 | _ACEOF | |
36327 | cat confdefs.h >>conftest.$ac_ext | |
36328 | cat >>conftest.$ac_ext <<_ACEOF | |
36329 | /* end confdefs.h. */ | |
36330 | ||
36331 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36332 | #ifdef __cplusplus | |
36333 | extern "C" | |
36334 | #endif | |
36335 | /* We use char because int might match the return type of a gcc2 | |
36336 | builtin and then its argument prototype would still apply. */ | |
36337 | char esd_close (); | |
36338 | int | |
36339 | main () | |
36340 | { | |
36341 | esd_close (); | |
36342 | ; | |
36343 | return 0; | |
36344 | } | |
36345 | _ACEOF | |
36346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36348 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36349 | ac_status=$? |
ac1cb8d3 VS |
36350 | grep -v '^ *+' conftest.er1 >conftest.err |
36351 | rm -f conftest.er1 | |
36352 | cat conftest.err >&5 | |
a848cd7e SC |
36353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36354 | (exit $ac_status); } && | |
f10e38c4 | 36355 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36357 | (eval $ac_try) 2>&5 | |
36358 | ac_status=$? | |
36359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36360 | (exit $ac_status); }; } && | |
36361 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36363 | (eval $ac_try) 2>&5 | |
36364 | ac_status=$? | |
36365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36366 | (exit $ac_status); }; }; then | |
36367 | ac_cv_lib_esd_esd_close=yes | |
36368 | else | |
36369 | echo "$as_me: failed program was:" >&5 | |
36370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36371 | ||
36372 | ac_cv_lib_esd_esd_close=no | |
36373 | fi | |
ac1cb8d3 VS |
36374 | rm -f conftest.err conftest.$ac_objext \ |
36375 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36376 | LIBS=$ac_check_lib_save_LIBS |
36377 | fi | |
36378 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
36379 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
36380 | if test $ac_cv_lib_esd_esd_close = yes; then | |
36381 | ||
36382 | ||
36383 | for ac_header in esd.h | |
36384 | do | |
36385 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36386 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36387 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36388 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36389 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36391 | fi | |
36392 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36393 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36394 | else | |
36395 | # Is the header compilable? | |
36396 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36397 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36398 | cat >conftest.$ac_ext <<_ACEOF | |
36399 | /* confdefs.h. */ | |
36400 | _ACEOF | |
36401 | cat confdefs.h >>conftest.$ac_ext | |
36402 | cat >>conftest.$ac_ext <<_ACEOF | |
36403 | /* end confdefs.h. */ | |
36404 | $ac_includes_default | |
36405 | #include <$ac_header> | |
36406 | _ACEOF | |
36407 | rm -f conftest.$ac_objext | |
36408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36409 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36410 | ac_status=$? |
ac1cb8d3 VS |
36411 | grep -v '^ *+' conftest.er1 >conftest.err |
36412 | rm -f conftest.er1 | |
36413 | cat conftest.err >&5 | |
a848cd7e SC |
36414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36415 | (exit $ac_status); } && | |
f10e38c4 | 36416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36418 | (eval $ac_try) 2>&5 | |
36419 | ac_status=$? | |
36420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36421 | (exit $ac_status); }; } && | |
36422 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36424 | (eval $ac_try) 2>&5 | |
36425 | ac_status=$? | |
36426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36427 | (exit $ac_status); }; }; then | |
36428 | ac_header_compiler=yes | |
36429 | else | |
36430 | echo "$as_me: failed program was:" >&5 | |
36431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36432 | ||
36433 | ac_header_compiler=no | |
36434 | fi | |
ac1cb8d3 | 36435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36436 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36437 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36438 | ||
36439 | # Is the header present? | |
36440 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36441 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36442 | cat >conftest.$ac_ext <<_ACEOF | |
36443 | /* confdefs.h. */ | |
36444 | _ACEOF | |
36445 | cat confdefs.h >>conftest.$ac_ext | |
36446 | cat >>conftest.$ac_ext <<_ACEOF | |
36447 | /* end confdefs.h. */ | |
36448 | #include <$ac_header> | |
36449 | _ACEOF | |
36450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36452 | ac_status=$? | |
36453 | grep -v '^ *+' conftest.er1 >conftest.err | |
36454 | rm -f conftest.er1 | |
36455 | cat conftest.err >&5 | |
36456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36457 | (exit $ac_status); } >/dev/null; then | |
36458 | if test -s conftest.err; then | |
36459 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36461 | else |
36462 | ac_cpp_err= | |
36463 | fi | |
36464 | else | |
36465 | ac_cpp_err=yes | |
36466 | fi | |
36467 | if test -z "$ac_cpp_err"; then | |
36468 | ac_header_preproc=yes | |
36469 | else | |
36470 | echo "$as_me: failed program was:" >&5 | |
36471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36472 | ||
36473 | ac_header_preproc=no | |
36474 | fi | |
36475 | rm -f conftest.err conftest.$ac_ext | |
36476 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36477 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36478 | ||
36479 | # So? What about this header? | |
ac1cb8d3 VS |
36480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36481 | yes:no: ) | |
a848cd7e SC |
36482 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36483 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36485 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36486 | ac_header_preproc=yes | |
a848cd7e | 36487 | ;; |
ac1cb8d3 | 36488 | no:yes:* ) |
a848cd7e SC |
36489 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36490 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36491 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36492 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36493 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36494 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36495 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36496 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36498 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36499 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36500 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36501 | ( |
36502 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36503 | ## ----------------------------------------- ## |
36504 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36505 | ## ----------------------------------------- ## | |
a848cd7e SC |
36506 | _ASBOX |
36507 | ) | | |
36508 | sed "s/^/$as_me: WARNING: /" >&2 | |
36509 | ;; | |
36510 | esac | |
36511 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36515 | else | |
ac1cb8d3 | 36516 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36517 | fi |
36518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36520 | ||
36521 | fi | |
36522 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36523 | cat >>confdefs.h <<_ACEOF | |
36524 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36525 | _ACEOF | |
36526 | ||
36527 | EXTRALIBS_ESD="-lesd" | |
36528 | ||
36529 | fi | |
36530 | ||
36531 | done | |
36532 | ||
36533 | ||
36534 | fi | |
36535 | ||
36536 | ||
36537 | ||
36538 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
36539 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
36540 | cat >conftest.$ac_ext <<_ACEOF | |
36541 | /* confdefs.h. */ | |
36542 | _ACEOF | |
36543 | cat confdefs.h >>conftest.$ac_ext | |
36544 | cat >>conftest.$ac_ext <<_ACEOF | |
36545 | /* end confdefs.h. */ | |
36546 | #ifdef __linux__ | |
36547 | #include <linux/cdrom.h> | |
36548 | #else | |
36549 | /* For Solaris */ | |
36550 | #include <sys/cdio.h> | |
36551 | #endif | |
36552 | ||
36553 | int | |
36554 | main () | |
36555 | { | |
36556 | struct cdrom_tocentry entry, old_entry; | |
36557 | ; | |
36558 | return 0; | |
36559 | } | |
36560 | _ACEOF | |
36561 | rm -f conftest.$ac_objext | |
36562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36563 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36564 | ac_status=$? |
ac1cb8d3 VS |
36565 | grep -v '^ *+' conftest.er1 >conftest.err |
36566 | rm -f conftest.er1 | |
36567 | cat conftest.err >&5 | |
a848cd7e SC |
36568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36569 | (exit $ac_status); } && | |
f10e38c4 | 36570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36572 | (eval $ac_try) 2>&5 | |
36573 | ac_status=$? | |
36574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36575 | (exit $ac_status); }; } && | |
36576 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36578 | (eval $ac_try) 2>&5 | |
36579 | ac_status=$? | |
36580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36581 | (exit $ac_status); }; }; then | |
36582 | echo "$as_me:$LINENO: result: yes" >&5 | |
36583 | echo "${ECHO_T}yes" >&6 | |
36584 | cat >>confdefs.h <<\_ACEOF | |
36585 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
36586 | _ACEOF | |
36587 | ||
36588 | else | |
36589 | echo "$as_me: failed program was:" >&5 | |
36590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36591 | ||
36592 | echo "$as_me:$LINENO: result: no" >&5 | |
36593 | echo "${ECHO_T}no" >&6 | |
36594 | fi | |
ac1cb8d3 | 36595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36596 | |
36597 | ||
36598 | cat >confcache <<\_ACEOF | |
36599 | # This file is a shell script that caches the results of configure | |
36600 | # tests run on this system so they can be shared between configure | |
36601 | # scripts and configure runs, see configure's option --config-cache. | |
36602 | # It is not useful on other systems. If it contains results you don't | |
36603 | # want to keep, you may remove or edit it. | |
36604 | # | |
36605 | # config.status only pays attention to the cache file if you give it | |
36606 | # the --recheck option to rerun configure. | |
36607 | # | |
36608 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
36609 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
36610 | # following values. | |
36611 | ||
36612 | _ACEOF | |
36613 | ||
36614 | # The following way of writing the cache mishandles newlines in values, | |
36615 | # but we know of no workaround that is simple, portable, and efficient. | |
36616 | # So, don't put newlines in cache variables' values. | |
36617 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
36618 | # and sets the high bit in the cache file unless we assign to the vars. | |
36619 | { | |
36620 | (set) 2>&1 | | |
36621 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
36622 | *ac_space=\ *) | |
36623 | # `set' does not quote correctly, so add quotes (double-quote | |
36624 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
36625 | sed -n \ | |
ac1cb8d3 VS |
36626 | "s/'/'\\\\''/g; |
36627 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
36628 | ;; |
36629 | *) | |
36630 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
36631 | sed -n \ | |
ac1cb8d3 | 36632 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
36633 | ;; |
36634 | esac; | |
36635 | } | | |
36636 | sed ' | |
36637 | t clear | |
36638 | : clear | |
36639 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
36640 | t end | |
36641 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
36642 | : end' >>confcache | |
36643 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
36644 | if test -w $cache_file; then | |
36645 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
36646 | cat confcache >$cache_file | |
36647 | else | |
36648 | echo "not updating unwritable cache $cache_file" | |
36649 | fi | |
36650 | fi | |
36651 | rm -f confcache | |
36652 | ||
36653 | ||
a848cd7e SC |
36654 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
36655 | ||
36656 | ||
36657 | THREADS_LINK= | |
36658 | THREADS_CFLAGS= | |
36659 | ||
36660 | if test "$wxUSE_THREADS" = "yes" ; then | |
36661 | if test "$USE_BEOS" = 1; then | |
36662 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
36663 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
36664 | wxUSE_THREADS="no" | |
36665 | fi | |
36666 | fi | |
36667 | ||
36668 | if test "$wxUSE_THREADS" = "yes" ; then | |
36669 | ||
36670 | ||
36671 | THREAD_OPTS="-pthread" | |
36672 | case "${host}" in | |
36673 | *-*-solaris2* | *-*-sunos4* ) | |
36674 | if test "x$GCC" = "xyes"; then | |
36675 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
36676 | else | |
36677 | THREAD_OPTS="-mt $THREAD_OPTS" | |
36678 | fi | |
36679 | ;; | |
36680 | *-*-freebsd*) | |
36681 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
36682 | ;; | |
36683 | *-*-darwin* | *-*-cygwin* ) | |
36684 | THREAD_OPTS="" | |
36685 | ;; | |
36686 | *-*-aix*) | |
36687 | THREAD_OPTS="pthreads" | |
36688 | ;; | |
36689 | *-hp-hpux* ) | |
00421666 MW |
36690 | if test "x$GCC" = "xyes"; then |
36691 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
36692 | THREAD_OPTS="" | |
36693 | else | |
0093c2fc | 36694 | THREAD_OPTS="-mt" |
a848cd7e SC |
36695 | fi |
36696 | ;; | |
36697 | ||
36698 | *-*-irix* ) | |
36699 | if test "x$GCC" = "xyes"; then | |
36700 | THREAD_OPTS="" | |
36701 | fi | |
36702 | ;; | |
36703 | ||
36704 | *-*-*UnixWare*) | |
36705 | if test "x$GCC" != "xyes"; then | |
36706 | THREAD_OPTS="-Ethread" | |
36707 | fi | |
36708 | ;; | |
36709 | esac | |
36710 | ||
36711 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
36712 | ||
36713 | THREADS_OK=no | |
36714 | for flag in $THREAD_OPTS; do | |
36715 | case $flag in | |
36716 | none) | |
36717 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
36718 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
36719 | ;; | |
36720 | ||
36721 | -*) | |
36722 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
36723 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
36724 | THREADS_CFLAGS="$flag" | |
36725 | ;; | |
36726 | ||
36727 | *) | |
36728 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
36729 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
36730 | THREADS_LINK="-l$flag" | |
36731 | ;; | |
36732 | esac | |
36733 | ||
36734 | save_LIBS="$LIBS" | |
36735 | save_CFLAGS="$CFLAGS" | |
36736 | LIBS="$THREADS_LINK $LIBS" | |
36737 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
36738 | ||
36739 | cat >conftest.$ac_ext <<_ACEOF | |
36740 | /* confdefs.h. */ | |
36741 | _ACEOF | |
36742 | cat confdefs.h >>conftest.$ac_ext | |
36743 | cat >>conftest.$ac_ext <<_ACEOF | |
36744 | /* end confdefs.h. */ | |
36745 | #include <pthread.h> | |
36746 | int | |
36747 | main () | |
36748 | { | |
36749 | pthread_create(0,0,0,0); | |
36750 | ; | |
36751 | return 0; | |
36752 | } | |
36753 | _ACEOF | |
36754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36756 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36757 | ac_status=$? |
ac1cb8d3 VS |
36758 | grep -v '^ *+' conftest.er1 >conftest.err |
36759 | rm -f conftest.er1 | |
36760 | cat conftest.err >&5 | |
a848cd7e SC |
36761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36762 | (exit $ac_status); } && | |
f10e38c4 | 36763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36765 | (eval $ac_try) 2>&5 | |
36766 | ac_status=$? | |
36767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36768 | (exit $ac_status); }; } && | |
36769 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36771 | (eval $ac_try) 2>&5 | |
36772 | ac_status=$? | |
36773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36774 | (exit $ac_status); }; }; then | |
36775 | THREADS_OK=yes | |
36776 | else | |
36777 | echo "$as_me: failed program was:" >&5 | |
36778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36779 | ||
36780 | fi | |
ac1cb8d3 VS |
36781 | rm -f conftest.err conftest.$ac_objext \ |
36782 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36783 | |
36784 | LIBS="$save_LIBS" | |
36785 | CFLAGS="$save_CFLAGS" | |
36786 | ||
36787 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
36788 | echo "${ECHO_T}$THREADS_OK" >&6 | |
36789 | if test "x$THREADS_OK" = "xyes"; then | |
36790 | break; | |
36791 | fi | |
36792 | ||
36793 | THREADS_LINK="" | |
36794 | THREADS_CFLAGS="" | |
36795 | done | |
36796 | ||
36797 | if test "x$THREADS_OK" != "xyes"; then | |
36798 | wxUSE_THREADS=no | |
36799 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
36800 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
36801 | else | |
36802 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
36803 | LIBS="$THREADS_LINK $LIBS" | |
36804 | ||
36805 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
36806 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
36807 | flag=no | |
36808 | case "${host}" in | |
36809 | *-aix*) | |
36810 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
36811 | flag="-D_THREAD_SAFE" | |
36812 | ;; | |
36813 | *-freebsd*) | |
36814 | flag="-D_THREAD_SAFE" | |
36815 | ;; | |
36816 | *-hp-hpux* ) | |
36817 | flag="-D_REENTRANT" | |
36818 | if test "x$GCC" != "xyes"; then | |
36819 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
36820 | fi | |
36821 | ;; | |
36822 | *solaris* | alpha*-osf*) | |
36823 | flag="-D_REENTRANT" | |
36824 | ;; | |
36825 | esac | |
36826 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
36827 | echo "${ECHO_T}${flag}" >&6 | |
36828 | if test "x$flag" != xno; then | |
36829 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
36830 | fi | |
36831 | ||
5ff751d6 | 36832 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS" |
a848cd7e SC |
36833 | fi |
36834 | fi | |
36835 | ||
36836 | if test "$wxUSE_THREADS" = "yes" ; then | |
36837 | ||
36838 | for ac_func in thr_setconcurrency | |
36839 | do | |
36840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36841 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36843 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36845 | else | |
36846 | cat >conftest.$ac_ext <<_ACEOF | |
36847 | /* confdefs.h. */ | |
36848 | _ACEOF | |
36849 | cat confdefs.h >>conftest.$ac_ext | |
36850 | cat >>conftest.$ac_ext <<_ACEOF | |
36851 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36852 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36854 | #define $ac_func innocuous_$ac_func | |
36855 | ||
a848cd7e SC |
36856 | /* System header to define __stub macros and hopefully few prototypes, |
36857 | which can conflict with char $ac_func (); below. | |
36858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36859 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36860 | |
a848cd7e SC |
36861 | #ifdef __STDC__ |
36862 | # include <limits.h> | |
36863 | #else | |
36864 | # include <assert.h> | |
36865 | #endif | |
ac1cb8d3 VS |
36866 | |
36867 | #undef $ac_func | |
36868 | ||
a848cd7e SC |
36869 | /* Override any gcc2 internal prototype to avoid an error. */ |
36870 | #ifdef __cplusplus | |
36871 | extern "C" | |
36872 | { | |
36873 | #endif | |
36874 | /* We use char because int might match the return type of a gcc2 | |
36875 | builtin and then its argument prototype would still apply. */ | |
36876 | char $ac_func (); | |
36877 | /* The GNU C library defines this for functions which it implements | |
36878 | to always fail with ENOSYS. Some functions are actually named | |
36879 | something starting with __ and the normal name is an alias. */ | |
36880 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36881 | choke me | |
36882 | #else | |
36883 | char (*f) () = $ac_func; | |
36884 | #endif | |
36885 | #ifdef __cplusplus | |
36886 | } | |
36887 | #endif | |
36888 | ||
36889 | int | |
36890 | main () | |
36891 | { | |
36892 | return f != $ac_func; | |
36893 | ; | |
36894 | return 0; | |
36895 | } | |
36896 | _ACEOF | |
36897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36899 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36900 | ac_status=$? |
ac1cb8d3 VS |
36901 | grep -v '^ *+' conftest.er1 >conftest.err |
36902 | rm -f conftest.er1 | |
36903 | cat conftest.err >&5 | |
a848cd7e SC |
36904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36905 | (exit $ac_status); } && | |
f10e38c4 | 36906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36908 | (eval $ac_try) 2>&5 | |
36909 | ac_status=$? | |
36910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36911 | (exit $ac_status); }; } && | |
36912 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36914 | (eval $ac_try) 2>&5 | |
36915 | ac_status=$? | |
36916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36917 | (exit $ac_status); }; }; then | |
36918 | eval "$as_ac_var=yes" | |
36919 | else | |
36920 | echo "$as_me: failed program was:" >&5 | |
36921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36922 | ||
36923 | eval "$as_ac_var=no" | |
36924 | fi | |
ac1cb8d3 VS |
36925 | rm -f conftest.err conftest.$ac_objext \ |
36926 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36927 | fi |
36928 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36929 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36930 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36931 | cat >>confdefs.h <<_ACEOF | |
36932 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36933 | _ACEOF | |
36934 | ||
36935 | fi | |
36936 | done | |
36937 | ||
36938 | ||
6ebeb4c7 VZ |
36939 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
36940 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
36941 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
36942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36943 | else | |
36944 | ||
36945 | cat >conftest.$ac_ext <<_ACEOF | |
36946 | /* confdefs.h. */ | |
36947 | _ACEOF | |
36948 | cat confdefs.h >>conftest.$ac_ext | |
36949 | cat >>conftest.$ac_ext <<_ACEOF | |
36950 | /* end confdefs.h. */ | |
36951 | #include <pthread.h> | |
36952 | void ThreadCleanupFunc(void *p); | |
36953 | ||
36954 | int | |
36955 | main () | |
36956 | { | |
36957 | ||
36958 | void *p; | |
36959 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
36960 | pthread_cleanup_pop(0); | |
36961 | ||
36962 | ; | |
36963 | return 0; | |
36964 | } | |
36965 | _ACEOF | |
36966 | rm -f conftest.$ac_objext | |
36967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36968 | (eval $ac_compile) 2>conftest.er1 | |
36969 | ac_status=$? | |
36970 | grep -v '^ *+' conftest.er1 >conftest.err | |
36971 | rm -f conftest.er1 | |
36972 | cat conftest.err >&5 | |
36973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36974 | (exit $ac_status); } && | |
f10e38c4 | 36975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
36976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36977 | (eval $ac_try) 2>&5 | |
36978 | ac_status=$? | |
36979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36980 | (exit $ac_status); }; } && | |
36981 | { ac_try='test -s conftest.$ac_objext' | |
36982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36983 | (eval $ac_try) 2>&5 | |
36984 | ac_status=$? | |
36985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36986 | (exit $ac_status); }; }; then | |
36987 | ||
36988 | wx_cv_func_pthread_cleanup=yes | |
36989 | ||
36990 | else | |
36991 | echo "$as_me: failed program was:" >&5 | |
36992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36993 | ||
36994 | ||
36995 | wx_cv_func_pthread_cleanup=no | |
36996 | ||
36997 | ||
36998 | fi | |
36999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37000 | ||
37001 | fi | |
37002 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
37003 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
37004 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
37005 | cat >>confdefs.h <<\_ACEOF | |
37006 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
37007 | _ACEOF | |
37008 | ||
37009 | fi | |
37010 | ||
a848cd7e SC |
37011 | |
37012 | for ac_header in sched.h | |
37013 | do | |
37014 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37016 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37020 | fi | |
37021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37022 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37023 | else | |
37024 | # Is the header compilable? | |
37025 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37026 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37027 | cat >conftest.$ac_ext <<_ACEOF | |
37028 | /* confdefs.h. */ | |
37029 | _ACEOF | |
37030 | cat confdefs.h >>conftest.$ac_ext | |
37031 | cat >>conftest.$ac_ext <<_ACEOF | |
37032 | /* end confdefs.h. */ | |
37033 | $ac_includes_default | |
37034 | #include <$ac_header> | |
37035 | _ACEOF | |
37036 | rm -f conftest.$ac_objext | |
37037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37038 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37039 | ac_status=$? |
ac1cb8d3 VS |
37040 | grep -v '^ *+' conftest.er1 >conftest.err |
37041 | rm -f conftest.er1 | |
37042 | cat conftest.err >&5 | |
a848cd7e SC |
37043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37044 | (exit $ac_status); } && | |
f10e38c4 | 37045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37047 | (eval $ac_try) 2>&5 | |
37048 | ac_status=$? | |
37049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37050 | (exit $ac_status); }; } && | |
37051 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37053 | (eval $ac_try) 2>&5 | |
37054 | ac_status=$? | |
37055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37056 | (exit $ac_status); }; }; then | |
37057 | ac_header_compiler=yes | |
37058 | else | |
37059 | echo "$as_me: failed program was:" >&5 | |
37060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37061 | ||
37062 | ac_header_compiler=no | |
37063 | fi | |
ac1cb8d3 | 37064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37065 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37066 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37067 | ||
37068 | # Is the header present? | |
37069 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37070 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37071 | cat >conftest.$ac_ext <<_ACEOF | |
37072 | /* confdefs.h. */ | |
37073 | _ACEOF | |
37074 | cat confdefs.h >>conftest.$ac_ext | |
37075 | cat >>conftest.$ac_ext <<_ACEOF | |
37076 | /* end confdefs.h. */ | |
37077 | #include <$ac_header> | |
37078 | _ACEOF | |
37079 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37080 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37081 | ac_status=$? | |
37082 | grep -v '^ *+' conftest.er1 >conftest.err | |
37083 | rm -f conftest.er1 | |
37084 | cat conftest.err >&5 | |
37085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37086 | (exit $ac_status); } >/dev/null; then | |
37087 | if test -s conftest.err; then | |
37088 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37089 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37090 | else |
37091 | ac_cpp_err= | |
37092 | fi | |
37093 | else | |
37094 | ac_cpp_err=yes | |
37095 | fi | |
37096 | if test -z "$ac_cpp_err"; then | |
37097 | ac_header_preproc=yes | |
37098 | else | |
37099 | echo "$as_me: failed program was:" >&5 | |
37100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37101 | ||
37102 | ac_header_preproc=no | |
37103 | fi | |
37104 | rm -f conftest.err conftest.$ac_ext | |
37105 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37106 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37107 | ||
37108 | # So? What about this header? | |
ac1cb8d3 VS |
37109 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37110 | yes:no: ) | |
a848cd7e SC |
37111 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37112 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37113 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37114 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37115 | ac_header_preproc=yes | |
a848cd7e | 37116 | ;; |
ac1cb8d3 | 37117 | no:yes:* ) |
a848cd7e SC |
37118 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37119 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37120 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37121 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37122 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37123 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37124 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37125 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37126 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37127 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37128 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37129 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37130 | ( |
37131 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37132 | ## ----------------------------------------- ## |
37133 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37134 | ## ----------------------------------------- ## | |
a848cd7e SC |
37135 | _ASBOX |
37136 | ) | | |
37137 | sed "s/^/$as_me: WARNING: /" >&2 | |
37138 | ;; | |
37139 | esac | |
37140 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37142 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37144 | else | |
ac1cb8d3 | 37145 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37146 | fi |
37147 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37148 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37149 | ||
37150 | fi | |
37151 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37152 | cat >>confdefs.h <<_ACEOF | |
37153 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37154 | _ACEOF | |
37155 | ||
37156 | fi | |
37157 | ||
37158 | done | |
37159 | ||
37160 | if test "$ac_cv_header_sched_h" = "yes"; then | |
37161 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
37162 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
37163 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
37164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37165 | else | |
37166 | cat >conftest.$ac_ext <<_ACEOF | |
37167 | /* confdefs.h. */ | |
37168 | _ACEOF | |
37169 | cat confdefs.h >>conftest.$ac_ext | |
37170 | cat >>conftest.$ac_ext <<_ACEOF | |
37171 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37172 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
37173 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37174 | #define sched_yield innocuous_sched_yield | |
37175 | ||
a848cd7e SC |
37176 | /* System header to define __stub macros and hopefully few prototypes, |
37177 | which can conflict with char sched_yield (); below. | |
37178 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37179 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37180 | |
a848cd7e SC |
37181 | #ifdef __STDC__ |
37182 | # include <limits.h> | |
37183 | #else | |
37184 | # include <assert.h> | |
37185 | #endif | |
ac1cb8d3 VS |
37186 | |
37187 | #undef sched_yield | |
37188 | ||
a848cd7e SC |
37189 | /* Override any gcc2 internal prototype to avoid an error. */ |
37190 | #ifdef __cplusplus | |
37191 | extern "C" | |
37192 | { | |
37193 | #endif | |
37194 | /* We use char because int might match the return type of a gcc2 | |
37195 | builtin and then its argument prototype would still apply. */ | |
37196 | char sched_yield (); | |
37197 | /* The GNU C library defines this for functions which it implements | |
37198 | to always fail with ENOSYS. Some functions are actually named | |
37199 | something starting with __ and the normal name is an alias. */ | |
37200 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
37201 | choke me | |
37202 | #else | |
37203 | char (*f) () = sched_yield; | |
37204 | #endif | |
37205 | #ifdef __cplusplus | |
37206 | } | |
37207 | #endif | |
37208 | ||
37209 | int | |
37210 | main () | |
37211 | { | |
37212 | return f != sched_yield; | |
37213 | ; | |
37214 | return 0; | |
37215 | } | |
37216 | _ACEOF | |
37217 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37219 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37220 | ac_status=$? |
ac1cb8d3 VS |
37221 | grep -v '^ *+' conftest.er1 >conftest.err |
37222 | rm -f conftest.er1 | |
37223 | cat conftest.err >&5 | |
a848cd7e SC |
37224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37225 | (exit $ac_status); } && | |
f10e38c4 | 37226 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37228 | (eval $ac_try) 2>&5 | |
37229 | ac_status=$? | |
37230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37231 | (exit $ac_status); }; } && | |
37232 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37234 | (eval $ac_try) 2>&5 | |
37235 | ac_status=$? | |
37236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37237 | (exit $ac_status); }; }; then | |
37238 | ac_cv_func_sched_yield=yes | |
37239 | else | |
37240 | echo "$as_me: failed program was:" >&5 | |
37241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37242 | ||
37243 | ac_cv_func_sched_yield=no | |
37244 | fi | |
ac1cb8d3 VS |
37245 | rm -f conftest.err conftest.$ac_objext \ |
37246 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37247 | fi |
37248 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
37249 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
37250 | if test $ac_cv_func_sched_yield = yes; then | |
37251 | cat >>confdefs.h <<\_ACEOF | |
37252 | #define HAVE_SCHED_YIELD 1 | |
37253 | _ACEOF | |
37254 | ||
37255 | else | |
37256 | ||
37257 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
37258 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
37259 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
37260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37261 | else | |
37262 | ac_check_lib_save_LIBS=$LIBS | |
37263 | LIBS="-lposix4 $LIBS" | |
37264 | cat >conftest.$ac_ext <<_ACEOF | |
37265 | /* confdefs.h. */ | |
37266 | _ACEOF | |
37267 | cat confdefs.h >>conftest.$ac_ext | |
37268 | cat >>conftest.$ac_ext <<_ACEOF | |
37269 | /* end confdefs.h. */ | |
37270 | ||
37271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37272 | #ifdef __cplusplus | |
37273 | extern "C" | |
37274 | #endif | |
37275 | /* We use char because int might match the return type of a gcc2 | |
37276 | builtin and then its argument prototype would still apply. */ | |
37277 | char sched_yield (); | |
37278 | int | |
37279 | main () | |
37280 | { | |
37281 | sched_yield (); | |
37282 | ; | |
37283 | return 0; | |
37284 | } | |
37285 | _ACEOF | |
37286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37288 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37289 | ac_status=$? |
ac1cb8d3 VS |
37290 | grep -v '^ *+' conftest.er1 >conftest.err |
37291 | rm -f conftest.er1 | |
37292 | cat conftest.err >&5 | |
a848cd7e SC |
37293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37294 | (exit $ac_status); } && | |
f10e38c4 | 37295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37297 | (eval $ac_try) 2>&5 | |
37298 | ac_status=$? | |
37299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37300 | (exit $ac_status); }; } && | |
37301 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37303 | (eval $ac_try) 2>&5 | |
37304 | ac_status=$? | |
37305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37306 | (exit $ac_status); }; }; then | |
37307 | ac_cv_lib_posix4_sched_yield=yes | |
37308 | else | |
37309 | echo "$as_me: failed program was:" >&5 | |
37310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37311 | ||
37312 | ac_cv_lib_posix4_sched_yield=no | |
37313 | fi | |
ac1cb8d3 VS |
37314 | rm -f conftest.err conftest.$ac_objext \ |
37315 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37316 | LIBS=$ac_check_lib_save_LIBS |
37317 | fi | |
37318 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
37319 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
37320 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
37321 | cat >>confdefs.h <<\_ACEOF | |
37322 | #define HAVE_SCHED_YIELD 1 | |
37323 | _ACEOF | |
37324 | POSIX4_LINK=" -lposix4" | |
37325 | else | |
37326 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
37327 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
37328 | ||
37329 | fi | |
37330 | ||
37331 | ||
37332 | ||
37333 | fi | |
37334 | ||
37335 | fi | |
37336 | ||
37337 | HAVE_PRIOR_FUNCS=0 | |
37338 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
37339 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
37340 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
37341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37342 | else | |
37343 | cat >conftest.$ac_ext <<_ACEOF | |
37344 | /* confdefs.h. */ | |
37345 | _ACEOF | |
37346 | cat confdefs.h >>conftest.$ac_ext | |
37347 | cat >>conftest.$ac_ext <<_ACEOF | |
37348 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37349 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
37350 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37351 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
37352 | ||
a848cd7e SC |
37353 | /* System header to define __stub macros and hopefully few prototypes, |
37354 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
37355 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37356 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37357 | |
a848cd7e SC |
37358 | #ifdef __STDC__ |
37359 | # include <limits.h> | |
37360 | #else | |
37361 | # include <assert.h> | |
37362 | #endif | |
ac1cb8d3 VS |
37363 | |
37364 | #undef pthread_attr_getschedpolicy | |
37365 | ||
a848cd7e SC |
37366 | /* Override any gcc2 internal prototype to avoid an error. */ |
37367 | #ifdef __cplusplus | |
37368 | extern "C" | |
37369 | { | |
37370 | #endif | |
37371 | /* We use char because int might match the return type of a gcc2 | |
37372 | builtin and then its argument prototype would still apply. */ | |
37373 | char pthread_attr_getschedpolicy (); | |
37374 | /* The GNU C library defines this for functions which it implements | |
37375 | to always fail with ENOSYS. Some functions are actually named | |
37376 | something starting with __ and the normal name is an alias. */ | |
37377 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
37378 | choke me | |
37379 | #else | |
37380 | char (*f) () = pthread_attr_getschedpolicy; | |
37381 | #endif | |
37382 | #ifdef __cplusplus | |
37383 | } | |
37384 | #endif | |
37385 | ||
37386 | int | |
37387 | main () | |
37388 | { | |
37389 | return f != pthread_attr_getschedpolicy; | |
37390 | ; | |
37391 | return 0; | |
37392 | } | |
37393 | _ACEOF | |
37394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37396 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37397 | ac_status=$? |
ac1cb8d3 VS |
37398 | grep -v '^ *+' conftest.er1 >conftest.err |
37399 | rm -f conftest.er1 | |
37400 | cat conftest.err >&5 | |
a848cd7e SC |
37401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37402 | (exit $ac_status); } && | |
f10e38c4 | 37403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37405 | (eval $ac_try) 2>&5 | |
37406 | ac_status=$? | |
37407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37408 | (exit $ac_status); }; } && | |
37409 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37411 | (eval $ac_try) 2>&5 | |
37412 | ac_status=$? | |
37413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37414 | (exit $ac_status); }; }; then | |
37415 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
37416 | else | |
37417 | echo "$as_me: failed program was:" >&5 | |
37418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37419 | ||
37420 | ac_cv_func_pthread_attr_getschedpolicy=no | |
37421 | fi | |
ac1cb8d3 VS |
37422 | rm -f conftest.err conftest.$ac_objext \ |
37423 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37424 | fi |
37425 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
37426 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
37427 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
37428 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
37429 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
37430 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
37431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37432 | else | |
37433 | cat >conftest.$ac_ext <<_ACEOF | |
37434 | /* confdefs.h. */ | |
37435 | _ACEOF | |
37436 | cat confdefs.h >>conftest.$ac_ext | |
37437 | cat >>conftest.$ac_ext <<_ACEOF | |
37438 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37439 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
37440 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37441 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
37442 | ||
a848cd7e SC |
37443 | /* System header to define __stub macros and hopefully few prototypes, |
37444 | which can conflict with char pthread_attr_setschedparam (); below. | |
37445 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37446 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37447 | |
a848cd7e SC |
37448 | #ifdef __STDC__ |
37449 | # include <limits.h> | |
37450 | #else | |
37451 | # include <assert.h> | |
37452 | #endif | |
ac1cb8d3 VS |
37453 | |
37454 | #undef pthread_attr_setschedparam | |
37455 | ||
a848cd7e SC |
37456 | /* Override any gcc2 internal prototype to avoid an error. */ |
37457 | #ifdef __cplusplus | |
37458 | extern "C" | |
37459 | { | |
37460 | #endif | |
37461 | /* We use char because int might match the return type of a gcc2 | |
37462 | builtin and then its argument prototype would still apply. */ | |
37463 | char pthread_attr_setschedparam (); | |
37464 | /* The GNU C library defines this for functions which it implements | |
37465 | to always fail with ENOSYS. Some functions are actually named | |
37466 | something starting with __ and the normal name is an alias. */ | |
37467 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
37468 | choke me | |
37469 | #else | |
37470 | char (*f) () = pthread_attr_setschedparam; | |
37471 | #endif | |
37472 | #ifdef __cplusplus | |
37473 | } | |
37474 | #endif | |
37475 | ||
37476 | int | |
37477 | main () | |
37478 | { | |
37479 | return f != pthread_attr_setschedparam; | |
37480 | ; | |
37481 | return 0; | |
37482 | } | |
37483 | _ACEOF | |
37484 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37486 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37487 | ac_status=$? |
ac1cb8d3 VS |
37488 | grep -v '^ *+' conftest.er1 >conftest.err |
37489 | rm -f conftest.er1 | |
37490 | cat conftest.err >&5 | |
a848cd7e SC |
37491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37492 | (exit $ac_status); } && | |
f10e38c4 | 37493 | { ac_try='test -z "$ac_c_werror_flag" || 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_exeext' | |
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_cv_func_pthread_attr_setschedparam=yes | |
37506 | else | |
37507 | echo "$as_me: failed program was:" >&5 | |
37508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37509 | ||
37510 | ac_cv_func_pthread_attr_setschedparam=no | |
37511 | fi | |
ac1cb8d3 VS |
37512 | rm -f conftest.err conftest.$ac_objext \ |
37513 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37514 | fi |
37515 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
37516 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
37517 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
37518 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
37519 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
37520 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
37521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37522 | else | |
37523 | cat >conftest.$ac_ext <<_ACEOF | |
37524 | /* confdefs.h. */ | |
37525 | _ACEOF | |
37526 | cat confdefs.h >>conftest.$ac_ext | |
37527 | cat >>conftest.$ac_ext <<_ACEOF | |
37528 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37529 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
37530 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37531 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
37532 | ||
a848cd7e SC |
37533 | /* System header to define __stub macros and hopefully few prototypes, |
37534 | which can conflict with char sched_get_priority_max (); below. | |
37535 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37536 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37537 | |
a848cd7e SC |
37538 | #ifdef __STDC__ |
37539 | # include <limits.h> | |
37540 | #else | |
37541 | # include <assert.h> | |
37542 | #endif | |
ac1cb8d3 VS |
37543 | |
37544 | #undef sched_get_priority_max | |
37545 | ||
a848cd7e SC |
37546 | /* Override any gcc2 internal prototype to avoid an error. */ |
37547 | #ifdef __cplusplus | |
37548 | extern "C" | |
37549 | { | |
37550 | #endif | |
37551 | /* We use char because int might match the return type of a gcc2 | |
37552 | builtin and then its argument prototype would still apply. */ | |
37553 | char sched_get_priority_max (); | |
37554 | /* The GNU C library defines this for functions which it implements | |
37555 | to always fail with ENOSYS. Some functions are actually named | |
37556 | something starting with __ and the normal name is an alias. */ | |
37557 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
37558 | choke me | |
37559 | #else | |
37560 | char (*f) () = sched_get_priority_max; | |
37561 | #endif | |
37562 | #ifdef __cplusplus | |
37563 | } | |
37564 | #endif | |
37565 | ||
37566 | int | |
37567 | main () | |
37568 | { | |
37569 | return f != sched_get_priority_max; | |
37570 | ; | |
37571 | return 0; | |
37572 | } | |
37573 | _ACEOF | |
37574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37576 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37577 | ac_status=$? |
ac1cb8d3 VS |
37578 | grep -v '^ *+' conftest.er1 >conftest.err |
37579 | rm -f conftest.er1 | |
37580 | cat conftest.err >&5 | |
a848cd7e SC |
37581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37582 | (exit $ac_status); } && | |
f10e38c4 | 37583 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37585 | (eval $ac_try) 2>&5 | |
37586 | ac_status=$? | |
37587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37588 | (exit $ac_status); }; } && | |
37589 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37591 | (eval $ac_try) 2>&5 | |
37592 | ac_status=$? | |
37593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37594 | (exit $ac_status); }; }; then | |
37595 | ac_cv_func_sched_get_priority_max=yes | |
37596 | else | |
37597 | echo "$as_me: failed program was:" >&5 | |
37598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37599 | ||
37600 | ac_cv_func_sched_get_priority_max=no | |
37601 | fi | |
ac1cb8d3 VS |
37602 | rm -f conftest.err conftest.$ac_objext \ |
37603 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37604 | fi |
37605 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
37606 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
37607 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
37608 | HAVE_PRIOR_FUNCS=1 | |
37609 | else | |
37610 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
37611 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
37612 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
37613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37614 | else | |
37615 | ac_check_lib_save_LIBS=$LIBS | |
37616 | LIBS="-lposix4 $LIBS" | |
37617 | cat >conftest.$ac_ext <<_ACEOF | |
37618 | /* confdefs.h. */ | |
37619 | _ACEOF | |
37620 | cat confdefs.h >>conftest.$ac_ext | |
37621 | cat >>conftest.$ac_ext <<_ACEOF | |
37622 | /* end confdefs.h. */ | |
37623 | ||
37624 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37625 | #ifdef __cplusplus | |
37626 | extern "C" | |
37627 | #endif | |
37628 | /* We use char because int might match the return type of a gcc2 | |
37629 | builtin and then its argument prototype would still apply. */ | |
37630 | char sched_get_priority_max (); | |
37631 | int | |
37632 | main () | |
37633 | { | |
37634 | sched_get_priority_max (); | |
37635 | ; | |
37636 | return 0; | |
37637 | } | |
37638 | _ACEOF | |
37639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37641 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37642 | ac_status=$? |
ac1cb8d3 VS |
37643 | grep -v '^ *+' conftest.er1 >conftest.err |
37644 | rm -f conftest.er1 | |
37645 | cat conftest.err >&5 | |
a848cd7e SC |
37646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37647 | (exit $ac_status); } && | |
f10e38c4 | 37648 | { ac_try='test -z "$ac_c_werror_flag" || 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_exeext' | |
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 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
37661 | else | |
37662 | echo "$as_me: failed program was:" >&5 | |
37663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37664 | ||
37665 | ac_cv_lib_posix4_sched_get_priority_max=no | |
37666 | fi | |
ac1cb8d3 VS |
37667 | rm -f conftest.err conftest.$ac_objext \ |
37668 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37669 | LIBS=$ac_check_lib_save_LIBS |
37670 | fi | |
37671 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
37672 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
37673 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
37674 | ||
37675 | HAVE_PRIOR_FUNCS=1 | |
37676 | POSIX4_LINK=" -lposix4" | |
37677 | ||
37678 | fi | |
37679 | ||
37680 | ||
37681 | fi | |
37682 | ||
37683 | ||
37684 | fi | |
37685 | ||
37686 | ||
37687 | fi | |
37688 | ||
37689 | ||
37690 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
37691 | cat >>confdefs.h <<\_ACEOF | |
37692 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
37693 | _ACEOF | |
37694 | ||
37695 | else | |
37696 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
37697 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
37698 | fi | |
37699 | ||
37700 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
37701 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
37702 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
37703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37704 | else | |
37705 | cat >conftest.$ac_ext <<_ACEOF | |
37706 | /* confdefs.h. */ | |
37707 | _ACEOF | |
37708 | cat confdefs.h >>conftest.$ac_ext | |
37709 | cat >>conftest.$ac_ext <<_ACEOF | |
37710 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37711 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
37712 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37713 | #define pthread_cancel innocuous_pthread_cancel | |
37714 | ||
a848cd7e SC |
37715 | /* System header to define __stub macros and hopefully few prototypes, |
37716 | which can conflict with char pthread_cancel (); below. | |
37717 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37718 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37719 | |
a848cd7e SC |
37720 | #ifdef __STDC__ |
37721 | # include <limits.h> | |
37722 | #else | |
37723 | # include <assert.h> | |
37724 | #endif | |
ac1cb8d3 VS |
37725 | |
37726 | #undef pthread_cancel | |
37727 | ||
a848cd7e SC |
37728 | /* Override any gcc2 internal prototype to avoid an error. */ |
37729 | #ifdef __cplusplus | |
37730 | extern "C" | |
37731 | { | |
37732 | #endif | |
37733 | /* We use char because int might match the return type of a gcc2 | |
37734 | builtin and then its argument prototype would still apply. */ | |
37735 | char pthread_cancel (); | |
37736 | /* The GNU C library defines this for functions which it implements | |
37737 | to always fail with ENOSYS. Some functions are actually named | |
37738 | something starting with __ and the normal name is an alias. */ | |
37739 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
37740 | choke me | |
37741 | #else | |
37742 | char (*f) () = pthread_cancel; | |
37743 | #endif | |
37744 | #ifdef __cplusplus | |
37745 | } | |
37746 | #endif | |
37747 | ||
37748 | int | |
37749 | main () | |
37750 | { | |
37751 | return f != pthread_cancel; | |
37752 | ; | |
37753 | return 0; | |
37754 | } | |
37755 | _ACEOF | |
37756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37758 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37759 | ac_status=$? |
ac1cb8d3 VS |
37760 | grep -v '^ *+' conftest.er1 >conftest.err |
37761 | rm -f conftest.er1 | |
37762 | cat conftest.err >&5 | |
a848cd7e SC |
37763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37764 | (exit $ac_status); } && | |
f10e38c4 | 37765 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37767 | (eval $ac_try) 2>&5 | |
37768 | ac_status=$? | |
37769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37770 | (exit $ac_status); }; } && | |
37771 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37773 | (eval $ac_try) 2>&5 | |
37774 | ac_status=$? | |
37775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37776 | (exit $ac_status); }; }; then | |
37777 | ac_cv_func_pthread_cancel=yes | |
37778 | else | |
37779 | echo "$as_me: failed program was:" >&5 | |
37780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37781 | ||
37782 | ac_cv_func_pthread_cancel=no | |
37783 | fi | |
ac1cb8d3 VS |
37784 | rm -f conftest.err conftest.$ac_objext \ |
37785 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37786 | fi |
37787 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
37788 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
37789 | if test $ac_cv_func_pthread_cancel = yes; then | |
37790 | cat >>confdefs.h <<\_ACEOF | |
37791 | #define HAVE_PTHREAD_CANCEL 1 | |
37792 | _ACEOF | |
37793 | ||
37794 | else | |
37795 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
37796 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
37797 | fi | |
37798 | ||
37799 | ||
abc736fd MW |
37800 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
37801 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
37802 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
37803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37804 | else | |
37805 | cat >conftest.$ac_ext <<_ACEOF | |
37806 | /* confdefs.h. */ | |
37807 | _ACEOF | |
37808 | cat confdefs.h >>conftest.$ac_ext | |
37809 | cat >>conftest.$ac_ext <<_ACEOF | |
37810 | /* end confdefs.h. */ | |
37811 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
37812 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37813 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
37814 | ||
37815 | /* System header to define __stub macros and hopefully few prototypes, | |
37816 | which can conflict with char pthread_attr_setstacksize (); below. | |
37817 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37818 | <limits.h> exists even on freestanding compilers. */ | |
37819 | ||
37820 | #ifdef __STDC__ | |
37821 | # include <limits.h> | |
37822 | #else | |
37823 | # include <assert.h> | |
37824 | #endif | |
37825 | ||
37826 | #undef pthread_attr_setstacksize | |
37827 | ||
37828 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37829 | #ifdef __cplusplus | |
37830 | extern "C" | |
37831 | { | |
37832 | #endif | |
37833 | /* We use char because int might match the return type of a gcc2 | |
37834 | builtin and then its argument prototype would still apply. */ | |
37835 | char pthread_attr_setstacksize (); | |
37836 | /* The GNU C library defines this for functions which it implements | |
37837 | to always fail with ENOSYS. Some functions are actually named | |
37838 | something starting with __ and the normal name is an alias. */ | |
37839 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
37840 | choke me | |
37841 | #else | |
37842 | char (*f) () = pthread_attr_setstacksize; | |
37843 | #endif | |
37844 | #ifdef __cplusplus | |
37845 | } | |
37846 | #endif | |
37847 | ||
37848 | int | |
37849 | main () | |
37850 | { | |
37851 | return f != pthread_attr_setstacksize; | |
37852 | ; | |
37853 | return 0; | |
37854 | } | |
37855 | _ACEOF | |
37856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37858 | (eval $ac_link) 2>conftest.er1 | |
37859 | ac_status=$? | |
37860 | grep -v '^ *+' conftest.er1 >conftest.err | |
37861 | rm -f conftest.er1 | |
37862 | cat conftest.err >&5 | |
37863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37864 | (exit $ac_status); } && | |
f10e38c4 | 37865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
37866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37867 | (eval $ac_try) 2>&5 | |
37868 | ac_status=$? | |
37869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37870 | (exit $ac_status); }; } && | |
37871 | { ac_try='test -s conftest$ac_exeext' | |
37872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37873 | (eval $ac_try) 2>&5 | |
37874 | ac_status=$? | |
37875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37876 | (exit $ac_status); }; }; then | |
37877 | ac_cv_func_pthread_attr_setstacksize=yes | |
37878 | else | |
37879 | echo "$as_me: failed program was:" >&5 | |
37880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37881 | ||
37882 | ac_cv_func_pthread_attr_setstacksize=no | |
37883 | fi | |
37884 | rm -f conftest.err conftest.$ac_objext \ | |
37885 | conftest$ac_exeext conftest.$ac_ext | |
37886 | fi | |
37887 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
37888 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
37889 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
37890 | cat >>confdefs.h <<\_ACEOF | |
37891 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
37892 | _ACEOF | |
37893 | ||
37894 | fi | |
37895 | ||
a848cd7e SC |
37896 | |
37897 | ||
37898 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
37899 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
37900 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
37901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37902 | else | |
37903 | ||
37904 | cat >conftest.$ac_ext <<_ACEOF | |
37905 | /* confdefs.h. */ | |
37906 | _ACEOF | |
37907 | cat confdefs.h >>conftest.$ac_ext | |
37908 | cat >>conftest.$ac_ext <<_ACEOF | |
37909 | /* end confdefs.h. */ | |
37910 | #include <pthread.h> | |
37911 | int | |
37912 | main () | |
37913 | { | |
37914 | ||
37915 | pthread_mutexattr_t attr; | |
37916 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
37917 | ||
37918 | ; | |
37919 | return 0; | |
37920 | } | |
37921 | _ACEOF | |
37922 | rm -f conftest.$ac_objext | |
37923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37924 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37925 | ac_status=$? |
ac1cb8d3 VS |
37926 | grep -v '^ *+' conftest.er1 >conftest.err |
37927 | rm -f conftest.er1 | |
37928 | cat conftest.err >&5 | |
a848cd7e SC |
37929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37930 | (exit $ac_status); } && | |
f10e38c4 | 37931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37933 | (eval $ac_try) 2>&5 | |
37934 | ac_status=$? | |
37935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37936 | (exit $ac_status); }; } && | |
37937 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37939 | (eval $ac_try) 2>&5 | |
37940 | ac_status=$? | |
37941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37942 | (exit $ac_status); }; }; then | |
123dca7d | 37943 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
37944 | else |
37945 | echo "$as_me: failed program was:" >&5 | |
37946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37947 | ||
123dca7d | 37948 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
37949 | |
37950 | fi | |
ac1cb8d3 | 37951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37952 | |
37953 | fi | |
37954 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
37955 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
37956 | ||
37957 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
37958 | cat >>confdefs.h <<\_ACEOF | |
37959 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
37960 | _ACEOF | |
37961 | ||
123dca7d VZ |
37962 | |
37963 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
37964 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
37965 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
37966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37967 | else | |
37968 | ||
37969 | cat >conftest.$ac_ext <<_ACEOF | |
37970 | /* confdefs.h. */ | |
37971 | _ACEOF | |
37972 | cat confdefs.h >>conftest.$ac_ext | |
37973 | cat >>conftest.$ac_ext <<_ACEOF | |
37974 | /* end confdefs.h. */ | |
37975 | #include <pthread.h> | |
37976 | int | |
37977 | main () | |
37978 | { | |
37979 | ||
37980 | pthread_mutexattr_t attr; | |
37981 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
37982 | ||
37983 | ; | |
37984 | return 0; | |
37985 | } | |
37986 | _ACEOF | |
37987 | rm -f conftest.$ac_objext | |
37988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37989 | (eval $ac_compile) 2>conftest.er1 | |
37990 | ac_status=$? | |
37991 | grep -v '^ *+' conftest.er1 >conftest.err | |
37992 | rm -f conftest.er1 | |
37993 | cat conftest.err >&5 | |
37994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37995 | (exit $ac_status); } && | |
f10e38c4 | 37996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
123dca7d VZ |
37997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37998 | (eval $ac_try) 2>&5 | |
37999 | ac_status=$? | |
38000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38001 | (exit $ac_status); }; } && | |
38002 | { ac_try='test -s conftest.$ac_objext' | |
38003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38004 | (eval $ac_try) 2>&5 | |
38005 | ac_status=$? | |
38006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38007 | (exit $ac_status); }; }; then | |
38008 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
38009 | else | |
38010 | echo "$as_me: failed program was:" >&5 | |
38011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38012 | ||
38013 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
38014 | ||
38015 | fi | |
38016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38017 | ||
38018 | fi | |
38019 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
38020 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
38021 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
38022 | cat >>confdefs.h <<\_ACEOF | |
38023 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
38024 | _ACEOF | |
38025 | ||
38026 | fi | |
a848cd7e SC |
38027 | else |
38028 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
38029 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
38030 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
38031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38032 | else | |
38033 | ||
38034 | cat >conftest.$ac_ext <<_ACEOF | |
38035 | /* confdefs.h. */ | |
38036 | _ACEOF | |
38037 | cat confdefs.h >>conftest.$ac_ext | |
38038 | cat >>conftest.$ac_ext <<_ACEOF | |
38039 | /* end confdefs.h. */ | |
38040 | #include <pthread.h> | |
38041 | int | |
38042 | main () | |
38043 | { | |
38044 | ||
38045 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
38046 | ||
38047 | ; | |
38048 | return 0; | |
38049 | } | |
38050 | _ACEOF | |
38051 | rm -f conftest.$ac_objext | |
38052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38053 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38054 | ac_status=$? |
ac1cb8d3 VS |
38055 | grep -v '^ *+' conftest.er1 >conftest.err |
38056 | rm -f conftest.er1 | |
38057 | cat conftest.err >&5 | |
a848cd7e SC |
38058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38059 | (exit $ac_status); } && | |
f10e38c4 | 38060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38062 | (eval $ac_try) 2>&5 | |
38063 | ac_status=$? | |
38064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38065 | (exit $ac_status); }; } && | |
38066 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38068 | (eval $ac_try) 2>&5 | |
38069 | ac_status=$? | |
38070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38071 | (exit $ac_status); }; }; then | |
38072 | ||
38073 | wx_cv_type_pthread_rec_mutex_init=yes | |
38074 | ||
38075 | else | |
38076 | echo "$as_me: failed program was:" >&5 | |
38077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38078 | ||
38079 | ||
38080 | wx_cv_type_pthread_rec_mutex_init=no | |
38081 | ||
38082 | ||
38083 | fi | |
ac1cb8d3 | 38084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38085 | |
38086 | fi | |
38087 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
38088 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
38089 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
38090 | cat >>confdefs.h <<\_ACEOF | |
38091 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
38092 | _ACEOF | |
38093 | ||
38094 | else | |
38095 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
38096 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
38097 | fi | |
38098 | fi | |
38099 | fi | |
38100 | ||
38101 | else | |
38102 | if test "$wxUSE_THREADS" = "yes" ; then | |
38103 | case "${host}" in | |
38104 | *-*-mingw32* ) | |
38105 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
38106 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
38107 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
38108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38109 | else | |
38110 | ||
38111 | CFLAGS_OLD="$CFLAGS" | |
c92ad099 | 38112 | CFLAGS="-mthreads $CFLAGS" |
a848cd7e SC |
38113 | cat >conftest.$ac_ext <<_ACEOF |
38114 | /* confdefs.h. */ | |
38115 | _ACEOF | |
38116 | cat confdefs.h >>conftest.$ac_ext | |
38117 | cat >>conftest.$ac_ext <<_ACEOF | |
38118 | /* end confdefs.h. */ | |
38119 | ||
38120 | int | |
38121 | main () | |
38122 | { | |
38123 | ||
38124 | ; | |
38125 | return 0; | |
38126 | } | |
38127 | _ACEOF | |
38128 | rm -f conftest.$ac_objext | |
38129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38130 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38131 | ac_status=$? |
ac1cb8d3 VS |
38132 | grep -v '^ *+' conftest.er1 >conftest.err |
38133 | rm -f conftest.er1 | |
38134 | cat conftest.err >&5 | |
a848cd7e SC |
38135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38136 | (exit $ac_status); } && | |
f10e38c4 | 38137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38139 | (eval $ac_try) 2>&5 | |
38140 | ac_status=$? | |
38141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38142 | (exit $ac_status); }; } && | |
38143 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38145 | (eval $ac_try) 2>&5 | |
38146 | ac_status=$? | |
38147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38148 | (exit $ac_status); }; }; then | |
38149 | wx_cv_cflags_mthread=yes | |
38150 | else | |
38151 | echo "$as_me: failed program was:" >&5 | |
38152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38153 | ||
38154 | wx_cv_cflags_mthread=no | |
38155 | ||
38156 | fi | |
ac1cb8d3 | 38157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38158 | |
38159 | ||
38160 | fi | |
38161 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
38162 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
38163 | ||
38164 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
5ff751d6 | 38165 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads" |
a848cd7e SC |
38166 | LDFLAGS="$LDFLAGS -mthreads" |
38167 | else | |
38168 | CFLAGS="$CFLAGS_OLD" | |
38169 | fi | |
38170 | ;; | |
38171 | *-pc-os2*emx ) | |
5ff751d6 VZ |
38172 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
38173 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
38174 | LDFLAGS="$LDFLAGS -Zmt" |
38175 | ;; | |
38176 | esac | |
38177 | fi | |
38178 | fi | |
38179 | ||
004ee6da RL |
38180 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
38181 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
38182 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
38183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
38184 | else | |
38185 | cat >conftest.$ac_ext <<_ACEOF | |
38186 | /* confdefs.h. */ | |
38187 | _ACEOF | |
38188 | cat confdefs.h >>conftest.$ac_ext | |
38189 | cat >>conftest.$ac_ext <<_ACEOF | |
38190 | /* end confdefs.h. */ | |
004ee6da | 38191 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 38192 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 38193 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 38194 | |
a848cd7e | 38195 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 38196 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
38197 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
38198 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38199 | |
a848cd7e SC |
38200 | #ifdef __STDC__ |
38201 | # include <limits.h> | |
38202 | #else | |
38203 | # include <assert.h> | |
38204 | #endif | |
ac1cb8d3 | 38205 | |
004ee6da | 38206 | #undef localtime_r |
ac1cb8d3 | 38207 | |
a848cd7e SC |
38208 | /* Override any gcc2 internal prototype to avoid an error. */ |
38209 | #ifdef __cplusplus | |
38210 | extern "C" | |
38211 | { | |
38212 | #endif | |
38213 | /* We use char because int might match the return type of a gcc2 | |
38214 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 38215 | char localtime_r (); |
a848cd7e SC |
38216 | /* The GNU C library defines this for functions which it implements |
38217 | to always fail with ENOSYS. Some functions are actually named | |
38218 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 38219 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
38220 | choke me |
38221 | #else | |
004ee6da | 38222 | char (*f) () = localtime_r; |
a848cd7e SC |
38223 | #endif |
38224 | #ifdef __cplusplus | |
38225 | } | |
38226 | #endif | |
38227 | ||
38228 | int | |
38229 | main () | |
38230 | { | |
004ee6da RL |
38231 | return f != localtime_r; |
38232 | ; | |
38233 | return 0; | |
38234 | } | |
38235 | _ACEOF | |
38236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38238 | (eval $ac_link) 2>conftest.er1 | |
38239 | ac_status=$? | |
38240 | grep -v '^ *+' conftest.er1 >conftest.err | |
38241 | rm -f conftest.er1 | |
38242 | cat conftest.err >&5 | |
38243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38244 | (exit $ac_status); } && | |
f10e38c4 | 38245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38247 | (eval $ac_try) 2>&5 | |
38248 | ac_status=$? | |
38249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38250 | (exit $ac_status); }; } && | |
38251 | { ac_try='test -s conftest$ac_exeext' | |
38252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38253 | (eval $ac_try) 2>&5 | |
38254 | ac_status=$? | |
38255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38256 | (exit $ac_status); }; }; then | |
38257 | ac_cv_func_localtime_r=yes | |
38258 | else | |
38259 | echo "$as_me: failed program was:" >&5 | |
38260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38261 | ||
38262 | ac_cv_func_localtime_r=no | |
38263 | fi | |
38264 | rm -f conftest.err conftest.$ac_objext \ | |
38265 | conftest$ac_exeext conftest.$ac_ext | |
38266 | fi | |
38267 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
38268 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
38269 | if test $ac_cv_func_localtime_r = yes; then | |
38270 | cat >>confdefs.h <<\_ACEOF | |
38271 | #define HAVE_LOCALTIME_R 1 | |
38272 | _ACEOF | |
38273 | ||
38274 | fi | |
38275 | ||
38276 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
38277 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
38278 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
38279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38280 | else | |
38281 | cat >conftest.$ac_ext <<_ACEOF | |
38282 | /* confdefs.h. */ | |
38283 | _ACEOF | |
38284 | cat confdefs.h >>conftest.$ac_ext | |
38285 | cat >>conftest.$ac_ext <<_ACEOF | |
38286 | /* end confdefs.h. */ | |
38287 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
38288 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38289 | #define gmtime_r innocuous_gmtime_r | |
38290 | ||
38291 | /* System header to define __stub macros and hopefully few prototypes, | |
38292 | which can conflict with char gmtime_r (); below. | |
38293 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38294 | <limits.h> exists even on freestanding compilers. */ | |
38295 | ||
38296 | #ifdef __STDC__ | |
38297 | # include <limits.h> | |
38298 | #else | |
38299 | # include <assert.h> | |
38300 | #endif | |
38301 | ||
38302 | #undef gmtime_r | |
38303 | ||
38304 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38305 | #ifdef __cplusplus | |
38306 | extern "C" | |
38307 | { | |
38308 | #endif | |
38309 | /* We use char because int might match the return type of a gcc2 | |
38310 | builtin and then its argument prototype would still apply. */ | |
38311 | char gmtime_r (); | |
38312 | /* The GNU C library defines this for functions which it implements | |
38313 | to always fail with ENOSYS. Some functions are actually named | |
38314 | something starting with __ and the normal name is an alias. */ | |
38315 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
38316 | choke me | |
38317 | #else | |
38318 | char (*f) () = gmtime_r; | |
38319 | #endif | |
38320 | #ifdef __cplusplus | |
38321 | } | |
38322 | #endif | |
38323 | ||
38324 | int | |
38325 | main () | |
38326 | { | |
38327 | return f != gmtime_r; | |
38328 | ; | |
38329 | return 0; | |
38330 | } | |
38331 | _ACEOF | |
38332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38334 | (eval $ac_link) 2>conftest.er1 | |
38335 | ac_status=$? | |
38336 | grep -v '^ *+' conftest.er1 >conftest.err | |
38337 | rm -f conftest.er1 | |
38338 | cat conftest.err >&5 | |
38339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38340 | (exit $ac_status); } && | |
f10e38c4 | 38341 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38343 | (eval $ac_try) 2>&5 | |
38344 | ac_status=$? | |
38345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38346 | (exit $ac_status); }; } && | |
38347 | { ac_try='test -s conftest$ac_exeext' | |
38348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38349 | (eval $ac_try) 2>&5 | |
38350 | ac_status=$? | |
38351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38352 | (exit $ac_status); }; }; then | |
38353 | ac_cv_func_gmtime_r=yes | |
38354 | else | |
38355 | echo "$as_me: failed program was:" >&5 | |
38356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38357 | ||
38358 | ac_cv_func_gmtime_r=no | |
38359 | fi | |
38360 | rm -f conftest.err conftest.$ac_objext \ | |
38361 | conftest$ac_exeext conftest.$ac_ext | |
38362 | fi | |
38363 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
38364 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
38365 | if test $ac_cv_func_gmtime_r = yes; then | |
38366 | cat >>confdefs.h <<\_ACEOF | |
38367 | #define HAVE_GMTIME_R 1 | |
38368 | _ACEOF | |
38369 | ||
38370 | fi | |
38371 | ||
38372 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
38373 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
38374 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
38375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38376 | else | |
38377 | cat >conftest.$ac_ext <<_ACEOF | |
38378 | /* confdefs.h. */ | |
38379 | _ACEOF | |
38380 | cat confdefs.h >>conftest.$ac_ext | |
38381 | cat >>conftest.$ac_ext <<_ACEOF | |
38382 | /* end confdefs.h. */ | |
38383 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
38384 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38385 | #define readdir_r innocuous_readdir_r | |
38386 | ||
38387 | /* System header to define __stub macros and hopefully few prototypes, | |
38388 | which can conflict with char readdir_r (); below. | |
38389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38390 | <limits.h> exists even on freestanding compilers. */ | |
38391 | ||
38392 | #ifdef __STDC__ | |
38393 | # include <limits.h> | |
38394 | #else | |
38395 | # include <assert.h> | |
38396 | #endif | |
38397 | ||
38398 | #undef readdir_r | |
38399 | ||
38400 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38401 | #ifdef __cplusplus | |
38402 | extern "C" | |
38403 | { | |
38404 | #endif | |
38405 | /* We use char because int might match the return type of a gcc2 | |
38406 | builtin and then its argument prototype would still apply. */ | |
38407 | char readdir_r (); | |
38408 | /* The GNU C library defines this for functions which it implements | |
38409 | to always fail with ENOSYS. Some functions are actually named | |
38410 | something starting with __ and the normal name is an alias. */ | |
38411 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
38412 | choke me | |
38413 | #else | |
38414 | char (*f) () = readdir_r; | |
38415 | #endif | |
38416 | #ifdef __cplusplus | |
38417 | } | |
38418 | #endif | |
38419 | ||
38420 | int | |
38421 | main () | |
38422 | { | |
38423 | return f != readdir_r; | |
38424 | ; | |
38425 | return 0; | |
38426 | } | |
38427 | _ACEOF | |
38428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38430 | (eval $ac_link) 2>conftest.er1 | |
38431 | ac_status=$? | |
38432 | grep -v '^ *+' conftest.er1 >conftest.err | |
38433 | rm -f conftest.er1 | |
38434 | cat conftest.err >&5 | |
38435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38436 | (exit $ac_status); } && | |
f10e38c4 | 38437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38439 | (eval $ac_try) 2>&5 | |
38440 | ac_status=$? | |
38441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38442 | (exit $ac_status); }; } && | |
38443 | { ac_try='test -s conftest$ac_exeext' | |
38444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38445 | (eval $ac_try) 2>&5 | |
38446 | ac_status=$? | |
38447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38448 | (exit $ac_status); }; }; then | |
38449 | ac_cv_func_readdir_r=yes | |
38450 | else | |
38451 | echo "$as_me: failed program was:" >&5 | |
38452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38453 | ||
38454 | ac_cv_func_readdir_r=no | |
38455 | fi | |
38456 | rm -f conftest.err conftest.$ac_objext \ | |
38457 | conftest$ac_exeext conftest.$ac_ext | |
38458 | fi | |
38459 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
38460 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
38461 | if test $ac_cv_func_readdir_r = yes; then | |
38462 | cat >>confdefs.h <<\_ACEOF | |
38463 | #define HAVE_READDIR_R 1 | |
38464 | _ACEOF | |
38465 | ||
38466 | fi | |
38467 | ||
004ee6da | 38468 | |
5ec3bc43 JS |
38469 | ac_ext=cc |
38470 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38471 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38472 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38473 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
38474 | ||
004ee6da RL |
38475 | |
38476 | ||
38477 | ac_ext=c | |
38478 | ac_cpp='$CPP $CPPFLAGS' | |
38479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38482 | ||
38483 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
38484 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
38485 | ||
38486 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
38487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38488 | else | |
38489 | ||
38490 | ||
38491 | ################################################################ | |
38492 | ||
38493 | ac_cv_func_which_gethostbyname_r=unknown | |
38494 | ||
38495 | # | |
38496 | # ONE ARGUMENT (sanity check) | |
38497 | # | |
38498 | ||
38499 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
38500 | # a single argument. If it actually compiles, then we can assume that | |
38501 | # netdb.h is not declaring the function, and the compiler is thereby | |
38502 | # assuming an implicit prototype. In which case, we're out of luck. | |
38503 | # | |
38504 | cat >conftest.$ac_ext <<_ACEOF | |
38505 | /* confdefs.h. */ | |
38506 | _ACEOF | |
38507 | cat confdefs.h >>conftest.$ac_ext | |
38508 | cat >>conftest.$ac_ext <<_ACEOF | |
38509 | /* end confdefs.h. */ | |
38510 | #include <netdb.h> | |
38511 | int | |
38512 | main () | |
38513 | { | |
38514 | ||
38515 | char *name = "www.gnu.org"; | |
38516 | (void)gethostbyname_r(name) /* ; */ | |
38517 | ||
38518 | ; | |
38519 | return 0; | |
38520 | } | |
38521 | _ACEOF | |
38522 | rm -f conftest.$ac_objext | |
38523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38524 | (eval $ac_compile) 2>conftest.er1 | |
38525 | ac_status=$? | |
38526 | grep -v '^ *+' conftest.er1 >conftest.err | |
38527 | rm -f conftest.er1 | |
38528 | cat conftest.err >&5 | |
38529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38530 | (exit $ac_status); } && | |
f10e38c4 | 38531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38533 | (eval $ac_try) 2>&5 | |
38534 | ac_status=$? | |
38535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38536 | (exit $ac_status); }; } && | |
38537 | { ac_try='test -s conftest.$ac_objext' | |
38538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38539 | (eval $ac_try) 2>&5 | |
38540 | ac_status=$? | |
38541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38542 | (exit $ac_status); }; }; then | |
38543 | ac_cv_func_which_gethostbyname_r=no | |
38544 | else | |
38545 | echo "$as_me: failed program was:" >&5 | |
38546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38547 | ||
38548 | fi | |
38549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38550 | ||
38551 | # | |
38552 | # SIX ARGUMENTS | |
38553 | # (e.g. Linux) | |
38554 | # | |
38555 | ||
38556 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38557 | ||
38558 | cat >conftest.$ac_ext <<_ACEOF | |
38559 | /* confdefs.h. */ | |
38560 | _ACEOF | |
38561 | cat confdefs.h >>conftest.$ac_ext | |
38562 | cat >>conftest.$ac_ext <<_ACEOF | |
38563 | /* end confdefs.h. */ | |
38564 | #include <netdb.h> | |
38565 | int | |
38566 | main () | |
38567 | { | |
38568 | ||
38569 | char *name = "www.gnu.org"; | |
38570 | struct hostent ret, *retp; | |
38571 | char buf[1024]; | |
38572 | int buflen = 1024; | |
38573 | int my_h_errno; | |
38574 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
38575 | ||
38576 | ; | |
38577 | return 0; | |
38578 | } | |
38579 | _ACEOF | |
38580 | rm -f conftest.$ac_objext | |
38581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38582 | (eval $ac_compile) 2>conftest.er1 | |
38583 | ac_status=$? | |
38584 | grep -v '^ *+' conftest.er1 >conftest.err | |
38585 | rm -f conftest.er1 | |
38586 | cat conftest.err >&5 | |
38587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38588 | (exit $ac_status); } && | |
f10e38c4 | 38589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38591 | (eval $ac_try) 2>&5 | |
38592 | ac_status=$? | |
38593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38594 | (exit $ac_status); }; } && | |
38595 | { ac_try='test -s conftest.$ac_objext' | |
38596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38597 | (eval $ac_try) 2>&5 | |
38598 | ac_status=$? | |
38599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38600 | (exit $ac_status); }; }; then | |
38601 | ac_cv_func_which_gethostbyname_r=six | |
38602 | else | |
38603 | echo "$as_me: failed program was:" >&5 | |
38604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38605 | ||
38606 | fi | |
38607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38608 | ||
38609 | fi | |
38610 | ||
38611 | # | |
38612 | # FIVE ARGUMENTS | |
38613 | # (e.g. Solaris) | |
38614 | # | |
38615 | ||
38616 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38617 | ||
38618 | cat >conftest.$ac_ext <<_ACEOF | |
38619 | /* confdefs.h. */ | |
38620 | _ACEOF | |
38621 | cat confdefs.h >>conftest.$ac_ext | |
38622 | cat >>conftest.$ac_ext <<_ACEOF | |
38623 | /* end confdefs.h. */ | |
38624 | #include <netdb.h> | |
38625 | int | |
38626 | main () | |
38627 | { | |
38628 | ||
38629 | char *name = "www.gnu.org"; | |
38630 | struct hostent ret; | |
38631 | char buf[1024]; | |
38632 | int buflen = 1024; | |
38633 | int my_h_errno; | |
38634 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
38635 | ||
38636 | ; | |
38637 | return 0; | |
38638 | } | |
38639 | _ACEOF | |
38640 | rm -f conftest.$ac_objext | |
38641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38642 | (eval $ac_compile) 2>conftest.er1 | |
38643 | ac_status=$? | |
38644 | grep -v '^ *+' conftest.er1 >conftest.err | |
38645 | rm -f conftest.er1 | |
38646 | cat conftest.err >&5 | |
38647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38648 | (exit $ac_status); } && | |
f10e38c4 | 38649 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38651 | (eval $ac_try) 2>&5 | |
38652 | ac_status=$? | |
38653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38654 | (exit $ac_status); }; } && | |
38655 | { ac_try='test -s conftest.$ac_objext' | |
38656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38657 | (eval $ac_try) 2>&5 | |
38658 | ac_status=$? | |
38659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38660 | (exit $ac_status); }; }; then | |
38661 | ac_cv_func_which_gethostbyname_r=five | |
38662 | else | |
38663 | echo "$as_me: failed program was:" >&5 | |
38664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38665 | ||
38666 | fi | |
38667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38668 | ||
38669 | fi | |
38670 | ||
38671 | # | |
38672 | # THREE ARGUMENTS | |
38673 | # (e.g. AIX, HP-UX, Tru64) | |
38674 | # | |
38675 | ||
38676 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38677 | ||
38678 | cat >conftest.$ac_ext <<_ACEOF | |
38679 | /* confdefs.h. */ | |
38680 | _ACEOF | |
38681 | cat confdefs.h >>conftest.$ac_ext | |
38682 | cat >>conftest.$ac_ext <<_ACEOF | |
38683 | /* end confdefs.h. */ | |
38684 | #include <netdb.h> | |
38685 | int | |
38686 | main () | |
38687 | { | |
38688 | ||
38689 | char *name = "www.gnu.org"; | |
38690 | struct hostent ret; | |
38691 | struct hostent_data data; | |
38692 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
38693 | ||
38694 | ; | |
38695 | return 0; | |
38696 | } | |
38697 | _ACEOF | |
38698 | rm -f conftest.$ac_objext | |
38699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38700 | (eval $ac_compile) 2>conftest.er1 | |
38701 | ac_status=$? | |
38702 | grep -v '^ *+' conftest.er1 >conftest.err | |
38703 | rm -f conftest.er1 | |
38704 | cat conftest.err >&5 | |
38705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38706 | (exit $ac_status); } && | |
f10e38c4 | 38707 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38709 | (eval $ac_try) 2>&5 | |
38710 | ac_status=$? | |
38711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38712 | (exit $ac_status); }; } && | |
38713 | { ac_try='test -s conftest.$ac_objext' | |
38714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38715 | (eval $ac_try) 2>&5 | |
38716 | ac_status=$? | |
38717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38718 | (exit $ac_status); }; }; then | |
38719 | ac_cv_func_which_gethostbyname_r=three | |
38720 | else | |
38721 | echo "$as_me: failed program was:" >&5 | |
38722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38723 | ||
38724 | fi | |
38725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38726 | ||
38727 | fi | |
38728 | ||
38729 | ################################################################ | |
38730 | ||
38731 | ||
38732 | fi | |
38733 | ||
38734 | case "$ac_cv_func_which_gethostbyname_r" in | |
38735 | three) | |
38736 | echo "$as_me:$LINENO: result: three" >&5 | |
38737 | echo "${ECHO_T}three" >&6 | |
38738 | cat >>confdefs.h <<\_ACEOF | |
38739 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
38740 | _ACEOF | |
38741 | ||
38742 | ;; | |
38743 | ||
38744 | five) | |
38745 | echo "$as_me:$LINENO: result: five" >&5 | |
38746 | echo "${ECHO_T}five" >&6 | |
38747 | cat >>confdefs.h <<\_ACEOF | |
38748 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
38749 | _ACEOF | |
38750 | ||
38751 | ;; | |
38752 | ||
38753 | six) | |
38754 | echo "$as_me:$LINENO: result: six" >&5 | |
38755 | echo "${ECHO_T}six" >&6 | |
38756 | cat >>confdefs.h <<\_ACEOF | |
38757 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
38758 | _ACEOF | |
38759 | ||
38760 | ;; | |
38761 | ||
38762 | no) | |
38763 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
38764 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
38765 | ;; | |
38766 | ||
38767 | unknown) | |
38768 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
38769 | echo "${ECHO_T}can't tell" >&6 | |
38770 | ;; | |
38771 | ||
38772 | *) | |
38773 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
38774 | echo "$as_me: error: internal error" >&2;} | |
38775 | { (exit 1); exit 1; }; } | |
38776 | ;; | |
38777 | esac | |
38778 | ||
5ec3bc43 JS |
38779 | ac_ext=cc |
38780 | ac_cpp='$CXXCPP $CPPFLAGS' | |
38781 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38782 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38783 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
004ee6da RL |
38784 | |
38785 | ||
38786 | ||
38787 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
38788 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
38789 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
38790 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
38791 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
38792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38793 | else | |
38794 | cat >conftest.$ac_ext <<_ACEOF | |
38795 | /* confdefs.h. */ | |
38796 | _ACEOF | |
38797 | cat confdefs.h >>conftest.$ac_ext | |
38798 | cat >>conftest.$ac_ext <<_ACEOF | |
38799 | /* end confdefs.h. */ | |
38800 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
38801 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38802 | #define gethostbyname innocuous_gethostbyname | |
38803 | ||
38804 | /* System header to define __stub macros and hopefully few prototypes, | |
38805 | which can conflict with char gethostbyname (); below. | |
38806 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38807 | <limits.h> exists even on freestanding compilers. */ | |
38808 | ||
38809 | #ifdef __STDC__ | |
38810 | # include <limits.h> | |
38811 | #else | |
38812 | # include <assert.h> | |
38813 | #endif | |
38814 | ||
38815 | #undef gethostbyname | |
38816 | ||
38817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38818 | #ifdef __cplusplus | |
38819 | extern "C" | |
38820 | { | |
38821 | #endif | |
38822 | /* We use char because int might match the return type of a gcc2 | |
38823 | builtin and then its argument prototype would still apply. */ | |
38824 | char gethostbyname (); | |
38825 | /* The GNU C library defines this for functions which it implements | |
38826 | to always fail with ENOSYS. Some functions are actually named | |
38827 | something starting with __ and the normal name is an alias. */ | |
38828 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
38829 | choke me | |
38830 | #else | |
38831 | char (*f) () = gethostbyname; | |
38832 | #endif | |
38833 | #ifdef __cplusplus | |
38834 | } | |
38835 | #endif | |
38836 | ||
38837 | int | |
38838 | main () | |
38839 | { | |
38840 | return f != gethostbyname; | |
38841 | ; | |
38842 | return 0; | |
38843 | } | |
38844 | _ACEOF | |
38845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38847 | (eval $ac_link) 2>conftest.er1 | |
38848 | ac_status=$? | |
38849 | grep -v '^ *+' conftest.er1 >conftest.err | |
38850 | rm -f conftest.er1 | |
38851 | cat conftest.err >&5 | |
38852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38853 | (exit $ac_status); } && | |
f10e38c4 | 38854 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
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' | |
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_gethostbyname=yes | |
38867 | else | |
38868 | echo "$as_me: failed program was:" >&5 | |
38869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38870 | ||
38871 | ac_cv_func_gethostbyname=no | |
38872 | fi | |
38873 | rm -f conftest.err conftest.$ac_objext \ | |
38874 | conftest$ac_exeext conftest.$ac_ext | |
38875 | fi | |
38876 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
38877 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
38878 | if test $ac_cv_func_gethostbyname = yes; then | |
38879 | cat >>confdefs.h <<\_ACEOF | |
38880 | #define HAVE_GETHOSTBYNAME 1 | |
38881 | _ACEOF | |
38882 | ||
38883 | fi | |
38884 | ||
38885 | fi | |
38886 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
38887 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
004ee6da RL |
38888 | if test "${ac_cv_func_getservbyname_r+set}" = set; then |
38889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38890 | else | |
38891 | cat >conftest.$ac_ext <<_ACEOF | |
38892 | /* confdefs.h. */ | |
38893 | _ACEOF | |
38894 | cat confdefs.h >>conftest.$ac_ext | |
38895 | cat >>conftest.$ac_ext <<_ACEOF | |
38896 | /* end confdefs.h. */ | |
38897 | /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r. | |
38898 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38899 | #define getservbyname_r innocuous_getservbyname_r | |
38900 | ||
38901 | /* System header to define __stub macros and hopefully few prototypes, | |
38902 | which can conflict with char getservbyname_r (); below. | |
38903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38904 | <limits.h> exists even on freestanding compilers. */ | |
38905 | ||
38906 | #ifdef __STDC__ | |
38907 | # include <limits.h> | |
38908 | #else | |
38909 | # include <assert.h> | |
38910 | #endif | |
38911 | ||
38912 | #undef getservbyname_r | |
38913 | ||
38914 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38915 | #ifdef __cplusplus | |
38916 | extern "C" | |
38917 | { | |
38918 | #endif | |
38919 | /* We use char because int might match the return type of a gcc2 | |
38920 | builtin and then its argument prototype would still apply. */ | |
38921 | char getservbyname_r (); | |
38922 | /* The GNU C library defines this for functions which it implements | |
38923 | to always fail with ENOSYS. Some functions are actually named | |
38924 | something starting with __ and the normal name is an alias. */ | |
38925 | #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) | |
38926 | choke me | |
38927 | #else | |
38928 | char (*f) () = getservbyname_r; | |
38929 | #endif | |
38930 | #ifdef __cplusplus | |
38931 | } | |
38932 | #endif | |
38933 | ||
38934 | int | |
38935 | main () | |
38936 | { | |
38937 | return f != getservbyname_r; | |
38938 | ; | |
38939 | return 0; | |
38940 | } | |
38941 | _ACEOF | |
38942 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38944 | (eval $ac_link) 2>conftest.er1 | |
38945 | ac_status=$? | |
38946 | grep -v '^ *+' conftest.er1 >conftest.err | |
38947 | rm -f conftest.er1 | |
38948 | cat conftest.err >&5 | |
38949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38950 | (exit $ac_status); } && | |
f10e38c4 | 38951 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38953 | (eval $ac_try) 2>&5 | |
38954 | ac_status=$? | |
38955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38956 | (exit $ac_status); }; } && | |
38957 | { ac_try='test -s conftest$ac_exeext' | |
38958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38959 | (eval $ac_try) 2>&5 | |
38960 | ac_status=$? | |
38961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38962 | (exit $ac_status); }; }; then | |
38963 | ac_cv_func_getservbyname_r=yes | |
38964 | else | |
38965 | echo "$as_me: failed program was:" >&5 | |
38966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38967 | ||
38968 | ac_cv_func_getservbyname_r=no | |
38969 | fi | |
38970 | rm -f conftest.err conftest.$ac_objext \ | |
38971 | conftest$ac_exeext conftest.$ac_ext | |
38972 | fi | |
38973 | echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5 | |
38974 | echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6 | |
38975 | if test $ac_cv_func_getservbyname_r = yes; then | |
99879bbf | 38976 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
38977 | /* confdefs.h. */ |
38978 | _ACEOF | |
38979 | cat confdefs.h >>conftest.$ac_ext | |
38980 | cat >>conftest.$ac_ext <<_ACEOF | |
38981 | /* end confdefs.h. */ | |
99879bbf | 38982 | #include <netdb.h> |
004ee6da RL |
38983 | int |
38984 | main () | |
38985 | { | |
38986 | ||
99879bbf MR |
38987 | char *name; |
38988 | char *proto; | |
38989 | struct servent *se; | |
38990 | struct servent_data data; | |
38991 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
38992 | |
38993 | ; | |
38994 | return 0; | |
38995 | } | |
38996 | _ACEOF | |
38997 | rm -f conftest.$ac_objext | |
38998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38999 | (eval $ac_compile) 2>conftest.er1 | |
39000 | ac_status=$? | |
39001 | grep -v '^ *+' conftest.er1 >conftest.err | |
39002 | rm -f conftest.er1 | |
39003 | cat conftest.err >&5 | |
39004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39005 | (exit $ac_status); } && | |
f10e38c4 | 39006 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39008 | (eval $ac_try) 2>&5 | |
39009 | ac_status=$? | |
39010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39011 | (exit $ac_status); }; } && | |
39012 | { ac_try='test -s conftest.$ac_objext' | |
39013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39014 | (eval $ac_try) 2>&5 | |
39015 | ac_status=$? | |
39016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39017 | (exit $ac_status); }; }; then | |
39018 | ac_cv_func_which_getservbyname_r=four | |
39019 | else | |
39020 | echo "$as_me: failed program was:" >&5 | |
39021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39022 | ||
99879bbf | 39023 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39024 | /* confdefs.h. */ |
39025 | _ACEOF | |
39026 | cat confdefs.h >>conftest.$ac_ext | |
39027 | cat >>conftest.$ac_ext <<_ACEOF | |
39028 | /* end confdefs.h. */ | |
99879bbf | 39029 | #include <netdb.h> |
004ee6da RL |
39030 | int |
39031 | main () | |
39032 | { | |
39033 | ||
99879bbf MR |
39034 | char *name; |
39035 | char *proto; | |
39036 | struct servent *se, *res; | |
39037 | char buffer[2048]; | |
39038 | int buflen = 2048; | |
39039 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res); | |
004ee6da RL |
39040 | |
39041 | ; | |
39042 | return 0; | |
39043 | } | |
39044 | _ACEOF | |
39045 | rm -f conftest.$ac_objext | |
39046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39047 | (eval $ac_compile) 2>conftest.er1 | |
39048 | ac_status=$? | |
39049 | grep -v '^ *+' conftest.er1 >conftest.err | |
39050 | rm -f conftest.er1 | |
39051 | cat conftest.err >&5 | |
39052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39053 | (exit $ac_status); } && | |
f10e38c4 | 39054 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39056 | (eval $ac_try) 2>&5 | |
39057 | ac_status=$? | |
39058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39059 | (exit $ac_status); }; } && | |
39060 | { ac_try='test -s conftest.$ac_objext' | |
39061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39062 | (eval $ac_try) 2>&5 | |
39063 | ac_status=$? | |
39064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39065 | (exit $ac_status); }; }; then | |
39066 | ac_cv_func_which_getservbyname_r=six | |
39067 | else | |
39068 | echo "$as_me: failed program was:" >&5 | |
39069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39070 | ||
99879bbf | 39071 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39072 | /* confdefs.h. */ |
39073 | _ACEOF | |
39074 | cat confdefs.h >>conftest.$ac_ext | |
39075 | cat >>conftest.$ac_ext <<_ACEOF | |
39076 | /* end confdefs.h. */ | |
99879bbf | 39077 | #include <netdb.h> |
004ee6da RL |
39078 | int |
39079 | main () | |
39080 | { | |
39081 | ||
99879bbf MR |
39082 | char *name; |
39083 | char *proto; | |
39084 | struct servent *se; | |
39085 | char buffer[2048]; | |
39086 | int buflen = 2048; | |
39087 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
39088 | |
39089 | ; | |
39090 | return 0; | |
39091 | } | |
39092 | _ACEOF | |
39093 | rm -f conftest.$ac_objext | |
39094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39095 | (eval $ac_compile) 2>conftest.er1 | |
39096 | ac_status=$? | |
39097 | grep -v '^ *+' conftest.er1 >conftest.err | |
39098 | rm -f conftest.er1 | |
39099 | cat conftest.err >&5 | |
39100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39101 | (exit $ac_status); } && | |
f10e38c4 | 39102 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39104 | (eval $ac_try) 2>&5 | |
39105 | ac_status=$? | |
39106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39107 | (exit $ac_status); }; } && | |
39108 | { ac_try='test -s conftest.$ac_objext' | |
39109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39110 | (eval $ac_try) 2>&5 | |
39111 | ac_status=$? | |
39112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39113 | (exit $ac_status); }; }; then | |
39114 | ac_cv_func_which_getservbyname_r=five | |
39115 | else | |
39116 | echo "$as_me: failed program was:" >&5 | |
39117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39118 | ||
39119 | ac_cv_func_which_getservbyname_r=no | |
99879bbf | 39120 | |
004ee6da RL |
39121 | fi |
39122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39123 | ||
004ee6da RL |
39124 | fi |
39125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39126 | ||
004ee6da RL |
39127 | fi |
39128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
39129 | else |
39130 | ac_cv_func_which_getservbyname_r=no | |
39131 | fi | |
39132 | ||
004ee6da RL |
39133 | |
39134 | if test $ac_cv_func_which_getservbyname_r = six; then | |
39135 | cat >>confdefs.h <<\_ACEOF | |
39136 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
39137 | _ACEOF | |
39138 | ||
39139 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
39140 | cat >>confdefs.h <<\_ACEOF | |
39141 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
39142 | _ACEOF | |
39143 | ||
39144 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
39145 | cat >>confdefs.h <<\_ACEOF | |
39146 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
39147 | _ACEOF | |
39148 | ||
004ee6da RL |
39149 | fi |
39150 | ||
39151 | ||
39152 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
39153 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
39154 | ||
39155 | for ac_func in getservbyname | |
39156 | do | |
39157 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39158 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39159 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39160 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39162 | else | |
39163 | cat >conftest.$ac_ext <<_ACEOF | |
39164 | /* confdefs.h. */ | |
39165 | _ACEOF | |
39166 | cat confdefs.h >>conftest.$ac_ext | |
39167 | cat >>conftest.$ac_ext <<_ACEOF | |
39168 | /* end confdefs.h. */ | |
39169 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39170 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39171 | #define $ac_func innocuous_$ac_func | |
39172 | ||
39173 | /* System header to define __stub macros and hopefully few prototypes, | |
39174 | which can conflict with char $ac_func (); below. | |
39175 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39176 | <limits.h> exists even on freestanding compilers. */ | |
39177 | ||
39178 | #ifdef __STDC__ | |
39179 | # include <limits.h> | |
39180 | #else | |
39181 | # include <assert.h> | |
39182 | #endif | |
39183 | ||
39184 | #undef $ac_func | |
39185 | ||
39186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39187 | #ifdef __cplusplus | |
39188 | extern "C" | |
39189 | { | |
39190 | #endif | |
39191 | /* We use char because int might match the return type of a gcc2 | |
39192 | builtin and then its argument prototype would still apply. */ | |
39193 | char $ac_func (); | |
39194 | /* The GNU C library defines this for functions which it implements | |
39195 | to always fail with ENOSYS. Some functions are actually named | |
39196 | something starting with __ and the normal name is an alias. */ | |
39197 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39198 | choke me | |
39199 | #else | |
39200 | char (*f) () = $ac_func; | |
39201 | #endif | |
39202 | #ifdef __cplusplus | |
39203 | } | |
39204 | #endif | |
39205 | ||
39206 | int | |
39207 | main () | |
39208 | { | |
39209 | return f != $ac_func; | |
39210 | ; | |
39211 | return 0; | |
39212 | } | |
39213 | _ACEOF | |
39214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39216 | (eval $ac_link) 2>conftest.er1 | |
39217 | ac_status=$? | |
39218 | grep -v '^ *+' conftest.er1 >conftest.err | |
39219 | rm -f conftest.er1 | |
39220 | cat conftest.err >&5 | |
39221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39222 | (exit $ac_status); } && | |
f10e38c4 | 39223 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39225 | (eval $ac_try) 2>&5 | |
39226 | ac_status=$? | |
39227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39228 | (exit $ac_status); }; } && | |
39229 | { ac_try='test -s conftest$ac_exeext' | |
39230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39231 | (eval $ac_try) 2>&5 | |
39232 | ac_status=$? | |
39233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39234 | (exit $ac_status); }; }; then | |
39235 | eval "$as_ac_var=yes" | |
39236 | else | |
39237 | echo "$as_me: failed program was:" >&5 | |
39238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39239 | ||
39240 | eval "$as_ac_var=no" | |
39241 | fi | |
39242 | rm -f conftest.err conftest.$ac_objext \ | |
39243 | conftest$ac_exeext conftest.$ac_ext | |
39244 | fi | |
39245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39246 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39247 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39248 | cat >>confdefs.h <<_ACEOF | |
39249 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39250 | _ACEOF | |
39251 | cat >>confdefs.h <<\_ACEOF | |
39252 | #define HAVE_GETSERVBYNAME 1 | |
39253 | _ACEOF | |
39254 | ||
39255 | fi | |
39256 | done | |
39257 | ||
39258 | fi | |
5ec3bc43 JS |
39259 | ac_ext=c |
39260 | ac_cpp='$CPP $CPPFLAGS' | |
39261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39264 | ||
004ee6da | 39265 | |
004ee6da RL |
39266 | if test "$wxUSE_THREADS" = "yes"; then |
39267 | cat >>confdefs.h <<\_ACEOF | |
39268 | #define wxUSE_THREADS 1 | |
39269 | _ACEOF | |
39270 | ||
39271 | ||
39272 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
39273 | else | |
39274 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
39275 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
39276 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
39277 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
39278 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
39279 | echo "$as_me:$LINENO: result: yes" >&5 | |
39280 | echo "${ECHO_T}yes" >&6 | |
39281 | else | |
39282 | echo "$as_me:$LINENO: result: no" >&5 | |
39283 | echo "${ECHO_T}no" >&6 | |
39284 | fi | |
39285 | fi | |
39286 | fi | |
39287 | ||
39288 | if test "$WXGTK20" = 1 ; then | |
39289 | cat >>confdefs.h <<_ACEOF | |
39290 | #define __WXGTK20__ $WXGTK20 | |
39291 | _ACEOF | |
39292 | ||
39293 | WXGTK12=1 | |
39294 | fi | |
39295 | ||
39296 | if test "$WXGTK12" = 1 ; then | |
39297 | cat >>confdefs.h <<_ACEOF | |
39298 | #define __WXGTK12__ $WXGTK12 | |
39299 | _ACEOF | |
39300 | ||
39301 | fi | |
39302 | ||
39303 | if test "$WXGTK127" = 1 ; then | |
39304 | cat >>confdefs.h <<_ACEOF | |
39305 | #define __WXGTK127__ $WXGTK127 | |
39306 | _ACEOF | |
39307 | ||
39308 | fi | |
39309 | ||
39310 | if test "$WXGPE" = 1 ; then | |
39311 | cat >>confdefs.h <<_ACEOF | |
39312 | #define __WXGPE__ $WXGPE | |
39313 | _ACEOF | |
39314 | ||
39315 | fi | |
39316 | ||
39317 | DEBUG_CFLAGS= | |
39318 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
39319 | DEBUG_CFLAGS="-g" | |
39320 | wxUSE_OPTIMISE=no | |
39321 | fi | |
39322 | ||
39323 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
39324 | wxUSE_DEBUG_INFO=yes | |
39325 | if test "$GCC" = yes; then | |
39326 | DEBUG_CFLAGS="-ggdb" | |
39327 | fi | |
39328 | fi | |
39329 | ||
39330 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
39331 | cat >>confdefs.h <<\_ACEOF | |
39332 | #define WXDEBUG 1 | |
39333 | _ACEOF | |
39334 | ||
39335 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
39336 | else | |
39337 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
39338 | if test "x$wxGTK_VERSION" = "x1" ; then |
39339 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
39340 | fi | |
004ee6da RL |
39341 | fi |
39342 | fi | |
39343 | ||
39344 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
39345 | cat >>confdefs.h <<\_ACEOF | |
39346 | #define wxUSE_MEMORY_TRACING 1 | |
39347 | _ACEOF | |
39348 | ||
39349 | cat >>confdefs.h <<\_ACEOF | |
39350 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
39351 | _ACEOF | |
39352 | ||
39353 | cat >>confdefs.h <<\_ACEOF | |
39354 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
39355 | _ACEOF | |
39356 | ||
39357 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
39358 | fi | |
39359 | ||
39360 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
39361 | DMALLOC_LIBS="-ldmallocthcxx" | |
39362 | fi | |
39363 | ||
39364 | PROFILE_FLAGS= | |
39365 | if test "$wxUSE_PROFILE" = "yes" ; then | |
39366 | PROFILE_FLAGS=" -pg" | |
39367 | fi | |
39368 | ||
39369 | if test "$GCC" = "yes" ; then | |
39370 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
39371 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
39372 | fi | |
39373 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
39374 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
39375 | fi | |
39376 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
39377 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
39378 | fi | |
39379 | ||
39380 | case "${host}" in | |
39381 | powerpc*-*-aix* ) | |
39382 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
39383 | ;; | |
39384 | *-hppa* ) | |
39385 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
39386 | ;; | |
39387 | esac | |
39388 | fi | |
39389 | ||
39390 | OPTIMISE_CFLAGS= | |
39391 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
39392 | if test "$GCC" = yes ; then | |
39393 | OPTIMISE_CFLAGS="-O0" | |
39394 | fi | |
39395 | else | |
39396 | if test "$GCC" = yes ; then | |
39397 | OPTIMISE_CFLAGS="-O2" | |
39398 | else | |
39399 | OPTIMISE_CFLAGS="-O" | |
39400 | fi | |
39401 | fi | |
39402 | ||
39403 | ||
39404 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
39405 | cat >>confdefs.h <<\_ACEOF | |
39406 | #define WXWIN_COMPATIBILITY_2_4 1 | |
39407 | _ACEOF | |
39408 | ||
39409 | ||
39410 | WXWIN_COMPATIBILITY_2_6="yes" | |
39411 | fi | |
39412 | ||
39413 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
39414 | cat >>confdefs.h <<\_ACEOF | |
39415 | #define WXWIN_COMPATIBILITY_2_6 1 | |
39416 | _ACEOF | |
39417 | ||
39418 | fi | |
39419 | ||
39420 | ||
39421 | if test "$wxUSE_GUI" = "yes"; then | |
39422 | cat >>confdefs.h <<\_ACEOF | |
39423 | #define wxUSE_GUI 1 | |
39424 | _ACEOF | |
39425 | ||
39426 | ||
39427 | fi | |
39428 | ||
39429 | ||
39430 | if test "$wxUSE_UNIX" = "yes"; then | |
39431 | cat >>confdefs.h <<\_ACEOF | |
39432 | #define wxUSE_UNIX 1 | |
39433 | _ACEOF | |
39434 | ||
39435 | fi | |
39436 | ||
39437 | ||
39438 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
39439 | ||
39440 | HAVE_DL_FUNCS=0 | |
39441 | HAVE_SHL_FUNCS=0 | |
39442 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
39443 | if test "$USE_DARWIN" = 1; then | |
39444 | HAVE_DL_FUNCS=1 | |
39445 | elif test "$USE_DOS" = 1; then | |
39446 | HAVE_DL_FUNCS=0 | |
39447 | else | |
39448 | ||
39449 | for ac_func in dlopen | |
39450 | do | |
39451 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39452 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39453 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39454 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39456 | else | |
39457 | cat >conftest.$ac_ext <<_ACEOF | |
39458 | /* confdefs.h. */ | |
39459 | _ACEOF | |
39460 | cat confdefs.h >>conftest.$ac_ext | |
39461 | cat >>conftest.$ac_ext <<_ACEOF | |
39462 | /* end confdefs.h. */ | |
39463 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39464 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39465 | #define $ac_func innocuous_$ac_func | |
39466 | ||
39467 | /* System header to define __stub macros and hopefully few prototypes, | |
39468 | which can conflict with char $ac_func (); below. | |
39469 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39470 | <limits.h> exists even on freestanding compilers. */ | |
39471 | ||
39472 | #ifdef __STDC__ | |
39473 | # include <limits.h> | |
39474 | #else | |
39475 | # include <assert.h> | |
39476 | #endif | |
39477 | ||
39478 | #undef $ac_func | |
39479 | ||
39480 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39481 | #ifdef __cplusplus | |
39482 | extern "C" | |
39483 | { | |
39484 | #endif | |
39485 | /* We use char because int might match the return type of a gcc2 | |
39486 | builtin and then its argument prototype would still apply. */ | |
39487 | char $ac_func (); | |
39488 | /* The GNU C library defines this for functions which it implements | |
39489 | to always fail with ENOSYS. Some functions are actually named | |
39490 | something starting with __ and the normal name is an alias. */ | |
39491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39492 | choke me | |
39493 | #else | |
39494 | char (*f) () = $ac_func; | |
39495 | #endif | |
39496 | #ifdef __cplusplus | |
39497 | } | |
39498 | #endif | |
39499 | ||
39500 | int | |
39501 | main () | |
39502 | { | |
39503 | return f != $ac_func; | |
a848cd7e SC |
39504 | ; |
39505 | return 0; | |
39506 | } | |
39507 | _ACEOF | |
39508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39510 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39511 | ac_status=$? |
ac1cb8d3 VS |
39512 | grep -v '^ *+' conftest.er1 >conftest.err |
39513 | rm -f conftest.er1 | |
39514 | cat conftest.err >&5 | |
a848cd7e SC |
39515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39516 | (exit $ac_status); } && | |
f10e38c4 | 39517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39519 | (eval $ac_try) 2>&5 | |
39520 | ac_status=$? | |
39521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39522 | (exit $ac_status); }; } && | |
39523 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39525 | (eval $ac_try) 2>&5 | |
39526 | ac_status=$? | |
39527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39528 | (exit $ac_status); }; }; then | |
39529 | eval "$as_ac_var=yes" | |
39530 | else | |
39531 | echo "$as_me: failed program was:" >&5 | |
39532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39533 | ||
39534 | eval "$as_ac_var=no" | |
39535 | fi | |
ac1cb8d3 VS |
39536 | rm -f conftest.err conftest.$ac_objext \ |
39537 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39538 | fi |
39539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39540 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39541 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39542 | cat >>confdefs.h <<_ACEOF | |
39543 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39544 | _ACEOF | |
39545 | ||
39546 | cat >>confdefs.h <<\_ACEOF | |
39547 | #define HAVE_DLOPEN 1 | |
39548 | _ACEOF | |
39549 | ||
39550 | HAVE_DL_FUNCS=1 | |
39551 | ||
39552 | else | |
39553 | ||
39554 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
39555 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
39556 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
39557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39558 | else | |
39559 | ac_check_lib_save_LIBS=$LIBS | |
39560 | LIBS="-ldl $LIBS" | |
39561 | cat >conftest.$ac_ext <<_ACEOF | |
39562 | /* confdefs.h. */ | |
39563 | _ACEOF | |
39564 | cat confdefs.h >>conftest.$ac_ext | |
39565 | cat >>conftest.$ac_ext <<_ACEOF | |
39566 | /* end confdefs.h. */ | |
39567 | ||
39568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39569 | #ifdef __cplusplus | |
39570 | extern "C" | |
39571 | #endif | |
39572 | /* We use char because int might match the return type of a gcc2 | |
39573 | builtin and then its argument prototype would still apply. */ | |
39574 | char dlopen (); | |
39575 | int | |
39576 | main () | |
39577 | { | |
39578 | dlopen (); | |
39579 | ; | |
39580 | return 0; | |
39581 | } | |
39582 | _ACEOF | |
39583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39585 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39586 | ac_status=$? |
ac1cb8d3 VS |
39587 | grep -v '^ *+' conftest.er1 >conftest.err |
39588 | rm -f conftest.er1 | |
39589 | cat conftest.err >&5 | |
a848cd7e SC |
39590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39591 | (exit $ac_status); } && | |
f10e38c4 | 39592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39594 | (eval $ac_try) 2>&5 | |
39595 | ac_status=$? | |
39596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39597 | (exit $ac_status); }; } && | |
39598 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39600 | (eval $ac_try) 2>&5 | |
39601 | ac_status=$? | |
39602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39603 | (exit $ac_status); }; }; then | |
39604 | ac_cv_lib_dl_dlopen=yes | |
39605 | else | |
39606 | echo "$as_me: failed program was:" >&5 | |
39607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39608 | ||
39609 | ac_cv_lib_dl_dlopen=no | |
39610 | fi | |
ac1cb8d3 VS |
39611 | rm -f conftest.err conftest.$ac_objext \ |
39612 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39613 | LIBS=$ac_check_lib_save_LIBS |
39614 | fi | |
39615 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
39616 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
39617 | if test $ac_cv_lib_dl_dlopen = yes; then | |
39618 | ||
39619 | cat >>confdefs.h <<\_ACEOF | |
39620 | #define HAVE_DLOPEN 1 | |
39621 | _ACEOF | |
39622 | ||
39623 | HAVE_DL_FUNCS=1 | |
39624 | DL_LINK=" -ldl$DL_LINK" | |
39625 | ||
39626 | else | |
39627 | ||
39628 | ||
39629 | for ac_func in shl_load | |
39630 | do | |
39631 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39632 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39633 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39634 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39636 | else | |
39637 | cat >conftest.$ac_ext <<_ACEOF | |
39638 | /* confdefs.h. */ | |
39639 | _ACEOF | |
39640 | cat confdefs.h >>conftest.$ac_ext | |
39641 | cat >>conftest.$ac_ext <<_ACEOF | |
39642 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39643 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39644 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39645 | #define $ac_func innocuous_$ac_func | |
39646 | ||
a848cd7e SC |
39647 | /* System header to define __stub macros and hopefully few prototypes, |
39648 | which can conflict with char $ac_func (); below. | |
39649 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39650 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39651 | |
a848cd7e SC |
39652 | #ifdef __STDC__ |
39653 | # include <limits.h> | |
39654 | #else | |
39655 | # include <assert.h> | |
39656 | #endif | |
ac1cb8d3 VS |
39657 | |
39658 | #undef $ac_func | |
39659 | ||
a848cd7e SC |
39660 | /* Override any gcc2 internal prototype to avoid an error. */ |
39661 | #ifdef __cplusplus | |
39662 | extern "C" | |
39663 | { | |
39664 | #endif | |
39665 | /* We use char because int might match the return type of a gcc2 | |
39666 | builtin and then its argument prototype would still apply. */ | |
39667 | char $ac_func (); | |
39668 | /* The GNU C library defines this for functions which it implements | |
39669 | to always fail with ENOSYS. Some functions are actually named | |
39670 | something starting with __ and the normal name is an alias. */ | |
39671 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39672 | choke me | |
39673 | #else | |
39674 | char (*f) () = $ac_func; | |
39675 | #endif | |
39676 | #ifdef __cplusplus | |
39677 | } | |
39678 | #endif | |
39679 | ||
39680 | int | |
39681 | main () | |
39682 | { | |
39683 | return f != $ac_func; | |
39684 | ; | |
39685 | return 0; | |
39686 | } | |
39687 | _ACEOF | |
39688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39690 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39691 | ac_status=$? |
ac1cb8d3 VS |
39692 | grep -v '^ *+' conftest.er1 >conftest.err |
39693 | rm -f conftest.er1 | |
39694 | cat conftest.err >&5 | |
a848cd7e SC |
39695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39696 | (exit $ac_status); } && | |
f10e38c4 | 39697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39699 | (eval $ac_try) 2>&5 | |
39700 | ac_status=$? | |
39701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39702 | (exit $ac_status); }; } && | |
39703 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39705 | (eval $ac_try) 2>&5 | |
39706 | ac_status=$? | |
39707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39708 | (exit $ac_status); }; }; then | |
39709 | eval "$as_ac_var=yes" | |
39710 | else | |
39711 | echo "$as_me: failed program was:" >&5 | |
39712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39713 | ||
39714 | eval "$as_ac_var=no" | |
39715 | fi | |
ac1cb8d3 VS |
39716 | rm -f conftest.err conftest.$ac_objext \ |
39717 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39718 | fi |
39719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39720 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39721 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39722 | cat >>confdefs.h <<_ACEOF | |
39723 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39724 | _ACEOF | |
39725 | ||
39726 | cat >>confdefs.h <<\_ACEOF | |
39727 | #define HAVE_SHL_LOAD 1 | |
39728 | _ACEOF | |
39729 | ||
39730 | HAVE_SHL_FUNCS=1 | |
39731 | ||
39732 | else | |
39733 | ||
39734 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
39735 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
39736 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
39737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39738 | else | |
39739 | ac_check_lib_save_LIBS=$LIBS | |
39740 | LIBS="-lshl_load $LIBS" | |
39741 | cat >conftest.$ac_ext <<_ACEOF | |
39742 | /* confdefs.h. */ | |
39743 | _ACEOF | |
39744 | cat confdefs.h >>conftest.$ac_ext | |
39745 | cat >>conftest.$ac_ext <<_ACEOF | |
39746 | /* end confdefs.h. */ | |
39747 | ||
39748 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39749 | #ifdef __cplusplus | |
39750 | extern "C" | |
39751 | #endif | |
39752 | /* We use char because int might match the return type of a gcc2 | |
39753 | builtin and then its argument prototype would still apply. */ | |
39754 | char dld (); | |
39755 | int | |
39756 | main () | |
39757 | { | |
39758 | dld (); | |
39759 | ; | |
39760 | return 0; | |
39761 | } | |
39762 | _ACEOF | |
39763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39765 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39766 | ac_status=$? |
ac1cb8d3 VS |
39767 | grep -v '^ *+' conftest.er1 >conftest.err |
39768 | rm -f conftest.er1 | |
39769 | cat conftest.err >&5 | |
a848cd7e SC |
39770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39771 | (exit $ac_status); } && | |
f10e38c4 | 39772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39774 | (eval $ac_try) 2>&5 | |
39775 | ac_status=$? | |
39776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39777 | (exit $ac_status); }; } && | |
39778 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39780 | (eval $ac_try) 2>&5 | |
39781 | ac_status=$? | |
39782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39783 | (exit $ac_status); }; }; then | |
39784 | ac_cv_lib_shl_load_dld=yes | |
39785 | else | |
39786 | echo "$as_me: failed program was:" >&5 | |
39787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39788 | ||
39789 | ac_cv_lib_shl_load_dld=no | |
39790 | fi | |
ac1cb8d3 VS |
39791 | rm -f conftest.err conftest.$ac_objext \ |
39792 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39793 | LIBS=$ac_check_lib_save_LIBS |
39794 | fi | |
39795 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
39796 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
39797 | if test $ac_cv_lib_shl_load_dld = yes; then | |
39798 | ||
39799 | HAVE_SHL_FUNCS=1 | |
39800 | DL_LINK=" -ldld$DL_LINK" | |
39801 | ||
39802 | fi | |
39803 | ||
39804 | ||
39805 | fi | |
39806 | done | |
39807 | ||
39808 | ||
39809 | fi | |
39810 | ||
39811 | ||
39812 | fi | |
39813 | done | |
39814 | ||
39815 | ||
39816 | if test "$HAVE_DL_FUNCS" = 1; then | |
39817 | ||
39818 | for ac_func in dlerror | |
39819 | do | |
39820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39821 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39823 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39825 | else | |
39826 | cat >conftest.$ac_ext <<_ACEOF | |
39827 | /* confdefs.h. */ | |
39828 | _ACEOF | |
39829 | cat confdefs.h >>conftest.$ac_ext | |
39830 | cat >>conftest.$ac_ext <<_ACEOF | |
39831 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39834 | #define $ac_func innocuous_$ac_func | |
39835 | ||
a848cd7e SC |
39836 | /* System header to define __stub macros and hopefully few prototypes, |
39837 | which can conflict with char $ac_func (); below. | |
39838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39839 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39840 | |
a848cd7e SC |
39841 | #ifdef __STDC__ |
39842 | # include <limits.h> | |
39843 | #else | |
39844 | # include <assert.h> | |
39845 | #endif | |
ac1cb8d3 VS |
39846 | |
39847 | #undef $ac_func | |
39848 | ||
a848cd7e SC |
39849 | /* Override any gcc2 internal prototype to avoid an error. */ |
39850 | #ifdef __cplusplus | |
39851 | extern "C" | |
39852 | { | |
39853 | #endif | |
39854 | /* We use char because int might match the return type of a gcc2 | |
39855 | builtin and then its argument prototype would still apply. */ | |
39856 | char $ac_func (); | |
39857 | /* The GNU C library defines this for functions which it implements | |
39858 | to always fail with ENOSYS. Some functions are actually named | |
39859 | something starting with __ and the normal name is an alias. */ | |
39860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39861 | choke me | |
39862 | #else | |
39863 | char (*f) () = $ac_func; | |
39864 | #endif | |
39865 | #ifdef __cplusplus | |
39866 | } | |
39867 | #endif | |
39868 | ||
39869 | int | |
39870 | main () | |
39871 | { | |
39872 | return f != $ac_func; | |
39873 | ; | |
39874 | return 0; | |
39875 | } | |
39876 | _ACEOF | |
39877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39879 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39880 | ac_status=$? |
ac1cb8d3 VS |
39881 | grep -v '^ *+' conftest.er1 >conftest.err |
39882 | rm -f conftest.er1 | |
39883 | cat conftest.err >&5 | |
a848cd7e SC |
39884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39885 | (exit $ac_status); } && | |
f10e38c4 | 39886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39888 | (eval $ac_try) 2>&5 | |
39889 | ac_status=$? | |
39890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39891 | (exit $ac_status); }; } && | |
39892 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39894 | (eval $ac_try) 2>&5 | |
39895 | ac_status=$? | |
39896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39897 | (exit $ac_status); }; }; then | |
39898 | eval "$as_ac_var=yes" | |
39899 | else | |
39900 | echo "$as_me: failed program was:" >&5 | |
39901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39902 | ||
39903 | eval "$as_ac_var=no" | |
39904 | fi | |
ac1cb8d3 VS |
39905 | rm -f conftest.err conftest.$ac_objext \ |
39906 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39907 | fi |
39908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39909 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39910 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39911 | cat >>confdefs.h <<_ACEOF | |
39912 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39913 | _ACEOF | |
39914 | cat >>confdefs.h <<\_ACEOF | |
39915 | #define HAVE_DLERROR 1 | |
39916 | _ACEOF | |
39917 | ||
39918 | else | |
39919 | ||
39920 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
39921 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
39922 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
39923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39924 | else | |
39925 | ac_check_lib_save_LIBS=$LIBS | |
39926 | LIBS="-ldl $LIBS" | |
39927 | cat >conftest.$ac_ext <<_ACEOF | |
39928 | /* confdefs.h. */ | |
39929 | _ACEOF | |
39930 | cat confdefs.h >>conftest.$ac_ext | |
39931 | cat >>conftest.$ac_ext <<_ACEOF | |
39932 | /* end confdefs.h. */ | |
39933 | ||
39934 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39935 | #ifdef __cplusplus | |
39936 | extern "C" | |
39937 | #endif | |
39938 | /* We use char because int might match the return type of a gcc2 | |
39939 | builtin and then its argument prototype would still apply. */ | |
39940 | char dlerror (); | |
39941 | int | |
39942 | main () | |
39943 | { | |
39944 | dlerror (); | |
39945 | ; | |
39946 | return 0; | |
39947 | } | |
39948 | _ACEOF | |
39949 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39951 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39952 | ac_status=$? |
ac1cb8d3 VS |
39953 | grep -v '^ *+' conftest.er1 >conftest.err |
39954 | rm -f conftest.er1 | |
39955 | cat conftest.err >&5 | |
a848cd7e SC |
39956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39957 | (exit $ac_status); } && | |
f10e38c4 | 39958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39960 | (eval $ac_try) 2>&5 | |
39961 | ac_status=$? | |
39962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39963 | (exit $ac_status); }; } && | |
39964 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39966 | (eval $ac_try) 2>&5 | |
39967 | ac_status=$? | |
39968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39969 | (exit $ac_status); }; }; then | |
39970 | ac_cv_lib_dl_dlerror=yes | |
39971 | else | |
39972 | echo "$as_me: failed program was:" >&5 | |
39973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39974 | ||
39975 | ac_cv_lib_dl_dlerror=no | |
39976 | fi | |
ac1cb8d3 VS |
39977 | rm -f conftest.err conftest.$ac_objext \ |
39978 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39979 | LIBS=$ac_check_lib_save_LIBS |
39980 | fi | |
39981 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
39982 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
39983 | if test $ac_cv_lib_dl_dlerror = yes; then | |
39984 | cat >>confdefs.h <<\_ACEOF | |
39985 | #define HAVE_DLERROR 1 | |
39986 | _ACEOF | |
39987 | ||
39988 | fi | |
39989 | ||
39990 | ||
39991 | ||
39992 | fi | |
39993 | done | |
39994 | ||
39995 | fi | |
39996 | fi | |
39997 | ||
39998 | if test "$HAVE_DL_FUNCS" = 0; then | |
39999 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 40000 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
40001 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
40002 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
40003 | wxUSE_DYNAMIC_LOADER=no | |
40004 | wxUSE_DYNLIB_CLASS=no | |
40005 | else | |
40006 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
40007 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
40008 | fi | |
40009 | fi | |
40010 | fi | |
40011 | fi | |
40012 | fi | |
40013 | ||
40014 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
40015 | cat >>confdefs.h <<\_ACEOF | |
40016 | #define wxUSE_DYNAMIC_LOADER 1 | |
40017 | _ACEOF | |
40018 | ||
40019 | fi | |
40020 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40021 | cat >>confdefs.h <<\_ACEOF | |
40022 | #define wxUSE_DYNLIB_CLASS 1 | |
40023 | _ACEOF | |
40024 | ||
40025 | fi | |
40026 | ||
40027 | ||
40028 | ||
40029 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40030 | if test "$wxUSE_SHARED" = "no" ; then | |
40031 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
40032 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
40033 | wxUSE_PLUGINS=no | |
40034 | fi | |
40035 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
40036 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
40037 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
40038 | wxUSE_PLUGINS=no | |
40039 | fi | |
40040 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
40041 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
40042 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
40043 | wxUSE_PLUGINS=no | |
40044 | fi | |
40045 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40046 | cat >>confdefs.h <<\_ACEOF | |
40047 | #define wxUSE_PLUGINS 1 | |
40048 | _ACEOF | |
40049 | ||
40050 | fi | |
40051 | fi | |
40052 | ||
40053 | ||
40054 | if test "$wxUSE_STL" = "yes"; then | |
40055 | cat >>confdefs.h <<\_ACEOF | |
40056 | #define wxUSE_STL 1 | |
40057 | _ACEOF | |
40058 | ||
40059 | fi | |
40060 | ||
40061 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
40062 | cat >>confdefs.h <<\_ACEOF | |
40063 | #define wxUSE_APPLE_IEEE 1 | |
40064 | _ACEOF | |
40065 | ||
40066 | fi | |
40067 | ||
40068 | if test "$wxUSE_TIMER" = "yes"; then | |
40069 | cat >>confdefs.h <<\_ACEOF | |
40070 | #define wxUSE_TIMER 1 | |
40071 | _ACEOF | |
40072 | ||
40073 | fi | |
40074 | ||
9c112555 | 40075 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
40076 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
40077 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
40078 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 40079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 40080 | else |
d12aef51 VZ |
40081 | |
40082 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40083 | /* confdefs.h. */ |
40084 | _ACEOF | |
40085 | cat confdefs.h >>conftest.$ac_ext | |
40086 | cat >>conftest.$ac_ext <<_ACEOF | |
40087 | /* end confdefs.h. */ | |
d12aef51 VZ |
40088 | |
40089 | #include <sys/soundcard.h> | |
40090 | ||
40091 | int | |
40092 | main () | |
40093 | { | |
40094 | ||
40095 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40096 | ||
40097 | ; | |
40098 | return 0; | |
40099 | } | |
a848cd7e | 40100 | _ACEOF |
d12aef51 VZ |
40101 | rm -f conftest.$ac_objext conftest$ac_exeext |
40102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40103 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 40104 | ac_status=$? |
ac1cb8d3 VS |
40105 | grep -v '^ *+' conftest.er1 >conftest.err |
40106 | rm -f conftest.er1 | |
40107 | cat conftest.err >&5 | |
a848cd7e SC |
40108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40109 | (exit $ac_status); } && | |
f10e38c4 | 40110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
d12aef51 | 40116 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
40117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40118 | (eval $ac_try) 2>&5 | |
40119 | ac_status=$? | |
40120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40121 | (exit $ac_status); }; }; then | |
d12aef51 | 40122 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
40123 | else |
40124 | echo "$as_me: failed program was:" >&5 | |
40125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40126 | ||
a848cd7e | 40127 | |
d12aef51 VZ |
40128 | saveLibs="$LIBS" |
40129 | LIBS="$saveLibs -lossaudio" | |
40130 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40131 | /* confdefs.h. */ |
40132 | _ACEOF | |
40133 | cat confdefs.h >>conftest.$ac_ext | |
40134 | cat >>conftest.$ac_ext <<_ACEOF | |
40135 | /* end confdefs.h. */ | |
d12aef51 VZ |
40136 | |
40137 | #include <sys/soundcard.h> | |
40138 | ||
40139 | int | |
40140 | main () | |
40141 | { | |
40142 | ||
40143 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40144 | ||
40145 | ; | |
40146 | return 0; | |
40147 | } | |
a848cd7e | 40148 | _ACEOF |
d12aef51 VZ |
40149 | rm -f conftest.$ac_objext conftest$ac_exeext |
40150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40151 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
40152 | ac_status=$? |
40153 | grep -v '^ *+' conftest.er1 >conftest.err | |
40154 | rm -f conftest.er1 | |
40155 | cat conftest.err >&5 | |
40156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 40157 | (exit $ac_status); } && |
f10e38c4 | 40158 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
40159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40160 | (eval $ac_try) 2>&5 | |
40161 | ac_status=$? | |
40162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40163 | (exit $ac_status); }; } && | |
40164 | { ac_try='test -s conftest$ac_exeext' | |
40165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40166 | (eval $ac_try) 2>&5 | |
40167 | ac_status=$? | |
40168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40169 | (exit $ac_status); }; }; then | |
40170 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
40171 | else |
40172 | echo "$as_me: failed program was:" >&5 | |
40173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40174 | ||
a848cd7e | 40175 | |
d12aef51 VZ |
40176 | LIBS="$saveLibs" |
40177 | ac_cv_header_sys_soundcard=no | |
40178 | ||
40179 | ||
a848cd7e | 40180 | fi |
d12aef51 VZ |
40181 | rm -f conftest.err conftest.$ac_objext \ |
40182 | conftest$ac_exeext conftest.$ac_ext | |
40183 | ||
a848cd7e SC |
40184 | |
40185 | fi | |
d12aef51 VZ |
40186 | rm -f conftest.err conftest.$ac_objext \ |
40187 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40188 | |
40189 | fi | |
d12aef51 VZ |
40190 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
40191 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 40192 | |
d12aef51 VZ |
40193 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
40194 | cat >>confdefs.h <<\_ACEOF | |
40195 | #define HAVE_SYS_SOUNDCARD_H 1 | |
40196 | _ACEOF | |
a848cd7e | 40197 | |
d12aef51 VZ |
40198 | else |
40199 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
40200 | fi | |
9c112555 MW |
40201 | fi |
40202 | WITH_PLUGIN_SDL=0 | |
40203 | if test "$wxUSE_SOUND" = "yes"; then | |
40204 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
40205 | if test "$wxUSE_LIBSDL" != "no"; then |
40206 | ||
40207 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
40208 | if test "${with_sdl_prefix+set}" = set; then | |
40209 | withval="$with_sdl_prefix" | |
40210 | sdl_prefix="$withval" | |
40211 | else | |
40212 | sdl_prefix="" | |
40213 | fi; | |
40214 | ||
40215 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
40216 | if test "${with_sdl_exec_prefix+set}" = set; then | |
40217 | withval="$with_sdl_exec_prefix" | |
40218 | sdl_exec_prefix="$withval" | |
40219 | else | |
40220 | sdl_exec_prefix="" | |
40221 | fi; | |
40222 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
40223 | if test "${enable_sdltest+set}" = set; then | |
40224 | enableval="$enable_sdltest" | |
40225 | ||
40226 | else | |
40227 | enable_sdltest=yes | |
40228 | fi; | |
40229 | ||
40230 | if test x$sdl_exec_prefix != x ; then | |
40231 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
40232 | if test x${SDL_CONFIG+set} != xset ; then | |
40233 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
40234 | fi | |
40235 | fi | |
40236 | if test x$sdl_prefix != x ; then | |
40237 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
40238 | if test x${SDL_CONFIG+set} != xset ; then | |
40239 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
40240 | fi | |
40241 | fi | |
40242 | ||
40243 | ||
40244 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
40245 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
40246 | set dummy sdl-config; ac_word=$2 | |
40247 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40249 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
40250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40251 | else | |
40252 | case $SDL_CONFIG in | |
40253 | [\\/]* | ?:[\\/]*) | |
40254 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
40255 | ;; | |
40256 | *) | |
40257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40258 | for as_dir in $PATH | |
40259 | do | |
40260 | IFS=$as_save_IFS | |
40261 | test -z "$as_dir" && as_dir=. | |
40262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40264 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40266 | break 2 | |
40267 | fi | |
40268 | done | |
40269 | done | |
40270 | ||
40271 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
40272 | ;; | |
40273 | esac | |
40274 | fi | |
40275 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
40276 | ||
40277 | if test -n "$SDL_CONFIG"; then | |
40278 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
40279 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
40280 | else | |
40281 | echo "$as_me:$LINENO: result: no" >&5 | |
40282 | echo "${ECHO_T}no" >&6 | |
40283 | fi | |
40284 | ||
40285 | min_sdl_version=1.2.0 | |
40286 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
40287 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
40288 | no_sdl="" | |
40289 | if test "$SDL_CONFIG" = "no" ; then | |
40290 | no_sdl=yes | |
40291 | else | |
40292 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
40293 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
40294 | ||
40295 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
40296 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
40297 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
40298 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
40299 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
40300 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
40301 | if test "x$enable_sdltest" = "xyes" ; then | |
40302 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 40303 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
40304 | ac_save_LIBS="$LIBS" |
40305 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40306 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40307 | LIBS="$LIBS $SDL_LIBS" |
40308 | rm -f conf.sdltest | |
40309 | if test "$cross_compiling" = yes; then | |
40310 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
40311 | else | |
40312 | cat >conftest.$ac_ext <<_ACEOF | |
40313 | /* confdefs.h. */ | |
40314 | _ACEOF | |
40315 | cat confdefs.h >>conftest.$ac_ext | |
40316 | cat >>conftest.$ac_ext <<_ACEOF | |
40317 | /* end confdefs.h. */ | |
40318 | ||
40319 | #include <stdio.h> | |
40320 | #include <stdlib.h> | |
40321 | #include <string.h> | |
40322 | #include "SDL.h" | |
40323 | ||
40324 | char* | |
40325 | my_strdup (char *str) | |
40326 | { | |
40327 | char *new_str; | |
40328 | ||
40329 | if (str) | |
40330 | { | |
40331 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
40332 | strcpy (new_str, str); | |
40333 | } | |
40334 | else | |
40335 | new_str = NULL; | |
40336 | ||
40337 | return new_str; | |
40338 | } | |
40339 | ||
40340 | int main (int argc, char *argv[]) | |
40341 | { | |
40342 | int major, minor, micro; | |
40343 | char *tmp_version; | |
40344 | ||
40345 | /* This hangs on some systems (?) | |
40346 | system ("touch conf.sdltest"); | |
40347 | */ | |
40348 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
40349 | ||
40350 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
40351 | tmp_version = my_strdup("$min_sdl_version"); | |
40352 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
40353 | printf("%s, bad version string\n", "$min_sdl_version"); | |
40354 | exit(1); | |
40355 | } | |
40356 | ||
40357 | if (($sdl_major_version > major) || | |
40358 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
40359 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
40360 | { | |
40361 | return 0; | |
40362 | } | |
40363 | else | |
40364 | { | |
40365 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
40366 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
40367 | printf("*** best to upgrade to the required version.\n"); | |
40368 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
40369 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
40370 | printf("*** config.cache before re-running configure\n"); | |
40371 | return 1; | |
40372 | } | |
40373 | } | |
40374 | ||
40375 | ||
40376 | _ACEOF | |
40377 | rm -f conftest$ac_exeext | |
40378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40379 | (eval $ac_link) 2>&5 | |
40380 | ac_status=$? | |
40381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40382 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
40383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40384 | (eval $ac_try) 2>&5 | |
40385 | ac_status=$? | |
40386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40387 | (exit $ac_status); }; }; then | |
40388 | : | |
40389 | else | |
40390 | echo "$as_me: program exited with status $ac_status" >&5 | |
40391 | echo "$as_me: failed program was:" >&5 | |
40392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40393 | ||
40394 | ( exit $ac_status ) | |
40395 | no_sdl=yes | |
40396 | fi | |
ac1cb8d3 | 40397 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40398 | fi |
40399 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 40400 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40401 | LIBS="$ac_save_LIBS" |
40402 | fi | |
40403 | fi | |
40404 | if test "x$no_sdl" = x ; then | |
40405 | echo "$as_me:$LINENO: result: yes" >&5 | |
40406 | echo "${ECHO_T}yes" >&6 | |
40407 | ||
40408 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 40409 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
40410 | cat >>confdefs.h <<\_ACEOF |
40411 | #define wxUSE_LIBSDL 1 | |
40412 | _ACEOF | |
40413 | ||
40414 | ||
40415 | else | |
40416 | echo "$as_me:$LINENO: result: no" >&5 | |
40417 | echo "${ECHO_T}no" >&6 | |
40418 | if test "$SDL_CONFIG" = "no" ; then | |
40419 | echo "*** The sdl-config script installed by SDL could not be found" | |
40420 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
40421 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
40422 | echo "*** full path to sdl-config." | |
40423 | else | |
40424 | if test -f conf.sdltest ; then | |
40425 | : | |
40426 | else | |
40427 | echo "*** Could not run SDL test program, checking why..." | |
40428 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40429 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40430 | LIBS="$LIBS $SDL_LIBS" |
40431 | cat >conftest.$ac_ext <<_ACEOF | |
40432 | /* confdefs.h. */ | |
40433 | _ACEOF | |
40434 | cat confdefs.h >>conftest.$ac_ext | |
40435 | cat >>conftest.$ac_ext <<_ACEOF | |
40436 | /* end confdefs.h. */ | |
40437 | ||
40438 | #include <stdio.h> | |
40439 | #include "SDL.h" | |
40440 | ||
40441 | int main(int argc, char *argv[]) | |
40442 | { return 0; } | |
40443 | #undef main | |
40444 | #define main K_and_R_C_main | |
40445 | ||
40446 | int | |
40447 | main () | |
40448 | { | |
40449 | return 0; | |
40450 | ; | |
40451 | return 0; | |
40452 | } | |
40453 | _ACEOF | |
40454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40456 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40457 | ac_status=$? |
ac1cb8d3 VS |
40458 | grep -v '^ *+' conftest.er1 >conftest.err |
40459 | rm -f conftest.er1 | |
40460 | cat conftest.err >&5 | |
a848cd7e SC |
40461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40462 | (exit $ac_status); } && | |
f10e38c4 | 40463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40465 | (eval $ac_try) 2>&5 | |
40466 | ac_status=$? | |
40467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40468 | (exit $ac_status); }; } && | |
40469 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40471 | (eval $ac_try) 2>&5 | |
40472 | ac_status=$? | |
40473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40474 | (exit $ac_status); }; }; then | |
40475 | echo "*** The test program compiled, but did not run. This usually means" | |
40476 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
40477 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
40478 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
40479 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
40480 | echo "*** is required on your system" | |
40481 | echo "***" | |
40482 | echo "*** If you have an old version installed, it is best to remove it, although" | |
40483 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
40484 | else | |
40485 | echo "$as_me: failed program was:" >&5 | |
40486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40487 | ||
40488 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
40489 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
40490 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
40491 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
40492 | fi | |
ac1cb8d3 VS |
40493 | rm -f conftest.err conftest.$ac_objext \ |
40494 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 40495 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 40496 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40497 | LIBS="$ac_save_LIBS" |
40498 | fi | |
40499 | fi | |
40500 | SDL_CFLAGS="" | |
40501 | SDL_LIBS="" | |
40502 | wxUSE_LIBSDL="no" | |
40503 | fi | |
40504 | ||
40505 | ||
40506 | rm -f conf.sdltest | |
40507 | ||
40508 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
40509 | WITH_PLUGIN_SDL=1 | |
40510 | fi | |
40511 | fi | |
40512 | fi | |
40513 | ||
40514 | cat >>confdefs.h <<\_ACEOF | |
40515 | #define wxUSE_SOUND 1 | |
40516 | _ACEOF | |
40517 | ||
40518 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
40519 | fi | |
40520 | ||
d1c38808 VZ |
40521 | if test "$WXGTK20" = 1; then |
40522 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
40523 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
40524 | ||
40525 | ||
40526 | succeeded=no | |
40527 | ||
40528 | if test -z "$PKG_CONFIG"; then | |
40529 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40530 | set dummy pkg-config; ac_word=$2 | |
40531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40533 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40535 | else | |
40536 | case $PKG_CONFIG in | |
40537 | [\\/]* | ?:[\\/]*) | |
40538 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40539 | ;; | |
40540 | *) | |
40541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40542 | for as_dir in $PATH | |
40543 | do | |
40544 | IFS=$as_save_IFS | |
40545 | test -z "$as_dir" && as_dir=. | |
40546 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40548 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40550 | break 2 | |
40551 | fi | |
40552 | done | |
40553 | done | |
40554 | ||
40555 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40556 | ;; | |
40557 | esac | |
40558 | fi | |
40559 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40560 | ||
40561 | if test -n "$PKG_CONFIG"; then | |
40562 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40563 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40564 | else | |
40565 | echo "$as_me:$LINENO: result: no" >&5 | |
40566 | echo "${ECHO_T}no" >&6 | |
40567 | fi | |
40568 | ||
40569 | fi | |
40570 | ||
40571 | if test "$PKG_CONFIG" = "no" ; then | |
40572 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40573 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40574 | echo "*** to the full path to pkg-config." | |
40575 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40576 | else | |
40577 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40578 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
40579 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
40580 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 40581 | |
ffa762ff | 40582 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
40583 | echo "$as_me:$LINENO: result: yes" >&5 |
40584 | echo "${ECHO_T}yes" >&6 | |
40585 | succeeded=yes | |
40586 | ||
40587 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
40588 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 40589 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40590 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
40591 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
40592 | ||
40593 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
40594 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 40595 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40596 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
40597 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
40598 | else | |
40599 | LIBGNOMEPRINTUI_CFLAGS="" | |
40600 | LIBGNOMEPRINTUI_LIBS="" | |
40601 | ## If we have a custom action on failure, don't print errors, but | |
40602 | ## do set a variable so people can do so. | |
ffa762ff | 40603 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40604 | |
40605 | fi | |
40606 | ||
40607 | ||
40608 | ||
40609 | else | |
40610 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40611 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40612 | fi | |
40613 | fi | |
40614 | ||
40615 | if test $succeeded = yes; then | |
40616 | ||
c92ad099 | 40617 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
d1c38808 VZ |
40618 | cat >>confdefs.h <<\_ACEOF |
40619 | #define wxUSE_LIBGNOMEPRINT 1 | |
40620 | _ACEOF | |
40621 | ||
40622 | ||
40623 | else | |
40624 | ||
40625 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
40626 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
40627 | wxUSE_LIBGNOMEPRINT="no" | |
40628 | ||
40629 | ||
40630 | fi | |
40631 | ||
40632 | fi | |
40633 | fi | |
40634 | fi | |
40635 | ||
3565d135 RR |
40636 | if test "$WXGTK20" = 1; then |
40637 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
40638 | ||
40639 | succeeded=no | |
40640 | ||
40641 | if test -z "$PKG_CONFIG"; then | |
40642 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40643 | set dummy pkg-config; ac_word=$2 | |
40644 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40646 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40648 | else | |
40649 | case $PKG_CONFIG in | |
40650 | [\\/]* | ?:[\\/]*) | |
40651 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40652 | ;; | |
40653 | *) | |
40654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40655 | for as_dir in $PATH | |
40656 | do | |
40657 | IFS=$as_save_IFS | |
40658 | test -z "$as_dir" && as_dir=. | |
40659 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40660 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40661 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40663 | break 2 | |
40664 | fi | |
40665 | done | |
40666 | done | |
40667 | ||
40668 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40669 | ;; | |
40670 | esac | |
40671 | fi | |
40672 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40673 | ||
40674 | if test -n "$PKG_CONFIG"; then | |
40675 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40676 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40677 | else | |
40678 | echo "$as_me:$LINENO: result: no" >&5 | |
40679 | echo "${ECHO_T}no" >&6 | |
40680 | fi | |
40681 | ||
40682 | fi | |
40683 | ||
40684 | if test "$PKG_CONFIG" = "no" ; then | |
40685 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40686 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40687 | echo "*** to the full path to pkg-config." | |
40688 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40689 | else | |
40690 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40691 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
40692 | echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5 | |
40693 | echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6 | |
40694 | ||
40695 | if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then | |
40696 | echo "$as_me:$LINENO: result: yes" >&5 | |
40697 | echo "${ECHO_T}yes" >&6 | |
40698 | succeeded=yes | |
40699 | ||
40700 | echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5 | |
40701 | echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6 | |
40702 | HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"` | |
40703 | echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5 | |
40704 | echo "${ECHO_T}$HILDON_CFLAGS" >&6 | |
40705 | ||
40706 | echo "$as_me:$LINENO: checking HILDON_LIBS" >&5 | |
40707 | echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6 | |
40708 | HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"` | |
40709 | echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5 | |
40710 | echo "${ECHO_T}$HILDON_LIBS" >&6 | |
40711 | else | |
40712 | HILDON_CFLAGS="" | |
40713 | HILDON_LIBS="" | |
40714 | ## If we have a custom action on failure, don't print errors, but | |
40715 | ## do set a variable so people can do so. | |
40716 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
40717 | ||
40718 | fi | |
40719 | ||
40720 | ||
40721 | ||
40722 | else | |
40723 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40724 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40725 | fi | |
40726 | fi | |
40727 | ||
40728 | if test $succeeded = yes; then | |
40729 | ||
40730 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
40731 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
40732 | cat >>confdefs.h <<\_ACEOF | |
40733 | #define wxUSE_LIBHILDON 1 | |
40734 | _ACEOF | |
40735 | ||
40736 | ||
40737 | else | |
40738 | ||
40739 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
40740 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
40741 | wxUSE_LIBHILDON="no" | |
40742 | ||
40743 | ||
40744 | fi | |
40745 | ||
40746 | fi | |
40747 | fi | |
d1c38808 | 40748 | |
a848cd7e SC |
40749 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
40750 | cat >>confdefs.h <<\_ACEOF | |
40751 | #define wxUSE_CMDLINE_PARSER 1 | |
40752 | _ACEOF | |
40753 | ||
40754 | fi | |
40755 | ||
40756 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
40757 | cat >>confdefs.h <<\_ACEOF | |
40758 | #define wxUSE_STOPWATCH 1 | |
40759 | _ACEOF | |
40760 | ||
40761 | fi | |
40762 | ||
40763 | if test "$wxUSE_DATETIME" = "yes"; then | |
40764 | cat >>confdefs.h <<\_ACEOF | |
40765 | #define wxUSE_DATETIME 1 | |
40766 | _ACEOF | |
40767 | ||
40768 | fi | |
40769 | ||
40770 | if test "$wxUSE_FILE" = "yes"; then | |
40771 | cat >>confdefs.h <<\_ACEOF | |
40772 | #define wxUSE_FILE 1 | |
40773 | _ACEOF | |
40774 | ||
40775 | fi | |
40776 | ||
40777 | if test "$wxUSE_FFILE" = "yes"; then | |
40778 | cat >>confdefs.h <<\_ACEOF | |
40779 | #define wxUSE_FFILE 1 | |
40780 | _ACEOF | |
40781 | ||
40782 | fi | |
40783 | ||
40784 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
40785 | cat >>confdefs.h <<\_ACEOF | |
40786 | #define wxUSE_FILESYSTEM 1 | |
40787 | _ACEOF | |
40788 | ||
40789 | fi | |
40790 | ||
40791 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
40792 | cat >>confdefs.h <<\_ACEOF | |
40793 | #define wxUSE_FS_ZIP 1 | |
40794 | _ACEOF | |
40795 | ||
40796 | fi | |
40797 | ||
9e8e867f | 40798 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 40799 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 40800 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
40801 | _ACEOF |
40802 | ||
40803 | fi | |
40804 | ||
40805 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 40806 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
40807 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
40808 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
40809 | elif test "$wxUSE_ZLIB" = "no"; then | |
40810 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
40811 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
40812 | else | |
40813 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40814 | #define wxUSE_ZIPSTREAM 1 |
40815 | _ACEOF | |
40816 | ||
81f90336 | 40817 | fi |
a848cd7e SC |
40818 | fi |
40819 | ||
a848cd7e | 40820 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
40821 | if test "$USE_UNIX" != 1; then |
40822 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
40823 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
40824 | wxUSE_ON_FATAL_EXCEPTION=no | |
40825 | else | |
40826 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
40827 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
40828 | _ACEOF | |
40829 | ||
18228ab4 | 40830 | fi |
a848cd7e SC |
40831 | fi |
40832 | ||
eaff0f0d VZ |
40833 | if test "$wxUSE_STACKWALKER" = "yes"; then |
40834 | cat >>confdefs.h <<\_ACEOF | |
40835 | #define wxUSE_STACKWALKER 1 | |
40836 | _ACEOF | |
40837 | ||
40838 | fi | |
40839 | ||
36b6448c | 40840 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
40841 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
40842 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
40843 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
40844 | wxUSE_DEBUGREPORT=no |
40845 | else | |
40846 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
40847 | #define wxUSE_DEBUGREPORT 1 |
40848 | _ACEOF | |
40849 | ||
21dfc162 MW |
40850 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
40851 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
40852 | fi | |
dfe0c803 | 40853 | fi |
36b6448c VZ |
40854 | fi |
40855 | ||
a848cd7e SC |
40856 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
40857 | cat >>confdefs.h <<\_ACEOF | |
40858 | #define wxUSE_SNGLINST_CHECKER 1 | |
40859 | _ACEOF | |
40860 | ||
40861 | fi | |
40862 | ||
40863 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
40864 | cat >>confdefs.h <<\_ACEOF | |
40865 | #define wxUSE_BUSYINFO 1 | |
40866 | _ACEOF | |
40867 | ||
40868 | fi | |
40869 | ||
40870 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
40871 | cat >>confdefs.h <<\_ACEOF | |
40872 | #define wxUSE_STD_IOSTREAM 1 | |
40873 | _ACEOF | |
40874 | ||
40875 | fi | |
40876 | ||
59746b65 MW |
40877 | if test "$wxUSE_STD_STRING" = "yes"; then |
40878 | cat >>confdefs.h <<\_ACEOF | |
40879 | #define wxUSE_STD_STRING 1 | |
40880 | _ACEOF | |
40881 | ||
40882 | fi | |
40883 | ||
07158944 VZ |
40884 | if test "$wxUSE_STDPATHS" = "yes"; then |
40885 | cat >>confdefs.h <<\_ACEOF | |
40886 | #define wxUSE_STDPATHS 1 | |
40887 | _ACEOF | |
40888 | ||
40889 | fi | |
40890 | ||
a848cd7e SC |
40891 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
40892 | cat >>confdefs.h <<\_ACEOF | |
40893 | #define wxUSE_TEXTBUFFER 1 | |
40894 | _ACEOF | |
40895 | ||
40896 | fi | |
40897 | ||
40898 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
40899 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
40900 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
40901 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
40902 | else | |
40903 | cat >>confdefs.h <<\_ACEOF | |
40904 | #define wxUSE_TEXTFILE 1 | |
40905 | _ACEOF | |
40906 | ||
40907 | fi | |
40908 | fi | |
40909 | ||
40910 | if test "$wxUSE_CONFIG" = "yes" ; then | |
40911 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
40912 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
40913 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
40914 | else | |
40915 | cat >>confdefs.h <<\_ACEOF | |
40916 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
40917 | _ACEOF |
40918 | ||
40919 | cat >>confdefs.h <<\_ACEOF | |
40920 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
40921 | _ACEOF |
40922 | ||
40923 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
40924 | fi | |
40925 | fi | |
40926 | ||
40927 | if test "$wxUSE_INTL" = "yes" ; then | |
40928 | if test "$wxUSE_FILE" != "yes"; then | |
40929 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
40930 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
40931 | else | |
40932 | cat >>confdefs.h <<\_ACEOF | |
40933 | #define wxUSE_INTL 1 | |
40934 | _ACEOF | |
40935 | ||
40936 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
40937 | GUIDIST="$GUIDIST INTL_DIST" | |
40938 | fi | |
40939 | fi | |
40940 | ||
40941 | if test "$wxUSE_LOG" = "yes"; then | |
40942 | cat >>confdefs.h <<\_ACEOF | |
40943 | #define wxUSE_LOG 1 | |
40944 | _ACEOF | |
40945 | ||
40946 | ||
40947 | if test "$wxUSE_LOGGUI" = "yes"; then | |
40948 | cat >>confdefs.h <<\_ACEOF | |
40949 | #define wxUSE_LOGGUI 1 | |
40950 | _ACEOF | |
40951 | ||
40952 | fi | |
40953 | ||
40954 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
40955 | cat >>confdefs.h <<\_ACEOF | |
40956 | #define wxUSE_LOGWINDOW 1 | |
40957 | _ACEOF | |
40958 | ||
40959 | fi | |
40960 | ||
40961 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
40962 | cat >>confdefs.h <<\_ACEOF | |
40963 | #define wxUSE_LOG_DIALOG 1 | |
40964 | _ACEOF | |
40965 | ||
40966 | fi | |
0b78747f MW |
40967 | |
40968 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
40969 | fi |
40970 | ||
40971 | if test "$wxUSE_LONGLONG" = "yes"; then | |
40972 | cat >>confdefs.h <<\_ACEOF | |
40973 | #define wxUSE_LONGLONG 1 | |
40974 | _ACEOF | |
40975 | ||
40976 | fi | |
40977 | ||
40978 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
40979 | cat >>confdefs.h <<\_ACEOF | |
40980 | #define wxUSE_GEOMETRY 1 | |
40981 | _ACEOF | |
40982 | ||
40983 | fi | |
40984 | ||
a848cd7e SC |
40985 | if test "$wxUSE_STREAMS" = "yes" ; then |
40986 | cat >>confdefs.h <<\_ACEOF | |
40987 | #define wxUSE_STREAMS 1 | |
40988 | _ACEOF | |
40989 | ||
40990 | fi | |
40991 | ||
40992 | ||
40993 | if test "$wxUSE_DATETIME" = "yes"; then | |
40994 | ||
40995 | for ac_func in strptime | |
40996 | do | |
40997 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40998 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40999 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41000 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41002 | else | |
41003 | cat >conftest.$ac_ext <<_ACEOF | |
41004 | /* confdefs.h. */ | |
41005 | _ACEOF | |
41006 | cat confdefs.h >>conftest.$ac_ext | |
41007 | cat >>conftest.$ac_ext <<_ACEOF | |
41008 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41009 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41011 | #define $ac_func innocuous_$ac_func | |
41012 | ||
a848cd7e SC |
41013 | /* System header to define __stub macros and hopefully few prototypes, |
41014 | which can conflict with char $ac_func (); below. | |
41015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41016 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41017 | |
a848cd7e SC |
41018 | #ifdef __STDC__ |
41019 | # include <limits.h> | |
41020 | #else | |
41021 | # include <assert.h> | |
41022 | #endif | |
ac1cb8d3 VS |
41023 | |
41024 | #undef $ac_func | |
41025 | ||
a848cd7e SC |
41026 | /* Override any gcc2 internal prototype to avoid an error. */ |
41027 | #ifdef __cplusplus | |
41028 | extern "C" | |
41029 | { | |
41030 | #endif | |
41031 | /* We use char because int might match the return type of a gcc2 | |
41032 | builtin and then its argument prototype would still apply. */ | |
41033 | char $ac_func (); | |
41034 | /* The GNU C library defines this for functions which it implements | |
41035 | to always fail with ENOSYS. Some functions are actually named | |
41036 | something starting with __ and the normal name is an alias. */ | |
41037 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41038 | choke me | |
41039 | #else | |
41040 | char (*f) () = $ac_func; | |
41041 | #endif | |
41042 | #ifdef __cplusplus | |
41043 | } | |
41044 | #endif | |
41045 | ||
41046 | int | |
41047 | main () | |
41048 | { | |
41049 | return f != $ac_func; | |
41050 | ; | |
41051 | return 0; | |
41052 | } | |
41053 | _ACEOF | |
41054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41056 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41057 | ac_status=$? |
ac1cb8d3 VS |
41058 | grep -v '^ *+' conftest.er1 >conftest.err |
41059 | rm -f conftest.er1 | |
41060 | cat conftest.err >&5 | |
a848cd7e SC |
41061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41062 | (exit $ac_status); } && | |
f10e38c4 | 41063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41065 | (eval $ac_try) 2>&5 | |
41066 | ac_status=$? | |
41067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41068 | (exit $ac_status); }; } && | |
41069 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41071 | (eval $ac_try) 2>&5 | |
41072 | ac_status=$? | |
41073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41074 | (exit $ac_status); }; }; then | |
41075 | eval "$as_ac_var=yes" | |
41076 | else | |
41077 | echo "$as_me: failed program was:" >&5 | |
41078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41079 | ||
41080 | eval "$as_ac_var=no" | |
41081 | fi | |
ac1cb8d3 VS |
41082 | rm -f conftest.err conftest.$ac_objext \ |
41083 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41084 | fi |
41085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41086 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41087 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41088 | cat >>confdefs.h <<_ACEOF | |
41089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41090 | _ACEOF | |
41091 | ||
41092 | fi | |
41093 | done | |
41094 | ||
f536f005 VZ |
41095 | if test "$ac_cv_func_strptime" = "yes"; then |
41096 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
41097 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
41098 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
41099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41100 | else | |
41101 | ||
f536f005 VZ |
41102 | ac_ext=cc |
41103 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41104 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41105 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41106 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41107 | ||
41108 | cat >conftest.$ac_ext <<_ACEOF | |
41109 | /* confdefs.h. */ | |
41110 | _ACEOF | |
41111 | cat confdefs.h >>conftest.$ac_ext | |
41112 | cat >>conftest.$ac_ext <<_ACEOF | |
41113 | /* end confdefs.h. */ | |
41114 | ||
41115 | #include <time.h> | |
41116 | ||
41117 | int | |
41118 | main () | |
41119 | { | |
41120 | ||
41121 | struct tm t; | |
41122 | strptime("foo", "bar", &t); | |
41123 | ||
41124 | ; | |
41125 | return 0; | |
41126 | } | |
41127 | _ACEOF | |
41128 | rm -f conftest.$ac_objext | |
41129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41130 | (eval $ac_compile) 2>conftest.er1 | |
41131 | ac_status=$? | |
41132 | grep -v '^ *+' conftest.er1 >conftest.err | |
41133 | rm -f conftest.er1 | |
41134 | cat conftest.err >&5 | |
41135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41136 | (exit $ac_status); } && | |
f10e38c4 | 41137 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f536f005 VZ |
41138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41139 | (eval $ac_try) 2>&5 | |
41140 | ac_status=$? | |
41141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41142 | (exit $ac_status); }; } && | |
41143 | { ac_try='test -s conftest.$ac_objext' | |
41144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41145 | (eval $ac_try) 2>&5 | |
41146 | ac_status=$? | |
41147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41148 | (exit $ac_status); }; }; then | |
41149 | wx_cv_func_strptime_decl=yes | |
41150 | else | |
41151 | echo "$as_me: failed program was:" >&5 | |
41152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41153 | ||
41154 | wx_cv_func_strptime_decl=no | |
41155 | ||
41156 | fi | |
41157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41158 | ac_ext=c | |
41159 | ac_cpp='$CPP $CPPFLAGS' | |
41160 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41161 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41162 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41163 | ||
41164 | ||
41165 | ||
41166 | fi | |
41167 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
41168 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
41169 | fi | |
41170 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
41171 | cat >>confdefs.h <<\_ACEOF | |
41172 | #define HAVE_STRPTIME_DECL 1 | |
41173 | _ACEOF | |
41174 | ||
41175 | fi | |
a848cd7e SC |
41176 | |
41177 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
41178 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
41179 | if test "${wx_cv_var_timezone+set}" = set; then | |
41180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41181 | else | |
41182 | ||
41183 | cat >conftest.$ac_ext <<_ACEOF | |
41184 | /* confdefs.h. */ | |
41185 | _ACEOF | |
41186 | cat confdefs.h >>conftest.$ac_ext | |
41187 | cat >>conftest.$ac_ext <<_ACEOF | |
41188 | /* end confdefs.h. */ | |
41189 | ||
41190 | #include <time.h> | |
41191 | ||
41192 | int | |
41193 | main () | |
41194 | { | |
41195 | ||
41196 | int tz; | |
41197 | tz = timezone; | |
41198 | ||
41199 | ; | |
41200 | return 0; | |
41201 | } | |
41202 | _ACEOF | |
41203 | rm -f conftest.$ac_objext | |
41204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41205 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41206 | ac_status=$? |
ac1cb8d3 VS |
41207 | grep -v '^ *+' conftest.er1 >conftest.err |
41208 | rm -f conftest.er1 | |
41209 | cat conftest.err >&5 | |
a848cd7e SC |
41210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41211 | (exit $ac_status); } && | |
f10e38c4 | 41212 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41214 | (eval $ac_try) 2>&5 | |
41215 | ac_status=$? | |
41216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41217 | (exit $ac_status); }; } && | |
41218 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41220 | (eval $ac_try) 2>&5 | |
41221 | ac_status=$? | |
41222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41223 | (exit $ac_status); }; }; then | |
41224 | ||
41225 | wx_cv_var_timezone=timezone | |
41226 | ||
41227 | else | |
41228 | echo "$as_me: failed program was:" >&5 | |
41229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41230 | ||
41231 | ||
41232 | cat >conftest.$ac_ext <<_ACEOF | |
41233 | /* confdefs.h. */ | |
41234 | _ACEOF | |
41235 | cat confdefs.h >>conftest.$ac_ext | |
41236 | cat >>conftest.$ac_ext <<_ACEOF | |
41237 | /* end confdefs.h. */ | |
41238 | ||
41239 | #include <time.h> | |
41240 | ||
41241 | int | |
41242 | main () | |
41243 | { | |
41244 | ||
41245 | int tz; | |
41246 | tz = _timezone; | |
41247 | ||
41248 | ; | |
41249 | return 0; | |
41250 | } | |
41251 | _ACEOF | |
41252 | rm -f conftest.$ac_objext | |
41253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41254 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41255 | ac_status=$? |
ac1cb8d3 VS |
41256 | grep -v '^ *+' conftest.er1 >conftest.err |
41257 | rm -f conftest.er1 | |
41258 | cat conftest.err >&5 | |
a848cd7e SC |
41259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41260 | (exit $ac_status); } && | |
f10e38c4 | 41261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41263 | (eval $ac_try) 2>&5 | |
41264 | ac_status=$? | |
41265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41266 | (exit $ac_status); }; } && | |
41267 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41269 | (eval $ac_try) 2>&5 | |
41270 | ac_status=$? | |
41271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41272 | (exit $ac_status); }; }; then | |
41273 | ||
41274 | wx_cv_var_timezone=_timezone | |
41275 | ||
41276 | else | |
41277 | echo "$as_me: failed program was:" >&5 | |
41278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41279 | ||
41280 | ||
41281 | cat >conftest.$ac_ext <<_ACEOF | |
41282 | /* confdefs.h. */ | |
41283 | _ACEOF | |
41284 | cat confdefs.h >>conftest.$ac_ext | |
41285 | cat >>conftest.$ac_ext <<_ACEOF | |
41286 | /* end confdefs.h. */ | |
41287 | ||
41288 | #include <time.h> | |
41289 | ||
41290 | int | |
41291 | main () | |
41292 | { | |
41293 | ||
41294 | int tz; | |
41295 | tz = __timezone; | |
41296 | ||
41297 | ; | |
41298 | return 0; | |
41299 | } | |
41300 | _ACEOF | |
41301 | rm -f conftest.$ac_objext | |
41302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41303 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41304 | ac_status=$? |
ac1cb8d3 VS |
41305 | grep -v '^ *+' conftest.er1 >conftest.err |
41306 | rm -f conftest.er1 | |
41307 | cat conftest.err >&5 | |
a848cd7e SC |
41308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41309 | (exit $ac_status); } && | |
f10e38c4 | 41310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41312 | (eval $ac_try) 2>&5 | |
41313 | ac_status=$? | |
41314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41315 | (exit $ac_status); }; } && | |
41316 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41318 | (eval $ac_try) 2>&5 | |
41319 | ac_status=$? | |
41320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41321 | (exit $ac_status); }; }; then | |
41322 | ||
41323 | wx_cv_var_timezone=__timezone | |
41324 | ||
41325 | else | |
41326 | echo "$as_me: failed program was:" >&5 | |
41327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41328 | ||
41329 | ||
41330 | if test "$USE_DOS" = 0 ; then | |
41331 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
41332 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
41333 | fi | |
41334 | ||
41335 | ||
41336 | fi | |
ac1cb8d3 | 41337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41338 | |
41339 | ||
41340 | fi | |
ac1cb8d3 | 41341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41342 | |
41343 | ||
41344 | fi | |
ac1cb8d3 | 41345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41346 | |
41347 | ||
41348 | fi | |
41349 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
41350 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
41351 | ||
41352 | if test "x$wx_cv_var_timezone" != x ; then | |
41353 | cat >>confdefs.h <<_ACEOF | |
41354 | #define WX_TIMEZONE $wx_cv_var_timezone | |
41355 | _ACEOF | |
41356 | ||
41357 | fi | |
41358 | ||
41359 | ||
41360 | for ac_func in localtime | |
41361 | do | |
41362 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41363 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41364 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41365 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41367 | else | |
41368 | cat >conftest.$ac_ext <<_ACEOF | |
41369 | /* confdefs.h. */ | |
41370 | _ACEOF | |
41371 | cat confdefs.h >>conftest.$ac_ext | |
41372 | cat >>conftest.$ac_ext <<_ACEOF | |
41373 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41374 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41375 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41376 | #define $ac_func innocuous_$ac_func | |
41377 | ||
a848cd7e SC |
41378 | /* System header to define __stub macros and hopefully few prototypes, |
41379 | which can conflict with char $ac_func (); below. | |
41380 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41381 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41382 | |
a848cd7e SC |
41383 | #ifdef __STDC__ |
41384 | # include <limits.h> | |
41385 | #else | |
41386 | # include <assert.h> | |
41387 | #endif | |
ac1cb8d3 VS |
41388 | |
41389 | #undef $ac_func | |
41390 | ||
a848cd7e SC |
41391 | /* Override any gcc2 internal prototype to avoid an error. */ |
41392 | #ifdef __cplusplus | |
41393 | extern "C" | |
41394 | { | |
41395 | #endif | |
41396 | /* We use char because int might match the return type of a gcc2 | |
41397 | builtin and then its argument prototype would still apply. */ | |
41398 | char $ac_func (); | |
41399 | /* The GNU C library defines this for functions which it implements | |
41400 | to always fail with ENOSYS. Some functions are actually named | |
41401 | something starting with __ and the normal name is an alias. */ | |
41402 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41403 | choke me | |
41404 | #else | |
41405 | char (*f) () = $ac_func; | |
41406 | #endif | |
41407 | #ifdef __cplusplus | |
41408 | } | |
41409 | #endif | |
41410 | ||
41411 | int | |
41412 | main () | |
41413 | { | |
41414 | return f != $ac_func; | |
41415 | ; | |
41416 | return 0; | |
41417 | } | |
41418 | _ACEOF | |
41419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41421 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41422 | ac_status=$? |
ac1cb8d3 VS |
41423 | grep -v '^ *+' conftest.er1 >conftest.err |
41424 | rm -f conftest.er1 | |
41425 | cat conftest.err >&5 | |
a848cd7e SC |
41426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41427 | (exit $ac_status); } && | |
f10e38c4 | 41428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41430 | (eval $ac_try) 2>&5 | |
41431 | ac_status=$? | |
41432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41433 | (exit $ac_status); }; } && | |
41434 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41436 | (eval $ac_try) 2>&5 | |
41437 | ac_status=$? | |
41438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41439 | (exit $ac_status); }; }; then | |
41440 | eval "$as_ac_var=yes" | |
41441 | else | |
41442 | echo "$as_me: failed program was:" >&5 | |
41443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41444 | ||
41445 | eval "$as_ac_var=no" | |
41446 | fi | |
ac1cb8d3 VS |
41447 | rm -f conftest.err conftest.$ac_objext \ |
41448 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41449 | fi |
41450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41451 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41452 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41453 | cat >>confdefs.h <<_ACEOF | |
41454 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41455 | _ACEOF | |
41456 | ||
41457 | fi | |
41458 | done | |
41459 | ||
41460 | ||
41461 | if test "$ac_cv_func_localtime" = "yes"; then | |
41462 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
41463 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
41464 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
41465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41466 | else | |
41467 | ||
41468 | cat >conftest.$ac_ext <<_ACEOF | |
41469 | /* confdefs.h. */ | |
41470 | _ACEOF | |
41471 | cat confdefs.h >>conftest.$ac_ext | |
41472 | cat >>conftest.$ac_ext <<_ACEOF | |
41473 | /* end confdefs.h. */ | |
41474 | ||
41475 | #include <time.h> | |
41476 | ||
41477 | int | |
41478 | main () | |
41479 | { | |
41480 | ||
41481 | struct tm tm; | |
41482 | tm.tm_gmtoff++; | |
41483 | ||
41484 | ; | |
41485 | return 0; | |
41486 | } | |
41487 | _ACEOF | |
41488 | rm -f conftest.$ac_objext | |
41489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41490 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41491 | ac_status=$? |
ac1cb8d3 VS |
41492 | grep -v '^ *+' conftest.er1 >conftest.err |
41493 | rm -f conftest.er1 | |
41494 | cat conftest.err >&5 | |
a848cd7e SC |
41495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41496 | (exit $ac_status); } && | |
f10e38c4 | 41497 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41499 | (eval $ac_try) 2>&5 | |
41500 | ac_status=$? | |
41501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41502 | (exit $ac_status); }; } && | |
41503 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41505 | (eval $ac_try) 2>&5 | |
41506 | ac_status=$? | |
41507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41508 | (exit $ac_status); }; }; then | |
41509 | ||
41510 | wx_cv_struct_tm_has_gmtoff=yes | |
41511 | ||
41512 | else | |
41513 | echo "$as_me: failed program was:" >&5 | |
41514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41515 | ||
41516 | wx_cv_struct_tm_has_gmtoff=no | |
41517 | ||
41518 | fi | |
ac1cb8d3 | 41519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41520 | |
41521 | fi | |
41522 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
41523 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
41524 | fi | |
41525 | ||
41526 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
41527 | cat >>confdefs.h <<\_ACEOF | |
41528 | #define WX_GMTOFF_IN_TM 1 | |
41529 | _ACEOF | |
41530 | ||
41531 | fi | |
41532 | ||
41533 | ||
41534 | ||
41535 | for ac_func in gettimeofday ftime | |
41536 | do | |
41537 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41538 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41539 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41540 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41542 | else | |
41543 | cat >conftest.$ac_ext <<_ACEOF | |
41544 | /* confdefs.h. */ | |
41545 | _ACEOF | |
41546 | cat confdefs.h >>conftest.$ac_ext | |
41547 | cat >>conftest.$ac_ext <<_ACEOF | |
41548 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41549 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41551 | #define $ac_func innocuous_$ac_func | |
41552 | ||
a848cd7e SC |
41553 | /* System header to define __stub macros and hopefully few prototypes, |
41554 | which can conflict with char $ac_func (); below. | |
41555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41556 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41557 | |
a848cd7e SC |
41558 | #ifdef __STDC__ |
41559 | # include <limits.h> | |
41560 | #else | |
41561 | # include <assert.h> | |
41562 | #endif | |
ac1cb8d3 VS |
41563 | |
41564 | #undef $ac_func | |
41565 | ||
a848cd7e SC |
41566 | /* Override any gcc2 internal prototype to avoid an error. */ |
41567 | #ifdef __cplusplus | |
41568 | extern "C" | |
41569 | { | |
41570 | #endif | |
41571 | /* We use char because int might match the return type of a gcc2 | |
41572 | builtin and then its argument prototype would still apply. */ | |
41573 | char $ac_func (); | |
41574 | /* The GNU C library defines this for functions which it implements | |
41575 | to always fail with ENOSYS. Some functions are actually named | |
41576 | something starting with __ and the normal name is an alias. */ | |
41577 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41578 | choke me | |
41579 | #else | |
41580 | char (*f) () = $ac_func; | |
41581 | #endif | |
41582 | #ifdef __cplusplus | |
41583 | } | |
41584 | #endif | |
41585 | ||
41586 | int | |
41587 | main () | |
41588 | { | |
41589 | return f != $ac_func; | |
41590 | ; | |
41591 | return 0; | |
41592 | } | |
41593 | _ACEOF | |
41594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41596 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41597 | ac_status=$? |
ac1cb8d3 VS |
41598 | grep -v '^ *+' conftest.er1 >conftest.err |
41599 | rm -f conftest.er1 | |
41600 | cat conftest.err >&5 | |
a848cd7e SC |
41601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41602 | (exit $ac_status); } && | |
f10e38c4 | 41603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41605 | (eval $ac_try) 2>&5 | |
41606 | ac_status=$? | |
41607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41608 | (exit $ac_status); }; } && | |
41609 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41611 | (eval $ac_try) 2>&5 | |
41612 | ac_status=$? | |
41613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41614 | (exit $ac_status); }; }; then | |
41615 | eval "$as_ac_var=yes" | |
41616 | else | |
41617 | echo "$as_me: failed program was:" >&5 | |
41618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41619 | ||
41620 | eval "$as_ac_var=no" | |
41621 | fi | |
ac1cb8d3 VS |
41622 | rm -f conftest.err conftest.$ac_objext \ |
41623 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41624 | fi |
41625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41626 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41627 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41628 | cat >>confdefs.h <<_ACEOF | |
41629 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41630 | _ACEOF | |
41631 | break | |
41632 | fi | |
41633 | done | |
41634 | ||
41635 | ||
41636 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
41637 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
41638 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
41639 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
41640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41641 | else | |
41642 | ||
5ec3bc43 | 41643 | ac_ext=cc |
a848cd7e SC |
41644 | ac_cpp='$CXXCPP $CPPFLAGS' |
41645 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41646 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41647 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41648 | ||
41649 | ||
41650 | cat >conftest.$ac_ext <<_ACEOF | |
41651 | /* confdefs.h. */ | |
41652 | _ACEOF | |
41653 | cat confdefs.h >>conftest.$ac_ext | |
41654 | cat >>conftest.$ac_ext <<_ACEOF | |
41655 | /* end confdefs.h. */ | |
41656 | ||
41657 | #include <sys/time.h> | |
41658 | #include <unistd.h> | |
41659 | ||
41660 | int | |
41661 | main () | |
41662 | { | |
41663 | ||
41664 | struct timeval tv; | |
41665 | gettimeofday(&tv, NULL); | |
41666 | ||
41667 | ; | |
41668 | return 0; | |
41669 | } | |
41670 | _ACEOF | |
41671 | rm -f conftest.$ac_objext | |
41672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41673 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41674 | ac_status=$? |
ac1cb8d3 VS |
41675 | grep -v '^ *+' conftest.er1 >conftest.err |
41676 | rm -f conftest.er1 | |
41677 | cat conftest.err >&5 | |
a848cd7e SC |
41678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41679 | (exit $ac_status); } && | |
f10e38c4 | 41680 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41682 | (eval $ac_try) 2>&5 | |
41683 | ac_status=$? | |
41684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41685 | (exit $ac_status); }; } && | |
41686 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41688 | (eval $ac_try) 2>&5 | |
41689 | ac_status=$? | |
41690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41691 | (exit $ac_status); }; }; then | |
41692 | wx_cv_func_gettimeofday_has_2_args=yes | |
41693 | else | |
41694 | echo "$as_me: failed program was:" >&5 | |
41695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41696 | ||
41697 | cat >conftest.$ac_ext <<_ACEOF | |
41698 | /* confdefs.h. */ | |
41699 | _ACEOF | |
41700 | cat confdefs.h >>conftest.$ac_ext | |
41701 | cat >>conftest.$ac_ext <<_ACEOF | |
41702 | /* end confdefs.h. */ | |
41703 | ||
41704 | #include <sys/time.h> | |
41705 | #include <unistd.h> | |
41706 | ||
41707 | int | |
41708 | main () | |
41709 | { | |
41710 | ||
41711 | struct timeval tv; | |
41712 | gettimeofday(&tv); | |
41713 | ||
41714 | ; | |
41715 | return 0; | |
41716 | } | |
41717 | _ACEOF | |
41718 | rm -f conftest.$ac_objext | |
41719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41720 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41721 | ac_status=$? |
ac1cb8d3 VS |
41722 | grep -v '^ *+' conftest.er1 >conftest.err |
41723 | rm -f conftest.er1 | |
41724 | cat conftest.err >&5 | |
a848cd7e SC |
41725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41726 | (exit $ac_status); } && | |
f10e38c4 | 41727 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41729 | (eval $ac_try) 2>&5 | |
41730 | ac_status=$? | |
41731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41732 | (exit $ac_status); }; } && | |
41733 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41735 | (eval $ac_try) 2>&5 | |
41736 | ac_status=$? | |
41737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41738 | (exit $ac_status); }; }; then | |
41739 | wx_cv_func_gettimeofday_has_2_args=no | |
41740 | else | |
41741 | echo "$as_me: failed program was:" >&5 | |
41742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41743 | ||
41744 | ||
41745 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
41746 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
41747 | wx_cv_func_gettimeofday_has_2_args=unknown | |
41748 | ||
41749 | ||
41750 | fi | |
ac1cb8d3 | 41751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41752 | |
41753 | fi | |
ac1cb8d3 | 41754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41755 | ac_ext=c |
41756 | ac_cpp='$CPP $CPPFLAGS' | |
41757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41760 | ||
41761 | ||
41762 | fi | |
41763 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
41764 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
41765 | ||
41766 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
41767 | cat >>confdefs.h <<\_ACEOF | |
41768 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
41769 | _ACEOF | |
41770 | ||
41771 | fi | |
41772 | fi | |
41773 | ||
41774 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
41775 | fi | |
41776 | ||
41777 | ||
41778 | if test "$wxUSE_SOCKETS" = "yes"; then | |
41779 | if test "$wxUSE_MGL" = "1"; then | |
41780 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
41781 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
41782 | wxUSE_SOCKETS="no" | |
41783 | fi | |
41784 | fi | |
41785 | ||
41786 | if test "$wxUSE_SOCKETS" = "yes"; then | |
41787 | if test "$TOOLKIT" != "MSW"; then | |
41788 | echo "$as_me:$LINENO: checking for socket" >&5 | |
41789 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
41790 | if test "${ac_cv_func_socket+set}" = set; then | |
41791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41792 | else | |
41793 | cat >conftest.$ac_ext <<_ACEOF | |
41794 | /* confdefs.h. */ | |
41795 | _ACEOF | |
41796 | cat confdefs.h >>conftest.$ac_ext | |
41797 | cat >>conftest.$ac_ext <<_ACEOF | |
41798 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41799 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
41800 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41801 | #define socket innocuous_socket | |
41802 | ||
a848cd7e SC |
41803 | /* System header to define __stub macros and hopefully few prototypes, |
41804 | which can conflict with char socket (); below. | |
41805 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41806 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41807 | |
a848cd7e SC |
41808 | #ifdef __STDC__ |
41809 | # include <limits.h> | |
41810 | #else | |
41811 | # include <assert.h> | |
41812 | #endif | |
ac1cb8d3 VS |
41813 | |
41814 | #undef socket | |
41815 | ||
a848cd7e SC |
41816 | /* Override any gcc2 internal prototype to avoid an error. */ |
41817 | #ifdef __cplusplus | |
41818 | extern "C" | |
41819 | { | |
41820 | #endif | |
41821 | /* We use char because int might match the return type of a gcc2 | |
41822 | builtin and then its argument prototype would still apply. */ | |
41823 | char socket (); | |
41824 | /* The GNU C library defines this for functions which it implements | |
41825 | to always fail with ENOSYS. Some functions are actually named | |
41826 | something starting with __ and the normal name is an alias. */ | |
41827 | #if defined (__stub_socket) || defined (__stub___socket) | |
41828 | choke me | |
41829 | #else | |
41830 | char (*f) () = socket; | |
41831 | #endif | |
41832 | #ifdef __cplusplus | |
41833 | } | |
41834 | #endif | |
41835 | ||
41836 | int | |
41837 | main () | |
41838 | { | |
41839 | return f != socket; | |
41840 | ; | |
41841 | return 0; | |
41842 | } | |
41843 | _ACEOF | |
41844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41846 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41847 | ac_status=$? |
ac1cb8d3 VS |
41848 | grep -v '^ *+' conftest.er1 >conftest.err |
41849 | rm -f conftest.er1 | |
41850 | cat conftest.err >&5 | |
a848cd7e SC |
41851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41852 | (exit $ac_status); } && | |
f10e38c4 | 41853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41855 | (eval $ac_try) 2>&5 | |
41856 | ac_status=$? | |
41857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41858 | (exit $ac_status); }; } && | |
41859 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41861 | (eval $ac_try) 2>&5 | |
41862 | ac_status=$? | |
41863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41864 | (exit $ac_status); }; }; then | |
41865 | ac_cv_func_socket=yes | |
41866 | else | |
41867 | echo "$as_me: failed program was:" >&5 | |
41868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41869 | ||
41870 | ac_cv_func_socket=no | |
41871 | fi | |
ac1cb8d3 VS |
41872 | rm -f conftest.err conftest.$ac_objext \ |
41873 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41874 | fi |
41875 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
41876 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
41877 | if test $ac_cv_func_socket = yes; then | |
41878 | : | |
41879 | else | |
41880 | ||
41881 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
41882 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
41883 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
41884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41885 | else | |
41886 | ac_check_lib_save_LIBS=$LIBS | |
41887 | LIBS="-lsocket $LIBS" | |
41888 | cat >conftest.$ac_ext <<_ACEOF | |
41889 | /* confdefs.h. */ | |
41890 | _ACEOF | |
41891 | cat confdefs.h >>conftest.$ac_ext | |
41892 | cat >>conftest.$ac_ext <<_ACEOF | |
41893 | /* end confdefs.h. */ | |
41894 | ||
41895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41896 | #ifdef __cplusplus | |
41897 | extern "C" | |
41898 | #endif | |
41899 | /* We use char because int might match the return type of a gcc2 | |
41900 | builtin and then its argument prototype would still apply. */ | |
41901 | char socket (); | |
41902 | int | |
41903 | main () | |
41904 | { | |
41905 | socket (); | |
41906 | ; | |
41907 | return 0; | |
41908 | } | |
41909 | _ACEOF | |
41910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41912 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41913 | ac_status=$? |
ac1cb8d3 VS |
41914 | grep -v '^ *+' conftest.er1 >conftest.err |
41915 | rm -f conftest.er1 | |
41916 | cat conftest.err >&5 | |
a848cd7e SC |
41917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41918 | (exit $ac_status); } && | |
f10e38c4 | 41919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41921 | (eval $ac_try) 2>&5 | |
41922 | ac_status=$? | |
41923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41924 | (exit $ac_status); }; } && | |
41925 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41927 | (eval $ac_try) 2>&5 | |
41928 | ac_status=$? | |
41929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41930 | (exit $ac_status); }; }; then | |
41931 | ac_cv_lib_socket_socket=yes | |
41932 | else | |
41933 | echo "$as_me: failed program was:" >&5 | |
41934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41935 | ||
41936 | ac_cv_lib_socket_socket=no | |
41937 | fi | |
ac1cb8d3 VS |
41938 | rm -f conftest.err conftest.$ac_objext \ |
41939 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41940 | LIBS=$ac_check_lib_save_LIBS |
41941 | fi | |
41942 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
41943 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
41944 | if test $ac_cv_lib_socket_socket = yes; then | |
41945 | if test "$INET_LINK" != " -lsocket"; then | |
41946 | INET_LINK="$INET_LINK -lsocket" | |
41947 | fi | |
41948 | else | |
41949 | ||
41950 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
41951 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
41952 | wxUSE_SOCKETS=no | |
41953 | ||
41954 | ||
41955 | fi | |
41956 | ||
41957 | ||
41958 | ||
41959 | fi | |
41960 | ||
41961 | fi | |
41962 | fi | |
41963 | ||
41964 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
41965 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
41966 | ac_ext=cc |
41967 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41968 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41969 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41970 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41971 | ||
41972 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
41973 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
41974 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
41975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41976 | else | |
41977 | ||
41978 | cat >conftest.$ac_ext <<_ACEOF | |
41979 | /* confdefs.h. */ | |
41980 | _ACEOF | |
41981 | cat confdefs.h >>conftest.$ac_ext | |
41982 | cat >>conftest.$ac_ext <<_ACEOF | |
41983 | /* end confdefs.h. */ | |
41984 | ||
41985 | #include <sys/types.h> | |
41986 | #include <sys/socket.h> | |
41987 | ||
41988 | int | |
41989 | main () | |
41990 | { | |
41991 | ||
41992 | socklen_t len; | |
41993 | getsockname(0, 0, &len); | |
41994 | ||
41995 | ; | |
41996 | return 0; | |
41997 | } | |
41998 | _ACEOF | |
41999 | rm -f conftest.$ac_objext | |
42000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42001 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42002 | ac_status=$? |
ac1cb8d3 VS |
42003 | grep -v '^ *+' conftest.er1 >conftest.err |
42004 | rm -f conftest.er1 | |
42005 | cat conftest.err >&5 | |
a848cd7e SC |
42006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42007 | (exit $ac_status); } && | |
f10e38c4 | 42008 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42010 | (eval $ac_try) 2>&5 | |
42011 | ac_status=$? | |
42012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42013 | (exit $ac_status); }; } && | |
42014 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42016 | (eval $ac_try) 2>&5 | |
42017 | ac_status=$? | |
42018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42019 | (exit $ac_status); }; }; then | |
42020 | wx_cv_type_getsockname3=socklen_t | |
42021 | else | |
42022 | echo "$as_me: failed program was:" >&5 | |
42023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42024 | ||
42025 | ||
6459a506 | 42026 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 42027 | if test "$GCC" = yes ; then |
c92ad099 | 42028 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
42029 | fi |
42030 | ||
42031 | cat >conftest.$ac_ext <<_ACEOF | |
42032 | /* confdefs.h. */ | |
42033 | _ACEOF | |
42034 | cat confdefs.h >>conftest.$ac_ext | |
42035 | cat >>conftest.$ac_ext <<_ACEOF | |
42036 | /* end confdefs.h. */ | |
42037 | ||
42038 | #include <sys/types.h> | |
42039 | #include <sys/socket.h> | |
42040 | ||
42041 | int | |
42042 | main () | |
42043 | { | |
42044 | ||
42045 | size_t len; | |
42046 | getsockname(0, 0, &len); | |
42047 | ||
42048 | ; | |
42049 | return 0; | |
42050 | } | |
42051 | _ACEOF | |
42052 | rm -f conftest.$ac_objext | |
42053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42054 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42055 | ac_status=$? |
ac1cb8d3 VS |
42056 | grep -v '^ *+' conftest.er1 >conftest.err |
42057 | rm -f conftest.er1 | |
42058 | cat conftest.err >&5 | |
a848cd7e SC |
42059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42060 | (exit $ac_status); } && | |
f10e38c4 | 42061 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42063 | (eval $ac_try) 2>&5 | |
42064 | ac_status=$? | |
42065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42066 | (exit $ac_status); }; } && | |
42067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42069 | (eval $ac_try) 2>&5 | |
42070 | ac_status=$? | |
42071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42072 | (exit $ac_status); }; }; then | |
42073 | wx_cv_type_getsockname3=size_t | |
42074 | else | |
42075 | echo "$as_me: failed program was:" >&5 | |
42076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42077 | ||
42078 | cat >conftest.$ac_ext <<_ACEOF | |
42079 | /* confdefs.h. */ | |
42080 | _ACEOF | |
42081 | cat confdefs.h >>conftest.$ac_ext | |
42082 | cat >>conftest.$ac_ext <<_ACEOF | |
42083 | /* end confdefs.h. */ | |
42084 | ||
42085 | #include <sys/types.h> | |
42086 | #include <sys/socket.h> | |
42087 | ||
42088 | int | |
42089 | main () | |
42090 | { | |
42091 | ||
42092 | int len; | |
42093 | getsockname(0, 0, &len); | |
42094 | ||
42095 | ; | |
42096 | return 0; | |
42097 | } | |
42098 | _ACEOF | |
42099 | rm -f conftest.$ac_objext | |
42100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42101 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42102 | ac_status=$? |
ac1cb8d3 VS |
42103 | grep -v '^ *+' conftest.er1 >conftest.err |
42104 | rm -f conftest.er1 | |
42105 | cat conftest.err >&5 | |
a848cd7e SC |
42106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42107 | (exit $ac_status); } && | |
f10e38c4 | 42108 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42110 | (eval $ac_try) 2>&5 | |
42111 | ac_status=$? | |
42112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42113 | (exit $ac_status); }; } && | |
42114 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42116 | (eval $ac_try) 2>&5 | |
42117 | ac_status=$? | |
42118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42119 | (exit $ac_status); }; }; then | |
42120 | wx_cv_type_getsockname3=int | |
42121 | else | |
42122 | echo "$as_me: failed program was:" >&5 | |
42123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42124 | ||
42125 | wx_cv_type_getsockname3=unknown | |
42126 | ||
42127 | fi | |
ac1cb8d3 | 42128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42129 | |
42130 | fi | |
ac1cb8d3 | 42131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42132 | |
6459a506 | 42133 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
42134 | |
42135 | ||
42136 | fi | |
ac1cb8d3 | 42137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42138 | |
42139 | fi | |
42140 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
42141 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
42142 | ||
42143 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
42144 | wxUSE_SOCKETS=no | |
42145 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42146 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42147 | else | |
42148 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 42149 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
42150 | _ACEOF |
42151 | ||
42152 | fi | |
42153 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
42154 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
42155 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
42156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42157 | else | |
42158 | ||
42159 | cat >conftest.$ac_ext <<_ACEOF | |
42160 | /* confdefs.h. */ | |
42161 | _ACEOF | |
42162 | cat confdefs.h >>conftest.$ac_ext | |
42163 | cat >>conftest.$ac_ext <<_ACEOF | |
42164 | /* end confdefs.h. */ | |
42165 | ||
42166 | #include <sys/types.h> | |
42167 | #include <sys/socket.h> | |
42168 | ||
42169 | int | |
42170 | main () | |
42171 | { | |
42172 | ||
42173 | socklen_t len; | |
42174 | getsockopt(0, 0, 0, 0, &len); | |
42175 | ||
42176 | ; | |
42177 | return 0; | |
42178 | } | |
42179 | _ACEOF | |
42180 | rm -f conftest.$ac_objext | |
42181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42182 | (eval $ac_compile) 2>conftest.er1 | |
42183 | ac_status=$? | |
42184 | grep -v '^ *+' conftest.er1 >conftest.err | |
42185 | rm -f conftest.er1 | |
42186 | cat conftest.err >&5 | |
42187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42188 | (exit $ac_status); } && | |
f10e38c4 | 42189 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
42190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42191 | (eval $ac_try) 2>&5 | |
42192 | ac_status=$? | |
42193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42194 | (exit $ac_status); }; } && | |
42195 | { ac_try='test -s conftest.$ac_objext' | |
42196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42197 | (eval $ac_try) 2>&5 | |
42198 | ac_status=$? | |
42199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42200 | (exit $ac_status); }; }; then | |
42201 | wx_cv_type_getsockopt5=socklen_t | |
42202 | else | |
42203 | echo "$as_me: failed program was:" >&5 | |
42204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42205 | ||
42206 | ||
6459a506 | 42207 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 42208 | if test "$GCC" = yes ; then |
c92ad099 | 42209 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
42210 | fi |
42211 | ||
42212 | cat >conftest.$ac_ext <<_ACEOF | |
42213 | /* confdefs.h. */ | |
42214 | _ACEOF | |
42215 | cat confdefs.h >>conftest.$ac_ext | |
42216 | cat >>conftest.$ac_ext <<_ACEOF | |
42217 | /* end confdefs.h. */ | |
42218 | ||
42219 | #include <sys/types.h> | |
42220 | #include <sys/socket.h> | |
42221 | ||
42222 | int | |
42223 | main () | |
42224 | { | |
42225 | ||
42226 | size_t len; | |
42227 | getsockopt(0, 0, 0, 0, &len); | |
42228 | ||
42229 | ; | |
42230 | return 0; | |
42231 | } | |
42232 | _ACEOF | |
42233 | rm -f conftest.$ac_objext | |
42234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42235 | (eval $ac_compile) 2>conftest.er1 | |
42236 | ac_status=$? | |
42237 | grep -v '^ *+' conftest.er1 >conftest.err | |
42238 | rm -f conftest.er1 | |
42239 | cat conftest.err >&5 | |
42240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42241 | (exit $ac_status); } && | |
f10e38c4 | 42242 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
42243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42244 | (eval $ac_try) 2>&5 | |
42245 | ac_status=$? | |
42246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42247 | (exit $ac_status); }; } && | |
42248 | { ac_try='test -s conftest.$ac_objext' | |
42249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42250 | (eval $ac_try) 2>&5 | |
42251 | ac_status=$? | |
42252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42253 | (exit $ac_status); }; }; then | |
42254 | wx_cv_type_getsockopt5=size_t | |
42255 | else | |
42256 | echo "$as_me: failed program was:" >&5 | |
42257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42258 | ||
42259 | cat >conftest.$ac_ext <<_ACEOF | |
42260 | /* confdefs.h. */ | |
42261 | _ACEOF | |
42262 | cat confdefs.h >>conftest.$ac_ext | |
42263 | cat >>conftest.$ac_ext <<_ACEOF | |
42264 | /* end confdefs.h. */ | |
42265 | ||
42266 | #include <sys/types.h> | |
42267 | #include <sys/socket.h> | |
42268 | ||
42269 | int | |
42270 | main () | |
42271 | { | |
42272 | ||
42273 | int len; | |
42274 | getsockopt(0, 0, 0, 0, &len); | |
42275 | ||
42276 | ; | |
42277 | return 0; | |
42278 | } | |
42279 | _ACEOF | |
42280 | rm -f conftest.$ac_objext | |
42281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42282 | (eval $ac_compile) 2>conftest.er1 | |
42283 | ac_status=$? | |
42284 | grep -v '^ *+' conftest.er1 >conftest.err | |
42285 | rm -f conftest.er1 | |
42286 | cat conftest.err >&5 | |
42287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42288 | (exit $ac_status); } && | |
f10e38c4 | 42289 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
42290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42291 | (eval $ac_try) 2>&5 | |
42292 | ac_status=$? | |
42293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42294 | (exit $ac_status); }; } && | |
42295 | { ac_try='test -s conftest.$ac_objext' | |
42296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42297 | (eval $ac_try) 2>&5 | |
42298 | ac_status=$? | |
42299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42300 | (exit $ac_status); }; }; then | |
42301 | wx_cv_type_getsockopt5=int | |
42302 | else | |
42303 | echo "$as_me: failed program was:" >&5 | |
42304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42305 | ||
42306 | wx_cv_type_getsockopt5=unknown | |
42307 | ||
42308 | fi | |
42309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42310 | ||
42311 | fi | |
42312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42313 | ||
6459a506 | 42314 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
42315 | |
42316 | ||
42317 | fi | |
42318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42319 | ||
42320 | fi | |
42321 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
42322 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
42323 | ||
42324 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
42325 | wxUSE_SOCKETS=no | |
42326 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42327 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42328 | else | |
42329 | cat >>confdefs.h <<_ACEOF | |
42330 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
42331 | _ACEOF |
42332 | ||
42333 | fi | |
4d4ff94c VZ |
42334 | ac_ext=c |
42335 | ac_cpp='$CPP $CPPFLAGS' | |
42336 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42337 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42338 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42339 | ||
a848cd7e SC |
42340 | fi |
42341 | fi | |
42342 | ||
42343 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42344 | cat >>confdefs.h <<\_ACEOF | |
42345 | #define wxUSE_SOCKETS 1 | |
42346 | _ACEOF | |
42347 | ||
42348 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
42349 | fi | |
42350 | ||
42351 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42352 | if test "$wxUSE_SOCKETS" != "yes"; then | |
42353 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
42354 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
42355 | wxUSE_PROTOCOL=no | |
42356 | fi | |
42357 | fi | |
42358 | ||
42359 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42360 | cat >>confdefs.h <<\_ACEOF | |
42361 | #define wxUSE_PROTOCOL 1 | |
42362 | _ACEOF | |
42363 | ||
42364 | ||
42365 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
42366 | cat >>confdefs.h <<\_ACEOF | |
42367 | #define wxUSE_PROTOCOL_HTTP 1 | |
42368 | _ACEOF | |
42369 | ||
42370 | fi | |
42371 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
42372 | cat >>confdefs.h <<\_ACEOF | |
42373 | #define wxUSE_PROTOCOL_FTP 1 | |
42374 | _ACEOF | |
42375 | ||
42376 | fi | |
42377 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
42378 | cat >>confdefs.h <<\_ACEOF | |
42379 | #define wxUSE_PROTOCOL_FILE 1 | |
42380 | _ACEOF | |
42381 | ||
42382 | fi | |
42383 | else | |
42384 | if test "$wxUSE_FS_INET" = "yes"; then | |
42385 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
42386 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
42387 | wxUSE_FS_INET="no" | |
42388 | fi | |
42389 | fi | |
42390 | ||
42391 | if test "$wxUSE_URL" = "yes"; then | |
42392 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
42393 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
42394 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
42395 | wxUSE_URL=no | |
42396 | fi | |
42397 | if test "$wxUSE_URL" = "yes"; then | |
42398 | cat >>confdefs.h <<\_ACEOF | |
42399 | #define wxUSE_URL 1 | |
42400 | _ACEOF | |
42401 | ||
42402 | fi | |
42403 | fi | |
42404 | ||
42405 | if test "$wxUSE_FS_INET" = "yes"; then | |
42406 | cat >>confdefs.h <<\_ACEOF | |
42407 | #define wxUSE_FS_INET 1 | |
42408 | _ACEOF | |
42409 | ||
42410 | fi | |
42411 | ||
42412 | ||
ee45c548 MW |
42413 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
42414 | wxUSE_JOYSTICK=no | |
42415 | ||
42416 | if test "$TOOLKIT" = "MSW"; then | |
42417 | wxUSE_JOYSTICK=yes | |
42418 | ||
42419 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
42420 | if test "$USE_DARWIN" = 1; then | |
42421 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
42422 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
42423 | ac_ext=cc | |
42424 | ac_cpp='$CXXCPP $CPPFLAGS' | |
42425 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42426 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42427 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
42428 | ||
42429 | cat >conftest.$ac_ext <<_ACEOF | |
42430 | /* confdefs.h. */ | |
42431 | _ACEOF | |
42432 | cat confdefs.h >>conftest.$ac_ext | |
42433 | cat >>conftest.$ac_ext <<_ACEOF | |
42434 | /* end confdefs.h. */ | |
42435 | #include <IOKit/hid/IOHIDLib.h> | |
42436 | int | |
42437 | main () | |
42438 | { | |
42439 | IOHIDQueueInterface *qi = NULL; | |
42440 | IOHIDCallbackFunction cb = NULL; | |
42441 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
42442 | ; | |
42443 | return 0; | |
42444 | } | |
42445 | _ACEOF | |
42446 | rm -f conftest.$ac_objext | |
42447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42448 | (eval $ac_compile) 2>conftest.er1 | |
42449 | ac_status=$? | |
42450 | grep -v '^ *+' conftest.er1 >conftest.err | |
42451 | rm -f conftest.er1 | |
42452 | cat conftest.err >&5 | |
42453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42454 | (exit $ac_status); } && | |
f10e38c4 | 42455 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
42456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42457 | (eval $ac_try) 2>&5 | |
42458 | ac_status=$? | |
42459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42460 | (exit $ac_status); }; } && | |
42461 | { ac_try='test -s conftest.$ac_objext' | |
42462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42463 | (eval $ac_try) 2>&5 | |
42464 | ac_status=$? | |
42465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42466 | (exit $ac_status); }; }; then | |
42467 | wxUSE_JOYSTICK=yes | |
a848cd7e | 42468 | |
ee45c548 MW |
42469 | else |
42470 | echo "$as_me: failed program was:" >&5 | |
42471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42472 | ||
42473 | fi | |
42474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42475 | ac_ext=c | |
42476 | ac_cpp='$CPP $CPPFLAGS' | |
42477 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42478 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42479 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42480 | ||
42481 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
42482 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
42483 | fi | |
42484 | ||
42485 | else | |
a848cd7e SC |
42486 | |
42487 | for ac_header in linux/joystick.h | |
42488 | do | |
42489 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
42490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42491 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42492 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42495 | fi | |
42496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42497 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42498 | else | |
42499 | # Is the header compilable? | |
42500 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
42501 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
42502 | cat >conftest.$ac_ext <<_ACEOF | |
42503 | /* confdefs.h. */ | |
42504 | _ACEOF | |
42505 | cat confdefs.h >>conftest.$ac_ext | |
42506 | cat >>conftest.$ac_ext <<_ACEOF | |
42507 | /* end confdefs.h. */ | |
42508 | $ac_includes_default | |
42509 | #include <$ac_header> | |
42510 | _ACEOF | |
42511 | rm -f conftest.$ac_objext | |
42512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42513 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42514 | ac_status=$? |
ac1cb8d3 VS |
42515 | grep -v '^ *+' conftest.er1 >conftest.err |
42516 | rm -f conftest.er1 | |
42517 | cat conftest.err >&5 | |
a848cd7e SC |
42518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42519 | (exit $ac_status); } && | |
f10e38c4 | 42520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42522 | (eval $ac_try) 2>&5 | |
42523 | ac_status=$? | |
42524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42525 | (exit $ac_status); }; } && | |
42526 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42528 | (eval $ac_try) 2>&5 | |
42529 | ac_status=$? | |
42530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42531 | (exit $ac_status); }; }; then | |
42532 | ac_header_compiler=yes | |
42533 | else | |
42534 | echo "$as_me: failed program was:" >&5 | |
42535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42536 | ||
42537 | ac_header_compiler=no | |
42538 | fi | |
ac1cb8d3 | 42539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42540 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
42541 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
42542 | ||
42543 | # Is the header present? | |
42544 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
42545 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
42546 | cat >conftest.$ac_ext <<_ACEOF | |
42547 | /* confdefs.h. */ | |
42548 | _ACEOF | |
42549 | cat confdefs.h >>conftest.$ac_ext | |
42550 | cat >>conftest.$ac_ext <<_ACEOF | |
42551 | /* end confdefs.h. */ | |
42552 | #include <$ac_header> | |
42553 | _ACEOF | |
42554 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
42555 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42556 | ac_status=$? | |
42557 | grep -v '^ *+' conftest.er1 >conftest.err | |
42558 | rm -f conftest.er1 | |
42559 | cat conftest.err >&5 | |
42560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42561 | (exit $ac_status); } >/dev/null; then | |
42562 | if test -s conftest.err; then | |
42563 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 42564 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
42565 | else |
42566 | ac_cpp_err= | |
42567 | fi | |
42568 | else | |
42569 | ac_cpp_err=yes | |
42570 | fi | |
42571 | if test -z "$ac_cpp_err"; then | |
42572 | ac_header_preproc=yes | |
42573 | else | |
42574 | echo "$as_me: failed program was:" >&5 | |
42575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42576 | ||
42577 | ac_header_preproc=no | |
42578 | fi | |
42579 | rm -f conftest.err conftest.$ac_ext | |
42580 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
42581 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
42582 | ||
42583 | # So? What about this header? | |
ac1cb8d3 VS |
42584 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
42585 | yes:no: ) | |
a848cd7e SC |
42586 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
42587 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
42588 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
42589 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
42590 | ac_header_preproc=yes | |
a848cd7e | 42591 | ;; |
ac1cb8d3 | 42592 | no:yes:* ) |
a848cd7e SC |
42593 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
42594 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
42595 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
42596 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
42597 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
42598 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
42599 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
42600 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
42601 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
42602 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
42603 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
42604 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
42605 | ( |
42606 | cat <<\_ASBOX | |
ac1cb8d3 VS |
42607 | ## ----------------------------------------- ## |
42608 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
42609 | ## ----------------------------------------- ## | |
a848cd7e SC |
42610 | _ASBOX |
42611 | ) | | |
42612 | sed "s/^/$as_me: WARNING: /" >&2 | |
42613 | ;; | |
42614 | esac | |
42615 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42616 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42617 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42619 | else | |
ac1cb8d3 | 42620 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
42621 | fi |
42622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42623 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42624 | ||
42625 | fi | |
42626 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
42627 | cat >>confdefs.h <<_ACEOF | |
42628 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
42629 | _ACEOF | |
ee45c548 | 42630 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
42631 | fi |
42632 | ||
42633 | done | |
42634 | ||
ee45c548 | 42635 | fi |
4cb1d3da | 42636 | |
ee45c548 MW |
42637 | if test "$wxUSE_JOYSTICK" = "yes"; then |
42638 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42639 | #define wxUSE_JOYSTICK 1 |
42640 | _ACEOF | |
42641 | ||
ee45c548 MW |
42642 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
42643 | else | |
42644 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
42645 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
42646 | fi |
42647 | fi | |
42648 | ||
42649 | ||
42650 | ||
42651 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
42652 | cat >>confdefs.h <<\_ACEOF | |
42653 | #define wxUSE_FONTMAP 1 | |
42654 | _ACEOF | |
42655 | ||
42656 | fi | |
42657 | ||
42658 | if test "$wxUSE_UNICODE" = "yes" ; then | |
42659 | cat >>confdefs.h <<\_ACEOF | |
42660 | #define wxUSE_UNICODE 1 | |
42661 | _ACEOF | |
42662 | ||
42663 | ||
42664 | if test "$USE_WIN32" != 1; then | |
42665 | wxUSE_UNICODE_MSLU=no | |
42666 | fi | |
42667 | ||
42668 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
42669 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
42670 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
42671 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
42672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42673 | else | |
42674 | ac_check_lib_save_LIBS=$LIBS | |
42675 | LIBS="-lunicows $LIBS" | |
42676 | cat >conftest.$ac_ext <<_ACEOF | |
42677 | /* confdefs.h. */ | |
42678 | _ACEOF | |
42679 | cat confdefs.h >>conftest.$ac_ext | |
42680 | cat >>conftest.$ac_ext <<_ACEOF | |
42681 | /* end confdefs.h. */ | |
42682 | ||
42683 | ||
42684 | int | |
42685 | main () | |
42686 | { | |
42687 | main (); | |
42688 | ; | |
42689 | return 0; | |
42690 | } | |
42691 | _ACEOF | |
42692 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42694 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42695 | ac_status=$? |
ac1cb8d3 VS |
42696 | grep -v '^ *+' conftest.er1 >conftest.err |
42697 | rm -f conftest.er1 | |
42698 | cat conftest.err >&5 | |
a848cd7e SC |
42699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42700 | (exit $ac_status); } && | |
f10e38c4 | 42701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42703 | (eval $ac_try) 2>&5 | |
42704 | ac_status=$? | |
42705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42706 | (exit $ac_status); }; } && | |
42707 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42709 | (eval $ac_try) 2>&5 | |
42710 | ac_status=$? | |
42711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42712 | (exit $ac_status); }; }; then | |
42713 | ac_cv_lib_unicows_main=yes | |
42714 | else | |
42715 | echo "$as_me: failed program was:" >&5 | |
42716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42717 | ||
42718 | ac_cv_lib_unicows_main=no | |
42719 | fi | |
ac1cb8d3 VS |
42720 | rm -f conftest.err conftest.$ac_objext \ |
42721 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42722 | LIBS=$ac_check_lib_save_LIBS |
42723 | fi | |
42724 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
42725 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
42726 | if test $ac_cv_lib_unicows_main = yes; then | |
42727 | ||
42728 | cat >>confdefs.h <<\_ACEOF | |
42729 | #define wxUSE_UNICODE_MSLU 1 | |
42730 | _ACEOF | |
42731 | ||
42732 | ||
42733 | else | |
42734 | ||
42735 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
42736 | Applications will only run on Windows NT/2000/XP!" >&5 | |
42737 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
42738 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
42739 | wxUSE_UNICODE_MSLU=no | |
42740 | ||
42741 | fi | |
42742 | ||
42743 | fi | |
42744 | fi | |
42745 | ||
42746 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
42747 | cat >>confdefs.h <<\_ACEOF | |
42748 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
42749 | _ACEOF | |
42750 | ||
42751 | fi | |
42752 | ||
42753 | ||
42754 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
42755 | cat >>confdefs.h <<\_ACEOF | |
42756 | #define wxUSE_POSTSCRIPT 1 | |
42757 | _ACEOF | |
42758 | ||
42759 | fi | |
42760 | ||
42761 | cat >>confdefs.h <<\_ACEOF | |
42762 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
42763 | _ACEOF | |
42764 | ||
42765 | ||
42766 | cat >>confdefs.h <<\_ACEOF | |
42767 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
42768 | _ACEOF | |
42769 | ||
42770 | ||
42771 | ||
42772 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
42773 | cat >>confdefs.h <<\_ACEOF | |
42774 | #define wxUSE_CONSTRAINTS 1 | |
42775 | _ACEOF | |
42776 | ||
42777 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
42778 | fi | |
42779 | ||
8a7b1113 VZ |
42780 | if test "$wxUSE_MDI" = "yes"; then |
42781 | cat >>confdefs.h <<\_ACEOF | |
42782 | #define wxUSE_MDI 1 | |
42783 | _ACEOF | |
42784 | ||
42785 | ||
42786 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
42787 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42788 | #define wxUSE_MDI_ARCHITECTURE 1 |
42789 | _ACEOF | |
42790 | ||
8a7b1113 VZ |
42791 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
42792 | fi | |
a848cd7e SC |
42793 | fi |
42794 | ||
42795 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
42796 | cat >>confdefs.h <<\_ACEOF | |
42797 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
42798 | _ACEOF | |
42799 | ||
42800 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
42801 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
42802 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
42803 | fi | |
42804 | fi | |
42805 | ||
42806 | if test "$wxUSE_HELP" = "yes"; then | |
42807 | cat >>confdefs.h <<\_ACEOF | |
42808 | #define wxUSE_HELP 1 | |
42809 | _ACEOF | |
42810 | ||
42811 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
42812 | ||
42813 | if test "$wxUSE_MSW" = 1; then | |
42814 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
42815 | cat >>confdefs.h <<\_ACEOF | |
42816 | #define wxUSE_MS_HTML_HELP 1 | |
42817 | _ACEOF | |
42818 | ||
42819 | fi | |
42820 | fi | |
42821 | ||
42822 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
42823 | if test "$wxUSE_HTML" = "yes"; then | |
42824 | cat >>confdefs.h <<\_ACEOF | |
42825 | #define wxUSE_WXHTML_HELP 1 | |
42826 | _ACEOF | |
42827 | ||
42828 | else | |
42829 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
42830 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
42831 | wxUSE_WXHTML_HELP=no | |
42832 | fi | |
42833 | fi | |
42834 | fi | |
42835 | ||
42836 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
42837 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
42838 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
42839 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
42840 | else | |
42841 | cat >>confdefs.h <<\_ACEOF | |
42842 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
42843 | _ACEOF | |
42844 | ||
42845 | fi | |
42846 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
42847 | fi | |
42848 | ||
42849 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
42850 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
42851 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
42852 | { (exit 1); exit 1; }; } | |
42853 | fi | |
42854 | ||
42855 | ||
efdf6afe VZ |
42856 | if test "$wxUSE_METAFILE" = "yes"; then |
42857 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
42858 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
42859 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
42860 | wxUSE_METAFILE=no | |
42861 | fi | |
42862 | fi | |
42863 | ||
42864 | ||
a848cd7e SC |
42865 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
42866 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
42867 | -o "$wxUSE_OLE" = "yes" \ | |
42868 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
42869 | ||
42870 | for ac_header in ole2.h | |
42871 | do | |
42872 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
42873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42874 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42878 | fi | |
42879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42880 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42881 | else | |
42882 | # Is the header compilable? | |
42883 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
42884 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
42885 | cat >conftest.$ac_ext <<_ACEOF | |
42886 | /* confdefs.h. */ | |
42887 | _ACEOF | |
42888 | cat confdefs.h >>conftest.$ac_ext | |
42889 | cat >>conftest.$ac_ext <<_ACEOF | |
42890 | /* end confdefs.h. */ | |
42891 | $ac_includes_default | |
42892 | #include <$ac_header> | |
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); } && | |
f10e38c4 | 42903 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42905 | (eval $ac_try) 2>&5 | |
42906 | ac_status=$? | |
42907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42908 | (exit $ac_status); }; } && | |
42909 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42911 | (eval $ac_try) 2>&5 | |
42912 | ac_status=$? | |
42913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42914 | (exit $ac_status); }; }; then | |
42915 | ac_header_compiler=yes | |
42916 | else | |
42917 | echo "$as_me: failed program was:" >&5 | |
42918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42919 | ||
42920 | ac_header_compiler=no | |
42921 | fi | |
ac1cb8d3 | 42922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42923 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
42924 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
42925 | ||
42926 | # Is the header present? | |
42927 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
42928 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
42929 | cat >conftest.$ac_ext <<_ACEOF | |
42930 | /* confdefs.h. */ | |
42931 | _ACEOF | |
42932 | cat confdefs.h >>conftest.$ac_ext | |
42933 | cat >>conftest.$ac_ext <<_ACEOF | |
42934 | /* end confdefs.h. */ | |
42935 | #include <$ac_header> | |
42936 | _ACEOF | |
42937 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
42938 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42939 | ac_status=$? | |
42940 | grep -v '^ *+' conftest.er1 >conftest.err | |
42941 | rm -f conftest.er1 | |
42942 | cat conftest.err >&5 | |
42943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42944 | (exit $ac_status); } >/dev/null; then | |
42945 | if test -s conftest.err; then | |
42946 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 42947 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
42948 | else |
42949 | ac_cpp_err= | |
42950 | fi | |
42951 | else | |
42952 | ac_cpp_err=yes | |
42953 | fi | |
42954 | if test -z "$ac_cpp_err"; then | |
42955 | ac_header_preproc=yes | |
42956 | else | |
42957 | echo "$as_me: failed program was:" >&5 | |
42958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42959 | ||
42960 | ac_header_preproc=no | |
42961 | fi | |
42962 | rm -f conftest.err conftest.$ac_ext | |
42963 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
42964 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
42965 | ||
42966 | # So? What about this header? | |
ac1cb8d3 VS |
42967 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
42968 | yes:no: ) | |
a848cd7e SC |
42969 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
42970 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
42971 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
42972 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
42973 | ac_header_preproc=yes | |
a848cd7e | 42974 | ;; |
ac1cb8d3 | 42975 | no:yes:* ) |
a848cd7e SC |
42976 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
42977 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
42978 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
42979 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
42980 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
42981 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
42982 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
42983 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
42984 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
42985 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
42986 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
42987 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
42988 | ( |
42989 | cat <<\_ASBOX | |
ac1cb8d3 VS |
42990 | ## ----------------------------------------- ## |
42991 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
42992 | ## ----------------------------------------- ## | |
a848cd7e SC |
42993 | _ASBOX |
42994 | ) | | |
42995 | sed "s/^/$as_me: WARNING: /" >&2 | |
42996 | ;; | |
42997 | esac | |
42998 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42999 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43000 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43002 | else | |
ac1cb8d3 | 43003 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43004 | fi |
43005 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43006 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43007 | ||
43008 | fi | |
43009 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43010 | cat >>confdefs.h <<_ACEOF | |
43011 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43012 | _ACEOF | |
43013 | ||
43014 | fi | |
43015 | ||
43016 | done | |
43017 | ||
43018 | ||
43019 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
43020 | if test "$GCC" = yes ; then | |
a848cd7e SC |
43021 | ac_ext=cc |
43022 | ac_cpp='$CXXCPP $CPPFLAGS' | |
43023 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
43024 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
43025 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
43026 | ||
43027 | ||
43028 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
43029 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
43030 | cat >conftest.$ac_ext <<_ACEOF | |
43031 | /* confdefs.h. */ | |
43032 | _ACEOF | |
43033 | cat confdefs.h >>conftest.$ac_ext | |
43034 | cat >>conftest.$ac_ext <<_ACEOF | |
43035 | /* end confdefs.h. */ | |
43036 | #include <windows.h> | |
43037 | #include <ole2.h> | |
43038 | int | |
43039 | main () | |
43040 | { | |
43041 | ||
43042 | ; | |
43043 | return 0; | |
43044 | } | |
43045 | _ACEOF | |
43046 | rm -f conftest.$ac_objext | |
43047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43048 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43049 | ac_status=$? |
ac1cb8d3 VS |
43050 | grep -v '^ *+' conftest.er1 >conftest.err |
43051 | rm -f conftest.er1 | |
43052 | cat conftest.err >&5 | |
a848cd7e SC |
43053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43054 | (exit $ac_status); } && | |
f10e38c4 | 43055 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43057 | (eval $ac_try) 2>&5 | |
43058 | ac_status=$? | |
43059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43060 | (exit $ac_status); }; } && | |
43061 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43063 | (eval $ac_try) 2>&5 | |
43064 | ac_status=$? | |
43065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43066 | (exit $ac_status); }; }; then | |
43067 | echo "$as_me:$LINENO: result: no" >&5 | |
43068 | echo "${ECHO_T}no" >&6 | |
43069 | else | |
43070 | echo "$as_me: failed program was:" >&5 | |
43071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43072 | ||
43073 | echo "$as_me:$LINENO: result: yes" >&5 | |
43074 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 43075 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 43076 | fi |
ac1cb8d3 | 43077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43078 | ac_ext=c |
43079 | ac_cpp='$CPP $CPPFLAGS' | |
43080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
43081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
43082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
43083 | ||
a848cd7e SC |
43084 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
43085 | if test "$wxUSE_OLE" = "yes" ; then | |
43086 | cat >>confdefs.h <<\_ACEOF | |
43087 | #define wxUSE_OLE 1 | |
43088 | _ACEOF | |
43089 | ||
0b78747f | 43090 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
43091 | fi |
43092 | fi | |
43093 | ||
43094 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
43095 | cat >>confdefs.h <<\_ACEOF | |
43096 | #define wxUSE_DATAOBJ 1 | |
43097 | _ACEOF | |
43098 | ||
43099 | fi | |
43100 | else | |
43101 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
43102 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
43103 | ||
43104 | wxUSE_CLIPBOARD=no | |
43105 | wxUSE_DRAG_AND_DROP=no | |
43106 | wxUSE_DATAOBJ=no | |
43107 | wxUSE_OLE=no | |
43108 | fi | |
43109 | ||
43110 | if test "$wxUSE_METAFILE" = "yes"; then | |
43111 | cat >>confdefs.h <<\_ACEOF | |
43112 | #define wxUSE_METAFILE 1 | |
43113 | _ACEOF | |
43114 | ||
43115 | ||
43116 | cat >>confdefs.h <<\_ACEOF | |
43117 | #define wxUSE_ENH_METAFILE 1 | |
43118 | _ACEOF | |
43119 | ||
43120 | fi | |
43121 | fi | |
43122 | ||
43123 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 43124 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
43125 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
43126 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 43127 | wxUSE_IPC=no |
a848cd7e SC |
43128 | fi |
43129 | ||
0b78747f MW |
43130 | if test "$wxUSE_IPC" = "yes"; then |
43131 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43132 | #define wxUSE_IPC 1 |
43133 | _ACEOF | |
43134 | ||
0b78747f MW |
43135 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
43136 | fi | |
a848cd7e SC |
43137 | fi |
43138 | ||
eb730a0c | 43139 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
43140 | if test "$wxUSE_MGL" = 1; then |
43141 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
43142 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
43143 | wxUSE_DATAOBJ=no | |
43144 | else | |
43145 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
43146 | #define wxUSE_DATAOBJ 1 |
43147 | _ACEOF | |
43148 | ||
2113bc77 | 43149 | fi |
eb730a0c JS |
43150 | else |
43151 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
43152 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
43153 | wxUSE_CLIPBOARD=no | |
43154 | wxUSE_DRAG_AND_DROP=no | |
43155 | fi | |
43156 | ||
a848cd7e SC |
43157 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
43158 | if test "$wxUSE_MGL" = 1; then | |
43159 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
43160 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
43161 | wxUSE_CLIPBOARD=no | |
43162 | fi | |
43163 | ||
43164 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
43165 | cat >>confdefs.h <<\_ACEOF | |
43166 | #define wxUSE_CLIPBOARD 1 | |
43167 | _ACEOF | |
43168 | ||
a848cd7e SC |
43169 | fi |
43170 | fi | |
43171 | ||
43172 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
43173 | if test "$wxUSE_GTK" = 1; then | |
43174 | if test "$WXGTK12" != 1; then | |
43175 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
43176 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
43177 | wxUSE_DRAG_AND_DROP=no | |
43178 | fi | |
43179 | fi | |
43180 | ||
43181 | if test "$wxUSE_MOTIF" = 1; then | |
43182 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
43183 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
43184 | wxUSE_DRAG_AND_DROP=no | |
43185 | fi | |
43186 | ||
43187 | if test "$wxUSE_X11" = 1; then | |
43188 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
43189 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
43190 | wxUSE_DRAG_AND_DROP=no | |
43191 | fi | |
43192 | ||
43193 | if test "$wxUSE_MGL" = 1; then | |
43194 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
43195 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
43196 | wxUSE_DRAG_AND_DROP=no | |
43197 | fi | |
43198 | ||
43199 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
43200 | cat >>confdefs.h <<\_ACEOF | |
43201 | #define wxUSE_DRAG_AND_DROP 1 | |
43202 | _ACEOF | |
43203 | ||
43204 | fi | |
43205 | ||
43206 | fi | |
43207 | ||
43208 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
43209 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
43210 | fi | |
43211 | ||
43212 | if test "$wxUSE_SPLINES" = "yes" ; then | |
43213 | cat >>confdefs.h <<\_ACEOF | |
43214 | #define wxUSE_SPLINES 1 | |
43215 | _ACEOF | |
43216 | ||
43217 | fi | |
43218 | ||
fbe2ca43 SN |
43219 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
43220 | cat >>confdefs.h <<\_ACEOF | |
43221 | #define wxUSE_MOUSEWHEEL 1 | |
43222 | _ACEOF | |
43223 | ||
43224 | fi | |
43225 | ||
a848cd7e SC |
43226 | |
43227 | USES_CONTROLS=0 | |
43228 | if test "$wxUSE_CONTROLS" = "yes"; then | |
43229 | USES_CONTROLS=1 | |
43230 | fi | |
43231 | ||
43232 | if test "$wxUSE_ACCEL" = "yes"; then | |
43233 | cat >>confdefs.h <<\_ACEOF | |
43234 | #define wxUSE_ACCEL 1 | |
43235 | _ACEOF | |
43236 | ||
43237 | USES_CONTROLS=1 | |
43238 | fi | |
43239 | ||
43240 | if test "$wxUSE_BUTTON" = "yes"; then | |
43241 | cat >>confdefs.h <<\_ACEOF | |
43242 | #define wxUSE_BUTTON 1 | |
43243 | _ACEOF | |
43244 | ||
43245 | USES_CONTROLS=1 | |
43246 | fi | |
43247 | ||
43248 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
43249 | cat >>confdefs.h <<\_ACEOF | |
43250 | #define wxUSE_BMPBUTTON 1 | |
43251 | _ACEOF | |
43252 | ||
43253 | USES_CONTROLS=1 | |
43254 | fi | |
43255 | ||
43256 | if test "$wxUSE_CALCTRL" = "yes"; then | |
43257 | cat >>confdefs.h <<\_ACEOF | |
43258 | #define wxUSE_CALENDARCTRL 1 | |
43259 | _ACEOF | |
43260 | ||
43261 | USES_CONTROLS=1 | |
43262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
43263 | fi | |
43264 | ||
43265 | if test "$wxUSE_CARET" = "yes"; then | |
43266 | cat >>confdefs.h <<\_ACEOF | |
43267 | #define wxUSE_CARET 1 | |
43268 | _ACEOF | |
43269 | ||
43270 | USES_CONTROLS=1 | |
43271 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
43272 | fi | |
43273 | ||
43274 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
43275 | cat >>confdefs.h <<\_ACEOF | |
43276 | #define wxUSE_COMBOBOX 1 | |
43277 | _ACEOF | |
43278 | ||
43279 | USES_CONTROLS=1 | |
43280 | fi | |
43281 | ||
43282 | if test "$wxUSE_CHOICE" = "yes"; then | |
43283 | cat >>confdefs.h <<\_ACEOF | |
43284 | #define wxUSE_CHOICE 1 | |
43285 | _ACEOF | |
43286 | ||
43287 | USES_CONTROLS=1 | |
43288 | fi | |
43289 | ||
92bbdbcd WS |
43290 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
43291 | cat >>confdefs.h <<\_ACEOF | |
43292 | #define wxUSE_CHOICEBOOK 1 | |
43293 | _ACEOF | |
43294 | ||
43295 | USES_CONTROLS=1 | |
43296 | fi | |
43297 | ||
a848cd7e SC |
43298 | if test "$wxUSE_CHECKBOX" = "yes"; then |
43299 | cat >>confdefs.h <<\_ACEOF | |
43300 | #define wxUSE_CHECKBOX 1 | |
43301 | _ACEOF | |
43302 | ||
43303 | USES_CONTROLS=1 | |
43304 | fi | |
43305 | ||
43306 | if test "$wxUSE_CHECKLST" = "yes"; then | |
43307 | cat >>confdefs.h <<\_ACEOF | |
43308 | #define wxUSE_CHECKLISTBOX 1 | |
43309 | _ACEOF | |
43310 | ||
43311 | USES_CONTROLS=1 | |
43312 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
43313 | fi | |
43314 | ||
da98e9be VZ |
43315 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
43316 | cat >>confdefs.h <<\_ACEOF | |
43317 | #define wxUSE_DATEPICKCTRL 1 | |
43318 | _ACEOF | |
43319 | ||
43320 | USES_CONTROLS=1 | |
43321 | fi | |
43322 | ||
a848cd7e SC |
43323 | if test "$wxUSE_DISPLAY" = "yes"; then |
43324 | cat >>confdefs.h <<\_ACEOF | |
43325 | #define wxUSE_DISPLAY 1 | |
43326 | _ACEOF | |
43327 | ||
0b78747f | 43328 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
43329 | fi |
43330 | ||
43331 | if test "$wxUSE_GAUGE" = "yes"; then | |
43332 | cat >>confdefs.h <<\_ACEOF | |
43333 | #define wxUSE_GAUGE 1 | |
43334 | _ACEOF | |
43335 | ||
43336 | USES_CONTROLS=1 | |
43337 | fi | |
43338 | ||
43339 | if test "$wxUSE_GRID" = "yes"; then | |
43340 | cat >>confdefs.h <<\_ACEOF | |
43341 | #define wxUSE_GRID 1 | |
43342 | _ACEOF | |
43343 | ||
43344 | USES_CONTROLS=1 | |
43345 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
43346 | fi | |
43347 | ||
20e34ecc RR |
43348 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
43349 | cat >>confdefs.h <<\_ACEOF | |
43350 | #define wxUSE_DATAVIEWCTRL 1 | |
43351 | _ACEOF | |
43352 | ||
43353 | USES_CONTROLS=1 | |
43354 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
43355 | fi | |
43356 | ||
a848cd7e SC |
43357 | if test "$wxUSE_IMAGLIST" = "yes"; then |
43358 | cat >>confdefs.h <<\_ACEOF | |
43359 | #define wxUSE_IMAGLIST 1 | |
43360 | _ACEOF | |
43361 | ||
43362 | fi | |
43363 | ||
43364 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
43365 | cat >>confdefs.h <<\_ACEOF | |
43366 | #define wxUSE_LISTBOOK 1 | |
43367 | _ACEOF | |
43368 | ||
43369 | USES_CONTROLS=1 | |
43370 | fi | |
43371 | ||
43372 | if test "$wxUSE_LISTBOX" = "yes"; then | |
43373 | cat >>confdefs.h <<\_ACEOF | |
43374 | #define wxUSE_LISTBOX 1 | |
43375 | _ACEOF | |
43376 | ||
43377 | USES_CONTROLS=1 | |
0b78747f | 43378 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
43379 | fi |
43380 | ||
43381 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
43382 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43383 | cat >>confdefs.h <<\_ACEOF | |
43384 | #define wxUSE_LISTCTRL 1 | |
43385 | _ACEOF | |
43386 | ||
43387 | USES_CONTROLS=1 | |
43388 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
43389 | else | |
43390 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
43391 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43392 | fi | |
43393 | fi | |
43394 | ||
43395 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
43396 | cat >>confdefs.h <<\_ACEOF | |
43397 | #define wxUSE_NOTEBOOK 1 | |
43398 | _ACEOF | |
43399 | ||
43400 | USES_CONTROLS=1 | |
43401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
43402 | fi | |
43403 | ||
43404 | ||
43405 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
43406 | cat >>confdefs.h <<\_ACEOF | |
43407 | #define wxUSE_RADIOBOX 1 | |
43408 | _ACEOF | |
43409 | ||
43410 | USES_CONTROLS=1 | |
43411 | fi | |
43412 | ||
43413 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
43414 | cat >>confdefs.h <<\_ACEOF | |
43415 | #define wxUSE_RADIOBTN 1 | |
43416 | _ACEOF | |
43417 | ||
43418 | USES_CONTROLS=1 | |
43419 | fi | |
43420 | ||
43421 | if test "$wxUSE_SASH" = "yes"; then | |
43422 | cat >>confdefs.h <<\_ACEOF | |
43423 | #define wxUSE_SASH 1 | |
43424 | _ACEOF | |
43425 | ||
43426 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
43427 | fi | |
43428 | ||
43429 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
43430 | cat >>confdefs.h <<\_ACEOF | |
43431 | #define wxUSE_SCROLLBAR 1 | |
43432 | _ACEOF | |
43433 | ||
43434 | USES_CONTROLS=1 | |
43435 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
43436 | fi | |
43437 | ||
43438 | if test "$wxUSE_SLIDER" = "yes"; then | |
43439 | cat >>confdefs.h <<\_ACEOF | |
43440 | #define wxUSE_SLIDER 1 | |
43441 | _ACEOF | |
43442 | ||
43443 | USES_CONTROLS=1 | |
43444 | fi | |
43445 | ||
43446 | if test "$wxUSE_SPINBTN" = "yes"; then | |
43447 | cat >>confdefs.h <<\_ACEOF | |
43448 | #define wxUSE_SPINBTN 1 | |
43449 | _ACEOF | |
43450 | ||
43451 | USES_CONTROLS=1 | |
43452 | fi | |
43453 | ||
43454 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
43455 | cat >>confdefs.h <<\_ACEOF | |
43456 | #define wxUSE_SPINCTRL 1 | |
43457 | _ACEOF | |
43458 | ||
43459 | USES_CONTROLS=1 | |
43460 | fi | |
43461 | ||
43462 | if test "$wxUSE_SPLITTER" = "yes"; then | |
43463 | cat >>confdefs.h <<\_ACEOF | |
43464 | #define wxUSE_SPLITTER 1 | |
43465 | _ACEOF | |
43466 | ||
43467 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
43468 | fi | |
43469 | ||
43470 | if test "$wxUSE_STATBMP" = "yes"; then | |
43471 | cat >>confdefs.h <<\_ACEOF | |
43472 | #define wxUSE_STATBMP 1 | |
43473 | _ACEOF | |
43474 | ||
43475 | USES_CONTROLS=1 | |
43476 | fi | |
43477 | ||
43478 | if test "$wxUSE_STATBOX" = "yes"; then | |
43479 | cat >>confdefs.h <<\_ACEOF | |
43480 | #define wxUSE_STATBOX 1 | |
43481 | _ACEOF | |
43482 | ||
43483 | USES_CONTROLS=1 | |
43484 | fi | |
43485 | ||
43486 | if test "$wxUSE_STATTEXT" = "yes"; then | |
43487 | cat >>confdefs.h <<\_ACEOF | |
43488 | #define wxUSE_STATTEXT 1 | |
43489 | _ACEOF | |
43490 | ||
43491 | USES_CONTROLS=1 | |
43492 | fi | |
43493 | ||
43494 | if test "$wxUSE_STATLINE" = "yes"; then | |
43495 | cat >>confdefs.h <<\_ACEOF | |
43496 | #define wxUSE_STATLINE 1 | |
43497 | _ACEOF | |
43498 | ||
43499 | USES_CONTROLS=1 | |
43500 | fi | |
43501 | ||
43502 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
43503 | cat >>confdefs.h <<\_ACEOF |
43504 | #define wxUSE_NATIVE_STATUSBAR 1 | |
43505 | _ACEOF | |
43506 | ||
a848cd7e SC |
43507 | cat >>confdefs.h <<\_ACEOF |
43508 | #define wxUSE_STATUSBAR 1 | |
43509 | _ACEOF | |
43510 | ||
43511 | USES_CONTROLS=1 | |
43512 | ||
43513 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
43514 | fi | |
43515 | ||
f10e38c4 | 43516 | if test "$wxUSE_TAB_DIALOG" = "yes"; then |
a848cd7e SC |
43517 | cat >>confdefs.h <<\_ACEOF |
43518 | #define wxUSE_TAB_DIALOG 1 | |
43519 | _ACEOF | |
43520 | ||
a848cd7e SC |
43521 | fi |
43522 | ||
43523 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
43524 | cat >>confdefs.h <<\_ACEOF | |
43525 | #define wxUSE_TEXTCTRL 1 | |
43526 | _ACEOF | |
43527 | ||
43528 | USES_CONTROLS=1 | |
43529 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
43530 | fi | |
43531 | ||
43532 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43533 | if test "$wxUSE_COCOA" = 1 ; then | |
43534 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
43535 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
43536 | wxUSE_TOGGLEBTN=no | |
43537 | fi | |
43538 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43539 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
43540 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
43541 | wxUSE_TOGGLEBTN=no | |
43542 | fi | |
43543 | ||
43544 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43545 | cat >>confdefs.h <<\_ACEOF | |
43546 | #define wxUSE_TOGGLEBTN 1 | |
43547 | _ACEOF | |
43548 | ||
43549 | USES_CONTROLS=1 | |
43550 | fi | |
43551 | fi | |
43552 | ||
43553 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
43554 | cat >>confdefs.h <<\_ACEOF | |
43555 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
43556 | _ACEOF | |
43557 | ||
43558 | wxUSE_TOOLBAR="yes" | |
43559 | USES_CONTROLS=1 | |
43560 | fi | |
43561 | ||
43562 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
43563 | cat >>confdefs.h <<\_ACEOF | |
43564 | #define wxUSE_TOOLBAR 1 | |
43565 | _ACEOF | |
43566 | ||
43567 | USES_CONTROLS=1 | |
43568 | ||
43569 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
43570 | wxUSE_TOOLBAR_NATIVE="yes" | |
43571 | fi | |
43572 | ||
43573 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
43574 | cat >>confdefs.h <<\_ACEOF | |
43575 | #define wxUSE_TOOLBAR_NATIVE 1 | |
43576 | _ACEOF | |
43577 | ||
43578 | USES_CONTROLS=1 | |
43579 | fi | |
43580 | ||
43581 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
43582 | fi | |
43583 | ||
43584 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
43585 | if test "$wxUSE_MOTIF" = 1; then | |
43586 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
43587 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
43588 | else | |
43589 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43590 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
43591 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
43592 | else | |
43593 | cat >>confdefs.h <<\_ACEOF | |
43594 | #define wxUSE_TOOLTIPS 1 | |
43595 | _ACEOF | |
43596 | ||
43597 | fi | |
43598 | fi | |
43599 | fi | |
43600 | ||
0093c2fc VZ |
43601 | if test "$wxUSE_TREEBOOK" = "yes"; then |
43602 | cat >>confdefs.h <<\_ACEOF | |
43603 | #define wxUSE_TREEBOOK 1 | |
43604 | _ACEOF | |
43605 | ||
43606 | USES_CONTROLS=1 | |
43607 | fi | |
43608 | ||
5ec3bc43 JS |
43609 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
43610 | cat >>confdefs.h <<\_ACEOF | |
43611 | #define wxUSE_TOOLBOOK 1 | |
43612 | _ACEOF | |
43613 | ||
43614 | USES_CONTROLS=1 | |
43615 | fi | |
43616 | ||
a848cd7e SC |
43617 | if test "$wxUSE_TREECTRL" = "yes"; then |
43618 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43619 | cat >>confdefs.h <<\_ACEOF | |
43620 | #define wxUSE_TREECTRL 1 | |
43621 | _ACEOF | |
43622 | ||
43623 | USES_CONTROLS=1 | |
43624 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
43625 | else | |
43626 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
43627 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43628 | fi | |
43629 | fi | |
43630 | ||
43631 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
43632 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
43633 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
43634 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
43635 | else | |
43636 | if test "$wxUSE_PM" = 1; then | |
43637 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
43638 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
43639 | else | |
43640 | cat >>confdefs.h <<\_ACEOF | |
43641 | #define wxUSE_POPUPWIN 1 | |
43642 | _ACEOF | |
43643 | ||
0b78747f | 43644 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
43645 | |
43646 | USES_CONTROLS=1 | |
43647 | fi | |
43648 | fi | |
43649 | fi | |
43650 | ||
0dcd06dd | 43651 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
43652 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
43653 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
43654 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
43655 | else | |
43656 | cat >>confdefs.h <<\_ACEOF | |
43657 | #define wxUSE_DIALUP_MANAGER 1 | |
43658 | _ACEOF | |
43659 | ||
43660 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
43661 | fi | |
43662 | fi | |
43663 | ||
a848cd7e SC |
43664 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
43665 | if test "$wxUSE_PM" = 1; then | |
43666 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
43667 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
43668 | else | |
43669 | cat >>confdefs.h <<\_ACEOF | |
43670 | #define wxUSE_TIPWINDOW 1 | |
43671 | _ACEOF | |
43672 | ||
43673 | fi | |
43674 | fi | |
43675 | ||
43676 | if test "$USES_CONTROLS" = 1; then | |
43677 | cat >>confdefs.h <<\_ACEOF | |
43678 | #define wxUSE_CONTROLS 1 | |
43679 | _ACEOF | |
43680 | ||
43681 | fi | |
43682 | ||
43683 | ||
43684 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
43685 | cat >>confdefs.h <<\_ACEOF | |
43686 | #define wxUSE_ACCESSIBILITY 1 | |
43687 | _ACEOF | |
43688 | ||
43689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
43690 | fi | |
43691 | ||
38b4a946 VZ |
43692 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
43693 | cat >>confdefs.h <<\_ACEOF | |
43694 | #define wxUSE_DC_CACHEING 1 | |
43695 | _ACEOF | |
43696 | ||
43697 | fi | |
43698 | ||
a848cd7e SC |
43699 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
43700 | cat >>confdefs.h <<\_ACEOF | |
43701 | #define wxUSE_DRAGIMAGE 1 | |
43702 | _ACEOF | |
43703 | ||
43704 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
43705 | fi | |
43706 | ||
43707 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
43708 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
43709 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
43710 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
43711 | else | |
43712 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43713 | #define wxUSE_EXCEPTIONS 1 |
43714 | _ACEOF | |
43715 | ||
07bea8f0 VS |
43716 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
43717 | fi | |
a848cd7e SC |
43718 | fi |
43719 | ||
43720 | USE_HTML=0 | |
43721 | if test "$wxUSE_HTML" = "yes"; then | |
43722 | cat >>confdefs.h <<\_ACEOF | |
43723 | #define wxUSE_HTML 1 | |
43724 | _ACEOF | |
43725 | ||
43726 | USE_HTML=1 | |
43727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
43728 | if test "$wxUSE_MAC" = 1; then |
43729 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
43730 | fi | |
a848cd7e | 43731 | fi |
646b6ec1 | 43732 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 43733 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 43734 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 43735 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
43736 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
43737 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
43738 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
43739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43740 | else | |
43741 | cat >conftest.$ac_ext <<_ACEOF | |
43742 | /* confdefs.h. */ | |
43743 | _ACEOF | |
43744 | cat confdefs.h >>conftest.$ac_ext | |
43745 | cat >>conftest.$ac_ext <<_ACEOF | |
43746 | /* end confdefs.h. */ | |
43747 | #include <Carbon/Carbon.h> | |
43748 | ||
43749 | #include <WebKit/HIWebView.h> | |
43750 | _ACEOF | |
43751 | rm -f conftest.$ac_objext | |
43752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43753 | (eval $ac_compile) 2>conftest.er1 | |
43754 | ac_status=$? | |
43755 | grep -v '^ *+' conftest.er1 >conftest.err | |
43756 | rm -f conftest.er1 | |
43757 | cat conftest.err >&5 | |
43758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43759 | (exit $ac_status); } && | |
f10e38c4 | 43760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
43761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43762 | (eval $ac_try) 2>&5 | |
43763 | ac_status=$? | |
43764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43765 | (exit $ac_status); }; } && | |
43766 | { ac_try='test -s conftest.$ac_objext' | |
43767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43768 | (eval $ac_try) 2>&5 | |
43769 | ac_status=$? | |
43770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43771 | (exit $ac_status); }; }; then | |
43772 | ac_cv_header_WebKit_HIWebView_h=yes | |
43773 | else | |
43774 | echo "$as_me: failed program was:" >&5 | |
43775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43776 | ||
43777 | ac_cv_header_WebKit_HIWebView_h=no | |
43778 | fi | |
43779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43780 | fi | |
43781 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
43782 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
43783 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
43784 | ||
43785 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
43786 | #define wxUSE_WEBKIT 1 |
43787 | _ACEOF | |
43788 | ||
07bea8f0 VS |
43789 | WEBKIT_LINK="-framework WebKit" |
43790 | ||
43791 | else | |
43792 | ||
43793 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
43794 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
43795 | wxUSE_WEBKIT=no | |
43796 | ||
646b6ec1 VS |
43797 | fi |
43798 | ||
07bea8f0 VS |
43799 | |
43800 | CPPFLAGS="$old_CPPFLAGS" | |
43801 | elif test "$wxUSE_COCOA" = 1; then | |
43802 | cat >>confdefs.h <<\_ACEOF | |
43803 | #define wxUSE_WEBKIT 1 | |
43804 | _ACEOF | |
43805 | ||
43806 | else | |
43807 | wxUSE_WEBKIT=no | |
43808 | fi | |
43809 | fi | |
43810 | ||
9a8f0513 VS |
43811 | USE_XRC=0 |
43812 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
43813 | if test "$wxUSE_XML" != "yes"; then |
43814 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
43815 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
43816 | wxUSE_XRC=no | |
43817 | else | |
43818 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
43819 | #define wxUSE_XRC 1 |
43820 | _ACEOF | |
43821 | ||
d2ebf0b7 VS |
43822 | USE_XRC=1 |
43823 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
43824 | fi | |
9a8f0513 | 43825 | fi |
07bea8f0 | 43826 | |
a848cd7e SC |
43827 | if test "$wxUSE_MENUS" = "yes"; then |
43828 | cat >>confdefs.h <<\_ACEOF | |
43829 | #define wxUSE_MENUS 1 | |
43830 | _ACEOF | |
43831 | ||
43832 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
43833 | fi | |
43834 | ||
43835 | if test "$wxUSE_METAFILE" = "yes"; then | |
43836 | cat >>confdefs.h <<\_ACEOF | |
43837 | #define wxUSE_METAFILE 1 | |
43838 | _ACEOF | |
43839 | ||
43840 | fi | |
43841 | ||
43842 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
43843 | cat >>confdefs.h <<\_ACEOF | |
43844 | #define wxUSE_MIMETYPE 1 | |
43845 | _ACEOF | |
43846 | ||
43847 | fi | |
43848 | ||
43849 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
43850 | cat >>confdefs.h <<\_ACEOF | |
43851 | #define wxUSE_MINIFRAME 1 | |
43852 | _ACEOF | |
43853 | ||
43854 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
43855 | fi | |
43856 | ||
43857 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
43858 | cat >>confdefs.h <<\_ACEOF | |
43859 | #define wxUSE_SYSTEM_OPTIONS 1 | |
43860 | _ACEOF | |
43861 | ||
43862 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 43863 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
43864 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
43865 | fi | |
43866 | fi | |
43867 | ||
43868 | ||
43869 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
43870 | cat >>confdefs.h <<\_ACEOF | |
43871 | #define wxUSE_VALIDATORS 1 | |
43872 | _ACEOF | |
43873 | ||
43874 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
43875 | fi | |
43876 | ||
43877 | if test "$wxUSE_PALETTE" = "yes" ; then | |
43878 | cat >>confdefs.h <<\_ACEOF | |
43879 | #define wxUSE_PALETTE 1 | |
43880 | _ACEOF | |
43881 | ||
43882 | fi | |
43883 | ||
43884 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
43885 | LIBS=" -lunicows $LIBS" | |
43886 | fi | |
43887 | ||
91dea314 MW |
43888 | USE_RICHTEXT=0 |
43889 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
43890 | cat >>confdefs.h <<\_ACEOF | |
43891 | #define wxUSE_RICHTEXT 1 | |
43892 | _ACEOF | |
43893 | ||
43894 | USE_RICHTEXT=1 | |
43895 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
43896 | fi | |
43897 | ||
a848cd7e SC |
43898 | |
43899 | if test "$wxUSE_IMAGE" = "yes" ; then | |
43900 | cat >>confdefs.h <<\_ACEOF | |
43901 | #define wxUSE_IMAGE 1 | |
43902 | _ACEOF | |
43903 | ||
43904 | ||
43905 | if test "$wxUSE_GIF" = "yes" ; then | |
43906 | cat >>confdefs.h <<\_ACEOF | |
43907 | #define wxUSE_GIF 1 | |
43908 | _ACEOF | |
43909 | ||
43910 | fi | |
43911 | ||
43912 | if test "$wxUSE_PCX" = "yes" ; then | |
43913 | cat >>confdefs.h <<\_ACEOF | |
43914 | #define wxUSE_PCX 1 | |
43915 | _ACEOF | |
43916 | ||
43917 | fi | |
43918 | ||
43919 | if test "$wxUSE_IFF" = "yes" ; then | |
43920 | cat >>confdefs.h <<\_ACEOF | |
43921 | #define wxUSE_IFF 1 | |
43922 | _ACEOF | |
43923 | ||
43924 | fi | |
43925 | ||
43926 | if test "$wxUSE_PNM" = "yes" ; then | |
43927 | cat >>confdefs.h <<\_ACEOF | |
43928 | #define wxUSE_PNM 1 | |
43929 | _ACEOF | |
43930 | ||
43931 | fi | |
43932 | ||
43933 | if test "$wxUSE_XPM" = "yes" ; then | |
43934 | cat >>confdefs.h <<\_ACEOF | |
43935 | #define wxUSE_XPM 1 | |
43936 | _ACEOF | |
43937 | ||
43938 | fi | |
43939 | ||
43940 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
43941 | cat >>confdefs.h <<\_ACEOF | |
43942 | #define wxUSE_ICO_CUR 1 | |
43943 | _ACEOF | |
43944 | ||
43945 | fi | |
43946 | fi | |
43947 | ||
43948 | ||
43949 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
43950 | cat >>confdefs.h <<\_ACEOF | |
43951 | #define wxUSE_CHOICEDLG 1 | |
43952 | _ACEOF | |
43953 | ||
43954 | fi | |
43955 | ||
43956 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
43957 | cat >>confdefs.h <<\_ACEOF | |
43958 | #define wxUSE_COLOURDLG 1 | |
43959 | _ACEOF | |
43960 | ||
43961 | fi | |
43962 | ||
43963 | if test "$wxUSE_FILEDLG" = "yes"; then | |
43964 | cat >>confdefs.h <<\_ACEOF | |
43965 | #define wxUSE_FILEDLG 1 | |
43966 | _ACEOF | |
43967 | ||
43968 | fi | |
43969 | ||
43970 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
43971 | cat >>confdefs.h <<\_ACEOF | |
43972 | #define wxUSE_FINDREPLDLG 1 | |
43973 | _ACEOF | |
43974 | ||
43975 | fi | |
43976 | ||
43977 | if test "$wxUSE_FONTDLG" = "yes"; then | |
43978 | cat >>confdefs.h <<\_ACEOF | |
43979 | #define wxUSE_FONTDLG 1 | |
43980 | _ACEOF | |
43981 | ||
43982 | fi | |
43983 | ||
43984 | if test "$wxUSE_DIRDLG" = "yes"; then | |
43985 | if test "$wxUSE_TREECTRL" != "yes"; then | |
43986 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
43987 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
43988 | else | |
43989 | cat >>confdefs.h <<\_ACEOF | |
43990 | #define wxUSE_DIRDLG 1 | |
43991 | _ACEOF | |
43992 | ||
43993 | fi | |
43994 | fi | |
43995 | ||
43996 | if test "$wxUSE_MSGDLG" = "yes"; then | |
43997 | cat >>confdefs.h <<\_ACEOF | |
43998 | #define wxUSE_MSGDLG 1 | |
43999 | _ACEOF | |
44000 | ||
44001 | fi | |
44002 | ||
44003 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
44004 | cat >>confdefs.h <<\_ACEOF | |
44005 | #define wxUSE_NUMBERDLG 1 | |
44006 | _ACEOF | |
44007 | ||
44008 | fi | |
44009 | ||
44010 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
44011 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44012 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
44013 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
44014 | else | |
44015 | cat >>confdefs.h <<\_ACEOF | |
44016 | #define wxUSE_PROGRESSDLG 1 | |
44017 | _ACEOF | |
44018 | ||
44019 | fi | |
44020 | fi | |
44021 | ||
44022 | if test "$wxUSE_SPLASH" = "yes"; then | |
44023 | cat >>confdefs.h <<\_ACEOF | |
44024 | #define wxUSE_SPLASH 1 | |
44025 | _ACEOF | |
44026 | ||
2057db16 | 44027 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
44028 | fi |
44029 | ||
44030 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
44031 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44032 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
44033 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
44034 | else | |
44035 | cat >>confdefs.h <<\_ACEOF | |
44036 | #define wxUSE_STARTUP_TIPS 1 | |
44037 | _ACEOF | |
44038 | ||
44039 | fi | |
44040 | fi | |
44041 | ||
44042 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
44043 | cat >>confdefs.h <<\_ACEOF | |
44044 | #define wxUSE_TEXTDLG 1 | |
44045 | _ACEOF | |
44046 | ||
44047 | fi | |
44048 | ||
44049 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
44050 | cat >>confdefs.h <<\_ACEOF | |
44051 | #define wxUSE_WIZARDDLG 1 | |
44052 | _ACEOF | |
44053 | ||
44054 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
44055 | fi | |
44056 | ||
44057 | ||
f10e38c4 VZ |
44058 | USE_MEDIA=0 |
44059 | ||
ce756cb0 | 44060 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
44061 | if test "$wxUSE_GTK" = 1; then |
44062 | wxUSE_GSTREAMER="yes" | |
44063 | ||
f10e38c4 VZ |
44064 | GST_VERSION_MAJOR=0 |
44065 | GST_VERSION_MINOR=10 | |
44066 | GST_VERSION_RELEASE=0 | |
44067 | GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE | |
44068 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
44069 | ||
44070 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 44071 | |
dae87f93 | 44072 | succeeded=no |
ce756cb0 | 44073 | |
dae87f93 RN |
44074 | if test -z "$PKG_CONFIG"; then |
44075 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44076 | set dummy pkg-config; ac_word=$2 | |
44077 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44078 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44079 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
44080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44081 | else | |
44082 | case $PKG_CONFIG in | |
44083 | [\\/]* | ?:[\\/]*) | |
44084 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44085 | ;; | |
44086 | *) | |
44087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44088 | for as_dir in $PATH | |
44089 | do | |
44090 | IFS=$as_save_IFS | |
44091 | test -z "$as_dir" && as_dir=. | |
44092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44093 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44094 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
44095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44096 | break 2 | |
44097 | fi | |
44098 | done | |
44099 | done | |
44100 | ||
44101 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
44102 | ;; | |
44103 | esac | |
44104 | fi | |
44105 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
44106 | ||
44107 | if test -n "$PKG_CONFIG"; then | |
44108 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
44109 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
44110 | else | |
44111 | echo "$as_me:$LINENO: result: no" >&5 | |
44112 | echo "${ECHO_T}no" >&6 | |
44113 | fi | |
44114 | ||
44115 | fi | |
44116 | ||
44117 | if test "$PKG_CONFIG" = "no" ; then | |
44118 | echo "*** The pkg-config script could not be found. Make sure it is" | |
44119 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
44120 | echo "*** to the full path to pkg-config." | |
44121 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
44122 | else | |
44123 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
44124 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
f10e38c4 VZ |
44125 | echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR |
44126 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44127 | gconf-2.0" >&5 | |
44128 | echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR | |
44129 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44130 | gconf-2.0... $ECHO_C" >&6 | |
44131 | ||
44132 | if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR | |
44133 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44134 | gconf-2.0" ; then | |
dae87f93 | 44135 | echo "$as_me:$LINENO: result: yes" >&5 |
ce756cb0 | 44136 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 44137 | succeeded=yes |
ce756cb0 | 44138 | |
f10e38c4 VZ |
44139 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
44140 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
44141 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR | |
44142 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44143 | gconf-2.0"` | |
44144 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 | |
44145 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
44146 | ||
44147 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
44148 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
44149 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR | |
44150 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44151 | gconf-2.0"` | |
44152 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 | |
44153 | echo "${ECHO_T}$GST_LIBS" >&6 | |
dae87f93 | 44154 | else |
f10e38c4 VZ |
44155 | GST_CFLAGS="" |
44156 | GST_LIBS="" | |
dae87f93 RN |
44157 | ## If we have a custom action on failure, don't print errors, but |
44158 | ## do set a variable so people can do so. | |
f10e38c4 VZ |
44159 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR |
44160 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44161 | gconf-2.0"` | |
ce756cb0 | 44162 | |
dae87f93 RN |
44163 | fi |
44164 | ||
44165 | ||
44166 | ||
44167 | else | |
44168 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
44169 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
44170 | fi | |
44171 | fi | |
44172 | ||
44173 | if test $succeeded = yes; then | |
44174 | ||
f10e38c4 VZ |
44175 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
44176 | LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR" | |
ce756cb0 | 44177 | |
ce756cb0 | 44178 | else |
dae87f93 | 44179 | |
f10e38c4 | 44180 | GST_VERSION_MINOR=8 |
dae87f93 RN |
44181 | |
44182 | fi | |
44183 | ||
f10e38c4 VZ |
44184 | else |
44185 | GST_VERSION_MINOR=8 | |
44186 | fi | |
dae87f93 | 44187 | |
f10e38c4 VZ |
44188 | GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE |
44189 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 44190 | |
f10e38c4 | 44191 | if test x$GST_VERSION_MINOR = x8; then |
dae87f93 | 44192 | |
f10e38c4 | 44193 | succeeded=no |
dae87f93 | 44194 | |
f10e38c4 VZ |
44195 | if test -z "$PKG_CONFIG"; then |
44196 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44197 | set dummy pkg-config; ac_word=$2 | |
dae87f93 RN |
44198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
44199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f10e38c4 | 44200 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
dae87f93 RN |
44201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
44202 | else | |
f10e38c4 VZ |
44203 | case $PKG_CONFIG in |
44204 | [\\/]* | ?:[\\/]*) | |
44205 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44206 | ;; | |
44207 | *) | |
44208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dae87f93 RN |
44209 | for as_dir in $PATH |
44210 | do | |
44211 | IFS=$as_save_IFS | |
44212 | test -z "$as_dir" && as_dir=. | |
44213 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44214 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
f10e38c4 | 44215 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
dae87f93 RN |
44216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
44217 | break 2 | |
ce756cb0 | 44218 | fi |
dae87f93 RN |
44219 | done |
44220 | done | |
44221 | ||
f10e38c4 VZ |
44222 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
44223 | ;; | |
44224 | esac | |
dae87f93 | 44225 | fi |
f10e38c4 VZ |
44226 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
44227 | ||
44228 | if test -n "$PKG_CONFIG"; then | |
44229 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
44230 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
dae87f93 RN |
44231 | else |
44232 | echo "$as_me:$LINENO: result: no" >&5 | |
44233 | echo "${ECHO_T}no" >&6 | |
44234 | fi | |
44235 | ||
f10e38c4 | 44236 | fi |
ce756cb0 | 44237 | |
f10e38c4 VZ |
44238 | if test "$PKG_CONFIG" = "no" ; then |
44239 | echo "*** The pkg-config script could not be found. Make sure it is" | |
44240 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
44241 | echo "*** to the full path to pkg-config." | |
44242 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
44243 | else | |
44244 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
44245 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
44246 | echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR | |
44247 | gstreamer-interfaces-$GST_MAJORMINOR | |
44248 | gstreamer-gconf-$GST_MAJORMINOR" >&5 | |
44249 | echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR | |
44250 | gstreamer-interfaces-$GST_MAJORMINOR | |
44251 | gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6 | |
44252 | ||
44253 | if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR | |
44254 | gstreamer-interfaces-$GST_MAJORMINOR | |
44255 | gstreamer-gconf-$GST_MAJORMINOR" ; then | |
44256 | echo "$as_me:$LINENO: result: yes" >&5 | |
44257 | echo "${ECHO_T}yes" >&6 | |
44258 | succeeded=yes | |
dae87f93 | 44259 | |
f10e38c4 VZ |
44260 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
44261 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
44262 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR | |
44263 | gstreamer-interfaces-$GST_MAJORMINOR | |
44264 | gstreamer-gconf-$GST_MAJORMINOR"` | |
44265 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 | |
44266 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
44267 | ||
44268 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
44269 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
44270 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR | |
44271 | gstreamer-interfaces-$GST_MAJORMINOR | |
44272 | gstreamer-gconf-$GST_MAJORMINOR"` | |
44273 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 | |
44274 | echo "${ECHO_T}$GST_LIBS" >&6 | |
44275 | else | |
44276 | GST_CFLAGS="" | |
44277 | GST_LIBS="" | |
44278 | ## If we have a custom action on failure, don't print errors, but | |
44279 | ## do set a variable so people can do so. | |
44280 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR | |
44281 | gstreamer-interfaces-$GST_MAJORMINOR | |
44282 | gstreamer-gconf-$GST_MAJORMINOR"` | |
dae87f93 | 44283 | |
dae87f93 RN |
44284 | fi |
44285 | ||
44286 | ||
ce756cb0 | 44287 | |
f10e38c4 VZ |
44288 | else |
44289 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
44290 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
44291 | fi | |
44292 | fi | |
ce756cb0 | 44293 | |
f10e38c4 | 44294 | if test $succeeded = yes; then |
dae87f93 | 44295 | |
f10e38c4 VZ |
44296 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
44297 | LIBS="$LIBS $GST_LIBS" | |
dae87f93 | 44298 | |
f10e38c4 | 44299 | else |
ce756cb0 | 44300 | |
f10e38c4 VZ |
44301 | { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5 |
44302 | echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;} | |
44303 | wxUSE_GSTREAMER="no" | |
ce756cb0 | 44304 | |
f10e38c4 | 44305 | fi |
ce756cb0 | 44306 | |
dae87f93 | 44307 | fi |
ce756cb0 | 44308 | |
f10e38c4 | 44309 | |
dae87f93 RN |
44310 | if test "$wxUSE_GSTREAMER" = "yes"; then |
44311 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
44312 | #define wxUSE_GSTREAMER 1 |
44313 | _ACEOF | |
44314 | ||
dae87f93 RN |
44315 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
44316 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
44317 | fi |
44318 | fi | |
f10e38c4 | 44319 | USE_MEDIA=1 |
ce756cb0 RN |
44320 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" |
44321 | cat >>confdefs.h <<\_ACEOF | |
44322 | #define wxUSE_MEDIACTRL 1 | |
44323 | _ACEOF | |
44324 | ||
44325 | fi | |
44326 | ||
44327 | ||
a848cd7e SC |
44328 | if test "$cross_compiling" = "yes"; then |
44329 | OSINFO="\"$host\"" | |
44330 | else | |
44331 | OSINFO=`uname -s -r -m` | |
44332 | OSINFO="\"$OSINFO\"" | |
44333 | fi | |
44334 | ||
44335 | cat >>confdefs.h <<_ACEOF | |
44336 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
44337 | _ACEOF | |
44338 | ||
44339 | ||
44340 | ||
44341 | if test "x$prefix" != "xNONE"; then | |
44342 | wxPREFIX=$prefix | |
44343 | else | |
44344 | wxPREFIX=$ac_default_prefix | |
44345 | fi | |
44346 | ||
44347 | cat >>confdefs.h <<_ACEOF | |
44348 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
44349 | _ACEOF | |
44350 | ||
44351 | ||
a848cd7e SC |
44352 | |
44353 | ||
44354 | CORE_BASE_LIBS="net base" | |
44355 | CORE_GUI_LIBS="adv core" | |
44356 | ||
44357 | if test "$wxUSE_XML" = "yes" ; then | |
44358 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
44359 | fi | |
44360 | if test "$wxUSE_ODBC" != "no" ; then | |
44361 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
44362 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
44363 | fi | |
44364 | if test "$wxUSE_HTML" = "yes" ; then | |
44365 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
44366 | fi | |
61639efb VZ |
44367 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
44368 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
44369 | fi | |
9a8f0513 VS |
44370 | if test "$wxUSE_XRC" = "yes" ; then |
44371 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
44372 | fi | |
a848cd7e SC |
44373 | |
44374 | if test "$wxUSE_GUI" != "yes"; then | |
44375 | CORE_GUI_LIBS="" | |
44376 | fi | |
44377 | ||
44378 | ||
44379 | ||
44380 | ||
44381 | ||
44382 | ||
44383 | ||
a848cd7e | 44384 | if test "$wxUSE_MAC" = 1 ; then |
a98bf0c0 | 44385 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
44386 | if test "$USE_DARWIN" = 1; then |
44387 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44388 | else | |
44389 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
44390 | fi | |
07bea8f0 | 44391 | fi |
5dcf30a0 | 44392 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
44393 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
44394 | else | |
44395 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 44396 | fi |
a848cd7e SC |
44397 | fi |
44398 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 44399 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
44400 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
44401 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44402 | fi | |
a848cd7e | 44403 | fi |
19b27e78 MW |
44404 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
44405 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
44406 | fi | |
a848cd7e SC |
44407 | |
44408 | ||
44409 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
44410 | ||
44411 | have_cos=0 | |
44412 | have_floor=0 | |
44413 | ||
44414 | for ac_func in cos | |
44415 | do | |
44416 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44417 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44418 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44419 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44421 | else | |
44422 | cat >conftest.$ac_ext <<_ACEOF | |
44423 | /* confdefs.h. */ | |
44424 | _ACEOF | |
44425 | cat confdefs.h >>conftest.$ac_ext | |
44426 | cat >>conftest.$ac_ext <<_ACEOF | |
44427 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44428 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44429 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44430 | #define $ac_func innocuous_$ac_func | |
44431 | ||
a848cd7e SC |
44432 | /* System header to define __stub macros and hopefully few prototypes, |
44433 | which can conflict with char $ac_func (); below. | |
44434 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44435 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44436 | |
a848cd7e SC |
44437 | #ifdef __STDC__ |
44438 | # include <limits.h> | |
44439 | #else | |
44440 | # include <assert.h> | |
44441 | #endif | |
ac1cb8d3 VS |
44442 | |
44443 | #undef $ac_func | |
44444 | ||
a848cd7e SC |
44445 | /* Override any gcc2 internal prototype to avoid an error. */ |
44446 | #ifdef __cplusplus | |
44447 | extern "C" | |
44448 | { | |
44449 | #endif | |
44450 | /* We use char because int might match the return type of a gcc2 | |
44451 | builtin and then its argument prototype would still apply. */ | |
44452 | char $ac_func (); | |
44453 | /* The GNU C library defines this for functions which it implements | |
44454 | to always fail with ENOSYS. Some functions are actually named | |
44455 | something starting with __ and the normal name is an alias. */ | |
44456 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44457 | choke me | |
44458 | #else | |
44459 | char (*f) () = $ac_func; | |
44460 | #endif | |
44461 | #ifdef __cplusplus | |
44462 | } | |
44463 | #endif | |
44464 | ||
44465 | int | |
44466 | main () | |
44467 | { | |
44468 | return f != $ac_func; | |
44469 | ; | |
44470 | return 0; | |
44471 | } | |
44472 | _ACEOF | |
44473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44475 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44476 | ac_status=$? |
ac1cb8d3 VS |
44477 | grep -v '^ *+' conftest.er1 >conftest.err |
44478 | rm -f conftest.er1 | |
44479 | cat conftest.err >&5 | |
a848cd7e SC |
44480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44481 | (exit $ac_status); } && | |
f10e38c4 | 44482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44484 | (eval $ac_try) 2>&5 | |
44485 | ac_status=$? | |
44486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44487 | (exit $ac_status); }; } && | |
44488 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44490 | (eval $ac_try) 2>&5 | |
44491 | ac_status=$? | |
44492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44493 | (exit $ac_status); }; }; then | |
44494 | eval "$as_ac_var=yes" | |
44495 | else | |
44496 | echo "$as_me: failed program was:" >&5 | |
44497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44498 | ||
44499 | eval "$as_ac_var=no" | |
44500 | fi | |
ac1cb8d3 VS |
44501 | rm -f conftest.err conftest.$ac_objext \ |
44502 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44503 | fi |
44504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44505 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44506 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44507 | cat >>confdefs.h <<_ACEOF | |
44508 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44509 | _ACEOF | |
44510 | have_cos=1 | |
44511 | fi | |
44512 | done | |
44513 | ||
44514 | ||
44515 | for ac_func in floor | |
44516 | do | |
44517 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44518 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44519 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44520 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44522 | else | |
44523 | cat >conftest.$ac_ext <<_ACEOF | |
44524 | /* confdefs.h. */ | |
44525 | _ACEOF | |
44526 | cat confdefs.h >>conftest.$ac_ext | |
44527 | cat >>conftest.$ac_ext <<_ACEOF | |
44528 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44529 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44530 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44531 | #define $ac_func innocuous_$ac_func | |
44532 | ||
a848cd7e SC |
44533 | /* System header to define __stub macros and hopefully few prototypes, |
44534 | which can conflict with char $ac_func (); below. | |
44535 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44536 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44537 | |
a848cd7e SC |
44538 | #ifdef __STDC__ |
44539 | # include <limits.h> | |
44540 | #else | |
44541 | # include <assert.h> | |
44542 | #endif | |
ac1cb8d3 VS |
44543 | |
44544 | #undef $ac_func | |
44545 | ||
a848cd7e SC |
44546 | /* Override any gcc2 internal prototype to avoid an error. */ |
44547 | #ifdef __cplusplus | |
44548 | extern "C" | |
44549 | { | |
44550 | #endif | |
44551 | /* We use char because int might match the return type of a gcc2 | |
44552 | builtin and then its argument prototype would still apply. */ | |
44553 | char $ac_func (); | |
44554 | /* The GNU C library defines this for functions which it implements | |
44555 | to always fail with ENOSYS. Some functions are actually named | |
44556 | something starting with __ and the normal name is an alias. */ | |
44557 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44558 | choke me | |
44559 | #else | |
44560 | char (*f) () = $ac_func; | |
44561 | #endif | |
44562 | #ifdef __cplusplus | |
44563 | } | |
44564 | #endif | |
44565 | ||
44566 | int | |
44567 | main () | |
44568 | { | |
44569 | return f != $ac_func; | |
44570 | ; | |
44571 | return 0; | |
44572 | } | |
44573 | _ACEOF | |
44574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44576 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44577 | ac_status=$? |
ac1cb8d3 VS |
44578 | grep -v '^ *+' conftest.er1 >conftest.err |
44579 | rm -f conftest.er1 | |
44580 | cat conftest.err >&5 | |
a848cd7e SC |
44581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44582 | (exit $ac_status); } && | |
f10e38c4 | 44583 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44585 | (eval $ac_try) 2>&5 | |
44586 | ac_status=$? | |
44587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44588 | (exit $ac_status); }; } && | |
44589 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44591 | (eval $ac_try) 2>&5 | |
44592 | ac_status=$? | |
44593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44594 | (exit $ac_status); }; }; then | |
44595 | eval "$as_ac_var=yes" | |
44596 | else | |
44597 | echo "$as_me: failed program was:" >&5 | |
44598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44599 | ||
44600 | eval "$as_ac_var=no" | |
44601 | fi | |
ac1cb8d3 VS |
44602 | rm -f conftest.err conftest.$ac_objext \ |
44603 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44604 | fi |
44605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44606 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44607 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44608 | cat >>confdefs.h <<_ACEOF | |
44609 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44610 | _ACEOF | |
44611 | have_floor=1 | |
44612 | fi | |
44613 | done | |
44614 | ||
44615 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
44616 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
44617 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
44618 | echo "$as_me:$LINENO: result: yes" >&5 | |
44619 | echo "${ECHO_T}yes" >&6 | |
44620 | else | |
44621 | echo "$as_me:$LINENO: result: no" >&5 | |
44622 | echo "${ECHO_T}no" >&6 | |
44623 | LIBS="$LIBS -lm" | |
44624 | # use different functions to avoid configure caching | |
44625 | have_sin=0 | |
44626 | have_ceil=0 | |
44627 | ||
44628 | for ac_func in sin | |
44629 | do | |
44630 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44631 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44632 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44633 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44635 | else | |
44636 | cat >conftest.$ac_ext <<_ACEOF | |
44637 | /* confdefs.h. */ | |
44638 | _ACEOF | |
44639 | cat confdefs.h >>conftest.$ac_ext | |
44640 | cat >>conftest.$ac_ext <<_ACEOF | |
44641 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44642 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44643 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44644 | #define $ac_func innocuous_$ac_func | |
44645 | ||
a848cd7e SC |
44646 | /* System header to define __stub macros and hopefully few prototypes, |
44647 | which can conflict with char $ac_func (); below. | |
44648 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44649 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44650 | |
a848cd7e SC |
44651 | #ifdef __STDC__ |
44652 | # include <limits.h> | |
44653 | #else | |
44654 | # include <assert.h> | |
44655 | #endif | |
ac1cb8d3 VS |
44656 | |
44657 | #undef $ac_func | |
44658 | ||
a848cd7e SC |
44659 | /* Override any gcc2 internal prototype to avoid an error. */ |
44660 | #ifdef __cplusplus | |
44661 | extern "C" | |
44662 | { | |
44663 | #endif | |
44664 | /* We use char because int might match the return type of a gcc2 | |
44665 | builtin and then its argument prototype would still apply. */ | |
44666 | char $ac_func (); | |
44667 | /* The GNU C library defines this for functions which it implements | |
44668 | to always fail with ENOSYS. Some functions are actually named | |
44669 | something starting with __ and the normal name is an alias. */ | |
44670 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44671 | choke me | |
44672 | #else | |
44673 | char (*f) () = $ac_func; | |
44674 | #endif | |
44675 | #ifdef __cplusplus | |
44676 | } | |
44677 | #endif | |
44678 | ||
44679 | int | |
44680 | main () | |
44681 | { | |
44682 | return f != $ac_func; | |
44683 | ; | |
44684 | return 0; | |
44685 | } | |
44686 | _ACEOF | |
44687 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44689 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44690 | ac_status=$? |
ac1cb8d3 VS |
44691 | grep -v '^ *+' conftest.er1 >conftest.err |
44692 | rm -f conftest.er1 | |
44693 | cat conftest.err >&5 | |
a848cd7e SC |
44694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44695 | (exit $ac_status); } && | |
f10e38c4 | 44696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44698 | (eval $ac_try) 2>&5 | |
44699 | ac_status=$? | |
44700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44701 | (exit $ac_status); }; } && | |
44702 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44704 | (eval $ac_try) 2>&5 | |
44705 | ac_status=$? | |
44706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44707 | (exit $ac_status); }; }; then | |
44708 | eval "$as_ac_var=yes" | |
44709 | else | |
44710 | echo "$as_me: failed program was:" >&5 | |
44711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44712 | ||
44713 | eval "$as_ac_var=no" | |
44714 | fi | |
ac1cb8d3 VS |
44715 | rm -f conftest.err conftest.$ac_objext \ |
44716 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44717 | fi |
44718 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44719 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44720 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44721 | cat >>confdefs.h <<_ACEOF | |
44722 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44723 | _ACEOF | |
44724 | have_sin=1 | |
44725 | fi | |
44726 | done | |
44727 | ||
44728 | ||
44729 | for ac_func in ceil | |
44730 | do | |
44731 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44732 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44733 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44734 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44736 | else | |
44737 | cat >conftest.$ac_ext <<_ACEOF | |
44738 | /* confdefs.h. */ | |
44739 | _ACEOF | |
44740 | cat confdefs.h >>conftest.$ac_ext | |
44741 | cat >>conftest.$ac_ext <<_ACEOF | |
44742 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44743 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44744 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44745 | #define $ac_func innocuous_$ac_func | |
44746 | ||
a848cd7e SC |
44747 | /* System header to define __stub macros and hopefully few prototypes, |
44748 | which can conflict with char $ac_func (); below. | |
44749 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44750 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44751 | |
a848cd7e SC |
44752 | #ifdef __STDC__ |
44753 | # include <limits.h> | |
44754 | #else | |
44755 | # include <assert.h> | |
44756 | #endif | |
ac1cb8d3 VS |
44757 | |
44758 | #undef $ac_func | |
44759 | ||
a848cd7e SC |
44760 | /* Override any gcc2 internal prototype to avoid an error. */ |
44761 | #ifdef __cplusplus | |
44762 | extern "C" | |
44763 | { | |
44764 | #endif | |
44765 | /* We use char because int might match the return type of a gcc2 | |
44766 | builtin and then its argument prototype would still apply. */ | |
44767 | char $ac_func (); | |
44768 | /* The GNU C library defines this for functions which it implements | |
44769 | to always fail with ENOSYS. Some functions are actually named | |
44770 | something starting with __ and the normal name is an alias. */ | |
44771 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44772 | choke me | |
44773 | #else | |
44774 | char (*f) () = $ac_func; | |
44775 | #endif | |
44776 | #ifdef __cplusplus | |
44777 | } | |
44778 | #endif | |
44779 | ||
44780 | int | |
44781 | main () | |
44782 | { | |
44783 | return f != $ac_func; | |
44784 | ; | |
44785 | return 0; | |
44786 | } | |
44787 | _ACEOF | |
44788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44790 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44791 | ac_status=$? |
ac1cb8d3 VS |
44792 | grep -v '^ *+' conftest.er1 >conftest.err |
44793 | rm -f conftest.er1 | |
44794 | cat conftest.err >&5 | |
a848cd7e SC |
44795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44796 | (exit $ac_status); } && | |
f10e38c4 | 44797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44799 | (eval $ac_try) 2>&5 | |
44800 | ac_status=$? | |
44801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44802 | (exit $ac_status); }; } && | |
44803 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44805 | (eval $ac_try) 2>&5 | |
44806 | ac_status=$? | |
44807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44808 | (exit $ac_status); }; }; then | |
44809 | eval "$as_ac_var=yes" | |
44810 | else | |
44811 | echo "$as_me: failed program was:" >&5 | |
44812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44813 | ||
44814 | eval "$as_ac_var=no" | |
44815 | fi | |
ac1cb8d3 VS |
44816 | rm -f conftest.err conftest.$ac_objext \ |
44817 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44818 | fi |
44819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44820 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44821 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44822 | cat >>confdefs.h <<_ACEOF | |
44823 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44824 | _ACEOF | |
44825 | have_ceil=1 | |
44826 | fi | |
44827 | done | |
44828 | ||
44829 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
44830 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
44831 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
44832 | echo "$as_me:$LINENO: result: yes" >&5 | |
44833 | echo "${ECHO_T}yes" >&6 | |
44834 | else | |
44835 | echo "$as_me:$LINENO: result: no" >&5 | |
44836 | echo "${ECHO_T}no" >&6 | |
44837 | # not sure we should warn the user, crash, etc. | |
44838 | fi | |
44839 | fi | |
44840 | ||
44841 | if test "$wxUSE_GUI" = "yes"; then | |
44842 | ||
44843 | ||
8bce5cda MW |
44844 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
44845 | dynamic erase event exec font image minimal mobile \ | |
44846 | mobile/wxedit mobile/styles propsize render \ | |
9e39d889 | 44847 | rotate shaped vscroll widgets" |
a848cd7e SC |
44848 | |
44849 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
44850 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
44851 | fi | |
0b78747f | 44852 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
44853 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
44854 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
44855 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
44856 | fi | |
44857 | fi | |
44858 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
44859 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 44860 | fi |
a848cd7e SC |
44861 | else |
44862 | SAMPLES_SUBDIRS="console" | |
44863 | fi | |
44864 | ||
44865 | ||
48f625bc | 44866 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
44867 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
44868 | elif test "$GCC" = yes ; then | |
44869 | CWARNINGS="-Wall -Wundef" | |
44870 | fi | |
44871 | ||
48f625bc | 44872 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 44873 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
44874 | elif test "$GXX" = yes ; then |
44875 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 44876 | fi |
a848cd7e | 44877 | |
a848cd7e | 44878 | |
5ff751d6 VZ |
44879 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
44880 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
44881 | ||
44882 | ||
c92ad099 | 44883 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 44884 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
44885 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
44886 | $CPPFLAGS ` | |
5ff751d6 | 44887 | |
8aeeb05c | 44888 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 44889 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 44890 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
44891 | |
44892 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
44893 | ||
a848cd7e | 44894 | |
95986553 DE |
44895 | if test "x$MWCC" = "xyes"; then |
44896 | ||
44897 | CC="$CC -cwd source -I-" | |
44898 | CXX="$CXX -cwd source -I-" | |
44899 | fi | |
44900 | ||
a848cd7e | 44901 | |
0c3c69fc | 44902 | LIBS=`echo $LIBS` |
a848cd7e SC |
44903 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
44904 | EXTRALIBS_XML="$EXPAT_LINK" | |
44905 | EXTRALIBS_HTML="$MSPACK_LINK" | |
44906 | EXTRALIBS_ODBC="$ODBC_LINK" | |
44907 | if test "$wxUSE_GUI" = "yes"; then | |
3565d135 | 44908 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
44909 | fi |
44910 | if test "$wxUSE_OPENGL" = "yes"; then | |
44911 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
44912 | fi | |
44913 | ||
8aeeb05c | 44914 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 44915 | |
5ff751d6 | 44916 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
44917 | |
44918 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 44919 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
44920 | fi |
44921 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 44922 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
44923 | fi |
44924 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 44925 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
44926 | fi |
44927 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 44928 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
44929 | fi |
44930 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 44931 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
44932 | fi |
44933 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 44934 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
44935 | fi |
44936 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 44937 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
44938 | fi |
44939 | ||
44940 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 44941 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
44942 | done |
44943 | ||
44944 | ||
44945 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
44946 | WXUNIV=1 | |
44947 | else | |
44948 | WXUNIV=0 | |
44949 | fi | |
44950 | ||
44951 | ||
44952 | ||
44953 | ||
44954 | ||
44955 | ||
44956 | ||
44957 | ||
44958 | ||
44959 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
44960 | MONOLITHIC=1 | |
44961 | else | |
44962 | MONOLITHIC=0 | |
44963 | fi | |
44964 | ||
44965 | if test $wxUSE_PLUGINS = "yes" ; then | |
44966 | USE_PLUGINS=1 | |
44967 | else | |
44968 | USE_PLUGINS=0 | |
44969 | fi | |
44970 | ||
44971 | if test $wxUSE_ODBC != "no" ; then | |
44972 | USE_ODBC=1 | |
44973 | else | |
44974 | USE_ODBC=0 | |
44975 | fi | |
44976 | ||
16358932 VZ |
44977 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
44978 | USE_QA=1 | |
44979 | else | |
44980 | USE_QA=0 | |
44981 | fi | |
44982 | ||
a848cd7e SC |
44983 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
44984 | OFFICIAL_BUILD=1 | |
44985 | else | |
44986 | OFFICIAL_BUILD=0 | |
44987 | fi | |
44988 | ||
44989 | ||
44990 | ||
44991 | ||
44992 | ||
44993 | ||
44994 | ||
44995 | ||
44996 | ||
44997 | ||
44998 | ||
44999 | ||
45000 | ||
45001 | ||
45002 | ||
45003 | ||
45004 | ||
45005 | ||
45006 | ||
ceec2216 | 45007 | |
d1c38808 | 45008 | |
3565d135 | 45009 | |
a848cd7e SC |
45010 | |
45011 | ||
45012 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
45013 | ||
45014 | ||
45015 | ||
45016 | ||
45017 | ||
45018 | ||
45019 | ||
45020 | ||
4d4ff94c VZ |
45021 | case "$TOOLKIT" in |
45022 | GTK) | |
45023 | TOOLKIT_USER="GTK+" | |
45024 | if test "$WXGTK20" = 1; then | |
45025 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
45026 | fi | |
9a8f0513 | 45027 | ;; |
4d4ff94c VZ |
45028 | |
45029 | *) | |
45030 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 45031 | ;; |
4d4ff94c | 45032 | esac |
a848cd7e | 45033 | |
fb00f58d JS |
45034 | if test "$wxUSE_WINE" = "yes"; then |
45035 | BAKEFILE_FORCE_PLATFORM=win32 | |
45036 | fi | |
45037 | ||
7afc46ab KO |
45038 | if test "$wxUSE_MAC" = 1 ; then |
45039 | if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then | |
45040 | CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS" | |
45041 | CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS" | |
45042 | LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS" | |
45043 | bk_use_pch=no | |
45044 | fi | |
45045 | # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)? | |
45046 | # The makefile currently uses AR and RANLIB, which libtool apparently supercedes. | |
45047 | # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it) | |
45048 | fi | |
45049 | ||
9a8f0513 | 45050 | |
1e9e8aba DE |
45051 | |
45052 | ||
a848cd7e | 45053 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 VZ |
45054 | if test "x${host}" = "x" ; then |
45055 | { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5 | |
45056 | echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;} | |
45057 | { (exit 1); exit 1; }; } | |
45058 | fi | |
45059 | ||
a848cd7e SC |
45060 | BAKEFILE_HOST="${host}" |
45061 | fi | |
45062 | ||
45063 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
45064 | ||
45065 | if test -n "$ac_tool_prefix"; then | |
45066 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
45067 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
45068 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45070 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
45071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45072 | else | |
45073 | if test -n "$RANLIB"; then | |
45074 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
45075 | else | |
45076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45077 | for as_dir in $PATH | |
45078 | do | |
45079 | IFS=$as_save_IFS | |
45080 | test -z "$as_dir" && as_dir=. | |
45081 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45082 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45083 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
45084 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45085 | break 2 | |
45086 | fi | |
45087 | done | |
45088 | done | |
45089 | ||
45090 | fi | |
45091 | fi | |
45092 | RANLIB=$ac_cv_prog_RANLIB | |
45093 | if test -n "$RANLIB"; then | |
45094 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
45095 | echo "${ECHO_T}$RANLIB" >&6 | |
45096 | else | |
45097 | echo "$as_me:$LINENO: result: no" >&5 | |
45098 | echo "${ECHO_T}no" >&6 | |
45099 | fi | |
45100 | ||
45101 | fi | |
45102 | if test -z "$ac_cv_prog_RANLIB"; then | |
45103 | ac_ct_RANLIB=$RANLIB | |
45104 | # Extract the first word of "ranlib", so it can be a program name with args. | |
45105 | set dummy ranlib; ac_word=$2 | |
45106 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45107 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45108 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
45109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45110 | else | |
45111 | if test -n "$ac_ct_RANLIB"; then | |
45112 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
45113 | else | |
45114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45115 | for as_dir in $PATH | |
45116 | do | |
45117 | IFS=$as_save_IFS | |
45118 | test -z "$as_dir" && as_dir=. | |
45119 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45120 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45121 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
45122 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45123 | break 2 | |
45124 | fi | |
45125 | done | |
45126 | done | |
45127 | ||
45128 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
45129 | fi | |
45130 | fi | |
45131 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
45132 | if test -n "$ac_ct_RANLIB"; then | |
45133 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
45134 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
45135 | else | |
45136 | echo "$as_me:$LINENO: result: no" >&5 | |
45137 | echo "${ECHO_T}no" >&6 | |
45138 | fi | |
45139 | ||
45140 | RANLIB=$ac_ct_RANLIB | |
45141 | else | |
45142 | RANLIB="$ac_cv_prog_RANLIB" | |
45143 | fi | |
45144 | ||
45145 | # Find a good install program. We prefer a C program (faster), | |
45146 | # so one script is as good as another. But avoid the broken or | |
45147 | # incompatible versions: | |
45148 | # SysV /etc/install, /usr/sbin/install | |
45149 | # SunOS /usr/etc/install | |
45150 | # IRIX /sbin/install | |
45151 | # AIX /bin/install | |
45152 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
45153 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
45154 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
45155 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 45156 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
45157 | # ./install, which can be erroneously created by make from ./install.sh. |
45158 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
45159 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
45160 | if test -z "$INSTALL"; then | |
45161 | if test "${ac_cv_path_install+set}" = set; then | |
45162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45163 | else | |
45164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45165 | for as_dir in $PATH | |
45166 | do | |
45167 | IFS=$as_save_IFS | |
45168 | test -z "$as_dir" && as_dir=. | |
45169 | # Account for people who put trailing slashes in PATH elements. | |
45170 | case $as_dir/ in | |
45171 | ./ | .// | /cC/* | \ | |
45172 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 45173 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
45174 | /usr/ucb/* ) ;; |
45175 | *) | |
45176 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
45177 | # Don't use installbsd from OSF since it installs stuff as root | |
45178 | # by default. | |
45179 | for ac_prog in ginstall scoinst install; do | |
45180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
45181 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
45182 | if test $ac_prog = install && | |
45183 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45184 | # AIX install. It has an incompatible calling convention. | |
45185 | : | |
45186 | elif test $ac_prog = install && | |
45187 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45188 | # program-specific install script used by HP pwplus--don't use. | |
45189 | : | |
45190 | else | |
45191 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
45192 | break 3 | |
45193 | fi | |
45194 | fi | |
a848cd7e SC |
45195 | done |
45196 | done | |
45197 | ;; | |
45198 | esac | |
45199 | done | |
45200 | ||
45201 | ||
45202 | fi | |
45203 | if test "${ac_cv_path_install+set}" = set; then | |
45204 | INSTALL=$ac_cv_path_install | |
45205 | else | |
45206 | # As a last resort, use the slow shell script. We don't cache a | |
45207 | # path for INSTALL within a source directory, because that will | |
45208 | # break other packages using the cache if that directory is | |
45209 | # removed, or if the path is relative. | |
45210 | INSTALL=$ac_install_sh | |
45211 | fi | |
45212 | fi | |
45213 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
45214 | echo "${ECHO_T}$INSTALL" >&6 | |
45215 | ||
45216 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
45217 | # It thinks the first close brace ends the variable substitution. | |
45218 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
45219 | ||
45220 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
45221 | ||
45222 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
45223 | ||
45224 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
45225 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
45226 | LN_S=$as_ln_s | |
45227 | if test "$LN_S" = "ln -s"; then | |
45228 | echo "$as_me:$LINENO: result: yes" >&5 | |
45229 | echo "${ECHO_T}yes" >&6 | |
45230 | else | |
45231 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
45232 | echo "${ECHO_T}no, using $LN_S" >&6 | |
45233 | fi | |
45234 | ||
45235 | ||
45236 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45237 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45238 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45239 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45241 | else | |
45242 | cat >conftest.make <<\_ACEOF | |
45243 | all: | |
45244 | @echo 'ac_maketemp="$(MAKE)"' | |
45245 | _ACEOF | |
45246 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45247 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45248 | if test -n "$ac_maketemp"; then | |
45249 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45250 | else | |
45251 | eval ac_cv_prog_make_${ac_make}_set=no | |
45252 | fi | |
45253 | rm -f conftest.make | |
45254 | fi | |
45255 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45256 | echo "$as_me:$LINENO: result: yes" >&5 | |
45257 | echo "${ECHO_T}yes" >&6 | |
45258 | SET_MAKE= | |
45259 | else | |
45260 | echo "$as_me:$LINENO: result: no" >&5 | |
45261 | echo "${ECHO_T}no" >&6 | |
45262 | SET_MAKE="MAKE=${MAKE-make}" | |
45263 | fi | |
45264 | ||
45265 | ||
45266 | ||
45267 | if test -n "$ac_tool_prefix"; then | |
45268 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
45269 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
45270 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45272 | if test "${ac_cv_prog_AR+set}" = set; then | |
45273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45274 | else | |
45275 | if test -n "$AR"; then | |
45276 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
45277 | else | |
45278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45279 | for as_dir in $PATH | |
45280 | do | |
45281 | IFS=$as_save_IFS | |
45282 | test -z "$as_dir" && as_dir=. | |
45283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45284 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45285 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
45286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45287 | break 2 | |
45288 | fi | |
45289 | done | |
45290 | done | |
45291 | ||
45292 | fi | |
45293 | fi | |
45294 | AR=$ac_cv_prog_AR | |
45295 | if test -n "$AR"; then | |
45296 | echo "$as_me:$LINENO: result: $AR" >&5 | |
45297 | echo "${ECHO_T}$AR" >&6 | |
45298 | else | |
45299 | echo "$as_me:$LINENO: result: no" >&5 | |
45300 | echo "${ECHO_T}no" >&6 | |
45301 | fi | |
45302 | ||
45303 | fi | |
45304 | if test -z "$ac_cv_prog_AR"; then | |
45305 | ac_ct_AR=$AR | |
45306 | # Extract the first word of "ar", so it can be a program name with args. | |
45307 | set dummy ar; ac_word=$2 | |
45308 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45310 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
45311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45312 | else | |
45313 | if test -n "$ac_ct_AR"; then | |
45314 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
45315 | else | |
45316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45317 | for as_dir in $PATH | |
45318 | do | |
45319 | IFS=$as_save_IFS | |
45320 | test -z "$as_dir" && as_dir=. | |
45321 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45322 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45323 | ac_cv_prog_ac_ct_AR="ar" | |
45324 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45325 | break 2 | |
45326 | fi | |
45327 | done | |
45328 | done | |
45329 | ||
45330 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
45331 | fi | |
45332 | fi | |
45333 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
45334 | if test -n "$ac_ct_AR"; then | |
45335 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
45336 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
45337 | else | |
45338 | echo "$as_me:$LINENO: result: no" >&5 | |
45339 | echo "${ECHO_T}no" >&6 | |
45340 | fi | |
45341 | ||
45342 | AR=$ac_ct_AR | |
45343 | else | |
45344 | AR="$ac_cv_prog_AR" | |
45345 | fi | |
45346 | ||
45347 | if test -n "$ac_tool_prefix"; then | |
45348 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
45349 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
45350 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45351 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45352 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
45353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45354 | else | |
45355 | if test -n "$STRIP"; then | |
45356 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
45357 | else | |
45358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45359 | for as_dir in $PATH | |
45360 | do | |
45361 | IFS=$as_save_IFS | |
45362 | test -z "$as_dir" && as_dir=. | |
45363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45364 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45365 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
45366 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45367 | break 2 | |
45368 | fi | |
45369 | done | |
45370 | done | |
45371 | ||
45372 | fi | |
45373 | fi | |
45374 | STRIP=$ac_cv_prog_STRIP | |
45375 | if test -n "$STRIP"; then | |
45376 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
45377 | echo "${ECHO_T}$STRIP" >&6 | |
45378 | else | |
45379 | echo "$as_me:$LINENO: result: no" >&5 | |
45380 | echo "${ECHO_T}no" >&6 | |
45381 | fi | |
45382 | ||
45383 | fi | |
45384 | if test -z "$ac_cv_prog_STRIP"; then | |
45385 | ac_ct_STRIP=$STRIP | |
45386 | # Extract the first word of "strip", so it can be a program name with args. | |
45387 | set dummy strip; ac_word=$2 | |
45388 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45390 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
45391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45392 | else | |
45393 | if test -n "$ac_ct_STRIP"; then | |
45394 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
45395 | else | |
45396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45397 | for as_dir in $PATH | |
45398 | do | |
45399 | IFS=$as_save_IFS | |
45400 | test -z "$as_dir" && as_dir=. | |
45401 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45402 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45403 | ac_cv_prog_ac_ct_STRIP="strip" | |
45404 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45405 | break 2 | |
45406 | fi | |
45407 | done | |
45408 | done | |
45409 | ||
45410 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
45411 | fi | |
45412 | fi | |
45413 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
45414 | if test -n "$ac_ct_STRIP"; then | |
45415 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
45416 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
45417 | else | |
45418 | echo "$as_me:$LINENO: result: no" >&5 | |
45419 | echo "${ECHO_T}no" >&6 | |
45420 | fi | |
45421 | ||
45422 | STRIP=$ac_ct_STRIP | |
45423 | else | |
45424 | STRIP="$ac_cv_prog_STRIP" | |
45425 | fi | |
45426 | ||
45427 | if test -n "$ac_tool_prefix"; then | |
45428 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
45429 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
45430 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45432 | if test "${ac_cv_prog_NM+set}" = set; then | |
45433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45434 | else | |
45435 | if test -n "$NM"; then | |
45436 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
45437 | else | |
45438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45439 | for as_dir in $PATH | |
45440 | do | |
45441 | IFS=$as_save_IFS | |
45442 | test -z "$as_dir" && as_dir=. | |
45443 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45444 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45445 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
45446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45447 | break 2 | |
45448 | fi | |
45449 | done | |
45450 | done | |
45451 | ||
45452 | fi | |
45453 | fi | |
45454 | NM=$ac_cv_prog_NM | |
45455 | if test -n "$NM"; then | |
45456 | echo "$as_me:$LINENO: result: $NM" >&5 | |
45457 | echo "${ECHO_T}$NM" >&6 | |
45458 | else | |
45459 | echo "$as_me:$LINENO: result: no" >&5 | |
45460 | echo "${ECHO_T}no" >&6 | |
45461 | fi | |
45462 | ||
45463 | fi | |
45464 | if test -z "$ac_cv_prog_NM"; then | |
45465 | ac_ct_NM=$NM | |
45466 | # Extract the first word of "nm", so it can be a program name with args. | |
45467 | set dummy nm; ac_word=$2 | |
45468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45470 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
45471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45472 | else | |
45473 | if test -n "$ac_ct_NM"; then | |
45474 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
45475 | else | |
45476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45477 | for as_dir in $PATH | |
45478 | do | |
45479 | IFS=$as_save_IFS | |
45480 | test -z "$as_dir" && as_dir=. | |
45481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45483 | ac_cv_prog_ac_ct_NM="nm" | |
45484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45485 | break 2 | |
45486 | fi | |
45487 | done | |
45488 | done | |
45489 | ||
45490 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
45491 | fi | |
45492 | fi | |
45493 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
45494 | if test -n "$ac_ct_NM"; then | |
45495 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
45496 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
45497 | else | |
45498 | echo "$as_me:$LINENO: result: no" >&5 | |
45499 | echo "${ECHO_T}no" >&6 | |
45500 | fi | |
45501 | ||
45502 | NM=$ac_ct_NM | |
45503 | else | |
45504 | NM="$ac_cv_prog_NM" | |
45505 | fi | |
45506 | ||
45507 | ||
45508 | case ${BAKEFILE_HOST} in | |
45509 | *-hp-hpux* ) | |
1e9e8aba | 45510 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
45511 | ;; |
45512 | *) INSTALL_DIR="$INSTALL -d" | |
45513 | ;; | |
45514 | esac | |
45515 | ||
45516 | ||
45517 | LDFLAGS_GUI= | |
45518 | case ${BAKEFILE_HOST} in | |
45519 | *-*-cygwin* | *-*-mingw32* ) | |
45520 | LDFLAGS_GUI="-mwindows" | |
45521 | esac | |
45522 | ||
45523 | ||
45524 | fi | |
45525 | ||
45526 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
45527 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
45528 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
45529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45530 | else | |
45531 | ||
45532 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
45533 | egrep -s GNU > /dev/null); then | |
45534 | bakefile_cv_prog_makeisgnu="yes" | |
45535 | else | |
45536 | bakefile_cv_prog_makeisgnu="no" | |
45537 | fi | |
45538 | ||
45539 | fi | |
45540 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
45541 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
45542 | ||
45543 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
45544 | IF_GNU_MAKE="" | |
45545 | else | |
45546 | IF_GNU_MAKE="#" | |
45547 | fi | |
45548 | ||
45549 | ||
45550 | ||
45551 | PLATFORM_UNIX=0 | |
45552 | PLATFORM_WIN32=0 | |
45553 | PLATFORM_MSDOS=0 | |
45554 | PLATFORM_MAC=0 | |
1e9e8aba | 45555 | PLATFORM_MACOS=0 |
a848cd7e SC |
45556 | PLATFORM_MACOSX=0 |
45557 | PLATFORM_OS2=0 | |
1e9e8aba | 45558 | PLATFORM_BEOS=0 |
a848cd7e SC |
45559 | |
45560 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
45561 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 45562 | *-*-mingw32* ) |
a848cd7e SC |
45563 | PLATFORM_WIN32=1 |
45564 | ;; | |
45565 | *-pc-msdosdjgpp ) | |
45566 | PLATFORM_MSDOS=1 | |
45567 | ;; | |
45568 | *-pc-os2_emx | *-pc-os2-emx ) | |
45569 | PLATFORM_OS2=1 | |
45570 | ;; | |
47bd5406 | 45571 | *-*-darwin* ) |
a848cd7e SC |
45572 | PLATFORM_MAC=1 |
45573 | PLATFORM_MACOSX=1 | |
45574 | ;; | |
1e9e8aba DE |
45575 | *-*-beos* ) |
45576 | PLATFORM_BEOS=1 | |
45577 | ;; | |
45578 | powerpc-apple-macos* ) | |
45579 | PLATFORM_MAC=1 | |
45580 | PLATFORM_MACOS=1 | |
45581 | ;; | |
a848cd7e SC |
45582 | * ) |
45583 | PLATFORM_UNIX=1 | |
45584 | ;; | |
45585 | esac | |
45586 | else | |
45587 | case "$BAKEFILE_FORCE_PLATFORM" in | |
45588 | win32 ) | |
45589 | PLATFORM_WIN32=1 | |
45590 | ;; | |
45591 | msdos ) | |
45592 | PLATFORM_MSDOS=1 | |
45593 | ;; | |
45594 | os2 ) | |
45595 | PLATFORM_OS2=1 | |
45596 | ;; | |
45597 | darwin ) | |
45598 | PLATFORM_MAC=1 | |
45599 | PLATFORM_MACOSX=1 | |
45600 | ;; | |
45601 | unix ) | |
45602 | PLATFORM_UNIX=1 | |
45603 | ;; | |
1e9e8aba DE |
45604 | beos ) |
45605 | PLATFORM_BEOS=1 | |
45606 | ;; | |
a848cd7e SC |
45607 | * ) |
45608 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
45609 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
45610 | { (exit 1); exit 1; }; } | |
45611 | ;; | |
45612 | esac | |
45613 | fi | |
45614 | ||
45615 | ||
45616 | ||
45617 | ||
45618 | ||
45619 | ||
45620 | ||
45621 | ||
45622 | ||
1e9e8aba DE |
45623 | |
45624 | ||
a848cd7e SC |
45625 | # Check whether --enable-omf or --disable-omf was given. |
45626 | if test "${enable_omf+set}" = set; then | |
45627 | enableval="$enable_omf" | |
45628 | bk_os2_use_omf="$enableval" | |
45629 | fi; | |
45630 | ||
45631 | case "${BAKEFILE_HOST}" in | |
45632 | *-*-darwin* ) | |
47bd5406 VZ |
45633 | if test "x$GCC" = "xyes"; then |
45634 | CFLAGS="$CFLAGS -fno-common" | |
45635 | CXXFLAGS="$CXXFLAGS -fno-common" | |
45636 | fi | |
45637 | if test "x$XLCC" = "xyes"; then | |
45638 | CFLAGS="$CFLAGS -qnocommon" | |
45639 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
45640 | fi | |
a848cd7e SC |
45641 | ;; |
45642 | ||
45643 | *-pc-os2_emx | *-pc-os2-emx ) | |
45644 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
45645 | AR=emxomfar | |
45646 | RANLIB=: | |
45647 | LDFLAGS="-Zomf $LDFLAGS" | |
45648 | CFLAGS="-Zomf $CFLAGS" | |
45649 | CXXFLAGS="-Zomf $CXXFLAGS" | |
45650 | OS2_LIBEXT="lib" | |
45651 | else | |
45652 | OS2_LIBEXT="a" | |
45653 | fi | |
45654 | ;; | |
1e9e8aba DE |
45655 | |
45656 | i*86-*-beos* ) | |
45657 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
45658 | ;; | |
a848cd7e SC |
45659 | esac |
45660 | ||
45661 | ||
45662 | SO_SUFFIX="so" | |
45663 | SO_SUFFIX_MODULE="so" | |
45664 | EXEEXT="" | |
45665 | LIBPREFIX="lib" | |
45666 | LIBEXT=".a" | |
45667 | DLLPREFIX="lib" | |
45668 | DLLPREFIX_MODULE="" | |
45669 | DLLIMP_SUFFIX="" | |
810b94f0 | 45670 | dlldir="$libdir" |
a848cd7e SC |
45671 | |
45672 | case "${BAKEFILE_HOST}" in | |
45673 | *-hp-hpux* ) | |
45674 | SO_SUFFIX="sl" | |
45675 | SO_SUFFIX_MODULE="sl" | |
45676 | ;; | |
45677 | *-*-aix* ) | |
45678 | SO_SUFFIX="a" | |
45679 | SO_SUFFIX_MODULE="a" | |
45680 | ;; | |
810b94f0 MW |
45681 | *-*-cygwin* ) |
45682 | SO_SUFFIX="dll" | |
45683 | SO_SUFFIX_MODULE="dll" | |
45684 | DLLIMP_SUFFIX="dll.a" | |
45685 | EXEEXT=".exe" | |
45686 | DLLPREFIX="cyg" | |
45687 | dlldir="$bindir" | |
45688 | ;; | |
45689 | *-*-mingw32* ) | |
a848cd7e SC |
45690 | SO_SUFFIX="dll" |
45691 | SO_SUFFIX_MODULE="dll" | |
45692 | DLLIMP_SUFFIX="dll.a" | |
45693 | EXEEXT=".exe" | |
45694 | DLLPREFIX="" | |
810b94f0 | 45695 | dlldir="$bindir" |
a848cd7e SC |
45696 | ;; |
45697 | *-pc-msdosdjgpp ) | |
45698 | EXEEXT=".exe" | |
45699 | DLLPREFIX="" | |
810b94f0 | 45700 | dlldir="$bindir" |
a848cd7e SC |
45701 | ;; |
45702 | *-pc-os2_emx | *-pc-os2-emx ) | |
45703 | SO_SUFFIX="dll" | |
45704 | SO_SUFFIX_MODULE="dll" | |
45705 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
45706 | EXEEXT=".exe" | |
45707 | DLLPREFIX="" | |
45708 | LIBPREFIX="" | |
45709 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 45710 | dlldir="$bindir" |
a848cd7e | 45711 | ;; |
47bd5406 | 45712 | *-*-darwin* ) |
a848cd7e SC |
45713 | SO_SUFFIX="dylib" |
45714 | SO_SUFFIX_MODULE="bundle" | |
45715 | ;; | |
45716 | esac | |
45717 | ||
45718 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
45719 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
45720 | fi | |
45721 | ||
45722 | ||
45723 | ||
45724 | ||
45725 | ||
45726 | ||
45727 | ||
45728 | ||
45729 | ||
45730 | ||
45731 | ||
810b94f0 | 45732 | |
1e9e8aba DE |
45733 | PIC_FLAG="" |
45734 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
45735 | PIC_FLAG="-fPIC" |
45736 | fi | |
45737 | ||
1e9e8aba DE |
45738 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
45739 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 45740 | WINDOWS_IMPLIB=0 |
1e9e8aba | 45741 | |
a848cd7e SC |
45742 | case "${BAKEFILE_HOST}" in |
45743 | *-hp-hpux* ) | |
1e9e8aba | 45744 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
45745 | LDFLAGS="$LDFLAGS -L/usr/lib" |
45746 | ||
45747 | SHARED_LD_CC="${CC} -b -o" | |
45748 | SHARED_LD_CXX="${CXX} -b -o" | |
45749 | PIC_FLAG="+Z" | |
45750 | fi | |
45751 | ;; | |
45752 | ||
45753 | *-*-linux* ) | |
45754 | if test "x$GCC" != "xyes"; then | |
45755 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
45756 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
45757 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
45758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45759 | else | |
45760 | ||
45761 | cat >conftest.$ac_ext <<_ACEOF | |
45762 | /* confdefs.h. */ | |
45763 | _ACEOF | |
45764 | cat confdefs.h >>conftest.$ac_ext | |
45765 | cat >>conftest.$ac_ext <<_ACEOF | |
45766 | /* end confdefs.h. */ | |
45767 | ||
45768 | int | |
45769 | main () | |
45770 | { | |
45771 | ||
45772 | #ifndef __INTEL_COMPILER | |
f10e38c4 | 45773 | #error Not ICC |
a848cd7e SC |
45774 | #endif |
45775 | ||
45776 | ; | |
45777 | return 0; | |
45778 | } | |
45779 | _ACEOF | |
45780 | rm -f conftest.$ac_objext | |
45781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 45782 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 45783 | ac_status=$? |
ac1cb8d3 VS |
45784 | grep -v '^ *+' conftest.er1 >conftest.err |
45785 | rm -f conftest.er1 | |
45786 | cat conftest.err >&5 | |
a848cd7e SC |
45787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45788 | (exit $ac_status); } && | |
f10e38c4 | 45789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
45790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45791 | (eval $ac_try) 2>&5 | |
45792 | ac_status=$? | |
45793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45794 | (exit $ac_status); }; } && | |
45795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
45796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45797 | (eval $ac_try) 2>&5 | |
45798 | ac_status=$? | |
45799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45800 | (exit $ac_status); }; }; then | |
45801 | bakefile_cv_prog_icc=yes | |
45802 | else | |
45803 | echo "$as_me: failed program was:" >&5 | |
45804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45805 | ||
45806 | bakefile_cv_prog_icc=no | |
45807 | ||
45808 | fi | |
ac1cb8d3 | 45809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
45810 | |
45811 | fi | |
45812 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
45813 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
45814 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
45815 | PIC_FLAG="-KPIC" | |
45816 | fi | |
45817 | fi | |
45818 | ;; | |
45819 | ||
45820 | *-*-solaris2* ) | |
45821 | if test "x$GCC" != xyes ; then | |
45822 | SHARED_LD_CC="${CC} -G -o" | |
45823 | SHARED_LD_CXX="${CXX} -G -o" | |
45824 | PIC_FLAG="-KPIC" | |
45825 | fi | |
45826 | ;; | |
45827 | ||
45828 | *-*-darwin* ) | |
45829 | ||
473276a9 VS |
45830 | D='$' |
45831 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
45832 | #!/bin/sh |
45833 | #----------------------------------------------------------------------------- | |
45834 | #-- Name: distrib/mac/shared-ld-sh | |
45835 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
45836 | #-- Author: Gilles Depeyrot | |
45837 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
45838 | #-- Licence: any use permitted | |
45839 | #----------------------------------------------------------------------------- | |
45840 | ||
45841 | verbose=0 | |
45842 | args="" | |
45843 | objects="" | |
45844 | linking_flag="-dynamiclib" | |
810b94f0 | 45845 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 45846 | |
473276a9 VS |
45847 | while test ${D}# -gt 0; do |
45848 | case ${D}1 in | |
a848cd7e SC |
45849 | |
45850 | -v) | |
45851 | verbose=1 | |
45852 | ;; | |
45853 | ||
45854 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
45855 | # collect these options and values | |
473276a9 | 45856 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
45857 | shift |
45858 | ;; | |
45859 | ||
810b94f0 MW |
45860 | -s|-Wl,*) |
45861 | # collect these load args | |
45862 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 45863 | ;; |
810b94f0 MW |
45864 | |
45865 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 45866 | # collect these options |
473276a9 | 45867 | args="${D}{args} ${D}1" |
a848cd7e SC |
45868 | ;; |
45869 | ||
45870 | -dynamiclib|-bundle) | |
473276a9 | 45871 | linking_flag="${D}1" |
a848cd7e SC |
45872 | ;; |
45873 | ||
45874 | -*) | |
473276a9 | 45875 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
45876 | exit 1 |
45877 | ;; | |
45878 | ||
45879 | *.o | *.a | *.dylib) | |
45880 | # collect object files | |
473276a9 | 45881 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
45882 | ;; |
45883 | ||
45884 | *) | |
473276a9 | 45885 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
45886 | exit 1 |
45887 | ;; | |
45888 | ||
45889 | esac | |
45890 | shift | |
45891 | done | |
45892 | ||
810b94f0 MW |
45893 | status=0 |
45894 | ||
a848cd7e SC |
45895 | # |
45896 | # Link one module containing all the others | |
45897 | # | |
473276a9 | 45898 | if test ${D}{verbose} = 1; then |
810b94f0 | 45899 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 45900 | fi |
810b94f0 | 45901 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 45902 | status=${D}? |
a848cd7e SC |
45903 | |
45904 | # | |
810b94f0 MW |
45905 | # Link the shared library from the single module created, but only if the |
45906 | # previous command didn't fail: | |
a848cd7e | 45907 | # |
810b94f0 MW |
45908 | if test ${D}{status} = 0; then |
45909 | if test ${D}{verbose} = 1; then | |
45910 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
45911 | fi | |
45912 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
45913 | status=${D}? | |
a848cd7e SC |
45914 | fi |
45915 | ||
45916 | # | |
45917 | # Remove intermediate module | |
45918 | # | |
473276a9 | 45919 | rm -f master.${D}${D}.o |
a848cd7e | 45920 | |
810b94f0 | 45921 | exit ${D}status |
a848cd7e | 45922 | EOF |
473276a9 | 45923 | |
583d6b4b VZ |
45924 | chmod +x shared-ld-sh |
45925 | ||
45926 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
45927 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
45928 | ||
45929 | ||
45930 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
45931 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
45932 | if test "${bakefile_cv_gcc31+set}" = set; then | |
45933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45934 | else | |
45935 | ||
45936 | cat >conftest.$ac_ext <<_ACEOF | |
45937 | /* confdefs.h. */ | |
45938 | _ACEOF | |
45939 | cat confdefs.h >>conftest.$ac_ext | |
45940 | cat >>conftest.$ac_ext <<_ACEOF | |
45941 | /* end confdefs.h. */ | |
45942 | ||
45943 | int | |
45944 | main () | |
45945 | { | |
45946 | ||
45947 | #if (__GNUC__ < 3) || \ | |
45948 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
45949 | #error old gcc | |
45950 | #endif | |
a848cd7e | 45951 | |
583d6b4b VZ |
45952 | ; |
45953 | return 0; | |
45954 | } | |
45955 | _ACEOF | |
45956 | rm -f conftest.$ac_objext | |
45957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45958 | (eval $ac_compile) 2>conftest.er1 | |
45959 | ac_status=$? | |
45960 | grep -v '^ *+' conftest.er1 >conftest.err | |
45961 | rm -f conftest.er1 | |
45962 | cat conftest.err >&5 | |
45963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45964 | (exit $ac_status); } && | |
f10e38c4 | 45965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
583d6b4b VZ |
45966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45967 | (eval $ac_try) 2>&5 | |
45968 | ac_status=$? | |
45969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45970 | (exit $ac_status); }; } && | |
45971 | { ac_try='test -s conftest.$ac_objext' | |
45972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45973 | (eval $ac_try) 2>&5 | |
45974 | ac_status=$? | |
45975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45976 | (exit $ac_status); }; }; then | |
45977 | ||
45978 | bakefile_cv_gcc31=yes | |
45979 | ||
45980 | else | |
45981 | echo "$as_me: failed program was:" >&5 | |
45982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45983 | ||
45984 | ||
45985 | bakefile_cv_gcc31=no | |
45986 | ||
45987 | ||
45988 | fi | |
45989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
45990 | ||
45991 | fi | |
45992 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
45993 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
45994 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 45995 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 45996 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
45997 | else |
45998 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 45999 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
46000 | fi |
46001 | ||
47bd5406 VZ |
46002 | if test "x$GCC" == "xyes"; then |
46003 | PIC_FLAG="-dynamic -fPIC" | |
46004 | fi | |
46005 | if test "x$XLCC" = "xyes"; then | |
46006 | PIC_FLAG="-dynamic -DPIC" | |
46007 | fi | |
a848cd7e SC |
46008 | ;; |
46009 | ||
46010 | *-*-aix* ) | |
f6b50c59 | 46011 | if test "x$GCC" = "xyes"; then |
583d6b4b | 46012 | PIC_FLAG="" |
f6b50c59 | 46013 | |
583d6b4b VZ |
46014 | case "${BAKEFILE_HOST}" in |
46015 | *-*-aix5* ) | |
46016 | LD_EXPFULL="-Wl,-bexpfull" | |
46017 | ;; | |
46018 | esac | |
f6b50c59 | 46019 | |
583d6b4b VZ |
46020 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
46021 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
46022 | else | |
46023 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
46024 | set dummy makeC++SharedLib; ac_word=$2 |
46025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46027 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
46028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46029 | else | |
46030 | if test -n "$AIX_CXX_LD"; then | |
46031 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
46032 | else | |
46033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46034 | for as_dir in $PATH | |
46035 | do | |
46036 | IFS=$as_save_IFS | |
46037 | test -z "$as_dir" && as_dir=. | |
46038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46039 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46040 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
46041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46042 | break 2 | |
46043 | fi | |
46044 | done | |
46045 | done | |
46046 | ||
46047 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
46048 | fi | |
46049 | fi | |
46050 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
46051 | if test -n "$AIX_CXX_LD"; then | |
46052 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
46053 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
46054 | else | |
46055 | echo "$as_me:$LINENO: result: no" >&5 | |
46056 | echo "${ECHO_T}no" >&6 | |
46057 | fi | |
46058 | ||
f6b50c59 | 46059 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
46060 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
46061 | fi | |
46062 | ;; | |
46063 | ||
46064 | *-*-beos* ) | |
1e9e8aba DE |
46065 | SHARED_LD_CC="${LD} -nostart -o" |
46066 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
46067 | ;; |
46068 | ||
46069 | *-*-irix* ) | |
46070 | if test "x$GCC" != "xyes"; then | |
46071 | PIC_FLAG="-KPIC" | |
46072 | fi | |
46073 | ;; | |
46074 | ||
46075 | *-*-cygwin* | *-*-mingw32* ) | |
46076 | PIC_FLAG="" | |
1e9e8aba DE |
46077 | SHARED_LD_CC="\$(CC) -shared -o" |
46078 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 46079 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
46080 | ;; |
46081 | ||
46082 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
46083 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
46084 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 46085 | PIC_FLAG="" |
473276a9 VS |
46086 | |
46087 | D='$' | |
46088 | cat <<EOF >dllar.sh | |
46089 | #!/bin/sh | |
46090 | # | |
46091 | # dllar - a tool to build both a .dll and an .a file | |
46092 | # from a set of object (.o) files for EMX/OS2. | |
46093 | # | |
46094 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
46095 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
46096 | # | |
46097 | # This script will accept a set of files on the command line. | |
46098 | # All the public symbols from the .o files will be exported into | |
46099 | # a .DEF file, then linker will be run (through gcc) against them to | |
46100 | # build a shared library consisting of all given .o files. All libraries | |
46101 | # (.a) will be first decompressed into component .o files then act as | |
46102 | # described above. You can optionally give a description (-d "description") | |
46103 | # which will be put into .DLL. To see the list of accepted options (as well | |
46104 | # as command-line format) simply run this program without options. The .DLL | |
46105 | # is built to be imported by name (there is no guarantee that new versions | |
46106 | # of the library you build will have same ordinals for same symbols). | |
46107 | # | |
46108 | # dllar is free software; you can redistribute it and/or modify | |
46109 | # it under the terms of the GNU General Public License as published by | |
46110 | # the Free Software Foundation; either version 2, or (at your option) | |
46111 | # any later version. | |
46112 | # | |
46113 | # dllar is distributed in the hope that it will be useful, | |
46114 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
46115 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46116 | # GNU General Public License for more details. | |
46117 | # | |
46118 | # You should have received a copy of the GNU General Public License | |
46119 | # along with dllar; see the file COPYING. If not, write to the Free | |
46120 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
46121 | # 02111-1307, USA. | |
46122 | ||
46123 | # To successfuly run this program you will need: | |
46124 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
46125 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
46126 | # - gcc | |
46127 | # (used to build the .dll) | |
46128 | # - emxexp | |
46129 | # (used to create .def file from .o files) | |
46130 | # - emximp | |
46131 | # (used to create .a file from .def file) | |
46132 | # - GNU text utilites (cat, sort, uniq) | |
46133 | # used to process emxexp output | |
46134 | # - GNU file utilities (mv, rm) | |
46135 | # - GNU sed | |
46136 | # - lxlite (optional, see flag below) | |
46137 | # (used for general .dll cleanup) | |
46138 | # | |
46139 | ||
46140 | flag_USE_LXLITE=1; | |
46141 | ||
46142 | # | |
46143 | # helper functions | |
46144 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
46145 | # second argument (suffix to remove) is given | |
46146 | basnam(){ | |
46147 | case ${D}# in | |
46148 | 1) | |
1e9e8aba | 46149 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
46150 | ;; |
46151 | 2) | |
46152 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
46153 | ;; | |
46154 | *) | |
46155 | echo "error in basnam ${D}*" | |
46156 | exit 8 | |
46157 | ;; | |
46158 | esac | |
46159 | } | |
46160 | ||
46161 | # Cleanup temporary files and output | |
46162 | CleanUp() { | |
46163 | cd ${D}curDir | |
46164 | for i in ${D}inputFiles ; do | |
46165 | case ${D}i in | |
46166 | *!) | |
46167 | rm -rf \`basnam ${D}i !\` | |
46168 | ;; | |
46169 | *) | |
46170 | ;; | |
46171 | esac | |
46172 | done | |
46173 | ||
46174 | # Kill result in case of failure as there is just to many stupid make/nmake | |
46175 | # things out there which doesn't do this. | |
1e9e8aba | 46176 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
46177 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
46178 | fi | |
46179 | } | |
46180 | ||
46181 | # Print usage and exit script with rc=1. | |
46182 | PrintHelp() { | |
b1d22ded DE |
46183 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
46184 | echo ' [-name-mangler-script script.sh]' | |
46185 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
46186 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
46187 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 46188 | echo ' [*.o] [*.a]' |
473276a9 VS |
46189 | echo '*> "output_file" should have no extension.' |
46190 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
46191 | echo ' The import library name is derived from this and is set to "name".a,' | |
46192 | echo ' unless overridden by -import' | |
46193 | echo '*> "importlib_name" should have no extension.' | |
46194 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
46195 | echo ' This name is used as the import library name and may be longer and' | |
46196 | echo ' more descriptive than the DLL name which has to follow the old ' | |
46197 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
46198 | echo '*> "script.sh may be given to override the output_file name by a' |
46199 | echo ' different name. It is mainly useful if the regular make process' | |
46200 | echo ' of some package does not take into account OS/2 restriction of' | |
46201 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
46202 | echo ' supposed to procude a shorter name as output. The script should' | |
46203 | echo ' expect to get importlib_name without extension and should produce' | |
46204 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
46205 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
46206 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
46207 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
46208 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
46209 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
46210 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
46211 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
46212 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 46213 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 46214 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 46215 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 46216 | echo ' C runtime DLLs.' |
b1d22ded | 46217 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
46218 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
46219 | echo ' unchanged to GCC at the end of command line.' | |
46220 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
46221 | echo ' the basename for DLL and import library will be set to library name,' | |
46222 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
46223 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
46224 | echo ' library will be renamed into gcc_s.a.' | |
46225 | echo '--------' | |
46226 | echo 'Example:' | |
46227 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
46228 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
46229 | CleanUp | |
46230 | exit 1 | |
46231 | } | |
46232 | ||
46233 | # Execute a command. | |
46234 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
46235 | # @Uses Whatever CleanUp() uses. | |
46236 | doCommand() { | |
46237 | echo "${D}*" | |
46238 | eval ${D}* | |
46239 | rcCmd=${D}? | |
46240 | ||
1e9e8aba | 46241 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
46242 | echo "command failed, exit code="${D}rcCmd |
46243 | CleanUp | |
46244 | exit ${D}rcCmd | |
46245 | fi | |
46246 | } | |
46247 | ||
46248 | # main routine | |
46249 | # setup globals | |
46250 | cmdLine=${D}* | |
46251 | outFile="" | |
46252 | outimpFile="" | |
46253 | inputFiles="" | |
b1d22ded | 46254 | renameScript="" |
473276a9 VS |
46255 | description="" |
46256 | CC=gcc.exe | |
46257 | CFLAGS="-s -Zcrtdll" | |
46258 | EXTRA_CFLAGS="" | |
46259 | EXPORT_BY_ORDINALS=0 | |
46260 | exclude_symbols="" | |
46261 | library_flags="" | |
46262 | curDir=\`pwd\` | |
46263 | curDirS=curDir | |
46264 | case ${D}curDirS in | |
46265 | */) | |
46266 | ;; | |
46267 | *) | |
46268 | curDirS=${D}{curDirS}"/" | |
46269 | ;; | |
46270 | esac | |
46271 | # Parse commandline | |
46272 | libsToLink=0 | |
b1d22ded | 46273 | omfLinking=0 |
1e9e8aba | 46274 | while [ ${D}1 ]; do |
473276a9 VS |
46275 | case ${D}1 in |
46276 | -ord*) | |
46277 | EXPORT_BY_ORDINALS=1; | |
46278 | ;; | |
46279 | -o*) | |
46280 | shift | |
46281 | outFile=${D}1 | |
46282 | ;; | |
46283 | -i*) | |
46284 | shift | |
46285 | outimpFile=${D}1 | |
46286 | ;; | |
b1d22ded DE |
46287 | -name-mangler-script) |
46288 | shift | |
46289 | renameScript=${D}1 | |
46290 | ;; | |
473276a9 VS |
46291 | -d*) |
46292 | shift | |
46293 | description=${D}1 | |
46294 | ;; | |
46295 | -f*) | |
46296 | shift | |
46297 | CFLAGS=${D}1 | |
46298 | ;; | |
46299 | -c*) | |
46300 | shift | |
46301 | CC=${D}1 | |
46302 | ;; | |
46303 | -h*) | |
46304 | PrintHelp | |
46305 | ;; | |
46306 | -ex*) | |
46307 | shift | |
46308 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
46309 | ;; | |
46310 | -libf*) | |
46311 | shift | |
46312 | library_flags=${D}{library_flags}${D}1" " | |
46313 | ;; | |
46314 | -nocrt*) | |
46315 | CFLAGS="-s" | |
46316 | ;; | |
46317 | -nolxl*) | |
46318 | flag_USE_LXLITE=0 | |
46319 | ;; | |
46320 | -* | /*) | |
46321 | case ${D}1 in | |
46322 | -L* | -l*) | |
46323 | libsToLink=1 | |
46324 | ;; | |
b1d22ded DE |
46325 | -Zomf) |
46326 | omfLinking=1 | |
46327 | ;; | |
473276a9 VS |
46328 | *) |
46329 | ;; | |
46330 | esac | |
46331 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
46332 | ;; | |
b1d22ded DE |
46333 | *.dll) |
46334 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
46335 | if [ ${D}omfLinking -eq 1 ]; then | |
46336 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
46337 | else | |
46338 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
46339 | fi | |
46340 | ;; | |
473276a9 VS |
46341 | *) |
46342 | found=0; | |
1e9e8aba | 46343 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
46344 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
46345 | else | |
46346 | for file in ${D}1 ; do | |
1e9e8aba | 46347 | if [ -f ${D}file ]; then |
473276a9 VS |
46348 | inputFiles="${D}{inputFiles} ${D}file" |
46349 | found=1 | |
46350 | fi | |
46351 | done | |
1e9e8aba | 46352 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
46353 | echo "ERROR: No file(s) found: "${D}1 |
46354 | exit 8 | |
46355 | fi | |
46356 | fi | |
46357 | ;; | |
46358 | esac | |
46359 | shift | |
46360 | done # iterate cmdline words | |
46361 | ||
46362 | # | |
1e9e8aba | 46363 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
46364 | echo "dllar: no input files" |
46365 | PrintHelp | |
46366 | fi | |
46367 | ||
46368 | # Now extract all .o files from .a files | |
46369 | newInputFiles="" | |
46370 | for file in ${D}inputFiles ; do | |
46371 | case ${D}file in | |
46372 | *.a | *.lib) | |
46373 | case ${D}file in | |
46374 | *.a) | |
46375 | suffix=".a" | |
46376 | AR="ar" | |
46377 | ;; | |
46378 | *.lib) | |
46379 | suffix=".lib" | |
46380 | AR="emxomfar" | |
46381 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
46382 | ;; | |
46383 | *) | |
46384 | ;; | |
46385 | esac | |
46386 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
46387 | mkdir ${D}dirname | |
1e9e8aba | 46388 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
46389 | echo "Failed to create subdirectory ./${D}dirname" |
46390 | CleanUp | |
46391 | exit 8; | |
46392 | fi | |
46393 | # Append '!' to indicate archive | |
46394 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
46395 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
46396 | cd ${D}curDir | |
46397 | found=0; | |
46398 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 46399 | if [ -f ${D}subfile ]; then |
473276a9 | 46400 | found=1 |
1e9e8aba | 46401 | if [ -s ${D}subfile ]; then |
473276a9 VS |
46402 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
46403 | newInputFiles="${D}newInputFiles ${D}subfile" | |
46404 | fi | |
46405 | fi | |
46406 | done | |
1e9e8aba DE |
46407 | if [ ${D}found -eq 0 ]; then |
46408 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
46409 | fi |
46410 | ;; | |
46411 | *) | |
46412 | newInputFiles="${D}{newInputFiles} ${D}file" | |
46413 | ;; | |
46414 | esac | |
46415 | done | |
46416 | inputFiles="${D}newInputFiles" | |
46417 | ||
46418 | # Output filename(s). | |
46419 | do_backup=0; | |
1e9e8aba | 46420 | if [ -z ${D}outFile ]; then |
473276a9 VS |
46421 | do_backup=1; |
46422 | set outFile ${D}inputFiles; outFile=${D}2 | |
46423 | fi | |
46424 | ||
46425 | # If it is an archive, remove the '!' and the '_%' suffixes | |
46426 | case ${D}outFile in | |
46427 | *_%!) | |
46428 | outFile=\`basnam ${D}outFile _%!\` | |
46429 | ;; | |
46430 | *) | |
46431 | ;; | |
46432 | esac | |
46433 | case ${D}outFile in | |
46434 | *.dll) | |
46435 | outFile=\`basnam ${D}outFile .dll\` | |
46436 | ;; | |
46437 | *.DLL) | |
46438 | outFile=\`basnam ${D}outFile .DLL\` | |
46439 | ;; | |
46440 | *.o) | |
46441 | outFile=\`basnam ${D}outFile .o\` | |
46442 | ;; | |
46443 | *.obj) | |
46444 | outFile=\`basnam ${D}outFile .obj\` | |
46445 | ;; | |
46446 | *.a) | |
46447 | outFile=\`basnam ${D}outFile .a\` | |
46448 | ;; | |
46449 | *.lib) | |
46450 | outFile=\`basnam ${D}outFile .lib\` | |
46451 | ;; | |
46452 | *) | |
46453 | ;; | |
46454 | esac | |
46455 | case ${D}outimpFile in | |
46456 | *.a) | |
46457 | outimpFile=\`basnam ${D}outimpFile .a\` | |
46458 | ;; | |
46459 | *.lib) | |
46460 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
46461 | ;; | |
46462 | *) | |
46463 | ;; | |
46464 | esac | |
1e9e8aba | 46465 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
46466 | outimpFile=${D}outFile |
46467 | fi | |
46468 | defFile="${D}{outFile}.def" | |
46469 | arcFile="${D}{outimpFile}.a" | |
46470 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
46471 | |
46472 | #create ${D}dllFile as something matching 8.3 restrictions, | |
46473 | if [ -z ${D}renameScript ] ; then | |
46474 | dllFile="${D}outFile" | |
46475 | else | |
46476 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
46477 | fi | |
473276a9 | 46478 | |
1e9e8aba DE |
46479 | if [ ${D}do_backup -ne 0 ] ; then |
46480 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
46481 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
46482 | fi | |
1e9e8aba | 46483 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
46484 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
46485 | fi | |
46486 | fi | |
46487 | ||
46488 | # Extract public symbols from all the object files. | |
46489 | tmpdefFile=${D}{defFile}_% | |
46490 | rm -f ${D}tmpdefFile | |
46491 | for file in ${D}inputFiles ; do | |
46492 | case ${D}file in | |
46493 | *!) | |
46494 | ;; | |
46495 | *) | |
46496 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
46497 | ;; | |
46498 | esac | |
46499 | done | |
46500 | ||
46501 | # Create the def file. | |
46502 | rm -f ${D}defFile | |
46503 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
46504 | dllFile="${D}{dllFile}.dll" |
46505 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 46506 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
46507 | fi |
46508 | echo "EXPORTS" >> ${D}defFile | |
46509 | ||
46510 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
46511 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
46512 | ||
46513 | # Checks if the export is ok or not. | |
46514 | for word in ${D}exclude_symbols; do | |
46515 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
46516 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
46517 | done | |
46518 | ||
46519 | ||
1e9e8aba DE |
46520 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
46521 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
46522 | sed ' |
46523 | N | |
46524 | : loop | |
1e9e8aba | 46525 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
46526 | t loop |
46527 | ' > ${D}{tmpdefFile}% | |
46528 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
46529 | else | |
46530 | rm -f ${D}{tmpdefFile}% | |
46531 | fi | |
46532 | cat ${D}tmpdefFile >> ${D}defFile | |
46533 | rm -f ${D}tmpdefFile | |
46534 | ||
46535 | # Do linking, create implib, and apply lxlite. | |
46536 | gccCmdl=""; | |
46537 | for file in ${D}inputFiles ; do | |
46538 | case ${D}file in | |
46539 | *!) | |
46540 | ;; | |
46541 | *) | |
46542 | gccCmdl="${D}gccCmdl ${D}file" | |
46543 | ;; | |
46544 | esac | |
46545 | done | |
46546 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
46547 | touch "${D}{outFile}.dll" | |
46548 | ||
46549 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 46550 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 46551 | add_flags=""; |
1e9e8aba | 46552 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
46553 | add_flags="-ynd" |
46554 | fi | |
46555 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
46556 | fi | |
46557 | doCommand "emxomf -s -l ${D}arcFile" | |
46558 | ||
46559 | # Successful exit. | |
46560 | CleanUp 1 | |
46561 | exit 0 | |
46562 | EOF | |
46563 | ||
46564 | chmod +x dllar.sh | |
a848cd7e SC |
46565 | ;; |
46566 | ||
1e9e8aba | 46567 | powerpc-apple-macos* | \ |
0ad5d837 | 46568 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
46569 | *-*-sunos4* | \ |
46570 | *-*-osf* | \ | |
46571 | *-*-dgux5* | \ | |
47a7e797 MW |
46572 | *-*-sysv5* | \ |
46573 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
46574 | ;; |
46575 | ||
46576 | *) | |
46577 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
46578 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
46579 | { (exit 1); exit 1; }; } | |
46580 | esac | |
46581 | ||
2057db16 VS |
46582 | if test "x$PIC_FLAG" != "x" ; then |
46583 | PIC_FLAG="$PIC_FLAG -DPIC" | |
46584 | fi | |
46585 | ||
a848cd7e SC |
46586 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
46587 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
46588 | fi | |
46589 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
46590 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
46591 | fi | |
46592 | ||
46593 | ||
46594 | ||
46595 | ||
46596 | ||
46597 | ||
46598 | ||
46599 | ||
810b94f0 | 46600 | |
a848cd7e SC |
46601 | USE_SOVERSION=0 |
46602 | USE_SOVERLINUX=0 | |
46603 | USE_SOVERSOLARIS=0 | |
810b94f0 | 46604 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
46605 | USE_SOSYMLINKS=0 |
46606 | USE_MACVERSION=0 | |
46607 | SONAME_FLAG= | |
46608 | ||
46609 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 46610 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
46611 | SONAME_FLAG="-Wl,-soname," |
46612 | USE_SOVERSION=1 | |
46613 | USE_SOVERLINUX=1 | |
46614 | USE_SOSYMLINKS=1 | |
46615 | ;; | |
46616 | ||
a848cd7e SC |
46617 | *-*-solaris2* ) |
46618 | SONAME_FLAG="-h " | |
46619 | USE_SOVERSION=1 | |
46620 | USE_SOVERSOLARIS=1 | |
46621 | USE_SOSYMLINKS=1 | |
46622 | ;; | |
46623 | ||
46624 | *-*-darwin* ) | |
46625 | USE_MACVERSION=1 | |
46626 | USE_SOVERSION=1 | |
46627 | USE_SOSYMLINKS=1 | |
46628 | ;; | |
810b94f0 MW |
46629 | |
46630 | *-*-cygwin* ) | |
46631 | USE_SOVERSION=1 | |
46632 | USE_SOVERCYGWIN=1 | |
46633 | ;; | |
a848cd7e SC |
46634 | esac |
46635 | ||
46636 | ||
46637 | ||
46638 | ||
46639 | ||
46640 | ||
46641 | ||
46642 | ||
46643 | ||
810b94f0 | 46644 | |
f10e38c4 VZ |
46645 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
46646 | if test "${enable_dependency_tracking+set}" = set; then | |
46647 | enableval="$enable_dependency_tracking" | |
46648 | bk_use_trackdeps="$enableval" | |
46649 | fi; | |
46650 | ||
a848cd7e SC |
46651 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
46652 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
a848cd7e | 46653 | |
f10e38c4 VZ |
46654 | if test "x$bk_use_trackdeps" = "xno" ; then |
46655 | DEPS_TRACKING=0 | |
46656 | echo "$as_me:$LINENO: result: disabled" >&5 | |
46657 | echo "${ECHO_T}disabled" >&6 | |
46658 | else | |
46659 | DEPS_TRACKING=1 | |
46660 | ||
46661 | if test "x$GCC" = "xyes"; then | |
46662 | DEPSMODE=gcc | |
46663 | case "${BAKEFILE_HOST}" in | |
46664 | *-*-darwin* ) | |
46665 | DEPSFLAG="-no-cpp-precomp -MMD" | |
46666 | ;; | |
46667 | * ) | |
46668 | DEPSFLAG="-MMD" | |
46669 | ;; | |
46670 | esac | |
46671 | echo "$as_me:$LINENO: result: gcc" >&5 | |
a848cd7e | 46672 | echo "${ECHO_T}gcc" >&6 |
f10e38c4 VZ |
46673 | elif test "x$MWCC" = "xyes"; then |
46674 | DEPSMODE=mwcc | |
46675 | DEPSFLAG="-MM" | |
46676 | echo "$as_me:$LINENO: result: mwcc" >&5 | |
b1d22ded | 46677 | echo "${ECHO_T}mwcc" >&6 |
f10e38c4 VZ |
46678 | elif test "x$SUNCC" = "xyes"; then |
46679 | DEPSMODE=unixcc | |
46680 | DEPSFLAG="-xM1" | |
46681 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
0ad5d837 | 46682 | echo "${ECHO_T}Sun cc" >&6 |
f10e38c4 VZ |
46683 | elif test "x$SGICC" = "xyes"; then |
46684 | DEPSMODE=unixcc | |
46685 | DEPSFLAG="-M" | |
46686 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
0ad5d837 | 46687 | echo "${ECHO_T}SGI cc" >&6 |
f10e38c4 VZ |
46688 | elif test "x$HPCC" = "xyes"; then |
46689 | DEPSMODE=unixcc | |
46690 | DEPSFLAG="+make" | |
46691 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
3006edc0 | 46692 | echo "${ECHO_T}HP cc" >&6 |
f10e38c4 VZ |
46693 | elif test "x$COMPAQCC" = "xyes"; then |
46694 | DEPSMODE=gcc | |
46695 | DEPSFLAG="-MD" | |
46696 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
a1aa0349 | 46697 | echo "${ECHO_T}Compaq cc" >&6 |
f10e38c4 VZ |
46698 | else |
46699 | DEPS_TRACKING=0 | |
46700 | echo "$as_me:$LINENO: result: none" >&5 | |
a848cd7e | 46701 | echo "${ECHO_T}none" >&6 |
f10e38c4 | 46702 | fi |
a848cd7e | 46703 | |
f10e38c4 | 46704 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
46705 | |
46706 | D='$' | |
46707 | cat <<EOF >bk-deps | |
a848cd7e SC |
46708 | #!/bin/sh |
46709 | ||
46710 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
46711 | # script. It is used to track C/C++ files dependencies in portable way. | |
46712 | # | |
46713 | # Permission is given to use this file in any way. | |
46714 | ||
473276a9 | 46715 | DEPSMODE=${DEPSMODE} |
a848cd7e | 46716 | DEPSDIR=.deps |
0ad5d837 | 46717 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 46718 | |
473276a9 | 46719 | mkdir -p ${D}DEPSDIR |
a848cd7e | 46720 | |
473276a9 | 46721 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 46722 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
46723 | status=${D}? |
46724 | if test ${D}{status} != 0 ; then | |
46725 | exit ${D}{status} | |
a848cd7e SC |
46726 | fi |
46727 | # move created file to the location we want it in: | |
473276a9 VS |
46728 | while test ${D}# -gt 0; do |
46729 | case "${D}1" in | |
a848cd7e SC |
46730 | -o ) |
46731 | shift | |
473276a9 | 46732 | objfile=${D}1 |
a848cd7e SC |
46733 | ;; |
46734 | -* ) | |
46735 | ;; | |
46736 | * ) | |
473276a9 | 46737 | srcfile=${D}1 |
a848cd7e SC |
46738 | ;; |
46739 | esac | |
46740 | shift | |
46741 | done | |
1e9e8aba DE |
46742 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
46743 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
46744 | if test -f ${D}depfile ; then |
46745 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46746 | rm -f ${D}depfile | |
a848cd7e | 46747 | else |
a1aa0349 | 46748 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 46749 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
46750 | if test ! -f ${D}depfile ; then |
46751 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
46752 | depfile="${D}objfile.d" | |
46753 | fi | |
473276a9 VS |
46754 | if test -f ${D}depfile ; then |
46755 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46756 | rm -f ${D}depfile | |
a848cd7e SC |
46757 | fi |
46758 | fi | |
46759 | exit 0 | |
81f90336 | 46760 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 46761 | ${D}* || exit ${D}? |
81f90336 MW |
46762 | # Run mwcc again with -MM and redirect into the dep file we want |
46763 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
46764 | prevarg= | |
46765 | for arg in ${D}* ; do | |
46766 | if test "${D}prevarg" = "-o"; then | |
46767 | objfile=${D}arg | |
46768 | else | |
46769 | case "${D}arg" in | |
46770 | -* ) | |
46771 | ;; | |
46772 | * ) | |
46773 | srcfile=${D}arg | |
46774 | ;; | |
46775 | esac | |
46776 | fi | |
46777 | prevarg="${D}arg" | |
46778 | done | |
0ad5d837 | 46779 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 46780 | exit 0 |
0ad5d837 | 46781 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 46782 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
46783 | # Run compiler again with deps flag and redirect into the dep file. |
46784 | # It doesn't work if the '-o FILE' option is used, but without it the | |
46785 | # dependency file will contain the wrong name for the object. So it is | |
46786 | # removed from the command line, and the dep file is fixed with sed. | |
46787 | cmd="" | |
46788 | while test ${D}# -gt 0; do | |
46789 | case "${D}1" in | |
46790 | -o ) | |
46791 | shift | |
46792 | objfile=${D}1 | |
46793 | ;; | |
46794 | * ) | |
46795 | eval arg${D}#=\\${D}1 | |
46796 | cmd="${D}cmd \\${D}arg${D}#" | |
46797 | ;; | |
46798 | esac | |
46799 | shift | |
46800 | done | |
0ad5d837 | 46801 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 46802 | exit 0 |
a848cd7e | 46803 | else |
473276a9 VS |
46804 | ${D}* |
46805 | exit ${D}? | |
a848cd7e SC |
46806 | fi |
46807 | EOF | |
473276a9 | 46808 | |
f10e38c4 VZ |
46809 | chmod +x bk-deps |
46810 | fi | |
a848cd7e SC |
46811 | fi |
46812 | ||
46813 | ||
46814 | ||
46815 | ||
a848cd7e SC |
46816 | case ${BAKEFILE_HOST} in |
46817 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
46818 | if test -n "$ac_tool_prefix"; then |
46819 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
46820 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
46821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46823 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
46824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46825 | else | |
46826 | if test -n "$WINDRES"; then | |
46827 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
46828 | else | |
46829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46830 | for as_dir in $PATH | |
46831 | do | |
46832 | IFS=$as_save_IFS | |
46833 | test -z "$as_dir" && as_dir=. | |
46834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46835 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46836 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
46837 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46838 | break 2 | |
46839 | fi | |
46840 | done | |
46841 | done | |
46842 | ||
46843 | fi | |
46844 | fi | |
46845 | WINDRES=$ac_cv_prog_WINDRES | |
46846 | if test -n "$WINDRES"; then | |
46847 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
46848 | echo "${ECHO_T}$WINDRES" >&6 | |
46849 | else | |
46850 | echo "$as_me:$LINENO: result: no" >&5 | |
46851 | echo "${ECHO_T}no" >&6 | |
46852 | fi | |
46853 | ||
46854 | fi | |
46855 | if test -z "$ac_cv_prog_WINDRES"; then | |
46856 | ac_ct_WINDRES=$WINDRES | |
46857 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
46858 | set dummy windres; ac_word=$2 |
46859 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 46861 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
46862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46863 | else | |
8ced02f6 DE |
46864 | if test -n "$ac_ct_WINDRES"; then |
46865 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
46866 | else |
46867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46868 | for as_dir in $PATH | |
46869 | do | |
46870 | IFS=$as_save_IFS | |
46871 | test -z "$as_dir" && as_dir=. | |
46872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 46874 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
46875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
46876 | break 2 | |
46877 | fi | |
46878 | done | |
46879 | done | |
46880 | ||
a848cd7e SC |
46881 | fi |
46882 | fi | |
8ced02f6 DE |
46883 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
46884 | if test -n "$ac_ct_WINDRES"; then | |
46885 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
46886 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
46887 | else |
46888 | echo "$as_me:$LINENO: result: no" >&5 | |
46889 | echo "${ECHO_T}no" >&6 | |
46890 | fi | |
46891 | ||
8ced02f6 DE |
46892 | WINDRES=$ac_ct_WINDRES |
46893 | else | |
46894 | WINDRES="$ac_cv_prog_WINDRES" | |
46895 | fi | |
46896 | ||
a848cd7e SC |
46897 | ;; |
46898 | ||
1e9e8aba | 46899 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
46900 | # Extract the first word of "Rez", so it can be a program name with args. |
46901 | set dummy Rez; ac_word=$2 | |
46902 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 46904 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
46905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46906 | else | |
8ced02f6 DE |
46907 | if test -n "$REZ"; then |
46908 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
46909 | else |
46910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46911 | for as_dir in $PATH | |
46912 | do | |
46913 | IFS=$as_save_IFS | |
46914 | test -z "$as_dir" && as_dir=. | |
46915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46916 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 46917 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
46918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
46919 | break 2 | |
46920 | fi | |
46921 | done | |
46922 | done | |
46923 | ||
8ced02f6 | 46924 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
46925 | fi |
46926 | fi | |
8ced02f6 DE |
46927 | REZ=$ac_cv_prog_REZ |
46928 | if test -n "$REZ"; then | |
46929 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
46930 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
46931 | else |
46932 | echo "$as_me:$LINENO: result: no" >&5 | |
46933 | echo "${ECHO_T}no" >&6 | |
46934 | fi | |
46935 | ||
46936 | # Extract the first word of "SetFile", so it can be a program name with args. | |
46937 | set dummy SetFile; ac_word=$2 | |
46938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46940 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
46941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46942 | else | |
46943 | if test -n "$SETFILE"; then | |
46944 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
46945 | else | |
46946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46947 | for as_dir in $PATH | |
46948 | do | |
46949 | IFS=$as_save_IFS | |
46950 | test -z "$as_dir" && as_dir=. | |
46951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46953 | ac_cv_prog_SETFILE="SetFile" | |
46954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46955 | break 2 | |
46956 | fi | |
46957 | done | |
46958 | done | |
46959 | ||
46960 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
46961 | fi | |
46962 | fi | |
46963 | SETFILE=$ac_cv_prog_SETFILE | |
46964 | if test -n "$SETFILE"; then | |
46965 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
46966 | echo "${ECHO_T}$SETFILE" >&6 | |
46967 | else | |
46968 | echo "$as_me:$LINENO: result: no" >&5 | |
46969 | echo "${ECHO_T}no" >&6 | |
46970 | fi | |
46971 | ||
46972 | ;; | |
46973 | esac | |
46974 | ||
46975 | ||
46976 | ||
46977 | ||
46978 | ||
8ced02f6 | 46979 | |
f10e38c4 | 46980 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.0" |
a848cd7e | 46981 | |
dcc1b6ad | 46982 | |
f10e38c4 | 46983 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0" |
a848cd7e | 46984 | |
646b6ec1 | 46985 | |
74b84332 | 46986 | |
a848cd7e SC |
46987 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
46988 | if test "${enable_precomp_headers+set}" = set; then | |
46989 | enableval="$enable_precomp_headers" | |
46990 | bk_use_pch="$enableval" | |
46991 | fi; | |
46992 | ||
46993 | GCC_PCH=0 | |
f10e38c4 VZ |
46994 | ICC_PCH=0 |
46995 | USE_PCH=0 | |
a848cd7e | 46996 | |
5c60e845 MW |
46997 | case ${BAKEFILE_HOST} in |
46998 | *-*-cygwin* ) | |
46999 | bk_use_pch="no" | |
47000 | ;; | |
47001 | esac | |
47002 | ||
a848cd7e SC |
47003 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
47004 | if test "x$GCC" = "xyes"; then | |
47005 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
47006 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
47007 | cat >conftest.$ac_ext <<_ACEOF | |
47008 | /* confdefs.h. */ | |
47009 | _ACEOF | |
47010 | cat confdefs.h >>conftest.$ac_ext | |
47011 | cat >>conftest.$ac_ext <<_ACEOF | |
47012 | /* end confdefs.h. */ | |
47013 | ||
47014 | int | |
47015 | main () | |
47016 | { | |
47017 | ||
47018 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
47019 | #error "no pch support" | |
47020 | #endif | |
47021 | #if (__GNUC__ < 3) | |
47022 | #error "no pch support" | |
47023 | #endif | |
47024 | #if (__GNUC__ == 3) && \ | |
47025 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
47026 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
47027 | ( defined(__INTEL_COMPILER) ) | |
a848cd7e SC |
47028 | #error "no pch support" |
47029 | #endif | |
47030 | ||
47031 | ; | |
47032 | return 0; | |
47033 | } | |
47034 | _ACEOF | |
47035 | rm -f conftest.$ac_objext | |
47036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 47037 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 47038 | ac_status=$? |
ac1cb8d3 VS |
47039 | grep -v '^ *+' conftest.er1 >conftest.err |
47040 | rm -f conftest.er1 | |
47041 | cat conftest.err >&5 | |
a848cd7e SC |
47042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47043 | (exit $ac_status); } && | |
f10e38c4 | 47044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
47045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47046 | (eval $ac_try) 2>&5 | |
47047 | ac_status=$? | |
47048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47049 | (exit $ac_status); }; } && | |
47050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
47051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47052 | (eval $ac_try) 2>&5 | |
47053 | ac_status=$? | |
47054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47055 | (exit $ac_status); }; }; then | |
47056 | ||
47057 | echo "$as_me:$LINENO: result: yes" >&5 | |
47058 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
47059 | GCC_PCH=1 |
47060 | ||
47061 | else | |
47062 | echo "$as_me: failed program was:" >&5 | |
47063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47064 | ||
47065 | ||
f10e38c4 VZ |
47066 | cat >conftest.$ac_ext <<_ACEOF |
47067 | /* confdefs.h. */ | |
47068 | _ACEOF | |
47069 | cat confdefs.h >>conftest.$ac_ext | |
47070 | cat >>conftest.$ac_ext <<_ACEOF | |
47071 | /* end confdefs.h. */ | |
47072 | ||
47073 | int | |
47074 | main () | |
47075 | { | |
47076 | ||
47077 | #if !defined(__INTEL_COMPILER) || \ | |
47078 | (__INTEL_COMPILER < 800) | |
47079 | #error "no pch support" | |
47080 | #endif | |
47081 | ||
47082 | ; | |
47083 | return 0; | |
47084 | } | |
47085 | _ACEOF | |
47086 | rm -f conftest.$ac_objext | |
47087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
47088 | (eval $ac_compile) 2>conftest.er1 | |
47089 | ac_status=$? | |
47090 | grep -v '^ *+' conftest.er1 >conftest.err | |
47091 | rm -f conftest.er1 | |
47092 | cat conftest.err >&5 | |
47093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47094 | (exit $ac_status); } && | |
47095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
47096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
47097 | (eval $ac_try) 2>&5 | |
47098 | ac_status=$? | |
47099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47100 | (exit $ac_status); }; } && | |
47101 | { ac_try='test -s conftest.$ac_objext' | |
47102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
47103 | (eval $ac_try) 2>&5 | |
47104 | ac_status=$? | |
47105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47106 | (exit $ac_status); }; }; then | |
47107 | ||
47108 | echo "$as_me:$LINENO: result: yes" >&5 | |
47109 | echo "${ECHO_T}yes" >&6 | |
47110 | ICC_PCH=1 | |
47111 | ||
47112 | else | |
47113 | echo "$as_me: failed program was:" >&5 | |
47114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47115 | ||
47116 | ||
47117 | echo "$as_me:$LINENO: result: no" >&5 | |
a848cd7e SC |
47118 | echo "${ECHO_T}no" >&6 |
47119 | ||
47120 | fi | |
ac1cb8d3 | 47121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f10e38c4 VZ |
47122 | |
47123 | fi | |
47124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
47125 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then | |
47126 | USE_PCH=1 | |
1e9e8aba DE |
47127 | |
47128 | D='$' | |
47129 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
47130 | #!/bin/sh |
47131 | ||
47132 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47133 | # script. It is used to generated precompiled headers. | |
47134 | # | |
47135 | # Permission is given to use this file in any way. | |
47136 | ||
1e9e8aba DE |
47137 | outfile="${D}{1}" |
47138 | header="${D}{2}" | |
a848cd7e SC |
47139 | shift |
47140 | shift | |
47141 | ||
f10e38c4 VZ |
47142 | compiler="" |
47143 | headerfile="" | |
47144 | ||
1e9e8aba | 47145 | while test ${D}{#} -gt 0; do |
f10e38c4 | 47146 | add_to_cmdline=1 |
1e9e8aba | 47147 | case "${D}{1}" in |
a848cd7e | 47148 | -I* ) |
1e9e8aba DE |
47149 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
47150 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
47151 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
47152 | fi |
47153 | ;; | |
f10e38c4 VZ |
47154 | -use-pch|-use_pch ) |
47155 | shift | |
47156 | add_to_cmdline=0 | |
47157 | ;; | |
a848cd7e | 47158 | esac |
f10e38c4 VZ |
47159 | if test ${D}add_to_cmdline = 1 ; then |
47160 | compiler="${D}{compiler} ${D}{1}" | |
47161 | fi | |
a848cd7e SC |
47162 | shift |
47163 | done | |
47164 | ||
1e9e8aba | 47165 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 47166 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 47167 | else |
1e9e8aba DE |
47168 | if test -f ${D}{outfile} ; then |
47169 | rm -f ${D}{outfile} | |
a848cd7e | 47170 | else |
1e9e8aba | 47171 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 47172 | fi |
1e9e8aba | 47173 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e | 47174 | mkdir -p .deps |
f10e38c4 VZ |
47175 | if test "x${GCC_PCH}" = "x1" ; then |
47176 | # can do this because gcc is >= 3.4: | |
47177 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
47178 | elif test "x${ICC_PCH}" = "x1" ; then | |
47179 | filename=pch_gen-${D}${D} | |
47180 | file=${D}{filename}.c | |
47181 | dfile=${D}{filename}.d | |
47182 | cat > ${D}file <<EOT | |
47183 | #include "${D}header" | |
47184 | EOT | |
47185 | # using -MF icc complains about differing command lines in creation/use | |
47186 | ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\ | |
47187 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ | |
47188 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
47189 | fi | |
1e9e8aba | 47190 | exit ${D}{?} |
a848cd7e SC |
47191 | fi |
47192 | EOF | |
1e9e8aba | 47193 | |
a848cd7e SC |
47194 | chmod +x bk-make-pch |
47195 | fi | |
47196 | fi | |
47197 | fi | |
47198 | ||
47199 | ||
47200 | ||
f10e38c4 | 47201 | |
a848cd7e SC |
47202 | COND_BUILD_DEBUG="#" |
47203 | if test "x$BUILD" = "xdebug" ; then | |
47204 | COND_BUILD_DEBUG="" | |
47205 | fi | |
47206 | ||
47207 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
47208 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
47209 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
47210 | fi | |
47211 | ||
47212 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
47213 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47214 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
47215 | fi | |
47216 | ||
47217 | COND_BUILD_DEBUG_UNICODE_0="#" | |
47218 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
47219 | COND_BUILD_DEBUG_UNICODE_0="" | |
47220 | fi | |
47221 | ||
47222 | COND_BUILD_DEBUG_UNICODE_1="#" | |
47223 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
47224 | COND_BUILD_DEBUG_UNICODE_1="" | |
47225 | fi | |
47226 | ||
47227 | COND_BUILD_RELEASE="#" | |
47228 | if test "x$BUILD" = "xrelease" ; then | |
47229 | COND_BUILD_RELEASE="" | |
47230 | fi | |
47231 | ||
47232 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
47233 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47234 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
47235 | fi | |
47236 | ||
47237 | COND_BUILD_RELEASE_UNICODE_0="#" | |
47238 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
47239 | COND_BUILD_RELEASE_UNICODE_0="" | |
47240 | fi | |
47241 | ||
47242 | COND_BUILD_RELEASE_UNICODE_1="#" | |
47243 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
47244 | COND_BUILD_RELEASE_UNICODE_1="" | |
47245 | fi | |
47246 | ||
47247 | COND_DEBUG_FLAG_1="#" | |
47248 | if test "x$DEBUG_FLAG" = "x1" ; then | |
47249 | COND_DEBUG_FLAG_1="" | |
47250 | fi | |
47251 | ||
47252 | COND_DEBUG_INFO_0="#" | |
47253 | if test "x$DEBUG_INFO" = "x0" ; then | |
47254 | COND_DEBUG_INFO_0="" | |
47255 | fi | |
47256 | ||
47257 | COND_DEBUG_INFO_1="#" | |
47258 | if test "x$DEBUG_INFO" = "x1" ; then | |
47259 | COND_DEBUG_INFO_1="" | |
47260 | fi | |
47261 | ||
47262 | COND_DEPS_TRACKING_0="#" | |
47263 | if test "x$DEPS_TRACKING" = "x0" ; then | |
47264 | COND_DEPS_TRACKING_0="" | |
47265 | fi | |
47266 | ||
47267 | COND_DEPS_TRACKING_1="#" | |
47268 | if test "x$DEPS_TRACKING" = "x1" ; then | |
47269 | COND_DEPS_TRACKING_1="" | |
47270 | fi | |
47271 | ||
47272 | COND_GCC_PCH_1="#" | |
47273 | if test "x$GCC_PCH" = "x1" ; then | |
47274 | COND_GCC_PCH_1="" | |
47275 | fi | |
47276 | ||
f10e38c4 VZ |
47277 | COND_ICC_PCH_1="#" |
47278 | if test "x$ICC_PCH" = "x1" ; then | |
47279 | COND_ICC_PCH_1="" | |
47280 | fi | |
47281 | ||
a848cd7e SC |
47282 | COND_MONOLITHIC_0="#" |
47283 | if test "x$MONOLITHIC" = "x0" ; then | |
47284 | COND_MONOLITHIC_0="" | |
47285 | fi | |
47286 | ||
47287 | COND_MONOLITHIC_0_SHARED_0="#" | |
47288 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
47289 | COND_MONOLITHIC_0_SHARED_0="" | |
47290 | fi | |
47291 | ||
47292 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
47293 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
47294 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
47295 | fi | |
47296 | ||
90970d69 DE |
47297 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
47298 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47299 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
47300 | fi | |
47301 | ||
f10e38c4 VZ |
47302 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
47303 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
47304 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
47305 | fi | |
47306 | ||
a848cd7e SC |
47307 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
47308 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47309 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
47310 | fi | |
47311 | ||
6671c68b VZ |
47312 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
47313 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47314 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
47315 | fi | |
47316 | ||
a848cd7e SC |
47317 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
47318 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47319 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
47320 | fi | |
47321 | ||
ceec2216 RL |
47322 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
47323 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47324 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
47325 | fi | |
47326 | ||
a848cd7e SC |
47327 | COND_MONOLITHIC_0_SHARED_1="#" |
47328 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
47329 | COND_MONOLITHIC_0_SHARED_1="" | |
47330 | fi | |
47331 | ||
47332 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
47333 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47334 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
47335 | fi | |
47336 | ||
90970d69 DE |
47337 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
47338 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47339 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
47340 | fi | |
47341 | ||
f10e38c4 VZ |
47342 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
47343 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
47344 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
47345 | fi | |
47346 | ||
a848cd7e SC |
47347 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
47348 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47349 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
47350 | fi | |
47351 | ||
6671c68b VZ |
47352 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
47353 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47354 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
47355 | fi | |
47356 | ||
a848cd7e SC |
47357 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
47358 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47359 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
47360 | fi | |
47361 | ||
ceec2216 RL |
47362 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
47363 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47364 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
47365 | fi | |
47366 | ||
a848cd7e SC |
47367 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
47368 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47369 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
47370 | fi | |
47371 | ||
47372 | COND_MONOLITHIC_1="#" | |
47373 | if test "x$MONOLITHIC" = "x1" ; then | |
47374 | COND_MONOLITHIC_1="" | |
47375 | fi | |
47376 | ||
47377 | COND_MONOLITHIC_1_SHARED_0="#" | |
47378 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
47379 | COND_MONOLITHIC_1_SHARED_0="" | |
47380 | fi | |
47381 | ||
47382 | COND_MONOLITHIC_1_SHARED_1="#" | |
47383 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
47384 | COND_MONOLITHIC_1_SHARED_1="" | |
47385 | fi | |
47386 | ||
47387 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
47388 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47389 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
47390 | fi | |
47391 | ||
47392 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
47393 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47394 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
47395 | fi | |
47396 | ||
eb730a0c JS |
47397 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
47398 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47399 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
47400 | fi | |
47401 | ||
a848cd7e SC |
47402 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
47403 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47404 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
47405 | fi | |
47406 | ||
47407 | COND_PLATFORM_MACOSX_1="#" | |
47408 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
47409 | COND_PLATFORM_MACOSX_1="" | |
47410 | fi | |
47411 | ||
a30f955f VS |
47412 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
47413 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
47414 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
47415 | fi | |
47416 | ||
a848cd7e SC |
47417 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
47418 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
47419 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
47420 | fi | |
47421 | ||
47422 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
47423 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
47424 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
47425 | fi | |
47426 | ||
47427 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
47428 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
47429 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
47430 | fi | |
47431 | ||
fc480dc1 DE |
47432 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
47433 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47434 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
47435 | fi | |
47436 | ||
1e9e8aba DE |
47437 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
47438 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47439 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47440 | fi | |
47441 | ||
ebee3cd0 VS |
47442 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
47443 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
47444 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
47445 | fi | |
47446 | ||
47447 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
47448 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
47449 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
47450 | fi | |
47451 | ||
a848cd7e SC |
47452 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
47453 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47454 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
47455 | fi | |
47456 | ||
47457 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
47458 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47459 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
47460 | fi | |
47461 | ||
b48a2016 DE |
47462 | COND_PLATFORM_MACOS_1="#" |
47463 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
47464 | COND_PLATFORM_MACOS_1="" | |
47465 | fi | |
47466 | ||
083508af MW |
47467 | COND_PLATFORM_MAC_1="#" |
47468 | if test "x$PLATFORM_MAC" = "x1" ; then | |
47469 | COND_PLATFORM_MAC_1="" | |
47470 | fi | |
47471 | ||
83d8eb47 MW |
47472 | COND_PLATFORM_MSDOS_1="#" |
47473 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
47474 | COND_PLATFORM_MSDOS_1="" | |
47475 | fi | |
47476 | ||
a848cd7e SC |
47477 | COND_PLATFORM_OS2_1="#" |
47478 | if test "x$PLATFORM_OS2" = "x1" ; then | |
47479 | COND_PLATFORM_OS2_1="" | |
47480 | fi | |
47481 | ||
47482 | COND_PLATFORM_UNIX_0="#" | |
47483 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
47484 | COND_PLATFORM_UNIX_0="" | |
47485 | fi | |
47486 | ||
47487 | COND_PLATFORM_UNIX_1="#" | |
47488 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
47489 | COND_PLATFORM_UNIX_1="" | |
47490 | fi | |
47491 | ||
47492 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
47493 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47494 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
47495 | fi | |
47496 | ||
47497 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
47498 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
47499 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
47500 | fi | |
47501 | ||
47502 | COND_PLATFORM_WIN32_0="#" | |
47503 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
47504 | COND_PLATFORM_WIN32_0="" | |
47505 | fi | |
47506 | ||
47507 | COND_PLATFORM_WIN32_1="#" | |
47508 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
47509 | COND_PLATFORM_WIN32_1="" | |
47510 | fi | |
47511 | ||
47512 | COND_SHARED_0="#" | |
47513 | if test "x$SHARED" = "x0" ; then | |
47514 | COND_SHARED_0="" | |
47515 | fi | |
47516 | ||
083508af MW |
47517 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
47518 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
47519 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
47520 | fi | |
47521 | ||
47522 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
47523 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47524 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
47525 | fi | |
47526 | ||
47527 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
47528 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
47529 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
47530 | fi | |
47531 | ||
a848cd7e SC |
47532 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
47533 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47534 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
47535 | fi | |
47536 | ||
47537 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47538 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47539 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47540 | fi | |
47541 | ||
47542 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47543 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47544 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47545 | fi | |
47546 | ||
47547 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47548 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47549 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47550 | fi | |
47551 | ||
083508af MW |
47552 | COND_SHARED_0_USE_XRC_1="#" |
47553 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47554 | COND_SHARED_0_USE_XRC_1="" | |
47555 | fi | |
47556 | ||
a848cd7e SC |
47557 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
47558 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47559 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
47560 | fi | |
47561 | ||
47562 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
47563 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
47564 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
47565 | fi | |
47566 | ||
47567 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
47568 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
47569 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
47570 | fi | |
47571 | ||
47572 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
47573 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
47574 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
47575 | fi | |
47576 | ||
47577 | COND_SHARED_1="#" | |
47578 | if test "x$SHARED" = "x1" ; then | |
47579 | COND_SHARED_1="" | |
47580 | fi | |
47581 | ||
47582 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
47583 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47584 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
47585 | fi | |
47586 | ||
083508af MW |
47587 | COND_SHARED_1_USE_XRC_1="#" |
47588 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47589 | COND_SHARED_1_USE_XRC_1="" | |
47590 | fi | |
47591 | ||
a30f955f VS |
47592 | COND_TOOLKIT_="#" |
47593 | if test "x$TOOLKIT" = "x" ; then | |
47594 | COND_TOOLKIT_="" | |
47595 | fi | |
47596 | ||
a848cd7e SC |
47597 | COND_TOOLKIT_COCOA="#" |
47598 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
47599 | COND_TOOLKIT_COCOA="" | |
47600 | fi | |
47601 | ||
a49baeab DE |
47602 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
47603 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
47604 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
47605 | fi | |
47606 | ||
a848cd7e SC |
47607 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
47608 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47609 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
47610 | fi | |
47611 | ||
47612 | COND_TOOLKIT_GTK="#" | |
47613 | if test "x$TOOLKIT" = "xGTK" ; then | |
47614 | COND_TOOLKIT_GTK="" | |
47615 | fi | |
47616 | ||
d044deea MW |
47617 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
47618 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
47619 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
47620 | fi | |
47621 | ||
47622 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
47623 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
47624 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
47625 | fi | |
47626 | ||
47627 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
47628 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
47629 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
47630 | fi | |
47631 | ||
47632 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
47633 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47634 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
47635 | fi | |
47636 | ||
47637 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
47638 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
47639 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
47640 | fi | |
47641 | ||
47642 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
47643 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47644 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
47645 | fi | |
47646 | ||
a848cd7e SC |
47647 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
47648 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
47649 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
47650 | fi | |
47651 | ||
a848cd7e SC |
47652 | COND_TOOLKIT_MAC="#" |
47653 | if test "x$TOOLKIT" = "xMAC" ; then | |
47654 | COND_TOOLKIT_MAC="" | |
47655 | fi | |
47656 | ||
47657 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
47658 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47659 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
47660 | fi | |
47661 | ||
47662 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
47663 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47664 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47665 | fi | |
47666 | ||
47667 | COND_TOOLKIT_MGL="#" | |
47668 | if test "x$TOOLKIT" = "xMGL" ; then | |
47669 | COND_TOOLKIT_MGL="" | |
47670 | fi | |
47671 | ||
47672 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
47673 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
47674 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
47675 | fi | |
47676 | ||
47677 | COND_TOOLKIT_MOTIF="#" | |
47678 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
47679 | COND_TOOLKIT_MOTIF="" | |
47680 | fi | |
47681 | ||
47682 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
47683 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
47684 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
47685 | fi | |
47686 | ||
47687 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
47688 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47689 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
47690 | fi | |
47691 | ||
47692 | COND_TOOLKIT_MSW="#" | |
47693 | if test "x$TOOLKIT" = "xMSW" ; then | |
47694 | COND_TOOLKIT_MSW="" | |
47695 | fi | |
47696 | ||
47697 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
47698 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
47699 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
47700 | fi | |
47701 | ||
47702 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
47703 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47704 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
47705 | fi | |
47706 | ||
0ee4059d DE |
47707 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
47708 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47709 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
47710 | fi | |
47711 | ||
a848cd7e SC |
47712 | COND_TOOLKIT_PM="#" |
47713 | if test "x$TOOLKIT" = "xPM" ; then | |
47714 | COND_TOOLKIT_PM="" | |
47715 | fi | |
47716 | ||
47717 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
47718 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
47719 | COND_TOOLKIT_PM_USE_GUI_1="" | |
47720 | fi | |
47721 | ||
47722 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
47723 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47724 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
47725 | fi | |
47726 | ||
3fd9c298 DE |
47727 | COND_TOOLKIT_WINCE="#" |
47728 | if test "x$TOOLKIT" = "xWINCE" ; then | |
47729 | COND_TOOLKIT_WINCE="" | |
47730 | fi | |
47731 | ||
47732 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
47733 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
47734 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
47735 | fi | |
47736 | ||
47737 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
47738 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47739 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
47740 | fi | |
47741 | ||
0ee4059d DE |
47742 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
47743 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
47744 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
47745 | fi | |
47746 | ||
a848cd7e SC |
47747 | COND_TOOLKIT_X11="#" |
47748 | if test "x$TOOLKIT" = "xX11" ; then | |
47749 | COND_TOOLKIT_X11="" | |
47750 | fi | |
47751 | ||
47752 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
47753 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
47754 | COND_TOOLKIT_X11_USE_GUI_1="" | |
47755 | fi | |
47756 | ||
47757 | COND_UNICODE_1="#" | |
47758 | if test "x$UNICODE" = "x1" ; then | |
47759 | COND_UNICODE_1="" | |
47760 | fi | |
47761 | ||
47762 | COND_USE_EXCEPTIONS_0="#" | |
47763 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
47764 | COND_USE_EXCEPTIONS_0="" | |
47765 | fi | |
47766 | ||
47767 | COND_USE_EXCEPTIONS_1="#" | |
47768 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
47769 | COND_USE_EXCEPTIONS_1="" | |
47770 | fi | |
47771 | ||
47772 | COND_USE_GUI_0="#" | |
47773 | if test "x$USE_GUI" = "x0" ; then | |
47774 | COND_USE_GUI_0="" | |
47775 | fi | |
47776 | ||
47777 | COND_USE_GUI_1="#" | |
47778 | if test "x$USE_GUI" = "x1" ; then | |
47779 | COND_USE_GUI_1="" | |
47780 | fi | |
47781 | ||
47782 | COND_USE_GUI_1_WXUNIV_0="#" | |
47783 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47784 | COND_USE_GUI_1_WXUNIV_0="" | |
47785 | fi | |
47786 | ||
47787 | COND_USE_GUI_1_WXUNIV_1="#" | |
47788 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
47789 | COND_USE_GUI_1_WXUNIV_1="" | |
47790 | fi | |
47791 | ||
47792 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47793 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47794 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47795 | fi | |
47796 | ||
47797 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47798 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47799 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47800 | fi | |
47801 | ||
47802 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47803 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47804 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47805 | fi | |
47806 | ||
083508af MW |
47807 | COND_USE_ODBC_1="#" |
47808 | if test "x$USE_ODBC" = "x1" ; then | |
47809 | COND_USE_ODBC_1="" | |
47810 | fi | |
47811 | ||
47812 | COND_USE_OPENGL_1="#" | |
47813 | if test "x$USE_OPENGL" = "x1" ; then | |
47814 | COND_USE_OPENGL_1="" | |
47815 | fi | |
47816 | ||
f10e38c4 VZ |
47817 | COND_USE_PCH_1="#" |
47818 | if test "x$USE_PCH" = "x1" ; then | |
47819 | COND_USE_PCH_1="" | |
47820 | fi | |
47821 | ||
a848cd7e SC |
47822 | COND_USE_PLUGINS_0="#" |
47823 | if test "x$USE_PLUGINS" = "x0" ; then | |
47824 | COND_USE_PLUGINS_0="" | |
47825 | fi | |
47826 | ||
0b78747f MW |
47827 | COND_USE_RTTI_0="#" |
47828 | if test "x$USE_RTTI" = "x0" ; then | |
47829 | COND_USE_RTTI_0="" | |
47830 | fi | |
47831 | ||
47832 | COND_USE_RTTI_1="#" | |
47833 | if test "x$USE_RTTI" = "x1" ; then | |
47834 | COND_USE_RTTI_1="" | |
47835 | fi | |
47836 | ||
a848cd7e SC |
47837 | COND_USE_SOSYMLINKS_1="#" |
47838 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
47839 | COND_USE_SOSYMLINKS_1="" | |
47840 | fi | |
47841 | ||
eb730a0c JS |
47842 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
47843 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47844 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
47845 | fi | |
47846 | ||
a848cd7e SC |
47847 | COND_USE_SOVERLINUX_1="#" |
47848 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
47849 | COND_USE_SOVERLINUX_1="" | |
47850 | fi | |
47851 | ||
47852 | COND_USE_SOVERSION_0="#" | |
47853 | if test "x$USE_SOVERSION" = "x0" ; then | |
47854 | COND_USE_SOVERSION_0="" | |
47855 | fi | |
47856 | ||
47857 | COND_USE_SOVERSOLARIS_1="#" | |
47858 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
47859 | COND_USE_SOVERSOLARIS_1="" | |
47860 | fi | |
47861 | ||
0b78747f MW |
47862 | COND_USE_THREADS_0="#" |
47863 | if test "x$USE_THREADS" = "x0" ; then | |
47864 | COND_USE_THREADS_0="" | |
47865 | fi | |
47866 | ||
47867 | COND_USE_THREADS_1="#" | |
47868 | if test "x$USE_THREADS" = "x1" ; then | |
47869 | COND_USE_THREADS_1="" | |
47870 | fi | |
47871 | ||
a13a7f89 RL |
47872 | COND_USE_XRC_1="#" |
47873 | if test "x$USE_XRC" = "x1" ; then | |
47874 | COND_USE_XRC_1="" | |
47875 | fi | |
47876 | ||
eb730a0c JS |
47877 | COND_WINDOWS_IMPLIB_1="#" |
47878 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
47879 | COND_WINDOWS_IMPLIB_1="" | |
47880 | fi | |
47881 | ||
a848cd7e SC |
47882 | COND_WITH_PLUGIN_SDL_1="#" |
47883 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
47884 | COND_WITH_PLUGIN_SDL_1="" | |
47885 | fi | |
47886 | ||
1e6eb025 VZ |
47887 | COND_WXUNIV_0="#" |
47888 | if test "x$WXUNIV" = "x0" ; then | |
47889 | COND_WXUNIV_0="" | |
47890 | fi | |
47891 | ||
a848cd7e SC |
47892 | COND_WXUNIV_1="#" |
47893 | if test "x$WXUNIV" = "x1" ; then | |
47894 | COND_WXUNIV_1="" | |
47895 | fi | |
47896 | ||
47897 | COND_WXUSE_EXPAT_BUILTIN="#" | |
47898 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47899 | COND_WXUSE_EXPAT_BUILTIN="" | |
47900 | fi | |
47901 | ||
47902 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
47903 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47904 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
47905 | fi | |
47906 | ||
47907 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
47908 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47909 | COND_WXUSE_LIBPNG_BUILTIN="" | |
47910 | fi | |
47911 | ||
47912 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
47913 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47914 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
47915 | fi | |
47916 | ||
47917 | COND_WXUSE_ODBC_BUILTIN="#" | |
47918 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
47919 | COND_WXUSE_ODBC_BUILTIN="" | |
47920 | fi | |
47921 | ||
47922 | COND_WXUSE_REGEX_BUILTIN="#" | |
47923 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
47924 | COND_WXUSE_REGEX_BUILTIN="" | |
47925 | fi | |
47926 | ||
47927 | COND_WXUSE_ZLIB_BUILTIN="#" | |
47928 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
47929 | COND_WXUSE_ZLIB_BUILTIN="" | |
47930 | fi | |
47931 | ||
47932 | ||
47933 | ||
810b94f0 MW |
47934 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
47935 | { { 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 | |
47936 | 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;} | |
47937 | { (exit 1); exit 1; }; } | |
47938 | fi | |
47939 | ||
2057db16 VS |
47940 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
47941 | { { 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 | |
47942 | 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;} | |
47943 | { (exit 1); exit 1; }; } | |
47944 | fi | |
47945 | ||
a848cd7e | 47946 | |
7afc46ab KO |
47947 | |
47948 | if test "$wxUSE_MAC" = 1 ; then | |
47949 | if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then | |
47950 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp | |
47951 | mv temp bk-deps | |
47952 | chmod +x bk-deps | |
47953 | fi | |
47954 | fi | |
47955 | ||
ceec2216 RL |
47956 | if test "$wxUSE_SHARED" = "yes"; then |
47957 | ||
47958 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
47959 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
47960 | ||
5b674b9d DE |
47961 | case "${host}" in |
47962 | *-pc-os2_emx | *-pc-os2-emx ) | |
47963 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
47964 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
47965 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
47966 | cp -p ${srcdir}/src/os2/dllar.sh . | |
47967 | ;; | |
47968 | esac | |
ceec2216 RL |
47969 | else |
47970 | ||
47971 | EXE_LINKER="$CXX -o" | |
47972 | ||
47973 | fi | |
69120ee4 VZ |
47974 | if test "$wxUSE_OMF" = "yes"; then |
47975 | case "${host}" in | |
47976 | *-pc-os2_emx | *-pc-os2-emx ) | |
47977 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
47978 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
47979 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
47980 | ;; | |
47981 | esac | |
47982 | fi | |
a848cd7e | 47983 | |
c08ebc62 | 47984 | if test $GCC_PCH = 1 ; then |
254e8e29 | 47985 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 47986 | fi |
a848cd7e | 47987 | |
5ff751d6 | 47988 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
47989 | |
47990 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
47991 | ||
47992 | ||
47993 | ||
47994 | ||
47995 | ||
47996 | ||
47997 | ||
47998 | ||
47999 | ||
48000 | ||
48001 | ||
48002 | ||
48003 | ||
48004 | ||
48005 | ||
48006 | ||
48007 | ||
48008 | ||
48009 | ||
48010 | ||
48011 | ||
48012 | ||
48013 | ||
48014 | ||
48015 | ||
48016 | ||
48017 | ||
48018 | ||
48019 | ||
48020 | ||
48021 | ||
48022 | ||
48023 | ||
48024 | ||
48025 | ||
48026 | ||
48027 | ||
48028 | ||
48029 | ||
48030 | ||
48031 | ||
48032 | ||
a848cd7e SC |
48033 | |
48034 | ||
48035 | ||
48036 | ||
48037 | ||
48038 | ||
48039 | ||
48040 | ||
48041 | ||
48042 | ||
48043 | ||
48044 | ||
a848cd7e SC |
48045 | |
48046 | ||
ddd14b14 | 48047 | |
370d2fd7 | 48048 | |
8ced02f6 | 48049 | |
a848cd7e SC |
48050 | |
48051 | ||
48052 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
48053 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 48054 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
48055 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
48056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48057 | else | |
48058 | cat >conftest.make <<\_ACEOF | |
48059 | all: | |
48060 | @echo 'ac_maketemp="$(MAKE)"' | |
48061 | _ACEOF | |
48062 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
48063 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
48064 | if test -n "$ac_maketemp"; then | |
48065 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48066 | else | |
48067 | eval ac_cv_prog_make_${ac_make}_set=no | |
48068 | fi | |
48069 | rm -f conftest.make | |
48070 | fi | |
48071 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48072 | echo "$as_me:$LINENO: result: yes" >&5 | |
48073 | echo "${ECHO_T}yes" >&6 | |
48074 | SET_MAKE= | |
48075 | else | |
48076 | echo "$as_me:$LINENO: result: no" >&5 | |
48077 | echo "${ECHO_T}no" >&6 | |
48078 | SET_MAKE="MAKE=${MAKE-make}" | |
48079 | fi | |
48080 | ||
48081 | ||
a848cd7e | 48082 | |
ceec2216 RL |
48083 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
48084 | ||
a848cd7e | 48085 | |
5c60e845 MW |
48086 | if test "$USE_WIN32" = 1; then |
48087 | ac_config_commands="$ac_config_commands | |
48088 | rcdefs.h | |
48089 | " | |
48090 | ||
48091 | fi | |
48092 | ||
ceec2216 | 48093 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 48094 | |
a848cd7e | 48095 | |
ceec2216 | 48096 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 48097 | |
ceec2216 RL |
48098 | |
48099 | ac_config_files="$ac_config_files version-script Makefile" | |
48100 | ||
48101 | ||
5c60e845 | 48102 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
48103 | |
48104 | ||
9103d280 | 48105 | |
1c14217d | 48106 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
48107 | if test "$wxUSE_GUI" = "yes"; then |
48108 | SUBDIRS="samples demos utils contrib" | |
48109 | else SUBDIRS="samples utils" | |
48110 | fi | |
48111 | ||
48112 | ||
48113 | ||
48114 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
48115 | if test "${with_cppunit_prefix+set}" = set; then | |
48116 | withval="$with_cppunit_prefix" | |
48117 | cppunit_config_prefix="$withval" | |
48118 | else | |
48119 | cppunit_config_prefix="" | |
48120 | fi; | |
48121 | ||
48122 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
48123 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
48124 | withval="$with_cppunit_exec_prefix" | |
48125 | cppunit_config_exec_prefix="$withval" | |
48126 | else | |
48127 | cppunit_config_exec_prefix="" | |
48128 | fi; | |
48129 | ||
48130 | if test x$cppunit_config_exec_prefix != x ; then | |
48131 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
48132 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48133 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
48134 | fi | |
48135 | fi | |
48136 | if test x$cppunit_config_prefix != x ; then | |
48137 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
48138 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48139 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
48140 | fi | |
48141 | fi | |
48142 | ||
48143 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
48144 | set dummy cppunit-config; ac_word=$2 | |
48145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48147 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
48148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48149 | else | |
48150 | case $CPPUNIT_CONFIG in | |
48151 | [\\/]* | ?:[\\/]*) | |
48152 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
48153 | ;; | |
48154 | *) | |
48155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48156 | for as_dir in $PATH | |
48157 | do | |
48158 | IFS=$as_save_IFS | |
48159 | test -z "$as_dir" && as_dir=. | |
48160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48162 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
48163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48164 | break 2 | |
48165 | fi | |
48166 | done | |
48167 | done | |
48168 | ||
48169 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
48170 | ;; | |
48171 | esac | |
48172 | fi | |
48173 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
48174 | ||
48175 | if test -n "$CPPUNIT_CONFIG"; then | |
48176 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
48177 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
48178 | else | |
48179 | echo "$as_me:$LINENO: result: no" >&5 | |
48180 | echo "${ECHO_T}no" >&6 | |
48181 | fi | |
48182 | ||
48183 | cppunit_version_min=1.8.0 | |
48184 | ||
48185 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
48186 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
48187 | no_cppunit="" | |
48188 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
48189 | no_cppunit=yes | |
48190 | else | |
48191 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
48192 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
48193 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
48194 | ||
48195 | cppunit_major_version=`echo $cppunit_version | \ | |
48196 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48197 | cppunit_minor_version=`echo $cppunit_version | \ | |
48198 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48199 | cppunit_micro_version=`echo $cppunit_version | \ | |
48200 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48201 | ||
48202 | cppunit_major_min=`echo $cppunit_version_min | \ | |
48203 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48204 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
48205 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48206 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
48207 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48208 | ||
48209 | cppunit_version_proper=`expr \ | |
48210 | $cppunit_major_version \> $cppunit_major_min \| \ | |
48211 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48212 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
48213 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48214 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
48215 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
48216 | ||
48217 | if test "$cppunit_version_proper" = "1" ; then | |
48218 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
48219 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
48220 | else | |
48221 | echo "$as_me:$LINENO: result: no" >&5 | |
48222 | echo "${ECHO_T}no" >&6 | |
48223 | no_cppunit=yes | |
48224 | fi | |
48225 | fi | |
48226 | ||
48227 | if test "x$no_cppunit" = x ; then | |
c2218763 | 48228 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
48229 | else |
48230 | CPPUNIT_CFLAGS="" | |
48231 | CPPUNIT_LIBS="" | |
c2218763 | 48232 | : |
a848cd7e SC |
48233 | fi |
48234 | ||
48235 | ||
48236 | ||
48237 | ||
48238 | ||
48239 | for subdir in `echo $SUBDIRS`; do | |
48240 | if test -d ${srcdir}/${subdir} ; then | |
48241 | if test "$wxUSE_GUI" = "yes"; then | |
48242 | if test ${subdir} = "samples"; then | |
48243 | makefiles="samples/Makefile.in $makefiles" | |
48244 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
48245 | if test -d $srcdir/samples/$sample; then | |
48246 | makefiles="samples/$sample/Makefile.in $makefiles" | |
48247 | fi | |
48248 | done | |
9c112555 MW |
48249 | else |
48250 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
48251 | eval "disabled=\$$disabled_var" | |
48252 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
48253 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
48254 | fi |
48255 | else if test ${subdir} = "samples"; then | |
48256 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
48257 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
48258 | makefiles="" |
48259 | for util in HelpGen tex2rtf ; do | |
48260 | if test -d $srcdir/utils/$util ; then | |
48261 | makefiles="utils/$util/Makefile.in \ | |
48262 | utils/$util/src/Makefile.in \ | |
48263 | $makefiles" | |
48264 | fi | |
48265 | done | |
a848cd7e SC |
48266 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
48267 | fi | |
48268 | fi | |
48269 | ||
48270 | for mkin in $makefiles ; do | |
48271 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
48272 | ac_config_files="$ac_config_files $mk" | |
48273 | ||
48274 | done | |
48275 | fi | |
48276 | done | |
1c14217d | 48277 | fi |
a848cd7e SC |
48278 | cat >confcache <<\_ACEOF |
48279 | # This file is a shell script that caches the results of configure | |
48280 | # tests run on this system so they can be shared between configure | |
48281 | # scripts and configure runs, see configure's option --config-cache. | |
48282 | # It is not useful on other systems. If it contains results you don't | |
48283 | # want to keep, you may remove or edit it. | |
48284 | # | |
48285 | # config.status only pays attention to the cache file if you give it | |
48286 | # the --recheck option to rerun configure. | |
48287 | # | |
48288 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
48289 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
48290 | # following values. | |
48291 | ||
48292 | _ACEOF | |
48293 | ||
48294 | # The following way of writing the cache mishandles newlines in values, | |
48295 | # but we know of no workaround that is simple, portable, and efficient. | |
48296 | # So, don't put newlines in cache variables' values. | |
48297 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
48298 | # and sets the high bit in the cache file unless we assign to the vars. | |
48299 | { | |
48300 | (set) 2>&1 | | |
48301 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
48302 | *ac_space=\ *) | |
48303 | # `set' does not quote correctly, so add quotes (double-quote | |
48304 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
48305 | sed -n \ | |
ac1cb8d3 VS |
48306 | "s/'/'\\\\''/g; |
48307 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
48308 | ;; |
48309 | *) | |
48310 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
48311 | sed -n \ | |
ac1cb8d3 | 48312 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
48313 | ;; |
48314 | esac; | |
48315 | } | | |
48316 | sed ' | |
48317 | t clear | |
48318 | : clear | |
48319 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
48320 | t end | |
48321 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
48322 | : end' >>confcache | |
48323 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
48324 | if test -w $cache_file; then | |
48325 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
48326 | cat confcache >$cache_file | |
48327 | else | |
48328 | echo "not updating unwritable cache $cache_file" | |
48329 | fi | |
48330 | fi | |
48331 | rm -f confcache | |
48332 | ||
48333 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
48334 | # Let make expand exec_prefix. | |
48335 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
48336 | ||
48337 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
48338 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
48339 | # trailing colons and then remove the whole line if VPATH becomes empty | |
48340 | # (actually we leave an empty line to preserve line numbers). | |
48341 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 48342 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
48343 | s/:*\$(srcdir):*/:/; |
48344 | s/:*\${srcdir}:*/:/; | |
48345 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 48346 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 48347 | s/:*$//; |
ac1cb8d3 | 48348 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
48349 | }' |
48350 | fi | |
48351 | ||
48352 | DEFS=-DHAVE_CONFIG_H | |
48353 | ||
48354 | ac_libobjs= | |
48355 | ac_ltlibobjs= | |
48356 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
48357 | # 1. Remove the extension, and $U if already installed. | |
48358 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 48359 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
48360 | # 2. Add them. |
48361 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
48362 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
48363 | done | |
48364 | LIBOBJS=$ac_libobjs | |
48365 | ||
48366 | LTLIBOBJS=$ac_ltlibobjs | |
48367 | ||
48368 | ||
48369 | ||
48370 | : ${CONFIG_STATUS=./config.status} | |
48371 | ac_clean_files_save=$ac_clean_files | |
48372 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
48373 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
48374 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
48375 | cat >$CONFIG_STATUS <<_ACEOF | |
48376 | #! $SHELL | |
48377 | # Generated by $as_me. | |
48378 | # Run this file to recreate the current configuration. | |
48379 | # Compiler output produced by configure, useful for debugging | |
48380 | # configure, is in config.log if it exists. | |
48381 | ||
48382 | debug=false | |
48383 | ac_cs_recheck=false | |
48384 | ac_cs_silent=false | |
48385 | SHELL=\${CONFIG_SHELL-$SHELL} | |
48386 | _ACEOF | |
48387 | ||
48388 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48389 | ## --------------------- ## | |
48390 | ## M4sh Initialization. ## | |
48391 | ## --------------------- ## | |
48392 | ||
48393 | # Be Bourne compatible | |
48394 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
48395 | emulate sh | |
48396 | NULLCMD=: | |
48397 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
48398 | # is contrary to our usage. Disable this feature. | |
48399 | alias -g '${1+"$@"}'='"$@"' | |
48400 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
48401 | set -o posix | |
48402 | fi | |
ac1cb8d3 | 48403 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
48404 | |
48405 | # Support unset when possible. | |
ac1cb8d3 | 48406 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
48407 | as_unset=unset |
48408 | else | |
48409 | as_unset=false | |
48410 | fi | |
48411 | ||
48412 | ||
48413 | # Work around bugs in pre-3.0 UWIN ksh. | |
48414 | $as_unset ENV MAIL MAILPATH | |
48415 | PS1='$ ' | |
48416 | PS2='> ' | |
48417 | PS4='+ ' | |
48418 | ||
48419 | # NLS nuisances. | |
48420 | for as_var in \ | |
48421 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
48422 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
48423 | LC_TELEPHONE LC_TIME | |
48424 | do | |
ac1cb8d3 | 48425 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48426 | eval $as_var=C; export $as_var |
48427 | else | |
48428 | $as_unset $as_var | |
48429 | fi | |
48430 | done | |
48431 | ||
48432 | # Required to use basename. | |
48433 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48434 | as_expr=expr | |
48435 | else | |
48436 | as_expr=false | |
48437 | fi | |
48438 | ||
48439 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
48440 | as_basename=basename | |
48441 | else | |
48442 | as_basename=false | |
48443 | fi | |
48444 | ||
48445 | ||
48446 | # Name of the executable. | |
48447 | as_me=`$as_basename "$0" || | |
48448 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
48449 | X"$0" : 'X\(//\)$' \| \ | |
48450 | X"$0" : 'X\(/\)$' \| \ | |
48451 | . : '\(.\)' 2>/dev/null || | |
48452 | echo X/"$0" | | |
48453 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
48454 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
48455 | /^X\/\(\/\).*/{ s//\1/; q; } | |
48456 | s/.*/./; q'` | |
48457 | ||
48458 | ||
48459 | # PATH needs CR, and LINENO needs CR and PATH. | |
48460 | # Avoid depending upon Character Ranges. | |
48461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
48462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
48463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
48464 | as_cr_digits='0123456789' | |
48465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
48466 | ||
48467 | # The user is always right. | |
48468 | if test "${PATH_SEPARATOR+set}" != set; then | |
48469 | echo "#! /bin/sh" >conf$$.sh | |
48470 | echo "exit 0" >>conf$$.sh | |
48471 | chmod +x conf$$.sh | |
48472 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48473 | PATH_SEPARATOR=';' | |
48474 | else | |
48475 | PATH_SEPARATOR=: | |
48476 | fi | |
48477 | rm -f conf$$.sh | |
48478 | fi | |
48479 | ||
48480 | ||
48481 | as_lineno_1=$LINENO | |
48482 | as_lineno_2=$LINENO | |
48483 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48484 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48485 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
48486 | # Find who we are. Look in the path if we contain no path at all | |
48487 | # relative or not. | |
48488 | case $0 in | |
48489 | *[\\/]* ) as_myself=$0 ;; | |
48490 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48491 | for as_dir in $PATH | |
48492 | do | |
48493 | IFS=$as_save_IFS | |
48494 | test -z "$as_dir" && as_dir=. | |
48495 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
48496 | done | |
48497 | ||
48498 | ;; | |
48499 | esac | |
48500 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
48501 | # in which case we are not to be found in the path. | |
48502 | if test "x$as_myself" = x; then | |
48503 | as_myself=$0 | |
48504 | fi | |
48505 | if test ! -f "$as_myself"; then | |
48506 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
48507 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
48508 | { (exit 1); exit 1; }; } | |
48509 | fi | |
48510 | case $CONFIG_SHELL in | |
48511 | '') | |
48512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48513 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
48514 | do | |
48515 | IFS=$as_save_IFS | |
48516 | test -z "$as_dir" && as_dir=. | |
48517 | for as_base in sh bash ksh sh5; do | |
48518 | case $as_dir in | |
48519 | /*) | |
48520 | if ("$as_dir/$as_base" -c ' | |
48521 | as_lineno_1=$LINENO | |
48522 | as_lineno_2=$LINENO | |
48523 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48524 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48525 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
48526 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
48527 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
48528 | CONFIG_SHELL=$as_dir/$as_base | |
48529 | export CONFIG_SHELL | |
48530 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
48531 | fi;; | |
48532 | esac | |
48533 | done | |
48534 | done | |
48535 | ;; | |
48536 | esac | |
48537 | ||
48538 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
48539 | # uniformly replaced by the line number. The first 'sed' inserts a | |
48540 | # line-number line before each line; the second 'sed' does the real | |
48541 | # work. The second script uses 'N' to pair each line-number line | |
48542 | # with the numbered line, and appends trailing '-' during | |
48543 | # substitution so that $LINENO is not a special case at line end. | |
48544 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
48545 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
48546 | sed '=' <$as_myself | | |
48547 | sed ' | |
48548 | N | |
48549 | s,$,-, | |
48550 | : loop | |
48551 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
48552 | t loop | |
48553 | s,-$,, | |
48554 | s,^['$as_cr_digits']*\n,, | |
48555 | ' >$as_me.lineno && | |
48556 | chmod +x $as_me.lineno || | |
48557 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
48558 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
48559 | { (exit 1); exit 1; }; } | |
48560 | ||
48561 | # Don't try to exec as it changes $[0], causing all sort of problems | |
48562 | # (the dirname of $[0] is not the place where we might find the | |
48563 | # original and so on. Autoconf is especially sensible to this). | |
48564 | . ./$as_me.lineno | |
48565 | # Exit status is that of the last command. | |
48566 | exit | |
48567 | } | |
48568 | ||
48569 | ||
48570 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
48571 | *c*,-n*) ECHO_N= ECHO_C=' | |
48572 | ' ECHO_T=' ' ;; | |
48573 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
48574 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
48575 | esac | |
48576 | ||
48577 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48578 | as_expr=expr | |
48579 | else | |
48580 | as_expr=false | |
48581 | fi | |
48582 | ||
48583 | rm -f conf$$ conf$$.exe conf$$.file | |
48584 | echo >conf$$.file | |
48585 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
48586 | # We could just check for DJGPP; but this test a) works b) is more generic | |
48587 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
48588 | if test -f conf$$.exe; then | |
48589 | # Don't use ln at all; we don't have any links | |
48590 | as_ln_s='cp -p' | |
48591 | else | |
48592 | as_ln_s='ln -s' | |
48593 | fi | |
48594 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
48595 | as_ln_s=ln | |
48596 | else | |
48597 | as_ln_s='cp -p' | |
48598 | fi | |
48599 | rm -f conf$$ conf$$.exe conf$$.file | |
48600 | ||
48601 | if mkdir -p . 2>/dev/null; then | |
48602 | as_mkdir_p=: | |
48603 | else | |
ac1cb8d3 | 48604 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
48605 | as_mkdir_p=false |
48606 | fi | |
48607 | ||
48608 | as_executable_p="test -f" | |
48609 | ||
48610 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 48611 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48612 | |
48613 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 48614 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48615 | |
48616 | ||
48617 | # IFS | |
48618 | # We need space, tab and new line, in precisely that order. | |
48619 | as_nl=' | |
48620 | ' | |
48621 | IFS=" $as_nl" | |
48622 | ||
48623 | # CDPATH. | |
48624 | $as_unset CDPATH | |
48625 | ||
48626 | exec 6>&1 | |
48627 | ||
48628 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
48629 | # report actual input values of CONFIG_FILES etc. instead of their | |
48630 | # values after options handling. Logging --version etc. is OK. | |
48631 | exec 5>>config.log | |
48632 | { | |
48633 | echo | |
48634 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
48635 | ## Running $as_me. ## | |
48636 | _ASBOX | |
48637 | } >&5 | |
48638 | cat >&5 <<_CSEOF | |
48639 | ||
dd8df4fc | 48640 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 48641 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
48642 | |
48643 | CONFIG_FILES = $CONFIG_FILES | |
48644 | CONFIG_HEADERS = $CONFIG_HEADERS | |
48645 | CONFIG_LINKS = $CONFIG_LINKS | |
48646 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
48647 | $ $0 $@ | |
48648 | ||
48649 | _CSEOF | |
48650 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
48651 | echo >&5 | |
48652 | _ACEOF | |
48653 | ||
48654 | # Files that config.status was made for. | |
48655 | if test -n "$ac_config_files"; then | |
48656 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
48657 | fi | |
48658 | ||
48659 | if test -n "$ac_config_headers"; then | |
48660 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
48661 | fi | |
48662 | ||
48663 | if test -n "$ac_config_links"; then | |
48664 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
48665 | fi | |
48666 | ||
48667 | if test -n "$ac_config_commands"; then | |
48668 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
48669 | fi | |
48670 | ||
48671 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48672 | ||
48673 | ac_cs_usage="\ | |
48674 | \`$as_me' instantiates files from templates according to the | |
48675 | current configuration. | |
48676 | ||
48677 | Usage: $0 [OPTIONS] [FILE]... | |
48678 | ||
48679 | -h, --help print this help, then exit | |
48680 | -V, --version print version number, then exit | |
48681 | -q, --quiet do not print progress messages | |
48682 | -d, --debug don't remove temporary files | |
48683 | --recheck update $as_me by reconfiguring in the same conditions | |
48684 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 48685 | instantiate the configuration file FILE |
a848cd7e | 48686 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 48687 | instantiate the configuration header FILE |
a848cd7e SC |
48688 | |
48689 | Configuration files: | |
48690 | $config_files | |
48691 | ||
48692 | Configuration headers: | |
48693 | $config_headers | |
48694 | ||
48695 | Configuration commands: | |
48696 | $config_commands | |
48697 | ||
48698 | Report bugs to <bug-autoconf@gnu.org>." | |
48699 | _ACEOF | |
48700 | ||
48701 | cat >>$CONFIG_STATUS <<_ACEOF | |
48702 | ac_cs_version="\\ | |
dd8df4fc | 48703 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 48704 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
48705 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
48706 | ||
ac1cb8d3 | 48707 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
48708 | This config.status script is free software; the Free Software Foundation |
48709 | gives unlimited permission to copy, distribute and modify it." | |
48710 | srcdir=$srcdir | |
48711 | INSTALL="$INSTALL" | |
48712 | _ACEOF | |
48713 | ||
48714 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48715 | # If no file are specified by the user, then we need to provide default | |
48716 | # value. By we need to know if files were specified by the user. | |
48717 | ac_need_defaults=: | |
48718 | while test $# != 0 | |
48719 | do | |
48720 | case $1 in | |
48721 | --*=*) | |
48722 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
48723 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
48724 | ac_shift=: | |
48725 | ;; | |
48726 | -*) | |
48727 | ac_option=$1 | |
48728 | ac_optarg=$2 | |
48729 | ac_shift=shift | |
48730 | ;; | |
48731 | *) # This is not an option, so the user has probably given explicit | |
48732 | # arguments. | |
48733 | ac_option=$1 | |
48734 | ac_need_defaults=false;; | |
48735 | esac | |
48736 | ||
48737 | case $ac_option in | |
48738 | # Handling of the options. | |
48739 | _ACEOF | |
48740 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48741 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
48742 | ac_cs_recheck=: ;; | |
48743 | --version | --vers* | -V ) | |
48744 | echo "$ac_cs_version"; exit 0 ;; | |
48745 | --he | --h) | |
48746 | # Conflict between --help and --header | |
48747 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
48748 | Try \`$0 --help' for more information." >&5 | |
48749 | echo "$as_me: error: ambiguous option: $1 | |
48750 | Try \`$0 --help' for more information." >&2;} | |
48751 | { (exit 1); exit 1; }; };; | |
48752 | --help | --hel | -h ) | |
48753 | echo "$ac_cs_usage"; exit 0 ;; | |
48754 | --debug | --d* | -d ) | |
48755 | debug=: ;; | |
48756 | --file | --fil | --fi | --f ) | |
48757 | $ac_shift | |
48758 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
48759 | ac_need_defaults=false;; | |
48760 | --header | --heade | --head | --hea ) | |
48761 | $ac_shift | |
48762 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
48763 | ac_need_defaults=false;; | |
48764 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
48765 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
48766 | ac_cs_silent=: ;; | |
48767 | ||
48768 | # This is an error. | |
48769 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
48770 | Try \`$0 --help' for more information." >&5 | |
48771 | echo "$as_me: error: unrecognized option: $1 | |
48772 | Try \`$0 --help' for more information." >&2;} | |
48773 | { (exit 1); exit 1; }; } ;; | |
48774 | ||
48775 | *) ac_config_targets="$ac_config_targets $1" ;; | |
48776 | ||
48777 | esac | |
48778 | shift | |
48779 | done | |
48780 | ||
48781 | ac_configure_extra_args= | |
48782 | ||
48783 | if $ac_cs_silent; then | |
48784 | exec 6>/dev/null | |
48785 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
48786 | fi | |
48787 | ||
48788 | _ACEOF | |
48789 | cat >>$CONFIG_STATUS <<_ACEOF | |
48790 | if \$ac_cs_recheck; then | |
48791 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
48792 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
48793 | fi | |
48794 | ||
48795 | _ACEOF | |
48796 | ||
48797 | cat >>$CONFIG_STATUS <<_ACEOF | |
48798 | # | |
48799 | # INIT-COMMANDS section. | |
48800 | # | |
48801 | ||
5c60e845 MW |
48802 | |
48803 | CPP="$CPP" | |
48804 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
48805 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
48806 | ||
48807 | ||
ceec2216 RL |
48808 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
48809 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48810 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48811 | LN_S="${LN_S}" | |
a848cd7e SC |
48812 | |
48813 | ||
48814 | _ACEOF | |
48815 | ||
48816 | ||
48817 | ||
48818 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48819 | for ac_config_target in $ac_config_targets | |
48820 | do | |
48821 | case "$ac_config_target" in | |
48822 | # Handling of arguments. | |
ceec2216 RL |
48823 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
48824 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
48825 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
48826 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
48827 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 48828 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
48829 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
48830 | "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 |
48831 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
48832 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
48833 | { (exit 1); exit 1; }; };; | |
48834 | esac | |
48835 | done | |
48836 | ||
48837 | # If the user did not use the arguments to specify the items to instantiate, | |
48838 | # then the envvar interface is used. Set only those that are not. | |
48839 | # We use the long form for the default assignment because of an extremely | |
48840 | # bizarre bug on SunOS 4.1.3. | |
48841 | if $ac_need_defaults; then | |
48842 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
48843 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
48844 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
48845 | fi | |
48846 | ||
48847 | # Have a temporary directory for convenience. Make it in the build tree | |
48848 | # simply because there is no reason to put it here, and in addition, | |
48849 | # creating and moving files from /tmp can sometimes cause problems. | |
48850 | # Create a temporary directory, and hook for its removal unless debugging. | |
48851 | $debug || | |
48852 | { | |
48853 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
48854 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
48855 | } | |
48856 | ||
48857 | # Create a (secure) tmp directory for tmp files. | |
48858 | ||
48859 | { | |
48860 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
48861 | test -n "$tmp" && test -d "$tmp" | |
48862 | } || | |
48863 | { | |
48864 | tmp=./confstat$$-$RANDOM | |
48865 | (umask 077 && mkdir $tmp) | |
48866 | } || | |
48867 | { | |
48868 | echo "$me: cannot create a temporary directory in ." >&2 | |
48869 | { (exit 1); exit 1; } | |
48870 | } | |
48871 | ||
48872 | _ACEOF | |
48873 | ||
48874 | cat >>$CONFIG_STATUS <<_ACEOF | |
48875 | ||
48876 | # | |
48877 | # CONFIG_FILES section. | |
48878 | # | |
48879 | ||
48880 | # No need to generate the scripts if there are no CONFIG_FILES. | |
48881 | # This happens for instance when ./config.status config.h | |
48882 | if test -n "\$CONFIG_FILES"; then | |
48883 | # Protect against being on the right side of a sed subst in config.status. | |
48884 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
48885 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
48886 | s,@SHELL@,$SHELL,;t t | |
48887 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
48888 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
48889 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
48890 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
48891 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
48892 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
48893 | s,@exec_prefix@,$exec_prefix,;t t | |
48894 | s,@prefix@,$prefix,;t t | |
48895 | s,@program_transform_name@,$program_transform_name,;t t | |
48896 | s,@bindir@,$bindir,;t t | |
48897 | s,@sbindir@,$sbindir,;t t | |
48898 | s,@libexecdir@,$libexecdir,;t t | |
48899 | s,@datadir@,$datadir,;t t | |
48900 | s,@sysconfdir@,$sysconfdir,;t t | |
48901 | s,@sharedstatedir@,$sharedstatedir,;t t | |
48902 | s,@localstatedir@,$localstatedir,;t t | |
48903 | s,@libdir@,$libdir,;t t | |
48904 | s,@includedir@,$includedir,;t t | |
48905 | s,@oldincludedir@,$oldincludedir,;t t | |
48906 | s,@infodir@,$infodir,;t t | |
48907 | s,@mandir@,$mandir,;t t | |
48908 | s,@build_alias@,$build_alias,;t t | |
48909 | s,@host_alias@,$host_alias,;t t | |
48910 | s,@target_alias@,$target_alias,;t t | |
48911 | s,@DEFS@,$DEFS,;t t | |
48912 | s,@ECHO_C@,$ECHO_C,;t t | |
48913 | s,@ECHO_N@,$ECHO_N,;t t | |
48914 | s,@ECHO_T@,$ECHO_T,;t t | |
48915 | s,@LIBS@,$LIBS,;t t | |
48916 | s,@build@,$build,;t t | |
48917 | s,@build_cpu@,$build_cpu,;t t | |
48918 | s,@build_vendor@,$build_vendor,;t t | |
48919 | s,@build_os@,$build_os,;t t | |
48920 | s,@host@,$host,;t t | |
48921 | s,@host_cpu@,$host_cpu,;t t | |
48922 | s,@host_vendor@,$host_vendor,;t t | |
48923 | s,@host_os@,$host_os,;t t | |
48924 | s,@target@,$target,;t t | |
48925 | s,@target_cpu@,$target_cpu,;t t | |
48926 | s,@target_vendor@,$target_vendor,;t t | |
48927 | s,@target_os@,$target_os,;t t | |
48928 | s,@CC@,$CC,;t t | |
48929 | s,@CFLAGS@,$CFLAGS,;t t | |
48930 | s,@LDFLAGS@,$LDFLAGS,;t t | |
48931 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
48932 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
48933 | s,@EXEEXT@,$EXEEXT,;t t | |
48934 | s,@OBJEXT@,$OBJEXT,;t t | |
48935 | s,@CPP@,$CPP,;t t | |
48936 | s,@EGREP@,$EGREP,;t t | |
48937 | s,@CXX@,$CXX,;t t | |
48938 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
48939 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
48940 | s,@RANLIB@,$RANLIB,;t t | |
48941 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
48942 | s,@AR@,$AR,;t t | |
8c80d384 | 48943 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
48944 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
48945 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
48946 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
48947 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 48948 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
48949 | s,@WINDRES@,$WINDRES,;t t |
48950 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
48951 | s,@DLLTOOL@,$DLLTOOL,;t t |
48952 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
48953 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
48954 | s,@LN_S@,$LN_S,;t t | |
48955 | s,@CXXCPP@,$CXXCPP,;t t | |
48956 | s,@subdirs@,$subdirs,;t t | |
48957 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
48958 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
48959 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
48960 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
48961 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
48962 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
48963 | s,@X_LIBS@,$X_LIBS,;t t | |
48964 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
48965 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
48966 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
48967 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
48968 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
48969 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
48970 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 48971 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
48972 | s,@DEREZ@,$DEREZ,;t t |
48973 | s,@SETFILE@,$SETFILE,;t t | |
48974 | s,@LIBICONV@,$LIBICONV,;t t | |
48975 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
48976 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
48977 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
48978 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
48979 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
48980 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
3565d135 RR |
48981 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
48982 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
f10e38c4 VZ |
48983 | s,@GST_CFLAGS@,$GST_CFLAGS,;t t |
48984 | s,@GST_LIBS@,$GST_LIBS,;t t | |
a848cd7e SC |
48985 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
48986 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
48987 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
48988 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
48989 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
48990 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
48991 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
48992 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
48993 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
48994 | s,@VENDOR@,$VENDOR,;t t | |
48995 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
48996 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
48997 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
48998 | s,@WXUNIV@,$WXUNIV,;t t |
48999 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
49000 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
49001 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
49002 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
49003 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
49004 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
49005 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
49006 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
49007 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
49008 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 49009 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
3565d135 | 49010 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
49011 | s,@UNICODE@,$UNICODE,;t t |
49012 | s,@BUILD@,$BUILD,;t t | |
49013 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
49014 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
49015 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
49016 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
49017 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
49018 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
49019 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
49020 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
49021 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
49022 | s,@SET_MAKE@,$SET_MAKE,;t t | |
49023 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
49024 | s,@NM@,$NM,;t t |
49025 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
49026 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
49027 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
49028 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
49029 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
49030 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
49031 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 49032 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
49033 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
49034 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 49035 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
49036 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
49037 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
49038 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
49039 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
49040 | s,@LIBEXT@,$LIBEXT,;t t | |
49041 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
49042 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 49043 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
49044 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
49045 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
49046 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
49047 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
49048 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
49049 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 49050 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
49051 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
49052 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
49053 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 49054 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
49055 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
49056 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
49057 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49058 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
49059 | s,@GCC_PCH@,$GCC_PCH,;t t | |
f10e38c4 | 49060 | s,@ICC_PCH@,$ICC_PCH,;t t |
a848cd7e SC |
49061 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
49062 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
49063 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
49064 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
49065 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
49066 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
49067 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
49068 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
49069 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
49070 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
49071 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
49072 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
49073 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
49074 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
49075 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
f10e38c4 | 49076 | s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t |
a848cd7e SC |
49077 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
49078 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
49079 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 49080 | 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 | 49081 | 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 | 49082 | 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 | 49083 | 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 | 49084 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 49085 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49086 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
49087 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 49088 | 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 | 49089 | 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 | 49090 | 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 | 49091 | 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 | 49092 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 49093 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
49094 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
49095 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
49096 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
49097 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
49098 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
49099 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 49100 | 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 |
49101 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
49102 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 49103 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
49104 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
49105 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
49106 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 49107 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 49108 | 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 |
49109 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
49110 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
49111 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
49112 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 49113 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 49114 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 49115 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
49116 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
49117 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
49118 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
49119 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
49120 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
49121 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
49122 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
49123 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
49124 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
49125 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
49126 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
49127 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
49128 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49129 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49130 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 49131 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49132 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
49133 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
49134 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
49135 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
49136 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
49137 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 49138 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 49139 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 49140 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 49141 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
49142 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
49143 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
d044deea MW |
49144 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
49145 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
49146 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
49147 | 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 | |
49148 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
49149 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 49150 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
49151 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
49152 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
49153 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
49154 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
49155 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
49156 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
49157 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
49158 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
49159 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
49160 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
49161 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49162 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
49163 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
49164 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
49165 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
49166 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
49167 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
49168 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49169 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
49170 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
49171 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
49172 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
49173 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
49174 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
49175 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
49176 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
49177 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
49178 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
49179 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49180 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49181 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
49182 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
49183 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
f10e38c4 | 49184 | s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t |
a848cd7e | 49185 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
49186 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
49187 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 49188 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 49189 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
49190 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
49191 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
49192 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
49193 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
49194 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 49195 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 49196 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 49197 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 49198 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
49199 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
49200 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
49201 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
49202 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
49203 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
49204 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
49205 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
49206 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 49207 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
49208 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
49209 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
49210 | s,@USE_GUI@,$USE_GUI,;t t |
49211 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
49212 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
49213 | s,@TOOLKIT@,$TOOLKIT,;t t | |
49214 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 49215 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 49216 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 49217 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
49218 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
49219 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
49220 | s,@WX_VERSION@,$WX_VERSION,;t t | |
49221 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
49222 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
49223 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
49224 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
49225 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
49226 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
49227 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
49228 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
49229 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 49230 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 49231 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 49232 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
49233 | s,@DISTDIR@,$DISTDIR,;t t |
49234 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
49235 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
49236 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
49237 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
49238 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 49239 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
49240 | s,@RESFLAGS@,$RESFLAGS,;t t |
49241 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
49242 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
49243 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
49244 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 49245 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 49246 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 49247 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
49248 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
49249 | s,@LIBOBJS@,$LIBOBJS,;t t | |
49250 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
49251 | CEOF | |
49252 | ||
49253 | _ACEOF | |
49254 | ||
49255 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49256 | # Split the substitutions into bite-sized pieces for seds with | |
49257 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
49258 | ac_max_sed_lines=48 | |
49259 | ac_sed_frag=1 # Number of current file. | |
49260 | ac_beg=1 # First line for current file. | |
49261 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
49262 | ac_more_lines=: | |
49263 | ac_sed_cmds= | |
49264 | while $ac_more_lines; do | |
49265 | if test $ac_beg -gt 1; then | |
49266 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49267 | else | |
49268 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49269 | fi | |
49270 | if test ! -s $tmp/subs.frag; then | |
49271 | ac_more_lines=false | |
49272 | else | |
49273 | # The purpose of the label and of the branching condition is to | |
49274 | # speed up the sed processing (if there are no `@' at all, there | |
49275 | # is no need to browse any of the substitutions). | |
49276 | # These are the two extra sed commands mentioned above. | |
49277 | (echo ':t | |
49278 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
49279 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 49280 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 49281 | else |
ac1cb8d3 | 49282 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
49283 | fi |
49284 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
49285 | ac_beg=$ac_end | |
49286 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
49287 | fi | |
49288 | done | |
49289 | if test -z "$ac_sed_cmds"; then | |
49290 | ac_sed_cmds=cat | |
49291 | fi | |
49292 | fi # test -n "$CONFIG_FILES" | |
49293 | ||
49294 | _ACEOF | |
49295 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49296 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
49297 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49298 | case $ac_file in | |
49299 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49300 | cat >$tmp/stdin |
49301 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49302 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49303 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49304 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49305 | * ) ac_file_in=$ac_file.in ;; |
49306 | esac | |
49307 | ||
49308 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
49309 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49310 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49311 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49312 | X"$ac_file" : 'X\(//\)$' \| \ | |
49313 | X"$ac_file" : 'X\(/\)' \| \ | |
49314 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49315 | echo X"$ac_file" | |
49316 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49317 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49318 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49319 | /^X\(\/\).*/{ s//\1/; q; } | |
49320 | s/.*/./; q'` | |
49321 | { if $as_mkdir_p; then | |
49322 | mkdir -p "$ac_dir" | |
49323 | else | |
49324 | as_dir="$ac_dir" | |
49325 | as_dirs= | |
49326 | while test ! -d "$as_dir"; do | |
49327 | as_dirs="$as_dir $as_dirs" | |
49328 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49329 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49330 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49331 | X"$as_dir" : 'X\(//\)$' \| \ | |
49332 | X"$as_dir" : 'X\(/\)' \| \ | |
49333 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49334 | echo X"$as_dir" | |
49335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49336 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49337 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49338 | /^X\(\/\).*/{ s//\1/; q; } | |
49339 | s/.*/./; q'` | |
49340 | done | |
49341 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49342 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49343 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49344 | { (exit 1); exit 1; }; }; } | |
49345 | ||
49346 | ac_builddir=. | |
49347 | ||
49348 | if test "$ac_dir" != .; then | |
49349 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49350 | # A "../" for each directory in $ac_dir_suffix. | |
49351 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49352 | else | |
49353 | ac_dir_suffix= ac_top_builddir= | |
49354 | fi | |
49355 | ||
49356 | case $srcdir in | |
49357 | .) # No --srcdir option. We are building in place. | |
49358 | ac_srcdir=. | |
49359 | if test -z "$ac_top_builddir"; then | |
49360 | ac_top_srcdir=. | |
49361 | else | |
49362 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49363 | fi ;; | |
49364 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49365 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49366 | ac_top_srcdir=$srcdir ;; | |
49367 | *) # Relative path. | |
49368 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49369 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49370 | esac | |
ac1cb8d3 VS |
49371 | |
49372 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49373 | # the directories may not exist. | |
49374 | case `pwd` in | |
49375 | .) ac_abs_builddir="$ac_dir";; | |
49376 | *) | |
49377 | case "$ac_dir" in | |
49378 | .) ac_abs_builddir=`pwd`;; | |
49379 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49380 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49381 | esac;; | |
49382 | esac | |
49383 | case $ac_abs_builddir in | |
49384 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49385 | *) | |
49386 | case ${ac_top_builddir}. in | |
49387 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49388 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49389 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49390 | esac;; | |
49391 | esac | |
49392 | case $ac_abs_builddir in | |
49393 | .) ac_abs_srcdir=$ac_srcdir;; | |
49394 | *) | |
49395 | case $ac_srcdir in | |
49396 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49397 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49398 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49399 | esac;; | |
49400 | esac | |
49401 | case $ac_abs_builddir in | |
49402 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49403 | *) | |
49404 | case $ac_top_srcdir in | |
49405 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49406 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49407 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49408 | esac;; | |
49409 | esac | |
a848cd7e SC |
49410 | |
49411 | ||
49412 | case $INSTALL in | |
49413 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
49414 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
49415 | esac | |
49416 | ||
a848cd7e SC |
49417 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
49418 | # use $as_me), people would be surprised to read: | |
49419 | # /* config.h. Generated by config.status. */ | |
49420 | if test x"$ac_file" = x-; then | |
49421 | configure_input= | |
49422 | else | |
49423 | configure_input="$ac_file. " | |
49424 | fi | |
49425 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 49426 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
49427 | |
49428 | # First look for the input files in the build tree, otherwise in the | |
49429 | # src tree. | |
49430 | ac_file_inputs=`IFS=: | |
49431 | for f in $ac_file_in; do | |
49432 | case $f in | |
49433 | -) echo $tmp/stdin ;; | |
49434 | [\\/$]*) | |
ac1cb8d3 VS |
49435 | # Absolute (can't be DOS-style, as IFS=:) |
49436 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49437 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49438 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49439 | echo "$f";; |
a848cd7e | 49440 | *) # Relative |
ac1cb8d3 VS |
49441 | if test -f "$f"; then |
49442 | # Build tree | |
49443 | echo "$f" | |
49444 | elif test -f "$srcdir/$f"; then | |
49445 | # Source tree | |
49446 | echo "$srcdir/$f" | |
49447 | else | |
49448 | # /dev/null tree | |
49449 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49450 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49451 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49452 | fi;; |
a848cd7e SC |
49453 | esac |
49454 | done` || { (exit 1); exit 1; } | |
f10e38c4 VZ |
49455 | |
49456 | if test x"$ac_file" != x-; then | |
49457 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49458 | echo "$as_me: creating $ac_file" >&6;} | |
49459 | rm -f "$ac_file" | |
49460 | fi | |
a848cd7e SC |
49461 | _ACEOF |
49462 | cat >>$CONFIG_STATUS <<_ACEOF | |
49463 | sed "$ac_vpsub | |
49464 | $extrasub | |
49465 | _ACEOF | |
49466 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49467 | :t | |
49468 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
49469 | s,@configure_input@,$configure_input,;t t | |
49470 | s,@srcdir@,$ac_srcdir,;t t | |
49471 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
49472 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
49473 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
49474 | s,@builddir@,$ac_builddir,;t t | |
49475 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
49476 | s,@top_builddir@,$ac_top_builddir,;t t | |
49477 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
49478 | s,@INSTALL@,$ac_INSTALL,;t t | |
49479 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
49480 | rm -f $tmp/stdin | |
49481 | if test x"$ac_file" != x-; then | |
49482 | mv $tmp/out $ac_file | |
49483 | else | |
49484 | cat $tmp/out | |
49485 | rm -f $tmp/out | |
49486 | fi | |
49487 | ||
ceec2216 RL |
49488 | # Run the commands associated with the file. |
49489 | case $ac_file in | |
49490 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
49491 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
49492 | esac | |
a848cd7e SC |
49493 | done |
49494 | _ACEOF | |
49495 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49496 | ||
49497 | # | |
49498 | # CONFIG_HEADER section. | |
49499 | # | |
49500 | ||
49501 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
49502 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
49503 | # | |
49504 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
49505 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
49506 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
49507 | ac_dC=' ' |
49508 | ac_dD=',;t' | |
49509 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 49510 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
49511 | ac_uB='$,\1#\2define\3' |
49512 | ac_uC=' ' | |
49513 | ac_uD=',;t' | |
49514 | ||
49515 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
49516 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49517 | case $ac_file in | |
49518 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49519 | cat >$tmp/stdin |
49520 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49521 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49522 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49523 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49524 | * ) ac_file_in=$ac_file.in ;; |
49525 | esac | |
49526 | ||
49527 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49528 | echo "$as_me: creating $ac_file" >&6;} | |
49529 | ||
49530 | # First look for the input files in the build tree, otherwise in the | |
49531 | # src tree. | |
49532 | ac_file_inputs=`IFS=: | |
49533 | for f in $ac_file_in; do | |
49534 | case $f in | |
49535 | -) echo $tmp/stdin ;; | |
49536 | [\\/$]*) | |
ac1cb8d3 VS |
49537 | # Absolute (can't be DOS-style, as IFS=:) |
49538 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49539 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49540 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
49541 | # Do quote $f, to prevent DOS paths from being IFS'd. |
49542 | echo "$f";; | |
a848cd7e | 49543 | *) # Relative |
ac1cb8d3 VS |
49544 | if test -f "$f"; then |
49545 | # Build tree | |
49546 | echo "$f" | |
49547 | elif test -f "$srcdir/$f"; then | |
49548 | # Source tree | |
49549 | echo "$srcdir/$f" | |
49550 | else | |
49551 | # /dev/null tree | |
49552 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49553 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49554 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49555 | fi;; |
a848cd7e SC |
49556 | esac |
49557 | done` || { (exit 1); exit 1; } | |
49558 | # Remove the trailing spaces. | |
ac1cb8d3 | 49559 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
49560 | |
49561 | _ACEOF | |
49562 | ||
49563 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
49564 | # `conftest.undefs', that substitutes the proper values into | |
49565 | # config.h.in to produce config.h. The first handles `#define' | |
49566 | # templates, and the second `#undef' templates. | |
49567 | # And first: Protect against being on the right side of a sed subst in | |
49568 | # config.status. Protect against being in an unquoted here document | |
49569 | # in config.status. | |
49570 | rm -f conftest.defines conftest.undefs | |
49571 | # Using a here document instead of a string reduces the quoting nightmare. | |
49572 | # Putting comments in sed scripts is not portable. | |
49573 | # | |
49574 | # `end' is used to avoid that the second main sed command (meant for | |
49575 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
49576 | # See the Autoconf documentation for `clear'. | |
49577 | cat >confdef2sed.sed <<\_ACEOF | |
49578 | s/[\\&,]/\\&/g | |
49579 | s,[\\$`],\\&,g | |
49580 | t clear | |
49581 | : clear | |
ac1cb8d3 | 49582 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 49583 | t end |
ac1cb8d3 | 49584 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
49585 | : end |
49586 | _ACEOF | |
49587 | # If some macros were called several times there might be several times | |
49588 | # the same #defines, which is useless. Nevertheless, we may not want to | |
49589 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
49590 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
49591 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
49592 | rm -f confdef2sed.sed | |
49593 | ||
49594 | # This sed command replaces #undef with comments. This is necessary, for | |
49595 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
49596 | # on some systems where configure will not decide to define it. | |
49597 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 49598 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
49599 | _ACEOF |
49600 | ||
49601 | # Break up conftest.defines because some shells have a limit on the size | |
49602 | # of here documents, and old seds have small limits too (100 cmds). | |
49603 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 49604 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
49605 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
49606 | echo ' :' >>$CONFIG_STATUS | |
49607 | rm -f conftest.tail | |
49608 | while grep . conftest.defines >/dev/null | |
49609 | do | |
49610 | # Write a limited-size here document to $tmp/defines.sed. | |
49611 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
49612 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 49613 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49614 | # Work around the forget-to-reset-the-flag bug. |
49615 | echo 't clr' >>$CONFIG_STATUS | |
49616 | echo ': clr' >>$CONFIG_STATUS | |
49617 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
49618 | echo 'CEOF | |
49619 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
49620 | rm -f $tmp/in | |
49621 | mv $tmp/out $tmp/in | |
49622 | ' >>$CONFIG_STATUS | |
49623 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
49624 | rm -f conftest.defines | |
49625 | mv conftest.tail conftest.defines | |
49626 | done | |
49627 | rm -f conftest.defines | |
49628 | echo ' fi # grep' >>$CONFIG_STATUS | |
49629 | echo >>$CONFIG_STATUS | |
49630 | ||
49631 | # Break up conftest.undefs because some shells have a limit on the size | |
49632 | # of here documents, and old seds have small limits too (100 cmds). | |
49633 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
49634 | rm -f conftest.tail | |
49635 | while grep . conftest.undefs >/dev/null | |
49636 | do | |
49637 | # Write a limited-size here document to $tmp/undefs.sed. | |
49638 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
49639 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 49640 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49641 | # Work around the forget-to-reset-the-flag bug. |
49642 | echo 't clr' >>$CONFIG_STATUS | |
49643 | echo ': clr' >>$CONFIG_STATUS | |
49644 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
49645 | echo 'CEOF | |
49646 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
49647 | rm -f $tmp/in | |
49648 | mv $tmp/out $tmp/in | |
49649 | ' >>$CONFIG_STATUS | |
49650 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
49651 | rm -f conftest.undefs | |
49652 | mv conftest.tail conftest.undefs | |
49653 | done | |
49654 | rm -f conftest.undefs | |
49655 | ||
49656 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49657 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
49658 | # use $as_me), people would be surprised to read: | |
49659 | # /* config.h. Generated by config.status. */ | |
49660 | if test x"$ac_file" = x-; then | |
49661 | echo "/* Generated by configure. */" >$tmp/config.h | |
49662 | else | |
49663 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
49664 | fi | |
49665 | cat $tmp/in >>$tmp/config.h | |
49666 | rm -f $tmp/in | |
49667 | if test x"$ac_file" != x-; then | |
49668 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
49669 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
49670 | echo "$as_me: $ac_file is unchanged" >&6;} | |
49671 | else | |
49672 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49673 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49674 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49675 | X"$ac_file" : 'X\(//\)$' \| \ | |
49676 | X"$ac_file" : 'X\(/\)' \| \ | |
49677 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49678 | echo X"$ac_file" | |
49679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49681 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49682 | /^X\(\/\).*/{ s//\1/; q; } | |
49683 | s/.*/./; q'` | |
49684 | { if $as_mkdir_p; then | |
49685 | mkdir -p "$ac_dir" | |
49686 | else | |
49687 | as_dir="$ac_dir" | |
49688 | as_dirs= | |
49689 | while test ! -d "$as_dir"; do | |
49690 | as_dirs="$as_dir $as_dirs" | |
49691 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49692 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49693 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49694 | X"$as_dir" : 'X\(//\)$' \| \ | |
49695 | X"$as_dir" : 'X\(/\)' \| \ | |
49696 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49697 | echo X"$as_dir" | |
49698 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49699 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49700 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49701 | /^X\(\/\).*/{ s//\1/; q; } | |
49702 | s/.*/./; q'` | |
49703 | done | |
49704 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49705 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49706 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49707 | { (exit 1); exit 1; }; }; } | |
49708 | ||
49709 | rm -f $ac_file | |
49710 | mv $tmp/config.h $ac_file | |
49711 | fi | |
49712 | else | |
49713 | cat $tmp/config.h | |
49714 | rm -f $tmp/config.h | |
49715 | fi | |
49716 | done | |
49717 | _ACEOF | |
49718 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49719 | ||
49720 | # | |
49721 | # CONFIG_COMMANDS section. | |
49722 | # | |
49723 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
49724 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
49725 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49726 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
49727 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49728 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
49729 | X"$ac_dest" : 'X\(//\)$' \| \ | |
49730 | X"$ac_dest" : 'X\(/\)' \| \ | |
49731 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49732 | echo X"$ac_dest" | |
49733 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49734 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49735 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49736 | /^X\(\/\).*/{ s//\1/; q; } | |
49737 | s/.*/./; q'` | |
ac1cb8d3 VS |
49738 | { if $as_mkdir_p; then |
49739 | mkdir -p "$ac_dir" | |
49740 | else | |
49741 | as_dir="$ac_dir" | |
49742 | as_dirs= | |
49743 | while test ! -d "$as_dir"; do | |
49744 | as_dirs="$as_dir $as_dirs" | |
49745 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49746 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
49747 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
49748 | X"$as_dir" : 'X\(//\)$' \| \ | |
49749 | X"$as_dir" : 'X\(/\)' \| \ | |
49750 | . : '\(.\)' 2>/dev/null || | |
49751 | echo X"$as_dir" | | |
49752 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49753 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49754 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49755 | /^X\(\/\).*/{ s//\1/; q; } | |
49756 | s/.*/./; q'` | |
49757 | done | |
49758 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49759 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49760 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49761 | { (exit 1); exit 1; }; }; } | |
49762 | ||
a848cd7e SC |
49763 | ac_builddir=. |
49764 | ||
49765 | if test "$ac_dir" != .; then | |
49766 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49767 | # A "../" for each directory in $ac_dir_suffix. | |
49768 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49769 | else | |
49770 | ac_dir_suffix= ac_top_builddir= | |
49771 | fi | |
49772 | ||
49773 | case $srcdir in | |
49774 | .) # No --srcdir option. We are building in place. | |
49775 | ac_srcdir=. | |
49776 | if test -z "$ac_top_builddir"; then | |
49777 | ac_top_srcdir=. | |
49778 | else | |
49779 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49780 | fi ;; | |
49781 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49782 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49783 | ac_top_srcdir=$srcdir ;; | |
49784 | *) # Relative path. | |
49785 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49786 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49787 | esac | |
ac1cb8d3 VS |
49788 | |
49789 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49790 | # the directories may not exist. | |
49791 | case `pwd` in | |
49792 | .) ac_abs_builddir="$ac_dir";; | |
49793 | *) | |
49794 | case "$ac_dir" in | |
49795 | .) ac_abs_builddir=`pwd`;; | |
49796 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49797 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49798 | esac;; | |
49799 | esac | |
49800 | case $ac_abs_builddir in | |
49801 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49802 | *) | |
49803 | case ${ac_top_builddir}. in | |
49804 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49805 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49806 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49807 | esac;; | |
49808 | esac | |
49809 | case $ac_abs_builddir in | |
49810 | .) ac_abs_srcdir=$ac_srcdir;; | |
49811 | *) | |
49812 | case $ac_srcdir in | |
49813 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49814 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49815 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49816 | esac;; | |
49817 | esac | |
49818 | case $ac_abs_builddir in | |
49819 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49820 | *) | |
49821 | case $ac_top_srcdir in | |
49822 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49823 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49824 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49825 | esac;; | |
49826 | esac | |
a848cd7e SC |
49827 | |
49828 | ||
49829 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
49830 | echo "$as_me: executing $ac_dest commands" >&6;} | |
49831 | case $ac_dest in | |
5c60e845 MW |
49832 | rcdefs.h ) |
49833 | mkdir -p $outdir && | |
49834 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
49835 | ;; | |
ceec2216 RL |
49836 | wx-config ) rm -f wx-config |
49837 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
49838 | ;; | |
a848cd7e SC |
49839 | esac |
49840 | done | |
49841 | _ACEOF | |
49842 | ||
49843 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49844 | ||
49845 | { (exit 0); exit 0; } | |
49846 | _ACEOF | |
49847 | chmod +x $CONFIG_STATUS | |
49848 | ac_clean_files=$ac_clean_files_save | |
49849 | ||
49850 | ||
49851 | # configure is writing to config.log, and then calls config.status. | |
49852 | # config.status does its own redirection, appending to config.log. | |
49853 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
49854 | # by configure, so config.status won't be able to write to it; its | |
49855 | # output is simply discarded. So we exec the FD to /dev/null, | |
49856 | # effectively closing config.log, so it can be properly (re)opened and | |
49857 | # appended to by config.status. When coming back to configure, we | |
49858 | # need to make the FD available again. | |
49859 | if test "$no_create" != yes; then | |
49860 | ac_cs_success=: | |
49861 | ac_config_status_args= | |
49862 | test "$silent" = yes && | |
49863 | ac_config_status_args="$ac_config_status_args --quiet" | |
49864 | exec 5>/dev/null | |
49865 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
49866 | exec 5>>config.log | |
49867 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
49868 | # would make configure fail if this is the last instruction. | |
49869 | $ac_cs_success || { (exit 1); exit 1; } | |
49870 | fi | |
49871 | ||
49872 | # | |
49873 | # CONFIG_SUBDIRS section. | |
49874 | # | |
49875 | if test "$no_recursion" != yes; then | |
49876 | ||
49877 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
49878 | ac_sub_configure_args= | |
49879 | ac_prev= | |
49880 | for ac_arg in $ac_configure_args; do | |
49881 | if test -n "$ac_prev"; then | |
49882 | ac_prev= | |
49883 | continue | |
49884 | fi | |
49885 | case $ac_arg in | |
49886 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
49887 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
49888 | ac_prev=cache_file ;; | |
49889 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
49890 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
49891 | | --c=*) | |
49892 | ;; | |
49893 | --config-cache | -C) | |
49894 | ;; | |
49895 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
49896 | ac_prev=srcdir ;; | |
49897 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
49898 | ;; | |
49899 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
49900 | ac_prev=prefix ;; | |
49901 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
49902 | ;; | |
49903 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
49904 | esac | |
49905 | done | |
49906 | ||
49907 | # Always prepend --prefix to ensure using the same prefix | |
49908 | # in subdir configurations. | |
49909 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
49910 | ||
49911 | ac_popdir=`pwd` | |
49912 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
49913 | ||
49914 | # Do not complain, so a configure script can configure whichever | |
49915 | # parts of a large source tree are present. | |
49916 | test -d $srcdir/$ac_dir || continue | |
49917 | ||
49918 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
49919 | echo "$as_me: configuring in $ac_dir" >&6;} | |
49920 | { if $as_mkdir_p; then | |
49921 | mkdir -p "$ac_dir" | |
49922 | else | |
49923 | as_dir="$ac_dir" | |
49924 | as_dirs= | |
49925 | while test ! -d "$as_dir"; do | |
49926 | as_dirs="$as_dir $as_dirs" | |
49927 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49928 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49929 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49930 | X"$as_dir" : 'X\(//\)$' \| \ | |
49931 | X"$as_dir" : 'X\(/\)' \| \ | |
49932 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49933 | echo X"$as_dir" | |
49934 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49935 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49936 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49937 | /^X\(\/\).*/{ s//\1/; q; } | |
49938 | s/.*/./; q'` | |
49939 | done | |
49940 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49941 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49942 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49943 | { (exit 1); exit 1; }; }; } | |
49944 | ||
49945 | ac_builddir=. | |
49946 | ||
49947 | if test "$ac_dir" != .; then | |
49948 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49949 | # A "../" for each directory in $ac_dir_suffix. | |
49950 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49951 | else | |
49952 | ac_dir_suffix= ac_top_builddir= | |
49953 | fi | |
49954 | ||
49955 | case $srcdir in | |
49956 | .) # No --srcdir option. We are building in place. | |
49957 | ac_srcdir=. | |
49958 | if test -z "$ac_top_builddir"; then | |
49959 | ac_top_srcdir=. | |
49960 | else | |
49961 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49962 | fi ;; | |
49963 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49964 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49965 | ac_top_srcdir=$srcdir ;; | |
49966 | *) # Relative path. | |
49967 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49968 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49969 | esac | |
ac1cb8d3 VS |
49970 | |
49971 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49972 | # the directories may not exist. | |
49973 | case `pwd` in | |
49974 | .) ac_abs_builddir="$ac_dir";; | |
49975 | *) | |
49976 | case "$ac_dir" in | |
49977 | .) ac_abs_builddir=`pwd`;; | |
49978 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49979 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49980 | esac;; | |
49981 | esac | |
49982 | case $ac_abs_builddir in | |
49983 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49984 | *) | |
49985 | case ${ac_top_builddir}. in | |
49986 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49987 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49988 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49989 | esac;; | |
49990 | esac | |
49991 | case $ac_abs_builddir in | |
49992 | .) ac_abs_srcdir=$ac_srcdir;; | |
49993 | *) | |
49994 | case $ac_srcdir in | |
49995 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49996 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49997 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49998 | esac;; | |
49999 | esac | |
50000 | case $ac_abs_builddir in | |
50001 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50002 | *) | |
50003 | case $ac_top_srcdir in | |
50004 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50005 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50006 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50007 | esac;; | |
50008 | esac | |
a848cd7e SC |
50009 | |
50010 | ||
50011 | cd $ac_dir | |
50012 | ||
50013 | # Check for guested configure; otherwise get Cygnus style configure. | |
50014 | if test -f $ac_srcdir/configure.gnu; then | |
50015 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
50016 | elif test -f $ac_srcdir/configure; then | |
50017 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
50018 | elif test -f $ac_srcdir/configure.in; then | |
50019 | ac_sub_configure=$ac_configure | |
50020 | else | |
50021 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
50022 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
50023 | ac_sub_configure= | |
50024 | fi | |
50025 | ||
50026 | # The recursion is here. | |
50027 | if test -n "$ac_sub_configure"; then | |
50028 | # Make the cache file name correct relative to the subdirectory. | |
50029 | case $cache_file in | |
50030 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
50031 | *) # Relative path. | |
ac1cb8d3 | 50032 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
50033 | esac |
50034 | ||
50035 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
50036 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
50037 | # The eval makes quoting arguments work. | |
50038 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
50039 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
50040 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
50041 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
50042 | { (exit 1); exit 1; }; } | |
50043 | fi | |
50044 | ||
f10e38c4 | 50045 | cd "$ac_popdir" |
a848cd7e SC |
50046 | done |
50047 | fi | |
50048 | ||
50049 | ||
50050 | echo | |
77ffb593 | 50051 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 50052 | echo "" |
4d4ff94c | 50053 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 50054 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 50055 | |
77ffb593 JS |
50056 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
50057 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
50058 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 50059 | |
77ffb593 | 50060 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
50061 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
50062 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 50063 | |
77ffb593 | 50064 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
50065 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
50066 | echo " png ${wxUSE_LIBPNG-none}" | |
50067 | echo " regex ${wxUSE_REGEX}" | |
50068 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
50069 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
50070 | echo " xpm ${wxUSE_LIBXPM-none}" | |
50071 | fi | |
50072 | echo " zlib ${wxUSE_ZLIB}" | |
50073 | echo " odbc ${wxUSE_ODBC}" | |
50074 | echo " expat ${wxUSE_EXPAT}" | |
50075 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
50076 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 50077 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
3565d135 | 50078 | echo " hildon ${wxUSE_LIBHILDON-none}" |
a848cd7e SC |
50079 | |
50080 | echo "" | |
50081 |