]>
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" | |
2b850ae1 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_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_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
dd8df4fc | 797 | \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
dd8df4fc | 863 | short | recursive ) echo "Configuration of wxWidgets 2.7.0:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
f34ca037 | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
7afc46ab | 892 | --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working) |
dee1a63f MB |
893 | --enable-compat24 enable wxWidgets 2.4 compatibility |
894 | --disable-compat26 disable wxWidgets 2.6 compatibility | |
ffa0583f | 895 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
896 | --enable-intl use internationalization system |
897 | --enable-config use wxConfig (and derived) classes | |
898 | --enable-protocols use wxProtocol and derived classes | |
899 | --enable-ftp use wxFTP (requires wxProtocol | |
900 | --enable-http use wxHTTP (requires wxProtocol | |
901 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
902 | --enable-sockets use socket/network classes | |
903 | --enable-ole use OLE classes (Win32 only) | |
904 | --enable-dataobj use data object classes | |
905 | --enable-ipc use interprocess communication (wxSocket etc.) | |
906 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 907 | --enable-arcstream use wxArchive streams |
eaff0f0d | 908 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 909 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
910 | --enable-cmdline use wxCmdLineParser class |
911 | --enable-datetime use wxDateTime class | |
36b6448c | 912 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
913 | --enable-dialupman use dialup network classes |
914 | --enable-dynlib use wxLibrary class for DLL loading | |
915 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
916 | --enable-exceptions build exception-safe library | |
917 | --enable-ffile use wxFFile class | |
918 | --enable-file use wxFile class | |
919 | --enable-filesystem use virtual file systems classes | |
920 | --enable-fontmap use font encodings conversion classes | |
921 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
922 | --enable-fs_zip use virtual ZIP filesystems | |
923 | --enable-geometry use geometry class | |
924 | --enable-log use logging system | |
925 | --enable-longlong use wxLongLong class | |
926 | --enable-mimetype use wxMimeTypesManager | |
927 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
928 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 929 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 930 | --enable-std_string use standard C++ string classes |
07158944 | 931 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 932 | --enable-stopwatch use wxStopWatch class |
07158944 | 933 | --enable-streams use wxStream etc classes |
a848cd7e SC |
934 | --enable-sysoptions use wxSystemOptions |
935 | --enable-textbuf use wxTextBuffer class | |
936 | --enable-textfile use wxTextFile class | |
937 | --enable-timer use wxTimer class | |
938 | --enable-unicode compile wxString with Unicode support | |
939 | --enable-sound use wxSound class | |
3b57de8b | 940 | --enable-mediactrl use wxMediaCtrl class |
f10e38c4 | 941 | --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix |
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 | |
2b850ae1 RR |
1083 | --with-gnomeprint use GNOME print for printing under GNOME |
1084 | --with-gnomevfs use GNOME VFS for associating MIME types | |
3565d135 | 1085 | --with-hildon use Hildon framework for Nokia 770 |
a848cd7e SC |
1086 | --with-opengl use OpenGL (or Mesa) |
1087 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1088 | --with-regex enable support for wxRegEx class | |
1089 | --with-zlib use zlib for LZW compression | |
1090 | --with-odbc use the IODBC and wxODBC classes | |
1091 | --with-expat enable XML support using expat parser | |
ceec2216 | 1092 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1093 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1094 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1095 | --with-x use the X Window System | |
1096 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1097 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1098 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1099 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1100 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1101 | ||
1102 | Some influential environment variables: | |
dcc1b6ad VS |
1103 | CC C compiler command |
1104 | CFLAGS C compiler flags | |
1105 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1106 | nonstandard directory <lib dir> | |
1107 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1108 | headers in a nonstandard directory <include dir> | |
1109 | CPP C preprocessor | |
1110 | CXX C++ compiler command | |
1111 | CXXFLAGS C++ compiler flags | |
1112 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1113 | |
1114 | Use these variables to override the choices made by `configure' or to help | |
1115 | it to find libraries and programs with nonstandard names/locations. | |
1116 | ||
77ffb593 | 1117 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1118 | _ACEOF |
1119 | fi | |
1120 | ||
1121 | if test "$ac_init_help" = "recursive"; then | |
1122 | # If there are subdirs, report their specific --help. | |
1123 | ac_popdir=`pwd` | |
1124 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1125 | test -d $ac_dir || continue | |
1126 | ac_builddir=. | |
1127 | ||
1128 | if test "$ac_dir" != .; then | |
1129 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1130 | # A "../" for each directory in $ac_dir_suffix. | |
1131 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1132 | else | |
1133 | ac_dir_suffix= ac_top_builddir= | |
1134 | fi | |
1135 | ||
1136 | case $srcdir in | |
1137 | .) # No --srcdir option. We are building in place. | |
1138 | ac_srcdir=. | |
1139 | if test -z "$ac_top_builddir"; then | |
1140 | ac_top_srcdir=. | |
1141 | else | |
1142 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1143 | fi ;; | |
1144 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1145 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1146 | ac_top_srcdir=$srcdir ;; | |
1147 | *) # Relative path. | |
1148 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1149 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1150 | esac | |
ac1cb8d3 VS |
1151 | |
1152 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1153 | # the directories may not exist. | |
1154 | case `pwd` in | |
1155 | .) ac_abs_builddir="$ac_dir";; | |
1156 | *) | |
1157 | case "$ac_dir" in | |
1158 | .) ac_abs_builddir=`pwd`;; | |
1159 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1160 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1161 | esac;; | |
1162 | esac | |
1163 | case $ac_abs_builddir in | |
1164 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1165 | *) | |
1166 | case ${ac_top_builddir}. in | |
1167 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1168 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1169 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1170 | esac;; | |
1171 | esac | |
1172 | case $ac_abs_builddir in | |
1173 | .) ac_abs_srcdir=$ac_srcdir;; | |
1174 | *) | |
1175 | case $ac_srcdir in | |
1176 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1177 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1178 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1179 | esac;; | |
1180 | esac | |
1181 | case $ac_abs_builddir in | |
1182 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1183 | *) | |
1184 | case $ac_top_srcdir in | |
1185 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1186 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1187 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1188 | esac;; | |
1189 | esac | |
a848cd7e SC |
1190 | |
1191 | cd $ac_dir | |
1192 | # Check for guested configure; otherwise get Cygnus style configure. | |
1193 | if test -f $ac_srcdir/configure.gnu; then | |
1194 | echo | |
1195 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1196 | elif test -f $ac_srcdir/configure; then | |
1197 | echo | |
1198 | $SHELL $ac_srcdir/configure --help=recursive | |
1199 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1200 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1201 | echo |
1202 | $ac_configure --help | |
1203 | else | |
1204 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1205 | fi | |
5d7b7554 | 1206 | cd "$ac_popdir" |
a848cd7e SC |
1207 | done |
1208 | fi | |
1209 | ||
1210 | test -n "$ac_init_help" && exit 0 | |
1211 | if $ac_init_version; then | |
1212 | cat <<\_ACEOF | |
dd8df4fc | 1213 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1214 | generated by GNU Autoconf 2.59 |
a848cd7e | 1215 | |
ac1cb8d3 | 1216 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1217 | This configure script is free software; the Free Software Foundation |
1218 | gives unlimited permission to copy, distribute and modify it. | |
1219 | _ACEOF | |
1220 | exit 0 | |
1221 | fi | |
1222 | exec 5>config.log | |
1223 | cat >&5 <<_ACEOF | |
1224 | This file contains any messages produced by compilers while | |
1225 | running configure, to aid debugging if configure makes a mistake. | |
1226 | ||
dd8df4fc | 1227 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1228 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1229 | |
1230 | $ $0 $@ | |
1231 | ||
1232 | _ACEOF | |
1233 | { | |
1234 | cat <<_ASUNAME | |
1235 | ## --------- ## | |
1236 | ## Platform. ## | |
1237 | ## --------- ## | |
1238 | ||
1239 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1240 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1241 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1242 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1243 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1244 | ||
1245 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1246 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1247 | ||
1248 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1249 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1250 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1251 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1252 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1253 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1254 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1255 | ||
1256 | _ASUNAME | |
1257 | ||
1258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1259 | for as_dir in $PATH | |
1260 | do | |
1261 | IFS=$as_save_IFS | |
1262 | test -z "$as_dir" && as_dir=. | |
1263 | echo "PATH: $as_dir" | |
1264 | done | |
1265 | ||
1266 | } >&5 | |
1267 | ||
1268 | cat >&5 <<_ACEOF | |
1269 | ||
1270 | ||
1271 | ## ----------- ## | |
1272 | ## Core tests. ## | |
1273 | ## ----------- ## | |
1274 | ||
1275 | _ACEOF | |
1276 | ||
1277 | ||
1278 | # Keep a trace of the command line. | |
1279 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1280 | # Strip out --silent because we don't want to record it for future runs. | |
1281 | # Also quote any args containing shell meta-characters. | |
1282 | # Make two passes to allow for proper duplicate-argument suppression. | |
1283 | ac_configure_args= | |
1284 | ac_configure_args0= | |
1285 | ac_configure_args1= | |
1286 | ac_sep= | |
1287 | ac_must_keep_next=false | |
1288 | for ac_pass in 1 2 | |
1289 | do | |
1290 | for ac_arg | |
1291 | do | |
1292 | case $ac_arg in | |
1293 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1294 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1295 | | -silent | --silent | --silen | --sile | --sil) | |
1296 | continue ;; | |
1297 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1298 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1299 | esac | |
1300 | case $ac_pass in | |
1301 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1302 | 2) | |
1303 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1304 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1305 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1306 | else |
ac1cb8d3 VS |
1307 | case $ac_arg in |
1308 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1309 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1310 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1311 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1312 | case "$ac_configure_args0 " in | |
1313 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1314 | esac | |
1315 | ;; | |
1316 | -* ) ac_must_keep_next=true ;; | |
1317 | esac | |
a848cd7e SC |
1318 | fi |
1319 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1320 | # Get rid of the leading space. | |
1321 | ac_sep=" " | |
1322 | ;; | |
1323 | esac | |
1324 | done | |
1325 | done | |
1326 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1327 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1328 | ||
1329 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1330 | # config.log. We remove comments because anyway the quotes in there | |
1331 | # would cause problems or look ugly. | |
1332 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1333 | # such as our DU 5.0 friend, will then `close' the trap. | |
1334 | trap 'exit_status=$? | |
1335 | # Save into config.log some information that might help in debugging. | |
1336 | { | |
1337 | echo | |
1338 | ||
1339 | cat <<\_ASBOX | |
1340 | ## ---------------- ## | |
1341 | ## Cache variables. ## | |
1342 | ## ---------------- ## | |
1343 | _ASBOX | |
1344 | echo | |
1345 | # The following way of writing the cache mishandles newlines in values, | |
1346 | { | |
1347 | (set) 2>&1 | | |
1348 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1349 | *ac_space=\ *) | |
1350 | sed -n \ | |
ac1cb8d3 VS |
1351 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1352 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1353 | ;; |
1354 | *) | |
1355 | sed -n \ | |
ac1cb8d3 | 1356 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1357 | ;; |
1358 | esac; | |
1359 | } | |
1360 | echo | |
1361 | ||
1362 | cat <<\_ASBOX | |
1363 | ## ----------------- ## | |
1364 | ## Output variables. ## | |
1365 | ## ----------------- ## | |
1366 | _ASBOX | |
1367 | echo | |
1368 | for ac_var in $ac_subst_vars | |
1369 | do | |
1370 | eval ac_val=$`echo $ac_var` | |
1371 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1372 | done | sort | |
1373 | echo | |
1374 | ||
1375 | if test -n "$ac_subst_files"; then | |
1376 | cat <<\_ASBOX | |
1377 | ## ------------- ## | |
1378 | ## Output files. ## | |
1379 | ## ------------- ## | |
1380 | _ASBOX | |
1381 | echo | |
1382 | for ac_var in $ac_subst_files | |
1383 | do | |
1384 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1385 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1386 | done | sort |
1387 | echo | |
1388 | fi | |
1389 | ||
1390 | if test -s confdefs.h; then | |
1391 | cat <<\_ASBOX | |
1392 | ## ----------- ## | |
1393 | ## confdefs.h. ## | |
1394 | ## ----------- ## | |
1395 | _ASBOX | |
1396 | echo | |
1397 | sed "/^$/d" confdefs.h | sort | |
1398 | echo | |
1399 | fi | |
1400 | test "$ac_signal" != 0 && | |
1401 | echo "$as_me: caught signal $ac_signal" | |
1402 | echo "$as_me: exit $exit_status" | |
1403 | } >&5 | |
ac1cb8d3 | 1404 | rm -f core *.core && |
a848cd7e SC |
1405 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1406 | exit $exit_status | |
1407 | ' 0 | |
1408 | for ac_signal in 1 2 13 15; do | |
1409 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1410 | done | |
1411 | ac_signal=0 | |
1412 | ||
1413 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1414 | rm -rf conftest* confdefs.h | |
1415 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1416 | echo >confdefs.h | |
1417 | ||
1418 | # Predefined preprocessor variables. | |
1419 | ||
1420 | cat >>confdefs.h <<_ACEOF | |
1421 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1422 | _ACEOF | |
1423 | ||
1424 | ||
1425 | cat >>confdefs.h <<_ACEOF | |
1426 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1427 | _ACEOF | |
1428 | ||
1429 | ||
1430 | cat >>confdefs.h <<_ACEOF | |
1431 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1432 | _ACEOF | |
1433 | ||
1434 | ||
1435 | cat >>confdefs.h <<_ACEOF | |
1436 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1437 | _ACEOF | |
1438 | ||
1439 | ||
1440 | cat >>confdefs.h <<_ACEOF | |
1441 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1442 | _ACEOF | |
1443 | ||
1444 | ||
1445 | # Let the site file select an alternate cache file if it wants to. | |
1446 | # Prefer explicitly selected file to automatically selected ones. | |
1447 | if test -z "$CONFIG_SITE"; then | |
1448 | if test "x$prefix" != xNONE; then | |
1449 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1450 | else | |
1451 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1452 | fi | |
1453 | fi | |
1454 | for ac_site_file in $CONFIG_SITE; do | |
1455 | if test -r "$ac_site_file"; then | |
1456 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1457 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1458 | sed 's/^/| /' "$ac_site_file" >&5 | |
1459 | . "$ac_site_file" | |
1460 | fi | |
1461 | done | |
1462 | ||
1463 | if test -r "$cache_file"; then | |
1464 | # Some versions of bash will fail to source /dev/null (special | |
1465 | # files actually), so we avoid doing that. | |
1466 | if test -f "$cache_file"; then | |
1467 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1468 | echo "$as_me: loading cache $cache_file" >&6;} | |
1469 | case $cache_file in | |
1470 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1471 | *) . ./$cache_file;; | |
1472 | esac | |
1473 | fi | |
1474 | else | |
1475 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1476 | echo "$as_me: creating cache $cache_file" >&6;} | |
1477 | >$cache_file | |
1478 | fi | |
1479 | ||
1480 | # Check that the precious variables saved in the cache have kept the same | |
1481 | # value. | |
1482 | ac_cache_corrupted=false | |
1483 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1484 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1485 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1486 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1487 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1488 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1489 | case $ac_old_set,$ac_new_set in | |
1490 | set,) | |
1491 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1492 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1493 | ac_cache_corrupted=: ;; | |
1494 | ,set) | |
1495 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1496 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1497 | ac_cache_corrupted=: ;; | |
1498 | ,);; | |
1499 | *) | |
1500 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1501 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1502 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1503 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1504 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1505 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1506 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1507 | ac_cache_corrupted=: |
a848cd7e SC |
1508 | fi;; |
1509 | esac | |
1510 | # Pass precious variables to config.status. | |
1511 | if test "$ac_new_set" = set; then | |
1512 | case $ac_new_val in | |
1513 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1514 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1515 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1516 | esac | |
1517 | case " $ac_configure_args " in | |
1518 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1519 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1520 | esac | |
1521 | fi | |
1522 | done | |
1523 | if $ac_cache_corrupted; then | |
1524 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1525 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1526 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1527 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1528 | { (exit 1); exit 1; }; } | |
1529 | fi | |
1530 | ||
1531 | ac_ext=c | |
1532 | ac_cpp='$CPP $CPPFLAGS' | |
1533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
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 | ||
1566 | ac_aux_dir= | |
1567 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1568 | if test -f $ac_dir/install-sh; then | |
1569 | ac_aux_dir=$ac_dir | |
1570 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1571 | break | |
1572 | elif test -f $ac_dir/install.sh; then | |
1573 | ac_aux_dir=$ac_dir | |
1574 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1575 | break | |
1576 | elif test -f $ac_dir/shtool; then | |
1577 | ac_aux_dir=$ac_dir | |
1578 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1579 | break | |
1580 | fi | |
1581 | done | |
1582 | if test -z "$ac_aux_dir"; then | |
1583 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1584 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1585 | { (exit 1); exit 1; }; } | |
1586 | fi | |
1587 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1588 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1589 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1590 | ||
1591 | # Make sure we can run config.sub. | |
1592 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1593 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1594 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1595 | { (exit 1); exit 1; }; } | |
1596 | ||
1597 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1598 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1599 | if test "${ac_cv_build+set}" = set; then | |
1600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1601 | else | |
1602 | ac_cv_build_alias=$build_alias | |
1603 | test -z "$ac_cv_build_alias" && | |
1604 | ac_cv_build_alias=`$ac_config_guess` | |
1605 | test -z "$ac_cv_build_alias" && | |
1606 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1607 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1608 | { (exit 1); exit 1; }; } | |
1609 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1610 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1611 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1612 | { (exit 1); exit 1; }; } | |
1613 | ||
1614 | fi | |
1615 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1616 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1617 | build=$ac_cv_build | |
1618 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1619 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1620 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1621 | ||
1622 | ||
1623 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1624 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1625 | if test "${ac_cv_host+set}" = set; then | |
1626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1627 | else | |
1628 | ac_cv_host_alias=$host_alias | |
1629 | test -z "$ac_cv_host_alias" && | |
1630 | ac_cv_host_alias=$ac_cv_build_alias | |
1631 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1632 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1633 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1634 | { (exit 1); exit 1; }; } | |
1635 | ||
1636 | fi | |
1637 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1638 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1639 | host=$ac_cv_host | |
1640 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1641 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1642 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1643 | ||
1644 | ||
1645 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1646 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1647 | if test "${ac_cv_target+set}" = set; then | |
1648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1649 | else | |
1650 | ac_cv_target_alias=$target_alias | |
1651 | test "x$ac_cv_target_alias" = "x" && | |
1652 | ac_cv_target_alias=$ac_cv_host_alias | |
1653 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1654 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1655 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1656 | { (exit 1); exit 1; }; } | |
1657 | ||
1658 | fi | |
1659 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1660 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1661 | target=$ac_cv_target | |
1662 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1663 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1664 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1665 | ||
1666 | ||
1667 | # The aliases save the names the user supplied, while $host etc. | |
1668 | # will get canonicalized. | |
1669 | test -n "$target_alias" && | |
1670 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1671 | NONENONEs,x,x, && | |
1672 | program_prefix=${target_alias}- | |
1673 | ||
1674 | ||
1675 | ||
ceec2216 | 1676 | wx_major_version_number=2 |
dd8df4fc VZ |
1677 | wx_minor_version_number=7 |
1678 | wx_release_number=0 | |
1679 | wx_subrelease_number=0 | |
a848cd7e | 1680 | |
ceec2216 RL |
1681 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1682 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1683 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1684 | |
ceec2216 | 1685 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1686 | |
a848cd7e SC |
1687 | |
1688 | ||
1689 | ||
1690 | USE_UNIX=1 | |
1691 | USE_OS2=0 | |
1692 | USE_WIN32=0 | |
1693 | USE_DOS=0 | |
1694 | USE_BEOS=0 | |
1695 | USE_MAC=0 | |
1696 | ||
1697 | USE_AIX= | |
1698 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1699 | USE_GNU= USE_HPUX= | |
1700 | USE_LINUX= | |
1701 | USE_NETBSD= | |
1702 | USE_OPENBSD= | |
1703 | USE_OSF= USE_SGI= | |
1704 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1705 | USE_ULTRIX= | |
1706 | USE_UNIXWARE= | |
1707 | ||
1708 | USE_ALPHA= | |
1709 | ||
1710 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1711 | ||
1712 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1713 | ||
1714 | DEFAULT_wxUSE_COCOA=0 | |
1715 | DEFAULT_wxUSE_GTK=0 | |
1716 | DEFAULT_wxUSE_MAC=0 | |
1717 | DEFAULT_wxUSE_MGL=0 | |
1718 | DEFAULT_wxUSE_MICROWIN=0 | |
1719 | DEFAULT_wxUSE_MOTIF=0 | |
1720 | DEFAULT_wxUSE_MSW=0 | |
1721 | DEFAULT_wxUSE_PM=0 | |
1722 | DEFAULT_wxUSE_X11=0 | |
1723 | ||
1724 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1725 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1726 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1727 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1728 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1729 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1730 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1731 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1732 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1733 | ||
1734 | PROGRAM_EXT= | |
1735 | SO_SUFFIX=so | |
1736 | SAMPLES_RPATH_FLAG= | |
1737 | SAMPLES_RPATH_POSTLINK= | |
1738 | ||
a03b8b04 RD |
1739 | DEFAULT_STD_FLAG=yes |
1740 | ||
a848cd7e SC |
1741 | case "${host}" in |
1742 | *-hp-hpux* ) | |
1743 | USE_HPUX=1 | |
1744 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1745 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1746 | SO_SUFFIX=sl | |
1747 | cat >>confdefs.h <<\_ACEOF | |
1748 | #define __HPUX__ 1 | |
1749 | _ACEOF | |
1750 | ||
2eef8513 | 1751 | |
c92ad099 | 1752 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
1753 | ;; |
1754 | *-*-linux* ) | |
1755 | USE_LINUX=1 | |
1756 | cat >>confdefs.h <<\_ACEOF | |
1757 | #define __LINUX__ 1 | |
1758 | _ACEOF | |
1759 | ||
1760 | TMP=`uname -m` | |
1761 | if test "x$TMP" = "xalpha"; then | |
1762 | USE_ALPHA=1 | |
1763 | cat >>confdefs.h <<\_ACEOF | |
1764 | #define __ALPHA__ 1 | |
1765 | _ACEOF | |
1766 | ||
1767 | fi | |
1768 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1769 | ;; | |
1770 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1771 | USE_GNU=1 | |
1772 | TMP=`uname -m` | |
1773 | if test "x$TMP" = "xalpha"; then | |
1774 | USE_ALPHA=1 | |
1775 | cat >>confdefs.h <<\_ACEOF | |
1776 | #define __ALPHA__ 1 | |
1777 | _ACEOF | |
1778 | ||
1779 | fi | |
1780 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1781 | ;; | |
1782 | *-*-irix5* | *-*-irix6* ) | |
1783 | USE_SGI=1 | |
1784 | USE_SVR4=1 | |
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __SGI__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SVR4__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1794 | ;; | |
1795 | *-*-solaris2* ) | |
1796 | USE_SUN=1 | |
1797 | USE_SOLARIS=1 | |
1798 | USE_SVR4=1 | |
1799 | cat >>confdefs.h <<\_ACEOF | |
1800 | #define __SUN__ 1 | |
1801 | _ACEOF | |
1802 | ||
1803 | cat >>confdefs.h <<\_ACEOF | |
1804 | #define __SOLARIS__ 1 | |
1805 | _ACEOF | |
1806 | ||
1807 | cat >>confdefs.h <<\_ACEOF | |
1808 | #define __SVR4__ 1 | |
1809 | _ACEOF | |
1810 | ||
1811 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1812 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1813 | ;; | |
1814 | *-*-sunos4* ) | |
1815 | USE_SUN=1 | |
1816 | USE_SUNOS=1 | |
1817 | USE_BSD=1 | |
1818 | cat >>confdefs.h <<\_ACEOF | |
1819 | #define __SUN__ 1 | |
1820 | _ACEOF | |
1821 | ||
1822 | cat >>confdefs.h <<\_ACEOF | |
1823 | #define __SUNOS__ 1 | |
1824 | _ACEOF | |
1825 | ||
1826 | cat >>confdefs.h <<\_ACEOF | |
1827 | #define __BSD__ 1 | |
1828 | _ACEOF | |
1829 | ||
1830 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1831 | ;; | |
1832 | *-*-freebsd*) | |
1833 | USE_BSD=1 | |
1834 | USE_FREEBSD=1 | |
1835 | cat >>confdefs.h <<\_ACEOF | |
1836 | #define __FREEBSD__ 1 | |
1837 | _ACEOF | |
1838 | ||
1839 | cat >>confdefs.h <<\_ACEOF | |
1840 | #define __BSD__ 1 | |
1841 | _ACEOF | |
1842 | ||
1843 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1844 | ;; | |
1845 | *-*-openbsd*) | |
1846 | USE_BSD=1 | |
1847 | USE_OPENBSD=1 | |
1848 | cat >>confdefs.h <<\_ACEOF | |
1849 | #define __OPENBSD__ 1 | |
1850 | _ACEOF | |
1851 | ||
1852 | cat >>confdefs.h <<\_ACEOF | |
1853 | #define __BSD__ 1 | |
1854 | _ACEOF | |
1855 | ||
1856 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1857 | ;; | |
1858 | *-*-netbsd*) | |
1859 | USE_BSD=1 | |
1860 | USE_NETBSD=1 | |
1861 | cat >>confdefs.h <<\_ACEOF | |
1862 | #define __NETBSD__ 1 | |
1863 | _ACEOF | |
1864 | ||
1865 | cat >>confdefs.h <<\_ACEOF | |
1866 | #define __BSD__ 1 | |
1867 | _ACEOF | |
1868 | ||
1869 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
728258f4 | 1870 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
def7c04a | 1871 | |
def7c04a | 1872 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" |
a848cd7e SC |
1873 | ;; |
1874 | *-*-osf* ) | |
1875 | USE_ALPHA=1 | |
1876 | USE_OSF=1 | |
1877 | cat >>confdefs.h <<\_ACEOF | |
1878 | #define __ALPHA__ 1 | |
1879 | _ACEOF | |
1880 | ||
1881 | cat >>confdefs.h <<\_ACEOF | |
1882 | #define __OSF__ 1 | |
1883 | _ACEOF | |
1884 | ||
1885 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1886 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1887 | ;; | |
1888 | *-*-dgux5* ) | |
1889 | USE_ALPHA=1 | |
1890 | USE_SVR4=1 | |
1891 | cat >>confdefs.h <<\_ACEOF | |
1892 | #define __ALPHA__ 1 | |
1893 | _ACEOF | |
1894 | ||
1895 | cat >>confdefs.h <<\_ACEOF | |
1896 | #define __SVR4__ 1 | |
1897 | _ACEOF | |
1898 | ||
1899 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1900 | ;; | |
1901 | *-*-sysv5* ) | |
1902 | USE_SYSV=1 | |
1903 | USE_SVR4=1 | |
1904 | cat >>confdefs.h <<\_ACEOF | |
1905 | #define __SYSV__ 1 | |
1906 | _ACEOF | |
1907 | ||
1908 | cat >>confdefs.h <<\_ACEOF | |
1909 | #define __SVR4__ 1 | |
1910 | _ACEOF | |
1911 | ||
1912 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1913 | ;; | |
1914 | *-*-aix* ) | |
1915 | USE_AIX=1 | |
1916 | USE_SYSV=1 | |
1917 | USE_SVR4=1 | |
1918 | SO_SUFFIX=a | |
1919 | cat >>confdefs.h <<\_ACEOF | |
1920 | #define __AIX__ 1 | |
1921 | _ACEOF | |
1922 | ||
1923 | cat >>confdefs.h <<\_ACEOF | |
1924 | #define __SYSV__ 1 | |
1925 | _ACEOF | |
1926 | ||
1927 | cat >>confdefs.h <<\_ACEOF | |
1928 | #define __SVR4__ 1 | |
1929 | _ACEOF | |
1930 | ||
1931 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1932 | ;; | |
1933 | ||
1934 | *-*-*UnixWare*) | |
1935 | USE_SYSV=1 | |
1936 | USE_SVR4=1 | |
1937 | USE_UNIXWARE=1 | |
1938 | cat >>confdefs.h <<\_ACEOF | |
1939 | #define __UNIXWARE__ 1 | |
1940 | _ACEOF | |
1941 | ||
1942 | ;; | |
1943 | ||
1944 | *-*-cygwin* | *-*-mingw32* ) | |
1945 | SO_SUFFIX=dll | |
1946 | PROGRAM_EXT=".exe" | |
a848cd7e | 1947 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1948 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1949 | ;; |
1950 | ||
1951 | *-pc-msdosdjgpp ) | |
1952 | USE_UNIX=0 | |
1953 | USE_DOS=1 | |
1954 | cat >>confdefs.h <<\_ACEOF | |
1955 | #define __DOS__ 1 | |
1956 | _ACEOF | |
1957 | ||
1958 | PROGRAM_EXT=".exe" | |
1959 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1960 | ;; |
1961 | ||
1962 | *-pc-os2_emx | *-pc-os2-emx ) | |
1963 | cat >>confdefs.h <<\_ACEOF | |
1964 | #define __EMX__ 1 | |
1965 | _ACEOF | |
1966 | ||
1967 | USE_OS2=1 | |
1968 | cat >>confdefs.h <<\_ACEOF | |
1969 | #define __OS2__ 1 | |
1970 | _ACEOF | |
1971 | ||
1972 | PROGRAM_EXT=".exe" | |
1973 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1974 | CXX=gcc | |
1975 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1976 | ac_executable_extensions=".exe" | |
1977 | export ac_executable_extensions | |
1978 | ac_save_IFS="$IFS" | |
1979 | IFS='\\' | |
1980 | ac_TEMP_PATH= | |
1981 | for ac_dir in $PATH; do | |
1982 | IFS=$ac_save_IFS | |
1983 | if test -z "$ac_TEMP_PATH"; then | |
1984 | ac_TEMP_PATH="$ac_dir" | |
1985 | else | |
1986 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1987 | fi | |
1988 | done | |
1989 | export PATH="$ac_TEMP_PATH" | |
1990 | unset ac_TEMP_PATH | |
a03b8b04 | 1991 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1992 | ;; |
1993 | ||
cfda0ea8 | 1994 | *-*-darwin* ) |
a848cd7e SC |
1995 | USE_BSD=1 |
1996 | USE_DARWIN=1 | |
1997 | SO_SUFFIX=dylib | |
1998 | cat >>confdefs.h <<\_ACEOF | |
1999 | #define __BSD__ 1 | |
2000 | _ACEOF | |
2001 | ||
2002 | cat >>confdefs.h <<\_ACEOF | |
2003 | #define __DARWIN__ 1 | |
a848cd7e SC |
2004 | _ACEOF |
2005 | ||
2006 | cat >>confdefs.h <<\_ACEOF | |
2007 | #define TARGET_CARBON 1 | |
2008 | _ACEOF | |
2009 | ||
2010 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2011 | DEFAULT_STD_FLAG=no |
a848cd7e | 2012 | ;; |
1e9e8aba DE |
2013 | powerpc-apple-macos* ) |
2014 | USE_UNIX=0 | |
2015 | ac_cv_c_bigendian=yes | |
2016 | SO_SUFFIX=shlib | |
2017 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2018 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2019 | ;; |
a848cd7e SC |
2020 | |
2021 | *-*-beos* ) | |
2022 | USE_BEOS=1 | |
2023 | cat >>confdefs.h <<\_ACEOF | |
2024 | #define __BEOS__ 1 | |
2025 | _ACEOF | |
2026 | ||
2027 | ;; | |
2028 | ||
2029 | *) | |
2030 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2031 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2032 | { (exit 1); exit 1; }; } | |
2033 | esac | |
2034 | ||
2035 | ||
2036 | ||
2037 | ||
2038 | wx_arg_cache_file="configarg.cache" | |
2039 | echo "loading argument cache $wx_arg_cache_file" | |
2040 | rm -f ${wx_arg_cache_file}.tmp | |
2041 | touch ${wx_arg_cache_file}.tmp | |
2042 | touch ${wx_arg_cache_file} | |
2043 | ||
2044 | ||
2045 | DEBUG_CONFIGURE=0 | |
2046 | if test $DEBUG_CONFIGURE = 1; then | |
2047 | DEFAULT_wxUSE_UNIVERSAL=no | |
2048 | DEFAULT_wxUSE_STL=no | |
2049 | ||
2050 | DEFAULT_wxUSE_NANOX=no | |
2051 | ||
2052 | DEFAULT_wxUSE_THREADS=yes | |
2053 | ||
2054 | DEFAULT_wxUSE_SHARED=yes | |
2055 | DEFAULT_wxUSE_OPTIMISE=no | |
2056 | DEFAULT_wxUSE_PROFILE=no | |
2057 | DEFAULT_wxUSE_NO_DEPS=no | |
2058 | DEFAULT_wxUSE_NO_RTTI=no | |
2059 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2060 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2061 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2062 | DEFAULT_wxUSE_PERMISSIVE=no |
2063 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2064 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2065 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2066 | DEFAULT_wxUSE_MEM_TRACING=no | |
2067 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2068 | DEFAULT_wxUSE_DMALLOC=no | |
2069 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2070 | ||
2071 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2072 | DEFAULT_wxUSE_LOG=yes | |
2073 | DEFAULT_wxUSE_LOGWINDOW=no | |
2074 | DEFAULT_wxUSE_LOGGUI=no | |
2075 | DEFAULT_wxUSE_LOGDIALOG=no | |
2076 | ||
2077 | DEFAULT_wxUSE_GUI=yes | |
2078 | DEFAULT_wxUSE_CONTROLS=no | |
2079 | ||
2080 | DEFAULT_wxUSE_REGEX=no | |
2081 | DEFAULT_wxUSE_XML=no | |
2082 | DEFAULT_wxUSE_EXPAT=no | |
2083 | DEFAULT_wxUSE_ZLIB=no | |
2084 | DEFAULT_wxUSE_LIBPNG=no | |
2085 | DEFAULT_wxUSE_LIBJPEG=no | |
2086 | DEFAULT_wxUSE_LIBTIFF=no | |
2087 | DEFAULT_wxUSE_LIBXPM=no | |
2088 | DEFAULT_wxUSE_LIBMSPACK=no | |
2089 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2090 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2091 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2092 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2093 | DEFAULT_wxUSE_ODBC=no |
2094 | DEFAULT_wxUSE_OPENGL=no | |
2095 | ||
2096 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2097 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2098 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2099 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2100 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2101 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2102 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2103 | DEFAULT_wxUSE_DATETIME=no | |
2104 | DEFAULT_wxUSE_TIMER=no | |
2105 | DEFAULT_wxUSE_STOPWATCH=no | |
2106 | DEFAULT_wxUSE_FILE=no | |
2107 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2108 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2109 | DEFAULT_wxUSE_TEXTBUFFER=no |
2110 | DEFAULT_wxUSE_TEXTFILE=no | |
2111 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2112 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2113 | DEFAULT_wxUSE_GSTREAMER8=no |
a848cd7e SC |
2114 | DEFAULT_wxUSE_INTL=no |
2115 | DEFAULT_wxUSE_CONFIG=no | |
2116 | DEFAULT_wxUSE_FONTMAP=no | |
2117 | DEFAULT_wxUSE_STREAMS=no | |
2118 | DEFAULT_wxUSE_SOCKETS=no | |
2119 | DEFAULT_wxUSE_OLE=no | |
2120 | DEFAULT_wxUSE_DATAOBJ=no | |
2121 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2122 | DEFAULT_wxUSE_JOYSTICK=no | |
2123 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2124 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2125 | DEFAULT_wxUSE_LONGLONG=no | |
2126 | DEFAULT_wxUSE_GEOMETRY=no | |
2127 | ||
2128 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2129 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2130 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2131 | ||
2132 | DEFAULT_wxUSE_CLIPBOARD=no | |
2133 | DEFAULT_wxUSE_TOOLTIPS=no | |
2134 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2135 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2136 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2137 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2138 | |
8a7b1113 | 2139 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2140 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2141 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2142 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2143 | ||
2144 | DEFAULT_wxUSE_RESOURCES=no | |
2145 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2146 | DEFAULT_wxUSE_IPC=no | |
2147 | DEFAULT_wxUSE_HELP=no | |
2148 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2149 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2150 | DEFAULT_wxUSE_TREELAYOUT=no | |
2151 | DEFAULT_wxUSE_METAFILE=no | |
2152 | DEFAULT_wxUSE_MIMETYPE=no | |
2153 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2154 | DEFAULT_wxUSE_PROTOCOL=no | |
2155 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2156 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2157 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2158 | DEFAULT_wxUSE_URL=no | |
2159 | ||
2160 | DEFAULT_wxUSE_COMMONDLGS=no | |
2161 | DEFAULT_wxUSE_CHOICEDLG=no | |
2162 | DEFAULT_wxUSE_COLOURDLG=no | |
2163 | DEFAULT_wxUSE_DIRDLG=no | |
2164 | DEFAULT_wxUSE_FILEDLG=no | |
2165 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2166 | DEFAULT_wxUSE_FONTDLG=no | |
2167 | DEFAULT_wxUSE_MSGDLG=no | |
2168 | DEFAULT_wxUSE_NUMBERDLG=no | |
2169 | DEFAULT_wxUSE_TEXTDLG=no | |
2170 | DEFAULT_wxUSE_SPLASH=no | |
2171 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2172 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2173 | DEFAULT_wxUSE_WIZARDDLG=no | |
2174 | ||
2175 | DEFAULT_wxUSE_MENUS=no | |
2176 | DEFAULT_wxUSE_MINIFRAME=no | |
2177 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2178 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2179 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2180 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2181 | DEFAULT_wxUSE_FILESYSTEM=no |
2182 | DEFAULT_wxUSE_FS_INET=no | |
2183 | DEFAULT_wxUSE_FS_ZIP=no | |
2184 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2185 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2186 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2187 | DEFAULT_wxUSE_VALIDATORS=no |
2188 | ||
2189 | DEFAULT_wxUSE_ACCEL=no | |
2190 | DEFAULT_wxUSE_BUTTON=no | |
2191 | DEFAULT_wxUSE_BMPBUTTON=no | |
2192 | DEFAULT_wxUSE_CALCTRL=no | |
2193 | DEFAULT_wxUSE_CARET=no | |
2194 | DEFAULT_wxUSE_CHECKBOX=no | |
2195 | DEFAULT_wxUSE_CHECKLST=no | |
2196 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2197 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2198 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2199 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2200 | DEFAULT_wxUSE_DISPLAY=no |
2201 | DEFAULT_wxUSE_GAUGE=no | |
2202 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 2203 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2204 | DEFAULT_wxUSE_IMAGLIST=no |
2205 | DEFAULT_wxUSE_LISTBOOK=no | |
2206 | DEFAULT_wxUSE_LISTBOX=no | |
2207 | DEFAULT_wxUSE_LISTCTRL=no | |
2208 | DEFAULT_wxUSE_NOTEBOOK=no | |
2209 | DEFAULT_wxUSE_RADIOBOX=no | |
2210 | DEFAULT_wxUSE_RADIOBTN=no | |
2211 | DEFAULT_wxUSE_SASH=no | |
2212 | DEFAULT_wxUSE_SCROLLBAR=no | |
2213 | DEFAULT_wxUSE_SLIDER=no | |
2214 | DEFAULT_wxUSE_SPINBTN=no | |
2215 | DEFAULT_wxUSE_SPINCTRL=no | |
2216 | DEFAULT_wxUSE_SPLITTER=no | |
2217 | DEFAULT_wxUSE_STATBMP=no | |
2218 | DEFAULT_wxUSE_STATBOX=no | |
2219 | DEFAULT_wxUSE_STATLINE=no | |
2220 | DEFAULT_wxUSE_STATTEXT=no | |
2221 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2222 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2223 | DEFAULT_wxUSE_TEXTCTRL=no |
2224 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2225 | DEFAULT_wxUSE_TOOLBAR=no | |
2226 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2227 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
0093c2fc | 2228 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 2229 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
2230 | DEFAULT_wxUSE_TREECTRL=no |
2231 | DEFAULT_wxUSE_POPUPWIN=no | |
2232 | DEFAULT_wxUSE_TIPWINDOW=no | |
2233 | ||
2234 | DEFAULT_wxUSE_UNICODE=no | |
2235 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2236 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2237 | ||
2238 | DEFAULT_wxUSE_PALETTE=no | |
2239 | DEFAULT_wxUSE_IMAGE=no | |
2240 | DEFAULT_wxUSE_GIF=no | |
2241 | DEFAULT_wxUSE_PCX=no | |
2242 | DEFAULT_wxUSE_PNM=no | |
2243 | DEFAULT_wxUSE_IFF=no | |
2244 | DEFAULT_wxUSE_XPM=no | |
2245 | DEFAULT_wxUSE_ICO_CUR=no | |
2246 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2247 | ||
2248 | DEFAULT_wxUSE_MONOLITHIC=no | |
2249 | DEFAULT_wxUSE_PLUGINS=no | |
2250 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2251 | else | |
2252 | DEFAULT_wxUSE_UNIVERSAL=no | |
2253 | DEFAULT_wxUSE_STL=no | |
2254 | ||
2255 | DEFAULT_wxUSE_NANOX=no | |
2256 | ||
2257 | DEFAULT_wxUSE_THREADS=yes | |
2258 | ||
2259 | DEFAULT_wxUSE_SHARED=yes | |
2260 | DEFAULT_wxUSE_OPTIMISE=yes | |
2261 | DEFAULT_wxUSE_PROFILE=no | |
2262 | DEFAULT_wxUSE_NO_DEPS=no | |
2263 | DEFAULT_wxUSE_NO_RTTI=no | |
2264 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2265 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2266 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2267 | DEFAULT_wxUSE_PERMISSIVE=no |
2268 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2269 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2270 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2271 | DEFAULT_wxUSE_MEM_TRACING=no | |
2272 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2273 | DEFAULT_wxUSE_DMALLOC=no | |
2274 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2275 | ||
2276 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2277 | DEFAULT_wxUSE_LOG=yes | |
2278 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2279 | DEFAULT_wxUSE_LOGGUI=yes | |
2280 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2281 | ||
2282 | DEFAULT_wxUSE_GUI=yes | |
2283 | ||
2284 | DEFAULT_wxUSE_REGEX=yes | |
2285 | DEFAULT_wxUSE_XML=yes | |
2286 | DEFAULT_wxUSE_EXPAT=yes | |
2287 | DEFAULT_wxUSE_ZLIB=yes | |
2288 | DEFAULT_wxUSE_LIBPNG=yes | |
2289 | DEFAULT_wxUSE_LIBJPEG=yes | |
2290 | DEFAULT_wxUSE_LIBTIFF=yes | |
2291 | DEFAULT_wxUSE_LIBXPM=yes | |
2292 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2293 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2294 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2295 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2296 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2297 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2298 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2299 | |
2300 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2301 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2302 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2303 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2304 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2305 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2306 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2307 | DEFAULT_wxUSE_DATETIME=yes | |
2308 | DEFAULT_wxUSE_TIMER=yes | |
2309 | DEFAULT_wxUSE_STOPWATCH=yes | |
2310 | DEFAULT_wxUSE_FILE=yes | |
2311 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2312 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2313 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2314 | DEFAULT_wxUSE_TEXTFILE=yes | |
2315 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2316 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2317 | DEFAULT_wxUSE_GSTREAMER8=no |
a848cd7e SC |
2318 | DEFAULT_wxUSE_INTL=yes |
2319 | DEFAULT_wxUSE_CONFIG=yes | |
2320 | DEFAULT_wxUSE_FONTMAP=yes | |
2321 | DEFAULT_wxUSE_STREAMS=yes | |
2322 | DEFAULT_wxUSE_SOCKETS=yes | |
2323 | DEFAULT_wxUSE_OLE=yes | |
2324 | DEFAULT_wxUSE_DATAOBJ=yes | |
2325 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2326 | DEFAULT_wxUSE_JOYSTICK=yes | |
2327 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2328 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2329 | DEFAULT_wxUSE_LONGLONG=yes | |
2330 | DEFAULT_wxUSE_GEOMETRY=yes | |
2331 | ||
2332 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2333 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2334 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2335 | ||
2336 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2337 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2338 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2339 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2340 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2341 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2342 | |
8a7b1113 | 2343 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2344 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2345 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2346 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2347 | ||
2348 | DEFAULT_wxUSE_RESOURCES=no | |
2349 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2350 | DEFAULT_wxUSE_IPC=yes | |
2351 | DEFAULT_wxUSE_HELP=yes | |
2352 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2353 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2354 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2355 | DEFAULT_wxUSE_METAFILE=yes | |
2356 | DEFAULT_wxUSE_MIMETYPE=yes | |
2357 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2358 | DEFAULT_wxUSE_PROTOCOL=yes | |
2359 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2360 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2361 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2362 | DEFAULT_wxUSE_URL=yes | |
2363 | ||
2364 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2365 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2366 | DEFAULT_wxUSE_COLOURDLG=yes | |
2367 | DEFAULT_wxUSE_DIRDLG=yes | |
2368 | DEFAULT_wxUSE_FILEDLG=yes | |
2369 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2370 | DEFAULT_wxUSE_FONTDLG=yes | |
2371 | DEFAULT_wxUSE_MSGDLG=yes | |
2372 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2373 | DEFAULT_wxUSE_TEXTDLG=yes | |
2374 | DEFAULT_wxUSE_SPLASH=yes | |
2375 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2376 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2377 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2378 | ||
2379 | DEFAULT_wxUSE_MENUS=yes | |
2380 | DEFAULT_wxUSE_MINIFRAME=yes | |
2381 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2382 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2383 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2384 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2385 | DEFAULT_wxUSE_FILESYSTEM=yes |
2386 | DEFAULT_wxUSE_FS_INET=yes | |
2387 | DEFAULT_wxUSE_FS_ZIP=yes | |
2388 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2389 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2390 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2391 | DEFAULT_wxUSE_VALIDATORS=yes |
2392 | ||
2393 | DEFAULT_wxUSE_ACCEL=yes | |
2394 | DEFAULT_wxUSE_BUTTON=yes | |
2395 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2396 | DEFAULT_wxUSE_CALCTRL=yes | |
2397 | DEFAULT_wxUSE_CARET=yes | |
2398 | DEFAULT_wxUSE_CHECKBOX=yes | |
2399 | DEFAULT_wxUSE_CHECKLST=yes | |
2400 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2401 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2402 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2403 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2404 | DEFAULT_wxUSE_DISPLAY=yes |
2405 | DEFAULT_wxUSE_GAUGE=yes | |
2406 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 2407 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2408 | DEFAULT_wxUSE_IMAGLIST=yes |
2409 | DEFAULT_wxUSE_LISTBOOK=yes | |
2410 | DEFAULT_wxUSE_LISTBOX=yes | |
2411 | DEFAULT_wxUSE_LISTCTRL=yes | |
2412 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2413 | DEFAULT_wxUSE_RADIOBOX=yes | |
2414 | DEFAULT_wxUSE_RADIOBTN=yes | |
2415 | DEFAULT_wxUSE_SASH=yes | |
2416 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2417 | DEFAULT_wxUSE_SLIDER=yes | |
2418 | DEFAULT_wxUSE_SPINBTN=yes | |
2419 | DEFAULT_wxUSE_SPINCTRL=yes | |
2420 | DEFAULT_wxUSE_SPLITTER=yes | |
2421 | DEFAULT_wxUSE_STATBMP=yes | |
2422 | DEFAULT_wxUSE_STATBOX=yes | |
2423 | DEFAULT_wxUSE_STATLINE=yes | |
2424 | DEFAULT_wxUSE_STATTEXT=yes | |
2425 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2426 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2427 | DEFAULT_wxUSE_TEXTCTRL=yes |
2428 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2429 | DEFAULT_wxUSE_TOOLBAR=yes | |
2430 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2431 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
0093c2fc | 2432 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 2433 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
2434 | DEFAULT_wxUSE_TREECTRL=yes |
2435 | DEFAULT_wxUSE_POPUPWIN=yes | |
2436 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2437 | ||
78de529b | 2438 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2439 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2440 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2441 | ||
2442 | DEFAULT_wxUSE_PALETTE=yes | |
2443 | DEFAULT_wxUSE_IMAGE=yes | |
2444 | DEFAULT_wxUSE_GIF=yes | |
2445 | DEFAULT_wxUSE_PCX=yes | |
2446 | DEFAULT_wxUSE_IFF=no | |
2447 | DEFAULT_wxUSE_PNM=yes | |
2448 | DEFAULT_wxUSE_XPM=yes | |
2449 | DEFAULT_wxUSE_ICO_CUR=yes | |
2450 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2451 | ||
2452 | DEFAULT_wxUSE_MONOLITHIC=no | |
2453 | DEFAULT_wxUSE_PLUGINS=no | |
2454 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2455 | |
f34ca037 | 2456 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2457 | fi |
2458 | ||
2459 | ||
2460 | ||
f34ca037 | 2461 | |
a848cd7e SC |
2462 | for toolkit in `echo $ALL_TOOLKITS`; do |
2463 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2464 | if test "x$LINE" != "x" ; then | |
2465 | has_toolkit_in_cache=1 | |
2466 | eval "DEFAULT_$LINE" | |
2467 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2468 | |
2469 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2470 | if test "x$LINE" != "x" ; then | |
2471 | eval "DEFAULT_$LINE" | |
2472 | fi | |
a848cd7e SC |
2473 | fi |
2474 | done | |
2475 | ||
2476 | ||
2477 | ||
2478 | enablestring= | |
2479 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2480 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2481 | no_cache=0 | |
2482 | # Check whether --enable-gui or --disable-gui was given. | |
2483 | if test "${enable_gui+set}" = set; then | |
2484 | enableval="$enable_gui" | |
2485 | ||
2486 | if test "$enableval" = yes; then | |
2487 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2488 | else | |
2489 | ac_cv_use_gui='wxUSE_GUI=no' | |
2490 | fi | |
2491 | ||
2492 | else | |
2493 | ||
2494 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2495 | if test "x$LINE" != x ; then | |
2496 | eval "DEFAULT_$LINE" | |
2497 | else | |
2498 | no_cache=1 | |
2499 | fi | |
2500 | ||
2501 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2502 | ||
2503 | fi; | |
2504 | ||
2505 | eval "$ac_cv_use_gui" | |
2506 | if test "$no_cache" != 1; then | |
2507 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2508 | fi | |
2509 | ||
2510 | if test "$wxUSE_GUI" = yes; then | |
2511 | echo "$as_me:$LINENO: result: yes" >&5 | |
2512 | echo "${ECHO_T}yes" >&6 | |
2513 | else | |
2514 | echo "$as_me:$LINENO: result: no" >&5 | |
2515 | echo "${ECHO_T}no" >&6 | |
2516 | fi | |
2517 | ||
2518 | ||
2519 | enablestring= | |
2520 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2521 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2522 | no_cache=0 | |
2523 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2524 | if test "${enable_monolithic+set}" = set; then | |
2525 | enableval="$enable_monolithic" | |
2526 | ||
2527 | if test "$enableval" = yes; then | |
2528 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2529 | else | |
2530 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2531 | fi | |
2532 | ||
2533 | else | |
2534 | ||
2535 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2536 | if test "x$LINE" != x ; then | |
2537 | eval "DEFAULT_$LINE" | |
2538 | else | |
2539 | no_cache=1 | |
2540 | fi | |
2541 | ||
2542 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2543 | ||
2544 | fi; | |
2545 | ||
2546 | eval "$ac_cv_use_monolithic" | |
2547 | if test "$no_cache" != 1; then | |
2548 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2549 | fi | |
2550 | ||
2551 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2552 | echo "$as_me:$LINENO: result: yes" >&5 | |
2553 | echo "${ECHO_T}yes" >&6 | |
2554 | else | |
2555 | echo "$as_me:$LINENO: result: no" >&5 | |
2556 | echo "${ECHO_T}no" >&6 | |
2557 | fi | |
2558 | ||
2559 | ||
2560 | enablestring= | |
2561 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2562 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2563 | no_cache=0 | |
2564 | # Check whether --enable-plugins or --disable-plugins was given. | |
2565 | if test "${enable_plugins+set}" = set; then | |
2566 | enableval="$enable_plugins" | |
2567 | ||
2568 | if test "$enableval" = yes; then | |
2569 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2570 | else | |
2571 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2572 | fi | |
2573 | ||
2574 | else | |
2575 | ||
2576 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2577 | if test "x$LINE" != x ; then | |
2578 | eval "DEFAULT_$LINE" | |
2579 | else | |
2580 | no_cache=1 | |
2581 | fi | |
2582 | ||
2583 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2584 | ||
2585 | fi; | |
2586 | ||
2587 | eval "$ac_cv_use_plugins" | |
2588 | if test "$no_cache" != 1; then | |
2589 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2590 | fi | |
2591 | ||
2592 | if test "$wxUSE_PLUGINS" = yes; then | |
2593 | echo "$as_me:$LINENO: result: yes" >&5 | |
2594 | echo "${ECHO_T}yes" >&6 | |
2595 | else | |
2596 | echo "$as_me:$LINENO: result: no" >&5 | |
2597 | echo "${ECHO_T}no" >&6 | |
2598 | fi | |
2599 | ||
2600 | ||
1c14217d VZ |
2601 | withstring=without |
2602 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2603 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2604 | no_cache=0 | |
2605 | ||
2606 | # Check whether --with-subdirs or --without-subdirs was given. | |
2607 | if test "${with_subdirs+set}" = set; then | |
2608 | withval="$with_subdirs" | |
2609 | ||
2610 | if test "$withval" = yes; then | |
2611 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2612 | else | |
2613 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2614 | fi | |
2615 | ||
2616 | else | |
2617 | ||
2618 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2619 | if test "x$LINE" != x ; then | |
2620 | eval "DEFAULT_$LINE" | |
2621 | else | |
2622 | no_cache=1 | |
2623 | fi | |
2624 | ||
2625 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2626 | ||
2627 | fi; | |
2628 | ||
2629 | eval "$ac_cv_use_subdirs" | |
2630 | if test "$no_cache" != 1; then | |
2631 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2632 | fi | |
2633 | ||
2634 | if test "$wxWITH_SUBDIRS" = yes; then | |
2635 | echo "$as_me:$LINENO: result: yes" >&5 | |
2636 | echo "${ECHO_T}yes" >&6 | |
2637 | else | |
2638 | echo "$as_me:$LINENO: result: no" >&5 | |
2639 | echo "${ECHO_T}no" >&6 | |
2640 | fi | |
2641 | ||
2642 | ||
a848cd7e SC |
2643 | if test "$wxUSE_GUI" = "yes"; then |
2644 | ||
2645 | ||
2646 | enablestring= | |
2647 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2648 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2649 | no_cache=0 | |
2650 | # Check whether --enable-universal or --disable-universal was given. | |
2651 | if test "${enable_universal+set}" = set; then | |
2652 | enableval="$enable_universal" | |
2653 | ||
2654 | if test "$enableval" = yes; then | |
2655 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2656 | else | |
2657 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2658 | fi | |
2659 | ||
2660 | else | |
2661 | ||
2662 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2663 | if test "x$LINE" != x ; then | |
2664 | eval "DEFAULT_$LINE" | |
2665 | else | |
2666 | no_cache=1 | |
2667 | fi | |
2668 | ||
2669 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2670 | ||
2671 | fi; | |
2672 | ||
2673 | eval "$ac_cv_use_universal" | |
2674 | if test "$no_cache" != 1; then | |
2675 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2676 | fi | |
2677 | ||
2678 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2679 | echo "$as_me:$LINENO: result: yes" >&5 | |
2680 | echo "${ECHO_T}yes" >&6 | |
2681 | else | |
2682 | echo "$as_me:$LINENO: result: no" >&5 | |
2683 | echo "${ECHO_T}no" >&6 | |
2684 | fi | |
2685 | ||
2686 | ||
2687 | # Check whether --with-gtk or --without-gtk was given. | |
2688 | if test "${with_gtk+set}" = set; then | |
2689 | withval="$with_gtk" | |
2690 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2691 | fi; | |
2692 | ||
2693 | # Check whether --with-motif or --without-motif was given. | |
2694 | if test "${with_motif+set}" = set; then | |
2695 | withval="$with_motif" | |
2696 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2697 | fi; | |
2698 | ||
2699 | # Check whether --with-mac or --without-mac was given. | |
2700 | if test "${with_mac+set}" = set; then | |
2701 | withval="$with_mac" | |
c228d3a4 | 2702 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2703 | fi; |
2704 | ||
2705 | # Check whether --with-cocoa or --without-cocoa was given. | |
2706 | if test "${with_cocoa+set}" = set; then | |
2707 | withval="$with_cocoa" | |
c228d3a4 | 2708 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2709 | fi; |
2710 | ||
2711 | # Check whether --with-wine or --without-wine was given. | |
2712 | if test "${with_wine+set}" = set; then | |
2713 | withval="$with_wine" | |
2714 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2715 | fi; | |
2716 | ||
2717 | # Check whether --with-msw or --without-msw was given. | |
2718 | if test "${with_msw+set}" = set; then | |
2719 | withval="$with_msw" | |
2720 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2721 | fi; | |
2722 | ||
2723 | # Check whether --with-pm or --without-pm was given. | |
2724 | if test "${with_pm+set}" = set; then | |
2725 | withval="$with_pm" | |
2726 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2727 | fi; | |
2728 | ||
2729 | # Check whether --with-mgl or --without-mgl was given. | |
2730 | if test "${with_mgl+set}" = set; then | |
2731 | withval="$with_mgl" | |
2732 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2733 | fi; | |
2734 | ||
2735 | # Check whether --with-microwin or --without-microwin was given. | |
2736 | if test "${with_microwin+set}" = set; then | |
2737 | withval="$with_microwin" | |
2738 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2739 | fi; | |
2740 | ||
2741 | # Check whether --with-x11 or --without-x11 was given. | |
2742 | if test "${with_x11+set}" = set; then | |
2743 | withval="$with_x11" | |
2744 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2745 | fi; | |
2746 | ||
2747 | enablestring= | |
2748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2749 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2750 | no_cache=0 | |
2751 | # Check whether --enable-nanox or --disable-nanox was given. | |
2752 | if test "${enable_nanox+set}" = set; then | |
2753 | enableval="$enable_nanox" | |
2754 | ||
2755 | if test "$enableval" = yes; then | |
2756 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2757 | else | |
2758 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2759 | fi | |
2760 | ||
2761 | else | |
2762 | ||
2763 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2764 | if test "x$LINE" != x ; then | |
2765 | eval "DEFAULT_$LINE" | |
2766 | else | |
2767 | no_cache=1 | |
2768 | fi | |
2769 | ||
2770 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2771 | ||
2772 | fi; | |
2773 | ||
2774 | eval "$ac_cv_use_nanox" | |
2775 | if test "$no_cache" != 1; then | |
2776 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2777 | fi | |
2778 | ||
2779 | if test "$wxUSE_NANOX" = yes; then | |
2780 | echo "$as_me:$LINENO: result: yes" >&5 | |
2781 | echo "${ECHO_T}yes" >&6 | |
2782 | else | |
2783 | echo "$as_me:$LINENO: result: no" >&5 | |
2784 | echo "${ECHO_T}no" >&6 | |
2785 | fi | |
2786 | ||
2787 | ||
f34ca037 MW |
2788 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2789 | if test "${enable_gtk2+set}" = set; then | |
2790 | enableval="$enable_gtk2" | |
2791 | wxUSE_GTK2="$enableval" | |
2792 | fi; | |
a848cd7e | 2793 | |
a848cd7e SC |
2794 | enablestring= |
2795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2796 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2797 | no_cache=0 | |
2798 | # Check whether --enable-gpe or --disable-gpe was given. | |
2799 | if test "${enable_gpe+set}" = set; then | |
2800 | enableval="$enable_gpe" | |
2801 | ||
2802 | if test "$enableval" = yes; then | |
2803 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2804 | else | |
2805 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2806 | fi | |
2807 | ||
2808 | else | |
2809 | ||
2810 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2811 | if test "x$LINE" != x ; then | |
2812 | eval "DEFAULT_$LINE" | |
2813 | else | |
2814 | no_cache=1 | |
2815 | fi | |
2816 | ||
2817 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2818 | ||
2819 | fi; | |
2820 | ||
2821 | eval "$ac_cv_use_gpe" | |
2822 | if test "$no_cache" != 1; then | |
2823 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2824 | fi | |
2825 | ||
2826 | if test "$wxUSE_GPE" = yes; then | |
2827 | echo "$as_me:$LINENO: result: yes" >&5 | |
2828 | echo "${ECHO_T}yes" >&6 | |
2829 | else | |
2830 | echo "$as_me:$LINENO: result: no" >&5 | |
2831 | echo "${ECHO_T}no" >&6 | |
2832 | fi | |
2833 | ||
2834 | ||
2835 | ||
2836 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2837 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2838 | no_cache=0 | |
2839 | ||
2840 | # Check whether --with-libpng or --without-libpng was given. | |
2841 | if test "${with_libpng+set}" = set; then | |
2842 | withval="$with_libpng" | |
2843 | ||
2844 | if test "$withval" = yes; then | |
2845 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2846 | elif test "$withval" = no; then | |
2847 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2848 | elif test "$withval" = sys; then | |
2849 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2850 | elif test "$withval" = builtin; then | |
2851 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2852 | else | |
2853 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2854 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2855 | { (exit 1); exit 1; }; } | |
2856 | fi | |
2857 | ||
2858 | else | |
2859 | ||
2860 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2861 | if test "x$LINE" != x ; then | |
2862 | eval "DEFAULT_$LINE" | |
2863 | else | |
2864 | no_cache=1 | |
2865 | fi | |
2866 | ||
2867 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2868 | ||
2869 | fi; | |
2870 | ||
2871 | eval "$ac_cv_use_libpng" | |
2872 | if test "$no_cache" != 1; then | |
2873 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2874 | fi | |
2875 | ||
2876 | if test "$wxUSE_LIBPNG" = yes; then | |
2877 | echo "$as_me:$LINENO: result: yes" >&5 | |
2878 | echo "${ECHO_T}yes" >&6 | |
2879 | elif test "$wxUSE_LIBPNG" = no; then | |
2880 | echo "$as_me:$LINENO: result: no" >&5 | |
2881 | echo "${ECHO_T}no" >&6 | |
2882 | elif test "$wxUSE_LIBPNG" = sys; then | |
2883 | echo "$as_me:$LINENO: result: system version" >&5 | |
2884 | echo "${ECHO_T}system version" >&6 | |
2885 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2886 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2887 | echo "${ECHO_T}builtin version" >&6 | |
2888 | else | |
2889 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2890 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2891 | { (exit 1); exit 1; }; } | |
2892 | fi | |
2893 | ||
2894 | ||
2895 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2896 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2897 | no_cache=0 | |
2898 | ||
2899 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2900 | if test "${with_libjpeg+set}" = set; then | |
2901 | withval="$with_libjpeg" | |
2902 | ||
2903 | if test "$withval" = yes; then | |
2904 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2905 | elif test "$withval" = no; then | |
2906 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2907 | elif test "$withval" = sys; then | |
2908 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2909 | elif test "$withval" = builtin; then | |
2910 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2911 | else | |
2912 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2913 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2914 | { (exit 1); exit 1; }; } | |
2915 | fi | |
2916 | ||
2917 | else | |
2918 | ||
2919 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2920 | if test "x$LINE" != x ; then | |
2921 | eval "DEFAULT_$LINE" | |
2922 | else | |
2923 | no_cache=1 | |
2924 | fi | |
2925 | ||
2926 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2927 | ||
2928 | fi; | |
2929 | ||
2930 | eval "$ac_cv_use_libjpeg" | |
2931 | if test "$no_cache" != 1; then | |
2932 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2933 | fi | |
2934 | ||
2935 | if test "$wxUSE_LIBJPEG" = yes; then | |
2936 | echo "$as_me:$LINENO: result: yes" >&5 | |
2937 | echo "${ECHO_T}yes" >&6 | |
2938 | elif test "$wxUSE_LIBJPEG" = no; then | |
2939 | echo "$as_me:$LINENO: result: no" >&5 | |
2940 | echo "${ECHO_T}no" >&6 | |
2941 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2942 | echo "$as_me:$LINENO: result: system version" >&5 | |
2943 | echo "${ECHO_T}system version" >&6 | |
2944 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2945 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2946 | echo "${ECHO_T}builtin version" >&6 | |
2947 | else | |
2948 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2949 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2950 | { (exit 1); exit 1; }; } | |
2951 | fi | |
2952 | ||
2953 | ||
2954 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2955 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2956 | no_cache=0 | |
2957 | ||
2958 | # Check whether --with-libtiff or --without-libtiff was given. | |
2959 | if test "${with_libtiff+set}" = set; then | |
2960 | withval="$with_libtiff" | |
2961 | ||
2962 | if test "$withval" = yes; then | |
2963 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2964 | elif test "$withval" = no; then | |
2965 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2966 | elif test "$withval" = sys; then | |
2967 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2968 | elif test "$withval" = builtin; then | |
2969 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2970 | else | |
2971 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2972 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2973 | { (exit 1); exit 1; }; } | |
2974 | fi | |
2975 | ||
2976 | else | |
2977 | ||
2978 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2979 | if test "x$LINE" != x ; then | |
2980 | eval "DEFAULT_$LINE" | |
2981 | else | |
2982 | no_cache=1 | |
2983 | fi | |
2984 | ||
2985 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2986 | ||
2987 | fi; | |
2988 | ||
2989 | eval "$ac_cv_use_libtiff" | |
2990 | if test "$no_cache" != 1; then | |
2991 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2992 | fi | |
2993 | ||
2994 | if test "$wxUSE_LIBTIFF" = yes; then | |
2995 | echo "$as_me:$LINENO: result: yes" >&5 | |
2996 | echo "${ECHO_T}yes" >&6 | |
2997 | elif test "$wxUSE_LIBTIFF" = no; then | |
2998 | echo "$as_me:$LINENO: result: no" >&5 | |
2999 | echo "${ECHO_T}no" >&6 | |
3000 | elif test "$wxUSE_LIBTIFF" = sys; then | |
3001 | echo "$as_me:$LINENO: result: system version" >&5 | |
3002 | echo "${ECHO_T}system version" >&6 | |
3003 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
3004 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3005 | echo "${ECHO_T}builtin version" >&6 | |
3006 | else | |
3007 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3008 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3009 | { (exit 1); exit 1; }; } | |
3010 | fi | |
3011 | ||
3012 | ||
3013 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
3014 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
3015 | no_cache=0 | |
3016 | ||
3017 | # Check whether --with-libxpm or --without-libxpm was given. | |
3018 | if test "${with_libxpm+set}" = set; then | |
3019 | withval="$with_libxpm" | |
3020 | ||
3021 | if test "$withval" = yes; then | |
3022 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3023 | elif test "$withval" = no; then | |
3024 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3025 | elif test "$withval" = sys; then | |
3026 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3027 | elif test "$withval" = builtin; then | |
3028 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3029 | else | |
3030 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3031 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3032 | { (exit 1); exit 1; }; } | |
3033 | fi | |
3034 | ||
3035 | else | |
3036 | ||
3037 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3038 | if test "x$LINE" != x ; then | |
3039 | eval "DEFAULT_$LINE" | |
3040 | else | |
3041 | no_cache=1 | |
3042 | fi | |
3043 | ||
3044 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3045 | ||
3046 | fi; | |
3047 | ||
3048 | eval "$ac_cv_use_libxpm" | |
3049 | if test "$no_cache" != 1; then | |
3050 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3051 | fi | |
3052 | ||
3053 | if test "$wxUSE_LIBXPM" = yes; then | |
3054 | echo "$as_me:$LINENO: result: yes" >&5 | |
3055 | echo "${ECHO_T}yes" >&6 | |
3056 | elif test "$wxUSE_LIBXPM" = no; then | |
3057 | echo "$as_me:$LINENO: result: no" >&5 | |
3058 | echo "${ECHO_T}no" >&6 | |
3059 | elif test "$wxUSE_LIBXPM" = sys; then | |
3060 | echo "$as_me:$LINENO: result: system version" >&5 | |
3061 | echo "${ECHO_T}system version" >&6 | |
3062 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3063 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3064 | echo "${ECHO_T}builtin version" >&6 | |
3065 | else | |
3066 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3067 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3068 | { (exit 1); exit 1; }; } | |
3069 | fi | |
3070 | ||
3071 | ||
1c14217d VZ |
3072 | withstring= |
3073 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3074 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3075 | no_cache=0 |
3076 | ||
3077 | # Check whether --with-libmspack or --without-libmspack was given. | |
3078 | if test "${with_libmspack+set}" = set; then | |
3079 | withval="$with_libmspack" | |
3080 | ||
3081 | if test "$withval" = yes; then | |
3082 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3083 | else | |
3084 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3085 | fi | |
3086 | ||
3087 | else | |
3088 | ||
3089 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3090 | if test "x$LINE" != x ; then | |
3091 | eval "DEFAULT_$LINE" | |
3092 | else | |
3093 | no_cache=1 | |
3094 | fi | |
3095 | ||
3096 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3097 | ||
3098 | fi; | |
3099 | ||
3100 | eval "$ac_cv_use_libmspack" | |
3101 | if test "$no_cache" != 1; then | |
3102 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3103 | fi | |
3104 | ||
3105 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3106 | echo "$as_me:$LINENO: result: yes" >&5 | |
3107 | echo "${ECHO_T}yes" >&6 | |
3108 | else | |
3109 | echo "$as_me:$LINENO: result: no" >&5 | |
3110 | echo "${ECHO_T}no" >&6 | |
3111 | fi | |
3112 | ||
3113 | ||
1c14217d VZ |
3114 | withstring= |
3115 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3116 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3117 | no_cache=0 |
3118 | ||
3119 | # Check whether --with-sdl or --without-sdl was given. | |
3120 | if test "${with_sdl+set}" = set; then | |
3121 | withval="$with_sdl" | |
3122 | ||
3123 | if test "$withval" = yes; then | |
3124 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3125 | else | |
3126 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3127 | fi | |
3128 | ||
3129 | else | |
3130 | ||
3131 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3132 | if test "x$LINE" != x ; then | |
3133 | eval "DEFAULT_$LINE" | |
3134 | else | |
3135 | no_cache=1 | |
3136 | fi | |
3137 | ||
3138 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3139 | ||
3140 | fi; | |
3141 | ||
3142 | eval "$ac_cv_use_sdl" | |
3143 | if test "$no_cache" != 1; then | |
3144 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3145 | fi | |
3146 | ||
3147 | if test "$wxUSE_LIBSDL" = yes; then | |
3148 | echo "$as_me:$LINENO: result: yes" >&5 | |
3149 | echo "${ECHO_T}yes" >&6 | |
3150 | else | |
3151 | echo "$as_me:$LINENO: result: no" >&5 | |
3152 | echo "${ECHO_T}no" >&6 | |
3153 | fi | |
3154 | ||
3155 | ||
1c14217d VZ |
3156 | withstring= |
3157 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3158 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3159 | no_cache=0 |
3160 | ||
3161 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3162 | if test "${with_gnomeprint+set}" = set; then | |
3163 | withval="$with_gnomeprint" | |
3164 | ||
3165 | if test "$withval" = yes; then | |
3166 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3167 | else | |
3168 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3169 | fi | |
3170 | ||
3171 | else | |
3172 | ||
3173 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3174 | if test "x$LINE" != x ; then | |
3175 | eval "DEFAULT_$LINE" | |
3176 | else | |
3177 | no_cache=1 | |
3178 | fi | |
3179 | ||
3180 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3181 | ||
3182 | fi; | |
3183 | ||
3184 | eval "$ac_cv_use_gnomeprint" | |
3185 | if test "$no_cache" != 1; then | |
3186 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3187 | fi | |
3188 | ||
3189 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3190 | echo "$as_me:$LINENO: result: yes" >&5 | |
3191 | echo "${ECHO_T}yes" >&6 | |
3192 | else | |
3193 | echo "$as_me:$LINENO: result: no" >&5 | |
3194 | echo "${ECHO_T}no" >&6 | |
3195 | fi | |
3196 | ||
3197 | ||
2b850ae1 RR |
3198 | withstring= |
3199 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5 | |
3200 | echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6 | |
3201 | no_cache=0 | |
3202 | ||
3203 | # Check whether --with-gnomevfs or --without-gnomevfs was given. | |
3204 | if test "${with_gnomevfs+set}" = set; then | |
3205 | withval="$with_gnomevfs" | |
3206 | ||
3207 | if test "$withval" = yes; then | |
3208 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes' | |
3209 | else | |
3210 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no' | |
3211 | fi | |
3212 | ||
3213 | else | |
3214 | ||
3215 | LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}` | |
3216 | if test "x$LINE" != x ; then | |
3217 | eval "DEFAULT_$LINE" | |
3218 | else | |
3219 | no_cache=1 | |
3220 | fi | |
3221 | ||
3222 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS | |
3223 | ||
3224 | fi; | |
3225 | ||
3226 | eval "$ac_cv_use_gnomevfs" | |
3227 | if test "$no_cache" != 1; then | |
3228 | echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp | |
3229 | fi | |
3230 | ||
3231 | if test "$wxUSE_LIBGNOMEVFS" = yes; then | |
3232 | echo "$as_me:$LINENO: result: yes" >&5 | |
3233 | echo "${ECHO_T}yes" >&6 | |
3234 | else | |
3235 | echo "$as_me:$LINENO: result: no" >&5 | |
3236 | echo "${ECHO_T}no" >&6 | |
3237 | fi | |
3238 | ||
3239 | ||
3565d135 RR |
3240 | withstring= |
3241 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3242 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3243 | no_cache=0 | |
3244 | ||
3245 | # Check whether --with-hildon or --without-hildon was given. | |
3246 | if test "${with_hildon+set}" = set; then | |
3247 | withval="$with_hildon" | |
3248 | ||
3249 | if test "$withval" = yes; then | |
3250 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3251 | else | |
3252 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3253 | fi | |
3254 | ||
3255 | else | |
3256 | ||
3257 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3258 | if test "x$LINE" != x ; then | |
3259 | eval "DEFAULT_$LINE" | |
3260 | else | |
3261 | no_cache=1 | |
3262 | fi | |
3263 | ||
3264 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3265 | ||
3266 | fi; | |
3267 | ||
3268 | eval "$ac_cv_use_hildon" | |
3269 | if test "$no_cache" != 1; then | |
3270 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3271 | fi | |
3272 | ||
3273 | if test "$wxUSE_LIBHILDON" = yes; then | |
3274 | echo "$as_me:$LINENO: result: yes" >&5 | |
3275 | echo "${ECHO_T}yes" >&6 | |
3276 | else | |
3277 | echo "$as_me:$LINENO: result: no" >&5 | |
3278 | echo "${ECHO_T}no" >&6 | |
3279 | fi | |
3280 | ||
3281 | ||
1c14217d VZ |
3282 | withstring= |
3283 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3284 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3285 | no_cache=0 |
3286 | ||
3287 | # Check whether --with-opengl or --without-opengl was given. | |
3288 | if test "${with_opengl+set}" = set; then | |
3289 | withval="$with_opengl" | |
3290 | ||
3291 | if test "$withval" = yes; then | |
3292 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3293 | else | |
3294 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3295 | fi | |
3296 | ||
3297 | else | |
3298 | ||
3299 | LINE=`grep "wxUSE_OPENGL" ${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_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3307 | ||
3308 | fi; | |
3309 | ||
3310 | eval "$ac_cv_use_opengl" | |
3311 | if test "$no_cache" != 1; then | |
3312 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3313 | fi | |
3314 | ||
3315 | if test "$wxUSE_OPENGL" = 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 | fi | |
3325 | ||
3326 | ||
1c14217d VZ |
3327 | withstring= |
3328 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3329 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3330 | no_cache=0 |
3331 | ||
3332 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3333 | if test "${with_dmalloc+set}" = set; then | |
3334 | withval="$with_dmalloc" | |
3335 | ||
3336 | if test "$withval" = yes; then | |
3337 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3338 | else | |
3339 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3340 | fi | |
3341 | ||
3342 | else | |
3343 | ||
3344 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3345 | if test "x$LINE" != x ; then | |
3346 | eval "DEFAULT_$LINE" | |
3347 | else | |
3348 | no_cache=1 | |
3349 | fi | |
3350 | ||
3351 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3352 | ||
3353 | fi; | |
3354 | ||
3355 | eval "$ac_cv_use_dmalloc" | |
3356 | if test "$no_cache" != 1; then | |
3357 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3358 | fi | |
3359 | ||
3360 | if test "$wxUSE_DMALLOC" = yes; then | |
3361 | echo "$as_me:$LINENO: result: yes" >&5 | |
3362 | echo "${ECHO_T}yes" >&6 | |
3363 | else | |
3364 | echo "$as_me:$LINENO: result: no" >&5 | |
3365 | echo "${ECHO_T}no" >&6 | |
3366 | fi | |
3367 | ||
3368 | ||
3369 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3370 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3371 | no_cache=0 | |
3372 | ||
3373 | # Check whether --with-regex or --without-regex was given. | |
3374 | if test "${with_regex+set}" = set; then | |
3375 | withval="$with_regex" | |
3376 | ||
3377 | if test "$withval" = yes; then | |
3378 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3379 | elif test "$withval" = no; then | |
3380 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3381 | elif test "$withval" = sys; then | |
3382 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3383 | elif test "$withval" = builtin; then | |
3384 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3385 | else | |
3386 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3387 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3388 | { (exit 1); exit 1; }; } | |
3389 | fi | |
3390 | ||
3391 | else | |
3392 | ||
3393 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3394 | if test "x$LINE" != x ; then | |
3395 | eval "DEFAULT_$LINE" | |
3396 | else | |
3397 | no_cache=1 | |
3398 | fi | |
3399 | ||
3400 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3401 | ||
3402 | fi; | |
3403 | ||
3404 | eval "$ac_cv_use_regex" | |
3405 | if test "$no_cache" != 1; then | |
3406 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3407 | fi | |
3408 | ||
3409 | if test "$wxUSE_REGEX" = yes; then | |
3410 | echo "$as_me:$LINENO: result: yes" >&5 | |
3411 | echo "${ECHO_T}yes" >&6 | |
3412 | elif test "$wxUSE_REGEX" = no; then | |
3413 | echo "$as_me:$LINENO: result: no" >&5 | |
3414 | echo "${ECHO_T}no" >&6 | |
3415 | elif test "$wxUSE_REGEX" = sys; then | |
3416 | echo "$as_me:$LINENO: result: system version" >&5 | |
3417 | echo "${ECHO_T}system version" >&6 | |
3418 | elif test "$wxUSE_REGEX" = builtin; then | |
3419 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3420 | echo "${ECHO_T}builtin version" >&6 | |
3421 | else | |
3422 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3423 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3424 | { (exit 1); exit 1; }; } | |
3425 | fi | |
3426 | ||
3427 | ||
3428 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3429 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3430 | no_cache=0 | |
3431 | ||
3432 | # Check whether --with-zlib or --without-zlib was given. | |
3433 | if test "${with_zlib+set}" = set; then | |
3434 | withval="$with_zlib" | |
3435 | ||
3436 | if test "$withval" = yes; then | |
3437 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3438 | elif test "$withval" = no; then | |
3439 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3440 | elif test "$withval" = sys; then | |
3441 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3442 | elif test "$withval" = builtin; then | |
3443 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3444 | else | |
3445 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3446 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3447 | { (exit 1); exit 1; }; } | |
3448 | fi | |
3449 | ||
3450 | else | |
3451 | ||
3452 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3453 | if test "x$LINE" != x ; then | |
3454 | eval "DEFAULT_$LINE" | |
3455 | else | |
3456 | no_cache=1 | |
3457 | fi | |
3458 | ||
3459 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3460 | ||
3461 | fi; | |
3462 | ||
3463 | eval "$ac_cv_use_zlib" | |
3464 | if test "$no_cache" != 1; then | |
3465 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3466 | fi | |
3467 | ||
3468 | if test "$wxUSE_ZLIB" = yes; then | |
3469 | echo "$as_me:$LINENO: result: yes" >&5 | |
3470 | echo "${ECHO_T}yes" >&6 | |
3471 | elif test "$wxUSE_ZLIB" = no; then | |
3472 | echo "$as_me:$LINENO: result: no" >&5 | |
3473 | echo "${ECHO_T}no" >&6 | |
3474 | elif test "$wxUSE_ZLIB" = sys; then | |
3475 | echo "$as_me:$LINENO: result: system version" >&5 | |
3476 | echo "${ECHO_T}system version" >&6 | |
3477 | elif test "$wxUSE_ZLIB" = builtin; then | |
3478 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3479 | echo "${ECHO_T}builtin version" >&6 | |
3480 | else | |
3481 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3482 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3483 | { (exit 1); exit 1; }; } | |
3484 | fi | |
3485 | ||
3486 | ||
3487 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3488 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3489 | no_cache=0 | |
3490 | ||
3491 | # Check whether --with-odbc or --without-odbc was given. | |
3492 | if test "${with_odbc+set}" = set; then | |
3493 | withval="$with_odbc" | |
3494 | ||
3495 | if test "$withval" = yes; then | |
3496 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3497 | elif test "$withval" = no; then | |
3498 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3499 | elif test "$withval" = sys; then | |
3500 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3501 | elif test "$withval" = builtin; then | |
3502 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3503 | else | |
3504 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3505 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3506 | { (exit 1); exit 1; }; } | |
3507 | fi | |
3508 | ||
3509 | else | |
3510 | ||
3511 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3512 | if test "x$LINE" != x ; then | |
3513 | eval "DEFAULT_$LINE" | |
3514 | else | |
3515 | no_cache=1 | |
3516 | fi | |
3517 | ||
3518 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3519 | ||
3520 | fi; | |
3521 | ||
3522 | eval "$ac_cv_use_odbc" | |
3523 | if test "$no_cache" != 1; then | |
3524 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3525 | fi | |
3526 | ||
3527 | if test "$wxUSE_ODBC" = yes; then | |
3528 | echo "$as_me:$LINENO: result: yes" >&5 | |
3529 | echo "${ECHO_T}yes" >&6 | |
3530 | elif test "$wxUSE_ODBC" = no; then | |
3531 | echo "$as_me:$LINENO: result: no" >&5 | |
3532 | echo "${ECHO_T}no" >&6 | |
3533 | elif test "$wxUSE_ODBC" = sys; then | |
3534 | echo "$as_me:$LINENO: result: system version" >&5 | |
3535 | echo "${ECHO_T}system version" >&6 | |
3536 | elif test "$wxUSE_ODBC" = builtin; then | |
3537 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3538 | echo "${ECHO_T}builtin version" >&6 | |
3539 | else | |
3540 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3541 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3542 | { (exit 1); exit 1; }; } | |
3543 | fi | |
3544 | ||
3545 | ||
3546 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3547 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3548 | no_cache=0 | |
3549 | ||
3550 | # Check whether --with-expat or --without-expat was given. | |
3551 | if test "${with_expat+set}" = set; then | |
3552 | withval="$with_expat" | |
3553 | ||
3554 | if test "$withval" = yes; then | |
3555 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3556 | elif test "$withval" = no; then | |
3557 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3558 | elif test "$withval" = sys; then | |
3559 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3560 | elif test "$withval" = builtin; then | |
3561 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3562 | else | |
3563 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3564 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3565 | { (exit 1); exit 1; }; } | |
3566 | fi | |
3567 | ||
3568 | else | |
3569 | ||
3570 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3571 | if test "x$LINE" != x ; then | |
3572 | eval "DEFAULT_$LINE" | |
3573 | else | |
3574 | no_cache=1 | |
3575 | fi | |
3576 | ||
3577 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3578 | ||
3579 | fi; | |
3580 | ||
3581 | eval "$ac_cv_use_expat" | |
3582 | if test "$no_cache" != 1; then | |
3583 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3584 | fi | |
3585 | ||
3586 | if test "$wxUSE_EXPAT" = yes; then | |
3587 | echo "$as_me:$LINENO: result: yes" >&5 | |
3588 | echo "${ECHO_T}yes" >&6 | |
3589 | elif test "$wxUSE_EXPAT" = no; then | |
3590 | echo "$as_me:$LINENO: result: no" >&5 | |
3591 | echo "${ECHO_T}no" >&6 | |
3592 | elif test "$wxUSE_EXPAT" = sys; then | |
3593 | echo "$as_me:$LINENO: result: system version" >&5 | |
3594 | echo "${ECHO_T}system version" >&6 | |
3595 | elif test "$wxUSE_EXPAT" = builtin; then | |
3596 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3597 | echo "${ECHO_T}builtin version" >&6 | |
3598 | else | |
3599 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3600 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3601 | { (exit 1); exit 1; }; } | |
3602 | fi | |
3603 | ||
3604 | ||
3605 | ||
3606 | ||
3607 | enablestring= | |
3608 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3609 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3610 | no_cache=0 | |
3611 | # Check whether --enable-shared or --disable-shared was given. | |
3612 | if test "${enable_shared+set}" = set; then | |
3613 | enableval="$enable_shared" | |
3614 | ||
3615 | if test "$enableval" = yes; then | |
3616 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3617 | else | |
3618 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3619 | fi | |
3620 | ||
3621 | else | |
3622 | ||
3623 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3624 | if test "x$LINE" != x ; then | |
3625 | eval "DEFAULT_$LINE" | |
3626 | else | |
3627 | no_cache=1 | |
3628 | fi | |
3629 | ||
3630 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3631 | ||
3632 | fi; | |
3633 | ||
3634 | eval "$ac_cv_use_shared" | |
3635 | if test "$no_cache" != 1; then | |
3636 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3637 | fi | |
3638 | ||
3639 | if test "$wxUSE_SHARED" = yes; then | |
3640 | echo "$as_me:$LINENO: result: yes" >&5 | |
3641 | echo "${ECHO_T}yes" >&6 | |
3642 | else | |
3643 | echo "$as_me:$LINENO: result: no" >&5 | |
3644 | echo "${ECHO_T}no" >&6 | |
3645 | fi | |
3646 | ||
3647 | ||
3648 | enablestring= | |
3649 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3650 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3651 | no_cache=0 | |
3652 | # Check whether --enable-optimise or --disable-optimise was given. | |
3653 | if test "${enable_optimise+set}" = set; then | |
3654 | enableval="$enable_optimise" | |
3655 | ||
3656 | if test "$enableval" = yes; then | |
3657 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3658 | else | |
3659 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3660 | fi | |
3661 | ||
3662 | else | |
3663 | ||
3664 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3665 | if test "x$LINE" != x ; then | |
3666 | eval "DEFAULT_$LINE" | |
3667 | else | |
3668 | no_cache=1 | |
3669 | fi | |
3670 | ||
3671 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3672 | ||
3673 | fi; | |
3674 | ||
3675 | eval "$ac_cv_use_optimise" | |
3676 | if test "$no_cache" != 1; then | |
3677 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3678 | fi | |
3679 | ||
3680 | if test "$wxUSE_OPTIMISE" = yes; then | |
3681 | echo "$as_me:$LINENO: result: yes" >&5 | |
3682 | echo "${ECHO_T}yes" >&6 | |
3683 | else | |
3684 | echo "$as_me:$LINENO: result: no" >&5 | |
3685 | echo "${ECHO_T}no" >&6 | |
3686 | fi | |
3687 | ||
3688 | ||
3689 | enablestring= | |
3690 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3691 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3692 | no_cache=0 | |
3693 | # Check whether --enable-debug or --disable-debug was given. | |
3694 | if test "${enable_debug+set}" = set; then | |
3695 | enableval="$enable_debug" | |
3696 | ||
3697 | if test "$enableval" = yes; then | |
3698 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3699 | else | |
3700 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3701 | fi | |
3702 | ||
3703 | else | |
3704 | ||
3705 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3706 | if test "x$LINE" != x ; then | |
3707 | eval "DEFAULT_$LINE" | |
3708 | else | |
3709 | no_cache=1 | |
3710 | fi | |
3711 | ||
3712 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3713 | ||
3714 | fi; | |
3715 | ||
3716 | eval "$ac_cv_use_debug" | |
3717 | if test "$no_cache" != 1; then | |
3718 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3719 | fi | |
3720 | ||
3721 | if test "$wxUSE_DEBUG" = yes; then | |
3722 | echo "$as_me:$LINENO: result: yes" >&5 | |
3723 | echo "${ECHO_T}yes" >&6 | |
3724 | else | |
3725 | echo "$as_me:$LINENO: result: no" >&5 | |
3726 | echo "${ECHO_T}no" >&6 | |
3727 | fi | |
3728 | ||
3729 | ||
3730 | enablestring= | |
3731 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3732 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3733 | no_cache=0 | |
3734 | # Check whether --enable-stl or --disable-stl was given. | |
3735 | if test "${enable_stl+set}" = set; then | |
3736 | enableval="$enable_stl" | |
3737 | ||
3738 | if test "$enableval" = yes; then | |
3739 | ac_cv_use_stl='wxUSE_STL=yes' | |
3740 | else | |
3741 | ac_cv_use_stl='wxUSE_STL=no' | |
3742 | fi | |
3743 | ||
3744 | else | |
3745 | ||
3746 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3747 | if test "x$LINE" != x ; then | |
3748 | eval "DEFAULT_$LINE" | |
3749 | else | |
3750 | no_cache=1 | |
3751 | fi | |
3752 | ||
3753 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3754 | ||
3755 | fi; | |
3756 | ||
3757 | eval "$ac_cv_use_stl" | |
3758 | if test "$no_cache" != 1; then | |
3759 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3760 | fi | |
3761 | ||
3762 | if test "$wxUSE_STL" = yes; then | |
3763 | echo "$as_me:$LINENO: result: yes" >&5 | |
3764 | echo "${ECHO_T}yes" >&6 | |
3765 | else | |
3766 | echo "$as_me:$LINENO: result: no" >&5 | |
3767 | echo "${ECHO_T}no" >&6 | |
3768 | fi | |
3769 | ||
3770 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3771 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3772 | |
3773 | enablestring= | |
3774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3775 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3776 | no_cache=0 | |
3777 | # Check whether --enable-omf or --disable-omf was given. | |
3778 | if test "${enable_omf+set}" = set; then | |
3779 | enableval="$enable_omf" | |
3780 | ||
3781 | if test "$enableval" = yes; then | |
3782 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3783 | else | |
3784 | ac_cv_use_omf='wxUSE_OMF=no' | |
3785 | fi | |
3786 | ||
3787 | else | |
3788 | ||
3789 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3790 | if test "x$LINE" != x ; then | |
3791 | eval "DEFAULT_$LINE" | |
3792 | else | |
3793 | no_cache=1 | |
3794 | fi | |
3795 | ||
3796 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3797 | ||
3798 | fi; | |
3799 | ||
3800 | eval "$ac_cv_use_omf" | |
3801 | if test "$no_cache" != 1; then | |
3802 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3803 | fi | |
3804 | ||
3805 | if test "$wxUSE_OMF" = yes; then | |
3806 | echo "$as_me:$LINENO: result: yes" >&5 | |
3807 | echo "${ECHO_T}yes" >&6 | |
3808 | else | |
3809 | echo "$as_me:$LINENO: result: no" >&5 | |
3810 | echo "${ECHO_T}no" >&6 | |
3811 | fi | |
3812 | ||
3813 | fi | |
3814 | ||
3815 | if test "$wxUSE_DEBUG" = "yes"; then | |
3816 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3817 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3818 | BUILD=debug | |
3819 | elif test "$wxUSE_DEBUG" = "no"; then | |
3820 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3821 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3822 | BUILD=release | |
3823 | fi | |
3824 | ||
3825 | ||
3826 | enablestring= | |
3827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3828 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3829 | no_cache=0 | |
3830 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3831 | if test "${enable_debug_flag+set}" = set; then | |
3832 | enableval="$enable_debug_flag" | |
3833 | ||
3834 | if test "$enableval" = yes; then | |
3835 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3836 | else | |
3837 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3838 | fi | |
3839 | ||
3840 | else | |
3841 | ||
3842 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3843 | if test "x$LINE" != x ; then | |
3844 | eval "DEFAULT_$LINE" | |
3845 | else | |
3846 | no_cache=1 | |
3847 | fi | |
3848 | ||
3849 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3850 | ||
3851 | fi; | |
3852 | ||
3853 | eval "$ac_cv_use_debug_flag" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3859 | echo "$as_me:$LINENO: result: yes" >&5 | |
3860 | echo "${ECHO_T}yes" >&6 | |
3861 | else | |
3862 | echo "$as_me:$LINENO: result: no" >&5 | |
3863 | echo "${ECHO_T}no" >&6 | |
3864 | fi | |
3865 | ||
3866 | ||
3867 | enablestring= | |
3868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3869 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3870 | no_cache=0 | |
3871 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3872 | if test "${enable_debug_info+set}" = set; then | |
3873 | enableval="$enable_debug_info" | |
3874 | ||
3875 | if test "$enableval" = yes; then | |
3876 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3877 | else | |
3878 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3879 | fi | |
3880 | ||
3881 | else | |
3882 | ||
3883 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3891 | ||
3892 | fi; | |
3893 | ||
3894 | eval "$ac_cv_use_debug_info" | |
3895 | if test "$no_cache" != 1; then | |
3896 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3897 | fi | |
3898 | ||
3899 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3900 | echo "$as_me:$LINENO: result: yes" >&5 | |
3901 | echo "${ECHO_T}yes" >&6 | |
3902 | else | |
3903 | echo "$as_me:$LINENO: result: no" >&5 | |
3904 | echo "${ECHO_T}no" >&6 | |
3905 | fi | |
3906 | ||
3907 | ||
3908 | enablestring= | |
3909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3910 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3911 | no_cache=0 | |
3912 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3913 | if test "${enable_debug_gdb+set}" = set; then | |
3914 | enableval="$enable_debug_gdb" | |
3915 | ||
3916 | if test "$enableval" = yes; then | |
3917 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3918 | else | |
3919 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3920 | fi | |
3921 | ||
3922 | else | |
3923 | ||
3924 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3925 | if test "x$LINE" != x ; then | |
3926 | eval "DEFAULT_$LINE" | |
3927 | else | |
3928 | no_cache=1 | |
3929 | fi | |
3930 | ||
3931 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3932 | ||
3933 | fi; | |
3934 | ||
3935 | eval "$ac_cv_use_debug_gdb" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3941 | echo "$as_me:$LINENO: result: yes" >&5 | |
3942 | echo "${ECHO_T}yes" >&6 | |
3943 | else | |
3944 | echo "$as_me:$LINENO: result: no" >&5 | |
3945 | echo "${ECHO_T}no" >&6 | |
3946 | fi | |
3947 | ||
3948 | ||
3949 | enablestring= | |
3950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3951 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3952 | no_cache=0 | |
3953 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3954 | if test "${enable_debug_cntxt+set}" = set; then | |
3955 | enableval="$enable_debug_cntxt" | |
3956 | ||
3957 | if test "$enableval" = yes; then | |
3958 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3959 | else | |
3960 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3961 | fi | |
3962 | ||
3963 | else | |
3964 | ||
3965 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3966 | if test "x$LINE" != x ; then | |
3967 | eval "DEFAULT_$LINE" | |
3968 | else | |
3969 | no_cache=1 | |
3970 | fi | |
3971 | ||
3972 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3973 | ||
3974 | fi; | |
3975 | ||
3976 | eval "$ac_cv_use_debug_cntxt" | |
3977 | if test "$no_cache" != 1; then | |
3978 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3979 | fi | |
3980 | ||
3981 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3982 | echo "$as_me:$LINENO: result: yes" >&5 | |
3983 | echo "${ECHO_T}yes" >&6 | |
3984 | else | |
3985 | echo "$as_me:$LINENO: result: no" >&5 | |
3986 | echo "${ECHO_T}no" >&6 | |
3987 | fi | |
3988 | ||
3989 | ||
3990 | enablestring= | |
3991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3992 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3993 | no_cache=0 | |
3994 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3995 | if test "${enable_mem_tracing+set}" = set; then | |
3996 | enableval="$enable_mem_tracing" | |
3997 | ||
3998 | if test "$enableval" = yes; then | |
3999 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
4000 | else | |
4001 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
4002 | fi | |
4003 | ||
4004 | else | |
4005 | ||
4006 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
4007 | if test "x$LINE" != x ; then | |
4008 | eval "DEFAULT_$LINE" | |
4009 | else | |
4010 | no_cache=1 | |
4011 | fi | |
4012 | ||
4013 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
4014 | ||
4015 | fi; | |
4016 | ||
4017 | eval "$ac_cv_use_mem_tracing" | |
4018 | if test "$no_cache" != 1; then | |
4019 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
4020 | fi | |
4021 | ||
4022 | if test "$wxUSE_MEM_TRACING" = yes; then | |
4023 | echo "$as_me:$LINENO: result: yes" >&5 | |
4024 | echo "${ECHO_T}yes" >&6 | |
4025 | else | |
4026 | echo "$as_me:$LINENO: result: no" >&5 | |
4027 | echo "${ECHO_T}no" >&6 | |
4028 | fi | |
4029 | ||
4030 | ||
4031 | enablestring= | |
4032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
4033 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
4034 | no_cache=0 | |
4035 | # Check whether --enable-profile or --disable-profile was given. | |
4036 | if test "${enable_profile+set}" = set; then | |
4037 | enableval="$enable_profile" | |
4038 | ||
4039 | if test "$enableval" = yes; then | |
4040 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
4041 | else | |
4042 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
4043 | fi | |
4044 | ||
4045 | else | |
4046 | ||
4047 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
4048 | if test "x$LINE" != x ; then | |
4049 | eval "DEFAULT_$LINE" | |
4050 | else | |
4051 | no_cache=1 | |
4052 | fi | |
4053 | ||
4054 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
4055 | ||
4056 | fi; | |
4057 | ||
4058 | eval "$ac_cv_use_profile" | |
4059 | if test "$no_cache" != 1; then | |
4060 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4061 | fi | |
4062 | ||
4063 | if test "$wxUSE_PROFILE" = yes; then | |
4064 | echo "$as_me:$LINENO: result: yes" >&5 | |
4065 | echo "${ECHO_T}yes" >&6 | |
4066 | else | |
4067 | echo "$as_me:$LINENO: result: no" >&5 | |
4068 | echo "${ECHO_T}no" >&6 | |
4069 | fi | |
4070 | ||
4071 | ||
4072 | enablestring= | |
4073 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4074 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4075 | no_cache=0 | |
4076 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4077 | if test "${enable_no_rtti+set}" = set; then | |
4078 | enableval="$enable_no_rtti" | |
4079 | ||
4080 | if test "$enableval" = yes; then | |
4081 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4082 | else | |
4083 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4084 | fi | |
4085 | ||
4086 | else | |
4087 | ||
4088 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4089 | if test "x$LINE" != x ; then | |
4090 | eval "DEFAULT_$LINE" | |
4091 | else | |
4092 | no_cache=1 | |
4093 | fi | |
4094 | ||
4095 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4096 | ||
4097 | fi; | |
4098 | ||
4099 | eval "$ac_cv_use_no_rtti" | |
4100 | if test "$no_cache" != 1; then | |
4101 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4102 | fi | |
4103 | ||
4104 | if test "$wxUSE_NO_RTTI" = yes; then | |
4105 | echo "$as_me:$LINENO: result: yes" >&5 | |
4106 | echo "${ECHO_T}yes" >&6 | |
4107 | else | |
4108 | echo "$as_me:$LINENO: result: no" >&5 | |
4109 | echo "${ECHO_T}no" >&6 | |
4110 | fi | |
4111 | ||
4112 | ||
4113 | enablestring= | |
4114 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4115 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4116 | no_cache=0 | |
4117 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4118 | if test "${enable_no_exceptions+set}" = set; then | |
4119 | enableval="$enable_no_exceptions" | |
4120 | ||
4121 | if test "$enableval" = yes; then | |
4122 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4123 | else | |
4124 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4125 | fi | |
4126 | ||
4127 | else | |
4128 | ||
4129 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4130 | if test "x$LINE" != x ; then | |
4131 | eval "DEFAULT_$LINE" | |
4132 | else | |
4133 | no_cache=1 | |
4134 | fi | |
4135 | ||
4136 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4137 | ||
4138 | fi; | |
4139 | ||
4140 | eval "$ac_cv_use_no_exceptions" | |
4141 | if test "$no_cache" != 1; then | |
4142 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4143 | fi | |
4144 | ||
4145 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4146 | echo "$as_me:$LINENO: result: yes" >&5 | |
4147 | echo "${ECHO_T}yes" >&6 | |
4148 | else | |
4149 | echo "$as_me:$LINENO: result: no" >&5 | |
4150 | echo "${ECHO_T}no" >&6 | |
4151 | fi | |
4152 | ||
4153 | ||
4154 | enablestring= | |
4155 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4156 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4157 | no_cache=0 | |
4158 | # Check whether --enable-permissive or --disable-permissive was given. | |
4159 | if test "${enable_permissive+set}" = set; then | |
4160 | enableval="$enable_permissive" | |
4161 | ||
4162 | if test "$enableval" = yes; then | |
4163 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4164 | else | |
4165 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4166 | fi | |
4167 | ||
4168 | else | |
4169 | ||
4170 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4171 | if test "x$LINE" != x ; then | |
4172 | eval "DEFAULT_$LINE" | |
4173 | else | |
4174 | no_cache=1 | |
4175 | fi | |
4176 | ||
4177 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4178 | ||
4179 | fi; | |
4180 | ||
4181 | eval "$ac_cv_use_permissive" | |
4182 | if test "$no_cache" != 1; then | |
4183 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4184 | fi | |
4185 | ||
4186 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4187 | echo "$as_me:$LINENO: result: yes" >&5 | |
4188 | echo "${ECHO_T}yes" >&6 | |
4189 | else | |
4190 | echo "$as_me:$LINENO: result: no" >&5 | |
4191 | echo "${ECHO_T}no" >&6 | |
4192 | fi | |
4193 | ||
4194 | ||
4195 | enablestring= | |
4196 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4197 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4198 | no_cache=0 | |
4199 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4200 | if test "${enable_no_deps+set}" = set; then | |
4201 | enableval="$enable_no_deps" | |
4202 | ||
4203 | if test "$enableval" = yes; then | |
4204 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4205 | else | |
4206 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4207 | fi | |
4208 | ||
4209 | else | |
4210 | ||
4211 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4212 | if test "x$LINE" != x ; then | |
4213 | eval "DEFAULT_$LINE" | |
4214 | else | |
4215 | no_cache=1 | |
4216 | fi | |
4217 | ||
4218 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4219 | ||
4220 | fi; | |
4221 | ||
4222 | eval "$ac_cv_use_no_deps" | |
4223 | if test "$no_cache" != 1; then | |
4224 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4225 | fi | |
4226 | ||
4227 | if test "$wxUSE_NO_DEPS" = yes; then | |
4228 | echo "$as_me:$LINENO: result: yes" >&5 | |
4229 | echo "${ECHO_T}yes" >&6 | |
4230 | else | |
4231 | echo "$as_me:$LINENO: result: no" >&5 | |
4232 | echo "${ECHO_T}no" >&6 | |
4233 | fi | |
4234 | ||
4235 | ||
7afc46ab KO |
4236 | enablestring= |
4237 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5 | |
4238 | echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6 | |
4239 | no_cache=0 | |
4240 | # Check whether --enable-universal_binary or --disable-universal_binary was given. | |
4241 | if test "${enable_universal_binary+set}" = set; then | |
4242 | enableval="$enable_universal_binary" | |
4243 | ||
4244 | if test "$enableval" = yes; then | |
4245 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes' | |
4246 | else | |
4247 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no' | |
4248 | fi | |
4249 | ||
4250 | else | |
4251 | ||
4252 | LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}` | |
4253 | if test "x$LINE" != x ; then | |
4254 | eval "DEFAULT_$LINE" | |
4255 | else | |
4256 | no_cache=1 | |
4257 | fi | |
4258 | ||
4259 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY | |
4260 | ||
4261 | fi; | |
4262 | ||
4263 | eval "$ac_cv_use_universal_binary" | |
4264 | if test "$no_cache" != 1; then | |
4265 | echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp | |
4266 | fi | |
4267 | ||
4268 | if test "$wxUSE_UNIVERSAL_BINARY" = yes; then | |
4269 | echo "$as_me:$LINENO: result: yes" >&5 | |
4270 | echo "${ECHO_T}yes" >&6 | |
4271 | else | |
4272 | echo "$as_me:$LINENO: result: no" >&5 | |
4273 | echo "${ECHO_T}no" >&6 | |
4274 | fi | |
4275 | ||
4276 | ||
a848cd7e | 4277 | |
dee1a63f MB |
4278 | enablestring=enable |
4279 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4280 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4281 | no_cache=0 |
dee1a63f MB |
4282 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4283 | if test "${enable_compat24+set}" = set; then | |
4284 | enableval="$enable_compat24" | |
a848cd7e SC |
4285 | |
4286 | if test "$enableval" = yes; then | |
dee1a63f | 4287 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4288 | else |
dee1a63f | 4289 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4290 | fi |
4291 | ||
4292 | else | |
4293 | ||
dee1a63f | 4294 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4295 | if test "x$LINE" != x ; then |
4296 | eval "DEFAULT_$LINE" | |
4297 | else | |
4298 | no_cache=1 | |
4299 | fi | |
4300 | ||
dee1a63f | 4301 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4302 | |
4303 | fi; | |
4304 | ||
dee1a63f | 4305 | eval "$ac_cv_use_compat24" |
a848cd7e | 4306 | if test "$no_cache" != 1; then |
dee1a63f | 4307 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4308 | fi |
4309 | ||
dee1a63f | 4310 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4311 | echo "$as_me:$LINENO: result: yes" >&5 |
4312 | echo "${ECHO_T}yes" >&6 | |
4313 | else | |
4314 | echo "$as_me:$LINENO: result: no" >&5 | |
4315 | echo "${ECHO_T}no" >&6 | |
4316 | fi | |
4317 | ||
4318 | ||
4319 | enablestring=disable | |
dee1a63f MB |
4320 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4321 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4322 | no_cache=0 |
dee1a63f MB |
4323 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4324 | if test "${enable_compat26+set}" = set; then | |
4325 | enableval="$enable_compat26" | |
a848cd7e SC |
4326 | |
4327 | if test "$enableval" = yes; then | |
dee1a63f | 4328 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4329 | else |
dee1a63f | 4330 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4331 | fi |
4332 | ||
4333 | else | |
4334 | ||
dee1a63f | 4335 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4336 | if test "x$LINE" != x ; then |
4337 | eval "DEFAULT_$LINE" | |
4338 | else | |
4339 | no_cache=1 | |
4340 | fi | |
4341 | ||
dee1a63f | 4342 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4343 | |
4344 | fi; | |
4345 | ||
dee1a63f | 4346 | eval "$ac_cv_use_compat26" |
a848cd7e | 4347 | if test "$no_cache" != 1; then |
dee1a63f | 4348 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4349 | fi |
4350 | ||
dee1a63f | 4351 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4352 | echo "$as_me:$LINENO: result: yes" >&5 |
4353 | echo "${ECHO_T}yes" >&6 | |
4354 | else | |
4355 | echo "$as_me:$LINENO: result: no" >&5 | |
4356 | echo "${ECHO_T}no" >&6 | |
4357 | fi | |
4358 | ||
4359 | ||
ffa0583f RL |
4360 | |
4361 | enablestring= | |
4362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4363 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4364 | no_cache=0 | |
4365 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4366 | if test "${enable_rpath+set}" = set; then |
4367 | enableval="$enable_rpath" | |
ffa0583f RL |
4368 | |
4369 | if test "$enableval" = yes; then | |
4370 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4371 | else | |
4372 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4373 | fi | |
4374 | ||
4375 | else | |
4376 | ||
4377 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4378 | if test "x$LINE" != x ; then | |
4379 | eval "DEFAULT_$LINE" | |
4380 | else | |
4381 | no_cache=1 | |
4382 | fi | |
4383 | ||
4384 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4385 | ||
a848cd7e SC |
4386 | fi; |
4387 | ||
ffa0583f RL |
4388 | eval "$ac_cv_use_rpath" |
4389 | if test "$no_cache" != 1; then | |
4390 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4391 | fi | |
4392 | ||
4393 | if test "$wxUSE_RPATH" = yes; then | |
4394 | echo "$as_me:$LINENO: result: yes" >&5 | |
4395 | echo "${ECHO_T}yes" >&6 | |
4396 | else | |
4397 | echo "$as_me:$LINENO: result: no" >&5 | |
4398 | echo "${ECHO_T}no" >&6 | |
4399 | fi | |
4400 | ||
a848cd7e SC |
4401 | |
4402 | ||
4403 | ||
4404 | ||
4405 | enablestring= | |
4406 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4407 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4408 | no_cache=0 | |
4409 | # Check whether --enable-intl or --disable-intl was given. | |
4410 | if test "${enable_intl+set}" = set; then | |
4411 | enableval="$enable_intl" | |
4412 | ||
4413 | if test "$enableval" = yes; then | |
4414 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4415 | else | |
4416 | ac_cv_use_intl='wxUSE_INTL=no' | |
4417 | fi | |
4418 | ||
4419 | else | |
4420 | ||
4421 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4422 | if test "x$LINE" != x ; then | |
4423 | eval "DEFAULT_$LINE" | |
4424 | else | |
4425 | no_cache=1 | |
4426 | fi | |
4427 | ||
4428 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4429 | ||
4430 | fi; | |
4431 | ||
4432 | eval "$ac_cv_use_intl" | |
4433 | if test "$no_cache" != 1; then | |
4434 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4435 | fi | |
4436 | ||
4437 | if test "$wxUSE_INTL" = yes; then | |
4438 | echo "$as_me:$LINENO: result: yes" >&5 | |
4439 | echo "${ECHO_T}yes" >&6 | |
4440 | else | |
4441 | echo "$as_me:$LINENO: result: no" >&5 | |
4442 | echo "${ECHO_T}no" >&6 | |
4443 | fi | |
4444 | ||
4445 | ||
4446 | enablestring= | |
4447 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4448 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4449 | no_cache=0 | |
4450 | # Check whether --enable-config or --disable-config was given. | |
4451 | if test "${enable_config+set}" = set; then | |
4452 | enableval="$enable_config" | |
4453 | ||
4454 | if test "$enableval" = yes; then | |
4455 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4456 | else | |
4457 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4458 | fi | |
4459 | ||
4460 | else | |
4461 | ||
4462 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4463 | if test "x$LINE" != x ; then | |
4464 | eval "DEFAULT_$LINE" | |
4465 | else | |
4466 | no_cache=1 | |
4467 | fi | |
4468 | ||
4469 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4470 | ||
4471 | fi; | |
4472 | ||
4473 | eval "$ac_cv_use_config" | |
4474 | if test "$no_cache" != 1; then | |
4475 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4476 | fi | |
4477 | ||
4478 | if test "$wxUSE_CONFIG" = yes; then | |
4479 | echo "$as_me:$LINENO: result: yes" >&5 | |
4480 | echo "${ECHO_T}yes" >&6 | |
4481 | else | |
4482 | echo "$as_me:$LINENO: result: no" >&5 | |
4483 | echo "${ECHO_T}no" >&6 | |
4484 | fi | |
4485 | ||
4486 | ||
4487 | ||
4488 | enablestring= | |
4489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4490 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4491 | no_cache=0 | |
4492 | # Check whether --enable-protocols or --disable-protocols was given. | |
4493 | if test "${enable_protocols+set}" = set; then | |
4494 | enableval="$enable_protocols" | |
4495 | ||
4496 | if test "$enableval" = yes; then | |
4497 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4498 | else | |
4499 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4500 | fi | |
4501 | ||
4502 | else | |
4503 | ||
4504 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4505 | if test "x$LINE" != x ; then | |
4506 | eval "DEFAULT_$LINE" | |
4507 | else | |
4508 | no_cache=1 | |
4509 | fi | |
4510 | ||
4511 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4512 | ||
4513 | fi; | |
4514 | ||
4515 | eval "$ac_cv_use_protocols" | |
4516 | if test "$no_cache" != 1; then | |
4517 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4518 | fi | |
4519 | ||
4520 | if test "$wxUSE_PROTOCOL" = yes; then | |
4521 | echo "$as_me:$LINENO: result: yes" >&5 | |
4522 | echo "${ECHO_T}yes" >&6 | |
4523 | else | |
4524 | echo "$as_me:$LINENO: result: no" >&5 | |
4525 | echo "${ECHO_T}no" >&6 | |
4526 | fi | |
4527 | ||
4528 | ||
4529 | enablestring= | |
4530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4531 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4532 | no_cache=0 | |
4533 | # Check whether --enable-ftp or --disable-ftp was given. | |
4534 | if test "${enable_ftp+set}" = set; then | |
4535 | enableval="$enable_ftp" | |
4536 | ||
4537 | if test "$enableval" = yes; then | |
4538 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4539 | else | |
4540 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4541 | fi | |
4542 | ||
4543 | else | |
4544 | ||
4545 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4546 | if test "x$LINE" != x ; then | |
4547 | eval "DEFAULT_$LINE" | |
4548 | else | |
4549 | no_cache=1 | |
4550 | fi | |
4551 | ||
4552 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4553 | ||
4554 | fi; | |
4555 | ||
4556 | eval "$ac_cv_use_ftp" | |
4557 | if test "$no_cache" != 1; then | |
4558 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4559 | fi | |
4560 | ||
4561 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4562 | echo "$as_me:$LINENO: result: yes" >&5 | |
4563 | echo "${ECHO_T}yes" >&6 | |
4564 | else | |
4565 | echo "$as_me:$LINENO: result: no" >&5 | |
4566 | echo "${ECHO_T}no" >&6 | |
4567 | fi | |
4568 | ||
4569 | ||
4570 | enablestring= | |
4571 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4572 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4573 | no_cache=0 | |
4574 | # Check whether --enable-http or --disable-http was given. | |
4575 | if test "${enable_http+set}" = set; then | |
4576 | enableval="$enable_http" | |
4577 | ||
4578 | if test "$enableval" = yes; then | |
4579 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4580 | else | |
4581 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4582 | fi | |
4583 | ||
4584 | else | |
4585 | ||
4586 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4587 | if test "x$LINE" != x ; then | |
4588 | eval "DEFAULT_$LINE" | |
4589 | else | |
4590 | no_cache=1 | |
4591 | fi | |
4592 | ||
4593 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4594 | ||
4595 | fi; | |
4596 | ||
4597 | eval "$ac_cv_use_http" | |
4598 | if test "$no_cache" != 1; then | |
4599 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4600 | fi | |
4601 | ||
4602 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4603 | echo "$as_me:$LINENO: result: yes" >&5 | |
4604 | echo "${ECHO_T}yes" >&6 | |
4605 | else | |
4606 | echo "$as_me:$LINENO: result: no" >&5 | |
4607 | echo "${ECHO_T}no" >&6 | |
4608 | fi | |
4609 | ||
4610 | ||
4611 | enablestring= | |
4612 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4613 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4614 | no_cache=0 | |
4615 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4616 | if test "${enable_fileproto+set}" = set; then | |
4617 | enableval="$enable_fileproto" | |
4618 | ||
4619 | if test "$enableval" = yes; then | |
4620 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4621 | else | |
4622 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4623 | fi | |
4624 | ||
4625 | else | |
4626 | ||
4627 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4628 | if test "x$LINE" != x ; then | |
4629 | eval "DEFAULT_$LINE" | |
4630 | else | |
4631 | no_cache=1 | |
4632 | fi | |
4633 | ||
4634 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4635 | ||
4636 | fi; | |
4637 | ||
4638 | eval "$ac_cv_use_fileproto" | |
4639 | if test "$no_cache" != 1; then | |
4640 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4641 | fi | |
4642 | ||
4643 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4644 | echo "$as_me:$LINENO: result: yes" >&5 | |
4645 | echo "${ECHO_T}yes" >&6 | |
4646 | else | |
4647 | echo "$as_me:$LINENO: result: no" >&5 | |
4648 | echo "${ECHO_T}no" >&6 | |
4649 | fi | |
4650 | ||
4651 | ||
4652 | enablestring= | |
4653 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4654 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4655 | no_cache=0 | |
4656 | # Check whether --enable-sockets or --disable-sockets was given. | |
4657 | if test "${enable_sockets+set}" = set; then | |
4658 | enableval="$enable_sockets" | |
4659 | ||
4660 | if test "$enableval" = yes; then | |
4661 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4662 | else | |
4663 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4664 | fi | |
4665 | ||
4666 | else | |
4667 | ||
4668 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4669 | if test "x$LINE" != x ; then | |
4670 | eval "DEFAULT_$LINE" | |
4671 | else | |
4672 | no_cache=1 | |
4673 | fi | |
4674 | ||
4675 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4676 | ||
4677 | fi; | |
4678 | ||
4679 | eval "$ac_cv_use_sockets" | |
4680 | if test "$no_cache" != 1; then | |
4681 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4682 | fi | |
4683 | ||
4684 | if test "$wxUSE_SOCKETS" = yes; then | |
4685 | echo "$as_me:$LINENO: result: yes" >&5 | |
4686 | echo "${ECHO_T}yes" >&6 | |
4687 | else | |
4688 | echo "$as_me:$LINENO: result: no" >&5 | |
4689 | echo "${ECHO_T}no" >&6 | |
4690 | fi | |
4691 | ||
4692 | ||
4693 | enablestring= | |
4694 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4695 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4696 | no_cache=0 | |
4697 | # Check whether --enable-ole or --disable-ole was given. | |
4698 | if test "${enable_ole+set}" = set; then | |
4699 | enableval="$enable_ole" | |
4700 | ||
4701 | if test "$enableval" = yes; then | |
4702 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4703 | else | |
4704 | ac_cv_use_ole='wxUSE_OLE=no' | |
4705 | fi | |
4706 | ||
4707 | else | |
4708 | ||
4709 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4710 | if test "x$LINE" != x ; then | |
4711 | eval "DEFAULT_$LINE" | |
4712 | else | |
4713 | no_cache=1 | |
4714 | fi | |
4715 | ||
4716 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4717 | ||
4718 | fi; | |
4719 | ||
4720 | eval "$ac_cv_use_ole" | |
4721 | if test "$no_cache" != 1; then | |
4722 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4723 | fi | |
4724 | ||
4725 | if test "$wxUSE_OLE" = yes; then | |
4726 | echo "$as_me:$LINENO: result: yes" >&5 | |
4727 | echo "${ECHO_T}yes" >&6 | |
4728 | else | |
4729 | echo "$as_me:$LINENO: result: no" >&5 | |
4730 | echo "${ECHO_T}no" >&6 | |
4731 | fi | |
4732 | ||
4733 | ||
4734 | enablestring= | |
4735 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4736 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4737 | no_cache=0 | |
4738 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4739 | if test "${enable_dataobj+set}" = set; then | |
4740 | enableval="$enable_dataobj" | |
4741 | ||
4742 | if test "$enableval" = yes; then | |
4743 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4744 | else | |
4745 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4746 | fi | |
4747 | ||
4748 | else | |
4749 | ||
4750 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4751 | if test "x$LINE" != x ; then | |
4752 | eval "DEFAULT_$LINE" | |
4753 | else | |
4754 | no_cache=1 | |
4755 | fi | |
4756 | ||
4757 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4758 | ||
4759 | fi; | |
4760 | ||
4761 | eval "$ac_cv_use_dataobj" | |
4762 | if test "$no_cache" != 1; then | |
4763 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4764 | fi | |
4765 | ||
4766 | if test "$wxUSE_DATAOBJ" = yes; then | |
4767 | echo "$as_me:$LINENO: result: yes" >&5 | |
4768 | echo "${ECHO_T}yes" >&6 | |
4769 | else | |
4770 | echo "$as_me:$LINENO: result: no" >&5 | |
4771 | echo "${ECHO_T}no" >&6 | |
4772 | fi | |
4773 | ||
4774 | ||
4775 | ||
4776 | enablestring= | |
4777 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4778 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4779 | no_cache=0 | |
4780 | # Check whether --enable-ipc or --disable-ipc was given. | |
4781 | if test "${enable_ipc+set}" = set; then | |
4782 | enableval="$enable_ipc" | |
4783 | ||
4784 | if test "$enableval" = yes; then | |
4785 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4786 | else | |
4787 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4788 | fi | |
4789 | ||
4790 | else | |
4791 | ||
4792 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4793 | if test "x$LINE" != x ; then | |
4794 | eval "DEFAULT_$LINE" | |
4795 | else | |
4796 | no_cache=1 | |
4797 | fi | |
4798 | ||
4799 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4800 | ||
4801 | fi; | |
4802 | ||
4803 | eval "$ac_cv_use_ipc" | |
4804 | if test "$no_cache" != 1; then | |
4805 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4806 | fi | |
4807 | ||
4808 | if test "$wxUSE_IPC" = yes; then | |
4809 | echo "$as_me:$LINENO: result: yes" >&5 | |
4810 | echo "${ECHO_T}yes" >&6 | |
4811 | else | |
4812 | echo "$as_me:$LINENO: result: no" >&5 | |
4813 | echo "${ECHO_T}no" >&6 | |
4814 | fi | |
4815 | ||
4816 | ||
4817 | ||
4818 | enablestring= | |
4819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4820 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4821 | no_cache=0 | |
4822 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4823 | if test "${enable_apple_ieee+set}" = set; then | |
4824 | enableval="$enable_apple_ieee" | |
4825 | ||
4826 | if test "$enableval" = yes; then | |
4827 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4828 | else | |
4829 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4830 | fi | |
4831 | ||
4832 | else | |
4833 | ||
4834 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4842 | ||
4843 | fi; | |
4844 | ||
4845 | eval "$ac_cv_use_apple_ieee" | |
4846 | if test "$no_cache" != 1; then | |
4847 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4848 | fi | |
4849 | ||
4850 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4851 | echo "$as_me:$LINENO: result: yes" >&5 | |
4852 | echo "${ECHO_T}yes" >&6 | |
4853 | else | |
4854 | echo "$as_me:$LINENO: result: no" >&5 | |
4855 | echo "${ECHO_T}no" >&6 | |
4856 | fi | |
4857 | ||
4858 | ||
81f90336 MW |
4859 | enablestring= |
4860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4861 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4862 | no_cache=0 | |
4863 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4864 | if test "${enable_arcstream+set}" = set; then | |
4865 | enableval="$enable_arcstream" | |
4866 | ||
4867 | if test "$enableval" = yes; then | |
9e8e867f | 4868 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4869 | else |
9e8e867f | 4870 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4871 | fi |
4872 | ||
4873 | else | |
4874 | ||
9e8e867f | 4875 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4876 | if test "x$LINE" != x ; then |
4877 | eval "DEFAULT_$LINE" | |
4878 | else | |
4879 | no_cache=1 | |
4880 | fi | |
4881 | ||
9e8e867f | 4882 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4883 | |
4884 | fi; | |
4885 | ||
4886 | eval "$ac_cv_use_arcstream" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
9e8e867f | 4891 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4892 | echo "$as_me:$LINENO: result: yes" >&5 |
4893 | echo "${ECHO_T}yes" >&6 | |
4894 | else | |
4895 | echo "$as_me:$LINENO: result: no" >&5 | |
4896 | echo "${ECHO_T}no" >&6 | |
4897 | fi | |
4898 | ||
4899 | ||
a848cd7e | 4900 | enablestring= |
36b6448c VZ |
4901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4902 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4903 | no_cache=0 |
36b6448c VZ |
4904 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4905 | if test "${enable_backtrace+set}" = set; then | |
4906 | enableval="$enable_backtrace" | |
a848cd7e SC |
4907 | |
4908 | if test "$enableval" = yes; then | |
36b6448c | 4909 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4910 | else |
36b6448c | 4911 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4912 | fi |
4913 | ||
4914 | else | |
4915 | ||
36b6448c | 4916 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4917 | if test "x$LINE" != x ; then |
4918 | eval "DEFAULT_$LINE" | |
4919 | else | |
4920 | no_cache=1 | |
4921 | fi | |
4922 | ||
36b6448c | 4923 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4924 | |
4925 | fi; | |
4926 | ||
36b6448c | 4927 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4928 | if test "$no_cache" != 1; then |
36b6448c | 4929 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4930 | fi |
4931 | ||
36b6448c | 4932 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4933 | echo "$as_me:$LINENO: result: yes" >&5 |
4934 | echo "${ECHO_T}yes" >&6 | |
4935 | else | |
4936 | echo "$as_me:$LINENO: result: no" >&5 | |
4937 | echo "${ECHO_T}no" >&6 | |
4938 | fi | |
4939 | ||
4940 | ||
eaff0f0d | 4941 | enablestring= |
36b6448c VZ |
4942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4943 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4944 | no_cache=0 |
36b6448c VZ |
4945 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4946 | if test "${enable_catch_segvs+set}" = set; then | |
4947 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4948 | |
4949 | if test "$enableval" = yes; then | |
36b6448c | 4950 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4951 | else |
36b6448c | 4952 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4953 | fi |
4954 | ||
4955 | else | |
4956 | ||
36b6448c | 4957 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4958 | if test "x$LINE" != x ; then |
4959 | eval "DEFAULT_$LINE" | |
4960 | else | |
4961 | no_cache=1 | |
4962 | fi | |
4963 | ||
36b6448c | 4964 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4965 | |
4966 | fi; | |
4967 | ||
36b6448c | 4968 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4969 | if test "$no_cache" != 1; then |
36b6448c | 4970 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4971 | fi |
4972 | ||
36b6448c | 4973 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4974 | echo "$as_me:$LINENO: result: yes" >&5 |
4975 | echo "${ECHO_T}yes" >&6 | |
4976 | else | |
4977 | echo "$as_me:$LINENO: result: no" >&5 | |
4978 | echo "${ECHO_T}no" >&6 | |
4979 | fi | |
4980 | ||
4981 | ||
a848cd7e SC |
4982 | enablestring= |
4983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4984 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4985 | no_cache=0 | |
4986 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4987 | if test "${enable_cmdline+set}" = set; then | |
4988 | enableval="$enable_cmdline" | |
4989 | ||
4990 | if test "$enableval" = yes; then | |
4991 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4992 | else | |
4993 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4994 | fi | |
4995 | ||
4996 | else | |
4997 | ||
4998 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4999 | if test "x$LINE" != x ; then | |
5000 | eval "DEFAULT_$LINE" | |
5001 | else | |
5002 | no_cache=1 | |
5003 | fi | |
5004 | ||
5005 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
5006 | ||
5007 | fi; | |
5008 | ||
5009 | eval "$ac_cv_use_cmdline" | |
5010 | if test "$no_cache" != 1; then | |
5011 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
5012 | fi | |
5013 | ||
5014 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
5015 | echo "$as_me:$LINENO: result: yes" >&5 | |
5016 | echo "${ECHO_T}yes" >&6 | |
5017 | else | |
5018 | echo "$as_me:$LINENO: result: no" >&5 | |
5019 | echo "${ECHO_T}no" >&6 | |
5020 | fi | |
5021 | ||
5022 | ||
5023 | enablestring= | |
5024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
5025 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
5026 | no_cache=0 | |
5027 | # Check whether --enable-datetime or --disable-datetime was given. | |
5028 | if test "${enable_datetime+set}" = set; then | |
5029 | enableval="$enable_datetime" | |
5030 | ||
5031 | if test "$enableval" = yes; then | |
5032 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
5033 | else | |
5034 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
5035 | fi | |
5036 | ||
5037 | else | |
5038 | ||
5039 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
5040 | if test "x$LINE" != x ; then | |
5041 | eval "DEFAULT_$LINE" | |
5042 | else | |
5043 | no_cache=1 | |
5044 | fi | |
5045 | ||
5046 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
5047 | ||
5048 | fi; | |
5049 | ||
5050 | eval "$ac_cv_use_datetime" | |
5051 | if test "$no_cache" != 1; then | |
5052 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
5053 | fi | |
5054 | ||
5055 | if test "$wxUSE_DATETIME" = yes; then | |
5056 | echo "$as_me:$LINENO: result: yes" >&5 | |
5057 | echo "${ECHO_T}yes" >&6 | |
5058 | else | |
5059 | echo "$as_me:$LINENO: result: no" >&5 | |
5060 | echo "${ECHO_T}no" >&6 | |
5061 | fi | |
5062 | ||
5063 | ||
36b6448c VZ |
5064 | enablestring= |
5065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
5066 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
5067 | no_cache=0 | |
5068 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
5069 | if test "${enable_debugreport+set}" = set; then | |
5070 | enableval="$enable_debugreport" | |
5071 | ||
5072 | if test "$enableval" = yes; then | |
5073 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
5074 | else | |
5075 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
5076 | fi | |
5077 | ||
5078 | else | |
5079 | ||
5080 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
5081 | if test "x$LINE" != x ; then | |
5082 | eval "DEFAULT_$LINE" | |
5083 | else | |
5084 | no_cache=1 | |
5085 | fi | |
5086 | ||
5087 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
5088 | ||
5089 | fi; | |
5090 | ||
5091 | eval "$ac_cv_use_debugreport" | |
5092 | if test "$no_cache" != 1; then | |
5093 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
5094 | fi | |
5095 | ||
5096 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
5097 | echo "$as_me:$LINENO: result: yes" >&5 | |
5098 | echo "${ECHO_T}yes" >&6 | |
5099 | else | |
5100 | echo "$as_me:$LINENO: result: no" >&5 | |
5101 | echo "${ECHO_T}no" >&6 | |
5102 | fi | |
5103 | ||
5104 | ||
a848cd7e SC |
5105 | enablestring= |
5106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5107 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5108 | no_cache=0 | |
5109 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5110 | if test "${enable_dialupman+set}" = set; then | |
5111 | enableval="$enable_dialupman" | |
5112 | ||
5113 | if test "$enableval" = yes; then | |
5114 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5115 | else | |
5116 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5117 | fi | |
5118 | ||
5119 | else | |
5120 | ||
5121 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5122 | if test "x$LINE" != x ; then | |
5123 | eval "DEFAULT_$LINE" | |
5124 | else | |
5125 | no_cache=1 | |
5126 | fi | |
5127 | ||
5128 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5129 | ||
5130 | fi; | |
5131 | ||
5132 | eval "$ac_cv_use_dialupman" | |
5133 | if test "$no_cache" != 1; then | |
5134 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5135 | fi | |
5136 | ||
5137 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5138 | echo "$as_me:$LINENO: result: yes" >&5 | |
5139 | echo "${ECHO_T}yes" >&6 | |
5140 | else | |
5141 | echo "$as_me:$LINENO: result: no" >&5 | |
5142 | echo "${ECHO_T}no" >&6 | |
5143 | fi | |
5144 | ||
5145 | ||
5146 | enablestring= | |
5147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5148 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5149 | no_cache=0 | |
5150 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5151 | if test "${enable_dynlib+set}" = set; then | |
5152 | enableval="$enable_dynlib" | |
5153 | ||
5154 | if test "$enableval" = yes; then | |
5155 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5156 | else | |
5157 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5158 | fi | |
5159 | ||
5160 | else | |
5161 | ||
5162 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5163 | if test "x$LINE" != x ; then | |
5164 | eval "DEFAULT_$LINE" | |
5165 | else | |
5166 | no_cache=1 | |
5167 | fi | |
5168 | ||
5169 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5170 | ||
5171 | fi; | |
5172 | ||
5173 | eval "$ac_cv_use_dynlib" | |
5174 | if test "$no_cache" != 1; then | |
5175 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5176 | fi | |
5177 | ||
5178 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5179 | echo "$as_me:$LINENO: result: yes" >&5 | |
5180 | echo "${ECHO_T}yes" >&6 | |
5181 | else | |
5182 | echo "$as_me:$LINENO: result: no" >&5 | |
5183 | echo "${ECHO_T}no" >&6 | |
5184 | fi | |
5185 | ||
5186 | ||
5187 | enablestring= | |
5188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5189 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5190 | no_cache=0 | |
5191 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5192 | if test "${enable_dynamicloader+set}" = set; then | |
5193 | enableval="$enable_dynamicloader" | |
5194 | ||
5195 | if test "$enableval" = yes; then | |
5196 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5197 | else | |
5198 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5199 | fi | |
5200 | ||
5201 | else | |
5202 | ||
5203 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5204 | if test "x$LINE" != x ; then | |
5205 | eval "DEFAULT_$LINE" | |
5206 | else | |
5207 | no_cache=1 | |
5208 | fi | |
5209 | ||
5210 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5211 | ||
5212 | fi; | |
5213 | ||
5214 | eval "$ac_cv_use_dynamicloader" | |
5215 | if test "$no_cache" != 1; then | |
5216 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5217 | fi | |
5218 | ||
5219 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5220 | echo "$as_me:$LINENO: result: yes" >&5 | |
5221 | echo "${ECHO_T}yes" >&6 | |
5222 | else | |
5223 | echo "$as_me:$LINENO: result: no" >&5 | |
5224 | echo "${ECHO_T}no" >&6 | |
5225 | fi | |
5226 | ||
5227 | ||
5228 | enablestring= | |
5229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5230 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5231 | no_cache=0 | |
5232 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5233 | if test "${enable_exceptions+set}" = set; then | |
5234 | enableval="$enable_exceptions" | |
5235 | ||
5236 | if test "$enableval" = yes; then | |
5237 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5238 | else | |
5239 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5240 | fi | |
5241 | ||
5242 | else | |
5243 | ||
5244 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5245 | if test "x$LINE" != x ; then | |
5246 | eval "DEFAULT_$LINE" | |
5247 | else | |
5248 | no_cache=1 | |
5249 | fi | |
5250 | ||
5251 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5252 | ||
5253 | fi; | |
5254 | ||
5255 | eval "$ac_cv_use_exceptions" | |
5256 | if test "$no_cache" != 1; then | |
5257 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5258 | fi | |
5259 | ||
5260 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5261 | echo "$as_me:$LINENO: result: yes" >&5 | |
5262 | echo "${ECHO_T}yes" >&6 | |
5263 | else | |
5264 | echo "$as_me:$LINENO: result: no" >&5 | |
5265 | echo "${ECHO_T}no" >&6 | |
5266 | fi | |
5267 | ||
5268 | ||
5269 | enablestring= | |
5270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5271 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5272 | no_cache=0 | |
5273 | # Check whether --enable-ffile or --disable-ffile was given. | |
5274 | if test "${enable_ffile+set}" = set; then | |
5275 | enableval="$enable_ffile" | |
5276 | ||
5277 | if test "$enableval" = yes; then | |
5278 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5279 | else | |
5280 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5281 | fi | |
5282 | ||
5283 | else | |
5284 | ||
5285 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5286 | if test "x$LINE" != x ; then | |
5287 | eval "DEFAULT_$LINE" | |
5288 | else | |
5289 | no_cache=1 | |
5290 | fi | |
5291 | ||
5292 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5293 | ||
5294 | fi; | |
5295 | ||
5296 | eval "$ac_cv_use_ffile" | |
5297 | if test "$no_cache" != 1; then | |
5298 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5299 | fi | |
5300 | ||
5301 | if test "$wxUSE_FFILE" = yes; then | |
5302 | echo "$as_me:$LINENO: result: yes" >&5 | |
5303 | echo "${ECHO_T}yes" >&6 | |
5304 | else | |
5305 | echo "$as_me:$LINENO: result: no" >&5 | |
5306 | echo "${ECHO_T}no" >&6 | |
5307 | fi | |
5308 | ||
5309 | ||
5310 | enablestring= | |
5311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5312 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5313 | no_cache=0 | |
5314 | # Check whether --enable-file or --disable-file was given. | |
5315 | if test "${enable_file+set}" = set; then | |
5316 | enableval="$enable_file" | |
5317 | ||
5318 | if test "$enableval" = yes; then | |
5319 | ac_cv_use_file='wxUSE_FILE=yes' | |
5320 | else | |
5321 | ac_cv_use_file='wxUSE_FILE=no' | |
5322 | fi | |
5323 | ||
5324 | else | |
5325 | ||
5326 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5327 | if test "x$LINE" != x ; then | |
5328 | eval "DEFAULT_$LINE" | |
5329 | else | |
5330 | no_cache=1 | |
5331 | fi | |
5332 | ||
5333 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5334 | ||
5335 | fi; | |
5336 | ||
5337 | eval "$ac_cv_use_file" | |
5338 | if test "$no_cache" != 1; then | |
5339 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5340 | fi | |
5341 | ||
5342 | if test "$wxUSE_FILE" = yes; then | |
5343 | echo "$as_me:$LINENO: result: yes" >&5 | |
5344 | echo "${ECHO_T}yes" >&6 | |
5345 | else | |
5346 | echo "$as_me:$LINENO: result: no" >&5 | |
5347 | echo "${ECHO_T}no" >&6 | |
5348 | fi | |
5349 | ||
5350 | ||
5351 | enablestring= | |
5352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5353 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5354 | no_cache=0 | |
5355 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5356 | if test "${enable_filesystem+set}" = set; then | |
5357 | enableval="$enable_filesystem" | |
5358 | ||
5359 | if test "$enableval" = yes; then | |
5360 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5361 | else | |
5362 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5363 | fi | |
5364 | ||
5365 | else | |
5366 | ||
5367 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5368 | if test "x$LINE" != x ; then | |
5369 | eval "DEFAULT_$LINE" | |
5370 | else | |
5371 | no_cache=1 | |
5372 | fi | |
5373 | ||
5374 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5375 | ||
5376 | fi; | |
5377 | ||
5378 | eval "$ac_cv_use_filesystem" | |
5379 | if test "$no_cache" != 1; then | |
5380 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5381 | fi | |
5382 | ||
5383 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5384 | echo "$as_me:$LINENO: result: yes" >&5 | |
5385 | echo "${ECHO_T}yes" >&6 | |
5386 | else | |
5387 | echo "$as_me:$LINENO: result: no" >&5 | |
5388 | echo "${ECHO_T}no" >&6 | |
5389 | fi | |
5390 | ||
5391 | ||
5392 | enablestring= | |
5393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5394 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5395 | no_cache=0 | |
5396 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5397 | if test "${enable_fontmap+set}" = set; then | |
5398 | enableval="$enable_fontmap" | |
5399 | ||
5400 | if test "$enableval" = yes; then | |
5401 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5402 | else | |
5403 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5404 | fi | |
5405 | ||
5406 | else | |
5407 | ||
5408 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5409 | if test "x$LINE" != x ; then | |
5410 | eval "DEFAULT_$LINE" | |
5411 | else | |
5412 | no_cache=1 | |
5413 | fi | |
5414 | ||
5415 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5416 | ||
5417 | fi; | |
5418 | ||
5419 | eval "$ac_cv_use_fontmap" | |
5420 | if test "$no_cache" != 1; then | |
5421 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5422 | fi | |
5423 | ||
5424 | if test "$wxUSE_FONTMAP" = yes; then | |
5425 | echo "$as_me:$LINENO: result: yes" >&5 | |
5426 | echo "${ECHO_T}yes" >&6 | |
5427 | else | |
5428 | echo "$as_me:$LINENO: result: no" >&5 | |
5429 | echo "${ECHO_T}no" >&6 | |
5430 | fi | |
5431 | ||
5432 | ||
5433 | enablestring= | |
5434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5435 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5436 | no_cache=0 | |
5437 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5438 | if test "${enable_fs_inet+set}" = set; then | |
5439 | enableval="$enable_fs_inet" | |
5440 | ||
5441 | if test "$enableval" = yes; then | |
5442 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5443 | else | |
5444 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5445 | fi | |
5446 | ||
5447 | else | |
5448 | ||
5449 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5450 | if test "x$LINE" != x ; then | |
5451 | eval "DEFAULT_$LINE" | |
5452 | else | |
5453 | no_cache=1 | |
5454 | fi | |
5455 | ||
5456 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5457 | ||
5458 | fi; | |
5459 | ||
5460 | eval "$ac_cv_use_fs_inet" | |
5461 | if test "$no_cache" != 1; then | |
5462 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5463 | fi | |
5464 | ||
5465 | if test "$wxUSE_FS_INET" = yes; then | |
5466 | echo "$as_me:$LINENO: result: yes" >&5 | |
5467 | echo "${ECHO_T}yes" >&6 | |
5468 | else | |
5469 | echo "$as_me:$LINENO: result: no" >&5 | |
5470 | echo "${ECHO_T}no" >&6 | |
5471 | fi | |
5472 | ||
5473 | ||
5474 | enablestring= | |
5475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5476 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5477 | no_cache=0 | |
5478 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5479 | if test "${enable_fs_zip+set}" = set; then | |
5480 | enableval="$enable_fs_zip" | |
5481 | ||
5482 | if test "$enableval" = yes; then | |
5483 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5484 | else | |
5485 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5486 | fi | |
5487 | ||
5488 | else | |
5489 | ||
5490 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5491 | if test "x$LINE" != x ; then | |
5492 | eval "DEFAULT_$LINE" | |
5493 | else | |
5494 | no_cache=1 | |
5495 | fi | |
5496 | ||
5497 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5498 | ||
5499 | fi; | |
5500 | ||
5501 | eval "$ac_cv_use_fs_zip" | |
5502 | if test "$no_cache" != 1; then | |
5503 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5504 | fi | |
5505 | ||
5506 | if test "$wxUSE_FS_ZIP" = yes; then | |
5507 | echo "$as_me:$LINENO: result: yes" >&5 | |
5508 | echo "${ECHO_T}yes" >&6 | |
5509 | else | |
5510 | echo "$as_me:$LINENO: result: no" >&5 | |
5511 | echo "${ECHO_T}no" >&6 | |
5512 | fi | |
5513 | ||
5514 | ||
5515 | enablestring= | |
5516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5517 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5518 | no_cache=0 | |
5519 | # Check whether --enable-geometry or --disable-geometry was given. | |
5520 | if test "${enable_geometry+set}" = set; then | |
5521 | enableval="$enable_geometry" | |
5522 | ||
5523 | if test "$enableval" = yes; then | |
5524 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5525 | else | |
5526 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5527 | fi | |
5528 | ||
5529 | else | |
5530 | ||
5531 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5532 | if test "x$LINE" != x ; then | |
5533 | eval "DEFAULT_$LINE" | |
5534 | else | |
5535 | no_cache=1 | |
5536 | fi | |
5537 | ||
5538 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5539 | ||
5540 | fi; | |
5541 | ||
5542 | eval "$ac_cv_use_geometry" | |
5543 | if test "$no_cache" != 1; then | |
5544 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5545 | fi | |
5546 | ||
5547 | if test "$wxUSE_GEOMETRY" = yes; then | |
5548 | echo "$as_me:$LINENO: result: yes" >&5 | |
5549 | echo "${ECHO_T}yes" >&6 | |
5550 | else | |
5551 | echo "$as_me:$LINENO: result: no" >&5 | |
5552 | echo "${ECHO_T}no" >&6 | |
5553 | fi | |
5554 | ||
5555 | ||
5556 | enablestring= | |
5557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5558 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5559 | no_cache=0 | |
5560 | # Check whether --enable-log or --disable-log was given. | |
5561 | if test "${enable_log+set}" = set; then | |
5562 | enableval="$enable_log" | |
5563 | ||
5564 | if test "$enableval" = yes; then | |
5565 | ac_cv_use_log='wxUSE_LOG=yes' | |
5566 | else | |
5567 | ac_cv_use_log='wxUSE_LOG=no' | |
5568 | fi | |
5569 | ||
5570 | else | |
5571 | ||
5572 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5573 | if test "x$LINE" != x ; then | |
5574 | eval "DEFAULT_$LINE" | |
5575 | else | |
5576 | no_cache=1 | |
5577 | fi | |
5578 | ||
5579 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5580 | ||
5581 | fi; | |
5582 | ||
5583 | eval "$ac_cv_use_log" | |
5584 | if test "$no_cache" != 1; then | |
5585 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5586 | fi | |
5587 | ||
5588 | if test "$wxUSE_LOG" = yes; then | |
5589 | echo "$as_me:$LINENO: result: yes" >&5 | |
5590 | echo "${ECHO_T}yes" >&6 | |
5591 | else | |
5592 | echo "$as_me:$LINENO: result: no" >&5 | |
5593 | echo "${ECHO_T}no" >&6 | |
5594 | fi | |
5595 | ||
5596 | ||
5597 | enablestring= | |
5598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5599 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5600 | no_cache=0 | |
5601 | # Check whether --enable-longlong or --disable-longlong was given. | |
5602 | if test "${enable_longlong+set}" = set; then | |
5603 | enableval="$enable_longlong" | |
5604 | ||
5605 | if test "$enableval" = yes; then | |
5606 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5607 | else | |
5608 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5609 | fi | |
5610 | ||
5611 | else | |
5612 | ||
5613 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5614 | if test "x$LINE" != x ; then | |
5615 | eval "DEFAULT_$LINE" | |
5616 | else | |
5617 | no_cache=1 | |
5618 | fi | |
5619 | ||
5620 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5621 | ||
5622 | fi; | |
5623 | ||
5624 | eval "$ac_cv_use_longlong" | |
5625 | if test "$no_cache" != 1; then | |
5626 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5627 | fi | |
5628 | ||
5629 | if test "$wxUSE_LONGLONG" = yes; then | |
5630 | echo "$as_me:$LINENO: result: yes" >&5 | |
5631 | echo "${ECHO_T}yes" >&6 | |
5632 | else | |
5633 | echo "$as_me:$LINENO: result: no" >&5 | |
5634 | echo "${ECHO_T}no" >&6 | |
5635 | fi | |
5636 | ||
5637 | ||
5638 | enablestring= | |
5639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5640 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5641 | no_cache=0 | |
5642 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5643 | if test "${enable_mimetype+set}" = set; then | |
5644 | enableval="$enable_mimetype" | |
5645 | ||
5646 | if test "$enableval" = yes; then | |
5647 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5648 | else | |
5649 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5650 | fi | |
5651 | ||
5652 | else | |
5653 | ||
5654 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5655 | if test "x$LINE" != x ; then | |
5656 | eval "DEFAULT_$LINE" | |
5657 | else | |
5658 | no_cache=1 | |
5659 | fi | |
5660 | ||
5661 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5662 | ||
5663 | fi; | |
5664 | ||
5665 | eval "$ac_cv_use_mimetype" | |
5666 | if test "$no_cache" != 1; then | |
5667 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5668 | fi | |
5669 | ||
5670 | if test "$wxUSE_MIMETYPE" = yes; then | |
5671 | echo "$as_me:$LINENO: result: yes" >&5 | |
5672 | echo "${ECHO_T}yes" >&6 | |
5673 | else | |
5674 | echo "$as_me:$LINENO: result: no" >&5 | |
5675 | echo "${ECHO_T}no" >&6 | |
5676 | fi | |
5677 | ||
5678 | ||
5679 | enablestring= | |
5680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5681 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5682 | no_cache=0 | |
5683 | # Check whether --enable-mslu or --disable-mslu was given. | |
5684 | if test "${enable_mslu+set}" = set; then | |
5685 | enableval="$enable_mslu" | |
5686 | ||
5687 | if test "$enableval" = yes; then | |
5688 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5689 | else | |
5690 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5691 | fi | |
5692 | ||
5693 | else | |
5694 | ||
5695 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5696 | if test "x$LINE" != x ; then | |
5697 | eval "DEFAULT_$LINE" | |
5698 | else | |
5699 | no_cache=1 | |
5700 | fi | |
5701 | ||
5702 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5703 | ||
5704 | fi; | |
5705 | ||
5706 | eval "$ac_cv_use_mslu" | |
5707 | if test "$no_cache" != 1; then | |
5708 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5709 | fi | |
5710 | ||
5711 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5712 | echo "$as_me:$LINENO: result: yes" >&5 | |
5713 | echo "${ECHO_T}yes" >&6 | |
5714 | else | |
5715 | echo "$as_me:$LINENO: result: no" >&5 | |
5716 | echo "${ECHO_T}no" >&6 | |
5717 | fi | |
5718 | ||
5719 | ||
5720 | enablestring= | |
5721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5722 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5723 | no_cache=0 | |
5724 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5725 | if test "${enable_snglinst+set}" = set; then | |
5726 | enableval="$enable_snglinst" | |
5727 | ||
5728 | if test "$enableval" = yes; then | |
5729 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5730 | else | |
5731 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5732 | fi | |
5733 | ||
5734 | else | |
5735 | ||
5736 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5737 | if test "x$LINE" != x ; then | |
5738 | eval "DEFAULT_$LINE" | |
5739 | else | |
5740 | no_cache=1 | |
5741 | fi | |
5742 | ||
5743 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5744 | ||
5745 | fi; | |
5746 | ||
5747 | eval "$ac_cv_use_snglinst" | |
5748 | if test "$no_cache" != 1; then | |
5749 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5750 | fi | |
5751 | ||
5752 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5753 | echo "$as_me:$LINENO: result: yes" >&5 | |
5754 | echo "${ECHO_T}yes" >&6 | |
5755 | else | |
5756 | echo "$as_me:$LINENO: result: no" >&5 | |
5757 | echo "${ECHO_T}no" >&6 | |
5758 | fi | |
5759 | ||
5760 | ||
5761 | enablestring= | |
07158944 VZ |
5762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5763 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5764 | no_cache=0 |
07158944 VZ |
5765 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5766 | if test "${enable_std_iostreams+set}" = set; then | |
5767 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5768 | |
5769 | if test "$enableval" = yes; then | |
07158944 | 5770 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5771 | else |
07158944 | 5772 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5773 | fi |
5774 | ||
5775 | else | |
5776 | ||
07158944 | 5777 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5778 | if test "x$LINE" != x ; then |
5779 | eval "DEFAULT_$LINE" | |
5780 | else | |
5781 | no_cache=1 | |
5782 | fi | |
5783 | ||
07158944 | 5784 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5785 | |
5786 | fi; | |
5787 | ||
07158944 | 5788 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5789 | if test "$no_cache" != 1; then |
07158944 | 5790 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5791 | fi |
5792 | ||
07158944 | 5793 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5794 | echo "$as_me:$LINENO: result: yes" >&5 |
5795 | echo "${ECHO_T}yes" >&6 | |
5796 | else | |
5797 | echo "$as_me:$LINENO: result: no" >&5 | |
5798 | echo "${ECHO_T}no" >&6 | |
5799 | fi | |
5800 | ||
5801 | ||
59746b65 MW |
5802 | enablestring= |
5803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5804 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5805 | no_cache=0 | |
5806 | # Check whether --enable-std_string or --disable-std_string was given. | |
5807 | if test "${enable_std_string+set}" = set; then | |
5808 | enableval="$enable_std_string" | |
5809 | ||
5810 | if test "$enableval" = yes; then | |
5811 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5812 | else | |
5813 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5814 | fi | |
5815 | ||
5816 | else | |
5817 | ||
5818 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5819 | if test "x$LINE" != x ; then | |
5820 | eval "DEFAULT_$LINE" | |
5821 | else | |
5822 | no_cache=1 | |
5823 | fi | |
5824 | ||
5825 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5826 | ||
5827 | fi; | |
5828 | ||
5829 | eval "$ac_cv_use_std_string" | |
5830 | if test "$no_cache" != 1; then | |
5831 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5832 | fi | |
5833 | ||
5834 | if test "$wxUSE_STD_STRING" = yes; then | |
5835 | echo "$as_me:$LINENO: result: yes" >&5 | |
5836 | echo "${ECHO_T}yes" >&6 | |
5837 | else | |
5838 | echo "$as_me:$LINENO: result: no" >&5 | |
5839 | echo "${ECHO_T}no" >&6 | |
5840 | fi | |
5841 | ||
5842 | ||
a848cd7e | 5843 | enablestring= |
07158944 VZ |
5844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5845 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5846 | no_cache=0 |
07158944 VZ |
5847 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5848 | if test "${enable_stdpaths+set}" = set; then | |
5849 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5850 | |
5851 | if test "$enableval" = yes; then | |
07158944 | 5852 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5853 | else |
07158944 | 5854 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5855 | fi |
5856 | ||
5857 | else | |
5858 | ||
07158944 | 5859 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5860 | if test "x$LINE" != x ; then |
5861 | eval "DEFAULT_$LINE" | |
5862 | else | |
5863 | no_cache=1 | |
5864 | fi | |
5865 | ||
07158944 | 5866 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5867 | |
5868 | fi; | |
5869 | ||
07158944 | 5870 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5871 | if test "$no_cache" != 1; then |
07158944 | 5872 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5873 | fi |
5874 | ||
07158944 | 5875 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5876 | echo "$as_me:$LINENO: result: yes" >&5 |
5877 | echo "${ECHO_T}yes" >&6 | |
5878 | else | |
5879 | echo "$as_me:$LINENO: result: no" >&5 | |
5880 | echo "${ECHO_T}no" >&6 | |
5881 | fi | |
5882 | ||
5883 | ||
5884 | enablestring= | |
5885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5886 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5887 | no_cache=0 | |
5888 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5889 | if test "${enable_stopwatch+set}" = set; then | |
5890 | enableval="$enable_stopwatch" | |
5891 | ||
5892 | if test "$enableval" = yes; then | |
5893 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5894 | else | |
5895 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5896 | fi | |
5897 | ||
5898 | else | |
5899 | ||
5900 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5901 | if test "x$LINE" != x ; then | |
5902 | eval "DEFAULT_$LINE" | |
5903 | else | |
5904 | no_cache=1 | |
5905 | fi | |
5906 | ||
5907 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5908 | ||
5909 | fi; | |
5910 | ||
5911 | eval "$ac_cv_use_stopwatch" | |
5912 | if test "$no_cache" != 1; then | |
5913 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5914 | fi | |
5915 | ||
5916 | if test "$wxUSE_STOPWATCH" = yes; then | |
5917 | echo "$as_me:$LINENO: result: yes" >&5 | |
5918 | echo "${ECHO_T}yes" >&6 | |
5919 | else | |
5920 | echo "$as_me:$LINENO: result: no" >&5 | |
5921 | echo "${ECHO_T}no" >&6 | |
5922 | fi | |
5923 | ||
5924 | ||
07158944 VZ |
5925 | enablestring= |
5926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5927 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5928 | no_cache=0 | |
5929 | # Check whether --enable-streams or --disable-streams was given. | |
5930 | if test "${enable_streams+set}" = set; then | |
5931 | enableval="$enable_streams" | |
5932 | ||
5933 | if test "$enableval" = yes; then | |
5934 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5935 | else | |
5936 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5937 | fi | |
5938 | ||
5939 | else | |
5940 | ||
5941 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5942 | if test "x$LINE" != x ; then | |
5943 | eval "DEFAULT_$LINE" | |
5944 | else | |
5945 | no_cache=1 | |
5946 | fi | |
5947 | ||
5948 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5949 | ||
5950 | fi; | |
5951 | ||
5952 | eval "$ac_cv_use_streams" | |
5953 | if test "$no_cache" != 1; then | |
5954 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5955 | fi | |
5956 | ||
5957 | if test "$wxUSE_STREAMS" = yes; then | |
5958 | echo "$as_me:$LINENO: result: yes" >&5 | |
5959 | echo "${ECHO_T}yes" >&6 | |
5960 | else | |
5961 | echo "$as_me:$LINENO: result: no" >&5 | |
5962 | echo "${ECHO_T}no" >&6 | |
5963 | fi | |
5964 | ||
5965 | ||
a848cd7e SC |
5966 | enablestring= |
5967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5968 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5969 | no_cache=0 | |
5970 | # Check whether --enable-system_options or --disable-system_options was given. | |
5971 | if test "${enable_system_options+set}" = set; then | |
5972 | enableval="$enable_system_options" | |
5973 | ||
5974 | if test "$enableval" = yes; then | |
5975 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5976 | else | |
5977 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5978 | fi | |
5979 | ||
5980 | else | |
5981 | ||
5982 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5983 | if test "x$LINE" != x ; then | |
5984 | eval "DEFAULT_$LINE" | |
5985 | else | |
5986 | no_cache=1 | |
5987 | fi | |
5988 | ||
5989 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5990 | ||
5991 | fi; | |
5992 | ||
5993 | eval "$ac_cv_use_system_options" | |
5994 | if test "$no_cache" != 1; then | |
5995 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5996 | fi | |
5997 | ||
5998 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5999 | echo "$as_me:$LINENO: result: yes" >&5 | |
6000 | echo "${ECHO_T}yes" >&6 | |
6001 | else | |
6002 | echo "$as_me:$LINENO: result: no" >&5 | |
6003 | echo "${ECHO_T}no" >&6 | |
6004 | fi | |
6005 | ||
6006 | ||
6007 | enablestring= | |
6008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
6009 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
6010 | no_cache=0 | |
6011 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
6012 | if test "${enable_textbuf+set}" = set; then | |
6013 | enableval="$enable_textbuf" | |
6014 | ||
6015 | if test "$enableval" = yes; then | |
6016 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
6017 | else | |
6018 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
6019 | fi | |
6020 | ||
6021 | else | |
6022 | ||
6023 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
6024 | if test "x$LINE" != x ; then | |
6025 | eval "DEFAULT_$LINE" | |
6026 | else | |
6027 | no_cache=1 | |
6028 | fi | |
6029 | ||
6030 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
6031 | ||
6032 | fi; | |
6033 | ||
6034 | eval "$ac_cv_use_textbuf" | |
6035 | if test "$no_cache" != 1; then | |
6036 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
6037 | fi | |
6038 | ||
6039 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
6040 | echo "$as_me:$LINENO: result: yes" >&5 | |
6041 | echo "${ECHO_T}yes" >&6 | |
6042 | else | |
6043 | echo "$as_me:$LINENO: result: no" >&5 | |
6044 | echo "${ECHO_T}no" >&6 | |
6045 | fi | |
6046 | ||
6047 | ||
6048 | enablestring= | |
6049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
6050 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
6051 | no_cache=0 | |
6052 | # Check whether --enable-textfile or --disable-textfile was given. | |
6053 | if test "${enable_textfile+set}" = set; then | |
6054 | enableval="$enable_textfile" | |
6055 | ||
6056 | if test "$enableval" = yes; then | |
6057 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
6058 | else | |
6059 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
6060 | fi | |
6061 | ||
6062 | else | |
6063 | ||
6064 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
6065 | if test "x$LINE" != x ; then | |
6066 | eval "DEFAULT_$LINE" | |
6067 | else | |
6068 | no_cache=1 | |
6069 | fi | |
6070 | ||
6071 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
6072 | ||
6073 | fi; | |
6074 | ||
6075 | eval "$ac_cv_use_textfile" | |
6076 | if test "$no_cache" != 1; then | |
6077 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
6078 | fi | |
6079 | ||
6080 | if test "$wxUSE_TEXTFILE" = yes; then | |
6081 | echo "$as_me:$LINENO: result: yes" >&5 | |
6082 | echo "${ECHO_T}yes" >&6 | |
6083 | else | |
6084 | echo "$as_me:$LINENO: result: no" >&5 | |
6085 | echo "${ECHO_T}no" >&6 | |
6086 | fi | |
6087 | ||
6088 | ||
6089 | enablestring= | |
6090 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
6091 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
6092 | no_cache=0 | |
6093 | # Check whether --enable-timer or --disable-timer was given. | |
6094 | if test "${enable_timer+set}" = set; then | |
6095 | enableval="$enable_timer" | |
6096 | ||
6097 | if test "$enableval" = yes; then | |
6098 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
6099 | else | |
6100 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6101 | fi | |
6102 | ||
6103 | else | |
6104 | ||
6105 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6106 | if test "x$LINE" != x ; then | |
6107 | eval "DEFAULT_$LINE" | |
6108 | else | |
6109 | no_cache=1 | |
6110 | fi | |
6111 | ||
6112 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6113 | ||
6114 | fi; | |
6115 | ||
6116 | eval "$ac_cv_use_timer" | |
6117 | if test "$no_cache" != 1; then | |
6118 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6119 | fi | |
6120 | ||
6121 | if test "$wxUSE_TIMER" = yes; then | |
6122 | echo "$as_me:$LINENO: result: yes" >&5 | |
6123 | echo "${ECHO_T}yes" >&6 | |
6124 | else | |
6125 | echo "$as_me:$LINENO: result: no" >&5 | |
6126 | echo "${ECHO_T}no" >&6 | |
6127 | fi | |
6128 | ||
6129 | ||
6130 | enablestring= | |
6131 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6132 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6133 | no_cache=0 | |
6134 | # Check whether --enable-unicode or --disable-unicode was given. | |
6135 | if test "${enable_unicode+set}" = set; then | |
6136 | enableval="$enable_unicode" | |
6137 | ||
6138 | if test "$enableval" = yes; then | |
6139 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6140 | else | |
6141 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6142 | fi | |
6143 | ||
6144 | else | |
6145 | ||
6146 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6147 | if test "x$LINE" != x ; then | |
6148 | eval "DEFAULT_$LINE" | |
6149 | else | |
6150 | no_cache=1 | |
6151 | fi | |
6152 | ||
6153 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6154 | ||
6155 | fi; | |
6156 | ||
6157 | eval "$ac_cv_use_unicode" | |
6158 | if test "$no_cache" != 1; then | |
6159 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6160 | fi | |
6161 | ||
6162 | if test "$wxUSE_UNICODE" = yes; then | |
6163 | echo "$as_me:$LINENO: result: yes" >&5 | |
6164 | echo "${ECHO_T}yes" >&6 | |
6165 | else | |
6166 | echo "$as_me:$LINENO: result: no" >&5 | |
6167 | echo "${ECHO_T}no" >&6 | |
6168 | fi | |
6169 | ||
6170 | ||
6171 | enablestring= | |
6172 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6173 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6174 | no_cache=0 | |
6175 | # Check whether --enable-sound or --disable-sound was given. | |
6176 | if test "${enable_sound+set}" = set; then | |
6177 | enableval="$enable_sound" | |
6178 | ||
6179 | if test "$enableval" = yes; then | |
6180 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6181 | else | |
6182 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6183 | fi | |
6184 | ||
6185 | else | |
6186 | ||
6187 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6188 | if test "x$LINE" != x ; then | |
6189 | eval "DEFAULT_$LINE" | |
6190 | else | |
6191 | no_cache=1 | |
6192 | fi | |
6193 | ||
6194 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6195 | ||
6196 | fi; | |
6197 | ||
6198 | eval "$ac_cv_use_sound" | |
6199 | if test "$no_cache" != 1; then | |
6200 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6201 | fi | |
6202 | ||
6203 | if test "$wxUSE_SOUND" = yes; then | |
6204 | echo "$as_me:$LINENO: result: yes" >&5 | |
6205 | echo "${ECHO_T}yes" >&6 | |
6206 | else | |
6207 | echo "$as_me:$LINENO: result: no" >&5 | |
6208 | echo "${ECHO_T}no" >&6 | |
6209 | fi | |
6210 | ||
6211 | ||
3b57de8b RL |
6212 | enablestring= |
6213 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6214 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6215 | no_cache=0 | |
6216 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6217 | if test "${enable_mediactrl+set}" = set; then | |
6218 | enableval="$enable_mediactrl" | |
6219 | ||
6220 | if test "$enableval" = yes; then | |
6221 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6222 | else | |
6223 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6224 | fi | |
6225 | ||
6226 | else | |
6227 | ||
6228 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6229 | if test "x$LINE" != x ; then | |
6230 | eval "DEFAULT_$LINE" | |
6231 | else | |
6232 | no_cache=1 | |
6233 | fi | |
6234 | ||
6235 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6236 | ||
6237 | fi; | |
6238 | ||
6239 | eval "$ac_cv_use_mediactrl" | |
6240 | if test "$no_cache" != 1; then | |
6241 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6242 | fi | |
6243 | ||
6244 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6245 | echo "$as_me:$LINENO: result: yes" >&5 | |
6246 | echo "${ECHO_T}yes" >&6 | |
6247 | else | |
6248 | echo "$as_me:$LINENO: result: no" >&5 | |
6249 | echo "${ECHO_T}no" >&6 | |
6250 | fi | |
6251 | ||
6252 | ||
f10e38c4 VZ |
6253 | enablestring= |
6254 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5 | |
6255 | echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6 | |
6256 | no_cache=0 | |
6257 | # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given. | |
6258 | if test "${enable_gstreamer8+set}" = set; then | |
6259 | enableval="$enable_gstreamer8" | |
6260 | ||
6261 | if test "$enableval" = yes; then | |
6262 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes' | |
6263 | else | |
6264 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no' | |
6265 | fi | |
6266 | ||
6267 | else | |
6268 | ||
6269 | LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}` | |
6270 | if test "x$LINE" != x ; then | |
6271 | eval "DEFAULT_$LINE" | |
6272 | else | |
6273 | no_cache=1 | |
6274 | fi | |
6275 | ||
6276 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8 | |
6277 | ||
6278 | fi; | |
6279 | ||
6280 | eval "$ac_cv_use_gstreamer8" | |
6281 | if test "$no_cache" != 1; then | |
6282 | echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp | |
6283 | fi | |
6284 | ||
6285 | if test "$wxUSE_GSTREAMER8" = yes; then | |
6286 | echo "$as_me:$LINENO: result: yes" >&5 | |
6287 | echo "${ECHO_T}yes" >&6 | |
6288 | else | |
6289 | echo "$as_me:$LINENO: result: no" >&5 | |
6290 | echo "${ECHO_T}no" >&6 | |
6291 | fi | |
6292 | ||
6293 | ||
a848cd7e SC |
6294 | enablestring= |
6295 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6296 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6297 | no_cache=0 | |
6298 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6299 | if test "${enable_wxprintfv+set}" = set; then | |
6300 | enableval="$enable_wxprintfv" | |
6301 | ||
6302 | if test "$enableval" = yes; then | |
6303 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6304 | else | |
6305 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6306 | fi | |
6307 | ||
6308 | else | |
6309 | ||
6310 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6311 | if test "x$LINE" != x ; then | |
6312 | eval "DEFAULT_$LINE" | |
6313 | else | |
6314 | no_cache=1 | |
6315 | fi | |
6316 | ||
6317 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6318 | ||
6319 | fi; | |
6320 | ||
6321 | eval "$ac_cv_use_wxprintfv" | |
6322 | if test "$no_cache" != 1; then | |
6323 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6324 | fi | |
6325 | ||
6326 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6327 | echo "$as_me:$LINENO: result: yes" >&5 | |
6328 | echo "${ECHO_T}yes" >&6 | |
6329 | else | |
6330 | echo "$as_me:$LINENO: result: no" >&5 | |
6331 | echo "${ECHO_T}no" >&6 | |
6332 | fi | |
6333 | ||
6334 | ||
6335 | enablestring= | |
6336 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6337 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6338 | no_cache=0 | |
6339 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6340 | if test "${enable_zipstream+set}" = set; then | |
6341 | enableval="$enable_zipstream" | |
6342 | ||
6343 | if test "$enableval" = yes; then | |
6344 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6345 | else | |
6346 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6347 | fi | |
6348 | ||
6349 | else | |
6350 | ||
6351 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6352 | if test "x$LINE" != x ; then | |
6353 | eval "DEFAULT_$LINE" | |
6354 | else | |
6355 | no_cache=1 | |
6356 | fi | |
6357 | ||
6358 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6359 | ||
6360 | fi; | |
6361 | ||
6362 | eval "$ac_cv_use_zipstream" | |
6363 | if test "$no_cache" != 1; then | |
6364 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6365 | fi | |
6366 | ||
6367 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6368 | echo "$as_me:$LINENO: result: yes" >&5 | |
6369 | echo "${ECHO_T}yes" >&6 | |
6370 | else | |
6371 | echo "$as_me:$LINENO: result: no" >&5 | |
6372 | echo "${ECHO_T}no" >&6 | |
6373 | fi | |
6374 | ||
6375 | ||
a848cd7e SC |
6376 | |
6377 | enablestring= | |
6378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6379 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6380 | no_cache=0 | |
6381 | # Check whether --enable-url or --disable-url was given. | |
6382 | if test "${enable_url+set}" = set; then | |
6383 | enableval="$enable_url" | |
6384 | ||
6385 | if test "$enableval" = yes; then | |
6386 | ac_cv_use_url='wxUSE_URL=yes' | |
6387 | else | |
6388 | ac_cv_use_url='wxUSE_URL=no' | |
6389 | fi | |
6390 | ||
6391 | else | |
6392 | ||
6393 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6394 | if test "x$LINE" != x ; then | |
6395 | eval "DEFAULT_$LINE" | |
6396 | else | |
6397 | no_cache=1 | |
6398 | fi | |
6399 | ||
6400 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6401 | ||
6402 | fi; | |
6403 | ||
6404 | eval "$ac_cv_use_url" | |
6405 | if test "$no_cache" != 1; then | |
6406 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6407 | fi | |
6408 | ||
6409 | if test "$wxUSE_URL" = yes; then | |
6410 | echo "$as_me:$LINENO: result: yes" >&5 | |
6411 | echo "${ECHO_T}yes" >&6 | |
6412 | else | |
6413 | echo "$as_me:$LINENO: result: no" >&5 | |
6414 | echo "${ECHO_T}no" >&6 | |
6415 | fi | |
6416 | ||
6417 | ||
6418 | enablestring= | |
6419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6420 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6421 | no_cache=0 | |
6422 | # Check whether --enable-protocol or --disable-protocol was given. | |
6423 | if test "${enable_protocol+set}" = set; then | |
6424 | enableval="$enable_protocol" | |
6425 | ||
6426 | if test "$enableval" = yes; then | |
6427 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6428 | else | |
6429 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6430 | fi | |
6431 | ||
6432 | else | |
6433 | ||
6434 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6435 | if test "x$LINE" != x ; then | |
6436 | eval "DEFAULT_$LINE" | |
6437 | else | |
6438 | no_cache=1 | |
6439 | fi | |
6440 | ||
6441 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6442 | ||
6443 | fi; | |
6444 | ||
6445 | eval "$ac_cv_use_protocol" | |
6446 | if test "$no_cache" != 1; then | |
6447 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6448 | fi | |
6449 | ||
6450 | if test "$wxUSE_PROTOCOL" = yes; then | |
6451 | echo "$as_me:$LINENO: result: yes" >&5 | |
6452 | echo "${ECHO_T}yes" >&6 | |
6453 | else | |
6454 | echo "$as_me:$LINENO: result: no" >&5 | |
6455 | echo "${ECHO_T}no" >&6 | |
6456 | fi | |
6457 | ||
6458 | ||
6459 | enablestring= | |
6460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6461 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6462 | no_cache=0 | |
6463 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6464 | if test "${enable_protocol_http+set}" = set; then | |
6465 | enableval="$enable_protocol_http" | |
6466 | ||
6467 | if test "$enableval" = yes; then | |
6468 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6469 | else | |
6470 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6471 | fi | |
6472 | ||
6473 | else | |
6474 | ||
6475 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6476 | if test "x$LINE" != x ; then | |
6477 | eval "DEFAULT_$LINE" | |
6478 | else | |
6479 | no_cache=1 | |
6480 | fi | |
6481 | ||
6482 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6483 | ||
6484 | fi; | |
6485 | ||
6486 | eval "$ac_cv_use_protocol_http" | |
6487 | if test "$no_cache" != 1; then | |
6488 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6489 | fi | |
6490 | ||
6491 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6492 | echo "$as_me:$LINENO: result: yes" >&5 | |
6493 | echo "${ECHO_T}yes" >&6 | |
6494 | else | |
6495 | echo "$as_me:$LINENO: result: no" >&5 | |
6496 | echo "${ECHO_T}no" >&6 | |
6497 | fi | |
6498 | ||
6499 | ||
6500 | enablestring= | |
6501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6502 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6503 | no_cache=0 | |
6504 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6505 | if test "${enable_protocol_ftp+set}" = set; then | |
6506 | enableval="$enable_protocol_ftp" | |
6507 | ||
6508 | if test "$enableval" = yes; then | |
6509 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6510 | else | |
6511 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6512 | fi | |
6513 | ||
6514 | else | |
6515 | ||
6516 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6517 | if test "x$LINE" != x ; then | |
6518 | eval "DEFAULT_$LINE" | |
6519 | else | |
6520 | no_cache=1 | |
6521 | fi | |
6522 | ||
6523 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6524 | ||
6525 | fi; | |
6526 | ||
6527 | eval "$ac_cv_use_protocol_ftp" | |
6528 | if test "$no_cache" != 1; then | |
6529 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6530 | fi | |
6531 | ||
6532 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6533 | echo "$as_me:$LINENO: result: yes" >&5 | |
6534 | echo "${ECHO_T}yes" >&6 | |
6535 | else | |
6536 | echo "$as_me:$LINENO: result: no" >&5 | |
6537 | echo "${ECHO_T}no" >&6 | |
6538 | fi | |
6539 | ||
6540 | ||
6541 | enablestring= | |
6542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6543 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6544 | no_cache=0 | |
6545 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6546 | if test "${enable_protocol_file+set}" = set; then | |
6547 | enableval="$enable_protocol_file" | |
6548 | ||
6549 | if test "$enableval" = yes; then | |
6550 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6551 | else | |
6552 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6553 | fi | |
6554 | ||
6555 | else | |
6556 | ||
6557 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6558 | if test "x$LINE" != x ; then | |
6559 | eval "DEFAULT_$LINE" | |
6560 | else | |
6561 | no_cache=1 | |
6562 | fi | |
6563 | ||
6564 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6565 | ||
6566 | fi; | |
6567 | ||
6568 | eval "$ac_cv_use_protocol_file" | |
6569 | if test "$no_cache" != 1; then | |
6570 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6571 | fi | |
6572 | ||
6573 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6574 | echo "$as_me:$LINENO: result: yes" >&5 | |
6575 | echo "${ECHO_T}yes" >&6 | |
6576 | else | |
6577 | echo "$as_me:$LINENO: result: no" >&5 | |
6578 | echo "${ECHO_T}no" >&6 | |
6579 | fi | |
6580 | ||
6581 | ||
6582 | ||
6583 | ||
6584 | ||
6585 | enablestring= | |
6586 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6587 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6588 | no_cache=0 | |
6589 | # Check whether --enable-threads or --disable-threads was given. | |
6590 | if test "${enable_threads+set}" = set; then | |
6591 | enableval="$enable_threads" | |
6592 | ||
6593 | if test "$enableval" = yes; then | |
6594 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6595 | else | |
6596 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6597 | fi | |
6598 | ||
6599 | else | |
6600 | ||
6601 | LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6609 | ||
6610 | fi; | |
6611 | ||
6612 | eval "$ac_cv_use_threads" | |
6613 | if test "$no_cache" != 1; then | |
6614 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6615 | fi | |
6616 | ||
6617 | if test "$wxUSE_THREADS" = 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 | if test "$wxUSE_GUI" = "yes"; then | |
6627 | ||
6628 | ||
6629 | ||
6630 | enablestring= | |
6631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6632 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6633 | no_cache=0 | |
6634 | # Check whether --enable-docview or --disable-docview was given. | |
6635 | if test "${enable_docview+set}" = set; then | |
6636 | enableval="$enable_docview" | |
6637 | ||
6638 | if test "$enableval" = yes; then | |
6639 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6640 | else | |
6641 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6642 | fi | |
6643 | ||
6644 | else | |
6645 | ||
6646 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6647 | if test "x$LINE" != x ; then | |
6648 | eval "DEFAULT_$LINE" | |
6649 | else | |
6650 | no_cache=1 | |
6651 | fi | |
6652 | ||
6653 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6654 | ||
6655 | fi; | |
6656 | ||
6657 | eval "$ac_cv_use_docview" | |
6658 | if test "$no_cache" != 1; then | |
6659 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6660 | fi | |
6661 | ||
6662 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6663 | echo "$as_me:$LINENO: result: yes" >&5 | |
6664 | echo "${ECHO_T}yes" >&6 | |
6665 | else | |
6666 | echo "$as_me:$LINENO: result: no" >&5 | |
6667 | echo "${ECHO_T}no" >&6 | |
6668 | fi | |
6669 | ||
6670 | ||
6671 | enablestring= | |
6672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6673 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6674 | no_cache=0 | |
6675 | # Check whether --enable-help or --disable-help was given. | |
6676 | if test "${enable_help+set}" = set; then | |
6677 | enableval="$enable_help" | |
6678 | ||
6679 | if test "$enableval" = yes; then | |
6680 | ac_cv_use_help='wxUSE_HELP=yes' | |
6681 | else | |
6682 | ac_cv_use_help='wxUSE_HELP=no' | |
6683 | fi | |
6684 | ||
6685 | else | |
6686 | ||
6687 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6688 | if test "x$LINE" != x ; then | |
6689 | eval "DEFAULT_$LINE" | |
6690 | else | |
6691 | no_cache=1 | |
6692 | fi | |
6693 | ||
6694 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6695 | ||
6696 | fi; | |
6697 | ||
6698 | eval "$ac_cv_use_help" | |
6699 | if test "$no_cache" != 1; then | |
6700 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6701 | fi | |
6702 | ||
6703 | if test "$wxUSE_HELP" = yes; then | |
6704 | echo "$as_me:$LINENO: result: yes" >&5 | |
6705 | echo "${ECHO_T}yes" >&6 | |
6706 | else | |
6707 | echo "$as_me:$LINENO: result: no" >&5 | |
6708 | echo "${ECHO_T}no" >&6 | |
6709 | fi | |
6710 | ||
6711 | ||
6712 | enablestring= | |
6713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6714 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6715 | no_cache=0 | |
6716 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6717 | if test "${enable_mshtmlhelp+set}" = set; then | |
6718 | enableval="$enable_mshtmlhelp" | |
6719 | ||
6720 | if test "$enableval" = yes; then | |
6721 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6722 | else | |
6723 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6724 | fi | |
6725 | ||
6726 | else | |
6727 | ||
6728 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6729 | if test "x$LINE" != x ; then | |
6730 | eval "DEFAULT_$LINE" | |
6731 | else | |
6732 | no_cache=1 | |
6733 | fi | |
6734 | ||
6735 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6736 | ||
6737 | fi; | |
6738 | ||
6739 | eval "$ac_cv_use_mshtmlhelp" | |
6740 | if test "$no_cache" != 1; then | |
6741 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6742 | fi | |
6743 | ||
6744 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6745 | echo "$as_me:$LINENO: result: yes" >&5 | |
6746 | echo "${ECHO_T}yes" >&6 | |
6747 | else | |
6748 | echo "$as_me:$LINENO: result: no" >&5 | |
6749 | echo "${ECHO_T}no" >&6 | |
6750 | fi | |
6751 | ||
6752 | ||
6753 | enablestring= | |
6754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6755 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6756 | no_cache=0 | |
6757 | # Check whether --enable-html or --disable-html was given. | |
6758 | if test "${enable_html+set}" = set; then | |
6759 | enableval="$enable_html" | |
6760 | ||
6761 | if test "$enableval" = yes; then | |
6762 | ac_cv_use_html='wxUSE_HTML=yes' | |
6763 | else | |
6764 | ac_cv_use_html='wxUSE_HTML=no' | |
6765 | fi | |
6766 | ||
6767 | else | |
6768 | ||
6769 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6770 | if test "x$LINE" != x ; then | |
6771 | eval "DEFAULT_$LINE" | |
6772 | else | |
6773 | no_cache=1 | |
6774 | fi | |
6775 | ||
6776 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6777 | ||
6778 | fi; | |
6779 | ||
6780 | eval "$ac_cv_use_html" | |
6781 | if test "$no_cache" != 1; then | |
6782 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6783 | fi | |
6784 | ||
6785 | if test "$wxUSE_HTML" = yes; then | |
6786 | echo "$as_me:$LINENO: result: yes" >&5 | |
6787 | echo "${ECHO_T}yes" >&6 | |
6788 | else | |
6789 | echo "$as_me:$LINENO: result: no" >&5 | |
6790 | echo "${ECHO_T}no" >&6 | |
6791 | fi | |
6792 | ||
6793 | ||
6794 | enablestring= | |
6795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6796 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6797 | no_cache=0 | |
6798 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6799 | if test "${enable_htmlhelp+set}" = set; then | |
6800 | enableval="$enable_htmlhelp" | |
6801 | ||
6802 | if test "$enableval" = yes; then | |
6803 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6804 | else | |
6805 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6806 | fi | |
6807 | ||
6808 | else | |
6809 | ||
6810 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6811 | if test "x$LINE" != x ; then | |
6812 | eval "DEFAULT_$LINE" | |
6813 | else | |
6814 | no_cache=1 | |
6815 | fi | |
6816 | ||
6817 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6818 | ||
6819 | fi; | |
6820 | ||
6821 | eval "$ac_cv_use_htmlhelp" | |
6822 | if test "$no_cache" != 1; then | |
6823 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6824 | fi | |
6825 | ||
6826 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6827 | echo "$as_me:$LINENO: result: yes" >&5 | |
6828 | echo "${ECHO_T}yes" >&6 | |
6829 | else | |
6830 | echo "$as_me:$LINENO: result: no" >&5 | |
6831 | echo "${ECHO_T}no" >&6 | |
6832 | fi | |
6833 | ||
6834 | ||
9a8f0513 VS |
6835 | enablestring= |
6836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6837 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6838 | no_cache=0 | |
6839 | # Check whether --enable-xrc or --disable-xrc was given. | |
6840 | if test "${enable_xrc+set}" = set; then | |
6841 | enableval="$enable_xrc" | |
6842 | ||
6843 | if test "$enableval" = yes; then | |
6844 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6845 | else | |
6846 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6847 | fi | |
6848 | ||
6849 | else | |
6850 | ||
6851 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6852 | if test "x$LINE" != x ; then | |
6853 | eval "DEFAULT_$LINE" | |
6854 | else | |
6855 | no_cache=1 | |
6856 | fi | |
6857 | ||
6858 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6859 | ||
6860 | fi; | |
6861 | ||
6862 | eval "$ac_cv_use_xrc" | |
6863 | if test "$no_cache" != 1; then | |
6864 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6865 | fi | |
6866 | ||
6867 | if test "$wxUSE_XRC" = yes; then | |
6868 | echo "$as_me:$LINENO: result: yes" >&5 | |
6869 | echo "${ECHO_T}yes" >&6 | |
6870 | else | |
6871 | echo "$as_me:$LINENO: result: no" >&5 | |
6872 | echo "${ECHO_T}no" >&6 | |
6873 | fi | |
6874 | ||
6875 | ||
a848cd7e SC |
6876 | enablestring= |
6877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6878 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6879 | no_cache=0 | |
6880 | # Check whether --enable-constraints or --disable-constraints was given. | |
6881 | if test "${enable_constraints+set}" = set; then | |
6882 | enableval="$enable_constraints" | |
6883 | ||
6884 | if test "$enableval" = yes; then | |
6885 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6886 | else | |
6887 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6888 | fi | |
6889 | ||
6890 | else | |
6891 | ||
6892 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6893 | if test "x$LINE" != x ; then | |
6894 | eval "DEFAULT_$LINE" | |
6895 | else | |
6896 | no_cache=1 | |
6897 | fi | |
6898 | ||
6899 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6900 | ||
6901 | fi; | |
6902 | ||
6903 | eval "$ac_cv_use_constraints" | |
6904 | if test "$no_cache" != 1; then | |
6905 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6906 | fi | |
6907 | ||
6908 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6909 | echo "$as_me:$LINENO: result: yes" >&5 | |
6910 | echo "${ECHO_T}yes" >&6 | |
6911 | else | |
6912 | echo "$as_me:$LINENO: result: no" >&5 | |
6913 | echo "${ECHO_T}no" >&6 | |
6914 | fi | |
6915 | ||
6916 | ||
6917 | enablestring= | |
6918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6919 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6920 | no_cache=0 | |
6921 | # Check whether --enable-printarch or --disable-printarch was given. | |
6922 | if test "${enable_printarch+set}" = set; then | |
6923 | enableval="$enable_printarch" | |
6924 | ||
6925 | if test "$enableval" = yes; then | |
6926 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6927 | else | |
6928 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6929 | fi | |
6930 | ||
6931 | else | |
6932 | ||
6933 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6934 | if test "x$LINE" != x ; then | |
6935 | eval "DEFAULT_$LINE" | |
6936 | else | |
6937 | no_cache=1 | |
6938 | fi | |
6939 | ||
6940 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6941 | ||
6942 | fi; | |
6943 | ||
6944 | eval "$ac_cv_use_printarch" | |
6945 | if test "$no_cache" != 1; then | |
6946 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6947 | fi | |
6948 | ||
6949 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6950 | echo "$as_me:$LINENO: result: yes" >&5 | |
6951 | echo "${ECHO_T}yes" >&6 | |
6952 | else | |
6953 | echo "$as_me:$LINENO: result: no" >&5 | |
6954 | echo "${ECHO_T}no" >&6 | |
6955 | fi | |
6956 | ||
6957 | ||
6958 | enablestring= | |
6959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6960 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6961 | no_cache=0 | |
6962 | # Check whether --enable-mdi or --disable-mdi was given. | |
6963 | if test "${enable_mdi+set}" = set; then | |
6964 | enableval="$enable_mdi" | |
6965 | ||
6966 | if test "$enableval" = yes; then | |
8a7b1113 | 6967 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6968 | else |
8a7b1113 | 6969 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6970 | fi |
6971 | ||
6972 | else | |
6973 | ||
8a7b1113 | 6974 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6975 | if test "x$LINE" != x ; then |
6976 | eval "DEFAULT_$LINE" | |
6977 | else | |
6978 | no_cache=1 | |
6979 | fi | |
6980 | ||
8a7b1113 | 6981 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6982 | |
6983 | fi; | |
6984 | ||
6985 | eval "$ac_cv_use_mdi" | |
6986 | if test "$no_cache" != 1; then | |
6987 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6988 | fi | |
6989 | ||
8a7b1113 VZ |
6990 | if test "$wxUSE_MDI" = yes; then |
6991 | echo "$as_me:$LINENO: result: yes" >&5 | |
6992 | echo "${ECHO_T}yes" >&6 | |
6993 | else | |
6994 | echo "$as_me:$LINENO: result: no" >&5 | |
6995 | echo "${ECHO_T}no" >&6 | |
6996 | fi | |
6997 | ||
6998 | ||
6999 | enablestring= | |
7000 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
7001 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
7002 | no_cache=0 | |
7003 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
7004 | if test "${enable_mdidoc+set}" = set; then | |
7005 | enableval="$enable_mdidoc" | |
7006 | ||
7007 | if test "$enableval" = yes; then | |
7008 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
7009 | else | |
7010 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
7011 | fi | |
7012 | ||
7013 | else | |
7014 | ||
7015 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
7016 | if test "x$LINE" != x ; then | |
7017 | eval "DEFAULT_$LINE" | |
7018 | else | |
7019 | no_cache=1 | |
7020 | fi | |
7021 | ||
7022 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
7023 | ||
7024 | fi; | |
7025 | ||
7026 | eval "$ac_cv_use_mdidoc" | |
7027 | if test "$no_cache" != 1; then | |
7028 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
7029 | fi | |
7030 | ||
a848cd7e SC |
7031 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
7032 | echo "$as_me:$LINENO: result: yes" >&5 | |
7033 | echo "${ECHO_T}yes" >&6 | |
7034 | else | |
7035 | echo "$as_me:$LINENO: result: no" >&5 | |
7036 | echo "${ECHO_T}no" >&6 | |
7037 | fi | |
7038 | ||
7039 | ||
7040 | enablestring= | |
7041 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
7042 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
7043 | no_cache=0 | |
7044 | # Check whether --enable-loggui or --disable-loggui was given. | |
7045 | if test "${enable_loggui+set}" = set; then | |
7046 | enableval="$enable_loggui" | |
7047 | ||
7048 | if test "$enableval" = yes; then | |
7049 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
7050 | else | |
7051 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
7052 | fi | |
7053 | ||
7054 | else | |
7055 | ||
7056 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
7057 | if test "x$LINE" != x ; then | |
7058 | eval "DEFAULT_$LINE" | |
7059 | else | |
7060 | no_cache=1 | |
7061 | fi | |
7062 | ||
7063 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
7064 | ||
7065 | fi; | |
7066 | ||
7067 | eval "$ac_cv_use_loggui" | |
7068 | if test "$no_cache" != 1; then | |
7069 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
7070 | fi | |
7071 | ||
7072 | if test "$wxUSE_LOGGUI" = yes; then | |
7073 | echo "$as_me:$LINENO: result: yes" >&5 | |
7074 | echo "${ECHO_T}yes" >&6 | |
7075 | else | |
7076 | echo "$as_me:$LINENO: result: no" >&5 | |
7077 | echo "${ECHO_T}no" >&6 | |
7078 | fi | |
7079 | ||
7080 | ||
7081 | enablestring= | |
7082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
7083 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
7084 | no_cache=0 | |
7085 | # Check whether --enable-logwin or --disable-logwin was given. | |
7086 | if test "${enable_logwin+set}" = set; then | |
7087 | enableval="$enable_logwin" | |
7088 | ||
7089 | if test "$enableval" = yes; then | |
7090 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
7091 | else | |
7092 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
7093 | fi | |
7094 | ||
7095 | else | |
7096 | ||
7097 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
7098 | if test "x$LINE" != x ; then | |
7099 | eval "DEFAULT_$LINE" | |
7100 | else | |
7101 | no_cache=1 | |
7102 | fi | |
7103 | ||
7104 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
7105 | ||
7106 | fi; | |
7107 | ||
7108 | eval "$ac_cv_use_logwin" | |
7109 | if test "$no_cache" != 1; then | |
7110 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
7111 | fi | |
7112 | ||
7113 | if test "$wxUSE_LOGWINDOW" = yes; then | |
7114 | echo "$as_me:$LINENO: result: yes" >&5 | |
7115 | echo "${ECHO_T}yes" >&6 | |
7116 | else | |
7117 | echo "$as_me:$LINENO: result: no" >&5 | |
7118 | echo "${ECHO_T}no" >&6 | |
7119 | fi | |
7120 | ||
7121 | ||
7122 | enablestring= | |
7123 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
7124 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
7125 | no_cache=0 | |
7126 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
7127 | if test "${enable_logdialog+set}" = set; then | |
7128 | enableval="$enable_logdialog" | |
7129 | ||
7130 | if test "$enableval" = yes; then | |
7131 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
7132 | else | |
7133 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
7134 | fi | |
7135 | ||
7136 | else | |
7137 | ||
7138 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
7139 | if test "x$LINE" != x ; then | |
7140 | eval "DEFAULT_$LINE" | |
7141 | else | |
7142 | no_cache=1 | |
7143 | fi | |
7144 | ||
7145 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7146 | ||
7147 | fi; | |
7148 | ||
7149 | eval "$ac_cv_use_logdialog" | |
7150 | if test "$no_cache" != 1; then | |
7151 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7152 | fi | |
7153 | ||
7154 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7155 | echo "$as_me:$LINENO: result: yes" >&5 | |
7156 | echo "${ECHO_T}yes" >&6 | |
7157 | else | |
7158 | echo "$as_me:$LINENO: result: no" >&5 | |
7159 | echo "${ECHO_T}no" >&6 | |
7160 | fi | |
7161 | ||
7162 | ||
646b6ec1 VS |
7163 | enablestring= |
7164 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7165 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7166 | no_cache=0 | |
7167 | # Check whether --enable-webkit or --disable-webkit was given. | |
7168 | if test "${enable_webkit+set}" = set; then | |
7169 | enableval="$enable_webkit" | |
7170 | ||
7171 | if test "$enableval" = yes; then | |
7172 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7173 | else | |
7174 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7175 | fi | |
7176 | ||
7177 | else | |
7178 | ||
7179 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7180 | if test "x$LINE" != x ; then | |
7181 | eval "DEFAULT_$LINE" | |
7182 | else | |
7183 | no_cache=1 | |
7184 | fi | |
7185 | ||
7186 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7187 | ||
7188 | fi; | |
7189 | ||
7190 | eval "$ac_cv_use_webkit" | |
7191 | if test "$no_cache" != 1; then | |
7192 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7193 | fi | |
7194 | ||
7195 | if test "$wxUSE_WEBKIT" = yes; then | |
7196 | echo "$as_me:$LINENO: result: yes" >&5 | |
7197 | echo "${ECHO_T}yes" >&6 | |
7198 | else | |
7199 | echo "$as_me:$LINENO: result: no" >&5 | |
7200 | echo "${ECHO_T}no" >&6 | |
7201 | fi | |
7202 | ||
7203 | ||
91dea314 MW |
7204 | enablestring= |
7205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7206 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7207 | no_cache=0 | |
7208 | # Check whether --enable-html or --disable-html was given. | |
7209 | if test "${enable_html+set}" = set; then | |
7210 | enableval="$enable_html" | |
7211 | ||
7212 | if test "$enableval" = yes; then | |
7213 | ac_cv_use_html='wxUSE_RICHTEXT=yes' | |
7214 | else | |
7215 | ac_cv_use_html='wxUSE_RICHTEXT=no' | |
7216 | fi | |
7217 | ||
7218 | else | |
7219 | ||
7220 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7221 | if test "x$LINE" != x ; then | |
7222 | eval "DEFAULT_$LINE" | |
7223 | else | |
7224 | no_cache=1 | |
7225 | fi | |
7226 | ||
7227 | ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT | |
7228 | ||
7229 | fi; | |
7230 | ||
7231 | eval "$ac_cv_use_html" | |
7232 | if test "$no_cache" != 1; then | |
7233 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7234 | fi | |
7235 | ||
7236 | if test "$wxUSE_RICHTEXT" = yes; then | |
7237 | echo "$as_me:$LINENO: result: yes" >&5 | |
7238 | echo "${ECHO_T}yes" >&6 | |
7239 | else | |
7240 | echo "$as_me:$LINENO: result: no" >&5 | |
7241 | echo "${ECHO_T}no" >&6 | |
7242 | fi | |
7243 | ||
7244 | ||
a848cd7e SC |
7245 | |
7246 | enablestring= | |
7247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7248 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7249 | no_cache=0 | |
7250 | # Check whether --enable-postscript or --disable-postscript was given. | |
7251 | if test "${enable_postscript+set}" = set; then | |
7252 | enableval="$enable_postscript" | |
7253 | ||
7254 | if test "$enableval" = yes; then | |
7255 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7256 | else | |
7257 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7258 | fi | |
7259 | ||
7260 | else | |
7261 | ||
7262 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7263 | if test "x$LINE" != x ; then | |
7264 | eval "DEFAULT_$LINE" | |
7265 | else | |
7266 | no_cache=1 | |
7267 | fi | |
7268 | ||
7269 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7270 | ||
7271 | fi; | |
7272 | ||
7273 | eval "$ac_cv_use_postscript" | |
7274 | if test "$no_cache" != 1; then | |
7275 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7276 | fi | |
7277 | ||
7278 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7279 | echo "$as_me:$LINENO: result: yes" >&5 | |
7280 | echo "${ECHO_T}yes" >&6 | |
7281 | else | |
7282 | echo "$as_me:$LINENO: result: no" >&5 | |
7283 | echo "${ECHO_T}no" >&6 | |
7284 | fi | |
7285 | ||
7286 | ||
7287 | ||
7288 | ||
7289 | ||
7290 | enablestring= | |
7291 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7292 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7293 | no_cache=0 | |
7294 | # Check whether --enable-prologio or --disable-prologio was given. | |
7295 | if test "${enable_prologio+set}" = set; then | |
7296 | enableval="$enable_prologio" | |
7297 | ||
7298 | if test "$enableval" = yes; then | |
7299 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7300 | else | |
7301 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7302 | fi | |
7303 | ||
7304 | else | |
7305 | ||
7306 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7307 | if test "x$LINE" != x ; then | |
7308 | eval "DEFAULT_$LINE" | |
7309 | else | |
7310 | no_cache=1 | |
7311 | fi | |
7312 | ||
7313 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7314 | ||
7315 | fi; | |
7316 | ||
7317 | eval "$ac_cv_use_prologio" | |
7318 | if test "$no_cache" != 1; then | |
7319 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7320 | fi | |
7321 | ||
7322 | if test "$wxUSE_PROLOGIO" = yes; then | |
7323 | echo "$as_me:$LINENO: result: yes" >&5 | |
7324 | echo "${ECHO_T}yes" >&6 | |
7325 | else | |
7326 | echo "$as_me:$LINENO: result: no" >&5 | |
7327 | echo "${ECHO_T}no" >&6 | |
7328 | fi | |
7329 | ||
7330 | ||
7331 | enablestring= | |
7332 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7333 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7334 | no_cache=0 | |
7335 | # Check whether --enable-resources or --disable-resources was given. | |
7336 | if test "${enable_resources+set}" = set; then | |
7337 | enableval="$enable_resources" | |
7338 | ||
7339 | if test "$enableval" = yes; then | |
7340 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7341 | else | |
7342 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7343 | fi | |
7344 | ||
7345 | else | |
7346 | ||
7347 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7348 | if test "x$LINE" != x ; then | |
7349 | eval "DEFAULT_$LINE" | |
7350 | else | |
7351 | no_cache=1 | |
7352 | fi | |
7353 | ||
7354 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7355 | ||
7356 | fi; | |
7357 | ||
7358 | eval "$ac_cv_use_resources" | |
7359 | if test "$no_cache" != 1; then | |
7360 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7361 | fi | |
7362 | ||
7363 | if test "$wxUSE_RESOURCES" = yes; then | |
7364 | echo "$as_me:$LINENO: result: yes" >&5 | |
7365 | echo "${ECHO_T}yes" >&6 | |
7366 | else | |
7367 | echo "$as_me:$LINENO: result: no" >&5 | |
7368 | echo "${ECHO_T}no" >&6 | |
7369 | fi | |
7370 | ||
7371 | ||
7372 | ||
7373 | ||
7374 | enablestring= | |
7375 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7376 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7377 | no_cache=0 | |
7378 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7379 | if test "${enable_clipboard+set}" = set; then | |
7380 | enableval="$enable_clipboard" | |
7381 | ||
7382 | if test "$enableval" = yes; then | |
7383 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7384 | else | |
7385 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7386 | fi | |
7387 | ||
7388 | else | |
7389 | ||
7390 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7391 | if test "x$LINE" != x ; then | |
7392 | eval "DEFAULT_$LINE" | |
7393 | else | |
7394 | no_cache=1 | |
7395 | fi | |
7396 | ||
7397 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7398 | ||
7399 | fi; | |
7400 | ||
7401 | eval "$ac_cv_use_clipboard" | |
7402 | if test "$no_cache" != 1; then | |
7403 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7404 | fi | |
7405 | ||
7406 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7407 | echo "$as_me:$LINENO: result: yes" >&5 | |
7408 | echo "${ECHO_T}yes" >&6 | |
7409 | else | |
7410 | echo "$as_me:$LINENO: result: no" >&5 | |
7411 | echo "${ECHO_T}no" >&6 | |
7412 | fi | |
7413 | ||
7414 | ||
7415 | enablestring= | |
7416 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7417 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7418 | no_cache=0 | |
7419 | # Check whether --enable-dnd or --disable-dnd was given. | |
7420 | if test "${enable_dnd+set}" = set; then | |
7421 | enableval="$enable_dnd" | |
7422 | ||
7423 | if test "$enableval" = yes; then | |
7424 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7425 | else | |
7426 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7427 | fi | |
7428 | ||
7429 | else | |
7430 | ||
7431 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7432 | if test "x$LINE" != x ; then | |
7433 | eval "DEFAULT_$LINE" | |
7434 | else | |
7435 | no_cache=1 | |
7436 | fi | |
7437 | ||
7438 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7439 | ||
7440 | fi; | |
7441 | ||
7442 | eval "$ac_cv_use_dnd" | |
7443 | if test "$no_cache" != 1; then | |
7444 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7445 | fi | |
7446 | ||
7447 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7448 | echo "$as_me:$LINENO: result: yes" >&5 | |
7449 | echo "${ECHO_T}yes" >&6 | |
7450 | else | |
7451 | echo "$as_me:$LINENO: result: no" >&5 | |
7452 | echo "${ECHO_T}no" >&6 | |
7453 | fi | |
7454 | ||
7455 | ||
7456 | enablestring= | |
7457 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7458 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7459 | no_cache=0 | |
7460 | # Check whether --enable-metafile or --disable-metafile was given. | |
7461 | if test "${enable_metafile+set}" = set; then | |
7462 | enableval="$enable_metafile" | |
7463 | ||
7464 | if test "$enableval" = yes; then | |
7465 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7466 | else | |
7467 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7468 | fi | |
7469 | ||
7470 | else | |
7471 | ||
7472 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7473 | if test "x$LINE" != x ; then | |
7474 | eval "DEFAULT_$LINE" | |
7475 | else | |
7476 | no_cache=1 | |
7477 | fi | |
7478 | ||
7479 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7480 | ||
7481 | fi; | |
7482 | ||
7483 | eval "$ac_cv_use_metafile" | |
7484 | if test "$no_cache" != 1; then | |
7485 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7486 | fi | |
7487 | ||
7488 | if test "$wxUSE_METAFILE" = yes; then | |
7489 | echo "$as_me:$LINENO: result: yes" >&5 | |
7490 | echo "${ECHO_T}yes" >&6 | |
7491 | else | |
7492 | echo "$as_me:$LINENO: result: no" >&5 | |
7493 | echo "${ECHO_T}no" >&6 | |
7494 | fi | |
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | enablestring= | |
7501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7502 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7503 | no_cache=0 | |
7504 | # Check whether --enable-controls or --disable-controls was given. | |
7505 | if test "${enable_controls+set}" = set; then | |
7506 | enableval="$enable_controls" | |
7507 | ||
7508 | if test "$enableval" = yes; then | |
7509 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7510 | else | |
7511 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7512 | fi | |
7513 | ||
7514 | else | |
7515 | ||
7516 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7517 | if test "x$LINE" != x ; then | |
7518 | eval "DEFAULT_$LINE" | |
7519 | else | |
7520 | no_cache=1 | |
7521 | fi | |
7522 | ||
7523 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7524 | ||
7525 | fi; | |
7526 | ||
7527 | eval "$ac_cv_use_controls" | |
7528 | if test "$no_cache" != 1; then | |
7529 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7530 | fi | |
7531 | ||
7532 | if test "$wxUSE_CONTROLS" = yes; then | |
7533 | echo "$as_me:$LINENO: result: yes" >&5 | |
7534 | echo "${ECHO_T}yes" >&6 | |
7535 | else | |
7536 | echo "$as_me:$LINENO: result: no" >&5 | |
7537 | echo "${ECHO_T}no" >&6 | |
7538 | fi | |
7539 | ||
7540 | ||
7541 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7542 | DEFAULT_wxUSE_ACCEL=yes | |
7543 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7544 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7545 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7546 | DEFAULT_wxUSE_CARET=yes |
7547 | DEFAULT_wxUSE_COMBOBOX=yes | |
7548 | DEFAULT_wxUSE_CHECKBOX=yes | |
7549 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7550 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7551 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7552 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7553 | DEFAULT_wxUSE_GAUGE=yes |
7554 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 7555 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7556 | DEFAULT_wxUSE_IMAGLIST=yes |
7557 | DEFAULT_wxUSE_LISTBOOK=yes | |
7558 | DEFAULT_wxUSE_LISTBOX=yes | |
7559 | DEFAULT_wxUSE_LISTCTRL=yes | |
7560 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7561 | DEFAULT_wxUSE_RADIOBOX=yes | |
7562 | DEFAULT_wxUSE_RADIOBTN=yes | |
7563 | DEFAULT_wxUSE_SASH=yes | |
7564 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7565 | DEFAULT_wxUSE_SLIDER=yes | |
7566 | DEFAULT_wxUSE_SPINBTN=yes | |
7567 | DEFAULT_wxUSE_SPINCTRL=yes | |
7568 | DEFAULT_wxUSE_SPLITTER=yes | |
7569 | DEFAULT_wxUSE_STATBMP=yes | |
7570 | DEFAULT_wxUSE_STATBOX=yes | |
7571 | DEFAULT_wxUSE_STATLINE=yes | |
7572 | DEFAULT_wxUSE_STATUSBAR=yes | |
7573 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7574 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7575 | DEFAULT_wxUSE_TOOLBAR=yes | |
7576 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7577 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7578 | DEFAULT_wxUSE_TOOLTIPS=yes | |
0093c2fc | 7579 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 7580 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
7581 | DEFAULT_wxUSE_TREECTRL=yes |
7582 | DEFAULT_wxUSE_POPUPWIN=yes | |
7583 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7584 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7585 | DEFAULT_wxUSE_ACCEL=no | |
7586 | DEFAULT_wxUSE_BMPBUTTON=no | |
7587 | DEFAULT_wxUSE_BUTTON=no | |
7588 | DEFAULT_wxUSE_CALCTRL=no | |
7589 | DEFAULT_wxUSE_CARET=no | |
7590 | DEFAULT_wxUSE_COMBOBOX=no | |
7591 | DEFAULT_wxUSE_CHECKBOX=no | |
7592 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7593 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7594 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7595 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7596 | DEFAULT_wxUSE_GAUGE=no |
7597 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 7598 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7599 | DEFAULT_wxUSE_IMAGLIST=no |
7600 | DEFAULT_wxUSE_LISTBOOK=no | |
7601 | DEFAULT_wxUSE_LISTBOX=no | |
7602 | DEFAULT_wxUSE_LISTCTRL=no | |
7603 | DEFAULT_wxUSE_NOTEBOOK=no | |
7604 | DEFAULT_wxUSE_RADIOBOX=no | |
7605 | DEFAULT_wxUSE_RADIOBTN=no | |
7606 | DEFAULT_wxUSE_SASH=no | |
7607 | DEFAULT_wxUSE_SCROLLBAR=no | |
7608 | DEFAULT_wxUSE_SLIDER=no | |
7609 | DEFAULT_wxUSE_SPINBTN=no | |
7610 | DEFAULT_wxUSE_SPINCTRL=no | |
7611 | DEFAULT_wxUSE_SPLITTER=no | |
7612 | DEFAULT_wxUSE_STATBMP=no | |
7613 | DEFAULT_wxUSE_STATBOX=no | |
7614 | DEFAULT_wxUSE_STATLINE=no | |
7615 | DEFAULT_wxUSE_STATUSBAR=no | |
7616 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7617 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7618 | DEFAULT_wxUSE_TOOLBAR=no | |
7619 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7620 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7621 | DEFAULT_wxUSE_TOOLTIPS=no | |
0093c2fc | 7622 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 7623 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
7624 | DEFAULT_wxUSE_TREECTRL=no |
7625 | DEFAULT_wxUSE_POPUPWIN=no | |
7626 | DEFAULT_wxUSE_TIPWINDOW=no | |
7627 | fi | |
7628 | ||
a848cd7e SC |
7629 | |
7630 | enablestring= | |
7631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7632 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7633 | no_cache=0 | |
7634 | # Check whether --enable-accel or --disable-accel was given. | |
7635 | if test "${enable_accel+set}" = set; then | |
7636 | enableval="$enable_accel" | |
7637 | ||
7638 | if test "$enableval" = yes; then | |
7639 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7640 | else | |
7641 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7642 | fi | |
7643 | ||
7644 | else | |
7645 | ||
7646 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7647 | if test "x$LINE" != x ; then | |
7648 | eval "DEFAULT_$LINE" | |
7649 | else | |
7650 | no_cache=1 | |
7651 | fi | |
7652 | ||
7653 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7654 | ||
7655 | fi; | |
7656 | ||
7657 | eval "$ac_cv_use_accel" | |
7658 | if test "$no_cache" != 1; then | |
7659 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7660 | fi | |
7661 | ||
7662 | if test "$wxUSE_ACCEL" = yes; then | |
7663 | echo "$as_me:$LINENO: result: yes" >&5 | |
7664 | echo "${ECHO_T}yes" >&6 | |
7665 | else | |
7666 | echo "$as_me:$LINENO: result: no" >&5 | |
7667 | echo "${ECHO_T}no" >&6 | |
7668 | fi | |
7669 | ||
7670 | ||
7671 | enablestring= | |
7672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7673 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7674 | no_cache=0 | |
7675 | # Check whether --enable-button or --disable-button was given. | |
7676 | if test "${enable_button+set}" = set; then | |
7677 | enableval="$enable_button" | |
7678 | ||
7679 | if test "$enableval" = yes; then | |
7680 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7681 | else | |
7682 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7683 | fi | |
7684 | ||
7685 | else | |
7686 | ||
7687 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7688 | if test "x$LINE" != x ; then | |
7689 | eval "DEFAULT_$LINE" | |
7690 | else | |
7691 | no_cache=1 | |
7692 | fi | |
7693 | ||
7694 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7695 | ||
7696 | fi; | |
7697 | ||
7698 | eval "$ac_cv_use_button" | |
7699 | if test "$no_cache" != 1; then | |
7700 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7701 | fi | |
7702 | ||
7703 | if test "$wxUSE_BUTTON" = yes; then | |
7704 | echo "$as_me:$LINENO: result: yes" >&5 | |
7705 | echo "${ECHO_T}yes" >&6 | |
7706 | else | |
7707 | echo "$as_me:$LINENO: result: no" >&5 | |
7708 | echo "${ECHO_T}no" >&6 | |
7709 | fi | |
7710 | ||
7711 | ||
7712 | enablestring= | |
7713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7714 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7715 | no_cache=0 | |
7716 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7717 | if test "${enable_bmpbutton+set}" = set; then | |
7718 | enableval="$enable_bmpbutton" | |
7719 | ||
7720 | if test "$enableval" = yes; then | |
7721 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7722 | else | |
7723 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7724 | fi | |
7725 | ||
7726 | else | |
7727 | ||
7728 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7729 | if test "x$LINE" != x ; then | |
7730 | eval "DEFAULT_$LINE" | |
7731 | else | |
7732 | no_cache=1 | |
7733 | fi | |
7734 | ||
7735 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7736 | ||
7737 | fi; | |
7738 | ||
7739 | eval "$ac_cv_use_bmpbutton" | |
7740 | if test "$no_cache" != 1; then | |
7741 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7742 | fi | |
7743 | ||
7744 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7745 | echo "$as_me:$LINENO: result: yes" >&5 | |
7746 | echo "${ECHO_T}yes" >&6 | |
7747 | else | |
7748 | echo "$as_me:$LINENO: result: no" >&5 | |
7749 | echo "${ECHO_T}no" >&6 | |
7750 | fi | |
7751 | ||
7752 | ||
7753 | enablestring= | |
7754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7755 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7756 | no_cache=0 | |
7757 | # Check whether --enable-calendar or --disable-calendar was given. | |
7758 | if test "${enable_calendar+set}" = set; then | |
7759 | enableval="$enable_calendar" | |
7760 | ||
7761 | if test "$enableval" = yes; then | |
7762 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7763 | else | |
7764 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7765 | fi | |
7766 | ||
7767 | else | |
7768 | ||
7769 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7770 | if test "x$LINE" != x ; then | |
7771 | eval "DEFAULT_$LINE" | |
7772 | else | |
7773 | no_cache=1 | |
7774 | fi | |
7775 | ||
7776 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7777 | ||
7778 | fi; | |
7779 | ||
7780 | eval "$ac_cv_use_calendar" | |
7781 | if test "$no_cache" != 1; then | |
7782 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7783 | fi | |
7784 | ||
7785 | if test "$wxUSE_CALCTRL" = yes; then | |
7786 | echo "$as_me:$LINENO: result: yes" >&5 | |
7787 | echo "${ECHO_T}yes" >&6 | |
7788 | else | |
7789 | echo "$as_me:$LINENO: result: no" >&5 | |
7790 | echo "${ECHO_T}no" >&6 | |
7791 | fi | |
7792 | ||
7793 | ||
7794 | enablestring= | |
7795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7796 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7797 | no_cache=0 | |
7798 | # Check whether --enable-caret or --disable-caret was given. | |
7799 | if test "${enable_caret+set}" = set; then | |
7800 | enableval="$enable_caret" | |
7801 | ||
7802 | if test "$enableval" = yes; then | |
7803 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7804 | else | |
7805 | ac_cv_use_caret='wxUSE_CARET=no' | |
7806 | fi | |
7807 | ||
7808 | else | |
7809 | ||
7810 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7811 | if test "x$LINE" != x ; then | |
7812 | eval "DEFAULT_$LINE" | |
7813 | else | |
7814 | no_cache=1 | |
7815 | fi | |
7816 | ||
7817 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7818 | ||
7819 | fi; | |
7820 | ||
7821 | eval "$ac_cv_use_caret" | |
7822 | if test "$no_cache" != 1; then | |
7823 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7824 | fi | |
7825 | ||
7826 | if test "$wxUSE_CARET" = yes; then | |
7827 | echo "$as_me:$LINENO: result: yes" >&5 | |
7828 | echo "${ECHO_T}yes" >&6 | |
7829 | else | |
7830 | echo "$as_me:$LINENO: result: no" >&5 | |
7831 | echo "${ECHO_T}no" >&6 | |
7832 | fi | |
7833 | ||
7834 | ||
7835 | enablestring= | |
7836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7837 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7838 | no_cache=0 | |
7839 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7840 | if test "${enable_checkbox+set}" = set; then | |
7841 | enableval="$enable_checkbox" | |
7842 | ||
7843 | if test "$enableval" = yes; then | |
7844 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7845 | else | |
7846 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7847 | fi | |
7848 | ||
7849 | else | |
7850 | ||
7851 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7852 | if test "x$LINE" != x ; then | |
7853 | eval "DEFAULT_$LINE" | |
7854 | else | |
7855 | no_cache=1 | |
7856 | fi | |
7857 | ||
7858 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7859 | ||
7860 | fi; | |
7861 | ||
7862 | eval "$ac_cv_use_checkbox" | |
7863 | if test "$no_cache" != 1; then | |
7864 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7865 | fi | |
7866 | ||
7867 | if test "$wxUSE_CHECKBOX" = yes; then | |
7868 | echo "$as_me:$LINENO: result: yes" >&5 | |
7869 | echo "${ECHO_T}yes" >&6 | |
7870 | else | |
7871 | echo "$as_me:$LINENO: result: no" >&5 | |
7872 | echo "${ECHO_T}no" >&6 | |
7873 | fi | |
7874 | ||
7875 | ||
7876 | enablestring= | |
7877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7878 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7879 | no_cache=0 | |
7880 | # Check whether --enable-checklst or --disable-checklst was given. | |
7881 | if test "${enable_checklst+set}" = set; then | |
7882 | enableval="$enable_checklst" | |
7883 | ||
7884 | if test "$enableval" = yes; then | |
7885 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7886 | else | |
7887 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7888 | fi | |
7889 | ||
7890 | else | |
7891 | ||
7892 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7893 | if test "x$LINE" != x ; then | |
7894 | eval "DEFAULT_$LINE" | |
7895 | else | |
7896 | no_cache=1 | |
7897 | fi | |
7898 | ||
7899 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7900 | ||
7901 | fi; | |
7902 | ||
7903 | eval "$ac_cv_use_checklst" | |
7904 | if test "$no_cache" != 1; then | |
7905 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7906 | fi | |
7907 | ||
7908 | if test "$wxUSE_CHECKLST" = yes; then | |
7909 | echo "$as_me:$LINENO: result: yes" >&5 | |
7910 | echo "${ECHO_T}yes" >&6 | |
7911 | else | |
7912 | echo "$as_me:$LINENO: result: no" >&5 | |
7913 | echo "${ECHO_T}no" >&6 | |
7914 | fi | |
7915 | ||
7916 | ||
7917 | enablestring= | |
7918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7919 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7920 | no_cache=0 | |
7921 | # Check whether --enable-choice or --disable-choice was given. | |
7922 | if test "${enable_choice+set}" = set; then | |
7923 | enableval="$enable_choice" | |
7924 | ||
7925 | if test "$enableval" = yes; then | |
7926 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7927 | else | |
7928 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7929 | fi | |
7930 | ||
7931 | else | |
7932 | ||
7933 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7934 | if test "x$LINE" != x ; then | |
7935 | eval "DEFAULT_$LINE" | |
7936 | else | |
7937 | no_cache=1 | |
7938 | fi | |
7939 | ||
7940 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7941 | ||
7942 | fi; | |
7943 | ||
7944 | eval "$ac_cv_use_choice" | |
7945 | if test "$no_cache" != 1; then | |
7946 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7947 | fi | |
7948 | ||
7949 | if test "$wxUSE_CHOICE" = yes; then | |
7950 | echo "$as_me:$LINENO: result: yes" >&5 | |
7951 | echo "${ECHO_T}yes" >&6 | |
7952 | else | |
7953 | echo "$as_me:$LINENO: result: no" >&5 | |
7954 | echo "${ECHO_T}no" >&6 | |
7955 | fi | |
7956 | ||
7957 | ||
92bbdbcd WS |
7958 | enablestring= |
7959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7960 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7961 | no_cache=0 | |
7962 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7963 | if test "${enable_choicebook+set}" = set; then | |
7964 | enableval="$enable_choicebook" | |
7965 | ||
7966 | if test "$enableval" = yes; then | |
7967 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7968 | else | |
7969 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7970 | fi | |
7971 | ||
7972 | else | |
7973 | ||
7974 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7975 | if test "x$LINE" != x ; then | |
7976 | eval "DEFAULT_$LINE" | |
7977 | else | |
7978 | no_cache=1 | |
7979 | fi | |
7980 | ||
7981 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7982 | ||
7983 | fi; | |
7984 | ||
7985 | eval "$ac_cv_use_choicebook" | |
7986 | if test "$no_cache" != 1; then | |
7987 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7988 | fi | |
7989 | ||
7990 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7991 | echo "$as_me:$LINENO: result: yes" >&5 | |
7992 | echo "${ECHO_T}yes" >&6 | |
7993 | else | |
7994 | echo "$as_me:$LINENO: result: no" >&5 | |
7995 | echo "${ECHO_T}no" >&6 | |
7996 | fi | |
7997 | ||
7998 | ||
a848cd7e SC |
7999 | enablestring= |
8000 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
8001 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
8002 | no_cache=0 | |
8003 | # Check whether --enable-combobox or --disable-combobox was given. | |
8004 | if test "${enable_combobox+set}" = set; then | |
8005 | enableval="$enable_combobox" | |
8006 | ||
8007 | if test "$enableval" = yes; then | |
8008 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
8009 | else | |
8010 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
8011 | fi | |
8012 | ||
8013 | else | |
8014 | ||
8015 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
8016 | if test "x$LINE" != x ; then | |
8017 | eval "DEFAULT_$LINE" | |
8018 | else | |
8019 | no_cache=1 | |
8020 | fi | |
8021 | ||
8022 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
8023 | ||
8024 | fi; | |
8025 | ||
8026 | eval "$ac_cv_use_combobox" | |
8027 | if test "$no_cache" != 1; then | |
8028 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
8029 | fi | |
8030 | ||
8031 | if test "$wxUSE_COMBOBOX" = yes; then | |
8032 | echo "$as_me:$LINENO: result: yes" >&5 | |
8033 | echo "${ECHO_T}yes" >&6 | |
8034 | else | |
8035 | echo "$as_me:$LINENO: result: no" >&5 | |
8036 | echo "${ECHO_T}no" >&6 | |
8037 | fi | |
8038 | ||
8039 | ||
da98e9be VZ |
8040 | enablestring= |
8041 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
8042 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
8043 | no_cache=0 | |
8044 | # Check whether --enable-datepick or --disable-datepick was given. | |
8045 | if test "${enable_datepick+set}" = set; then | |
8046 | enableval="$enable_datepick" | |
8047 | ||
8048 | if test "$enableval" = yes; then | |
8049 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
8050 | else | |
8051 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
8052 | fi | |
8053 | ||
8054 | else | |
8055 | ||
8056 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
8057 | if test "x$LINE" != x ; then | |
8058 | eval "DEFAULT_$LINE" | |
8059 | else | |
8060 | no_cache=1 | |
8061 | fi | |
8062 | ||
8063 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
8064 | ||
8065 | fi; | |
8066 | ||
8067 | eval "$ac_cv_use_datepick" | |
8068 | if test "$no_cache" != 1; then | |
8069 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
8070 | fi | |
8071 | ||
8072 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
8073 | echo "$as_me:$LINENO: result: yes" >&5 | |
8074 | echo "${ECHO_T}yes" >&6 | |
8075 | else | |
8076 | echo "$as_me:$LINENO: result: no" >&5 | |
8077 | echo "${ECHO_T}no" >&6 | |
8078 | fi | |
8079 | ||
8080 | ||
a848cd7e SC |
8081 | enablestring= |
8082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
8083 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
8084 | no_cache=0 | |
8085 | # Check whether --enable-display or --disable-display was given. | |
8086 | if test "${enable_display+set}" = set; then | |
8087 | enableval="$enable_display" | |
8088 | ||
8089 | if test "$enableval" = yes; then | |
8090 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
8091 | else | |
8092 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
8093 | fi | |
8094 | ||
8095 | else | |
8096 | ||
8097 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
8098 | if test "x$LINE" != x ; then | |
8099 | eval "DEFAULT_$LINE" | |
8100 | else | |
8101 | no_cache=1 | |
8102 | fi | |
8103 | ||
8104 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
8105 | ||
8106 | fi; | |
8107 | ||
8108 | eval "$ac_cv_use_display" | |
8109 | if test "$no_cache" != 1; then | |
8110 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
8111 | fi | |
8112 | ||
8113 | if test "$wxUSE_DISPLAY" = yes; then | |
8114 | echo "$as_me:$LINENO: result: yes" >&5 | |
8115 | echo "${ECHO_T}yes" >&6 | |
8116 | else | |
8117 | echo "$as_me:$LINENO: result: no" >&5 | |
8118 | echo "${ECHO_T}no" >&6 | |
8119 | fi | |
8120 | ||
8121 | ||
8122 | enablestring= | |
8123 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
8124 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
8125 | no_cache=0 | |
8126 | # Check whether --enable-gauge or --disable-gauge was given. | |
8127 | if test "${enable_gauge+set}" = set; then | |
8128 | enableval="$enable_gauge" | |
8129 | ||
8130 | if test "$enableval" = yes; then | |
8131 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
8132 | else | |
8133 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
8134 | fi | |
8135 | ||
8136 | else | |
8137 | ||
8138 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
8139 | if test "x$LINE" != x ; then | |
8140 | eval "DEFAULT_$LINE" | |
8141 | else | |
8142 | no_cache=1 | |
8143 | fi | |
8144 | ||
8145 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8146 | ||
8147 | fi; | |
8148 | ||
8149 | eval "$ac_cv_use_gauge" | |
8150 | if test "$no_cache" != 1; then | |
8151 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8152 | fi | |
8153 | ||
8154 | if test "$wxUSE_GAUGE" = yes; then | |
8155 | echo "$as_me:$LINENO: result: yes" >&5 | |
8156 | echo "${ECHO_T}yes" >&6 | |
8157 | else | |
8158 | echo "$as_me:$LINENO: result: no" >&5 | |
8159 | echo "${ECHO_T}no" >&6 | |
8160 | fi | |
8161 | ||
8162 | ||
8163 | enablestring= | |
8164 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8165 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8166 | no_cache=0 | |
8167 | # Check whether --enable-grid or --disable-grid was given. | |
8168 | if test "${enable_grid+set}" = set; then | |
8169 | enableval="$enable_grid" | |
8170 | ||
8171 | if test "$enableval" = yes; then | |
8172 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8173 | else | |
8174 | ac_cv_use_grid='wxUSE_GRID=no' | |
8175 | fi | |
8176 | ||
8177 | else | |
8178 | ||
8179 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8180 | if test "x$LINE" != x ; then | |
8181 | eval "DEFAULT_$LINE" | |
8182 | else | |
8183 | no_cache=1 | |
8184 | fi | |
8185 | ||
8186 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8187 | ||
8188 | fi; | |
8189 | ||
8190 | eval "$ac_cv_use_grid" | |
8191 | if test "$no_cache" != 1; then | |
8192 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8193 | fi | |
8194 | ||
8195 | if test "$wxUSE_GRID" = yes; then | |
8196 | echo "$as_me:$LINENO: result: yes" >&5 | |
8197 | echo "${ECHO_T}yes" >&6 | |
8198 | else | |
8199 | echo "$as_me:$LINENO: result: no" >&5 | |
8200 | echo "${ECHO_T}no" >&6 | |
8201 | fi | |
8202 | ||
8203 | ||
20e34ecc RR |
8204 | enablestring= |
8205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8206 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8207 | no_cache=0 | |
8208 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8209 | if test "${enable_dataviewctrl+set}" = set; then | |
8210 | enableval="$enable_dataviewctrl" | |
8211 | ||
8212 | if test "$enableval" = yes; then | |
8213 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8214 | else | |
8215 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8216 | fi | |
8217 | ||
8218 | else | |
8219 | ||
8220 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8221 | if test "x$LINE" != x ; then | |
8222 | eval "DEFAULT_$LINE" | |
8223 | else | |
8224 | no_cache=1 | |
8225 | fi | |
8226 | ||
8227 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8228 | ||
8229 | fi; | |
8230 | ||
8231 | eval "$ac_cv_use_dataviewctrl" | |
8232 | if test "$no_cache" != 1; then | |
8233 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
8234 | fi | |
8235 | ||
8236 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
8237 | echo "$as_me:$LINENO: result: yes" >&5 | |
8238 | echo "${ECHO_T}yes" >&6 | |
8239 | else | |
8240 | echo "$as_me:$LINENO: result: no" >&5 | |
8241 | echo "${ECHO_T}no" >&6 | |
8242 | fi | |
8243 | ||
8244 | ||
a848cd7e SC |
8245 | enablestring= |
8246 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
8247 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
8248 | no_cache=0 | |
8249 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
8250 | if test "${enable_imaglist+set}" = set; then | |
8251 | enableval="$enable_imaglist" | |
8252 | ||
8253 | if test "$enableval" = yes; then | |
8254 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
8255 | else | |
8256 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
8257 | fi | |
8258 | ||
8259 | else | |
8260 | ||
8261 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
8262 | if test "x$LINE" != x ; then | |
8263 | eval "DEFAULT_$LINE" | |
8264 | else | |
8265 | no_cache=1 | |
8266 | fi | |
8267 | ||
8268 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8269 | ||
8270 | fi; | |
8271 | ||
8272 | eval "$ac_cv_use_imaglist" | |
8273 | if test "$no_cache" != 1; then | |
8274 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
8275 | fi | |
8276 | ||
8277 | if test "$wxUSE_IMAGLIST" = yes; then | |
8278 | echo "$as_me:$LINENO: result: yes" >&5 | |
8279 | echo "${ECHO_T}yes" >&6 | |
8280 | else | |
8281 | echo "$as_me:$LINENO: result: no" >&5 | |
8282 | echo "${ECHO_T}no" >&6 | |
8283 | fi | |
8284 | ||
8285 | ||
8286 | enablestring= | |
8287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8288 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8289 | no_cache=0 | |
8290 | # Check whether --enable-listbook or --disable-listbook was given. | |
8291 | if test "${enable_listbook+set}" = set; then | |
8292 | enableval="$enable_listbook" | |
8293 | ||
8294 | if test "$enableval" = yes; then | |
8295 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8296 | else | |
8297 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8298 | fi | |
8299 | ||
8300 | else | |
8301 | ||
8302 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8303 | if test "x$LINE" != x ; then | |
8304 | eval "DEFAULT_$LINE" | |
8305 | else | |
8306 | no_cache=1 | |
8307 | fi | |
8308 | ||
8309 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8310 | ||
8311 | fi; | |
8312 | ||
8313 | eval "$ac_cv_use_listbook" | |
8314 | if test "$no_cache" != 1; then | |
8315 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8316 | fi | |
8317 | ||
8318 | if test "$wxUSE_LISTBOOK" = yes; then | |
8319 | echo "$as_me:$LINENO: result: yes" >&5 | |
8320 | echo "${ECHO_T}yes" >&6 | |
8321 | else | |
8322 | echo "$as_me:$LINENO: result: no" >&5 | |
8323 | echo "${ECHO_T}no" >&6 | |
8324 | fi | |
8325 | ||
8326 | ||
8327 | enablestring= | |
8328 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8329 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8330 | no_cache=0 | |
8331 | # Check whether --enable-listbox or --disable-listbox was given. | |
8332 | if test "${enable_listbox+set}" = set; then | |
8333 | enableval="$enable_listbox" | |
8334 | ||
8335 | if test "$enableval" = yes; then | |
8336 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8337 | else | |
8338 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8339 | fi | |
8340 | ||
8341 | else | |
8342 | ||
8343 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8344 | if test "x$LINE" != x ; then | |
8345 | eval "DEFAULT_$LINE" | |
8346 | else | |
8347 | no_cache=1 | |
8348 | fi | |
8349 | ||
8350 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8351 | ||
8352 | fi; | |
8353 | ||
8354 | eval "$ac_cv_use_listbox" | |
8355 | if test "$no_cache" != 1; then | |
8356 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8357 | fi | |
8358 | ||
8359 | if test "$wxUSE_LISTBOX" = yes; then | |
8360 | echo "$as_me:$LINENO: result: yes" >&5 | |
8361 | echo "${ECHO_T}yes" >&6 | |
8362 | else | |
8363 | echo "$as_me:$LINENO: result: no" >&5 | |
8364 | echo "${ECHO_T}no" >&6 | |
8365 | fi | |
8366 | ||
8367 | ||
8368 | enablestring= | |
8369 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8370 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8371 | no_cache=0 | |
8372 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8373 | if test "${enable_listctrl+set}" = set; then | |
8374 | enableval="$enable_listctrl" | |
8375 | ||
8376 | if test "$enableval" = yes; then | |
8377 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8378 | else | |
8379 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8380 | fi | |
8381 | ||
8382 | else | |
8383 | ||
8384 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8385 | if test "x$LINE" != x ; then | |
8386 | eval "DEFAULT_$LINE" | |
8387 | else | |
8388 | no_cache=1 | |
8389 | fi | |
8390 | ||
8391 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8392 | ||
8393 | fi; | |
8394 | ||
8395 | eval "$ac_cv_use_listctrl" | |
8396 | if test "$no_cache" != 1; then | |
8397 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8398 | fi | |
8399 | ||
8400 | if test "$wxUSE_LISTCTRL" = yes; then | |
8401 | echo "$as_me:$LINENO: result: yes" >&5 | |
8402 | echo "${ECHO_T}yes" >&6 | |
8403 | else | |
8404 | echo "$as_me:$LINENO: result: no" >&5 | |
8405 | echo "${ECHO_T}no" >&6 | |
8406 | fi | |
8407 | ||
8408 | ||
8409 | enablestring= | |
8410 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8411 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8412 | no_cache=0 | |
8413 | # Check whether --enable-notebook or --disable-notebook was given. | |
8414 | if test "${enable_notebook+set}" = set; then | |
8415 | enableval="$enable_notebook" | |
8416 | ||
8417 | if test "$enableval" = yes; then | |
8418 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8419 | else | |
8420 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8421 | fi | |
8422 | ||
8423 | else | |
8424 | ||
8425 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8426 | if test "x$LINE" != x ; then | |
8427 | eval "DEFAULT_$LINE" | |
8428 | else | |
8429 | no_cache=1 | |
8430 | fi | |
8431 | ||
8432 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8433 | ||
8434 | fi; | |
8435 | ||
8436 | eval "$ac_cv_use_notebook" | |
8437 | if test "$no_cache" != 1; then | |
8438 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8439 | fi | |
8440 | ||
8441 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8442 | echo "$as_me:$LINENO: result: yes" >&5 | |
8443 | echo "${ECHO_T}yes" >&6 | |
8444 | else | |
8445 | echo "$as_me:$LINENO: result: no" >&5 | |
8446 | echo "${ECHO_T}no" >&6 | |
8447 | fi | |
8448 | ||
8449 | ||
8450 | enablestring= | |
8451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8452 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8453 | no_cache=0 | |
8454 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8455 | if test "${enable_radiobox+set}" = set; then | |
8456 | enableval="$enable_radiobox" | |
8457 | ||
8458 | if test "$enableval" = yes; then | |
8459 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8460 | else | |
8461 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8462 | fi | |
8463 | ||
8464 | else | |
8465 | ||
8466 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8467 | if test "x$LINE" != x ; then | |
8468 | eval "DEFAULT_$LINE" | |
8469 | else | |
8470 | no_cache=1 | |
8471 | fi | |
8472 | ||
8473 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8474 | ||
8475 | fi; | |
8476 | ||
8477 | eval "$ac_cv_use_radiobox" | |
8478 | if test "$no_cache" != 1; then | |
8479 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8480 | fi | |
8481 | ||
8482 | if test "$wxUSE_RADIOBOX" = yes; then | |
8483 | echo "$as_me:$LINENO: result: yes" >&5 | |
8484 | echo "${ECHO_T}yes" >&6 | |
8485 | else | |
8486 | echo "$as_me:$LINENO: result: no" >&5 | |
8487 | echo "${ECHO_T}no" >&6 | |
8488 | fi | |
8489 | ||
8490 | ||
8491 | enablestring= | |
8492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8493 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8494 | no_cache=0 | |
8495 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8496 | if test "${enable_radiobtn+set}" = set; then | |
8497 | enableval="$enable_radiobtn" | |
8498 | ||
8499 | if test "$enableval" = yes; then | |
8500 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8501 | else | |
8502 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8503 | fi | |
8504 | ||
8505 | else | |
8506 | ||
8507 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8508 | if test "x$LINE" != x ; then | |
8509 | eval "DEFAULT_$LINE" | |
8510 | else | |
8511 | no_cache=1 | |
8512 | fi | |
8513 | ||
8514 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8515 | ||
8516 | fi; | |
8517 | ||
8518 | eval "$ac_cv_use_radiobtn" | |
8519 | if test "$no_cache" != 1; then | |
8520 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8521 | fi | |
8522 | ||
8523 | if test "$wxUSE_RADIOBTN" = yes; then | |
8524 | echo "$as_me:$LINENO: result: yes" >&5 | |
8525 | echo "${ECHO_T}yes" >&6 | |
8526 | else | |
8527 | echo "$as_me:$LINENO: result: no" >&5 | |
8528 | echo "${ECHO_T}no" >&6 | |
8529 | fi | |
8530 | ||
8531 | ||
8532 | enablestring= | |
8533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8534 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8535 | no_cache=0 | |
8536 | # Check whether --enable-sash or --disable-sash was given. | |
8537 | if test "${enable_sash+set}" = set; then | |
8538 | enableval="$enable_sash" | |
8539 | ||
8540 | if test "$enableval" = yes; then | |
8541 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8542 | else | |
8543 | ac_cv_use_sash='wxUSE_SASH=no' | |
8544 | fi | |
8545 | ||
8546 | else | |
8547 | ||
8548 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8549 | if test "x$LINE" != x ; then | |
8550 | eval "DEFAULT_$LINE" | |
8551 | else | |
8552 | no_cache=1 | |
8553 | fi | |
8554 | ||
8555 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8556 | ||
8557 | fi; | |
8558 | ||
8559 | eval "$ac_cv_use_sash" | |
8560 | if test "$no_cache" != 1; then | |
8561 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8562 | fi | |
8563 | ||
8564 | if test "$wxUSE_SASH" = yes; then | |
8565 | echo "$as_me:$LINENO: result: yes" >&5 | |
8566 | echo "${ECHO_T}yes" >&6 | |
8567 | else | |
8568 | echo "$as_me:$LINENO: result: no" >&5 | |
8569 | echo "${ECHO_T}no" >&6 | |
8570 | fi | |
8571 | ||
8572 | ||
8573 | enablestring= | |
8574 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8575 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8576 | no_cache=0 | |
8577 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8578 | if test "${enable_scrollbar+set}" = set; then | |
8579 | enableval="$enable_scrollbar" | |
8580 | ||
8581 | if test "$enableval" = yes; then | |
8582 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8583 | else | |
8584 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8585 | fi | |
8586 | ||
8587 | else | |
8588 | ||
8589 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8590 | if test "x$LINE" != x ; then | |
8591 | eval "DEFAULT_$LINE" | |
8592 | else | |
8593 | no_cache=1 | |
8594 | fi | |
8595 | ||
8596 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8597 | ||
8598 | fi; | |
8599 | ||
8600 | eval "$ac_cv_use_scrollbar" | |
8601 | if test "$no_cache" != 1; then | |
8602 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8603 | fi | |
8604 | ||
8605 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8606 | echo "$as_me:$LINENO: result: yes" >&5 | |
8607 | echo "${ECHO_T}yes" >&6 | |
8608 | else | |
8609 | echo "$as_me:$LINENO: result: no" >&5 | |
8610 | echo "${ECHO_T}no" >&6 | |
8611 | fi | |
8612 | ||
8613 | ||
8614 | enablestring= | |
8615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8616 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8617 | no_cache=0 | |
8618 | # Check whether --enable-slider or --disable-slider was given. | |
8619 | if test "${enable_slider+set}" = set; then | |
8620 | enableval="$enable_slider" | |
8621 | ||
8622 | if test "$enableval" = yes; then | |
8623 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8624 | else | |
8625 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8626 | fi | |
8627 | ||
8628 | else | |
8629 | ||
8630 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8631 | if test "x$LINE" != x ; then | |
8632 | eval "DEFAULT_$LINE" | |
8633 | else | |
8634 | no_cache=1 | |
8635 | fi | |
8636 | ||
8637 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8638 | ||
8639 | fi; | |
8640 | ||
8641 | eval "$ac_cv_use_slider" | |
8642 | if test "$no_cache" != 1; then | |
8643 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8644 | fi | |
8645 | ||
8646 | if test "$wxUSE_SLIDER" = yes; then | |
8647 | echo "$as_me:$LINENO: result: yes" >&5 | |
8648 | echo "${ECHO_T}yes" >&6 | |
8649 | else | |
8650 | echo "$as_me:$LINENO: result: no" >&5 | |
8651 | echo "${ECHO_T}no" >&6 | |
8652 | fi | |
8653 | ||
8654 | ||
8655 | enablestring= | |
8656 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8657 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8658 | no_cache=0 | |
8659 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8660 | if test "${enable_spinbtn+set}" = set; then | |
8661 | enableval="$enable_spinbtn" | |
8662 | ||
8663 | if test "$enableval" = yes; then | |
8664 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8665 | else | |
8666 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8667 | fi | |
8668 | ||
8669 | else | |
8670 | ||
8671 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8672 | if test "x$LINE" != x ; then | |
8673 | eval "DEFAULT_$LINE" | |
8674 | else | |
8675 | no_cache=1 | |
8676 | fi | |
8677 | ||
8678 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8679 | ||
8680 | fi; | |
8681 | ||
8682 | eval "$ac_cv_use_spinbtn" | |
8683 | if test "$no_cache" != 1; then | |
8684 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8685 | fi | |
8686 | ||
8687 | if test "$wxUSE_SPINBTN" = yes; then | |
8688 | echo "$as_me:$LINENO: result: yes" >&5 | |
8689 | echo "${ECHO_T}yes" >&6 | |
8690 | else | |
8691 | echo "$as_me:$LINENO: result: no" >&5 | |
8692 | echo "${ECHO_T}no" >&6 | |
8693 | fi | |
8694 | ||
8695 | ||
8696 | enablestring= | |
8697 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8698 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8699 | no_cache=0 | |
8700 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8701 | if test "${enable_spinctrl+set}" = set; then | |
8702 | enableval="$enable_spinctrl" | |
8703 | ||
8704 | if test "$enableval" = yes; then | |
8705 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8706 | else | |
8707 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8708 | fi | |
8709 | ||
8710 | else | |
8711 | ||
8712 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8713 | if test "x$LINE" != x ; then | |
8714 | eval "DEFAULT_$LINE" | |
8715 | else | |
8716 | no_cache=1 | |
8717 | fi | |
8718 | ||
8719 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8720 | ||
8721 | fi; | |
8722 | ||
8723 | eval "$ac_cv_use_spinctrl" | |
8724 | if test "$no_cache" != 1; then | |
8725 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8726 | fi | |
8727 | ||
8728 | if test "$wxUSE_SPINCTRL" = yes; then | |
8729 | echo "$as_me:$LINENO: result: yes" >&5 | |
8730 | echo "${ECHO_T}yes" >&6 | |
8731 | else | |
8732 | echo "$as_me:$LINENO: result: no" >&5 | |
8733 | echo "${ECHO_T}no" >&6 | |
8734 | fi | |
8735 | ||
8736 | ||
8737 | enablestring= | |
8738 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8739 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8740 | no_cache=0 | |
8741 | # Check whether --enable-splitter or --disable-splitter was given. | |
8742 | if test "${enable_splitter+set}" = set; then | |
8743 | enableval="$enable_splitter" | |
8744 | ||
8745 | if test "$enableval" = yes; then | |
8746 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8747 | else | |
8748 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8749 | fi | |
8750 | ||
8751 | else | |
8752 | ||
8753 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8754 | if test "x$LINE" != x ; then | |
8755 | eval "DEFAULT_$LINE" | |
8756 | else | |
8757 | no_cache=1 | |
8758 | fi | |
8759 | ||
8760 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8761 | ||
8762 | fi; | |
8763 | ||
8764 | eval "$ac_cv_use_splitter" | |
8765 | if test "$no_cache" != 1; then | |
8766 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8767 | fi | |
8768 | ||
8769 | if test "$wxUSE_SPLITTER" = yes; then | |
8770 | echo "$as_me:$LINENO: result: yes" >&5 | |
8771 | echo "${ECHO_T}yes" >&6 | |
8772 | else | |
8773 | echo "$as_me:$LINENO: result: no" >&5 | |
8774 | echo "${ECHO_T}no" >&6 | |
8775 | fi | |
8776 | ||
8777 | ||
8778 | enablestring= | |
8779 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8780 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8781 | no_cache=0 | |
8782 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8783 | if test "${enable_statbmp+set}" = set; then | |
8784 | enableval="$enable_statbmp" | |
8785 | ||
8786 | if test "$enableval" = yes; then | |
8787 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8788 | else | |
8789 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8790 | fi | |
8791 | ||
8792 | else | |
8793 | ||
8794 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8795 | if test "x$LINE" != x ; then | |
8796 | eval "DEFAULT_$LINE" | |
8797 | else | |
8798 | no_cache=1 | |
8799 | fi | |
8800 | ||
8801 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8802 | ||
8803 | fi; | |
8804 | ||
8805 | eval "$ac_cv_use_statbmp" | |
8806 | if test "$no_cache" != 1; then | |
8807 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8808 | fi | |
8809 | ||
8810 | if test "$wxUSE_STATBMP" = yes; then | |
8811 | echo "$as_me:$LINENO: result: yes" >&5 | |
8812 | echo "${ECHO_T}yes" >&6 | |
8813 | else | |
8814 | echo "$as_me:$LINENO: result: no" >&5 | |
8815 | echo "${ECHO_T}no" >&6 | |
8816 | fi | |
8817 | ||
8818 | ||
8819 | enablestring= | |
8820 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8821 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8822 | no_cache=0 | |
8823 | # Check whether --enable-statbox or --disable-statbox was given. | |
8824 | if test "${enable_statbox+set}" = set; then | |
8825 | enableval="$enable_statbox" | |
8826 | ||
8827 | if test "$enableval" = yes; then | |
8828 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8829 | else | |
8830 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8831 | fi | |
8832 | ||
8833 | else | |
8834 | ||
8835 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8836 | if test "x$LINE" != x ; then | |
8837 | eval "DEFAULT_$LINE" | |
8838 | else | |
8839 | no_cache=1 | |
8840 | fi | |
8841 | ||
8842 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8843 | ||
8844 | fi; | |
8845 | ||
8846 | eval "$ac_cv_use_statbox" | |
8847 | if test "$no_cache" != 1; then | |
8848 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8849 | fi | |
8850 | ||
8851 | if test "$wxUSE_STATBOX" = yes; then | |
8852 | echo "$as_me:$LINENO: result: yes" >&5 | |
8853 | echo "${ECHO_T}yes" >&6 | |
8854 | else | |
8855 | echo "$as_me:$LINENO: result: no" >&5 | |
8856 | echo "${ECHO_T}no" >&6 | |
8857 | fi | |
8858 | ||
8859 | ||
8860 | enablestring= | |
8861 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8862 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8863 | no_cache=0 | |
8864 | # Check whether --enable-statline or --disable-statline was given. | |
8865 | if test "${enable_statline+set}" = set; then | |
8866 | enableval="$enable_statline" | |
8867 | ||
8868 | if test "$enableval" = yes; then | |
8869 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8870 | else | |
8871 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8872 | fi | |
8873 | ||
8874 | else | |
8875 | ||
8876 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8877 | if test "x$LINE" != x ; then | |
8878 | eval "DEFAULT_$LINE" | |
8879 | else | |
8880 | no_cache=1 | |
8881 | fi | |
8882 | ||
8883 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8884 | ||
8885 | fi; | |
8886 | ||
8887 | eval "$ac_cv_use_statline" | |
8888 | if test "$no_cache" != 1; then | |
8889 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8890 | fi | |
8891 | ||
8892 | if test "$wxUSE_STATLINE" = yes; then | |
8893 | echo "$as_me:$LINENO: result: yes" >&5 | |
8894 | echo "${ECHO_T}yes" >&6 | |
8895 | else | |
8896 | echo "$as_me:$LINENO: result: no" >&5 | |
8897 | echo "${ECHO_T}no" >&6 | |
8898 | fi | |
8899 | ||
8900 | ||
8901 | enablestring= | |
8902 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8903 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8904 | no_cache=0 | |
8905 | # Check whether --enable-stattext or --disable-stattext was given. | |
8906 | if test "${enable_stattext+set}" = set; then | |
8907 | enableval="$enable_stattext" | |
8908 | ||
8909 | if test "$enableval" = yes; then | |
8910 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8911 | else | |
8912 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8913 | fi | |
8914 | ||
8915 | else | |
8916 | ||
8917 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8918 | if test "x$LINE" != x ; then | |
8919 | eval "DEFAULT_$LINE" | |
8920 | else | |
8921 | no_cache=1 | |
8922 | fi | |
8923 | ||
8924 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8925 | ||
8926 | fi; | |
8927 | ||
8928 | eval "$ac_cv_use_stattext" | |
8929 | if test "$no_cache" != 1; then | |
8930 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8931 | fi | |
8932 | ||
8933 | if test "$wxUSE_STATTEXT" = yes; then | |
8934 | echo "$as_me:$LINENO: result: yes" >&5 | |
8935 | echo "${ECHO_T}yes" >&6 | |
8936 | else | |
8937 | echo "$as_me:$LINENO: result: no" >&5 | |
8938 | echo "${ECHO_T}no" >&6 | |
8939 | fi | |
8940 | ||
8941 | ||
8942 | enablestring= | |
8943 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8944 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8945 | no_cache=0 | |
8946 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8947 | if test "${enable_statusbar+set}" = set; then | |
8948 | enableval="$enable_statusbar" | |
8949 | ||
8950 | if test "$enableval" = yes; then | |
8951 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8952 | else | |
8953 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8954 | fi | |
8955 | ||
8956 | else | |
8957 | ||
8958 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8959 | if test "x$LINE" != x ; then | |
8960 | eval "DEFAULT_$LINE" | |
8961 | else | |
8962 | no_cache=1 | |
8963 | fi | |
8964 | ||
8965 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8966 | ||
8967 | fi; | |
8968 | ||
8969 | eval "$ac_cv_use_statusbar" | |
8970 | if test "$no_cache" != 1; then | |
8971 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8972 | fi | |
8973 | ||
8974 | if test "$wxUSE_STATUSBAR" = yes; then | |
8975 | echo "$as_me:$LINENO: result: yes" >&5 | |
8976 | echo "${ECHO_T}yes" >&6 | |
8977 | else | |
8978 | echo "$as_me:$LINENO: result: no" >&5 | |
8979 | echo "${ECHO_T}no" >&6 | |
8980 | fi | |
8981 | ||
8982 | ||
8983 | enablestring= | |
8984 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8985 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8986 | no_cache=0 | |
8987 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8988 | if test "${enable_tabdialog+set}" = set; then | |
8989 | enableval="$enable_tabdialog" | |
8990 | ||
8991 | if test "$enableval" = yes; then | |
f10e38c4 | 8992 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes' |
a848cd7e | 8993 | else |
f10e38c4 | 8994 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no' |
a848cd7e SC |
8995 | fi |
8996 | ||
8997 | else | |
8998 | ||
f10e38c4 | 8999 | LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}` |
a848cd7e SC |
9000 | if test "x$LINE" != x ; then |
9001 | eval "DEFAULT_$LINE" | |
9002 | else | |
9003 | no_cache=1 | |
9004 | fi | |
9005 | ||
f10e38c4 | 9006 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG |
a848cd7e SC |
9007 | |
9008 | fi; | |
9009 | ||
9010 | eval "$ac_cv_use_tabdialog" | |
9011 | if test "$no_cache" != 1; then | |
9012 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
9013 | fi | |
9014 | ||
f10e38c4 | 9015 | if test "$wxUSE_TAB_DIALOG" = yes; then |
a848cd7e SC |
9016 | echo "$as_me:$LINENO: result: yes" >&5 |
9017 | echo "${ECHO_T}yes" >&6 | |
9018 | else | |
9019 | echo "$as_me:$LINENO: result: no" >&5 | |
9020 | echo "${ECHO_T}no" >&6 | |
9021 | fi | |
9022 | ||
9023 | ||
9024 | enablestring= | |
9025 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
9026 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
9027 | no_cache=0 | |
9028 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
9029 | if test "${enable_textctrl+set}" = set; then | |
9030 | enableval="$enable_textctrl" | |
9031 | ||
9032 | if test "$enableval" = yes; then | |
9033 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
9034 | else | |
9035 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
9036 | fi | |
9037 | ||
9038 | else | |
9039 | ||
9040 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
9041 | if test "x$LINE" != x ; then | |
9042 | eval "DEFAULT_$LINE" | |
9043 | else | |
9044 | no_cache=1 | |
9045 | fi | |
9046 | ||
9047 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
9048 | ||
9049 | fi; | |
9050 | ||
9051 | eval "$ac_cv_use_textctrl" | |
9052 | if test "$no_cache" != 1; then | |
9053 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
9054 | fi | |
9055 | ||
9056 | if test "$wxUSE_TEXTCTRL" = yes; then | |
9057 | echo "$as_me:$LINENO: result: yes" >&5 | |
9058 | echo "${ECHO_T}yes" >&6 | |
9059 | else | |
9060 | echo "$as_me:$LINENO: result: no" >&5 | |
9061 | echo "${ECHO_T}no" >&6 | |
9062 | fi | |
9063 | ||
9064 | ||
9065 | enablestring= | |
9066 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
9067 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
9068 | no_cache=0 | |
9069 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
9070 | if test "${enable_togglebtn+set}" = set; then | |
9071 | enableval="$enable_togglebtn" | |
9072 | ||
9073 | if test "$enableval" = yes; then | |
9074 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
9075 | else | |
9076 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
9077 | fi | |
9078 | ||
9079 | else | |
9080 | ||
9081 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
9082 | if test "x$LINE" != x ; then | |
9083 | eval "DEFAULT_$LINE" | |
9084 | else | |
9085 | no_cache=1 | |
9086 | fi | |
9087 | ||
9088 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
9089 | ||
9090 | fi; | |
9091 | ||
9092 | eval "$ac_cv_use_togglebtn" | |
9093 | if test "$no_cache" != 1; then | |
9094 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
9095 | fi | |
9096 | ||
9097 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
9098 | echo "$as_me:$LINENO: result: yes" >&5 | |
9099 | echo "${ECHO_T}yes" >&6 | |
9100 | else | |
9101 | echo "$as_me:$LINENO: result: no" >&5 | |
9102 | echo "${ECHO_T}no" >&6 | |
9103 | fi | |
9104 | ||
9105 | ||
9106 | enablestring= | |
9107 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
9108 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
9109 | no_cache=0 | |
9110 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
9111 | if test "${enable_toolbar+set}" = set; then | |
9112 | enableval="$enable_toolbar" | |
9113 | ||
9114 | if test "$enableval" = yes; then | |
9115 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
9116 | else | |
9117 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
9118 | fi | |
9119 | ||
9120 | else | |
9121 | ||
9122 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
9123 | if test "x$LINE" != x ; then | |
9124 | eval "DEFAULT_$LINE" | |
9125 | else | |
9126 | no_cache=1 | |
9127 | fi | |
9128 | ||
9129 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
9130 | ||
9131 | fi; | |
9132 | ||
9133 | eval "$ac_cv_use_toolbar" | |
9134 | if test "$no_cache" != 1; then | |
9135 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
9136 | fi | |
9137 | ||
9138 | if test "$wxUSE_TOOLBAR" = yes; then | |
9139 | echo "$as_me:$LINENO: result: yes" >&5 | |
9140 | echo "${ECHO_T}yes" >&6 | |
9141 | else | |
9142 | echo "$as_me:$LINENO: result: no" >&5 | |
9143 | echo "${ECHO_T}no" >&6 | |
9144 | fi | |
9145 | ||
9146 | ||
9147 | enablestring= | |
9148 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9149 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
9150 | no_cache=0 | |
9151 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
9152 | if test "${enable_tbarnative+set}" = set; then | |
9153 | enableval="$enable_tbarnative" | |
9154 | ||
9155 | if test "$enableval" = yes; then | |
9156 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
9157 | else | |
9158 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
9159 | fi | |
9160 | ||
9161 | else | |
9162 | ||
9163 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
9164 | if test "x$LINE" != x ; then | |
9165 | eval "DEFAULT_$LINE" | |
9166 | else | |
9167 | no_cache=1 | |
9168 | fi | |
9169 | ||
9170 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
9171 | ||
9172 | fi; | |
9173 | ||
9174 | eval "$ac_cv_use_tbarnative" | |
9175 | if test "$no_cache" != 1; then | |
9176 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
9177 | fi | |
9178 | ||
9179 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
9180 | echo "$as_me:$LINENO: result: yes" >&5 | |
9181 | echo "${ECHO_T}yes" >&6 | |
9182 | else | |
9183 | echo "$as_me:$LINENO: result: no" >&5 | |
9184 | echo "${ECHO_T}no" >&6 | |
9185 | fi | |
9186 | ||
9187 | ||
9188 | enablestring= | |
9189 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
9190 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
9191 | no_cache=0 | |
9192 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
9193 | if test "${enable_tbarsmpl+set}" = set; then | |
9194 | enableval="$enable_tbarsmpl" | |
9195 | ||
9196 | if test "$enableval" = yes; then | |
9197 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
9198 | else | |
9199 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
9200 | fi | |
9201 | ||
9202 | else | |
9203 | ||
9204 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
9205 | if test "x$LINE" != x ; then | |
9206 | eval "DEFAULT_$LINE" | |
9207 | else | |
9208 | no_cache=1 | |
9209 | fi | |
9210 | ||
9211 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
9212 | ||
9213 | fi; | |
9214 | ||
9215 | eval "$ac_cv_use_tbarsmpl" | |
9216 | if test "$no_cache" != 1; then | |
9217 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
9218 | fi | |
9219 | ||
9220 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
9221 | echo "$as_me:$LINENO: result: yes" >&5 | |
9222 | echo "${ECHO_T}yes" >&6 | |
9223 | else | |
9224 | echo "$as_me:$LINENO: result: no" >&5 | |
9225 | echo "${ECHO_T}no" >&6 | |
9226 | fi | |
9227 | ||
9228 | ||
0093c2fc VZ |
9229 | enablestring= |
9230 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
9231 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
9232 | no_cache=0 | |
9233 | # Check whether --enable-treebook or --disable-treebook was given. | |
9234 | if test "${enable_treebook+set}" = set; then | |
9235 | enableval="$enable_treebook" | |
9236 | ||
9237 | if test "$enableval" = yes; then | |
9238 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
9239 | else | |
9240 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
9241 | fi | |
9242 | ||
9243 | else | |
9244 | ||
9245 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
9246 | if test "x$LINE" != x ; then | |
9247 | eval "DEFAULT_$LINE" | |
9248 | else | |
9249 | no_cache=1 | |
9250 | fi | |
9251 | ||
9252 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
9253 | ||
9254 | fi; | |
9255 | ||
9256 | eval "$ac_cv_use_treebook" | |
9257 | if test "$no_cache" != 1; then | |
9258 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
9259 | fi | |
9260 | ||
9261 | if test "$wxUSE_TREEBOOK" = yes; then | |
9262 | echo "$as_me:$LINENO: result: yes" >&5 | |
9263 | echo "${ECHO_T}yes" >&6 | |
9264 | else | |
9265 | echo "$as_me:$LINENO: result: no" >&5 | |
9266 | echo "${ECHO_T}no" >&6 | |
9267 | fi | |
9268 | ||
9269 | ||
5ec3bc43 JS |
9270 | enablestring= |
9271 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5 | |
9272 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6 | |
9273 | no_cache=0 | |
9274 | # Check whether --enable-toolbook or --disable-toolbook was given. | |
9275 | if test "${enable_toolbook+set}" = set; then | |
9276 | enableval="$enable_toolbook" | |
9277 | ||
9278 | if test "$enableval" = yes; then | |
9279 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes' | |
9280 | else | |
9281 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=no' | |
9282 | fi | |
9283 | ||
9284 | else | |
9285 | ||
9286 | LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}` | |
9287 | if test "x$LINE" != x ; then | |
9288 | eval "DEFAULT_$LINE" | |
9289 | else | |
9290 | no_cache=1 | |
9291 | fi | |
9292 | ||
9293 | ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK | |
9294 | ||
9295 | fi; | |
9296 | ||
9297 | eval "$ac_cv_use_toolbook" | |
9298 | if test "$no_cache" != 1; then | |
9299 | echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp | |
9300 | fi | |
9301 | ||
9302 | if test "$wxUSE_TOOLBOOK" = yes; then | |
9303 | echo "$as_me:$LINENO: result: yes" >&5 | |
9304 | echo "${ECHO_T}yes" >&6 | |
9305 | else | |
9306 | echo "$as_me:$LINENO: result: no" >&5 | |
9307 | echo "${ECHO_T}no" >&6 | |
9308 | fi | |
9309 | ||
9310 | ||
a848cd7e SC |
9311 | enablestring= |
9312 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
9313 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
9314 | no_cache=0 | |
9315 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
9316 | if test "${enable_treectrl+set}" = set; then | |
9317 | enableval="$enable_treectrl" | |
9318 | ||
9319 | if test "$enableval" = yes; then | |
9320 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9321 | else | |
9322 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9323 | fi | |
9324 | ||
9325 | else | |
9326 | ||
9327 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9328 | if test "x$LINE" != x ; then | |
9329 | eval "DEFAULT_$LINE" | |
9330 | else | |
9331 | no_cache=1 | |
9332 | fi | |
9333 | ||
9334 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9335 | ||
9336 | fi; | |
9337 | ||
9338 | eval "$ac_cv_use_treectrl" | |
9339 | if test "$no_cache" != 1; then | |
9340 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9341 | fi | |
9342 | ||
9343 | if test "$wxUSE_TREECTRL" = yes; then | |
9344 | echo "$as_me:$LINENO: result: yes" >&5 | |
9345 | echo "${ECHO_T}yes" >&6 | |
9346 | else | |
9347 | echo "$as_me:$LINENO: result: no" >&5 | |
9348 | echo "${ECHO_T}no" >&6 | |
9349 | fi | |
9350 | ||
9351 | ||
9352 | enablestring= | |
9353 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9354 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9355 | no_cache=0 | |
9356 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9357 | if test "${enable_tipwindow+set}" = set; then | |
9358 | enableval="$enable_tipwindow" | |
9359 | ||
9360 | if test "$enableval" = yes; then | |
9361 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9362 | else | |
9363 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9364 | fi | |
9365 | ||
9366 | else | |
9367 | ||
9368 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9369 | if test "x$LINE" != x ; then | |
9370 | eval "DEFAULT_$LINE" | |
9371 | else | |
9372 | no_cache=1 | |
9373 | fi | |
9374 | ||
9375 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9376 | ||
9377 | fi; | |
9378 | ||
9379 | eval "$ac_cv_use_tipwindow" | |
9380 | if test "$no_cache" != 1; then | |
9381 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9382 | fi | |
9383 | ||
9384 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9385 | echo "$as_me:$LINENO: result: yes" >&5 | |
9386 | echo "${ECHO_T}yes" >&6 | |
9387 | else | |
9388 | echo "$as_me:$LINENO: result: no" >&5 | |
9389 | echo "${ECHO_T}no" >&6 | |
9390 | fi | |
9391 | ||
9392 | ||
9393 | enablestring= | |
9394 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9395 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9396 | no_cache=0 | |
9397 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9398 | if test "${enable_popupwin+set}" = set; then | |
9399 | enableval="$enable_popupwin" | |
9400 | ||
9401 | if test "$enableval" = yes; then | |
9402 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9403 | else | |
9404 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9405 | fi | |
9406 | ||
9407 | else | |
9408 | ||
9409 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9410 | if test "x$LINE" != x ; then | |
9411 | eval "DEFAULT_$LINE" | |
9412 | else | |
9413 | no_cache=1 | |
9414 | fi | |
9415 | ||
9416 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9417 | ||
9418 | fi; | |
9419 | ||
9420 | eval "$ac_cv_use_popupwin" | |
9421 | if test "$no_cache" != 1; then | |
9422 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9423 | fi | |
9424 | ||
9425 | if test "$wxUSE_POPUPWIN" = yes; then | |
9426 | echo "$as_me:$LINENO: result: yes" >&5 | |
9427 | echo "${ECHO_T}yes" >&6 | |
9428 | else | |
9429 | echo "$as_me:$LINENO: result: no" >&5 | |
9430 | echo "${ECHO_T}no" >&6 | |
9431 | fi | |
9432 | ||
9433 | ||
9434 | ||
9435 | ||
9436 | enablestring= | |
9437 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9438 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9439 | no_cache=0 | |
9440 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9441 | if test "${enable_commondlg+set}" = set; then | |
9442 | enableval="$enable_commondlg" | |
9443 | ||
9444 | if test "$enableval" = yes; then | |
9445 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9446 | else | |
9447 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9448 | fi | |
9449 | ||
9450 | else | |
9451 | ||
9452 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9453 | if test "x$LINE" != x ; then | |
9454 | eval "DEFAULT_$LINE" | |
9455 | else | |
9456 | no_cache=1 | |
9457 | fi | |
9458 | ||
9459 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9460 | ||
9461 | fi; | |
9462 | ||
9463 | eval "$ac_cv_use_commondlg" | |
9464 | if test "$no_cache" != 1; then | |
9465 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9466 | fi | |
9467 | ||
9468 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9469 | echo "$as_me:$LINENO: result: yes" >&5 | |
9470 | echo "${ECHO_T}yes" >&6 | |
9471 | else | |
9472 | echo "$as_me:$LINENO: result: no" >&5 | |
9473 | echo "${ECHO_T}no" >&6 | |
9474 | fi | |
9475 | ||
9476 | ||
9477 | enablestring= | |
9478 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9479 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9480 | no_cache=0 | |
9481 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9482 | if test "${enable_choicedlg+set}" = set; then | |
9483 | enableval="$enable_choicedlg" | |
9484 | ||
9485 | if test "$enableval" = yes; then | |
9486 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9487 | else | |
9488 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9489 | fi | |
9490 | ||
9491 | else | |
9492 | ||
9493 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9494 | if test "x$LINE" != x ; then | |
9495 | eval "DEFAULT_$LINE" | |
9496 | else | |
9497 | no_cache=1 | |
9498 | fi | |
9499 | ||
9500 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9501 | ||
9502 | fi; | |
9503 | ||
9504 | eval "$ac_cv_use_choicedlg" | |
9505 | if test "$no_cache" != 1; then | |
9506 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9507 | fi | |
9508 | ||
9509 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9510 | echo "$as_me:$LINENO: result: yes" >&5 | |
9511 | echo "${ECHO_T}yes" >&6 | |
9512 | else | |
9513 | echo "$as_me:$LINENO: result: no" >&5 | |
9514 | echo "${ECHO_T}no" >&6 | |
9515 | fi | |
9516 | ||
9517 | ||
9518 | enablestring= | |
9519 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9520 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9521 | no_cache=0 | |
9522 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9523 | if test "${enable_coldlg+set}" = set; then | |
9524 | enableval="$enable_coldlg" | |
9525 | ||
9526 | if test "$enableval" = yes; then | |
9527 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9528 | else | |
9529 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9530 | fi | |
9531 | ||
9532 | else | |
9533 | ||
9534 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9535 | if test "x$LINE" != x ; then | |
9536 | eval "DEFAULT_$LINE" | |
9537 | else | |
9538 | no_cache=1 | |
9539 | fi | |
9540 | ||
9541 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9542 | ||
9543 | fi; | |
9544 | ||
9545 | eval "$ac_cv_use_coldlg" | |
9546 | if test "$no_cache" != 1; then | |
9547 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9548 | fi | |
9549 | ||
9550 | if test "$wxUSE_COLOURDLG" = yes; then | |
9551 | echo "$as_me:$LINENO: result: yes" >&5 | |
9552 | echo "${ECHO_T}yes" >&6 | |
9553 | else | |
9554 | echo "$as_me:$LINENO: result: no" >&5 | |
9555 | echo "${ECHO_T}no" >&6 | |
9556 | fi | |
9557 | ||
9558 | ||
9559 | enablestring= | |
9560 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9561 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9562 | no_cache=0 | |
9563 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9564 | if test "${enable_filedlg+set}" = set; then | |
9565 | enableval="$enable_filedlg" | |
9566 | ||
9567 | if test "$enableval" = yes; then | |
9568 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9569 | else | |
9570 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9571 | fi | |
9572 | ||
9573 | else | |
9574 | ||
9575 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9576 | if test "x$LINE" != x ; then | |
9577 | eval "DEFAULT_$LINE" | |
9578 | else | |
9579 | no_cache=1 | |
9580 | fi | |
9581 | ||
9582 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9583 | ||
9584 | fi; | |
9585 | ||
9586 | eval "$ac_cv_use_filedlg" | |
9587 | if test "$no_cache" != 1; then | |
9588 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9589 | fi | |
9590 | ||
9591 | if test "$wxUSE_FILEDLG" = yes; then | |
9592 | echo "$as_me:$LINENO: result: yes" >&5 | |
9593 | echo "${ECHO_T}yes" >&6 | |
9594 | else | |
9595 | echo "$as_me:$LINENO: result: no" >&5 | |
9596 | echo "${ECHO_T}no" >&6 | |
9597 | fi | |
9598 | ||
9599 | ||
9600 | enablestring= | |
9601 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9602 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9603 | no_cache=0 | |
9604 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9605 | if test "${enable_finddlg+set}" = set; then | |
9606 | enableval="$enable_finddlg" | |
9607 | ||
9608 | if test "$enableval" = yes; then | |
9609 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9610 | else | |
9611 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9612 | fi | |
9613 | ||
9614 | else | |
9615 | ||
9616 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9617 | if test "x$LINE" != x ; then | |
9618 | eval "DEFAULT_$LINE" | |
9619 | else | |
9620 | no_cache=1 | |
9621 | fi | |
9622 | ||
9623 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9624 | ||
9625 | fi; | |
9626 | ||
9627 | eval "$ac_cv_use_finddlg" | |
9628 | if test "$no_cache" != 1; then | |
9629 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9630 | fi | |
9631 | ||
9632 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9633 | echo "$as_me:$LINENO: result: yes" >&5 | |
9634 | echo "${ECHO_T}yes" >&6 | |
9635 | else | |
9636 | echo "$as_me:$LINENO: result: no" >&5 | |
9637 | echo "${ECHO_T}no" >&6 | |
9638 | fi | |
9639 | ||
9640 | ||
9641 | enablestring= | |
9642 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9643 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9644 | no_cache=0 | |
9645 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9646 | if test "${enable_fontdlg+set}" = set; then | |
9647 | enableval="$enable_fontdlg" | |
9648 | ||
9649 | if test "$enableval" = yes; then | |
9650 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9651 | else | |
9652 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9653 | fi | |
9654 | ||
9655 | else | |
9656 | ||
9657 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9658 | if test "x$LINE" != x ; then | |
9659 | eval "DEFAULT_$LINE" | |
9660 | else | |
9661 | no_cache=1 | |
9662 | fi | |
9663 | ||
9664 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9665 | ||
9666 | fi; | |
9667 | ||
9668 | eval "$ac_cv_use_fontdlg" | |
9669 | if test "$no_cache" != 1; then | |
9670 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9671 | fi | |
9672 | ||
9673 | if test "$wxUSE_FONTDLG" = yes; then | |
9674 | echo "$as_me:$LINENO: result: yes" >&5 | |
9675 | echo "${ECHO_T}yes" >&6 | |
9676 | else | |
9677 | echo "$as_me:$LINENO: result: no" >&5 | |
9678 | echo "${ECHO_T}no" >&6 | |
9679 | fi | |
9680 | ||
9681 | ||
9682 | enablestring= | |
9683 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9684 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9685 | no_cache=0 | |
9686 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9687 | if test "${enable_dirdlg+set}" = set; then | |
9688 | enableval="$enable_dirdlg" | |
9689 | ||
9690 | if test "$enableval" = yes; then | |
9691 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9692 | else | |
9693 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9694 | fi | |
9695 | ||
9696 | else | |
9697 | ||
9698 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9699 | if test "x$LINE" != x ; then | |
9700 | eval "DEFAULT_$LINE" | |
9701 | else | |
9702 | no_cache=1 | |
9703 | fi | |
9704 | ||
9705 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9706 | ||
9707 | fi; | |
9708 | ||
9709 | eval "$ac_cv_use_dirdlg" | |
9710 | if test "$no_cache" != 1; then | |
9711 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9712 | fi | |
9713 | ||
9714 | if test "$wxUSE_DIRDLG" = yes; then | |
9715 | echo "$as_me:$LINENO: result: yes" >&5 | |
9716 | echo "${ECHO_T}yes" >&6 | |
9717 | else | |
9718 | echo "$as_me:$LINENO: result: no" >&5 | |
9719 | echo "${ECHO_T}no" >&6 | |
9720 | fi | |
9721 | ||
9722 | ||
9723 | enablestring= | |
9724 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9725 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9726 | no_cache=0 | |
9727 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9728 | if test "${enable_msgdlg+set}" = set; then | |
9729 | enableval="$enable_msgdlg" | |
9730 | ||
9731 | if test "$enableval" = yes; then | |
9732 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9733 | else | |
9734 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9735 | fi | |
9736 | ||
9737 | else | |
9738 | ||
9739 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9740 | if test "x$LINE" != x ; then | |
9741 | eval "DEFAULT_$LINE" | |
9742 | else | |
9743 | no_cache=1 | |
9744 | fi | |
9745 | ||
9746 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9747 | ||
9748 | fi; | |
9749 | ||
9750 | eval "$ac_cv_use_msgdlg" | |
9751 | if test "$no_cache" != 1; then | |
9752 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9753 | fi | |
9754 | ||
9755 | if test "$wxUSE_MSGDLG" = yes; then | |
9756 | echo "$as_me:$LINENO: result: yes" >&5 | |
9757 | echo "${ECHO_T}yes" >&6 | |
9758 | else | |
9759 | echo "$as_me:$LINENO: result: no" >&5 | |
9760 | echo "${ECHO_T}no" >&6 | |
9761 | fi | |
9762 | ||
9763 | ||
9764 | enablestring= | |
9765 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9766 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9767 | no_cache=0 | |
9768 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9769 | if test "${enable_numberdlg+set}" = set; then | |
9770 | enableval="$enable_numberdlg" | |
9771 | ||
9772 | if test "$enableval" = yes; then | |
9773 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9774 | else | |
9775 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9776 | fi | |
9777 | ||
9778 | else | |
9779 | ||
9780 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9781 | if test "x$LINE" != x ; then | |
9782 | eval "DEFAULT_$LINE" | |
9783 | else | |
9784 | no_cache=1 | |
9785 | fi | |
9786 | ||
9787 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9788 | ||
9789 | fi; | |
9790 | ||
9791 | eval "$ac_cv_use_numberdlg" | |
9792 | if test "$no_cache" != 1; then | |
9793 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9794 | fi | |
9795 | ||
9796 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9797 | echo "$as_me:$LINENO: result: yes" >&5 | |
9798 | echo "${ECHO_T}yes" >&6 | |
9799 | else | |
9800 | echo "$as_me:$LINENO: result: no" >&5 | |
9801 | echo "${ECHO_T}no" >&6 | |
9802 | fi | |
9803 | ||
9804 | ||
9805 | enablestring= | |
9806 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9807 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9808 | no_cache=0 | |
9809 | # Check whether --enable-splash or --disable-splash was given. | |
9810 | if test "${enable_splash+set}" = set; then | |
9811 | enableval="$enable_splash" | |
9812 | ||
9813 | if test "$enableval" = yes; then | |
9814 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9815 | else | |
9816 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9817 | fi | |
9818 | ||
9819 | else | |
9820 | ||
9821 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9822 | if test "x$LINE" != x ; then | |
9823 | eval "DEFAULT_$LINE" | |
9824 | else | |
9825 | no_cache=1 | |
9826 | fi | |
9827 | ||
9828 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9829 | ||
9830 | fi; | |
9831 | ||
9832 | eval "$ac_cv_use_splash" | |
9833 | if test "$no_cache" != 1; then | |
9834 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9835 | fi | |
9836 | ||
9837 | if test "$wxUSE_SPLASH" = yes; then | |
9838 | echo "$as_me:$LINENO: result: yes" >&5 | |
9839 | echo "${ECHO_T}yes" >&6 | |
9840 | else | |
9841 | echo "$as_me:$LINENO: result: no" >&5 | |
9842 | echo "${ECHO_T}no" >&6 | |
9843 | fi | |
9844 | ||
9845 | ||
9846 | enablestring= | |
9847 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9848 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9849 | no_cache=0 | |
9850 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9851 | if test "${enable_textdlg+set}" = set; then | |
9852 | enableval="$enable_textdlg" | |
9853 | ||
9854 | if test "$enableval" = yes; then | |
9855 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9856 | else | |
9857 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9858 | fi | |
9859 | ||
9860 | else | |
9861 | ||
9862 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9863 | if test "x$LINE" != x ; then | |
9864 | eval "DEFAULT_$LINE" | |
9865 | else | |
9866 | no_cache=1 | |
9867 | fi | |
9868 | ||
9869 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9870 | ||
9871 | fi; | |
9872 | ||
9873 | eval "$ac_cv_use_textdlg" | |
9874 | if test "$no_cache" != 1; then | |
9875 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9876 | fi | |
9877 | ||
9878 | if test "$wxUSE_TEXTDLG" = yes; then | |
9879 | echo "$as_me:$LINENO: result: yes" >&5 | |
9880 | echo "${ECHO_T}yes" >&6 | |
9881 | else | |
9882 | echo "$as_me:$LINENO: result: no" >&5 | |
9883 | echo "${ECHO_T}no" >&6 | |
9884 | fi | |
9885 | ||
9886 | ||
9887 | enablestring= | |
9888 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9889 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9890 | no_cache=0 | |
9891 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9892 | if test "${enable_tipdlg+set}" = set; then | |
9893 | enableval="$enable_tipdlg" | |
9894 | ||
9895 | if test "$enableval" = yes; then | |
9896 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9897 | else | |
9898 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9899 | fi | |
9900 | ||
9901 | else | |
9902 | ||
9903 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9904 | if test "x$LINE" != x ; then | |
9905 | eval "DEFAULT_$LINE" | |
9906 | else | |
9907 | no_cache=1 | |
9908 | fi | |
9909 | ||
9910 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9911 | ||
9912 | fi; | |
9913 | ||
9914 | eval "$ac_cv_use_tipdlg" | |
9915 | if test "$no_cache" != 1; then | |
9916 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9917 | fi | |
9918 | ||
9919 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9920 | echo "$as_me:$LINENO: result: yes" >&5 | |
9921 | echo "${ECHO_T}yes" >&6 | |
9922 | else | |
9923 | echo "$as_me:$LINENO: result: no" >&5 | |
9924 | echo "${ECHO_T}no" >&6 | |
9925 | fi | |
9926 | ||
9927 | ||
9928 | enablestring= | |
9929 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9930 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9931 | no_cache=0 | |
9932 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9933 | if test "${enable_progressdlg+set}" = set; then | |
9934 | enableval="$enable_progressdlg" | |
9935 | ||
9936 | if test "$enableval" = yes; then | |
9937 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9938 | else | |
9939 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9940 | fi | |
9941 | ||
9942 | else | |
9943 | ||
9944 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9945 | if test "x$LINE" != x ; then | |
9946 | eval "DEFAULT_$LINE" | |
9947 | else | |
9948 | no_cache=1 | |
9949 | fi | |
9950 | ||
9951 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9952 | ||
9953 | fi; | |
9954 | ||
9955 | eval "$ac_cv_use_progressdlg" | |
9956 | if test "$no_cache" != 1; then | |
9957 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9958 | fi | |
9959 | ||
9960 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9961 | echo "$as_me:$LINENO: result: yes" >&5 | |
9962 | echo "${ECHO_T}yes" >&6 | |
9963 | else | |
9964 | echo "$as_me:$LINENO: result: no" >&5 | |
9965 | echo "${ECHO_T}no" >&6 | |
9966 | fi | |
9967 | ||
9968 | ||
9969 | enablestring= | |
9970 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9971 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9972 | no_cache=0 | |
9973 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9974 | if test "${enable_wizarddlg+set}" = set; then | |
9975 | enableval="$enable_wizarddlg" | |
9976 | ||
9977 | if test "$enableval" = yes; then | |
9978 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9979 | else | |
9980 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9981 | fi | |
9982 | ||
9983 | else | |
9984 | ||
9985 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9986 | if test "x$LINE" != x ; then | |
9987 | eval "DEFAULT_$LINE" | |
9988 | else | |
9989 | no_cache=1 | |
9990 | fi | |
9991 | ||
9992 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9993 | ||
9994 | fi; | |
9995 | ||
9996 | eval "$ac_cv_use_wizarddlg" | |
9997 | if test "$no_cache" != 1; then | |
9998 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9999 | fi | |
10000 | ||
10001 | if test "$wxUSE_WIZARDDLG" = yes; then | |
10002 | echo "$as_me:$LINENO: result: yes" >&5 | |
10003 | echo "${ECHO_T}yes" >&6 | |
10004 | else | |
10005 | echo "$as_me:$LINENO: result: no" >&5 | |
10006 | echo "${ECHO_T}no" >&6 | |
10007 | fi | |
10008 | ||
10009 | ||
10010 | ||
10011 | ||
10012 | enablestring= | |
10013 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
10014 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
10015 | no_cache=0 | |
10016 | # Check whether --enable-menus or --disable-menus was given. | |
10017 | if test "${enable_menus+set}" = set; then | |
10018 | enableval="$enable_menus" | |
10019 | ||
10020 | if test "$enableval" = yes; then | |
10021 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
10022 | else | |
10023 | ac_cv_use_menus='wxUSE_MENUS=no' | |
10024 | fi | |
10025 | ||
10026 | else | |
10027 | ||
10028 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
10029 | if test "x$LINE" != x ; then | |
10030 | eval "DEFAULT_$LINE" | |
10031 | else | |
10032 | no_cache=1 | |
10033 | fi | |
10034 | ||
10035 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
10036 | ||
10037 | fi; | |
10038 | ||
10039 | eval "$ac_cv_use_menus" | |
10040 | if test "$no_cache" != 1; then | |
10041 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
10042 | fi | |
10043 | ||
10044 | if test "$wxUSE_MENUS" = yes; then | |
10045 | echo "$as_me:$LINENO: result: yes" >&5 | |
10046 | echo "${ECHO_T}yes" >&6 | |
10047 | else | |
10048 | echo "$as_me:$LINENO: result: no" >&5 | |
10049 | echo "${ECHO_T}no" >&6 | |
10050 | fi | |
10051 | ||
10052 | ||
10053 | enablestring= | |
10054 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
10055 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10056 | no_cache=0 | |
10057 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
10058 | if test "${enable_miniframe+set}" = set; then | |
10059 | enableval="$enable_miniframe" | |
10060 | ||
10061 | if test "$enableval" = yes; then | |
10062 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
10063 | else | |
10064 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
10065 | fi | |
10066 | ||
10067 | else | |
10068 | ||
10069 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
10070 | if test "x$LINE" != x ; then | |
10071 | eval "DEFAULT_$LINE" | |
10072 | else | |
10073 | no_cache=1 | |
10074 | fi | |
10075 | ||
10076 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10077 | ||
10078 | fi; | |
10079 | ||
10080 | eval "$ac_cv_use_miniframe" | |
10081 | if test "$no_cache" != 1; then | |
10082 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
10083 | fi | |
10084 | ||
10085 | if test "$wxUSE_MINIFRAME" = yes; then | |
10086 | echo "$as_me:$LINENO: result: yes" >&5 | |
10087 | echo "${ECHO_T}yes" >&6 | |
10088 | else | |
10089 | echo "$as_me:$LINENO: result: no" >&5 | |
10090 | echo "${ECHO_T}no" >&6 | |
10091 | fi | |
10092 | ||
10093 | ||
10094 | enablestring= | |
10095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
10096 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10097 | no_cache=0 | |
10098 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
10099 | if test "${enable_tooltips+set}" = set; then | |
10100 | enableval="$enable_tooltips" | |
10101 | ||
10102 | if test "$enableval" = yes; then | |
10103 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
10104 | else | |
10105 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
10106 | fi | |
10107 | ||
10108 | else | |
10109 | ||
10110 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
10111 | if test "x$LINE" != x ; then | |
10112 | eval "DEFAULT_$LINE" | |
10113 | else | |
10114 | no_cache=1 | |
10115 | fi | |
10116 | ||
10117 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10118 | ||
10119 | fi; | |
10120 | ||
10121 | eval "$ac_cv_use_tooltips" | |
10122 | if test "$no_cache" != 1; then | |
10123 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
10124 | fi | |
10125 | ||
10126 | if test "$wxUSE_TOOLTIPS" = yes; then | |
10127 | echo "$as_me:$LINENO: result: yes" >&5 | |
10128 | echo "${ECHO_T}yes" >&6 | |
10129 | else | |
10130 | echo "$as_me:$LINENO: result: no" >&5 | |
10131 | echo "${ECHO_T}no" >&6 | |
10132 | fi | |
10133 | ||
10134 | ||
10135 | enablestring= | |
10136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
10137 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10138 | no_cache=0 | |
10139 | # Check whether --enable-splines or --disable-splines was given. | |
10140 | if test "${enable_splines+set}" = set; then | |
10141 | enableval="$enable_splines" | |
10142 | ||
10143 | if test "$enableval" = yes; then | |
10144 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
10145 | else | |
10146 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
10147 | fi | |
10148 | ||
10149 | else | |
10150 | ||
10151 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
10152 | if test "x$LINE" != x ; then | |
10153 | eval "DEFAULT_$LINE" | |
10154 | else | |
10155 | no_cache=1 | |
10156 | fi | |
10157 | ||
10158 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10159 | ||
10160 | fi; | |
10161 | ||
10162 | eval "$ac_cv_use_splines" | |
10163 | if test "$no_cache" != 1; then | |
10164 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
10165 | fi | |
10166 | ||
10167 | if test "$wxUSE_SPLINES" = yes; then | |
10168 | echo "$as_me:$LINENO: result: yes" >&5 | |
10169 | echo "${ECHO_T}yes" >&6 | |
10170 | else | |
10171 | echo "$as_me:$LINENO: result: no" >&5 | |
10172 | echo "${ECHO_T}no" >&6 | |
10173 | fi | |
10174 | ||
10175 | ||
fbe2ca43 SN |
10176 | enablestring= |
10177 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
10178 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
10179 | no_cache=0 | |
10180 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
10181 | if test "${enable_mousewheel+set}" = set; then | |
10182 | enableval="$enable_mousewheel" | |
10183 | ||
10184 | if test "$enableval" = yes; then | |
10185 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
10186 | else | |
10187 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
10188 | fi | |
10189 | ||
10190 | else | |
10191 | ||
10192 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
10193 | if test "x$LINE" != x ; then | |
10194 | eval "DEFAULT_$LINE" | |
10195 | else | |
10196 | no_cache=1 | |
10197 | fi | |
10198 | ||
10199 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
10200 | ||
10201 | fi; | |
10202 | ||
10203 | eval "$ac_cv_use_mousewheel" | |
10204 | if test "$no_cache" != 1; then | |
10205 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
10206 | fi | |
10207 | ||
10208 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
10209 | echo "$as_me:$LINENO: result: yes" >&5 | |
10210 | echo "${ECHO_T}yes" >&6 | |
10211 | else | |
10212 | echo "$as_me:$LINENO: result: no" >&5 | |
10213 | echo "${ECHO_T}no" >&6 | |
10214 | fi | |
10215 | ||
10216 | ||
a848cd7e SC |
10217 | enablestring= |
10218 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
10219 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10220 | no_cache=0 | |
10221 | # Check whether --enable-validators or --disable-validators was given. | |
10222 | if test "${enable_validators+set}" = set; then | |
10223 | enableval="$enable_validators" | |
10224 | ||
10225 | if test "$enableval" = yes; then | |
10226 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
10227 | else | |
10228 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
10229 | fi | |
10230 | ||
10231 | else | |
10232 | ||
10233 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
10234 | if test "x$LINE" != x ; then | |
10235 | eval "DEFAULT_$LINE" | |
10236 | else | |
10237 | no_cache=1 | |
10238 | fi | |
10239 | ||
10240 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10241 | ||
10242 | fi; | |
10243 | ||
10244 | eval "$ac_cv_use_validators" | |
10245 | if test "$no_cache" != 1; then | |
10246 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
10247 | fi | |
10248 | ||
10249 | if test "$wxUSE_VALIDATORS" = yes; then | |
10250 | echo "$as_me:$LINENO: result: yes" >&5 | |
10251 | echo "${ECHO_T}yes" >&6 | |
10252 | else | |
10253 | echo "$as_me:$LINENO: result: no" >&5 | |
10254 | echo "${ECHO_T}no" >&6 | |
10255 | fi | |
10256 | ||
10257 | ||
10258 | enablestring= | |
10259 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10260 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10261 | no_cache=0 | |
10262 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
10263 | if test "${enable_busyinfo+set}" = set; then | |
10264 | enableval="$enable_busyinfo" | |
10265 | ||
10266 | if test "$enableval" = yes; then | |
10267 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
10268 | else | |
10269 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
10270 | fi | |
10271 | ||
10272 | else | |
10273 | ||
10274 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
10275 | if test "x$LINE" != x ; then | |
10276 | eval "DEFAULT_$LINE" | |
10277 | else | |
10278 | no_cache=1 | |
10279 | fi | |
10280 | ||
10281 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10282 | ||
10283 | fi; | |
10284 | ||
10285 | eval "$ac_cv_use_busyinfo" | |
10286 | if test "$no_cache" != 1; then | |
10287 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
10288 | fi | |
10289 | ||
10290 | if test "$wxUSE_BUSYINFO" = yes; then | |
10291 | echo "$as_me:$LINENO: result: yes" >&5 | |
10292 | echo "${ECHO_T}yes" >&6 | |
10293 | else | |
10294 | echo "$as_me:$LINENO: result: no" >&5 | |
10295 | echo "${ECHO_T}no" >&6 | |
10296 | fi | |
10297 | ||
10298 | ||
10299 | enablestring= | |
10300 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
10301 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
10302 | no_cache=0 | |
10303 | # Check whether --enable-joystick or --disable-joystick was given. | |
10304 | if test "${enable_joystick+set}" = set; then | |
10305 | enableval="$enable_joystick" | |
10306 | ||
10307 | if test "$enableval" = yes; then | |
10308 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
10309 | else | |
10310 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
10311 | fi | |
10312 | ||
10313 | else | |
10314 | ||
10315 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
10316 | if test "x$LINE" != x ; then | |
10317 | eval "DEFAULT_$LINE" | |
10318 | else | |
10319 | no_cache=1 | |
10320 | fi | |
10321 | ||
10322 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10323 | ||
10324 | fi; | |
10325 | ||
10326 | eval "$ac_cv_use_joystick" | |
10327 | if test "$no_cache" != 1; then | |
10328 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10329 | fi | |
10330 | ||
10331 | if test "$wxUSE_JOYSTICK" = yes; then | |
10332 | echo "$as_me:$LINENO: result: yes" >&5 | |
10333 | echo "${ECHO_T}yes" >&6 | |
10334 | else | |
10335 | echo "$as_me:$LINENO: result: no" >&5 | |
10336 | echo "${ECHO_T}no" >&6 | |
10337 | fi | |
10338 | ||
10339 | ||
10340 | enablestring= | |
10341 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10342 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10343 | no_cache=0 | |
10344 | # Check whether --enable-metafile or --disable-metafile was given. | |
10345 | if test "${enable_metafile+set}" = set; then | |
10346 | enableval="$enable_metafile" | |
10347 | ||
10348 | if test "$enableval" = yes; then | |
10349 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10350 | else | |
10351 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10352 | fi | |
10353 | ||
10354 | else | |
10355 | ||
10356 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10357 | if test "x$LINE" != x ; then | |
10358 | eval "DEFAULT_$LINE" | |
10359 | else | |
10360 | no_cache=1 | |
10361 | fi | |
10362 | ||
10363 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10364 | ||
10365 | fi; | |
10366 | ||
10367 | eval "$ac_cv_use_metafile" | |
10368 | if test "$no_cache" != 1; then | |
10369 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10370 | fi | |
10371 | ||
10372 | if test "$wxUSE_METAFILE" = yes; then | |
10373 | echo "$as_me:$LINENO: result: yes" >&5 | |
10374 | echo "${ECHO_T}yes" >&6 | |
10375 | else | |
10376 | echo "$as_me:$LINENO: result: no" >&5 | |
10377 | echo "${ECHO_T}no" >&6 | |
10378 | fi | |
10379 | ||
10380 | ||
10381 | enablestring= | |
10382 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10383 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10384 | no_cache=0 | |
10385 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10386 | if test "${enable_dragimage+set}" = set; then | |
10387 | enableval="$enable_dragimage" | |
10388 | ||
10389 | if test "$enableval" = yes; then | |
10390 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10391 | else | |
10392 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10393 | fi | |
10394 | ||
10395 | else | |
10396 | ||
10397 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10398 | if test "x$LINE" != x ; then | |
10399 | eval "DEFAULT_$LINE" | |
10400 | else | |
10401 | no_cache=1 | |
10402 | fi | |
10403 | ||
10404 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10405 | ||
10406 | fi; | |
10407 | ||
10408 | eval "$ac_cv_use_dragimage" | |
10409 | if test "$no_cache" != 1; then | |
10410 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10411 | fi | |
10412 | ||
10413 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10414 | echo "$as_me:$LINENO: result: yes" >&5 | |
10415 | echo "${ECHO_T}yes" >&6 | |
10416 | else | |
10417 | echo "$as_me:$LINENO: result: no" >&5 | |
10418 | echo "${ECHO_T}no" >&6 | |
10419 | fi | |
10420 | ||
10421 | ||
10422 | enablestring= | |
10423 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10424 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10425 | no_cache=0 | |
10426 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10427 | if test "${enable_accessibility+set}" = set; then | |
10428 | enableval="$enable_accessibility" | |
10429 | ||
10430 | if test "$enableval" = yes; then | |
10431 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10432 | else | |
10433 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10434 | fi | |
10435 | ||
10436 | else | |
10437 | ||
10438 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10439 | if test "x$LINE" != x ; then | |
10440 | eval "DEFAULT_$LINE" | |
10441 | else | |
10442 | no_cache=1 | |
10443 | fi | |
10444 | ||
10445 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10446 | ||
10447 | fi; | |
10448 | ||
10449 | eval "$ac_cv_use_accessibility" | |
10450 | if test "$no_cache" != 1; then | |
10451 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10452 | fi | |
10453 | ||
10454 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10455 | echo "$as_me:$LINENO: result: yes" >&5 | |
10456 | echo "${ECHO_T}yes" >&6 | |
10457 | else | |
10458 | echo "$as_me:$LINENO: result: no" >&5 | |
10459 | echo "${ECHO_T}no" >&6 | |
10460 | fi | |
10461 | ||
10462 | ||
38b4a946 VZ |
10463 | if test "$wxUSE_MSW" = "1"; then |
10464 | ||
10465 | enablestring= | |
10466 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10467 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10468 | no_cache=0 | |
10469 | # Check whether --enable-dccache or --disable-dccache was given. | |
10470 | if test "${enable_dccache+set}" = set; then | |
10471 | enableval="$enable_dccache" | |
10472 | ||
10473 | if test "$enableval" = yes; then | |
10474 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10475 | else | |
10476 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10477 | fi | |
10478 | ||
10479 | else | |
10480 | ||
10481 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10482 | if test "x$LINE" != x ; then | |
10483 | eval "DEFAULT_$LINE" | |
10484 | else | |
10485 | no_cache=1 | |
10486 | fi | |
10487 | ||
10488 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10489 | ||
10490 | fi; | |
10491 | ||
10492 | eval "$ac_cv_use_dccache" | |
10493 | if test "$no_cache" != 1; then | |
10494 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10495 | fi | |
10496 | ||
10497 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10498 | echo "$as_me:$LINENO: result: yes" >&5 | |
10499 | echo "${ECHO_T}yes" >&6 | |
10500 | else | |
10501 | echo "$as_me:$LINENO: result: no" >&5 | |
10502 | echo "${ECHO_T}no" >&6 | |
10503 | fi | |
10504 | ||
10505 | fi | |
10506 | ||
a848cd7e SC |
10507 | |
10508 | ||
10509 | enablestring= | |
10510 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10511 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10512 | no_cache=0 | |
10513 | # Check whether --enable-palette or --disable-palette was given. | |
10514 | if test "${enable_palette+set}" = set; then | |
10515 | enableval="$enable_palette" | |
10516 | ||
10517 | if test "$enableval" = yes; then | |
10518 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10519 | else | |
10520 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10521 | fi | |
10522 | ||
10523 | else | |
10524 | ||
10525 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10526 | if test "x$LINE" != x ; then | |
10527 | eval "DEFAULT_$LINE" | |
10528 | else | |
10529 | no_cache=1 | |
10530 | fi | |
10531 | ||
10532 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10533 | ||
10534 | fi; | |
10535 | ||
10536 | eval "$ac_cv_use_palette" | |
10537 | if test "$no_cache" != 1; then | |
10538 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10539 | fi | |
10540 | ||
10541 | if test "$wxUSE_PALETTE" = yes; then | |
10542 | echo "$as_me:$LINENO: result: yes" >&5 | |
10543 | echo "${ECHO_T}yes" >&6 | |
10544 | else | |
10545 | echo "$as_me:$LINENO: result: no" >&5 | |
10546 | echo "${ECHO_T}no" >&6 | |
10547 | fi | |
10548 | ||
10549 | ||
10550 | enablestring= | |
10551 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10552 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10553 | no_cache=0 | |
10554 | # Check whether --enable-image or --disable-image was given. | |
10555 | if test "${enable_image+set}" = set; then | |
10556 | enableval="$enable_image" | |
10557 | ||
10558 | if test "$enableval" = yes; then | |
10559 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10560 | else | |
10561 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10562 | fi | |
10563 | ||
10564 | else | |
10565 | ||
10566 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10567 | if test "x$LINE" != x ; then | |
10568 | eval "DEFAULT_$LINE" | |
10569 | else | |
10570 | no_cache=1 | |
10571 | fi | |
10572 | ||
10573 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10574 | ||
10575 | fi; | |
10576 | ||
10577 | eval "$ac_cv_use_image" | |
10578 | if test "$no_cache" != 1; then | |
10579 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10580 | fi | |
10581 | ||
10582 | if test "$wxUSE_IMAGE" = yes; then | |
10583 | echo "$as_me:$LINENO: result: yes" >&5 | |
10584 | echo "${ECHO_T}yes" >&6 | |
10585 | else | |
10586 | echo "$as_me:$LINENO: result: no" >&5 | |
10587 | echo "${ECHO_T}no" >&6 | |
10588 | fi | |
10589 | ||
10590 | ||
10591 | enablestring= | |
10592 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10593 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10594 | no_cache=0 | |
10595 | # Check whether --enable-gif or --disable-gif was given. | |
10596 | if test "${enable_gif+set}" = set; then | |
10597 | enableval="$enable_gif" | |
10598 | ||
10599 | if test "$enableval" = yes; then | |
10600 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10601 | else | |
10602 | ac_cv_use_gif='wxUSE_GIF=no' | |
10603 | fi | |
10604 | ||
10605 | else | |
10606 | ||
10607 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10608 | if test "x$LINE" != x ; then | |
10609 | eval "DEFAULT_$LINE" | |
10610 | else | |
10611 | no_cache=1 | |
10612 | fi | |
10613 | ||
10614 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10615 | ||
10616 | fi; | |
10617 | ||
10618 | eval "$ac_cv_use_gif" | |
10619 | if test "$no_cache" != 1; then | |
10620 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10621 | fi | |
10622 | ||
10623 | if test "$wxUSE_GIF" = yes; then | |
10624 | echo "$as_me:$LINENO: result: yes" >&5 | |
10625 | echo "${ECHO_T}yes" >&6 | |
10626 | else | |
10627 | echo "$as_me:$LINENO: result: no" >&5 | |
10628 | echo "${ECHO_T}no" >&6 | |
10629 | fi | |
10630 | ||
10631 | ||
10632 | enablestring= | |
10633 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10634 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10635 | no_cache=0 | |
10636 | # Check whether --enable-pcx or --disable-pcx was given. | |
10637 | if test "${enable_pcx+set}" = set; then | |
10638 | enableval="$enable_pcx" | |
10639 | ||
10640 | if test "$enableval" = yes; then | |
10641 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10642 | else | |
10643 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10644 | fi | |
10645 | ||
10646 | else | |
10647 | ||
10648 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10649 | if test "x$LINE" != x ; then | |
10650 | eval "DEFAULT_$LINE" | |
10651 | else | |
10652 | no_cache=1 | |
10653 | fi | |
10654 | ||
10655 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10656 | ||
10657 | fi; | |
10658 | ||
10659 | eval "$ac_cv_use_pcx" | |
10660 | if test "$no_cache" != 1; then | |
10661 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10662 | fi | |
10663 | ||
10664 | if test "$wxUSE_PCX" = yes; then | |
10665 | echo "$as_me:$LINENO: result: yes" >&5 | |
10666 | echo "${ECHO_T}yes" >&6 | |
10667 | else | |
10668 | echo "$as_me:$LINENO: result: no" >&5 | |
10669 | echo "${ECHO_T}no" >&6 | |
10670 | fi | |
10671 | ||
10672 | ||
10673 | enablestring= | |
10674 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10675 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10676 | no_cache=0 | |
10677 | # Check whether --enable-iff or --disable-iff was given. | |
10678 | if test "${enable_iff+set}" = set; then | |
10679 | enableval="$enable_iff" | |
10680 | ||
10681 | if test "$enableval" = yes; then | |
10682 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10683 | else | |
10684 | ac_cv_use_iff='wxUSE_IFF=no' | |
10685 | fi | |
10686 | ||
10687 | else | |
10688 | ||
10689 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10690 | if test "x$LINE" != x ; then | |
10691 | eval "DEFAULT_$LINE" | |
10692 | else | |
10693 | no_cache=1 | |
10694 | fi | |
10695 | ||
10696 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10697 | ||
10698 | fi; | |
10699 | ||
10700 | eval "$ac_cv_use_iff" | |
10701 | if test "$no_cache" != 1; then | |
10702 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10703 | fi | |
10704 | ||
10705 | if test "$wxUSE_IFF" = yes; then | |
10706 | echo "$as_me:$LINENO: result: yes" >&5 | |
10707 | echo "${ECHO_T}yes" >&6 | |
10708 | else | |
10709 | echo "$as_me:$LINENO: result: no" >&5 | |
10710 | echo "${ECHO_T}no" >&6 | |
10711 | fi | |
10712 | ||
10713 | ||
10714 | enablestring= | |
10715 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10716 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10717 | no_cache=0 | |
10718 | # Check whether --enable-pnm or --disable-pnm was given. | |
10719 | if test "${enable_pnm+set}" = set; then | |
10720 | enableval="$enable_pnm" | |
10721 | ||
10722 | if test "$enableval" = yes; then | |
10723 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10724 | else | |
10725 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10726 | fi | |
10727 | ||
10728 | else | |
10729 | ||
10730 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10731 | if test "x$LINE" != x ; then | |
10732 | eval "DEFAULT_$LINE" | |
10733 | else | |
10734 | no_cache=1 | |
10735 | fi | |
10736 | ||
10737 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10738 | ||
10739 | fi; | |
10740 | ||
10741 | eval "$ac_cv_use_pnm" | |
10742 | if test "$no_cache" != 1; then | |
10743 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10744 | fi | |
10745 | ||
10746 | if test "$wxUSE_PNM" = yes; then | |
10747 | echo "$as_me:$LINENO: result: yes" >&5 | |
10748 | echo "${ECHO_T}yes" >&6 | |
10749 | else | |
10750 | echo "$as_me:$LINENO: result: no" >&5 | |
10751 | echo "${ECHO_T}no" >&6 | |
10752 | fi | |
10753 | ||
10754 | ||
10755 | enablestring= | |
10756 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10757 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10758 | no_cache=0 | |
10759 | # Check whether --enable-xpm or --disable-xpm was given. | |
10760 | if test "${enable_xpm+set}" = set; then | |
10761 | enableval="$enable_xpm" | |
10762 | ||
10763 | if test "$enableval" = yes; then | |
10764 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10765 | else | |
10766 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10767 | fi | |
10768 | ||
10769 | else | |
10770 | ||
10771 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10772 | if test "x$LINE" != x ; then | |
10773 | eval "DEFAULT_$LINE" | |
10774 | else | |
10775 | no_cache=1 | |
10776 | fi | |
10777 | ||
10778 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10779 | ||
10780 | fi; | |
10781 | ||
10782 | eval "$ac_cv_use_xpm" | |
10783 | if test "$no_cache" != 1; then | |
10784 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10785 | fi | |
10786 | ||
10787 | if test "$wxUSE_XPM" = yes; then | |
10788 | echo "$as_me:$LINENO: result: yes" >&5 | |
10789 | echo "${ECHO_T}yes" >&6 | |
10790 | else | |
10791 | echo "$as_me:$LINENO: result: no" >&5 | |
10792 | echo "${ECHO_T}no" >&6 | |
10793 | fi | |
10794 | ||
10795 | ||
10796 | enablestring= | |
10797 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10798 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10799 | no_cache=0 | |
10800 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10801 | if test "${enable_ico_cur+set}" = set; then | |
10802 | enableval="$enable_ico_cur" | |
10803 | ||
10804 | if test "$enableval" = yes; then | |
10805 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10806 | else | |
10807 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10808 | fi | |
10809 | ||
10810 | else | |
10811 | ||
10812 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10813 | if test "x$LINE" != x ; then | |
10814 | eval "DEFAULT_$LINE" | |
10815 | else | |
10816 | no_cache=1 | |
10817 | fi | |
10818 | ||
10819 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10820 | ||
10821 | fi; | |
10822 | ||
10823 | eval "$ac_cv_use_ico_cur" | |
10824 | if test "$no_cache" != 1; then | |
10825 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10826 | fi | |
10827 | ||
10828 | if test "$wxUSE_ICO_CUR" = yes; then | |
10829 | echo "$as_me:$LINENO: result: yes" >&5 | |
10830 | echo "${ECHO_T}yes" >&6 | |
10831 | else | |
10832 | echo "$as_me:$LINENO: result: no" >&5 | |
10833 | echo "${ECHO_T}no" >&6 | |
10834 | fi | |
10835 | ||
10836 | ||
10837 | fi | |
10838 | ||
10839 | ||
10840 | ||
ceec2216 RL |
10841 | # Check whether --with-flavour or --without-flavour was given. |
10842 | if test "${with_flavour+set}" = set; then | |
10843 | withval="$with_flavour" | |
10844 | WX_FLAVOUR="$withval" | |
10845 | fi; | |
10846 | ||
10847 | ||
10848 | ||
a848cd7e SC |
10849 | enablestring= |
10850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10851 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10852 | no_cache=0 | |
10853 | # Check whether --enable-official_build or --disable-official_build was given. | |
10854 | if test "${enable_official_build+set}" = set; then | |
10855 | enableval="$enable_official_build" | |
10856 | ||
10857 | if test "$enableval" = yes; then | |
10858 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10859 | else | |
10860 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10861 | fi | |
10862 | ||
10863 | else | |
10864 | ||
10865 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10866 | if test "x$LINE" != x ; then | |
10867 | eval "DEFAULT_$LINE" | |
10868 | else | |
10869 | no_cache=1 | |
10870 | fi | |
10871 | ||
10872 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10873 | ||
10874 | fi; | |
10875 | ||
10876 | eval "$ac_cv_use_official_build" | |
10877 | if test "$no_cache" != 1; then | |
10878 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10879 | fi | |
10880 | ||
10881 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10882 | echo "$as_me:$LINENO: result: yes" >&5 | |
10883 | echo "${ECHO_T}yes" >&6 | |
10884 | else | |
10885 | echo "$as_me:$LINENO: result: no" >&5 | |
10886 | echo "${ECHO_T}no" >&6 | |
10887 | fi | |
10888 | ||
10889 | # Check whether --enable-vendor or --disable-vendor was given. | |
10890 | if test "${enable_vendor+set}" = set; then | |
10891 | enableval="$enable_vendor" | |
10892 | VENDOR="$enableval" | |
10893 | fi; | |
10894 | if test "x$VENDOR" = "x"; then | |
10895 | VENDOR="custom" | |
10896 | fi | |
10897 | ||
a848cd7e SC |
10898 | |
10899 | ||
10900 | ||
10901 | echo "saving argument cache $wx_arg_cache_file" | |
10902 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10903 | ||
10904 | ||
10905 | ||
10906 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10907 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10908 | ||
10909 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10910 | if test "$wxUSE_WINE" = "yes"; then | |
10911 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10912 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10913 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10914 | wxUSE_SHARED=no | |
10915 | fi | |
10916 | ||
f597b41c | 10917 | |
a848cd7e SC |
10918 | if test "$wxUSE_GUI" = "yes"; then |
10919 | ||
10920 | if test "$USE_BEOS" = 1; then | |
10921 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10922 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10923 | { (exit 1); exit 1; }; } | |
10924 | fi | |
10925 | ||
10926 | if test "$TOOLKIT_GIVEN" = 1; then | |
10927 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10928 | var=wxUSE_$toolkit | |
10929 | eval "value=\$${var}" | |
f34ca037 MW |
10930 | if test "x$value" = "xno"; then |
10931 | eval "$var=0" | |
10932 | elif test "x$value" != "x"; then | |
10933 | eval "$var=1" | |
10934 | fi | |
10935 | ||
10936 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10937 | eval "wx${toolkit}_VERSION=$value" | |
10938 | fi | |
a848cd7e SC |
10939 | done |
10940 | else | |
10941 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10942 | if test "$has_toolkit_in_cache" != 1; then | |
10943 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10944 | else | |
10945 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10946 | |
10947 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10948 | if test "x$version" != "x"; then | |
10949 | eval "wx${toolkit}_VERSION=$version" | |
10950 | fi | |
a848cd7e SC |
10951 | fi |
10952 | eval "wxUSE_$toolkit=\$${var}" | |
10953 | done | |
10954 | fi | |
10955 | ||
10956 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10957 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10958 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10959 | ||
10960 | case "${host}" in | |
10961 | *-pc-os2_emx | *-pc-os2-emx ) | |
10962 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10963 | esac | |
10964 | ||
10965 | case "$NUM_TOOLKITS" in | |
10966 | 1) | |
10967 | ;; | |
10968 | 0) | |
10969 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10970 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10971 | { (exit 1); exit 1; }; } | |
10972 | ;; | |
10973 | *) | |
10974 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10975 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10976 | { (exit 1); exit 1; }; } | |
10977 | esac | |
10978 | ||
f34ca037 MW |
10979 | # to be removed when --disable-gtk2 isn't needed |
10980 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10981 | wxGTK_VERSION=2 | |
10982 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10983 | wxGTK_VERSION=1 | |
10984 | fi | |
10985 | ||
a848cd7e SC |
10986 | for toolkit in `echo $ALL_TOOLKITS`; do |
10987 | var=wxUSE_$toolkit | |
10988 | eval "value=\$${var}" | |
10989 | if test "x$value" != x; then | |
10990 | cache_var=CACHE_$toolkit | |
10991 | eval "cache=\$${cache_var}" | |
10992 | if test "$cache" = 1; then | |
10993 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10994 | eval "version=\$wx${toolkit}_VERSION" |
10995 | if test "x$version" != "x"; then | |
10996 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10997 | fi | |
a848cd7e SC |
10998 | fi |
10999 | if test "$value" = 1; then | |
11000 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
11001 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
11002 | echo "${ECHO_T}$toolkit_echo" >&6 | |
11003 | fi | |
11004 | fi | |
11005 | done | |
11006 | else | |
11007 | if test "x$host_alias" != "x"; then | |
11008 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
11009 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
11010 | else | |
11011 | echo "$as_me:$LINENO: result: base only" >&5 | |
11012 | echo "${ECHO_T}base only" >&6 | |
11013 | fi | |
11014 | fi | |
11015 | ||
11016 | wants_win32=0 | |
11017 | doesnt_want_win32=0 | |
11018 | case "${host}" in | |
11019 | *-*-cygwin*) | |
11020 | if test "$wxUSE_MSW" = 1 ; then | |
11021 | wants_win32=1 | |
7275146d | 11022 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
11023 | else |
11024 | doesnt_want_win32=1 | |
11025 | fi | |
11026 | ;; | |
11027 | *-*-mingw*) | |
11028 | wants_win32=1 | |
11029 | ;; | |
11030 | esac | |
11031 | ||
11032 | if test "$wxUSE_WINE" = "yes"; then | |
11033 | wants_win32=1 | |
11034 | CC=winegcc | |
11035 | CXX=wineg++ | |
a848cd7e SC |
11036 | LDFLAGS_GUI="-mwindows" |
11037 | fi | |
11038 | ||
11039 | if test "$wants_win32" = 1 ; then | |
11040 | USE_UNIX=0 | |
11041 | USE_WIN32=1 | |
11042 | cat >>confdefs.h <<\_ACEOF | |
11043 | #define __WIN32__ 1 | |
11044 | _ACEOF | |
11045 | ||
11046 | cat >>confdefs.h <<\_ACEOF | |
11047 | #define __WIN95__ 1 | |
11048 | _ACEOF | |
11049 | ||
11050 | cat >>confdefs.h <<\_ACEOF | |
11051 | #define __WINDOWS__ 1 | |
11052 | _ACEOF | |
11053 | ||
11054 | cat >>confdefs.h <<\_ACEOF | |
11055 | #define __GNUWIN32__ 1 | |
11056 | _ACEOF | |
11057 | ||
11058 | cat >>confdefs.h <<\_ACEOF | |
11059 | #define STRICT 1 | |
11060 | _ACEOF | |
11061 | ||
11062 | cat >>confdefs.h <<\_ACEOF | |
11063 | #define WINVER 0x0400 | |
11064 | _ACEOF | |
11065 | ||
11066 | fi | |
11067 | if test "$doesnt_want_win32" = 1 ; then | |
11068 | USE_UNIX=1 | |
11069 | USE_WIN32=0 | |
11070 | fi | |
11071 | ||
11072 | if test "$USE_UNIX" = 1 ; then | |
11073 | wxUSE_UNIX=yes | |
11074 | cat >>confdefs.h <<\_ACEOF | |
11075 | #define __UNIX__ 1 | |
11076 | _ACEOF | |
11077 | ||
11078 | fi | |
11079 | ||
11080 | ||
11081 | cat >confcache <<\_ACEOF | |
11082 | # This file is a shell script that caches the results of configure | |
11083 | # tests run on this system so they can be shared between configure | |
11084 | # scripts and configure runs, see configure's option --config-cache. | |
11085 | # It is not useful on other systems. If it contains results you don't | |
11086 | # want to keep, you may remove or edit it. | |
11087 | # | |
11088 | # config.status only pays attention to the cache file if you give it | |
11089 | # the --recheck option to rerun configure. | |
11090 | # | |
11091 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11092 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11093 | # following values. | |
11094 | ||
11095 | _ACEOF | |
11096 | ||
11097 | # The following way of writing the cache mishandles newlines in values, | |
11098 | # but we know of no workaround that is simple, portable, and efficient. | |
11099 | # So, don't put newlines in cache variables' values. | |
11100 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11101 | # and sets the high bit in the cache file unless we assign to the vars. | |
11102 | { | |
11103 | (set) 2>&1 | | |
11104 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11105 | *ac_space=\ *) | |
11106 | # `set' does not quote correctly, so add quotes (double-quote | |
11107 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11108 | sed -n \ | |
ac1cb8d3 VS |
11109 | "s/'/'\\\\''/g; |
11110 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
11111 | ;; |
11112 | *) | |
11113 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11114 | sed -n \ | |
ac1cb8d3 | 11115 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
11116 | ;; |
11117 | esac; | |
11118 | } | | |
11119 | sed ' | |
11120 | t clear | |
11121 | : clear | |
11122 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11123 | t end | |
11124 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11125 | : end' >>confcache | |
11126 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11127 | if test -w $cache_file; then | |
11128 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11129 | cat confcache >$cache_file | |
11130 | else | |
11131 | echo "not updating unwritable cache $cache_file" | |
11132 | fi | |
11133 | fi | |
11134 | rm -f confcache | |
11135 | ||
a848cd7e | 11136 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
11137 | |
11138 | ||
3006edc0 | 11139 | |
6dcfc289 | 11140 | ac_ext=c |
a848cd7e SC |
11141 | ac_cpp='$CPP $CPPFLAGS' |
11142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11145 | if test -n "$ac_tool_prefix"; then | |
11146 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
11147 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
11148 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11149 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11150 | if test "${ac_cv_prog_CC+set}" = set; then | |
11151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11152 | else | |
11153 | if test -n "$CC"; then | |
11154 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11155 | else | |
11156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11157 | for as_dir in $PATH | |
11158 | do | |
11159 | IFS=$as_save_IFS | |
11160 | test -z "$as_dir" && as_dir=. | |
11161 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11162 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11163 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
11164 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11165 | break 2 | |
11166 | fi | |
11167 | done | |
11168 | done | |
11169 | ||
11170 | fi | |
11171 | fi | |
11172 | CC=$ac_cv_prog_CC | |
11173 | if test -n "$CC"; then | |
11174 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11175 | echo "${ECHO_T}$CC" >&6 | |
11176 | else | |
11177 | echo "$as_me:$LINENO: result: no" >&5 | |
11178 | echo "${ECHO_T}no" >&6 | |
11179 | fi | |
11180 | ||
11181 | fi | |
11182 | if test -z "$ac_cv_prog_CC"; then | |
11183 | ac_ct_CC=$CC | |
11184 | # Extract the first word of "gcc", so it can be a program name with args. | |
11185 | set dummy gcc; ac_word=$2 | |
11186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11188 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11190 | else | |
11191 | if test -n "$ac_ct_CC"; then | |
11192 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11193 | else | |
11194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11195 | for as_dir in $PATH | |
11196 | do | |
11197 | IFS=$as_save_IFS | |
11198 | test -z "$as_dir" && as_dir=. | |
11199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11201 | ac_cv_prog_ac_ct_CC="gcc" | |
11202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11203 | break 2 | |
11204 | fi | |
11205 | done | |
11206 | done | |
11207 | ||
11208 | fi | |
11209 | fi | |
11210 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11211 | if test -n "$ac_ct_CC"; then | |
11212 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11213 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11214 | else | |
11215 | echo "$as_me:$LINENO: result: no" >&5 | |
11216 | echo "${ECHO_T}no" >&6 | |
11217 | fi | |
11218 | ||
11219 | CC=$ac_ct_CC | |
11220 | else | |
11221 | CC="$ac_cv_prog_CC" | |
11222 | fi | |
11223 | ||
11224 | if test -z "$CC"; then | |
11225 | if test -n "$ac_tool_prefix"; then | |
11226 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
11227 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
11228 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11229 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11230 | if test "${ac_cv_prog_CC+set}" = set; then | |
11231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11232 | else | |
11233 | if test -n "$CC"; then | |
11234 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11235 | else | |
11236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11237 | for as_dir in $PATH | |
11238 | do | |
11239 | IFS=$as_save_IFS | |
11240 | test -z "$as_dir" && as_dir=. | |
11241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11242 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11243 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
11244 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11245 | break 2 | |
11246 | fi | |
11247 | done | |
11248 | done | |
11249 | ||
11250 | fi | |
11251 | fi | |
11252 | CC=$ac_cv_prog_CC | |
11253 | if test -n "$CC"; then | |
11254 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11255 | echo "${ECHO_T}$CC" >&6 | |
11256 | else | |
11257 | echo "$as_me:$LINENO: result: no" >&5 | |
11258 | echo "${ECHO_T}no" >&6 | |
11259 | fi | |
11260 | ||
11261 | fi | |
11262 | if test -z "$ac_cv_prog_CC"; then | |
11263 | ac_ct_CC=$CC | |
11264 | # Extract the first word of "cc", so it can be a program name with args. | |
11265 | set dummy cc; ac_word=$2 | |
11266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11268 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11270 | else | |
11271 | if test -n "$ac_ct_CC"; then | |
11272 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11273 | else | |
11274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11275 | for as_dir in $PATH | |
11276 | do | |
11277 | IFS=$as_save_IFS | |
11278 | test -z "$as_dir" && as_dir=. | |
11279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11280 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11281 | ac_cv_prog_ac_ct_CC="cc" | |
11282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11283 | break 2 | |
11284 | fi | |
11285 | done | |
11286 | done | |
11287 | ||
11288 | fi | |
11289 | fi | |
11290 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11291 | if test -n "$ac_ct_CC"; then | |
11292 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11293 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11294 | else | |
11295 | echo "$as_me:$LINENO: result: no" >&5 | |
11296 | echo "${ECHO_T}no" >&6 | |
11297 | fi | |
11298 | ||
11299 | CC=$ac_ct_CC | |
11300 | else | |
11301 | CC="$ac_cv_prog_CC" | |
11302 | fi | |
11303 | ||
11304 | fi | |
11305 | if test -z "$CC"; then | |
11306 | # Extract the first word of "cc", so it can be a program name with args. | |
11307 | set dummy cc; ac_word=$2 | |
11308 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11310 | if test "${ac_cv_prog_CC+set}" = set; then | |
11311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11312 | else | |
11313 | if test -n "$CC"; then | |
11314 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11315 | else | |
11316 | ac_prog_rejected=no | |
11317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11318 | for as_dir in $PATH | |
11319 | do | |
11320 | IFS=$as_save_IFS | |
11321 | test -z "$as_dir" && as_dir=. | |
11322 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11323 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11324 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11325 | ac_prog_rejected=yes | |
11326 | continue | |
11327 | fi | |
11328 | ac_cv_prog_CC="cc" | |
11329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11330 | break 2 | |
11331 | fi | |
11332 | done | |
11333 | done | |
11334 | ||
11335 | if test $ac_prog_rejected = yes; then | |
11336 | # We found a bogon in the path, so make sure we never use it. | |
11337 | set dummy $ac_cv_prog_CC | |
11338 | shift | |
11339 | if test $# != 0; then | |
11340 | # We chose a different compiler from the bogus one. | |
11341 | # However, it has the same basename, so the bogon will be chosen | |
11342 | # first if we set CC to just the basename; use the full file name. | |
11343 | shift | |
11344 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11345 | fi | |
11346 | fi | |
11347 | fi | |
11348 | fi | |
11349 | CC=$ac_cv_prog_CC | |
11350 | if test -n "$CC"; then | |
11351 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11352 | echo "${ECHO_T}$CC" >&6 | |
11353 | else | |
11354 | echo "$as_me:$LINENO: result: no" >&5 | |
11355 | echo "${ECHO_T}no" >&6 | |
11356 | fi | |
11357 | ||
11358 | fi | |
11359 | if test -z "$CC"; then | |
11360 | if test -n "$ac_tool_prefix"; then | |
11361 | for ac_prog in cl | |
11362 | do | |
11363 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11364 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11365 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11366 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11367 | if test "${ac_cv_prog_CC+set}" = set; then | |
11368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11369 | else | |
11370 | if test -n "$CC"; then | |
11371 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11372 | else | |
11373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11374 | for as_dir in $PATH | |
11375 | do | |
11376 | IFS=$as_save_IFS | |
11377 | test -z "$as_dir" && as_dir=. | |
11378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11379 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11380 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11381 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11382 | break 2 | |
11383 | fi | |
11384 | done | |
11385 | done | |
11386 | ||
11387 | fi | |
11388 | fi | |
11389 | CC=$ac_cv_prog_CC | |
11390 | if test -n "$CC"; then | |
11391 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11392 | echo "${ECHO_T}$CC" >&6 | |
11393 | else | |
11394 | echo "$as_me:$LINENO: result: no" >&5 | |
11395 | echo "${ECHO_T}no" >&6 | |
11396 | fi | |
11397 | ||
11398 | test -n "$CC" && break | |
11399 | done | |
11400 | fi | |
11401 | if test -z "$CC"; then | |
11402 | ac_ct_CC=$CC | |
11403 | for ac_prog in cl | |
11404 | do | |
11405 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11406 | set dummy $ac_prog; ac_word=$2 | |
11407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11409 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11411 | else | |
11412 | if test -n "$ac_ct_CC"; then | |
11413 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11414 | else | |
11415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11416 | for as_dir in $PATH | |
11417 | do | |
11418 | IFS=$as_save_IFS | |
11419 | test -z "$as_dir" && as_dir=. | |
11420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11422 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11424 | break 2 | |
11425 | fi | |
11426 | done | |
11427 | done | |
11428 | ||
11429 | fi | |
11430 | fi | |
11431 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11432 | if test -n "$ac_ct_CC"; then | |
11433 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11434 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11435 | else | |
11436 | echo "$as_me:$LINENO: result: no" >&5 | |
11437 | echo "${ECHO_T}no" >&6 | |
11438 | fi | |
11439 | ||
11440 | test -n "$ac_ct_CC" && break | |
11441 | done | |
11442 | ||
11443 | CC=$ac_ct_CC | |
11444 | fi | |
11445 | ||
11446 | fi | |
11447 | ||
11448 | ||
11449 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11450 | See \`config.log' for more details." >&5 | |
11451 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11452 | See \`config.log' for more details." >&2;} | |
11453 | { (exit 1); exit 1; }; } | |
11454 | ||
11455 | # Provide some information about the compiler. | |
11456 | echo "$as_me:$LINENO:" \ | |
11457 | "checking for C compiler version" >&5 | |
11458 | ac_compiler=`set X $ac_compile; echo $2` | |
11459 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11460 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11461 | ac_status=$? | |
11462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11463 | (exit $ac_status); } | |
11464 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11465 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11466 | ac_status=$? | |
11467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11468 | (exit $ac_status); } | |
11469 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11470 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11471 | ac_status=$? | |
11472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11473 | (exit $ac_status); } | |
11474 | ||
11475 | cat >conftest.$ac_ext <<_ACEOF | |
11476 | /* confdefs.h. */ | |
11477 | _ACEOF | |
11478 | cat confdefs.h >>conftest.$ac_ext | |
11479 | cat >>conftest.$ac_ext <<_ACEOF | |
11480 | /* end confdefs.h. */ | |
11481 | ||
11482 | int | |
11483 | main () | |
11484 | { | |
11485 | ||
11486 | ; | |
11487 | return 0; | |
11488 | } | |
11489 | _ACEOF | |
11490 | ac_clean_files_save=$ac_clean_files | |
11491 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11492 | # Try to create an executable without -o first, disregard a.out. | |
11493 | # It will help us diagnose broken compilers, and finding out an intuition | |
11494 | # of exeext. | |
ac1cb8d3 VS |
11495 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11496 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11497 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11498 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11499 | (eval $ac_link_default) 2>&5 | |
11500 | ac_status=$? | |
11501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11502 | (exit $ac_status); }; then | |
11503 | # Find the output, starting from the most likely. This scheme is | |
11504 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11505 | # resort. | |
11506 | ||
11507 | # Be careful to initialize this variable, since it used to be cached. | |
11508 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11509 | ac_cv_exeext= | |
11510 | # b.out is created by i960 compilers. | |
11511 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11512 | do | |
11513 | test -f "$ac_file" || continue | |
11514 | case $ac_file in | |
11515 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11516 | ;; |
a848cd7e | 11517 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11518 | # This is the source file. |
11519 | ;; | |
a848cd7e | 11520 | [ab].out ) |
ac1cb8d3 VS |
11521 | # We found the default executable, but exeext='' is most |
11522 | # certainly right. | |
11523 | break;; | |
a848cd7e | 11524 | *.* ) |
ac1cb8d3 VS |
11525 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11526 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11527 | # but it would be cool to find out if it's true. Does anybody | |
11528 | # maintain Libtool? --akim. | |
11529 | export ac_cv_exeext | |
11530 | break;; | |
a848cd7e | 11531 | * ) |
ac1cb8d3 | 11532 | break;; |
a848cd7e SC |
11533 | esac |
11534 | done | |
11535 | else | |
11536 | echo "$as_me: failed program was:" >&5 | |
11537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11538 | ||
11539 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11540 | See \`config.log' for more details." >&5 | |
11541 | echo "$as_me: error: C compiler cannot create executables | |
11542 | See \`config.log' for more details." >&2;} | |
11543 | { (exit 77); exit 77; }; } | |
11544 | fi | |
11545 | ||
11546 | ac_exeext=$ac_cv_exeext | |
11547 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11548 | echo "${ECHO_T}$ac_file" >&6 | |
11549 | ||
11550 | # Check the compiler produces executables we can run. If not, either | |
11551 | # the compiler is broken, or we cross compile. | |
11552 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11553 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11554 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11555 | # If not cross compiling, check that we can run a simple program. | |
11556 | if test "$cross_compiling" != yes; then | |
11557 | if { ac_try='./$ac_file' | |
11558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11559 | (eval $ac_try) 2>&5 | |
11560 | ac_status=$? | |
11561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11562 | (exit $ac_status); }; }; then | |
11563 | cross_compiling=no | |
11564 | else | |
11565 | if test "$cross_compiling" = maybe; then | |
11566 | cross_compiling=yes | |
11567 | else | |
11568 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11569 | If you meant to cross compile, use \`--host'. | |
11570 | See \`config.log' for more details." >&5 | |
11571 | echo "$as_me: error: cannot run C compiled programs. | |
11572 | If you meant to cross compile, use \`--host'. | |
11573 | See \`config.log' for more details." >&2;} | |
11574 | { (exit 1); exit 1; }; } | |
11575 | fi | |
11576 | fi | |
11577 | fi | |
11578 | echo "$as_me:$LINENO: result: yes" >&5 | |
11579 | echo "${ECHO_T}yes" >&6 | |
11580 | ||
11581 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11582 | ac_clean_files=$ac_clean_files_save | |
11583 | # Check the compiler produces executables we can run. If not, either | |
11584 | # the compiler is broken, or we cross compile. | |
11585 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11586 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11587 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11588 | echo "${ECHO_T}$cross_compiling" >&6 | |
11589 | ||
11590 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11591 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11593 | (eval $ac_link) 2>&5 | |
11594 | ac_status=$? | |
11595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11596 | (exit $ac_status); }; then | |
11597 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11598 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11599 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11600 | # `rm'. | |
11601 | for ac_file in conftest.exe conftest conftest.*; do | |
11602 | test -f "$ac_file" || continue | |
11603 | case $ac_file in | |
11604 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11605 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11606 | export ac_cv_exeext |
11607 | break;; | |
a848cd7e SC |
11608 | * ) break;; |
11609 | esac | |
11610 | done | |
11611 | else | |
11612 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11613 | See \`config.log' for more details." >&5 | |
11614 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11615 | See \`config.log' for more details." >&2;} | |
11616 | { (exit 1); exit 1; }; } | |
11617 | fi | |
11618 | ||
11619 | rm -f conftest$ac_cv_exeext | |
11620 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11621 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11622 | ||
11623 | rm -f conftest.$ac_ext | |
11624 | EXEEXT=$ac_cv_exeext | |
11625 | ac_exeext=$EXEEXT | |
11626 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11627 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11628 | if test "${ac_cv_objext+set}" = set; then | |
11629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11630 | else | |
11631 | cat >conftest.$ac_ext <<_ACEOF | |
11632 | /* confdefs.h. */ | |
11633 | _ACEOF | |
11634 | cat confdefs.h >>conftest.$ac_ext | |
11635 | cat >>conftest.$ac_ext <<_ACEOF | |
11636 | /* end confdefs.h. */ | |
11637 | ||
11638 | int | |
11639 | main () | |
11640 | { | |
11641 | ||
11642 | ; | |
11643 | return 0; | |
11644 | } | |
11645 | _ACEOF | |
11646 | rm -f conftest.o conftest.obj | |
11647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11648 | (eval $ac_compile) 2>&5 | |
11649 | ac_status=$? | |
11650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11651 | (exit $ac_status); }; then | |
11652 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11653 | case $ac_file in | |
11654 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11655 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11656 | break;; | |
11657 | esac | |
11658 | done | |
11659 | else | |
11660 | echo "$as_me: failed program was:" >&5 | |
11661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11662 | ||
11663 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11664 | See \`config.log' for more details." >&5 | |
11665 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11666 | See \`config.log' for more details." >&2;} | |
11667 | { (exit 1); exit 1; }; } | |
11668 | fi | |
11669 | ||
11670 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11671 | fi | |
11672 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11673 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11674 | OBJEXT=$ac_cv_objext | |
11675 | ac_objext=$OBJEXT | |
11676 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11677 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11678 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11680 | else | |
11681 | cat >conftest.$ac_ext <<_ACEOF | |
11682 | /* confdefs.h. */ | |
11683 | _ACEOF | |
11684 | cat confdefs.h >>conftest.$ac_ext | |
11685 | cat >>conftest.$ac_ext <<_ACEOF | |
11686 | /* end confdefs.h. */ | |
11687 | ||
11688 | int | |
11689 | main () | |
11690 | { | |
11691 | #ifndef __GNUC__ | |
11692 | choke me | |
11693 | #endif | |
11694 | ||
11695 | ; | |
11696 | return 0; | |
11697 | } | |
11698 | _ACEOF | |
11699 | rm -f conftest.$ac_objext | |
11700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11701 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11702 | ac_status=$? |
ac1cb8d3 VS |
11703 | grep -v '^ *+' conftest.er1 >conftest.err |
11704 | rm -f conftest.er1 | |
11705 | cat conftest.err >&5 | |
a848cd7e SC |
11706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11707 | (exit $ac_status); } && | |
5d7b7554 | 11708 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11710 | (eval $ac_try) 2>&5 | |
11711 | ac_status=$? | |
11712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11713 | (exit $ac_status); }; } && | |
11714 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11716 | (eval $ac_try) 2>&5 | |
11717 | ac_status=$? | |
11718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11719 | (exit $ac_status); }; }; then | |
11720 | ac_compiler_gnu=yes | |
11721 | else | |
11722 | echo "$as_me: failed program was:" >&5 | |
11723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11724 | ||
11725 | ac_compiler_gnu=no | |
11726 | fi | |
ac1cb8d3 | 11727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11728 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11729 | ||
11730 | fi | |
11731 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11732 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11733 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11734 | ac_test_CFLAGS=${CFLAGS+set} | |
11735 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 11736 | CFLAGS="-g" |
a848cd7e SC |
11737 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11738 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11739 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11741 | else | |
11742 | cat >conftest.$ac_ext <<_ACEOF | |
11743 | /* confdefs.h. */ | |
11744 | _ACEOF | |
11745 | cat confdefs.h >>conftest.$ac_ext | |
11746 | cat >>conftest.$ac_ext <<_ACEOF | |
11747 | /* end confdefs.h. */ | |
11748 | ||
11749 | int | |
11750 | main () | |
11751 | { | |
11752 | ||
11753 | ; | |
11754 | return 0; | |
11755 | } | |
11756 | _ACEOF | |
11757 | rm -f conftest.$ac_objext | |
11758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11759 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11760 | ac_status=$? |
ac1cb8d3 VS |
11761 | grep -v '^ *+' conftest.er1 >conftest.err |
11762 | rm -f conftest.er1 | |
11763 | cat conftest.err >&5 | |
a848cd7e SC |
11764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11765 | (exit $ac_status); } && | |
5d7b7554 | 11766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11768 | (eval $ac_try) 2>&5 | |
11769 | ac_status=$? | |
11770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11771 | (exit $ac_status); }; } && | |
11772 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11774 | (eval $ac_try) 2>&5 | |
11775 | ac_status=$? | |
11776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11777 | (exit $ac_status); }; }; then | |
11778 | ac_cv_prog_cc_g=yes | |
11779 | else | |
11780 | echo "$as_me: failed program was:" >&5 | |
11781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11782 | ||
11783 | ac_cv_prog_cc_g=no | |
11784 | fi | |
ac1cb8d3 | 11785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11786 | fi |
11787 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11788 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11789 | if test "$ac_test_CFLAGS" = set; then | |
11790 | CFLAGS=$ac_save_CFLAGS | |
11791 | elif test $ac_cv_prog_cc_g = yes; then | |
11792 | if test "$GCC" = yes; then | |
11793 | CFLAGS="-g -O2" | |
11794 | else | |
11795 | CFLAGS="-g" | |
11796 | fi | |
11797 | else | |
11798 | if test "$GCC" = yes; then | |
11799 | CFLAGS="-O2" | |
11800 | else | |
11801 | CFLAGS= | |
11802 | fi | |
11803 | fi | |
11804 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11805 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11806 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11808 | else | |
11809 | ac_cv_prog_cc_stdc=no | |
11810 | ac_save_CC=$CC | |
11811 | cat >conftest.$ac_ext <<_ACEOF | |
11812 | /* confdefs.h. */ | |
11813 | _ACEOF | |
11814 | cat confdefs.h >>conftest.$ac_ext | |
11815 | cat >>conftest.$ac_ext <<_ACEOF | |
11816 | /* end confdefs.h. */ | |
11817 | #include <stdarg.h> | |
11818 | #include <stdio.h> | |
11819 | #include <sys/types.h> | |
11820 | #include <sys/stat.h> | |
11821 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11822 | struct buf { int x; }; | |
11823 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11824 | static char *e (p, i) | |
11825 | char **p; | |
11826 | int i; | |
11827 | { | |
11828 | return p[i]; | |
11829 | } | |
11830 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11831 | { | |
11832 | char *s; | |
11833 | va_list v; | |
11834 | va_start (v,p); | |
11835 | s = g (p, va_arg (v,int)); | |
11836 | va_end (v); | |
11837 | return s; | |
11838 | } | |
ac1cb8d3 VS |
11839 | |
11840 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11841 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11842 | These don't provoke an error unfortunately, instead are silently treated | |
11843 | as 'x'. The following induces an error, until -std1 is added to get | |
11844 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11845 | array size at least. It's necessary to write '\x00'==0 to get something | |
11846 | that's true only with -std1. */ | |
11847 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11848 | ||
a848cd7e SC |
11849 | int test (int i, double x); |
11850 | struct s1 {int (*f) (int a);}; | |
11851 | struct s2 {int (*f) (double a);}; | |
11852 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11853 | int argc; | |
11854 | char **argv; | |
11855 | int | |
11856 | main () | |
11857 | { | |
11858 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11859 | ; | |
11860 | return 0; | |
11861 | } | |
11862 | _ACEOF | |
11863 | # Don't try gcc -ansi; that turns off useful extensions and | |
11864 | # breaks some systems' header files. | |
11865 | # AIX -qlanglvl=ansi | |
11866 | # Ultrix and OSF/1 -std1 | |
11867 | # HP-UX 10.20 and later -Ae | |
11868 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11869 | # SVR4 -Xc -D__EXTENSIONS__ | |
11870 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11871 | do | |
11872 | CC="$ac_save_CC $ac_arg" | |
11873 | rm -f conftest.$ac_objext | |
11874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11876 | ac_status=$? |
ac1cb8d3 VS |
11877 | grep -v '^ *+' conftest.er1 >conftest.err |
11878 | rm -f conftest.er1 | |
11879 | cat conftest.err >&5 | |
a848cd7e SC |
11880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11881 | (exit $ac_status); } && | |
5d7b7554 | 11882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11884 | (eval $ac_try) 2>&5 | |
11885 | ac_status=$? | |
11886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11887 | (exit $ac_status); }; } && | |
11888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11890 | (eval $ac_try) 2>&5 | |
11891 | ac_status=$? | |
11892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11893 | (exit $ac_status); }; }; then | |
11894 | ac_cv_prog_cc_stdc=$ac_arg | |
11895 | break | |
11896 | else | |
11897 | echo "$as_me: failed program was:" >&5 | |
11898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11899 | ||
11900 | fi | |
ac1cb8d3 | 11901 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11902 | done |
11903 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11904 | CC=$ac_save_CC | |
11905 | ||
11906 | fi | |
11907 | ||
11908 | case "x$ac_cv_prog_cc_stdc" in | |
11909 | x|xno) | |
11910 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11911 | echo "${ECHO_T}none needed" >&6 ;; | |
11912 | *) | |
11913 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11914 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11915 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11916 | esac | |
11917 | ||
11918 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11919 | # in C++ we need to declare it. In case someone uses the same compiler | |
11920 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11921 | # the declaration of exit, since it's the most demanding environment. | |
11922 | cat >conftest.$ac_ext <<_ACEOF | |
11923 | #ifndef __cplusplus | |
11924 | choke me | |
11925 | #endif | |
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); } && | |
5d7b7554 | 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 | for ac_declaration in \ | |
ac1cb8d3 | 11949 | '' \ |
a848cd7e SC |
11950 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11951 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11952 | 'extern "C" void exit (int) throw ();' \ | |
11953 | 'extern "C" void exit (int);' \ | |
11954 | 'void exit (int);' | |
11955 | do | |
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. */ | |
de59c161 | 11962 | $ac_declaration |
ac1cb8d3 | 11963 | #include <stdlib.h> |
a848cd7e SC |
11964 | int |
11965 | main () | |
11966 | { | |
11967 | exit (42); | |
11968 | ; | |
11969 | return 0; | |
11970 | } | |
11971 | _ACEOF | |
11972 | rm -f conftest.$ac_objext | |
11973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11974 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11975 | ac_status=$? |
ac1cb8d3 VS |
11976 | grep -v '^ *+' conftest.er1 >conftest.err |
11977 | rm -f conftest.er1 | |
11978 | cat conftest.err >&5 | |
a848cd7e SC |
11979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11980 | (exit $ac_status); } && | |
5d7b7554 | 11981 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11983 | (eval $ac_try) 2>&5 | |
11984 | ac_status=$? | |
11985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11986 | (exit $ac_status); }; } && | |
11987 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11989 | (eval $ac_try) 2>&5 | |
11990 | ac_status=$? | |
11991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11992 | (exit $ac_status); }; }; then | |
11993 | : | |
11994 | else | |
11995 | echo "$as_me: failed program was:" >&5 | |
11996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11997 | ||
11998 | continue | |
11999 | fi | |
ac1cb8d3 | 12000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12001 | cat >conftest.$ac_ext <<_ACEOF |
12002 | /* confdefs.h. */ | |
12003 | _ACEOF | |
12004 | cat confdefs.h >>conftest.$ac_ext | |
12005 | cat >>conftest.$ac_ext <<_ACEOF | |
12006 | /* end confdefs.h. */ | |
12007 | $ac_declaration | |
12008 | int | |
12009 | main () | |
12010 | { | |
12011 | exit (42); | |
12012 | ; | |
12013 | return 0; | |
12014 | } | |
12015 | _ACEOF | |
12016 | rm -f conftest.$ac_objext | |
12017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12018 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12019 | ac_status=$? |
ac1cb8d3 VS |
12020 | grep -v '^ *+' conftest.er1 >conftest.err |
12021 | rm -f conftest.er1 | |
12022 | cat conftest.err >&5 | |
a848cd7e SC |
12023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12024 | (exit $ac_status); } && | |
5d7b7554 | 12025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12027 | (eval $ac_try) 2>&5 | |
12028 | ac_status=$? | |
12029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12030 | (exit $ac_status); }; } && | |
12031 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12033 | (eval $ac_try) 2>&5 | |
12034 | ac_status=$? | |
12035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12036 | (exit $ac_status); }; }; then | |
12037 | break | |
12038 | else | |
12039 | echo "$as_me: failed program was:" >&5 | |
12040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12041 | ||
12042 | fi | |
ac1cb8d3 | 12043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12044 | done |
12045 | rm -f conftest* | |
12046 | if test -n "$ac_declaration"; then | |
12047 | echo '#ifdef __cplusplus' >>confdefs.h | |
12048 | echo $ac_declaration >>confdefs.h | |
12049 | echo '#endif' >>confdefs.h | |
12050 | fi | |
12051 | ||
12052 | else | |
12053 | echo "$as_me: failed program was:" >&5 | |
12054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12055 | ||
12056 | fi | |
ac1cb8d3 | 12057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12058 | ac_ext=c |
12059 | ac_cpp='$CPP $CPPFLAGS' | |
12060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12063 | ||
ab0ad5f1 VZ |
12064 | |
12065 | ||
12066 | ac_ext=c | |
12067 | ac_cpp='$CPP $CPPFLAGS' | |
12068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12071 | ||
12072 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
12073 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
12074 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
12075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12076 | else | |
12077 | cat >conftest.$ac_ext <<_ACEOF | |
12078 | /* confdefs.h. */ | |
12079 | _ACEOF | |
12080 | cat confdefs.h >>conftest.$ac_ext | |
12081 | cat >>conftest.$ac_ext <<_ACEOF | |
12082 | /* end confdefs.h. */ | |
12083 | ||
12084 | int | |
12085 | main () | |
12086 | { | |
12087 | ||
12088 | #ifndef __INTEL_COMPILER | |
12089 | choke me | |
12090 | #endif | |
12091 | ||
12092 | ; | |
12093 | return 0; | |
12094 | } | |
12095 | _ACEOF | |
12096 | rm -f conftest.$ac_objext | |
12097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12098 | (eval $ac_compile) 2>conftest.er1 | |
12099 | ac_status=$? | |
12100 | grep -v '^ *+' conftest.er1 >conftest.err | |
12101 | rm -f conftest.er1 | |
12102 | cat conftest.err >&5 | |
12103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12104 | (exit $ac_status); } && | |
5d7b7554 | 12105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
12106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12107 | (eval $ac_try) 2>&5 | |
12108 | ac_status=$? | |
12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12110 | (exit $ac_status); }; } && | |
12111 | { ac_try='test -s conftest.$ac_objext' | |
12112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12113 | (eval $ac_try) 2>&5 | |
12114 | ac_status=$? | |
12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12116 | (exit $ac_status); }; }; then | |
12117 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
12118 | else | |
12119 | echo "$as_me: failed program was:" >&5 | |
12120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12121 | ||
12122 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
12123 | ||
12124 | fi | |
12125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12126 | ||
12127 | ||
12128 | fi | |
12129 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
12130 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
12131 | ac_ext=c | |
12132 | ac_cpp='$CPP $CPPFLAGS' | |
12133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12136 | ||
12137 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
12138 | :; INTELCC=yes | |
12139 | else | |
12140 | :; | |
12141 | fi | |
12142 | ||
12143 | ||
12144 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
12145 | if test "xCC" = "xC"; then |
12146 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 12147 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 12148 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
12149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12150 | else | |
12151 | cat >conftest.$ac_ext <<_ACEOF | |
12152 | /* confdefs.h. */ | |
12153 | _ACEOF | |
12154 | cat confdefs.h >>conftest.$ac_ext | |
12155 | cat >>conftest.$ac_ext <<_ACEOF | |
12156 | /* end confdefs.h. */ | |
12157 | ||
12158 | int | |
12159 | main () | |
12160 | { | |
12161 | ||
12162 | ; | |
12163 | return 0; | |
12164 | } | |
12165 | _ACEOF | |
12166 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12168 | (eval $ac_compile) 2>&5 | |
12169 | ac_status=$? | |
12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12171 | (exit $ac_status); }; then | |
12172 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12173 | case $ac_file in | |
12174 | conftest.$ac_ext.o) | |
0093c2fc | 12175 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
12176 | ;; |
12177 | *) | |
12178 | ;; | |
12179 | esac | |
12180 | done | |
12181 | else | |
12182 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12183 | See \`config.log' for more details." >&5 | |
12184 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12185 | See \`config.log' for more details." >&2;} | |
12186 | { (exit 1); exit 1; }; } | |
12187 | ||
12188 | fi | |
12189 | ||
12190 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12191 | ||
12192 | fi | |
0093c2fc VZ |
12193 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12194 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12195 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12196 | if test "c" = "c"; then |
0093c2fc | 12197 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12198 | fi |
12199 | if test "c" = "cxx"; then | |
0093c2fc | 12200 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12201 | fi |
12202 | fi | |
12203 | ||
0093c2fc | 12204 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12205 | unset ac_cv_prog_cc_g |
12206 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12207 | ac_save_CFLAGS=$CFLAGS |
8aeeb05c | 12208 | CFLAGS="-g" |
480ccd21 DE |
12209 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12210 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12211 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12213 | else | |
12214 | cat >conftest.$ac_ext <<_ACEOF | |
12215 | /* confdefs.h. */ | |
12216 | _ACEOF | |
12217 | cat confdefs.h >>conftest.$ac_ext | |
12218 | cat >>conftest.$ac_ext <<_ACEOF | |
12219 | /* end confdefs.h. */ | |
12220 | ||
12221 | int | |
12222 | main () | |
12223 | { | |
12224 | ||
12225 | ; | |
12226 | return 0; | |
12227 | } | |
12228 | _ACEOF | |
12229 | rm -f conftest.$ac_objext | |
12230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12231 | (eval $ac_compile) 2>conftest.er1 | |
12232 | ac_status=$? | |
12233 | grep -v '^ *+' conftest.er1 >conftest.err | |
12234 | rm -f conftest.er1 | |
12235 | cat conftest.err >&5 | |
12236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12237 | (exit $ac_status); } && | |
5d7b7554 | 12238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12240 | (eval $ac_try) 2>&5 | |
12241 | ac_status=$? | |
12242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12243 | (exit $ac_status); }; } && | |
12244 | { ac_try='test -s conftest.$ac_objext' | |
12245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12246 | (eval $ac_try) 2>&5 | |
12247 | ac_status=$? | |
12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12249 | (exit $ac_status); }; }; then | |
12250 | ac_cv_prog_cc_g=yes | |
12251 | else | |
12252 | echo "$as_me: failed program was:" >&5 | |
12253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12254 | ||
12255 | ac_cv_prog_cc_g=no | |
12256 | fi | |
12257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12258 | fi | |
12259 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12260 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12261 | if test "$ac_test_CFLAGS" = set; then | |
12262 | CFLAGS=$ac_save_CFLAGS | |
12263 | elif test $ac_cv_prog_cc_g = yes; then | |
12264 | if test "$GCC" = yes; then | |
12265 | CFLAGS="-g -O2" | |
12266 | else | |
12267 | CFLAGS="-g" | |
12268 | fi | |
12269 | else | |
12270 | if test "$GCC" = yes; then | |
12271 | CFLAGS="-O2" | |
12272 | else | |
12273 | CFLAGS= | |
12274 | fi | |
12275 | fi | |
3006edc0 | 12276 | fi |
ab0ad5f1 | 12277 | fi |
3006edc0 VZ |
12278 | |
12279 | case `uname -s` in | |
12280 | AIX*) | |
12281 | ac_ext=c | |
12282 | ac_cpp='$CPP $CPPFLAGS' | |
12283 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12284 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12285 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12286 | ||
12287 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12288 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12289 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12291 | else | |
12292 | cat >conftest.$ac_ext <<_ACEOF | |
12293 | /* confdefs.h. */ | |
12294 | _ACEOF | |
12295 | cat confdefs.h >>conftest.$ac_ext | |
12296 | cat >>conftest.$ac_ext <<_ACEOF | |
12297 | /* end confdefs.h. */ | |
12298 | ||
12299 | int | |
12300 | main () | |
12301 | { | |
12302 | #ifndef __xlC__ | |
12303 | choke me | |
12304 | #endif | |
12305 | ||
12306 | ; | |
12307 | return 0; | |
12308 | } | |
12309 | _ACEOF | |
12310 | rm -f conftest.$ac_objext | |
12311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12312 | (eval $ac_compile) 2>conftest.er1 | |
12313 | ac_status=$? | |
12314 | grep -v '^ *+' conftest.er1 >conftest.err | |
12315 | rm -f conftest.er1 | |
12316 | cat conftest.err >&5 | |
12317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12318 | (exit $ac_status); } && | |
5d7b7554 | 12319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12321 | (eval $ac_try) 2>&5 | |
12322 | ac_status=$? | |
12323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12324 | (exit $ac_status); }; } && | |
12325 | { ac_try='test -s conftest.$ac_objext' | |
12326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12327 | (eval $ac_try) 2>&5 | |
12328 | ac_status=$? | |
12329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12330 | (exit $ac_status); }; }; then | |
0093c2fc | 12331 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12332 | else |
12333 | echo "$as_me: failed program was:" >&5 | |
12334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12335 | ||
0093c2fc | 12336 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12337 | fi |
12338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12339 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12340 | |
12341 | fi | |
0093c2fc VZ |
12342 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12343 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12344 | |
0093c2fc | 12345 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12346 | ac_ext=c |
12347 | ac_cpp='$CPP $CPPFLAGS' | |
12348 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12349 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12350 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12351 | ||
12352 | ||
12353 | ;; | |
12354 | ||
12355 | Darwin) | |
12356 | ac_ext=c | |
95986553 DE |
12357 | ac_cpp='$CPP $CPPFLAGS' |
12358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12361 | ||
12362 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12363 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12364 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12366 | else | |
12367 | cat >conftest.$ac_ext <<_ACEOF | |
12368 | /* confdefs.h. */ | |
12369 | _ACEOF | |
12370 | cat confdefs.h >>conftest.$ac_ext | |
12371 | cat >>conftest.$ac_ext <<_ACEOF | |
12372 | /* end confdefs.h. */ | |
12373 | ||
12374 | int | |
12375 | main () | |
12376 | { | |
12377 | #ifndef __MWERKS__ | |
12378 | choke me | |
12379 | #endif | |
12380 | ||
12381 | ; | |
12382 | return 0; | |
12383 | } | |
12384 | _ACEOF | |
12385 | rm -f conftest.$ac_objext | |
12386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12387 | (eval $ac_compile) 2>conftest.er1 | |
12388 | ac_status=$? | |
12389 | grep -v '^ *+' conftest.er1 >conftest.err | |
12390 | rm -f conftest.er1 | |
12391 | cat conftest.err >&5 | |
12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12393 | (exit $ac_status); } && | |
5d7b7554 | 12394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12396 | (eval $ac_try) 2>&5 | |
12397 | ac_status=$? | |
12398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12399 | (exit $ac_status); }; } && | |
12400 | { ac_try='test -s conftest.$ac_objext' | |
12401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12402 | (eval $ac_try) 2>&5 | |
12403 | ac_status=$? | |
12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12405 | (exit $ac_status); }; }; then | |
12406 | bakefile_compiler_mwerks=yes | |
12407 | else | |
12408 | echo "$as_me: failed program was:" >&5 | |
12409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12410 | ||
12411 | bakefile_compiler_mwerks=no | |
12412 | fi | |
12413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12414 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12415 | ||
12416 | fi | |
12417 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12418 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12419 | ||
0e6fa1d9 | 12420 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12421 | ac_ext=c |
12422 | ac_cpp='$CPP $CPPFLAGS' | |
12423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12426 | ||
12427 | ||
3006edc0 | 12428 | ac_ext=c |
9273ffba DE |
12429 | ac_cpp='$CPP $CPPFLAGS' |
12430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12433 | ||
12434 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12435 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12436 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12438 | else | |
12439 | cat >conftest.$ac_ext <<_ACEOF | |
12440 | /* confdefs.h. */ | |
12441 | _ACEOF | |
12442 | cat confdefs.h >>conftest.$ac_ext | |
12443 | cat >>conftest.$ac_ext <<_ACEOF | |
12444 | /* end confdefs.h. */ | |
12445 | ||
12446 | int | |
12447 | main () | |
12448 | { | |
12449 | #ifndef __xlC__ | |
12450 | choke me | |
12451 | #endif | |
12452 | ||
12453 | ; | |
12454 | return 0; | |
12455 | } | |
12456 | _ACEOF | |
12457 | rm -f conftest.$ac_objext | |
12458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12459 | (eval $ac_compile) 2>conftest.er1 | |
12460 | ac_status=$? | |
12461 | grep -v '^ *+' conftest.er1 >conftest.err | |
12462 | rm -f conftest.er1 | |
12463 | cat conftest.err >&5 | |
12464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12465 | (exit $ac_status); } && | |
5d7b7554 | 12466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12468 | (eval $ac_try) 2>&5 | |
12469 | ac_status=$? | |
12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12471 | (exit $ac_status); }; } && | |
12472 | { ac_try='test -s conftest.$ac_objext' | |
12473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12474 | (eval $ac_try) 2>&5 | |
12475 | ac_status=$? | |
12476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12477 | (exit $ac_status); }; }; then | |
0093c2fc | 12478 | bakefile_compiler_xlc=yes |
9273ffba DE |
12479 | else |
12480 | echo "$as_me: failed program was:" >&5 | |
12481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12482 | ||
0093c2fc | 12483 | bakefile_compiler_xlc=no |
9273ffba DE |
12484 | fi |
12485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12486 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12487 | |
12488 | fi | |
0093c2fc VZ |
12489 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12490 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12491 | |
0093c2fc | 12492 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12493 | ac_ext=c |
12494 | ac_cpp='$CPP $CPPFLAGS' | |
12495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12498 | ||
12499 | ||
3006edc0 VZ |
12500 | ;; |
12501 | ||
12502 | IRIX*) | |
a848cd7e | 12503 | |
6dcfc289 | 12504 | |
0ad5d837 VZ |
12505 | ac_ext=c |
12506 | ac_cpp='$CPP $CPPFLAGS' | |
12507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12510 | ||
12511 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12512 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12513 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12515 | else | |
12516 | cat >conftest.$ac_ext <<_ACEOF | |
12517 | /* confdefs.h. */ | |
12518 | _ACEOF | |
12519 | cat confdefs.h >>conftest.$ac_ext | |
12520 | cat >>conftest.$ac_ext <<_ACEOF | |
12521 | /* end confdefs.h. */ | |
12522 | ||
12523 | int | |
12524 | main () | |
12525 | { | |
12526 | ||
12527 | #ifndef _SGI_COMPILER_VERSION | |
12528 | choke me | |
12529 | #endif | |
12530 | ||
12531 | ; | |
12532 | return 0; | |
12533 | } | |
12534 | _ACEOF | |
12535 | rm -f conftest.$ac_objext | |
12536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12537 | (eval $ac_compile) 2>conftest.er1 | |
12538 | ac_status=$? | |
12539 | grep -v '^ *+' conftest.er1 >conftest.err | |
12540 | rm -f conftest.er1 | |
12541 | cat conftest.err >&5 | |
12542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12543 | (exit $ac_status); } && | |
5d7b7554 | 12544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
12545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12546 | (eval $ac_try) 2>&5 | |
12547 | ac_status=$? | |
12548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12549 | (exit $ac_status); }; } && | |
12550 | { ac_try='test -s conftest.$ac_objext' | |
12551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12552 | (eval $ac_try) 2>&5 | |
12553 | ac_status=$? | |
12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12555 | (exit $ac_status); }; }; then | |
12556 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12557 | else | |
12558 | echo "$as_me: failed program was:" >&5 | |
12559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12560 | ||
12561 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12562 | ||
12563 | fi | |
12564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12565 | ||
12566 | ||
12567 | fi | |
12568 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12569 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12570 | ac_ext=c | |
12571 | ac_cpp='$CPP $CPPFLAGS' | |
12572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12575 | ||
12576 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12577 | :; SGICC=yes | |
12578 | else | |
12579 | :; | |
12580 | fi | |
12581 | ||
12582 | ||
3006edc0 VZ |
12583 | ;; |
12584 | ||
0093c2fc | 12585 | HP-UX*) |
3006edc0 VZ |
12586 | |
12587 | ||
12588 | ac_ext=c | |
12589 | ac_cpp='$CPP $CPPFLAGS' | |
12590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12593 | ||
0093c2fc VZ |
12594 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12595 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12596 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
12597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12598 | else | |
12599 | cat >conftest.$ac_ext <<_ACEOF | |
12600 | /* confdefs.h. */ | |
12601 | _ACEOF | |
12602 | cat confdefs.h >>conftest.$ac_ext | |
12603 | cat >>conftest.$ac_ext <<_ACEOF | |
12604 | /* end confdefs.h. */ | |
12605 | ||
12606 | int | |
12607 | main () | |
12608 | { | |
12609 | ||
0093c2fc | 12610 | #ifndef __HP_cc |
3006edc0 VZ |
12611 | choke me |
12612 | #endif | |
12613 | ||
12614 | ; | |
12615 | return 0; | |
12616 | } | |
12617 | _ACEOF | |
12618 | rm -f conftest.$ac_objext | |
12619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12620 | (eval $ac_compile) 2>conftest.er1 | |
12621 | ac_status=$? | |
12622 | grep -v '^ *+' conftest.er1 >conftest.err | |
12623 | rm -f conftest.er1 | |
12624 | cat conftest.err >&5 | |
12625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12626 | (exit $ac_status); } && | |
5d7b7554 | 12627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12629 | (eval $ac_try) 2>&5 | |
12630 | ac_status=$? | |
12631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12632 | (exit $ac_status); }; } && | |
12633 | { ac_try='test -s conftest.$ac_objext' | |
12634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12635 | (eval $ac_try) 2>&5 | |
12636 | ac_status=$? | |
12637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12638 | (exit $ac_status); }; }; then | |
0093c2fc | 12639 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
12640 | else |
12641 | echo "$as_me: failed program was:" >&5 | |
12642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12643 | ||
0093c2fc | 12644 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
12645 | |
12646 | fi | |
12647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12648 | ||
12649 | ||
12650 | fi | |
0093c2fc VZ |
12651 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
12652 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
12653 | ac_ext=c |
12654 | ac_cpp='$CPP $CPPFLAGS' | |
12655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12658 | ||
0093c2fc VZ |
12659 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
12660 | :; HPCC=yes | |
a1aa0349 VZ |
12661 | else |
12662 | :; | |
12663 | fi | |
12664 | ||
12665 | ||
12666 | ;; | |
12667 | ||
0093c2fc | 12668 | OSF1) |
a1aa0349 VZ |
12669 | |
12670 | ||
12671 | ac_ext=c | |
12672 | ac_cpp='$CPP $CPPFLAGS' | |
12673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12676 | ||
0093c2fc VZ |
12677 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
12678 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
12679 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
12680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12681 | else | |
12682 | cat >conftest.$ac_ext <<_ACEOF | |
12683 | /* confdefs.h. */ | |
12684 | _ACEOF | |
12685 | cat confdefs.h >>conftest.$ac_ext | |
12686 | cat >>conftest.$ac_ext <<_ACEOF | |
12687 | /* end confdefs.h. */ | |
12688 | ||
12689 | int | |
12690 | main () | |
12691 | { | |
12692 | ||
0093c2fc | 12693 | #ifndef __DECC |
a1aa0349 VZ |
12694 | choke me |
12695 | #endif | |
12696 | ||
12697 | ; | |
12698 | return 0; | |
12699 | } | |
12700 | _ACEOF | |
12701 | rm -f conftest.$ac_objext | |
12702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12703 | (eval $ac_compile) 2>conftest.er1 | |
12704 | ac_status=$? | |
12705 | grep -v '^ *+' conftest.er1 >conftest.err | |
12706 | rm -f conftest.er1 | |
12707 | cat conftest.err >&5 | |
12708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12709 | (exit $ac_status); } && | |
5d7b7554 | 12710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
12711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12712 | (eval $ac_try) 2>&5 | |
12713 | ac_status=$? | |
12714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12715 | (exit $ac_status); }; } && | |
12716 | { ac_try='test -s conftest.$ac_objext' | |
12717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12718 | (eval $ac_try) 2>&5 | |
12719 | ac_status=$? | |
12720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12721 | (exit $ac_status); }; }; then | |
0093c2fc | 12722 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
12723 | else |
12724 | echo "$as_me: failed program was:" >&5 | |
12725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12726 | ||
0093c2fc | 12727 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
12728 | |
12729 | fi | |
12730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12731 | ||
12732 | ||
12733 | fi | |
0093c2fc VZ |
12734 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
12735 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
12736 | ac_ext=c |
12737 | ac_cpp='$CPP $CPPFLAGS' | |
12738 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12739 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12740 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12741 | ||
0093c2fc VZ |
12742 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
12743 | :; COMPAQCC=yes | |
12744 | else | |
12745 | :; | |
12746 | fi | |
12747 | ||
12748 | ||
12749 | ;; | |
12750 | ||
12751 | SunOS) | |
12752 | ||
12753 | ||
12754 | ac_ext=c | |
12755 | ac_cpp='$CPP $CPPFLAGS' | |
12756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12759 | ||
12760 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12761 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12762 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12764 | else | |
12765 | cat >conftest.$ac_ext <<_ACEOF | |
12766 | /* confdefs.h. */ | |
12767 | _ACEOF | |
12768 | cat confdefs.h >>conftest.$ac_ext | |
12769 | cat >>conftest.$ac_ext <<_ACEOF | |
12770 | /* end confdefs.h. */ | |
12771 | ||
12772 | int | |
12773 | main () | |
12774 | { | |
12775 | ||
12776 | #ifndef __SUNPRO_C | |
12777 | choke me | |
12778 | #endif | |
12779 | ||
12780 | ; | |
12781 | return 0; | |
12782 | } | |
12783 | _ACEOF | |
12784 | rm -f conftest.$ac_objext | |
12785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12786 | (eval $ac_compile) 2>conftest.er1 | |
12787 | ac_status=$? | |
12788 | grep -v '^ *+' conftest.er1 >conftest.err | |
12789 | rm -f conftest.er1 | |
12790 | cat conftest.err >&5 | |
12791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12792 | (exit $ac_status); } && | |
5d7b7554 | 12793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
12794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12795 | (eval $ac_try) 2>&5 | |
12796 | ac_status=$? | |
12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12798 | (exit $ac_status); }; } && | |
12799 | { ac_try='test -s conftest.$ac_objext' | |
12800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12801 | (eval $ac_try) 2>&5 | |
12802 | ac_status=$? | |
12803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12804 | (exit $ac_status); }; }; then | |
12805 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12806 | else | |
12807 | echo "$as_me: failed program was:" >&5 | |
12808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12809 | ||
12810 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12811 | ||
12812 | fi | |
12813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12814 | ||
12815 | ||
12816 | fi | |
12817 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12818 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12819 | ac_ext=c | |
12820 | ac_cpp='$CPP $CPPFLAGS' | |
12821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12824 | ||
12825 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12826 | :; SUNCC=yes | |
3006edc0 VZ |
12827 | else |
12828 | :; | |
12829 | fi | |
12830 | ||
12831 | ||
12832 | ;; | |
12833 | esac | |
ab0ad5f1 | 12834 | fi |
a9e5b1f0 MW |
12835 | |
12836 | ||
3006edc0 | 12837 | |
a848cd7e SC |
12838 | ac_ext=c |
12839 | ac_cpp='$CPP $CPPFLAGS' | |
12840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12843 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12844 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12845 | # On Suns, sometimes $CPP names a directory. | |
12846 | if test -n "$CPP" && test -d "$CPP"; then | |
12847 | CPP= | |
12848 | fi | |
12849 | if test -z "$CPP"; then | |
12850 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12852 | else | |
12853 | # Double quotes because CPP needs to be expanded | |
12854 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12855 | do | |
12856 | ac_preproc_ok=false | |
12857 | for ac_c_preproc_warn_flag in '' yes | |
12858 | do | |
12859 | # Use a header file that comes with gcc, so configuring glibc | |
12860 | # with a fresh cross-compiler works. | |
12861 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12862 | # <limits.h> exists even on freestanding compilers. | |
12863 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12864 | # not just through cpp. "Syntax error" is here to catch this case. | |
12865 | cat >conftest.$ac_ext <<_ACEOF | |
12866 | /* confdefs.h. */ | |
12867 | _ACEOF | |
12868 | cat confdefs.h >>conftest.$ac_ext | |
12869 | cat >>conftest.$ac_ext <<_ACEOF | |
12870 | /* end confdefs.h. */ | |
12871 | #ifdef __STDC__ | |
12872 | # include <limits.h> | |
12873 | #else | |
12874 | # include <assert.h> | |
12875 | #endif | |
ac1cb8d3 | 12876 | Syntax error |
a848cd7e SC |
12877 | _ACEOF |
12878 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12879 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12880 | ac_status=$? | |
12881 | grep -v '^ *+' conftest.er1 >conftest.err | |
12882 | rm -f conftest.er1 | |
12883 | cat conftest.err >&5 | |
12884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12885 | (exit $ac_status); } >/dev/null; then | |
12886 | if test -s conftest.err; then | |
12887 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12888 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12889 | else |
12890 | ac_cpp_err= | |
12891 | fi | |
12892 | else | |
12893 | ac_cpp_err=yes | |
12894 | fi | |
12895 | if test -z "$ac_cpp_err"; then | |
12896 | : | |
12897 | else | |
12898 | echo "$as_me: failed program was:" >&5 | |
12899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12900 | ||
12901 | # Broken: fails on valid input. | |
12902 | continue | |
12903 | fi | |
12904 | rm -f conftest.err conftest.$ac_ext | |
12905 | ||
12906 | # OK, works on sane cases. Now check whether non-existent headers | |
12907 | # can be detected and how. | |
12908 | cat >conftest.$ac_ext <<_ACEOF | |
12909 | /* confdefs.h. */ | |
12910 | _ACEOF | |
12911 | cat confdefs.h >>conftest.$ac_ext | |
12912 | cat >>conftest.$ac_ext <<_ACEOF | |
12913 | /* end confdefs.h. */ | |
12914 | #include <ac_nonexistent.h> | |
12915 | _ACEOF | |
12916 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12917 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12918 | ac_status=$? | |
12919 | grep -v '^ *+' conftest.er1 >conftest.err | |
12920 | rm -f conftest.er1 | |
12921 | cat conftest.err >&5 | |
12922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12923 | (exit $ac_status); } >/dev/null; then | |
12924 | if test -s conftest.err; then | |
12925 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12926 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12927 | else |
12928 | ac_cpp_err= | |
12929 | fi | |
12930 | else | |
12931 | ac_cpp_err=yes | |
12932 | fi | |
12933 | if test -z "$ac_cpp_err"; then | |
12934 | # Broken: success on invalid input. | |
12935 | continue | |
12936 | else | |
12937 | echo "$as_me: failed program was:" >&5 | |
12938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12939 | ||
12940 | # Passes both tests. | |
12941 | ac_preproc_ok=: | |
12942 | break | |
12943 | fi | |
12944 | rm -f conftest.err conftest.$ac_ext | |
12945 | ||
12946 | done | |
12947 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12948 | rm -f conftest.err conftest.$ac_ext | |
12949 | if $ac_preproc_ok; then | |
12950 | break | |
12951 | fi | |
12952 | ||
12953 | done | |
12954 | ac_cv_prog_CPP=$CPP | |
12955 | ||
12956 | fi | |
12957 | CPP=$ac_cv_prog_CPP | |
12958 | else | |
12959 | ac_cv_prog_CPP=$CPP | |
12960 | fi | |
12961 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12962 | echo "${ECHO_T}$CPP" >&6 | |
12963 | ac_preproc_ok=false | |
12964 | for ac_c_preproc_warn_flag in '' yes | |
12965 | do | |
12966 | # Use a header file that comes with gcc, so configuring glibc | |
12967 | # with a fresh cross-compiler works. | |
12968 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12969 | # <limits.h> exists even on freestanding compilers. | |
12970 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12971 | # not just through cpp. "Syntax error" is here to catch this case. | |
12972 | cat >conftest.$ac_ext <<_ACEOF | |
12973 | /* confdefs.h. */ | |
12974 | _ACEOF | |
12975 | cat confdefs.h >>conftest.$ac_ext | |
12976 | cat >>conftest.$ac_ext <<_ACEOF | |
12977 | /* end confdefs.h. */ | |
12978 | #ifdef __STDC__ | |
12979 | # include <limits.h> | |
12980 | #else | |
12981 | # include <assert.h> | |
12982 | #endif | |
ac1cb8d3 | 12983 | Syntax error |
a848cd7e SC |
12984 | _ACEOF |
12985 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12986 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12987 | ac_status=$? | |
12988 | grep -v '^ *+' conftest.er1 >conftest.err | |
12989 | rm -f conftest.er1 | |
12990 | cat conftest.err >&5 | |
12991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12992 | (exit $ac_status); } >/dev/null; then | |
12993 | if test -s conftest.err; then | |
12994 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12995 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12996 | else |
12997 | ac_cpp_err= | |
12998 | fi | |
12999 | else | |
13000 | ac_cpp_err=yes | |
13001 | fi | |
13002 | if test -z "$ac_cpp_err"; then | |
13003 | : | |
13004 | else | |
13005 | echo "$as_me: failed program was:" >&5 | |
13006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13007 | ||
13008 | # Broken: fails on valid input. | |
13009 | continue | |
13010 | fi | |
13011 | rm -f conftest.err conftest.$ac_ext | |
13012 | ||
13013 | # OK, works on sane cases. Now check whether non-existent headers | |
13014 | # can be detected and how. | |
13015 | cat >conftest.$ac_ext <<_ACEOF | |
13016 | /* confdefs.h. */ | |
13017 | _ACEOF | |
13018 | cat confdefs.h >>conftest.$ac_ext | |
13019 | cat >>conftest.$ac_ext <<_ACEOF | |
13020 | /* end confdefs.h. */ | |
13021 | #include <ac_nonexistent.h> | |
13022 | _ACEOF | |
13023 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13024 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13025 | ac_status=$? | |
13026 | grep -v '^ *+' conftest.er1 >conftest.err | |
13027 | rm -f conftest.er1 | |
13028 | cat conftest.err >&5 | |
13029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13030 | (exit $ac_status); } >/dev/null; then | |
13031 | if test -s conftest.err; then | |
13032 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13033 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13034 | else |
13035 | ac_cpp_err= | |
13036 | fi | |
13037 | else | |
13038 | ac_cpp_err=yes | |
13039 | fi | |
13040 | if test -z "$ac_cpp_err"; then | |
13041 | # Broken: success on invalid input. | |
13042 | continue | |
13043 | else | |
13044 | echo "$as_me: failed program was:" >&5 | |
13045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13046 | ||
13047 | # Passes both tests. | |
13048 | ac_preproc_ok=: | |
13049 | break | |
13050 | fi | |
13051 | rm -f conftest.err conftest.$ac_ext | |
13052 | ||
13053 | done | |
13054 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13055 | rm -f conftest.err conftest.$ac_ext | |
13056 | if $ac_preproc_ok; then | |
13057 | : | |
13058 | else | |
13059 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
13060 | See \`config.log' for more details." >&5 | |
13061 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
13062 | See \`config.log' for more details." >&2;} | |
13063 | { (exit 1); exit 1; }; } | |
13064 | fi | |
13065 | ||
13066 | ac_ext=c | |
13067 | ac_cpp='$CPP $CPPFLAGS' | |
13068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13071 | ||
13072 | ||
13073 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
13074 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
13075 | if test "${ac_cv_prog_egrep+set}" = set; then | |
13076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13077 | else | |
13078 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
13079 | then ac_cv_prog_egrep='grep -E' | |
13080 | else ac_cv_prog_egrep='egrep' | |
13081 | fi | |
13082 | fi | |
13083 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
13084 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
13085 | EGREP=$ac_cv_prog_egrep | |
13086 | ||
13087 | ||
13088 | if test $ac_cv_c_compiler_gnu = yes; then | |
13089 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
13090 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
13091 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
13092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13093 | else | |
13094 | ac_pattern="Autoconf.*'x'" | |
13095 | cat >conftest.$ac_ext <<_ACEOF | |
13096 | /* confdefs.h. */ | |
13097 | _ACEOF | |
13098 | cat confdefs.h >>conftest.$ac_ext | |
13099 | cat >>conftest.$ac_ext <<_ACEOF | |
13100 | /* end confdefs.h. */ | |
13101 | #include <sgtty.h> | |
13102 | Autoconf TIOCGETP | |
13103 | _ACEOF | |
13104 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13105 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13106 | ac_cv_prog_gcc_traditional=yes | |
13107 | else | |
13108 | ac_cv_prog_gcc_traditional=no | |
13109 | fi | |
13110 | rm -f conftest* | |
13111 | ||
13112 | ||
13113 | if test $ac_cv_prog_gcc_traditional = no; then | |
13114 | cat >conftest.$ac_ext <<_ACEOF | |
13115 | /* confdefs.h. */ | |
13116 | _ACEOF | |
13117 | cat confdefs.h >>conftest.$ac_ext | |
13118 | cat >>conftest.$ac_ext <<_ACEOF | |
13119 | /* end confdefs.h. */ | |
13120 | #include <termio.h> | |
13121 | Autoconf TCGETA | |
13122 | _ACEOF | |
13123 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13124 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13125 | ac_cv_prog_gcc_traditional=yes | |
13126 | fi | |
13127 | rm -f conftest* | |
13128 | ||
13129 | fi | |
13130 | fi | |
13131 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
13132 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
13133 | if test $ac_cv_prog_gcc_traditional = yes; then | |
13134 | CC="$CC -traditional" | |
13135 | fi | |
13136 | fi | |
13137 | ||
13138 | ||
a848cd7e SC |
13139 | ac_ext=cc |
13140 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13141 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13142 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13143 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13144 | ||
13145 | ||
13146 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
13147 | |
13148 | ||
3006edc0 | 13149 | |
6dcfc289 | 13150 | ac_ext=cc |
a848cd7e SC |
13151 | ac_cpp='$CXXCPP $CPPFLAGS' |
13152 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13153 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13154 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13155 | if test -n "$ac_tool_prefix"; then | |
13156 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13157 | do | |
13158 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13159 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13162 | if test "${ac_cv_prog_CXX+set}" = set; then | |
13163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13164 | else | |
13165 | if test -n "$CXX"; then | |
13166 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13167 | else | |
13168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13169 | for as_dir in $PATH | |
13170 | do | |
13171 | IFS=$as_save_IFS | |
13172 | test -z "$as_dir" && as_dir=. | |
13173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13175 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13177 | break 2 | |
13178 | fi | |
13179 | done | |
13180 | done | |
13181 | ||
13182 | fi | |
13183 | fi | |
13184 | CXX=$ac_cv_prog_CXX | |
13185 | if test -n "$CXX"; then | |
13186 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13187 | echo "${ECHO_T}$CXX" >&6 | |
13188 | else | |
13189 | echo "$as_me:$LINENO: result: no" >&5 | |
13190 | echo "${ECHO_T}no" >&6 | |
13191 | fi | |
13192 | ||
13193 | test -n "$CXX" && break | |
13194 | done | |
13195 | fi | |
13196 | if test -z "$CXX"; then | |
13197 | ac_ct_CXX=$CXX | |
13198 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13199 | do | |
13200 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13201 | set dummy $ac_prog; ac_word=$2 | |
13202 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13203 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13204 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13206 | else | |
13207 | if test -n "$ac_ct_CXX"; then | |
13208 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13209 | else | |
13210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13211 | for as_dir in $PATH | |
13212 | do | |
13213 | IFS=$as_save_IFS | |
13214 | test -z "$as_dir" && as_dir=. | |
13215 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13216 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13217 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13219 | break 2 | |
13220 | fi | |
13221 | done | |
13222 | done | |
13223 | ||
13224 | fi | |
13225 | fi | |
13226 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13227 | if test -n "$ac_ct_CXX"; then | |
13228 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13229 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13230 | else | |
13231 | echo "$as_me:$LINENO: result: no" >&5 | |
13232 | echo "${ECHO_T}no" >&6 | |
13233 | fi | |
13234 | ||
13235 | test -n "$ac_ct_CXX" && break | |
13236 | done | |
13237 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13238 | ||
13239 | CXX=$ac_ct_CXX | |
13240 | fi | |
13241 | ||
13242 | ||
13243 | # Provide some information about the compiler. | |
13244 | echo "$as_me:$LINENO:" \ | |
13245 | "checking for C++ compiler version" >&5 | |
13246 | ac_compiler=`set X $ac_compile; echo $2` | |
13247 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13248 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13249 | ac_status=$? | |
13250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13251 | (exit $ac_status); } | |
13252 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13253 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13254 | ac_status=$? | |
13255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13256 | (exit $ac_status); } | |
13257 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13258 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13259 | ac_status=$? | |
13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13261 | (exit $ac_status); } | |
13262 | ||
13263 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13264 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13265 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
13266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13267 | else | |
13268 | cat >conftest.$ac_ext <<_ACEOF | |
13269 | /* confdefs.h. */ | |
13270 | _ACEOF | |
13271 | cat confdefs.h >>conftest.$ac_ext | |
13272 | cat >>conftest.$ac_ext <<_ACEOF | |
13273 | /* end confdefs.h. */ | |
13274 | ||
13275 | int | |
13276 | main () | |
13277 | { | |
13278 | #ifndef __GNUC__ | |
13279 | choke me | |
13280 | #endif | |
13281 | ||
13282 | ; | |
13283 | return 0; | |
13284 | } | |
13285 | _ACEOF | |
13286 | rm -f conftest.$ac_objext | |
13287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13288 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13289 | ac_status=$? |
ac1cb8d3 VS |
13290 | grep -v '^ *+' conftest.er1 >conftest.err |
13291 | rm -f conftest.er1 | |
13292 | cat conftest.err >&5 | |
a848cd7e SC |
13293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13294 | (exit $ac_status); } && | |
5d7b7554 | 13295 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13297 | (eval $ac_try) 2>&5 | |
13298 | ac_status=$? | |
13299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13300 | (exit $ac_status); }; } && | |
13301 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13303 | (eval $ac_try) 2>&5 | |
13304 | ac_status=$? | |
13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13306 | (exit $ac_status); }; }; then | |
13307 | ac_compiler_gnu=yes | |
13308 | else | |
13309 | echo "$as_me: failed program was:" >&5 | |
13310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13311 | ||
13312 | ac_compiler_gnu=no | |
13313 | fi | |
ac1cb8d3 | 13314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13315 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13316 | ||
13317 | fi | |
13318 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13319 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13320 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13321 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13322 | ac_save_CXXFLAGS=$CXXFLAGS | |
13323 | CXXFLAGS="-g" | |
13324 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13325 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13326 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13328 | else | |
13329 | cat >conftest.$ac_ext <<_ACEOF | |
13330 | /* confdefs.h. */ | |
13331 | _ACEOF | |
13332 | cat confdefs.h >>conftest.$ac_ext | |
13333 | cat >>conftest.$ac_ext <<_ACEOF | |
13334 | /* end confdefs.h. */ | |
13335 | ||
13336 | int | |
13337 | main () | |
13338 | { | |
13339 | ||
13340 | ; | |
13341 | return 0; | |
13342 | } | |
13343 | _ACEOF | |
13344 | rm -f conftest.$ac_objext | |
13345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13346 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13347 | ac_status=$? |
ac1cb8d3 VS |
13348 | grep -v '^ *+' conftest.er1 >conftest.err |
13349 | rm -f conftest.er1 | |
13350 | cat conftest.err >&5 | |
a848cd7e SC |
13351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13352 | (exit $ac_status); } && | |
5d7b7554 | 13353 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13355 | (eval $ac_try) 2>&5 | |
13356 | ac_status=$? | |
13357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13358 | (exit $ac_status); }; } && | |
13359 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13361 | (eval $ac_try) 2>&5 | |
13362 | ac_status=$? | |
13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13364 | (exit $ac_status); }; }; then | |
13365 | ac_cv_prog_cxx_g=yes | |
13366 | else | |
13367 | echo "$as_me: failed program was:" >&5 | |
13368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13369 | ||
13370 | ac_cv_prog_cxx_g=no | |
13371 | fi | |
ac1cb8d3 | 13372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13373 | fi |
13374 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13375 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13376 | if test "$ac_test_CXXFLAGS" = set; then | |
13377 | CXXFLAGS=$ac_save_CXXFLAGS | |
13378 | elif test $ac_cv_prog_cxx_g = yes; then | |
13379 | if test "$GXX" = yes; then | |
8aeeb05c | 13380 | CXXFLAGS="-g -O2" |
a848cd7e | 13381 | else |
8aeeb05c | 13382 | CXXFLAGS="-g" |
a848cd7e SC |
13383 | fi |
13384 | else | |
13385 | if test "$GXX" = yes; then | |
13386 | CXXFLAGS="-O2" | |
13387 | else | |
13388 | CXXFLAGS= | |
13389 | fi | |
13390 | fi | |
13391 | for ac_declaration in \ | |
ac1cb8d3 | 13392 | '' \ |
a848cd7e SC |
13393 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13394 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13395 | 'extern "C" void exit (int) throw ();' \ | |
13396 | 'extern "C" void exit (int);' \ | |
13397 | 'void exit (int);' | |
13398 | do | |
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. */ | |
de59c161 | 13405 | $ac_declaration |
ac1cb8d3 | 13406 | #include <stdlib.h> |
a848cd7e SC |
13407 | int |
13408 | main () | |
13409 | { | |
13410 | exit (42); | |
13411 | ; | |
13412 | return 0; | |
13413 | } | |
13414 | _ACEOF | |
13415 | rm -f conftest.$ac_objext | |
13416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13417 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13418 | ac_status=$? |
ac1cb8d3 VS |
13419 | grep -v '^ *+' conftest.er1 >conftest.err |
13420 | rm -f conftest.er1 | |
13421 | cat conftest.err >&5 | |
a848cd7e SC |
13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13423 | (exit $ac_status); } && | |
5d7b7554 | 13424 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13426 | (eval $ac_try) 2>&5 | |
13427 | ac_status=$? | |
13428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13429 | (exit $ac_status); }; } && | |
13430 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13432 | (eval $ac_try) 2>&5 | |
13433 | ac_status=$? | |
13434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13435 | (exit $ac_status); }; }; then | |
13436 | : | |
13437 | else | |
13438 | echo "$as_me: failed program was:" >&5 | |
13439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13440 | ||
13441 | continue | |
13442 | fi | |
ac1cb8d3 | 13443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13444 | cat >conftest.$ac_ext <<_ACEOF |
13445 | /* confdefs.h. */ | |
13446 | _ACEOF | |
13447 | cat confdefs.h >>conftest.$ac_ext | |
13448 | cat >>conftest.$ac_ext <<_ACEOF | |
13449 | /* end confdefs.h. */ | |
13450 | $ac_declaration | |
13451 | int | |
13452 | main () | |
13453 | { | |
13454 | exit (42); | |
13455 | ; | |
13456 | return 0; | |
13457 | } | |
13458 | _ACEOF | |
13459 | rm -f conftest.$ac_objext | |
13460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13461 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13462 | ac_status=$? |
ac1cb8d3 VS |
13463 | grep -v '^ *+' conftest.er1 >conftest.err |
13464 | rm -f conftest.er1 | |
13465 | cat conftest.err >&5 | |
a848cd7e SC |
13466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13467 | (exit $ac_status); } && | |
5d7b7554 | 13468 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13470 | (eval $ac_try) 2>&5 | |
13471 | ac_status=$? | |
13472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13473 | (exit $ac_status); }; } && | |
13474 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13476 | (eval $ac_try) 2>&5 | |
13477 | ac_status=$? | |
13478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13479 | (exit $ac_status); }; }; then | |
13480 | break | |
13481 | else | |
13482 | echo "$as_me: failed program was:" >&5 | |
13483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13484 | ||
13485 | fi | |
ac1cb8d3 | 13486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13487 | done |
13488 | rm -f conftest* | |
13489 | if test -n "$ac_declaration"; then | |
13490 | echo '#ifdef __cplusplus' >>confdefs.h | |
13491 | echo $ac_declaration >>confdefs.h | |
13492 | echo '#endif' >>confdefs.h | |
13493 | fi | |
13494 | ||
13495 | ac_ext=cc | |
13496 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13497 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13498 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13499 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13500 | ||
ab0ad5f1 VZ |
13501 | |
13502 | ||
13503 | ac_ext=cc | |
13504 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13505 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13506 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13507 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13508 | ||
13509 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13510 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13511 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13513 | else | |
13514 | cat >conftest.$ac_ext <<_ACEOF | |
13515 | /* confdefs.h. */ | |
13516 | _ACEOF | |
13517 | cat confdefs.h >>conftest.$ac_ext | |
13518 | cat >>conftest.$ac_ext <<_ACEOF | |
13519 | /* end confdefs.h. */ | |
13520 | ||
13521 | int | |
13522 | main () | |
13523 | { | |
13524 | ||
13525 | #ifndef __INTEL_COMPILER | |
13526 | choke me | |
13527 | #endif | |
13528 | ||
13529 | ; | |
13530 | return 0; | |
13531 | } | |
13532 | _ACEOF | |
13533 | rm -f conftest.$ac_objext | |
13534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13535 | (eval $ac_compile) 2>conftest.er1 | |
13536 | ac_status=$? | |
13537 | grep -v '^ *+' conftest.er1 >conftest.err | |
13538 | rm -f conftest.er1 | |
13539 | cat conftest.err >&5 | |
13540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13541 | (exit $ac_status); } && | |
5d7b7554 | 13542 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
13543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13544 | (eval $ac_try) 2>&5 | |
13545 | ac_status=$? | |
13546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13547 | (exit $ac_status); }; } && | |
13548 | { ac_try='test -s conftest.$ac_objext' | |
13549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13550 | (eval $ac_try) 2>&5 | |
13551 | ac_status=$? | |
13552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13553 | (exit $ac_status); }; }; then | |
13554 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13555 | else | |
13556 | echo "$as_me: failed program was:" >&5 | |
13557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13558 | ||
13559 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13560 | ||
13561 | fi | |
13562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13563 | ||
13564 | ||
13565 | fi | |
13566 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13567 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13568 | ac_ext=cc | |
13569 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13570 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13571 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13572 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13573 | ||
13574 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13575 | :; INTELCXX=yes | |
13576 | else | |
13577 | :; | |
13578 | fi | |
13579 | ||
13580 | ||
3006edc0 VZ |
13581 | if test "x$GCXX" != "xyes"; then |
13582 | if test "xCXX" = "xC"; then | |
13583 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13584 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 13585 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13587 | else | |
13588 | cat >conftest.$ac_ext <<_ACEOF | |
13589 | /* confdefs.h. */ | |
13590 | _ACEOF | |
13591 | cat confdefs.h >>conftest.$ac_ext | |
13592 | cat >>conftest.$ac_ext <<_ACEOF | |
13593 | /* end confdefs.h. */ | |
13594 | ||
13595 | int | |
13596 | main () | |
13597 | { | |
13598 | ||
13599 | ; | |
13600 | return 0; | |
13601 | } | |
13602 | _ACEOF | |
13603 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13605 | (eval $ac_compile) 2>&5 | |
13606 | ac_status=$? | |
13607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13608 | (exit $ac_status); }; then | |
13609 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13610 | case $ac_file in | |
13611 | conftest.$ac_ext.o) | |
0093c2fc | 13612 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
13613 | ;; |
13614 | *) | |
13615 | ;; | |
13616 | esac | |
13617 | done | |
13618 | else | |
13619 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13620 | See \`config.log' for more details." >&5 | |
13621 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13622 | See \`config.log' for more details." >&2;} | |
13623 | { (exit 1); exit 1; }; } | |
13624 | ||
13625 | fi | |
13626 | ||
13627 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13628 | ||
13629 | fi | |
0093c2fc VZ |
13630 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
13631 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
13632 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 13633 | if test "cxx" = "c"; then |
0093c2fc | 13634 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
13635 | fi |
13636 | if test "cxx" = "cxx"; then | |
0093c2fc | 13637 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
13638 | fi |
13639 | fi | |
13640 | ||
0093c2fc | 13641 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
13642 | unset ac_cv_prog_cc_g |
13643 | ac_test_CFLAGS=${CFLAGS+set} | |
13644 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 13645 | CFLAGS="-g" |
3006edc0 VZ |
13646 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
13647 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
13648 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
13649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13650 | else | |
13651 | cat >conftest.$ac_ext <<_ACEOF | |
13652 | /* confdefs.h. */ | |
13653 | _ACEOF | |
13654 | cat confdefs.h >>conftest.$ac_ext | |
13655 | cat >>conftest.$ac_ext <<_ACEOF | |
13656 | /* end confdefs.h. */ | |
13657 | ||
13658 | int | |
13659 | main () | |
13660 | { | |
13661 | ||
13662 | ; | |
13663 | return 0; | |
13664 | } | |
13665 | _ACEOF | |
13666 | rm -f conftest.$ac_objext | |
13667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13668 | (eval $ac_compile) 2>conftest.er1 | |
13669 | ac_status=$? | |
13670 | grep -v '^ *+' conftest.er1 >conftest.err | |
13671 | rm -f conftest.er1 | |
13672 | cat conftest.err >&5 | |
13673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13674 | (exit $ac_status); } && | |
5d7b7554 | 13675 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
13676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13677 | (eval $ac_try) 2>&5 | |
13678 | ac_status=$? | |
13679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13680 | (exit $ac_status); }; } && | |
13681 | { ac_try='test -s conftest.$ac_objext' | |
13682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13683 | (eval $ac_try) 2>&5 | |
13684 | ac_status=$? | |
13685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13686 | (exit $ac_status); }; }; then | |
3006edc0 | 13687 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
13688 | else |
13689 | echo "$as_me: failed program was:" >&5 | |
13690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13691 | ||
3006edc0 | 13692 | ac_cv_prog_cc_g=no |
480ccd21 DE |
13693 | fi |
13694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13695 | fi | |
3006edc0 VZ |
13696 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
13697 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
13698 | if test "$ac_test_CFLAGS" = set; then | |
13699 | CFLAGS=$ac_save_CFLAGS | |
13700 | elif test $ac_cv_prog_cc_g = yes; then | |
13701 | if test "$GCC" = yes; then | |
13702 | CFLAGS="-g -O2" | |
480ccd21 | 13703 | else |
3006edc0 | 13704 | CFLAGS="-g" |
480ccd21 DE |
13705 | fi |
13706 | else | |
3006edc0 VZ |
13707 | if test "$GCC" = yes; then |
13708 | CFLAGS="-O2" | |
480ccd21 | 13709 | else |
3006edc0 | 13710 | CFLAGS= |
480ccd21 DE |
13711 | fi |
13712 | fi | |
3006edc0 | 13713 | fi |
ab0ad5f1 | 13714 | fi |
3006edc0 VZ |
13715 | |
13716 | case `uname -s` in | |
13717 | AIX*) | |
13718 | ac_ext=cc | |
13719 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13720 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13721 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13722 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13723 | ||
13724 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13725 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13726 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
13727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13728 | else | |
13729 | cat >conftest.$ac_ext <<_ACEOF | |
13730 | /* confdefs.h. */ | |
13731 | _ACEOF | |
13732 | cat confdefs.h >>conftest.$ac_ext | |
13733 | cat >>conftest.$ac_ext <<_ACEOF | |
13734 | /* end confdefs.h. */ | |
13735 | ||
13736 | int | |
13737 | main () | |
13738 | { | |
13739 | #ifndef __xlC__ | |
13740 | choke me | |
13741 | #endif | |
13742 | ||
13743 | ; | |
13744 | return 0; | |
13745 | } | |
13746 | _ACEOF | |
13747 | rm -f conftest.$ac_objext | |
13748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13749 | (eval $ac_compile) 2>conftest.er1 | |
13750 | ac_status=$? | |
13751 | grep -v '^ *+' conftest.er1 >conftest.err | |
13752 | rm -f conftest.er1 | |
13753 | cat conftest.err >&5 | |
13754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13755 | (exit $ac_status); } && | |
5d7b7554 | 13756 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
13757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13758 | (eval $ac_try) 2>&5 | |
13759 | ac_status=$? | |
13760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13761 | (exit $ac_status); }; } && | |
13762 | { ac_try='test -s conftest.$ac_objext' | |
13763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13764 | (eval $ac_try) 2>&5 | |
13765 | ac_status=$? | |
13766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13767 | (exit $ac_status); }; }; then | |
0093c2fc | 13768 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
13769 | else |
13770 | echo "$as_me: failed program was:" >&5 | |
13771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13772 | ||
0093c2fc | 13773 | bakefile_compiler_xlc=no |
3006edc0 VZ |
13774 | fi |
13775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13776 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
13777 | |
13778 | fi | |
0093c2fc VZ |
13779 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13780 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 13781 | |
0093c2fc | 13782 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
13783 | ac_ext=cc |
13784 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13785 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13786 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13787 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13788 | ||
13789 | ||
13790 | ;; | |
13791 | ||
13792 | Darwin) | |
13793 | ac_ext=cc | |
95986553 DE |
13794 | ac_cpp='$CXXCPP $CPPFLAGS' |
13795 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13796 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13797 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13798 | ||
13799 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13800 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13801 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13803 | else | |
13804 | cat >conftest.$ac_ext <<_ACEOF | |
13805 | /* confdefs.h. */ | |
13806 | _ACEOF | |
13807 | cat confdefs.h >>conftest.$ac_ext | |
13808 | cat >>conftest.$ac_ext <<_ACEOF | |
13809 | /* end confdefs.h. */ | |
13810 | ||
13811 | int | |
13812 | main () | |
13813 | { | |
13814 | #ifndef __MWERKS__ | |
13815 | choke me | |
13816 | #endif | |
13817 | ||
13818 | ; | |
13819 | return 0; | |
13820 | } | |
13821 | _ACEOF | |
13822 | rm -f conftest.$ac_objext | |
13823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13824 | (eval $ac_compile) 2>conftest.er1 | |
13825 | ac_status=$? | |
13826 | grep -v '^ *+' conftest.er1 >conftest.err | |
13827 | rm -f conftest.er1 | |
13828 | cat conftest.err >&5 | |
13829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13830 | (exit $ac_status); } && | |
5d7b7554 | 13831 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
13832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13833 | (eval $ac_try) 2>&5 | |
13834 | ac_status=$? | |
13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13836 | (exit $ac_status); }; } && | |
13837 | { ac_try='test -s conftest.$ac_objext' | |
13838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13839 | (eval $ac_try) 2>&5 | |
13840 | ac_status=$? | |
13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13842 | (exit $ac_status); }; }; then | |
13843 | bakefile_compiler_mwerks=yes | |
13844 | else | |
13845 | echo "$as_me: failed program was:" >&5 | |
13846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13847 | ||
13848 | bakefile_compiler_mwerks=no | |
13849 | fi | |
13850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13851 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13852 | ||
13853 | fi | |
13854 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13855 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13856 | ||
0e6fa1d9 | 13857 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13858 | ac_ext=cc |
13859 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13860 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13861 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13862 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13863 | ||
13864 | ||
3006edc0 | 13865 | ac_ext=cc |
9273ffba DE |
13866 | ac_cpp='$CXXCPP $CPPFLAGS' |
13867 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13868 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13869 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13870 | ||
13871 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13872 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13873 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
13874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13875 | else | |
13876 | cat >conftest.$ac_ext <<_ACEOF | |
13877 | /* confdefs.h. */ | |
13878 | _ACEOF | |
13879 | cat confdefs.h >>conftest.$ac_ext | |
13880 | cat >>conftest.$ac_ext <<_ACEOF | |
13881 | /* end confdefs.h. */ | |
13882 | ||
13883 | int | |
13884 | main () | |
13885 | { | |
13886 | #ifndef __xlC__ | |
13887 | choke me | |
13888 | #endif | |
13889 | ||
13890 | ; | |
13891 | return 0; | |
13892 | } | |
13893 | _ACEOF | |
13894 | rm -f conftest.$ac_objext | |
13895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13896 | (eval $ac_compile) 2>conftest.er1 | |
13897 | ac_status=$? | |
13898 | grep -v '^ *+' conftest.er1 >conftest.err | |
13899 | rm -f conftest.er1 | |
13900 | cat conftest.err >&5 | |
13901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13902 | (exit $ac_status); } && | |
5d7b7554 | 13903 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
13904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13905 | (eval $ac_try) 2>&5 | |
13906 | ac_status=$? | |
13907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13908 | (exit $ac_status); }; } && | |
13909 | { ac_try='test -s conftest.$ac_objext' | |
13910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13911 | (eval $ac_try) 2>&5 | |
13912 | ac_status=$? | |
13913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13914 | (exit $ac_status); }; }; then | |
0093c2fc | 13915 | bakefile_compiler_xlc=yes |
9273ffba DE |
13916 | else |
13917 | echo "$as_me: failed program was:" >&5 | |
13918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13919 | ||
0093c2fc | 13920 | bakefile_compiler_xlc=no |
9273ffba DE |
13921 | fi |
13922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13923 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
13924 | |
13925 | fi | |
0093c2fc VZ |
13926 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13927 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 13928 | |
0093c2fc | 13929 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
13930 | ac_ext=cc |
13931 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13932 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13933 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13934 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13935 | ||
13936 | ||
3006edc0 VZ |
13937 | ;; |
13938 | ||
13939 | IRIX*) | |
95986553 | 13940 | |
6dcfc289 | 13941 | |
0ad5d837 VZ |
13942 | ac_ext=cc |
13943 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13944 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13945 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13946 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13947 | ||
13948 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
13949 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
13950 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13952 | else | |
13953 | cat >conftest.$ac_ext <<_ACEOF | |
13954 | /* confdefs.h. */ | |
13955 | _ACEOF | |
13956 | cat confdefs.h >>conftest.$ac_ext | |
13957 | cat >>conftest.$ac_ext <<_ACEOF | |
13958 | /* end confdefs.h. */ | |
13959 | ||
13960 | int | |
13961 | main () | |
13962 | { | |
13963 | ||
13964 | #ifndef _SGI_COMPILER_VERSION | |
13965 | choke me | |
13966 | #endif | |
13967 | ||
13968 | ; | |
13969 | return 0; | |
13970 | } | |
13971 | _ACEOF | |
13972 | rm -f conftest.$ac_objext | |
13973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13974 | (eval $ac_compile) 2>conftest.er1 | |
13975 | ac_status=$? | |
13976 | grep -v '^ *+' conftest.er1 >conftest.err | |
13977 | rm -f conftest.er1 | |
13978 | cat conftest.err >&5 | |
13979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13980 | (exit $ac_status); } && | |
5d7b7554 | 13981 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
13982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13983 | (eval $ac_try) 2>&5 | |
13984 | ac_status=$? | |
13985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13986 | (exit $ac_status); }; } && | |
13987 | { ac_try='test -s conftest.$ac_objext' | |
13988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13989 | (eval $ac_try) 2>&5 | |
13990 | ac_status=$? | |
13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13992 | (exit $ac_status); }; }; then | |
13993 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
13994 | else | |
13995 | echo "$as_me: failed program was:" >&5 | |
13996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13997 | ||
13998 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
13999 | ||
14000 | fi | |
14001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14002 | ||
14003 | ||
14004 | fi | |
14005 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
14006 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
14007 | ac_ext=cc | |
14008 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14009 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14010 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14011 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14012 | ||
14013 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
14014 | :; SGICXX=yes | |
14015 | else | |
14016 | :; | |
14017 | fi | |
14018 | ||
14019 | ||
3006edc0 VZ |
14020 | ;; |
14021 | ||
0093c2fc | 14022 | HP-UX*) |
3006edc0 VZ |
14023 | |
14024 | ||
14025 | ac_ext=cc | |
14026 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14027 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14028 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14029 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14030 | ||
0093c2fc VZ |
14031 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
14032 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
14033 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
14034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14035 | else | |
14036 | cat >conftest.$ac_ext <<_ACEOF | |
14037 | /* confdefs.h. */ | |
14038 | _ACEOF | |
14039 | cat confdefs.h >>conftest.$ac_ext | |
14040 | cat >>conftest.$ac_ext <<_ACEOF | |
14041 | /* end confdefs.h. */ | |
14042 | ||
14043 | int | |
14044 | main () | |
14045 | { | |
14046 | ||
0093c2fc | 14047 | #ifndef __HP_aCC |
3006edc0 VZ |
14048 | choke me |
14049 | #endif | |
14050 | ||
14051 | ; | |
14052 | return 0; | |
14053 | } | |
14054 | _ACEOF | |
14055 | rm -f conftest.$ac_objext | |
14056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14057 | (eval $ac_compile) 2>conftest.er1 | |
14058 | ac_status=$? | |
14059 | grep -v '^ *+' conftest.er1 >conftest.err | |
14060 | rm -f conftest.er1 | |
14061 | cat conftest.err >&5 | |
14062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14063 | (exit $ac_status); } && | |
5d7b7554 | 14064 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14066 | (eval $ac_try) 2>&5 | |
14067 | ac_status=$? | |
14068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14069 | (exit $ac_status); }; } && | |
14070 | { ac_try='test -s conftest.$ac_objext' | |
14071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14072 | (eval $ac_try) 2>&5 | |
14073 | ac_status=$? | |
14074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14075 | (exit $ac_status); }; }; then | |
0093c2fc | 14076 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
14077 | else |
14078 | echo "$as_me: failed program was:" >&5 | |
14079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14080 | ||
0093c2fc | 14081 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
14082 | |
14083 | fi | |
14084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14085 | ||
14086 | ||
14087 | fi | |
0093c2fc VZ |
14088 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
14089 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
14090 | ac_ext=cc |
14091 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14092 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14093 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14094 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14095 | ||
0093c2fc VZ |
14096 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
14097 | :; HPCXX=yes | |
a1aa0349 VZ |
14098 | else |
14099 | :; | |
14100 | fi | |
14101 | ||
14102 | ||
14103 | ;; | |
14104 | ||
0093c2fc | 14105 | OSF1) |
a1aa0349 VZ |
14106 | |
14107 | ||
14108 | ac_ext=cc | |
14109 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14110 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14111 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14112 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14113 | ||
0093c2fc VZ |
14114 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
14115 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
14116 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
14117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14118 | else | |
14119 | cat >conftest.$ac_ext <<_ACEOF | |
14120 | /* confdefs.h. */ | |
14121 | _ACEOF | |
14122 | cat confdefs.h >>conftest.$ac_ext | |
14123 | cat >>conftest.$ac_ext <<_ACEOF | |
14124 | /* end confdefs.h. */ | |
14125 | ||
14126 | int | |
14127 | main () | |
14128 | { | |
14129 | ||
0093c2fc | 14130 | #ifndef __DECCXX |
a1aa0349 VZ |
14131 | choke me |
14132 | #endif | |
14133 | ||
14134 | ; | |
14135 | return 0; | |
14136 | } | |
14137 | _ACEOF | |
14138 | rm -f conftest.$ac_objext | |
14139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14140 | (eval $ac_compile) 2>conftest.er1 | |
14141 | ac_status=$? | |
14142 | grep -v '^ *+' conftest.er1 >conftest.err | |
14143 | rm -f conftest.er1 | |
14144 | cat conftest.err >&5 | |
14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14146 | (exit $ac_status); } && | |
5d7b7554 | 14147 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
14148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14149 | (eval $ac_try) 2>&5 | |
14150 | ac_status=$? | |
14151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14152 | (exit $ac_status); }; } && | |
14153 | { ac_try='test -s conftest.$ac_objext' | |
14154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14155 | (eval $ac_try) 2>&5 | |
14156 | ac_status=$? | |
14157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14158 | (exit $ac_status); }; }; then | |
0093c2fc | 14159 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14160 | else |
14161 | echo "$as_me: failed program was:" >&5 | |
14162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14163 | ||
0093c2fc | 14164 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14165 | |
14166 | fi | |
14167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14168 | ||
14169 | ||
14170 | fi | |
0093c2fc VZ |
14171 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14172 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14173 | ac_ext=cc |
14174 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14175 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14176 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14177 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14178 | ||
0093c2fc VZ |
14179 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14180 | :; COMPAQCXX=yes | |
14181 | else | |
14182 | :; | |
14183 | fi | |
14184 | ||
14185 | ||
14186 | ;; | |
14187 | ||
14188 | SunOS) | |
14189 | ||
14190 | ||
14191 | ac_ext=cc | |
14192 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14193 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14194 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14195 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14196 | ||
14197 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14198 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14199 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14201 | else | |
14202 | cat >conftest.$ac_ext <<_ACEOF | |
14203 | /* confdefs.h. */ | |
14204 | _ACEOF | |
14205 | cat confdefs.h >>conftest.$ac_ext | |
14206 | cat >>conftest.$ac_ext <<_ACEOF | |
14207 | /* end confdefs.h. */ | |
14208 | ||
14209 | int | |
14210 | main () | |
14211 | { | |
14212 | ||
14213 | #ifndef __SUNPRO_CC | |
14214 | choke me | |
14215 | #endif | |
14216 | ||
14217 | ; | |
14218 | return 0; | |
14219 | } | |
14220 | _ACEOF | |
14221 | rm -f conftest.$ac_objext | |
14222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14223 | (eval $ac_compile) 2>conftest.er1 | |
14224 | ac_status=$? | |
14225 | grep -v '^ *+' conftest.er1 >conftest.err | |
14226 | rm -f conftest.er1 | |
14227 | cat conftest.err >&5 | |
14228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14229 | (exit $ac_status); } && | |
5d7b7554 | 14230 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
14231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14232 | (eval $ac_try) 2>&5 | |
14233 | ac_status=$? | |
14234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14235 | (exit $ac_status); }; } && | |
14236 | { ac_try='test -s conftest.$ac_objext' | |
14237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14238 | (eval $ac_try) 2>&5 | |
14239 | ac_status=$? | |
14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14241 | (exit $ac_status); }; }; then | |
14242 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14243 | else | |
14244 | echo "$as_me: failed program was:" >&5 | |
14245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14246 | ||
14247 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14248 | ||
14249 | fi | |
14250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14251 | ||
14252 | ||
14253 | fi | |
14254 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14255 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14256 | ac_ext=cc | |
14257 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14258 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14259 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14260 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14261 | ||
14262 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14263 | :; SUNCXX=yes | |
3006edc0 VZ |
14264 | else |
14265 | :; | |
ab0ad5f1 | 14266 | fi |
a9e5b1f0 MW |
14267 | |
14268 | ||
3006edc0 VZ |
14269 | ;; |
14270 | esac | |
14271 | fi | |
14272 | ||
14273 | ||
14274 | ||
a848cd7e SC |
14275 | if test -n "$ac_tool_prefix"; then |
14276 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14277 | set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then | |
14281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14282 | else | |
14283 | if test -n "$RANLIB"; then | |
14284 | ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 | fi | |
14301 | fi | |
14302 | RANLIB=$ac_cv_prog_RANLIB | |
14303 | if test -n "$RANLIB"; then | |
14304 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14305 | echo "${ECHO_T}$RANLIB" >&6 | |
14306 | else | |
14307 | echo "$as_me:$LINENO: result: no" >&5 | |
14308 | echo "${ECHO_T}no" >&6 | |
14309 | fi | |
14310 | ||
14311 | fi | |
14312 | if test -z "$ac_cv_prog_RANLIB"; then | |
14313 | ac_ct_RANLIB=$RANLIB | |
14314 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14315 | set dummy ranlib; ac_word=$2 | |
14316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14318 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14320 | else | |
14321 | if test -n "$ac_ct_RANLIB"; then | |
14322 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14323 | else | |
14324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14325 | for as_dir in $PATH | |
14326 | do | |
14327 | IFS=$as_save_IFS | |
14328 | test -z "$as_dir" && as_dir=. | |
14329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14330 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14331 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14333 | break 2 | |
14334 | fi | |
14335 | done | |
14336 | done | |
14337 | ||
14338 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14339 | fi | |
14340 | fi | |
14341 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14342 | if test -n "$ac_ct_RANLIB"; then | |
14343 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14344 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14345 | else | |
14346 | echo "$as_me:$LINENO: result: no" >&5 | |
14347 | echo "${ECHO_T}no" >&6 | |
14348 | fi | |
14349 | ||
14350 | RANLIB=$ac_ct_RANLIB | |
14351 | else | |
14352 | RANLIB="$ac_cv_prog_RANLIB" | |
14353 | fi | |
14354 | ||
14355 | ||
8c80d384 DE |
14356 | if test -n "$ac_tool_prefix"; then |
14357 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14358 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
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_AR+set}" = set; then | |
14362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14363 | else | |
14364 | if test -n "$AR"; then | |
14365 | ac_cv_prog_AR="$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 | |
8c80d384 | 14374 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
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 | AR=$ac_cv_prog_AR | |
14384 | if test -n "$AR"; then | |
14385 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14386 | echo "${ECHO_T}$AR" >&6 | |
14387 | else | |
14388 | echo "$as_me:$LINENO: result: no" >&5 | |
14389 | echo "${ECHO_T}no" >&6 | |
14390 | fi | |
14391 | ||
8c80d384 DE |
14392 | fi |
14393 | if test -z "$ac_cv_prog_AR"; then | |
14394 | ac_ct_AR=$AR | |
14395 | # Extract the first word of "ar", so it can be a program name with args. | |
14396 | set dummy ar; ac_word=$2 | |
14397 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14399 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14401 | else | |
14402 | if test -n "$ac_ct_AR"; then | |
14403 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14404 | else | |
14405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14406 | for as_dir in $PATH | |
14407 | do | |
14408 | IFS=$as_save_IFS | |
14409 | test -z "$as_dir" && as_dir=. | |
14410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14412 | ac_cv_prog_ac_ct_AR="ar" | |
14413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14414 | break 2 | |
14415 | fi | |
14416 | done | |
14417 | done | |
14418 | ||
14419 | fi | |
14420 | fi | |
14421 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14422 | if test -n "$ac_ct_AR"; then | |
14423 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14424 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14425 | else | |
14426 | echo "$as_me:$LINENO: result: no" >&5 | |
14427 | echo "${ECHO_T}no" >&6 | |
14428 | fi | |
14429 | ||
14430 | AR=$ac_ct_AR | |
14431 | else | |
14432 | AR="$ac_cv_prog_AR" | |
14433 | fi | |
14434 | ||
a848cd7e | 14435 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14436 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14437 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14438 | { (exit 1); exit 1; }; } |
14439 | fi | |
14440 | ||
14441 | # Find a good install program. We prefer a C program (faster), | |
14442 | # so one script is as good as another. But avoid the broken or | |
14443 | # incompatible versions: | |
14444 | # SysV /etc/install, /usr/sbin/install | |
14445 | # SunOS /usr/etc/install | |
14446 | # IRIX /sbin/install | |
14447 | # AIX /bin/install | |
14448 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14449 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14450 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14451 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14452 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14453 | # ./install, which can be erroneously created by make from ./install.sh. |
14454 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14455 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14456 | if test -z "$INSTALL"; then | |
14457 | if test "${ac_cv_path_install+set}" = set; then | |
14458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14459 | else | |
14460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14461 | for as_dir in $PATH | |
14462 | do | |
14463 | IFS=$as_save_IFS | |
14464 | test -z "$as_dir" && as_dir=. | |
14465 | # Account for people who put trailing slashes in PATH elements. | |
14466 | case $as_dir/ in | |
14467 | ./ | .// | /cC/* | \ | |
14468 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14469 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14470 | /usr/ucb/* ) ;; |
14471 | *) | |
14472 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14473 | # Don't use installbsd from OSF since it installs stuff as root | |
14474 | # by default. | |
14475 | for ac_prog in ginstall scoinst install; do | |
14476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14477 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14478 | if test $ac_prog = install && | |
14479 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14480 | # AIX install. It has an incompatible calling convention. | |
14481 | : | |
14482 | elif test $ac_prog = install && | |
14483 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14484 | # program-specific install script used by HP pwplus--don't use. | |
14485 | : | |
14486 | else | |
14487 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14488 | break 3 | |
14489 | fi | |
14490 | fi | |
a848cd7e SC |
14491 | done |
14492 | done | |
14493 | ;; | |
14494 | esac | |
14495 | done | |
14496 | ||
14497 | ||
14498 | fi | |
14499 | if test "${ac_cv_path_install+set}" = set; then | |
14500 | INSTALL=$ac_cv_path_install | |
14501 | else | |
14502 | # As a last resort, use the slow shell script. We don't cache a | |
14503 | # path for INSTALL within a source directory, because that will | |
14504 | # break other packages using the cache if that directory is | |
14505 | # removed, or if the path is relative. | |
14506 | INSTALL=$ac_install_sh | |
14507 | fi | |
14508 | fi | |
14509 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14510 | echo "${ECHO_T}$INSTALL" >&6 | |
14511 | ||
14512 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14513 | # It thinks the first close brace ends the variable substitution. | |
14514 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14515 | ||
14516 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14517 | ||
14518 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14519 | ||
14520 | ||
14521 | case ${INSTALL} in | |
14522 | /* ) # Absolute | |
14523 | ;; | |
14524 | ?:* ) # Drive letter, considered as absolute. | |
14525 | ;; | |
14526 | *) | |
14527 | INSTALL=`pwd`/${INSTALL} ;; | |
14528 | esac | |
14529 | ||
a848cd7e SC |
14530 | |
14531 | case "${host}" in | |
14532 | ||
cfda0ea8 | 14533 | *-*-darwin* ) |
a848cd7e SC |
14534 | INSTALL_PROGRAM="cp -fp" |
14535 | INSTALL_DATA="cp -fp" | |
14536 | ;; | |
14537 | *) | |
14538 | ;; | |
14539 | esac | |
14540 | ||
8c80d384 DE |
14541 | if test -n "$ac_tool_prefix"; then |
14542 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14543 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
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_STRIP+set}" = set; then | |
14547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14548 | else | |
14549 | if test -n "$STRIP"; then | |
14550 | ac_cv_prog_STRIP="$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 | |
8c80d384 | 14559 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14561 | break 2 | |
14562 | fi | |
14563 | done | |
14564 | done | |
14565 | ||
a848cd7e SC |
14566 | fi |
14567 | fi | |
14568 | STRIP=$ac_cv_prog_STRIP | |
14569 | if test -n "$STRIP"; then | |
14570 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14571 | echo "${ECHO_T}$STRIP" >&6 | |
14572 | else | |
14573 | echo "$as_me:$LINENO: result: no" >&5 | |
14574 | echo "${ECHO_T}no" >&6 | |
14575 | fi | |
14576 | ||
8c80d384 DE |
14577 | fi |
14578 | if test -z "$ac_cv_prog_STRIP"; then | |
14579 | ac_ct_STRIP=$STRIP | |
14580 | # Extract the first word of "strip", so it can be a program name with args. | |
14581 | set dummy strip; ac_word=$2 | |
14582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14584 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14586 | else | |
14587 | if test -n "$ac_ct_STRIP"; then | |
14588 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14589 | else | |
14590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14591 | for as_dir in $PATH | |
14592 | do | |
14593 | IFS=$as_save_IFS | |
14594 | test -z "$as_dir" && as_dir=. | |
14595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14596 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14597 | ac_cv_prog_ac_ct_STRIP="strip" | |
14598 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14599 | break 2 | |
14600 | fi | |
14601 | done | |
14602 | done | |
14603 | ||
14604 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
14605 | fi | |
14606 | fi | |
14607 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14608 | if test -n "$ac_ct_STRIP"; then | |
14609 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
14610 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
14611 | else | |
14612 | echo "$as_me:$LINENO: result: no" >&5 | |
14613 | echo "${ECHO_T}no" >&6 | |
14614 | fi | |
14615 | ||
14616 | STRIP=$ac_ct_STRIP | |
14617 | else | |
14618 | STRIP="$ac_cv_prog_STRIP" | |
14619 | fi | |
14620 | ||
14621 | ||
14622 | if test "$wxUSE_WINE" = "yes"; then | |
14623 | if test -n "$ac_tool_prefix"; then | |
14624 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
14625 | set dummy ${ac_tool_prefix}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_WINDRES+set}" = set; then |
8c80d384 DE |
14629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14630 | else | |
8ced02f6 DE |
14631 | if test -n "$WINDRES"; then |
14632 | ac_cv_prog_WINDRES="$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_WINDRES="${ac_tool_prefix}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 | WINDRES=$ac_cv_prog_WINDRES |
14651 | if test -n "$WINDRES"; then | |
14652 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14653 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
14654 | else |
14655 | echo "$as_me:$LINENO: result: no" >&5 | |
14656 | echo "${ECHO_T}no" >&6 | |
14657 | fi | |
14658 | ||
14659 | fi | |
8ced02f6 DE |
14660 | if test -z "$ac_cv_prog_WINDRES"; then |
14661 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
14662 | # Extract the first word of "wrc", so it can be a program name with args. |
14663 | set dummy wrc; ac_word=$2 | |
14664 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14666 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
14667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14668 | else | |
8ced02f6 DE |
14669 | if test -n "$ac_ct_WINDRES"; then |
14670 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
14671 | else |
14672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14673 | for as_dir in $PATH | |
14674 | do | |
14675 | IFS=$as_save_IFS | |
14676 | test -z "$as_dir" && as_dir=. | |
14677 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14678 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14679 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
14680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14681 | break 2 | |
14682 | fi | |
14683 | done | |
14684 | done | |
14685 | ||
14686 | fi | |
14687 | fi | |
8ced02f6 DE |
14688 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
14689 | if test -n "$ac_ct_WINDRES"; then | |
14690 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14691 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
14692 | else |
14693 | echo "$as_me:$LINENO: result: no" >&5 | |
14694 | echo "${ECHO_T}no" >&6 | |
14695 | fi | |
14696 | ||
8ced02f6 | 14697 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 14698 | else |
8ced02f6 | 14699 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
14700 | fi |
14701 | ||
004ee6da | 14702 | RESCOMP="$WINDRES" |
8c80d384 DE |
14703 | else |
14704 | case "${host}" in | |
14705 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
14706 | if test -n "$ac_tool_prefix"; then |
14707 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
14708 | set dummy ${ac_tool_prefix}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_WINDRES+set}" = set; then | |
14712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14713 | else | |
14714 | if test -n "$WINDRES"; then | |
14715 | ac_cv_prog_WINDRES="$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_WINDRES="${ac_tool_prefix}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 | WINDRES=$ac_cv_prog_WINDRES | |
14734 | if test -n "$WINDRES"; then | |
14735 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14736 | echo "${ECHO_T}$WINDRES" >&6 | |
14737 | else | |
14738 | echo "$as_me:$LINENO: result: no" >&5 | |
14739 | echo "${ECHO_T}no" >&6 | |
14740 | fi | |
14741 | ||
14742 | fi | |
14743 | if test -z "$ac_cv_prog_WINDRES"; then | |
14744 | ac_ct_WINDRES=$WINDRES | |
14745 | # Extract the first word of "windres", so it can be a program name with args. | |
14746 | set dummy windres; ac_word=$2 | |
14747 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14749 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
14750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14751 | else | |
14752 | if test -n "$ac_ct_WINDRES"; then | |
14753 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
14754 | else | |
14755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14756 | for as_dir in $PATH | |
14757 | do | |
14758 | IFS=$as_save_IFS | |
14759 | test -z "$as_dir" && as_dir=. | |
14760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14761 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14762 | ac_cv_prog_ac_ct_WINDRES="windres" | |
14763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14764 | break 2 | |
14765 | fi | |
14766 | done | |
14767 | done | |
14768 | ||
14769 | fi | |
14770 | fi | |
14771 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
14772 | if test -n "$ac_ct_WINDRES"; then | |
14773 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14774 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
14775 | else | |
14776 | echo "$as_me:$LINENO: result: no" >&5 | |
14777 | echo "${ECHO_T}no" >&6 | |
14778 | fi | |
14779 | ||
14780 | WINDRES=$ac_ct_WINDRES | |
14781 | else | |
14782 | WINDRES="$ac_cv_prog_WINDRES" | |
14783 | fi | |
14784 | ||
14785 | RESCOMP="$WINDRES" | |
14786 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
14787 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
14788 | set dummy ${ac_tool_prefix}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_DLLTOOL+set}" = set; then | |
14792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14793 | else | |
14794 | if test -n "$DLLTOOL"; then | |
14795 | ac_cv_prog_DLLTOOL="$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_DLLTOOL="${ac_tool_prefix}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 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
14814 | if test -n "$DLLTOOL"; then | |
14815 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
14816 | echo "${ECHO_T}$DLLTOOL" >&6 | |
14817 | else | |
14818 | echo "$as_me:$LINENO: result: no" >&5 | |
14819 | echo "${ECHO_T}no" >&6 | |
14820 | fi | |
14821 | ||
14822 | fi | |
14823 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
14824 | ac_ct_DLLTOOL=$DLLTOOL | |
14825 | # Extract the first word of "dlltool", so it can be a program name with args. | |
14826 | set dummy dlltool; ac_word=$2 | |
14827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14829 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
14830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14831 | else | |
14832 | if test -n "$ac_ct_DLLTOOL"; then | |
14833 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
14834 | else | |
14835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14836 | for as_dir in $PATH | |
14837 | do | |
14838 | IFS=$as_save_IFS | |
14839 | test -z "$as_dir" && as_dir=. | |
14840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14842 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
14843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14844 | break 2 | |
14845 | fi | |
14846 | done | |
14847 | done | |
14848 | ||
14849 | fi | |
14850 | fi | |
14851 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
14852 | if test -n "$ac_ct_DLLTOOL"; then | |
14853 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
14854 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
14855 | else | |
14856 | echo "$as_me:$LINENO: result: no" >&5 | |
14857 | echo "${ECHO_T}no" >&6 | |
14858 | fi | |
14859 | ||
14860 | DLLTOOL=$ac_ct_DLLTOOL | |
14861 | else | |
14862 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
14863 | fi | |
14864 | ||
14865 | ;; | |
14866 | esac | |
14867 | fi | |
a848cd7e SC |
14868 | |
14869 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
14870 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
14871 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
14872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14873 | else | |
14874 | ||
14875 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
14876 | egrep -s GNU > /dev/null); then | |
14877 | wx_cv_prog_makeisgnu="yes" | |
14878 | else | |
14879 | wx_cv_prog_makeisgnu="no" | |
14880 | fi | |
14881 | ||
14882 | fi | |
14883 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
14884 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
14885 | ||
14886 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
14887 | IF_GNU_MAKE="" | |
14888 | else | |
14889 | IF_GNU_MAKE="#" | |
14890 | fi | |
14891 | ||
14892 | ||
14893 | ||
14894 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
14895 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
14896 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
14897 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
14898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14899 | else | |
14900 | ||
14901 | cat - << EOF > confMake | |
14902 | check : file | |
14903 | cp \$? \$@ | |
14904 | cp \$? final_file | |
14905 | EOF | |
14906 | ||
14907 | if test ! -d sub ; then | |
14908 | mkdir sub | |
14909 | fi | |
14910 | echo dummy > sub/file | |
14911 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
14912 | RESULT=$? | |
14913 | rm -f sub/file check final_file confMake | |
14914 | rmdir sub | |
14915 | if test "$RESULT" = 0; then | |
14916 | wx_cv_prog_makevpath="yes" | |
14917 | else | |
14918 | wx_cv_prog_makevpath="no" | |
14919 | fi | |
14920 | ||
14921 | fi | |
14922 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
14923 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
14924 | ||
14925 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
14926 | { { echo "$as_me:$LINENO: error: | |
14927 | You need a make-utility that is able to use the variable | |
14928 | VPATH correctly. | |
14929 | If your version of make does not support VPATH correctly, | |
14930 | please install GNU-make (possibly as gmake), and start | |
14931 | configure with the following command: | |
14932 | export MAKE=gmake; ./configure for sh-type shells | |
14933 | setenv MAKE gmake; ./configure for csh-type shells | |
14934 | Also please do remember to use gmake in this case every time | |
14935 | you are trying to compile. | |
14936 | " >&5 | |
14937 | echo "$as_me: error: | |
14938 | You need a make-utility that is able to use the variable | |
14939 | VPATH correctly. | |
14940 | If your version of make does not support VPATH correctly, | |
14941 | please install GNU-make (possibly as gmake), and start | |
14942 | configure with the following command: | |
14943 | export MAKE=gmake; ./configure for sh-type shells | |
14944 | setenv MAKE gmake; ./configure for csh-type shells | |
14945 | Also please do remember to use gmake in this case every time | |
14946 | you are trying to compile. | |
14947 | " >&2;} | |
14948 | { (exit 1); exit 1; }; } | |
14949 | fi fi | |
14950 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
14951 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
14952 | LN_S=$as_ln_s | |
14953 | if test "$LN_S" = "ln -s"; then | |
14954 | echo "$as_me:$LINENO: result: yes" >&5 | |
14955 | echo "${ECHO_T}yes" >&6 | |
14956 | else | |
14957 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
14958 | echo "${ECHO_T}no, using $LN_S" >&6 | |
14959 | fi | |
14960 | ||
14961 | ||
bcaab0f9 | 14962 | |
a848cd7e | 14963 | |
2113bc77 | 14964 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 14965 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
14966 | fi |
14967 | ||
4d7ec9f1 DE |
14968 | case "${host}" in |
14969 | powerpc-*-darwin* ) | |
14970 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
14971 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
14972 | cat >conftest.$ac_ext <<_ACEOF | |
14973 | /* confdefs.h. */ | |
14974 | _ACEOF | |
14975 | cat confdefs.h >>conftest.$ac_ext | |
14976 | cat >>conftest.$ac_ext <<_ACEOF | |
14977 | /* end confdefs.h. */ | |
14978 | ||
14979 | int | |
14980 | main () | |
14981 | { | |
14982 | #ifndef __POWERPC__ | |
14983 | choke me for lack of PowerPC | |
14984 | #endif | |
14985 | ||
14986 | ; | |
14987 | return 0; | |
14988 | } | |
14989 | _ACEOF | |
14990 | rm -f conftest.$ac_objext | |
14991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14992 | (eval $ac_compile) 2>conftest.er1 | |
14993 | ac_status=$? | |
14994 | grep -v '^ *+' conftest.er1 >conftest.err | |
14995 | rm -f conftest.er1 | |
14996 | cat conftest.err >&5 | |
14997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14998 | (exit $ac_status); } && | |
5d7b7554 | 14999 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15001 | (eval $ac_try) 2>&5 | |
15002 | ac_status=$? | |
15003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15004 | (exit $ac_status); }; } && | |
15005 | { ac_try='test -s conftest.$ac_objext' | |
15006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15007 | (eval $ac_try) 2>&5 | |
15008 | ac_status=$? | |
15009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15010 | (exit $ac_status); }; }; then | |
15011 | echo "$as_me:$LINENO: result: yes" >&5 | |
15012 | echo "${ECHO_T}yes" >&6 | |
15013 | else | |
15014 | echo "$as_me: failed program was:" >&5 | |
15015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15016 | ||
15017 | echo "$as_me:$LINENO: result: no" >&5 | |
15018 | echo "${ECHO_T}no" >&6 | |
15019 | cat >>confdefs.h <<\_ACEOF | |
15020 | #define __POWERPC__ 1 | |
15021 | _ACEOF | |
15022 | ||
15023 | ||
15024 | fi | |
15025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
15026 | ;; |
15027 | esac | |
15028 | ||
15029 | case "${host}" in | |
15030 | *-*-darwin* ) | |
4d7ec9f1 DE |
15031 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
15032 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
15033 | cat >conftest.$ac_ext <<_ACEOF | |
15034 | /* confdefs.h. */ | |
15035 | _ACEOF | |
15036 | cat confdefs.h >>conftest.$ac_ext | |
15037 | cat >>conftest.$ac_ext <<_ACEOF | |
15038 | /* end confdefs.h. */ | |
15039 | #include <CoreFoundation/CFBase.h> | |
15040 | ||
15041 | int | |
15042 | main () | |
15043 | { | |
15044 | ||
15045 | ; | |
15046 | return 0; | |
15047 | } | |
15048 | _ACEOF | |
15049 | rm -f conftest.$ac_objext | |
15050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15051 | (eval $ac_compile) 2>conftest.er1 | |
15052 | ac_status=$? | |
15053 | grep -v '^ *+' conftest.er1 >conftest.err | |
15054 | rm -f conftest.er1 | |
15055 | cat conftest.err >&5 | |
15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15057 | (exit $ac_status); } && | |
5d7b7554 | 15058 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15060 | (eval $ac_try) 2>&5 | |
15061 | ac_status=$? | |
15062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15063 | (exit $ac_status); }; } && | |
15064 | { ac_try='test -s conftest.$ac_objext' | |
15065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15066 | (eval $ac_try) 2>&5 | |
15067 | ac_status=$? | |
15068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15069 | (exit $ac_status); }; }; then | |
15070 | echo "$as_me:$LINENO: result: yes" >&5 | |
15071 | echo "${ECHO_T}yes" >&6 | |
15072 | else | |
15073 | echo "$as_me: failed program was:" >&5 | |
15074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15075 | ||
15076 | echo "$as_me:$LINENO: result: no" >&5 | |
15077 | echo "${ECHO_T}no" >&6 | |
15078 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
15079 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
15080 | cat >conftest.$ac_ext <<_ACEOF | |
15081 | /* confdefs.h. */ | |
15082 | _ACEOF | |
15083 | cat confdefs.h >>conftest.$ac_ext | |
15084 | cat >>conftest.$ac_ext <<_ACEOF | |
15085 | /* end confdefs.h. */ | |
15086 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
15087 | #include <CoreFoundation/CFBase.h> | |
15088 | ||
15089 | int | |
15090 | main () | |
15091 | { | |
15092 | ||
15093 | ; | |
15094 | return 0; | |
15095 | } | |
15096 | _ACEOF | |
15097 | rm -f conftest.$ac_objext | |
15098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15099 | (eval $ac_compile) 2>conftest.er1 | |
15100 | ac_status=$? | |
15101 | grep -v '^ *+' conftest.er1 >conftest.err | |
15102 | rm -f conftest.er1 | |
15103 | cat conftest.err >&5 | |
15104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15105 | (exit $ac_status); } && | |
5d7b7554 | 15106 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15108 | (eval $ac_try) 2>&5 | |
15109 | ac_status=$? | |
15110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15111 | (exit $ac_status); }; } && | |
15112 | { ac_try='test -s conftest.$ac_objext' | |
15113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15114 | (eval $ac_try) 2>&5 | |
15115 | ac_status=$? | |
15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15117 | (exit $ac_status); }; }; then | |
15118 | echo "$as_me:$LINENO: result: yes" >&5 | |
15119 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15120 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15121 | else |
15122 | echo "$as_me: failed program was:" >&5 | |
15123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15124 | ||
15125 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15126 | See \`config.log' for more details." >&5 | |
15127 | echo "$as_me: error: no. CoreFoundation not available. | |
15128 | See \`config.log' for more details." >&2;} | |
15129 | { (exit 1); exit 1; }; } | |
15130 | ||
15131 | fi | |
15132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15133 | ||
15134 | ||
15135 | fi | |
15136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15137 | ;; | |
15138 | esac | |
15139 | ||
a848cd7e SC |
15140 | case "${host}" in |
15141 | *-pc-os2_emx | *-pc-os2-emx ) | |
6ba87b06 SN |
15142 | ac_ext=c |
15143 | ac_cpp='$CPP $CPPFLAGS' | |
15144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15147 | ||
15148 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
a848cd7e SC |
15149 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
15150 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15151 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15153 | else | |
15154 | ac_check_lib_save_LIBS=$LIBS | |
15155 | LIBS="-lcExt $LIBS" | |
15156 | cat >conftest.$ac_ext <<_ACEOF | |
15157 | /* confdefs.h. */ | |
15158 | _ACEOF | |
15159 | cat confdefs.h >>conftest.$ac_ext | |
15160 | cat >>conftest.$ac_ext <<_ACEOF | |
15161 | /* end confdefs.h. */ | |
15162 | ||
15163 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15164 | #ifdef __cplusplus | |
15165 | extern "C" | |
15166 | #endif | |
15167 | /* We use char because int might match the return type of a gcc2 | |
15168 | builtin and then its argument prototype would still apply. */ | |
15169 | char drand48 (); | |
15170 | int | |
15171 | main () | |
15172 | { | |
15173 | drand48 (); | |
15174 | ; | |
15175 | return 0; | |
15176 | } | |
15177 | _ACEOF | |
15178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15180 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15181 | ac_status=$? |
ac1cb8d3 VS |
15182 | grep -v '^ *+' conftest.er1 >conftest.err |
15183 | rm -f conftest.er1 | |
15184 | cat conftest.err >&5 | |
a848cd7e SC |
15185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15186 | (exit $ac_status); } && | |
5d7b7554 | 15187 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15189 | (eval $ac_try) 2>&5 | |
15190 | ac_status=$? | |
15191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15192 | (exit $ac_status); }; } && | |
15193 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15195 | (eval $ac_try) 2>&5 | |
15196 | ac_status=$? | |
15197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15198 | (exit $ac_status); }; }; then | |
15199 | ac_cv_lib_cExt_drand48=yes | |
15200 | else | |
15201 | echo "$as_me: failed program was:" >&5 | |
15202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15203 | ||
15204 | ac_cv_lib_cExt_drand48=no | |
15205 | fi | |
ac1cb8d3 VS |
15206 | rm -f conftest.err conftest.$ac_objext \ |
15207 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15208 | LIBS=$ac_check_lib_save_LIBS |
15209 | fi | |
15210 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15211 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15212 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15213 | LIBS="$LIBS -lcExt" | |
15214 | fi | |
15215 | ||
15216 | else | |
15217 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15218 | fi | |
69120ee4 VZ |
15219 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15220 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15221 | if test "${wx_cv_gccversion+set}" = set; then |
15222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15223 | else | |
15224 | ||
391a765e VS |
15225 | if test "$cross_compiling" = yes; then |
15226 | wx_cv_gccversion="EMX2" | |
15227 | ||
15228 | else | |
15229 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15230 | /* confdefs.h. */ |
15231 | _ACEOF | |
15232 | cat confdefs.h >>conftest.$ac_ext | |
15233 | cat >>conftest.$ac_ext <<_ACEOF | |
15234 | /* end confdefs.h. */ | |
15235 | ||
391a765e | 15236 | #include <stdio.h> |
a848cd7e | 15237 | |
391a765e VS |
15238 | int main() |
15239 | { | |
15240 | FILE *f=fopen("conftestval", "w"); | |
15241 | if (!f) exit(1); | |
15242 | fprintf(f, | |
a848cd7e | 15243 | #if (__GNUC__ < 3) |
391a765e VS |
15244 | "EMX2" |
15245 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15246 | "EMX3" | |
15247 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15248 | "Innotek5" | |
15249 | #else | |
15250 | "Innotek6" | |
a848cd7e | 15251 | #endif |
391a765e VS |
15252 | ); |
15253 | exit(0); | |
15254 | } | |
a848cd7e | 15255 | |
a848cd7e | 15256 | _ACEOF |
391a765e VS |
15257 | rm -f conftest$ac_exeext |
15258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15259 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15260 | ac_status=$? |
15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15262 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15264 | (eval $ac_try) 2>&5 | |
15265 | ac_status=$? | |
15266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15267 | (exit $ac_status); }; }; then | |
391a765e | 15268 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15269 | else |
391a765e VS |
15270 | echo "$as_me: program exited with status $ac_status" >&5 |
15271 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15272 | sed 's/^/| /' conftest.$ac_ext >&5 |
15273 | ||
391a765e VS |
15274 | ( exit $ac_status ) |
15275 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15276 | fi |
391a765e | 15277 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15278 | fi |
a848cd7e SC |
15279 | |
15280 | fi | |
15281 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15282 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
6ba87b06 SN |
15283 | ac_ext=cc |
15284 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15285 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15286 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15287 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15288 | ||
391a765e | 15289 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15290 | LIBS="$LIBS -lstdcpp" |
15291 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15292 | else | |
391a765e | 15293 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15294 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15295 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15296 | else | |
15297 | LIBS="$LIBS -lstdc++" | |
15298 | fi | |
15299 | fi | |
94acd38e DE |
15300 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15301 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15302 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15303 | wxUSE_OMF=yes | |
2da0c077 | 15304 | enable_omf=yes |
a848cd7e SC |
15305 | fi |
15306 | ;; | |
15307 | *) | |
15308 | ||
95986553 | 15309 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15310 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15311 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15313 | else | |
15314 | ||
15315 | cat >conftest.$ac_ext <<_ACEOF | |
15316 | /* confdefs.h. */ | |
15317 | _ACEOF | |
15318 | cat confdefs.h >>conftest.$ac_ext | |
15319 | cat >>conftest.$ac_ext <<_ACEOF | |
15320 | /* end confdefs.h. */ | |
15321 | ||
15322 | #include <string.h> | |
15323 | ||
15324 | int | |
15325 | main () | |
15326 | { | |
15327 | ||
15328 | strcasecmp("foo", "bar"); | |
15329 | ||
15330 | ; | |
15331 | return 0; | |
15332 | } | |
15333 | _ACEOF | |
15334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15336 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15337 | ac_status=$? |
ac1cb8d3 VS |
15338 | grep -v '^ *+' conftest.er1 >conftest.err |
15339 | rm -f conftest.er1 | |
15340 | cat conftest.err >&5 | |
a848cd7e SC |
15341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15342 | (exit $ac_status); } && | |
5d7b7554 | 15343 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15345 | (eval $ac_try) 2>&5 | |
15346 | ac_status=$? | |
15347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15348 | (exit $ac_status); }; } && | |
15349 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15351 | (eval $ac_try) 2>&5 | |
15352 | ac_status=$? | |
15353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15354 | (exit $ac_status); }; }; then | |
15355 | ac_cv_string_strcasecmp=yes | |
15356 | else | |
15357 | echo "$as_me: failed program was:" >&5 | |
15358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15359 | ||
15360 | ac_cv_string_strcasecmp=no | |
15361 | ||
15362 | fi | |
ac1cb8d3 VS |
15363 | rm -f conftest.err conftest.$ac_objext \ |
15364 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15365 | |
15366 | fi | |
15367 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15368 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15369 | ||
15370 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15371 | cat >>confdefs.h <<\_ACEOF | |
15372 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15373 | _ACEOF | |
15374 | ||
15375 | else | |
15376 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15377 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15378 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15380 | else | |
15381 | ||
15382 | cat >conftest.$ac_ext <<_ACEOF | |
15383 | /* confdefs.h. */ | |
15384 | _ACEOF | |
15385 | cat confdefs.h >>conftest.$ac_ext | |
15386 | cat >>conftest.$ac_ext <<_ACEOF | |
15387 | /* end confdefs.h. */ | |
15388 | ||
15389 | #include <strings.h> | |
15390 | ||
15391 | int | |
15392 | main () | |
15393 | { | |
15394 | ||
15395 | strcasecmp("foo", "bar"); | |
15396 | ||
15397 | ; | |
15398 | return 0; | |
15399 | } | |
15400 | _ACEOF | |
15401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15403 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15404 | ac_status=$? |
ac1cb8d3 VS |
15405 | grep -v '^ *+' conftest.er1 >conftest.err |
15406 | rm -f conftest.er1 | |
15407 | cat conftest.err >&5 | |
a848cd7e SC |
15408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15409 | (exit $ac_status); } && | |
5d7b7554 | 15410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15412 | (eval $ac_try) 2>&5 | |
15413 | ac_status=$? | |
15414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15415 | (exit $ac_status); }; } && | |
15416 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15418 | (eval $ac_try) 2>&5 | |
15419 | ac_status=$? | |
15420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15421 | (exit $ac_status); }; }; then | |
15422 | ac_cv_strings_strcasecmp=yes | |
15423 | else | |
15424 | echo "$as_me: failed program was:" >&5 | |
15425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15426 | ||
15427 | ac_cv_strings_strcasecmp=no | |
15428 | ||
15429 | fi | |
ac1cb8d3 VS |
15430 | rm -f conftest.err conftest.$ac_objext \ |
15431 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15432 | |
15433 | fi | |
15434 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15435 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15436 | ||
0c3c69fc | 15437 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15438 | cat >>confdefs.h <<\_ACEOF |
15439 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15440 | _ACEOF | |
15441 | ||
15442 | else | |
15443 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15444 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15445 | { (exit 1); exit 1; }; } | |
15446 | fi | |
15447 | fi | |
15448 | ||
a848cd7e SC |
15449 | ;; |
15450 | esac | |
15451 | ||
15452 | ||
5d7b7554 VZ |
15453 | ac_ext=cc |
15454 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15455 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15456 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15457 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15458 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
15459 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
15460 | if test -z "$CXXCPP"; then | |
15461 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
15462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15463 | else | |
15464 | # Double quotes because CXXCPP needs to be expanded | |
15465 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
15466 | do | |
15467 | ac_preproc_ok=false | |
15468 | for ac_cxx_preproc_warn_flag in '' yes | |
15469 | do | |
15470 | # Use a header file that comes with gcc, so configuring glibc | |
15471 | # with a fresh cross-compiler works. | |
15472 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15473 | # <limits.h> exists even on freestanding compilers. | |
15474 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15475 | # not just through cpp. "Syntax error" is here to catch this case. | |
15476 | cat >conftest.$ac_ext <<_ACEOF | |
15477 | /* confdefs.h. */ | |
15478 | _ACEOF | |
15479 | cat confdefs.h >>conftest.$ac_ext | |
15480 | cat >>conftest.$ac_ext <<_ACEOF | |
15481 | /* end confdefs.h. */ | |
15482 | #ifdef __STDC__ | |
15483 | # include <limits.h> | |
15484 | #else | |
15485 | # include <assert.h> | |
15486 | #endif | |
15487 | Syntax error | |
15488 | _ACEOF | |
15489 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15491 | ac_status=$? | |
15492 | grep -v '^ *+' conftest.er1 >conftest.err | |
15493 | rm -f conftest.er1 | |
15494 | cat conftest.err >&5 | |
15495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15496 | (exit $ac_status); } >/dev/null; then | |
15497 | if test -s conftest.err; then | |
15498 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15499 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15500 | else | |
15501 | ac_cpp_err= | |
15502 | fi | |
15503 | else | |
15504 | ac_cpp_err=yes | |
15505 | fi | |
15506 | if test -z "$ac_cpp_err"; then | |
15507 | : | |
15508 | else | |
15509 | echo "$as_me: failed program was:" >&5 | |
15510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15511 | ||
15512 | # Broken: fails on valid input. | |
15513 | continue | |
15514 | fi | |
15515 | rm -f conftest.err conftest.$ac_ext | |
15516 | ||
15517 | # OK, works on sane cases. Now check whether non-existent headers | |
15518 | # can be detected and how. | |
15519 | cat >conftest.$ac_ext <<_ACEOF | |
15520 | /* confdefs.h. */ | |
15521 | _ACEOF | |
15522 | cat confdefs.h >>conftest.$ac_ext | |
15523 | cat >>conftest.$ac_ext <<_ACEOF | |
15524 | /* end confdefs.h. */ | |
15525 | #include <ac_nonexistent.h> | |
15526 | _ACEOF | |
15527 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15528 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15529 | ac_status=$? | |
15530 | grep -v '^ *+' conftest.er1 >conftest.err | |
15531 | rm -f conftest.er1 | |
15532 | cat conftest.err >&5 | |
15533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15534 | (exit $ac_status); } >/dev/null; then | |
15535 | if test -s conftest.err; then | |
15536 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15537 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15538 | else | |
15539 | ac_cpp_err= | |
15540 | fi | |
15541 | else | |
15542 | ac_cpp_err=yes | |
15543 | fi | |
15544 | if test -z "$ac_cpp_err"; then | |
15545 | # Broken: success on invalid input. | |
15546 | continue | |
15547 | else | |
15548 | echo "$as_me: failed program was:" >&5 | |
15549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15550 | ||
15551 | # Passes both tests. | |
15552 | ac_preproc_ok=: | |
15553 | break | |
15554 | fi | |
15555 | rm -f conftest.err conftest.$ac_ext | |
15556 | ||
15557 | done | |
15558 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
15559 | rm -f conftest.err conftest.$ac_ext | |
15560 | if $ac_preproc_ok; then | |
15561 | break | |
15562 | fi | |
15563 | ||
15564 | done | |
15565 | ac_cv_prog_CXXCPP=$CXXCPP | |
15566 | ||
15567 | fi | |
15568 | CXXCPP=$ac_cv_prog_CXXCPP | |
15569 | else | |
15570 | ac_cv_prog_CXXCPP=$CXXCPP | |
15571 | fi | |
15572 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
15573 | echo "${ECHO_T}$CXXCPP" >&6 | |
15574 | ac_preproc_ok=false | |
15575 | for ac_cxx_preproc_warn_flag in '' yes | |
15576 | do | |
15577 | # Use a header file that comes with gcc, so configuring glibc | |
15578 | # with a fresh cross-compiler works. | |
15579 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15580 | # <limits.h> exists even on freestanding compilers. | |
15581 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15582 | # not just through cpp. "Syntax error" is here to catch this case. | |
15583 | cat >conftest.$ac_ext <<_ACEOF | |
15584 | /* confdefs.h. */ | |
15585 | _ACEOF | |
15586 | cat confdefs.h >>conftest.$ac_ext | |
15587 | cat >>conftest.$ac_ext <<_ACEOF | |
15588 | /* end confdefs.h. */ | |
15589 | #ifdef __STDC__ | |
15590 | # include <limits.h> | |
15591 | #else | |
15592 | # include <assert.h> | |
15593 | #endif | |
15594 | Syntax error | |
15595 | _ACEOF | |
15596 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15597 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15598 | ac_status=$? | |
15599 | grep -v '^ *+' conftest.er1 >conftest.err | |
15600 | rm -f conftest.er1 | |
15601 | cat conftest.err >&5 | |
15602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15603 | (exit $ac_status); } >/dev/null; then | |
15604 | if test -s conftest.err; then | |
15605 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15606 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15607 | else | |
15608 | ac_cpp_err= | |
15609 | fi | |
15610 | else | |
15611 | ac_cpp_err=yes | |
15612 | fi | |
15613 | if test -z "$ac_cpp_err"; then | |
15614 | : | |
15615 | else | |
15616 | echo "$as_me: failed program was:" >&5 | |
15617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15618 | ||
15619 | # Broken: fails on valid input. | |
15620 | continue | |
15621 | fi | |
15622 | rm -f conftest.err conftest.$ac_ext | |
15623 | ||
15624 | # OK, works on sane cases. Now check whether non-existent headers | |
15625 | # can be detected and how. | |
15626 | cat >conftest.$ac_ext <<_ACEOF | |
15627 | /* confdefs.h. */ | |
15628 | _ACEOF | |
15629 | cat confdefs.h >>conftest.$ac_ext | |
15630 | cat >>conftest.$ac_ext <<_ACEOF | |
15631 | /* end confdefs.h. */ | |
15632 | #include <ac_nonexistent.h> | |
15633 | _ACEOF | |
15634 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15635 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15636 | ac_status=$? | |
15637 | grep -v '^ *+' conftest.er1 >conftest.err | |
15638 | rm -f conftest.er1 | |
15639 | cat conftest.err >&5 | |
15640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15641 | (exit $ac_status); } >/dev/null; then | |
15642 | if test -s conftest.err; then | |
15643 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15644 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15645 | else | |
15646 | ac_cpp_err= | |
15647 | fi | |
15648 | else | |
15649 | ac_cpp_err=yes | |
15650 | fi | |
15651 | if test -z "$ac_cpp_err"; then | |
15652 | # Broken: success on invalid input. | |
15653 | continue | |
15654 | else | |
15655 | echo "$as_me: failed program was:" >&5 | |
15656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15657 | ||
15658 | # Passes both tests. | |
15659 | ac_preproc_ok=: | |
15660 | break | |
15661 | fi | |
15662 | rm -f conftest.err conftest.$ac_ext | |
15663 | ||
15664 | done | |
15665 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
15666 | rm -f conftest.err conftest.$ac_ext | |
15667 | if $ac_preproc_ok; then | |
15668 | : | |
15669 | else | |
15670 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
15671 | See \`config.log' for more details." >&5 | |
15672 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
15673 | See \`config.log' for more details." >&2;} | |
15674 | { (exit 1); exit 1; }; } | |
15675 | fi | |
15676 | ||
15677 | ac_ext=cc | |
15678 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15679 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15680 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15681 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15682 | ||
15683 | ||
a848cd7e SC |
15684 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
15685 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
15686 | if test "${ac_cv_header_stdc+set}" = set; then | |
15687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15688 | else | |
15689 | cat >conftest.$ac_ext <<_ACEOF | |
15690 | /* confdefs.h. */ | |
15691 | _ACEOF | |
15692 | cat confdefs.h >>conftest.$ac_ext | |
15693 | cat >>conftest.$ac_ext <<_ACEOF | |
15694 | /* end confdefs.h. */ | |
15695 | #include <stdlib.h> | |
15696 | #include <stdarg.h> | |
15697 | #include <string.h> | |
15698 | #include <float.h> | |
15699 | ||
15700 | int | |
15701 | main () | |
15702 | { | |
15703 | ||
15704 | ; | |
15705 | return 0; | |
15706 | } | |
15707 | _ACEOF | |
15708 | rm -f conftest.$ac_objext | |
15709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15710 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15711 | ac_status=$? |
ac1cb8d3 VS |
15712 | grep -v '^ *+' conftest.er1 >conftest.err |
15713 | rm -f conftest.er1 | |
15714 | cat conftest.err >&5 | |
a848cd7e SC |
15715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15716 | (exit $ac_status); } && | |
5d7b7554 | 15717 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15719 | (eval $ac_try) 2>&5 | |
15720 | ac_status=$? | |
15721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15722 | (exit $ac_status); }; } && | |
15723 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15725 | (eval $ac_try) 2>&5 | |
15726 | ac_status=$? | |
15727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15728 | (exit $ac_status); }; }; then | |
15729 | ac_cv_header_stdc=yes | |
15730 | else | |
15731 | echo "$as_me: failed program was:" >&5 | |
15732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15733 | ||
15734 | ac_cv_header_stdc=no | |
15735 | fi | |
ac1cb8d3 | 15736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15737 | |
15738 | if test $ac_cv_header_stdc = yes; then | |
15739 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15740 | cat >conftest.$ac_ext <<_ACEOF | |
15741 | /* confdefs.h. */ | |
15742 | _ACEOF | |
15743 | cat confdefs.h >>conftest.$ac_ext | |
15744 | cat >>conftest.$ac_ext <<_ACEOF | |
15745 | /* end confdefs.h. */ | |
15746 | #include <string.h> | |
15747 | ||
15748 | _ACEOF | |
15749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15750 | $EGREP "memchr" >/dev/null 2>&1; then | |
15751 | : | |
15752 | else | |
15753 | ac_cv_header_stdc=no | |
15754 | fi | |
15755 | rm -f conftest* | |
15756 | ||
15757 | fi | |
15758 | ||
15759 | if test $ac_cv_header_stdc = yes; then | |
15760 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15761 | cat >conftest.$ac_ext <<_ACEOF | |
15762 | /* confdefs.h. */ | |
15763 | _ACEOF | |
15764 | cat confdefs.h >>conftest.$ac_ext | |
15765 | cat >>conftest.$ac_ext <<_ACEOF | |
15766 | /* end confdefs.h. */ | |
15767 | #include <stdlib.h> | |
15768 | ||
15769 | _ACEOF | |
15770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15771 | $EGREP "free" >/dev/null 2>&1; then | |
15772 | : | |
15773 | else | |
15774 | ac_cv_header_stdc=no | |
15775 | fi | |
15776 | rm -f conftest* | |
15777 | ||
15778 | fi | |
15779 | ||
15780 | if test $ac_cv_header_stdc = yes; then | |
15781 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15782 | if test "$cross_compiling" = yes; then | |
15783 | : | |
15784 | else | |
15785 | cat >conftest.$ac_ext <<_ACEOF | |
15786 | /* confdefs.h. */ | |
15787 | _ACEOF | |
15788 | cat confdefs.h >>conftest.$ac_ext | |
15789 | cat >>conftest.$ac_ext <<_ACEOF | |
15790 | /* end confdefs.h. */ | |
15791 | #include <ctype.h> | |
15792 | #if ((' ' & 0x0FF) == 0x020) | |
15793 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15794 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15795 | #else | |
15796 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
15797 | (('a' <= (c) && (c) <= 'i') \ |
15798 | || ('j' <= (c) && (c) <= 'r') \ | |
15799 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
15800 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
15801 | #endif | |
15802 | ||
15803 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15804 | int | |
15805 | main () | |
15806 | { | |
15807 | int i; | |
15808 | for (i = 0; i < 256; i++) | |
15809 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 15810 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
15811 | exit(2); |
15812 | exit (0); | |
15813 | } | |
15814 | _ACEOF | |
15815 | rm -f conftest$ac_exeext | |
15816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15817 | (eval $ac_link) 2>&5 | |
15818 | ac_status=$? | |
15819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15822 | (eval $ac_try) 2>&5 | |
15823 | ac_status=$? | |
15824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15825 | (exit $ac_status); }; }; then | |
15826 | : | |
15827 | else | |
15828 | echo "$as_me: program exited with status $ac_status" >&5 | |
15829 | echo "$as_me: failed program was:" >&5 | |
15830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15831 | ||
15832 | ( exit $ac_status ) | |
15833 | ac_cv_header_stdc=no | |
15834 | fi | |
ac1cb8d3 | 15835 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15836 | fi |
15837 | fi | |
15838 | fi | |
15839 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
15840 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
15841 | if test $ac_cv_header_stdc = yes; then | |
15842 | ||
15843 | cat >>confdefs.h <<\_ACEOF | |
15844 | #define STDC_HEADERS 1 | |
15845 | _ACEOF | |
15846 | ||
15847 | fi | |
15848 | ||
15849 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
15850 | ||
15851 | ||
15852 | ||
15853 | ||
15854 | ||
15855 | ||
15856 | ||
15857 | ||
15858 | ||
15859 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 15860 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
15861 | do |
15862 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15863 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15865 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15867 | else | |
15868 | cat >conftest.$ac_ext <<_ACEOF | |
15869 | /* confdefs.h. */ | |
15870 | _ACEOF | |
15871 | cat confdefs.h >>conftest.$ac_ext | |
15872 | cat >>conftest.$ac_ext <<_ACEOF | |
15873 | /* end confdefs.h. */ | |
15874 | $ac_includes_default | |
15875 | ||
15876 | #include <$ac_header> | |
15877 | _ACEOF | |
15878 | rm -f conftest.$ac_objext | |
15879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15880 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15881 | ac_status=$? |
ac1cb8d3 VS |
15882 | grep -v '^ *+' conftest.er1 >conftest.err |
15883 | rm -f conftest.er1 | |
15884 | cat conftest.err >&5 | |
a848cd7e SC |
15885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15886 | (exit $ac_status); } && | |
5d7b7554 | 15887 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15889 | (eval $ac_try) 2>&5 | |
15890 | ac_status=$? | |
15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15892 | (exit $ac_status); }; } && | |
15893 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15895 | (eval $ac_try) 2>&5 | |
15896 | ac_status=$? | |
15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15898 | (exit $ac_status); }; }; then | |
15899 | eval "$as_ac_Header=yes" | |
15900 | else | |
15901 | echo "$as_me: failed program was:" >&5 | |
15902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15903 | ||
15904 | eval "$as_ac_Header=no" | |
15905 | fi | |
ac1cb8d3 | 15906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15907 | fi |
15908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15909 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15910 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15911 | cat >>confdefs.h <<_ACEOF | |
15912 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15913 | _ACEOF | |
15914 | ||
15915 | fi | |
15916 | ||
15917 | done | |
15918 | ||
15919 | ||
15920 | ||
15921 | for ac_header in stdlib.h | |
15922 | do | |
15923 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15925 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15929 | fi | |
15930 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15931 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15932 | else | |
15933 | # Is the header compilable? | |
15934 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15935 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15936 | cat >conftest.$ac_ext <<_ACEOF | |
15937 | /* confdefs.h. */ | |
15938 | _ACEOF | |
15939 | cat confdefs.h >>conftest.$ac_ext | |
15940 | cat >>conftest.$ac_ext <<_ACEOF | |
15941 | /* end confdefs.h. */ | |
15942 | $ac_includes_default | |
15943 | #include <$ac_header> | |
15944 | _ACEOF | |
15945 | rm -f conftest.$ac_objext | |
15946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15947 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15948 | ac_status=$? |
ac1cb8d3 VS |
15949 | grep -v '^ *+' conftest.er1 >conftest.err |
15950 | rm -f conftest.er1 | |
15951 | cat conftest.err >&5 | |
a848cd7e SC |
15952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15953 | (exit $ac_status); } && | |
5d7b7554 | 15954 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15956 | (eval $ac_try) 2>&5 | |
15957 | ac_status=$? | |
15958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15959 | (exit $ac_status); }; } && | |
15960 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15962 | (eval $ac_try) 2>&5 | |
15963 | ac_status=$? | |
15964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15965 | (exit $ac_status); }; }; then | |
15966 | ac_header_compiler=yes | |
15967 | else | |
15968 | echo "$as_me: failed program was:" >&5 | |
15969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15970 | ||
15971 | ac_header_compiler=no | |
15972 | fi | |
ac1cb8d3 | 15973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15974 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15975 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15976 | ||
15977 | # Is the header present? | |
15978 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15979 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15980 | cat >conftest.$ac_ext <<_ACEOF | |
15981 | /* confdefs.h. */ | |
15982 | _ACEOF | |
15983 | cat confdefs.h >>conftest.$ac_ext | |
15984 | cat >>conftest.$ac_ext <<_ACEOF | |
15985 | /* end confdefs.h. */ | |
15986 | #include <$ac_header> | |
15987 | _ACEOF | |
15988 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15989 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15990 | ac_status=$? | |
15991 | grep -v '^ *+' conftest.er1 >conftest.err | |
15992 | rm -f conftest.er1 | |
15993 | cat conftest.err >&5 | |
15994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15995 | (exit $ac_status); } >/dev/null; then | |
15996 | if test -s conftest.err; then | |
5d7b7554 VZ |
15997 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
15998 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
15999 | else |
16000 | ac_cpp_err= | |
16001 | fi | |
16002 | else | |
16003 | ac_cpp_err=yes | |
16004 | fi | |
16005 | if test -z "$ac_cpp_err"; then | |
16006 | ac_header_preproc=yes | |
16007 | else | |
16008 | echo "$as_me: failed program was:" >&5 | |
16009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16010 | ||
16011 | ac_header_preproc=no | |
16012 | fi | |
16013 | rm -f conftest.err conftest.$ac_ext | |
16014 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16015 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16016 | ||
16017 | # So? What about this header? | |
5d7b7554 | 16018 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16019 | yes:no: ) |
a848cd7e SC |
16020 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16021 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16023 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16024 | ac_header_preproc=yes | |
a848cd7e | 16025 | ;; |
ac1cb8d3 | 16026 | no:yes:* ) |
a848cd7e SC |
16027 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16028 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16029 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16030 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16031 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16032 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16033 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16034 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16035 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16036 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16037 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16038 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16039 | ( |
16040 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16041 | ## ----------------------------------------- ## |
16042 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16043 | ## ----------------------------------------- ## | |
a848cd7e SC |
16044 | _ASBOX |
16045 | ) | | |
16046 | sed "s/^/$as_me: WARNING: /" >&2 | |
16047 | ;; | |
16048 | esac | |
16049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16053 | else | |
ac1cb8d3 | 16054 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16055 | fi |
16056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16057 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16058 | ||
16059 | fi | |
16060 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16061 | cat >>confdefs.h <<_ACEOF | |
16062 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16063 | _ACEOF | |
16064 | ||
16065 | fi | |
16066 | ||
16067 | done | |
16068 | ||
16069 | ||
16070 | for ac_header in malloc.h | |
16071 | do | |
16072 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16074 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16075 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16076 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16078 | fi | |
16079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16081 | else | |
16082 | # Is the header compilable? | |
16083 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16084 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16085 | cat >conftest.$ac_ext <<_ACEOF | |
16086 | /* confdefs.h. */ | |
16087 | _ACEOF | |
16088 | cat confdefs.h >>conftest.$ac_ext | |
16089 | cat >>conftest.$ac_ext <<_ACEOF | |
16090 | /* end confdefs.h. */ | |
16091 | $ac_includes_default | |
16092 | #include <$ac_header> | |
16093 | _ACEOF | |
16094 | rm -f conftest.$ac_objext | |
16095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16096 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16097 | ac_status=$? |
ac1cb8d3 VS |
16098 | grep -v '^ *+' conftest.er1 >conftest.err |
16099 | rm -f conftest.er1 | |
16100 | cat conftest.err >&5 | |
a848cd7e SC |
16101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16102 | (exit $ac_status); } && | |
5d7b7554 | 16103 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16105 | (eval $ac_try) 2>&5 | |
16106 | ac_status=$? | |
16107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16108 | (exit $ac_status); }; } && | |
16109 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16111 | (eval $ac_try) 2>&5 | |
16112 | ac_status=$? | |
16113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16114 | (exit $ac_status); }; }; then | |
16115 | ac_header_compiler=yes | |
16116 | else | |
16117 | echo "$as_me: failed program was:" >&5 | |
16118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16119 | ||
16120 | ac_header_compiler=no | |
16121 | fi | |
ac1cb8d3 | 16122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16123 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16124 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16125 | ||
16126 | # Is the header present? | |
16127 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16128 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16129 | cat >conftest.$ac_ext <<_ACEOF | |
16130 | /* confdefs.h. */ | |
16131 | _ACEOF | |
16132 | cat confdefs.h >>conftest.$ac_ext | |
16133 | cat >>conftest.$ac_ext <<_ACEOF | |
16134 | /* end confdefs.h. */ | |
16135 | #include <$ac_header> | |
16136 | _ACEOF | |
16137 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16138 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16139 | ac_status=$? | |
16140 | grep -v '^ *+' conftest.er1 >conftest.err | |
16141 | rm -f conftest.er1 | |
16142 | cat conftest.err >&5 | |
16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16144 | (exit $ac_status); } >/dev/null; then | |
16145 | if test -s conftest.err; then | |
5d7b7554 VZ |
16146 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16147 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16148 | else |
16149 | ac_cpp_err= | |
16150 | fi | |
16151 | else | |
16152 | ac_cpp_err=yes | |
16153 | fi | |
16154 | if test -z "$ac_cpp_err"; then | |
16155 | ac_header_preproc=yes | |
16156 | else | |
16157 | echo "$as_me: failed program was:" >&5 | |
16158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16159 | ||
16160 | ac_header_preproc=no | |
16161 | fi | |
16162 | rm -f conftest.err conftest.$ac_ext | |
16163 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16164 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16165 | ||
16166 | # So? What about this header? | |
5d7b7554 | 16167 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16168 | yes:no: ) |
a848cd7e SC |
16169 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16170 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16171 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16172 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16173 | ac_header_preproc=yes | |
a848cd7e | 16174 | ;; |
ac1cb8d3 | 16175 | no:yes:* ) |
a848cd7e SC |
16176 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16177 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16178 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16179 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16180 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16181 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16182 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16183 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16184 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16185 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16186 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16187 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16188 | ( |
16189 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16190 | ## ----------------------------------------- ## |
16191 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16192 | ## ----------------------------------------- ## | |
a848cd7e SC |
16193 | _ASBOX |
16194 | ) | | |
16195 | sed "s/^/$as_me: WARNING: /" >&2 | |
16196 | ;; | |
16197 | esac | |
16198 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16199 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16200 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16202 | else | |
ac1cb8d3 | 16203 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16204 | fi |
16205 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16206 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16207 | ||
16208 | fi | |
16209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16210 | cat >>confdefs.h <<_ACEOF | |
16211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16212 | _ACEOF | |
16213 | ||
16214 | fi | |
16215 | ||
16216 | done | |
16217 | ||
16218 | ||
16219 | for ac_header in unistd.h | |
16220 | do | |
16221 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16222 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16223 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16224 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16227 | fi | |
16228 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16229 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16230 | else | |
16231 | # Is the header compilable? | |
16232 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16233 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16234 | cat >conftest.$ac_ext <<_ACEOF | |
16235 | /* confdefs.h. */ | |
16236 | _ACEOF | |
16237 | cat confdefs.h >>conftest.$ac_ext | |
16238 | cat >>conftest.$ac_ext <<_ACEOF | |
16239 | /* end confdefs.h. */ | |
16240 | $ac_includes_default | |
16241 | #include <$ac_header> | |
16242 | _ACEOF | |
16243 | rm -f conftest.$ac_objext | |
16244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16245 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16246 | ac_status=$? |
ac1cb8d3 VS |
16247 | grep -v '^ *+' conftest.er1 >conftest.err |
16248 | rm -f conftest.er1 | |
16249 | cat conftest.err >&5 | |
a848cd7e SC |
16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16251 | (exit $ac_status); } && | |
5d7b7554 | 16252 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16254 | (eval $ac_try) 2>&5 | |
16255 | ac_status=$? | |
16256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16257 | (exit $ac_status); }; } && | |
16258 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16260 | (eval $ac_try) 2>&5 | |
16261 | ac_status=$? | |
16262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16263 | (exit $ac_status); }; }; then | |
16264 | ac_header_compiler=yes | |
16265 | else | |
16266 | echo "$as_me: failed program was:" >&5 | |
16267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16268 | ||
16269 | ac_header_compiler=no | |
16270 | fi | |
ac1cb8d3 | 16271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16272 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16273 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16274 | ||
16275 | # Is the header present? | |
16276 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16277 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16278 | cat >conftest.$ac_ext <<_ACEOF | |
16279 | /* confdefs.h. */ | |
16280 | _ACEOF | |
16281 | cat confdefs.h >>conftest.$ac_ext | |
16282 | cat >>conftest.$ac_ext <<_ACEOF | |
16283 | /* end confdefs.h. */ | |
16284 | #include <$ac_header> | |
16285 | _ACEOF | |
16286 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16287 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16288 | ac_status=$? | |
16289 | grep -v '^ *+' conftest.er1 >conftest.err | |
16290 | rm -f conftest.er1 | |
16291 | cat conftest.err >&5 | |
16292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16293 | (exit $ac_status); } >/dev/null; then | |
16294 | if test -s conftest.err; then | |
5d7b7554 VZ |
16295 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16296 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16297 | else |
16298 | ac_cpp_err= | |
16299 | fi | |
16300 | else | |
16301 | ac_cpp_err=yes | |
16302 | fi | |
16303 | if test -z "$ac_cpp_err"; then | |
16304 | ac_header_preproc=yes | |
16305 | else | |
16306 | echo "$as_me: failed program was:" >&5 | |
16307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16308 | ||
16309 | ac_header_preproc=no | |
16310 | fi | |
16311 | rm -f conftest.err conftest.$ac_ext | |
16312 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16313 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16314 | ||
16315 | # So? What about this header? | |
5d7b7554 | 16316 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16317 | yes:no: ) |
a848cd7e SC |
16318 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16319 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16321 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16322 | ac_header_preproc=yes | |
a848cd7e | 16323 | ;; |
ac1cb8d3 | 16324 | no:yes:* ) |
a848cd7e SC |
16325 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16326 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16327 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16328 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16329 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16330 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16331 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16332 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16334 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16335 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16336 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16337 | ( |
16338 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16339 | ## ----------------------------------------- ## |
16340 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16341 | ## ----------------------------------------- ## | |
a848cd7e SC |
16342 | _ASBOX |
16343 | ) | | |
16344 | sed "s/^/$as_me: WARNING: /" >&2 | |
16345 | ;; | |
16346 | esac | |
16347 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16348 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16349 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16351 | else | |
ac1cb8d3 | 16352 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16353 | fi |
16354 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16355 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16356 | ||
16357 | fi | |
16358 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16359 | cat >>confdefs.h <<_ACEOF | |
16360 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16361 | _ACEOF | |
16362 | ||
16363 | fi | |
16364 | ||
16365 | done | |
16366 | ||
16367 | ||
16368 | for ac_header in wchar.h | |
16369 | do | |
16370 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16371 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16372 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16376 | fi | |
16377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16378 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16379 | else | |
16380 | # Is the header compilable? | |
16381 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16382 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16383 | cat >conftest.$ac_ext <<_ACEOF | |
16384 | /* confdefs.h. */ | |
16385 | _ACEOF | |
16386 | cat confdefs.h >>conftest.$ac_ext | |
16387 | cat >>conftest.$ac_ext <<_ACEOF | |
16388 | /* end confdefs.h. */ | |
16389 | $ac_includes_default | |
16390 | #include <$ac_header> | |
16391 | _ACEOF | |
16392 | rm -f conftest.$ac_objext | |
16393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16394 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16395 | ac_status=$? |
ac1cb8d3 VS |
16396 | grep -v '^ *+' conftest.er1 >conftest.err |
16397 | rm -f conftest.er1 | |
16398 | cat conftest.err >&5 | |
a848cd7e SC |
16399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16400 | (exit $ac_status); } && | |
5d7b7554 | 16401 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16403 | (eval $ac_try) 2>&5 | |
16404 | ac_status=$? | |
16405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16406 | (exit $ac_status); }; } && | |
16407 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16409 | (eval $ac_try) 2>&5 | |
16410 | ac_status=$? | |
16411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16412 | (exit $ac_status); }; }; then | |
16413 | ac_header_compiler=yes | |
16414 | else | |
16415 | echo "$as_me: failed program was:" >&5 | |
16416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16417 | ||
16418 | ac_header_compiler=no | |
16419 | fi | |
ac1cb8d3 | 16420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16421 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16422 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16423 | ||
16424 | # Is the header present? | |
16425 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16426 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16427 | cat >conftest.$ac_ext <<_ACEOF | |
16428 | /* confdefs.h. */ | |
16429 | _ACEOF | |
16430 | cat confdefs.h >>conftest.$ac_ext | |
16431 | cat >>conftest.$ac_ext <<_ACEOF | |
16432 | /* end confdefs.h. */ | |
16433 | #include <$ac_header> | |
16434 | _ACEOF | |
16435 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16436 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16437 | ac_status=$? | |
16438 | grep -v '^ *+' conftest.er1 >conftest.err | |
16439 | rm -f conftest.er1 | |
16440 | cat conftest.err >&5 | |
16441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16442 | (exit $ac_status); } >/dev/null; then | |
16443 | if test -s conftest.err; then | |
5d7b7554 VZ |
16444 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16445 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16446 | else |
16447 | ac_cpp_err= | |
16448 | fi | |
16449 | else | |
16450 | ac_cpp_err=yes | |
16451 | fi | |
16452 | if test -z "$ac_cpp_err"; then | |
16453 | ac_header_preproc=yes | |
16454 | else | |
16455 | echo "$as_me: failed program was:" >&5 | |
16456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16457 | ||
16458 | ac_header_preproc=no | |
16459 | fi | |
16460 | rm -f conftest.err conftest.$ac_ext | |
16461 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16462 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16463 | ||
16464 | # So? What about this header? | |
5d7b7554 | 16465 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16466 | yes:no: ) |
a848cd7e SC |
16467 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16468 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16469 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16470 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16471 | ac_header_preproc=yes | |
a848cd7e | 16472 | ;; |
ac1cb8d3 | 16473 | no:yes:* ) |
a848cd7e SC |
16474 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16475 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16476 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16477 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16478 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16479 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16480 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16481 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16482 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16483 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16484 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16485 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16486 | ( |
16487 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16488 | ## ----------------------------------------- ## |
16489 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16490 | ## ----------------------------------------- ## | |
a848cd7e SC |
16491 | _ASBOX |
16492 | ) | | |
16493 | sed "s/^/$as_me: WARNING: /" >&2 | |
16494 | ;; | |
16495 | esac | |
16496 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16497 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16500 | else | |
ac1cb8d3 | 16501 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16502 | fi |
16503 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16504 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16505 | ||
16506 | fi | |
16507 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16508 | cat >>confdefs.h <<_ACEOF | |
16509 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16510 | _ACEOF | |
16511 | ||
16512 | fi | |
16513 | ||
16514 | done | |
16515 | ||
16516 | ||
16517 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16518 | ||
16519 | for ac_header in wcstr.h | |
16520 | do | |
16521 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16522 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16523 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16524 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16525 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16527 | fi | |
16528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16529 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16530 | else | |
16531 | # Is the header compilable? | |
16532 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16533 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16534 | cat >conftest.$ac_ext <<_ACEOF | |
16535 | /* confdefs.h. */ | |
16536 | _ACEOF | |
16537 | cat confdefs.h >>conftest.$ac_ext | |
16538 | cat >>conftest.$ac_ext <<_ACEOF | |
16539 | /* end confdefs.h. */ | |
16540 | $ac_includes_default | |
16541 | #include <$ac_header> | |
16542 | _ACEOF | |
16543 | rm -f conftest.$ac_objext | |
16544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16545 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16546 | ac_status=$? |
ac1cb8d3 VS |
16547 | grep -v '^ *+' conftest.er1 >conftest.err |
16548 | rm -f conftest.er1 | |
16549 | cat conftest.err >&5 | |
a848cd7e SC |
16550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16551 | (exit $ac_status); } && | |
5d7b7554 | 16552 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16554 | (eval $ac_try) 2>&5 | |
16555 | ac_status=$? | |
16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16557 | (exit $ac_status); }; } && | |
16558 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16560 | (eval $ac_try) 2>&5 | |
16561 | ac_status=$? | |
16562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16563 | (exit $ac_status); }; }; then | |
16564 | ac_header_compiler=yes | |
16565 | else | |
16566 | echo "$as_me: failed program was:" >&5 | |
16567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16568 | ||
16569 | ac_header_compiler=no | |
16570 | fi | |
ac1cb8d3 | 16571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16572 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16573 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16574 | ||
16575 | # Is the header present? | |
16576 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16577 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16578 | cat >conftest.$ac_ext <<_ACEOF | |
16579 | /* confdefs.h. */ | |
16580 | _ACEOF | |
16581 | cat confdefs.h >>conftest.$ac_ext | |
16582 | cat >>conftest.$ac_ext <<_ACEOF | |
16583 | /* end confdefs.h. */ | |
16584 | #include <$ac_header> | |
16585 | _ACEOF | |
16586 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16587 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16588 | ac_status=$? | |
16589 | grep -v '^ *+' conftest.er1 >conftest.err | |
16590 | rm -f conftest.er1 | |
16591 | cat conftest.err >&5 | |
16592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16593 | (exit $ac_status); } >/dev/null; then | |
16594 | if test -s conftest.err; then | |
5d7b7554 VZ |
16595 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16596 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16597 | else |
16598 | ac_cpp_err= | |
16599 | fi | |
16600 | else | |
16601 | ac_cpp_err=yes | |
16602 | fi | |
16603 | if test -z "$ac_cpp_err"; then | |
16604 | ac_header_preproc=yes | |
16605 | else | |
16606 | echo "$as_me: failed program was:" >&5 | |
16607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16608 | ||
16609 | ac_header_preproc=no | |
16610 | fi | |
16611 | rm -f conftest.err conftest.$ac_ext | |
16612 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16613 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16614 | ||
16615 | # So? What about this header? | |
5d7b7554 | 16616 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16617 | yes:no: ) |
a848cd7e SC |
16618 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16619 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16620 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16621 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16622 | ac_header_preproc=yes | |
a848cd7e | 16623 | ;; |
ac1cb8d3 | 16624 | no:yes:* ) |
a848cd7e SC |
16625 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16626 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16627 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16628 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16629 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16630 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16631 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16632 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16633 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16634 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16635 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16636 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16637 | ( |
16638 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16639 | ## ----------------------------------------- ## |
16640 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16641 | ## ----------------------------------------- ## | |
a848cd7e SC |
16642 | _ASBOX |
16643 | ) | | |
16644 | sed "s/^/$as_me: WARNING: /" >&2 | |
16645 | ;; | |
16646 | esac | |
16647 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16648 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16649 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16651 | else | |
ac1cb8d3 | 16652 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16653 | fi |
16654 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16655 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16656 | ||
16657 | fi | |
16658 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16659 | cat >>confdefs.h <<_ACEOF | |
16660 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16661 | _ACEOF | |
16662 | ||
16663 | fi | |
16664 | ||
16665 | done | |
16666 | ||
16667 | fi | |
16668 | ||
16669 | ||
16670 | for ac_header in fnmatch.h | |
16671 | do | |
16672 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16673 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16674 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16675 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16678 | fi | |
16679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16680 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16681 | else | |
16682 | # Is the header compilable? | |
16683 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16684 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16685 | cat >conftest.$ac_ext <<_ACEOF | |
16686 | /* confdefs.h. */ | |
16687 | _ACEOF | |
16688 | cat confdefs.h >>conftest.$ac_ext | |
16689 | cat >>conftest.$ac_ext <<_ACEOF | |
16690 | /* end confdefs.h. */ | |
16691 | $ac_includes_default | |
16692 | #include <$ac_header> | |
16693 | _ACEOF | |
16694 | rm -f conftest.$ac_objext | |
16695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16697 | ac_status=$? |
ac1cb8d3 VS |
16698 | grep -v '^ *+' conftest.er1 >conftest.err |
16699 | rm -f conftest.er1 | |
16700 | cat conftest.err >&5 | |
a848cd7e SC |
16701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16702 | (exit $ac_status); } && | |
5d7b7554 | 16703 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16705 | (eval $ac_try) 2>&5 | |
16706 | ac_status=$? | |
16707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16708 | (exit $ac_status); }; } && | |
16709 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16711 | (eval $ac_try) 2>&5 | |
16712 | ac_status=$? | |
16713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16714 | (exit $ac_status); }; }; then | |
16715 | ac_header_compiler=yes | |
16716 | else | |
16717 | echo "$as_me: failed program was:" >&5 | |
16718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16719 | ||
16720 | ac_header_compiler=no | |
16721 | fi | |
ac1cb8d3 | 16722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16723 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16724 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16725 | ||
16726 | # Is the header present? | |
16727 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16728 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16729 | cat >conftest.$ac_ext <<_ACEOF | |
16730 | /* confdefs.h. */ | |
16731 | _ACEOF | |
16732 | cat confdefs.h >>conftest.$ac_ext | |
16733 | cat >>conftest.$ac_ext <<_ACEOF | |
16734 | /* end confdefs.h. */ | |
16735 | #include <$ac_header> | |
16736 | _ACEOF | |
16737 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16738 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16739 | ac_status=$? | |
16740 | grep -v '^ *+' conftest.er1 >conftest.err | |
16741 | rm -f conftest.er1 | |
16742 | cat conftest.err >&5 | |
16743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16744 | (exit $ac_status); } >/dev/null; then | |
16745 | if test -s conftest.err; then | |
5d7b7554 VZ |
16746 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16747 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16748 | else |
16749 | ac_cpp_err= | |
16750 | fi | |
16751 | else | |
16752 | ac_cpp_err=yes | |
16753 | fi | |
16754 | if test -z "$ac_cpp_err"; then | |
16755 | ac_header_preproc=yes | |
16756 | else | |
16757 | echo "$as_me: failed program was:" >&5 | |
16758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16759 | ||
16760 | ac_header_preproc=no | |
16761 | fi | |
16762 | rm -f conftest.err conftest.$ac_ext | |
16763 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16764 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16765 | ||
16766 | # So? What about this header? | |
5d7b7554 | 16767 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16768 | yes:no: ) |
a848cd7e SC |
16769 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16770 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16772 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16773 | ac_header_preproc=yes | |
a848cd7e | 16774 | ;; |
ac1cb8d3 | 16775 | no:yes:* ) |
a848cd7e SC |
16776 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16777 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16778 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16779 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16780 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16781 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16782 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16783 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16784 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16785 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16786 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16787 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16788 | ( |
16789 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16790 | ## ----------------------------------------- ## |
16791 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16792 | ## ----------------------------------------- ## | |
a848cd7e SC |
16793 | _ASBOX |
16794 | ) | | |
16795 | sed "s/^/$as_me: WARNING: /" >&2 | |
16796 | ;; | |
16797 | esac | |
16798 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16799 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16802 | else | |
ac1cb8d3 | 16803 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16804 | fi |
16805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16806 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16807 | ||
16808 | fi | |
16809 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16810 | cat >>confdefs.h <<_ACEOF | |
16811 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16812 | _ACEOF | |
16813 | ||
16814 | fi | |
16815 | ||
16816 | done | |
16817 | ||
16818 | ||
a848cd7e SC |
16819 | |
16820 | for ac_header in langinfo.h | |
16821 | do | |
16822 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16824 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16828 | fi | |
16829 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16830 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16831 | else | |
16832 | # Is the header compilable? | |
16833 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16834 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16835 | cat >conftest.$ac_ext <<_ACEOF | |
16836 | /* confdefs.h. */ | |
16837 | _ACEOF | |
16838 | cat confdefs.h >>conftest.$ac_ext | |
16839 | cat >>conftest.$ac_ext <<_ACEOF | |
16840 | /* end confdefs.h. */ | |
16841 | $ac_includes_default | |
16842 | #include <$ac_header> | |
16843 | _ACEOF | |
16844 | rm -f conftest.$ac_objext | |
16845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16846 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16847 | ac_status=$? |
ac1cb8d3 VS |
16848 | grep -v '^ *+' conftest.er1 >conftest.err |
16849 | rm -f conftest.er1 | |
16850 | cat conftest.err >&5 | |
a848cd7e SC |
16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16852 | (exit $ac_status); } && | |
5d7b7554 | 16853 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16855 | (eval $ac_try) 2>&5 | |
16856 | ac_status=$? | |
16857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16858 | (exit $ac_status); }; } && | |
16859 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16861 | (eval $ac_try) 2>&5 | |
16862 | ac_status=$? | |
16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16864 | (exit $ac_status); }; }; then | |
16865 | ac_header_compiler=yes | |
16866 | else | |
16867 | echo "$as_me: failed program was:" >&5 | |
16868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16869 | ||
16870 | ac_header_compiler=no | |
16871 | fi | |
ac1cb8d3 | 16872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16873 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16874 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16875 | ||
16876 | # Is the header present? | |
16877 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16878 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16879 | cat >conftest.$ac_ext <<_ACEOF | |
16880 | /* confdefs.h. */ | |
16881 | _ACEOF | |
16882 | cat confdefs.h >>conftest.$ac_ext | |
16883 | cat >>conftest.$ac_ext <<_ACEOF | |
16884 | /* end confdefs.h. */ | |
16885 | #include <$ac_header> | |
16886 | _ACEOF | |
16887 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16888 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16889 | ac_status=$? | |
16890 | grep -v '^ *+' conftest.er1 >conftest.err | |
16891 | rm -f conftest.er1 | |
16892 | cat conftest.err >&5 | |
16893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16894 | (exit $ac_status); } >/dev/null; then | |
16895 | if test -s conftest.err; then | |
5d7b7554 VZ |
16896 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16897 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16898 | else |
16899 | ac_cpp_err= | |
16900 | fi | |
16901 | else | |
16902 | ac_cpp_err=yes | |
16903 | fi | |
16904 | if test -z "$ac_cpp_err"; then | |
16905 | ac_header_preproc=yes | |
16906 | else | |
16907 | echo "$as_me: failed program was:" >&5 | |
16908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16909 | ||
16910 | ac_header_preproc=no | |
16911 | fi | |
16912 | rm -f conftest.err conftest.$ac_ext | |
16913 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16914 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16915 | ||
16916 | # So? What about this header? | |
5d7b7554 | 16917 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16918 | yes:no: ) |
a848cd7e SC |
16919 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16920 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16922 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16923 | ac_header_preproc=yes | |
a848cd7e | 16924 | ;; |
ac1cb8d3 | 16925 | no:yes:* ) |
a848cd7e SC |
16926 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16927 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16928 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16929 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16930 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16931 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16932 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16933 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16934 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16935 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16936 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16937 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16938 | ( |
16939 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16940 | ## ----------------------------------------- ## |
16941 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16942 | ## ----------------------------------------- ## | |
a848cd7e SC |
16943 | _ASBOX |
16944 | ) | | |
16945 | sed "s/^/$as_me: WARNING: /" >&2 | |
16946 | ;; | |
16947 | esac | |
16948 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16949 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16950 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16952 | else | |
ac1cb8d3 | 16953 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16954 | fi |
16955 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16956 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16957 | ||
16958 | fi | |
16959 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16960 | cat >>confdefs.h <<_ACEOF | |
16961 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16962 | _ACEOF | |
16963 | ||
16964 | fi | |
16965 | ||
16966 | done | |
16967 | ||
16968 | ||
16969 | case "${host}" in | |
16970 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
16971 | if test $ac_cv_header_langinfo_h = "yes" \ |
16972 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
16973 | -o "$wx_cv_gccversion" = "EMX3" \ | |
16974 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
16975 | LIBS="$LIBS -lintl" |
16976 | fi | |
16977 | ;; | |
16978 | esac | |
16979 | ||
a848cd7e SC |
16980 | |
16981 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
16982 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
16983 | if test "${ac_cv_c_const+set}" = set; then | |
16984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16985 | else | |
16986 | cat >conftest.$ac_ext <<_ACEOF | |
16987 | /* confdefs.h. */ | |
16988 | _ACEOF | |
16989 | cat confdefs.h >>conftest.$ac_ext | |
16990 | cat >>conftest.$ac_ext <<_ACEOF | |
16991 | /* end confdefs.h. */ | |
16992 | ||
16993 | int | |
16994 | main () | |
16995 | { | |
16996 | /* FIXME: Include the comments suggested by Paul. */ | |
16997 | #ifndef __cplusplus | |
16998 | /* Ultrix mips cc rejects this. */ | |
16999 | typedef int charset[2]; | |
17000 | const charset x; | |
17001 | /* SunOS 4.1.1 cc rejects this. */ | |
17002 | char const *const *ccp; | |
17003 | char **p; | |
17004 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
17005 | struct point {int x, y;}; | |
17006 | static struct point const zero = {0,0}; | |
17007 | /* AIX XL C 1.02.0.0 rejects this. | |
17008 | It does not let you subtract one const X* pointer from another in | |
17009 | an arm of an if-expression whose if-part is not a constant | |
17010 | expression */ | |
17011 | const char *g = "string"; | |
17012 | ccp = &g + (g ? g-g : 0); | |
17013 | /* HPUX 7.0 cc rejects these. */ | |
17014 | ++ccp; | |
17015 | p = (char**) ccp; | |
17016 | ccp = (char const *const *) p; | |
17017 | { /* SCO 3.2v4 cc rejects this. */ | |
17018 | char *t; | |
17019 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
17020 | ||
17021 | *t++ = 0; | |
17022 | } | |
17023 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
17024 | int x[] = {25, 17}; | |
17025 | const int *foo = &x[0]; | |
17026 | ++foo; | |
17027 | } | |
17028 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
17029 | typedef const int *iptr; | |
17030 | iptr p = 0; | |
17031 | ++p; | |
17032 | } | |
17033 | { /* AIX XL C 1.02.0.0 rejects this saying | |
17034 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
17035 | struct s { int j; const int *ap[3]; }; | |
17036 | struct s *b; b->j = 5; | |
17037 | } | |
17038 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
17039 | const int foo = 10; | |
17040 | } | |
17041 | #endif | |
17042 | ||
17043 | ; | |
17044 | return 0; | |
17045 | } | |
17046 | _ACEOF | |
17047 | rm -f conftest.$ac_objext | |
17048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17049 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17050 | ac_status=$? |
ac1cb8d3 VS |
17051 | grep -v '^ *+' conftest.er1 >conftest.err |
17052 | rm -f conftest.er1 | |
17053 | cat conftest.err >&5 | |
a848cd7e SC |
17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17055 | (exit $ac_status); } && | |
5d7b7554 | 17056 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17058 | (eval $ac_try) 2>&5 | |
17059 | ac_status=$? | |
17060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17061 | (exit $ac_status); }; } && | |
17062 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17064 | (eval $ac_try) 2>&5 | |
17065 | ac_status=$? | |
17066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17067 | (exit $ac_status); }; }; then | |
17068 | ac_cv_c_const=yes | |
17069 | else | |
17070 | echo "$as_me: failed program was:" >&5 | |
17071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17072 | ||
17073 | ac_cv_c_const=no | |
17074 | fi | |
ac1cb8d3 | 17075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17076 | fi |
17077 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
17078 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
17079 | if test $ac_cv_c_const = no; then | |
17080 | ||
17081 | cat >>confdefs.h <<\_ACEOF | |
17082 | #define const | |
17083 | _ACEOF | |
17084 | ||
17085 | fi | |
17086 | ||
17087 | echo "$as_me:$LINENO: checking for inline" >&5 | |
17088 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
17089 | if test "${ac_cv_c_inline+set}" = set; then | |
17090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17091 | else | |
17092 | ac_cv_c_inline=no | |
17093 | for ac_kw in inline __inline__ __inline; 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 | #ifndef __cplusplus | |
17101 | typedef int foo_t; | |
17102 | static $ac_kw foo_t static_foo () {return 0; } | |
17103 | $ac_kw foo_t foo () {return 0; } | |
17104 | #endif | |
17105 | ||
17106 | _ACEOF | |
17107 | rm -f conftest.$ac_objext | |
17108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17109 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17110 | ac_status=$? |
ac1cb8d3 VS |
17111 | grep -v '^ *+' conftest.er1 >conftest.err |
17112 | rm -f conftest.er1 | |
17113 | cat conftest.err >&5 | |
a848cd7e SC |
17114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17115 | (exit $ac_status); } && | |
5d7b7554 | 17116 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17118 | (eval $ac_try) 2>&5 | |
17119 | ac_status=$? | |
17120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17121 | (exit $ac_status); }; } && | |
17122 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17124 | (eval $ac_try) 2>&5 | |
17125 | ac_status=$? | |
17126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17127 | (exit $ac_status); }; }; then | |
17128 | ac_cv_c_inline=$ac_kw; break | |
17129 | else | |
17130 | echo "$as_me: failed program was:" >&5 | |
17131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17132 | ||
17133 | fi | |
ac1cb8d3 | 17134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17135 | done |
17136 | ||
17137 | fi | |
17138 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
17139 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
17140 | |
17141 | ||
a848cd7e SC |
17142 | case $ac_cv_c_inline in |
17143 | inline | yes) ;; | |
ac1cb8d3 VS |
17144 | *) |
17145 | case $ac_cv_c_inline in | |
17146 | no) ac_val=;; | |
17147 | *) ac_val=$ac_cv_c_inline;; | |
17148 | esac | |
17149 | cat >>confdefs.h <<_ACEOF | |
17150 | #ifndef __cplusplus | |
17151 | #define inline $ac_val | |
17152 | #endif | |
de59c161 | 17153 | _ACEOF |
ac1cb8d3 | 17154 | ;; |
a848cd7e SC |
17155 | esac |
17156 | ||
17157 | ||
17158 | echo "$as_me:$LINENO: checking for char" >&5 | |
17159 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
17160 | if test "${ac_cv_type_char+set}" = set; then | |
17161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17162 | else | |
17163 | cat >conftest.$ac_ext <<_ACEOF | |
17164 | /* confdefs.h. */ | |
17165 | _ACEOF | |
17166 | cat confdefs.h >>conftest.$ac_ext | |
17167 | cat >>conftest.$ac_ext <<_ACEOF | |
17168 | /* end confdefs.h. */ | |
17169 | $ac_includes_default | |
17170 | int | |
17171 | main () | |
17172 | { | |
17173 | if ((char *) 0) | |
17174 | return 0; | |
17175 | if (sizeof (char)) | |
17176 | return 0; | |
17177 | ; | |
17178 | return 0; | |
17179 | } | |
17180 | _ACEOF | |
17181 | rm -f conftest.$ac_objext | |
17182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17183 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17184 | ac_status=$? |
ac1cb8d3 VS |
17185 | grep -v '^ *+' conftest.er1 >conftest.err |
17186 | rm -f conftest.er1 | |
17187 | cat conftest.err >&5 | |
a848cd7e SC |
17188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17189 | (exit $ac_status); } && | |
5d7b7554 | 17190 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
17196 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17198 | (eval $ac_try) 2>&5 | |
17199 | ac_status=$? | |
17200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17201 | (exit $ac_status); }; }; then | |
17202 | ac_cv_type_char=yes | |
17203 | else | |
17204 | echo "$as_me: failed program was:" >&5 | |
17205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17206 | ||
17207 | ac_cv_type_char=no | |
17208 | fi | |
ac1cb8d3 | 17209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17210 | fi |
17211 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
17212 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
17213 | ||
17214 | echo "$as_me:$LINENO: checking size of char" >&5 | |
17215 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
17216 | if test "${ac_cv_sizeof_char+set}" = set; then | |
17217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17218 | else | |
17219 | if test "$ac_cv_type_char" = yes; then | |
17220 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17221 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17222 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17223 | # This bug is HP SR number 8606223364. | |
17224 | if test "$cross_compiling" = yes; then | |
17225 | # Depending upon the size, compute the lo and hi bounds. | |
17226 | cat >conftest.$ac_ext <<_ACEOF | |
17227 | /* confdefs.h. */ | |
17228 | _ACEOF | |
17229 | cat confdefs.h >>conftest.$ac_ext | |
17230 | cat >>conftest.$ac_ext <<_ACEOF | |
17231 | /* end confdefs.h. */ | |
17232 | $ac_includes_default | |
17233 | int | |
17234 | main () | |
17235 | { | |
17236 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
17237 | test_array [0] = 0 | |
17238 | ||
17239 | ; | |
17240 | return 0; | |
17241 | } | |
17242 | _ACEOF | |
17243 | rm -f conftest.$ac_objext | |
17244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17245 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17246 | ac_status=$? |
ac1cb8d3 VS |
17247 | grep -v '^ *+' conftest.er1 >conftest.err |
17248 | rm -f conftest.er1 | |
17249 | cat conftest.err >&5 | |
a848cd7e SC |
17250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17251 | (exit $ac_status); } && | |
5d7b7554 | 17252 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17254 | (eval $ac_try) 2>&5 | |
17255 | ac_status=$? | |
17256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17257 | (exit $ac_status); }; } && | |
17258 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17260 | (eval $ac_try) 2>&5 | |
17261 | ac_status=$? | |
17262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17263 | (exit $ac_status); }; }; then | |
17264 | ac_lo=0 ac_mid=0 | |
17265 | while :; do | |
17266 | cat >conftest.$ac_ext <<_ACEOF | |
17267 | /* confdefs.h. */ | |
17268 | _ACEOF | |
17269 | cat confdefs.h >>conftest.$ac_ext | |
17270 | cat >>conftest.$ac_ext <<_ACEOF | |
17271 | /* end confdefs.h. */ | |
17272 | $ac_includes_default | |
17273 | int | |
17274 | main () | |
17275 | { | |
17276 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17277 | test_array [0] = 0 | |
17278 | ||
17279 | ; | |
17280 | return 0; | |
17281 | } | |
17282 | _ACEOF | |
17283 | rm -f conftest.$ac_objext | |
17284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17285 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17286 | ac_status=$? |
ac1cb8d3 VS |
17287 | grep -v '^ *+' conftest.er1 >conftest.err |
17288 | rm -f conftest.er1 | |
17289 | cat conftest.err >&5 | |
a848cd7e SC |
17290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17291 | (exit $ac_status); } && | |
5d7b7554 | 17292 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17294 | (eval $ac_try) 2>&5 | |
17295 | ac_status=$? | |
17296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17297 | (exit $ac_status); }; } && | |
17298 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17300 | (eval $ac_try) 2>&5 | |
17301 | ac_status=$? | |
17302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17303 | (exit $ac_status); }; }; then | |
17304 | ac_hi=$ac_mid; break | |
17305 | else | |
17306 | echo "$as_me: failed program was:" >&5 | |
17307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17308 | ||
17309 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17310 | if test $ac_lo -le $ac_mid; then |
17311 | ac_lo= ac_hi= | |
17312 | break | |
17313 | fi | |
17314 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17315 | fi |
ac1cb8d3 | 17316 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17317 | done |
17318 | else | |
17319 | echo "$as_me: failed program was:" >&5 | |
17320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17321 | ||
17322 | cat >conftest.$ac_ext <<_ACEOF | |
17323 | /* confdefs.h. */ | |
17324 | _ACEOF | |
17325 | cat confdefs.h >>conftest.$ac_ext | |
17326 | cat >>conftest.$ac_ext <<_ACEOF | |
17327 | /* end confdefs.h. */ | |
17328 | $ac_includes_default | |
17329 | int | |
17330 | main () | |
17331 | { | |
17332 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17333 | test_array [0] = 0 | |
17334 | ||
17335 | ; | |
17336 | return 0; | |
17337 | } | |
17338 | _ACEOF | |
17339 | rm -f conftest.$ac_objext | |
17340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17341 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17342 | ac_status=$? |
ac1cb8d3 VS |
17343 | grep -v '^ *+' conftest.er1 >conftest.err |
17344 | rm -f conftest.er1 | |
17345 | cat conftest.err >&5 | |
a848cd7e SC |
17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17347 | (exit $ac_status); } && | |
5d7b7554 | 17348 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17350 | (eval $ac_try) 2>&5 | |
17351 | ac_status=$? | |
17352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17353 | (exit $ac_status); }; } && | |
17354 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17356 | (eval $ac_try) 2>&5 | |
17357 | ac_status=$? | |
17358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17359 | (exit $ac_status); }; }; then | |
17360 | ac_hi=-1 ac_mid=-1 | |
17361 | while :; do | |
17362 | cat >conftest.$ac_ext <<_ACEOF | |
17363 | /* confdefs.h. */ | |
17364 | _ACEOF | |
17365 | cat confdefs.h >>conftest.$ac_ext | |
17366 | cat >>conftest.$ac_ext <<_ACEOF | |
17367 | /* end confdefs.h. */ | |
17368 | $ac_includes_default | |
17369 | int | |
17370 | main () | |
17371 | { | |
17372 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17373 | test_array [0] = 0 | |
17374 | ||
17375 | ; | |
17376 | return 0; | |
17377 | } | |
17378 | _ACEOF | |
17379 | rm -f conftest.$ac_objext | |
17380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17381 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17382 | ac_status=$? |
ac1cb8d3 VS |
17383 | grep -v '^ *+' conftest.er1 >conftest.err |
17384 | rm -f conftest.er1 | |
17385 | cat conftest.err >&5 | |
a848cd7e SC |
17386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17387 | (exit $ac_status); } && | |
5d7b7554 | 17388 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17390 | (eval $ac_try) 2>&5 | |
17391 | ac_status=$? | |
17392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17393 | (exit $ac_status); }; } && | |
17394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17396 | (eval $ac_try) 2>&5 | |
17397 | ac_status=$? | |
17398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17399 | (exit $ac_status); }; }; then | |
17400 | ac_lo=$ac_mid; break | |
17401 | else | |
17402 | echo "$as_me: failed program was:" >&5 | |
17403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17404 | ||
17405 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17406 | if test $ac_mid -le $ac_hi; then |
17407 | ac_lo= ac_hi= | |
17408 | break | |
17409 | fi | |
17410 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17411 | fi |
ac1cb8d3 | 17412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17413 | done |
17414 | else | |
17415 | echo "$as_me: failed program was:" >&5 | |
17416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17417 | ||
17418 | ac_lo= ac_hi= | |
17419 | fi | |
ac1cb8d3 | 17420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17421 | fi |
ac1cb8d3 | 17422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17423 | # Binary search between lo and hi bounds. |
17424 | while test "x$ac_lo" != "x$ac_hi"; do | |
17425 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17426 | cat >conftest.$ac_ext <<_ACEOF | |
17427 | /* confdefs.h. */ | |
17428 | _ACEOF | |
17429 | cat confdefs.h >>conftest.$ac_ext | |
17430 | cat >>conftest.$ac_ext <<_ACEOF | |
17431 | /* end confdefs.h. */ | |
17432 | $ac_includes_default | |
17433 | int | |
17434 | main () | |
17435 | { | |
17436 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17437 | test_array [0] = 0 | |
17438 | ||
17439 | ; | |
17440 | return 0; | |
17441 | } | |
17442 | _ACEOF | |
17443 | rm -f conftest.$ac_objext | |
17444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17445 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17446 | ac_status=$? |
ac1cb8d3 VS |
17447 | grep -v '^ *+' conftest.er1 >conftest.err |
17448 | rm -f conftest.er1 | |
17449 | cat conftest.err >&5 | |
a848cd7e SC |
17450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17451 | (exit $ac_status); } && | |
5d7b7554 | 17452 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17454 | (eval $ac_try) 2>&5 | |
17455 | ac_status=$? | |
17456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17457 | (exit $ac_status); }; } && | |
17458 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17460 | (eval $ac_try) 2>&5 | |
17461 | ac_status=$? | |
17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17463 | (exit $ac_status); }; }; then | |
17464 | ac_hi=$ac_mid | |
17465 | else | |
17466 | echo "$as_me: failed program was:" >&5 | |
17467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17468 | ||
17469 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17470 | fi | |
ac1cb8d3 | 17471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17472 | done |
17473 | case $ac_lo in | |
17474 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
17475 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17476 | See \`config.log' for more details." >&5 | |
17477 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17478 | See \`config.log' for more details." >&2;} | |
17479 | { (exit 1); exit 1; }; } ;; | |
17480 | esac | |
17481 | else | |
17482 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
17483 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17484 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17485 | { (exit 1); exit 1; }; } |
17486 | else | |
17487 | cat >conftest.$ac_ext <<_ACEOF | |
17488 | /* confdefs.h. */ | |
17489 | _ACEOF | |
17490 | cat confdefs.h >>conftest.$ac_ext | |
17491 | cat >>conftest.$ac_ext <<_ACEOF | |
17492 | /* end confdefs.h. */ | |
17493 | $ac_includes_default | |
17494 | long longval () { return (long) (sizeof (char)); } | |
17495 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
17496 | #include <stdio.h> | |
17497 | #include <stdlib.h> | |
17498 | int | |
17499 | main () | |
17500 | { | |
17501 | ||
17502 | FILE *f = fopen ("conftest.val", "w"); | |
17503 | if (! f) | |
17504 | exit (1); | |
17505 | if (((long) (sizeof (char))) < 0) | |
17506 | { | |
17507 | long i = longval (); | |
17508 | if (i != ((long) (sizeof (char)))) | |
17509 | exit (1); | |
17510 | fprintf (f, "%ld\n", i); | |
17511 | } | |
17512 | else | |
17513 | { | |
17514 | unsigned long i = ulongval (); | |
17515 | if (i != ((long) (sizeof (char)))) | |
17516 | exit (1); | |
17517 | fprintf (f, "%lu\n", i); | |
17518 | } | |
17519 | exit (ferror (f) || fclose (f) != 0); | |
17520 | ||
17521 | ; | |
17522 | return 0; | |
17523 | } | |
17524 | _ACEOF | |
17525 | rm -f conftest$ac_exeext | |
17526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17527 | (eval $ac_link) 2>&5 | |
17528 | ac_status=$? | |
17529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17530 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17532 | (eval $ac_try) 2>&5 | |
17533 | ac_status=$? | |
17534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17535 | (exit $ac_status); }; }; then | |
17536 | ac_cv_sizeof_char=`cat conftest.val` | |
17537 | else | |
17538 | echo "$as_me: program exited with status $ac_status" >&5 | |
17539 | echo "$as_me: failed program was:" >&5 | |
17540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17541 | ||
17542 | ( exit $ac_status ) | |
17543 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17544 | See \`config.log' for more details." >&5 | |
17545 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17546 | See \`config.log' for more details." >&2;} | |
17547 | { (exit 1); exit 1; }; } | |
17548 | fi | |
ac1cb8d3 | 17549 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17550 | fi |
17551 | fi | |
17552 | rm -f conftest.val | |
17553 | else | |
17554 | ac_cv_sizeof_char=0 | |
17555 | fi | |
17556 | fi | |
17557 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17558 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17559 | cat >>confdefs.h <<_ACEOF | |
17560 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17561 | _ACEOF | |
17562 | ||
17563 | ||
17564 | echo "$as_me:$LINENO: checking for short" >&5 | |
17565 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
17566 | if test "${ac_cv_type_short+set}" = set; then | |
17567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17568 | else | |
17569 | cat >conftest.$ac_ext <<_ACEOF | |
17570 | /* confdefs.h. */ | |
17571 | _ACEOF | |
17572 | cat confdefs.h >>conftest.$ac_ext | |
17573 | cat >>conftest.$ac_ext <<_ACEOF | |
17574 | /* end confdefs.h. */ | |
17575 | $ac_includes_default | |
17576 | int | |
17577 | main () | |
17578 | { | |
17579 | if ((short *) 0) | |
17580 | return 0; | |
17581 | if (sizeof (short)) | |
17582 | return 0; | |
17583 | ; | |
17584 | return 0; | |
17585 | } | |
17586 | _ACEOF | |
17587 | rm -f conftest.$ac_objext | |
17588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17589 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17590 | ac_status=$? |
ac1cb8d3 VS |
17591 | grep -v '^ *+' conftest.er1 >conftest.err |
17592 | rm -f conftest.er1 | |
17593 | cat conftest.err >&5 | |
a848cd7e SC |
17594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17595 | (exit $ac_status); } && | |
5d7b7554 | 17596 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
17602 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17604 | (eval $ac_try) 2>&5 | |
17605 | ac_status=$? | |
17606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17607 | (exit $ac_status); }; }; then | |
17608 | ac_cv_type_short=yes | |
17609 | else | |
17610 | echo "$as_me: failed program was:" >&5 | |
17611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17612 | ||
17613 | ac_cv_type_short=no | |
17614 | fi | |
ac1cb8d3 | 17615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17616 | fi |
17617 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
17618 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
17619 | ||
17620 | echo "$as_me:$LINENO: checking size of short" >&5 | |
17621 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
17622 | if test "${ac_cv_sizeof_short+set}" = set; then | |
17623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17624 | else | |
17625 | if test "$ac_cv_type_short" = yes; then | |
17626 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17627 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17628 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17629 | # This bug is HP SR number 8606223364. | |
17630 | if test "$cross_compiling" = yes; then | |
17631 | # Depending upon the size, compute the lo and hi bounds. | |
17632 | cat >conftest.$ac_ext <<_ACEOF | |
17633 | /* confdefs.h. */ | |
17634 | _ACEOF | |
17635 | cat confdefs.h >>conftest.$ac_ext | |
17636 | cat >>conftest.$ac_ext <<_ACEOF | |
17637 | /* end confdefs.h. */ | |
17638 | $ac_includes_default | |
17639 | int | |
17640 | main () | |
17641 | { | |
17642 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
17643 | test_array [0] = 0 | |
17644 | ||
17645 | ; | |
17646 | return 0; | |
17647 | } | |
17648 | _ACEOF | |
17649 | rm -f conftest.$ac_objext | |
17650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17651 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17652 | ac_status=$? |
ac1cb8d3 VS |
17653 | grep -v '^ *+' conftest.er1 >conftest.err |
17654 | rm -f conftest.er1 | |
17655 | cat conftest.err >&5 | |
a848cd7e SC |
17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17657 | (exit $ac_status); } && | |
5d7b7554 | 17658 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17660 | (eval $ac_try) 2>&5 | |
17661 | ac_status=$? | |
17662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17663 | (exit $ac_status); }; } && | |
17664 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17666 | (eval $ac_try) 2>&5 | |
17667 | ac_status=$? | |
17668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17669 | (exit $ac_status); }; }; then | |
17670 | ac_lo=0 ac_mid=0 | |
17671 | while :; do | |
17672 | cat >conftest.$ac_ext <<_ACEOF | |
17673 | /* confdefs.h. */ | |
17674 | _ACEOF | |
17675 | cat confdefs.h >>conftest.$ac_ext | |
17676 | cat >>conftest.$ac_ext <<_ACEOF | |
17677 | /* end confdefs.h. */ | |
17678 | $ac_includes_default | |
17679 | int | |
17680 | main () | |
17681 | { | |
17682 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17683 | test_array [0] = 0 | |
17684 | ||
17685 | ; | |
17686 | return 0; | |
17687 | } | |
17688 | _ACEOF | |
17689 | rm -f conftest.$ac_objext | |
17690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17691 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17692 | ac_status=$? |
ac1cb8d3 VS |
17693 | grep -v '^ *+' conftest.er1 >conftest.err |
17694 | rm -f conftest.er1 | |
17695 | cat conftest.err >&5 | |
a848cd7e SC |
17696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17697 | (exit $ac_status); } && | |
5d7b7554 | 17698 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17700 | (eval $ac_try) 2>&5 | |
17701 | ac_status=$? | |
17702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17703 | (exit $ac_status); }; } && | |
17704 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17706 | (eval $ac_try) 2>&5 | |
17707 | ac_status=$? | |
17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17709 | (exit $ac_status); }; }; then | |
17710 | ac_hi=$ac_mid; break | |
17711 | else | |
17712 | echo "$as_me: failed program was:" >&5 | |
17713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17714 | ||
17715 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17716 | if test $ac_lo -le $ac_mid; then |
17717 | ac_lo= ac_hi= | |
17718 | break | |
17719 | fi | |
17720 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17721 | fi |
ac1cb8d3 | 17722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17723 | done |
17724 | else | |
17725 | echo "$as_me: failed program was:" >&5 | |
17726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17727 | ||
17728 | cat >conftest.$ac_ext <<_ACEOF | |
17729 | /* confdefs.h. */ | |
17730 | _ACEOF | |
17731 | cat confdefs.h >>conftest.$ac_ext | |
17732 | cat >>conftest.$ac_ext <<_ACEOF | |
17733 | /* end confdefs.h. */ | |
17734 | $ac_includes_default | |
17735 | int | |
17736 | main () | |
17737 | { | |
17738 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
17739 | test_array [0] = 0 | |
17740 | ||
17741 | ; | |
17742 | return 0; | |
17743 | } | |
17744 | _ACEOF | |
17745 | rm -f conftest.$ac_objext | |
17746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17747 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17748 | ac_status=$? |
ac1cb8d3 VS |
17749 | grep -v '^ *+' conftest.er1 >conftest.err |
17750 | rm -f conftest.er1 | |
17751 | cat conftest.err >&5 | |
a848cd7e SC |
17752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17753 | (exit $ac_status); } && | |
5d7b7554 | 17754 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17756 | (eval $ac_try) 2>&5 | |
17757 | ac_status=$? | |
17758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17759 | (exit $ac_status); }; } && | |
17760 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17762 | (eval $ac_try) 2>&5 | |
17763 | ac_status=$? | |
17764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17765 | (exit $ac_status); }; }; then | |
17766 | ac_hi=-1 ac_mid=-1 | |
17767 | while :; do | |
17768 | cat >conftest.$ac_ext <<_ACEOF | |
17769 | /* confdefs.h. */ | |
17770 | _ACEOF | |
17771 | cat confdefs.h >>conftest.$ac_ext | |
17772 | cat >>conftest.$ac_ext <<_ACEOF | |
17773 | /* end confdefs.h. */ | |
17774 | $ac_includes_default | |
17775 | int | |
17776 | main () | |
17777 | { | |
17778 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
17779 | test_array [0] = 0 | |
17780 | ||
17781 | ; | |
17782 | return 0; | |
17783 | } | |
17784 | _ACEOF | |
17785 | rm -f conftest.$ac_objext | |
17786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17787 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17788 | ac_status=$? |
ac1cb8d3 VS |
17789 | grep -v '^ *+' conftest.er1 >conftest.err |
17790 | rm -f conftest.er1 | |
17791 | cat conftest.err >&5 | |
a848cd7e SC |
17792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17793 | (exit $ac_status); } && | |
5d7b7554 | 17794 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17796 | (eval $ac_try) 2>&5 | |
17797 | ac_status=$? | |
17798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17799 | (exit $ac_status); }; } && | |
17800 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17802 | (eval $ac_try) 2>&5 | |
17803 | ac_status=$? | |
17804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17805 | (exit $ac_status); }; }; then | |
17806 | ac_lo=$ac_mid; break | |
17807 | else | |
17808 | echo "$as_me: failed program was:" >&5 | |
17809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17810 | ||
17811 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17812 | if test $ac_mid -le $ac_hi; then |
17813 | ac_lo= ac_hi= | |
17814 | break | |
17815 | fi | |
17816 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17817 | fi |
ac1cb8d3 | 17818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17819 | done |
17820 | else | |
17821 | echo "$as_me: failed program was:" >&5 | |
17822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17823 | ||
17824 | ac_lo= ac_hi= | |
17825 | fi | |
ac1cb8d3 | 17826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17827 | fi |
ac1cb8d3 | 17828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17829 | # Binary search between lo and hi bounds. |
17830 | while test "x$ac_lo" != "x$ac_hi"; do | |
17831 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17832 | cat >conftest.$ac_ext <<_ACEOF | |
17833 | /* confdefs.h. */ | |
17834 | _ACEOF | |
17835 | cat confdefs.h >>conftest.$ac_ext | |
17836 | cat >>conftest.$ac_ext <<_ACEOF | |
17837 | /* end confdefs.h. */ | |
17838 | $ac_includes_default | |
17839 | int | |
17840 | main () | |
17841 | { | |
17842 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17843 | test_array [0] = 0 | |
17844 | ||
17845 | ; | |
17846 | return 0; | |
17847 | } | |
17848 | _ACEOF | |
17849 | rm -f conftest.$ac_objext | |
17850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17851 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17852 | ac_status=$? |
ac1cb8d3 VS |
17853 | grep -v '^ *+' conftest.er1 >conftest.err |
17854 | rm -f conftest.er1 | |
17855 | cat conftest.err >&5 | |
a848cd7e SC |
17856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17857 | (exit $ac_status); } && | |
5d7b7554 | 17858 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17860 | (eval $ac_try) 2>&5 | |
17861 | ac_status=$? | |
17862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17863 | (exit $ac_status); }; } && | |
17864 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17866 | (eval $ac_try) 2>&5 | |
17867 | ac_status=$? | |
17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17869 | (exit $ac_status); }; }; then | |
17870 | ac_hi=$ac_mid | |
17871 | else | |
17872 | echo "$as_me: failed program was:" >&5 | |
17873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17874 | ||
17875 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17876 | fi | |
ac1cb8d3 | 17877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17878 | done |
17879 | case $ac_lo in | |
17880 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
17881 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17882 | See \`config.log' for more details." >&5 | |
17883 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17884 | See \`config.log' for more details." >&2;} | |
17885 | { (exit 1); exit 1; }; } ;; | |
17886 | esac | |
17887 | else | |
17888 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
17889 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17890 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17891 | { (exit 1); exit 1; }; } |
17892 | else | |
17893 | cat >conftest.$ac_ext <<_ACEOF | |
17894 | /* confdefs.h. */ | |
17895 | _ACEOF | |
17896 | cat confdefs.h >>conftest.$ac_ext | |
17897 | cat >>conftest.$ac_ext <<_ACEOF | |
17898 | /* end confdefs.h. */ | |
17899 | $ac_includes_default | |
17900 | long longval () { return (long) (sizeof (short)); } | |
17901 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
17902 | #include <stdio.h> | |
17903 | #include <stdlib.h> | |
17904 | int | |
17905 | main () | |
17906 | { | |
17907 | ||
17908 | FILE *f = fopen ("conftest.val", "w"); | |
17909 | if (! f) | |
17910 | exit (1); | |
17911 | if (((long) (sizeof (short))) < 0) | |
17912 | { | |
17913 | long i = longval (); | |
17914 | if (i != ((long) (sizeof (short)))) | |
17915 | exit (1); | |
17916 | fprintf (f, "%ld\n", i); | |
17917 | } | |
17918 | else | |
17919 | { | |
17920 | unsigned long i = ulongval (); | |
17921 | if (i != ((long) (sizeof (short)))) | |
17922 | exit (1); | |
17923 | fprintf (f, "%lu\n", i); | |
17924 | } | |
17925 | exit (ferror (f) || fclose (f) != 0); | |
17926 | ||
17927 | ; | |
17928 | return 0; | |
17929 | } | |
17930 | _ACEOF | |
17931 | rm -f conftest$ac_exeext | |
17932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17933 | (eval $ac_link) 2>&5 | |
17934 | ac_status=$? | |
17935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17936 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17938 | (eval $ac_try) 2>&5 | |
17939 | ac_status=$? | |
17940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17941 | (exit $ac_status); }; }; then | |
17942 | ac_cv_sizeof_short=`cat conftest.val` | |
17943 | else | |
17944 | echo "$as_me: program exited with status $ac_status" >&5 | |
17945 | echo "$as_me: failed program was:" >&5 | |
17946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17947 | ||
17948 | ( exit $ac_status ) | |
17949 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17950 | See \`config.log' for more details." >&5 | |
17951 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17952 | See \`config.log' for more details." >&2;} | |
17953 | { (exit 1); exit 1; }; } | |
17954 | fi | |
ac1cb8d3 | 17955 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17956 | fi |
17957 | fi | |
17958 | rm -f conftest.val | |
17959 | else | |
17960 | ac_cv_sizeof_short=0 | |
17961 | fi | |
17962 | fi | |
17963 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
17964 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
17965 | cat >>confdefs.h <<_ACEOF | |
17966 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
17967 | _ACEOF | |
17968 | ||
17969 | ||
17970 | echo "$as_me:$LINENO: checking for void *" >&5 | |
17971 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
17972 | if test "${ac_cv_type_void_p+set}" = set; then | |
17973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17974 | else | |
17975 | cat >conftest.$ac_ext <<_ACEOF | |
17976 | /* confdefs.h. */ | |
17977 | _ACEOF | |
17978 | cat confdefs.h >>conftest.$ac_ext | |
17979 | cat >>conftest.$ac_ext <<_ACEOF | |
17980 | /* end confdefs.h. */ | |
17981 | $ac_includes_default | |
17982 | int | |
17983 | main () | |
17984 | { | |
17985 | if ((void * *) 0) | |
17986 | return 0; | |
17987 | if (sizeof (void *)) | |
17988 | return 0; | |
17989 | ; | |
17990 | return 0; | |
17991 | } | |
17992 | _ACEOF | |
17993 | rm -f conftest.$ac_objext | |
17994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17995 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17996 | ac_status=$? |
ac1cb8d3 VS |
17997 | grep -v '^ *+' conftest.er1 >conftest.err |
17998 | rm -f conftest.er1 | |
17999 | cat conftest.err >&5 | |
a848cd7e SC |
18000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18001 | (exit $ac_status); } && | |
5d7b7554 | 18002 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
18008 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18010 | (eval $ac_try) 2>&5 | |
18011 | ac_status=$? | |
18012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18013 | (exit $ac_status); }; }; then | |
18014 | ac_cv_type_void_p=yes | |
18015 | else | |
18016 | echo "$as_me: failed program was:" >&5 | |
18017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18018 | ||
18019 | ac_cv_type_void_p=no | |
18020 | fi | |
ac1cb8d3 | 18021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18022 | fi |
18023 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
18024 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
18025 | ||
18026 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
18027 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
18028 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
18029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18030 | else | |
18031 | if test "$ac_cv_type_void_p" = yes; then | |
18032 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18033 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18034 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18035 | # This bug is HP SR number 8606223364. | |
18036 | if test "$cross_compiling" = yes; then | |
18037 | # Depending upon the size, compute the lo and hi bounds. | |
18038 | cat >conftest.$ac_ext <<_ACEOF | |
18039 | /* confdefs.h. */ | |
18040 | _ACEOF | |
18041 | cat confdefs.h >>conftest.$ac_ext | |
18042 | cat >>conftest.$ac_ext <<_ACEOF | |
18043 | /* end confdefs.h. */ | |
18044 | $ac_includes_default | |
18045 | int | |
18046 | main () | |
18047 | { | |
18048 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
18049 | test_array [0] = 0 | |
18050 | ||
18051 | ; | |
18052 | return 0; | |
18053 | } | |
18054 | _ACEOF | |
18055 | rm -f conftest.$ac_objext | |
18056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18057 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18058 | ac_status=$? |
ac1cb8d3 VS |
18059 | grep -v '^ *+' conftest.er1 >conftest.err |
18060 | rm -f conftest.er1 | |
18061 | cat conftest.err >&5 | |
a848cd7e SC |
18062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18063 | (exit $ac_status); } && | |
5d7b7554 | 18064 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18066 | (eval $ac_try) 2>&5 | |
18067 | ac_status=$? | |
18068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18069 | (exit $ac_status); }; } && | |
18070 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18072 | (eval $ac_try) 2>&5 | |
18073 | ac_status=$? | |
18074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18075 | (exit $ac_status); }; }; then | |
18076 | ac_lo=0 ac_mid=0 | |
18077 | while :; do | |
18078 | cat >conftest.$ac_ext <<_ACEOF | |
18079 | /* confdefs.h. */ | |
18080 | _ACEOF | |
18081 | cat confdefs.h >>conftest.$ac_ext | |
18082 | cat >>conftest.$ac_ext <<_ACEOF | |
18083 | /* end confdefs.h. */ | |
18084 | $ac_includes_default | |
18085 | int | |
18086 | main () | |
18087 | { | |
18088 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18089 | test_array [0] = 0 | |
18090 | ||
18091 | ; | |
18092 | return 0; | |
18093 | } | |
18094 | _ACEOF | |
18095 | rm -f conftest.$ac_objext | |
18096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18097 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18098 | ac_status=$? |
ac1cb8d3 VS |
18099 | grep -v '^ *+' conftest.er1 >conftest.err |
18100 | rm -f conftest.er1 | |
18101 | cat conftest.err >&5 | |
a848cd7e SC |
18102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18103 | (exit $ac_status); } && | |
5d7b7554 | 18104 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18106 | (eval $ac_try) 2>&5 | |
18107 | ac_status=$? | |
18108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18109 | (exit $ac_status); }; } && | |
18110 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18112 | (eval $ac_try) 2>&5 | |
18113 | ac_status=$? | |
18114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18115 | (exit $ac_status); }; }; then | |
18116 | ac_hi=$ac_mid; break | |
18117 | else | |
18118 | echo "$as_me: failed program was:" >&5 | |
18119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18120 | ||
18121 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18122 | if test $ac_lo -le $ac_mid; then |
18123 | ac_lo= ac_hi= | |
18124 | break | |
18125 | fi | |
18126 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18127 | fi |
ac1cb8d3 | 18128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18129 | done |
18130 | else | |
18131 | echo "$as_me: failed program was:" >&5 | |
18132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18133 | ||
18134 | cat >conftest.$ac_ext <<_ACEOF | |
18135 | /* confdefs.h. */ | |
18136 | _ACEOF | |
18137 | cat confdefs.h >>conftest.$ac_ext | |
18138 | cat >>conftest.$ac_ext <<_ACEOF | |
18139 | /* end confdefs.h. */ | |
18140 | $ac_includes_default | |
18141 | int | |
18142 | main () | |
18143 | { | |
18144 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
18145 | test_array [0] = 0 | |
18146 | ||
18147 | ; | |
18148 | return 0; | |
18149 | } | |
18150 | _ACEOF | |
18151 | rm -f conftest.$ac_objext | |
18152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18153 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18154 | ac_status=$? |
ac1cb8d3 VS |
18155 | grep -v '^ *+' conftest.er1 >conftest.err |
18156 | rm -f conftest.er1 | |
18157 | cat conftest.err >&5 | |
a848cd7e SC |
18158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18159 | (exit $ac_status); } && | |
5d7b7554 | 18160 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18162 | (eval $ac_try) 2>&5 | |
18163 | ac_status=$? | |
18164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18165 | (exit $ac_status); }; } && | |
18166 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18168 | (eval $ac_try) 2>&5 | |
18169 | ac_status=$? | |
18170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18171 | (exit $ac_status); }; }; then | |
18172 | ac_hi=-1 ac_mid=-1 | |
18173 | while :; do | |
18174 | cat >conftest.$ac_ext <<_ACEOF | |
18175 | /* confdefs.h. */ | |
18176 | _ACEOF | |
18177 | cat confdefs.h >>conftest.$ac_ext | |
18178 | cat >>conftest.$ac_ext <<_ACEOF | |
18179 | /* end confdefs.h. */ | |
18180 | $ac_includes_default | |
18181 | int | |
18182 | main () | |
18183 | { | |
18184 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
18185 | test_array [0] = 0 | |
18186 | ||
18187 | ; | |
18188 | return 0; | |
18189 | } | |
18190 | _ACEOF | |
18191 | rm -f conftest.$ac_objext | |
18192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18193 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18194 | ac_status=$? |
ac1cb8d3 VS |
18195 | grep -v '^ *+' conftest.er1 >conftest.err |
18196 | rm -f conftest.er1 | |
18197 | cat conftest.err >&5 | |
a848cd7e SC |
18198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18199 | (exit $ac_status); } && | |
5d7b7554 | 18200 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18202 | (eval $ac_try) 2>&5 | |
18203 | ac_status=$? | |
18204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18205 | (exit $ac_status); }; } && | |
18206 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18208 | (eval $ac_try) 2>&5 | |
18209 | ac_status=$? | |
18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18211 | (exit $ac_status); }; }; then | |
18212 | ac_lo=$ac_mid; break | |
18213 | else | |
18214 | echo "$as_me: failed program was:" >&5 | |
18215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18216 | ||
18217 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18218 | if test $ac_mid -le $ac_hi; then |
18219 | ac_lo= ac_hi= | |
18220 | break | |
18221 | fi | |
18222 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18223 | fi |
ac1cb8d3 | 18224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18225 | done |
18226 | else | |
18227 | echo "$as_me: failed program was:" >&5 | |
18228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18229 | ||
18230 | ac_lo= ac_hi= | |
18231 | fi | |
ac1cb8d3 | 18232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18233 | fi |
ac1cb8d3 | 18234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18235 | # Binary search between lo and hi bounds. |
18236 | while test "x$ac_lo" != "x$ac_hi"; do | |
18237 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18238 | cat >conftest.$ac_ext <<_ACEOF | |
18239 | /* confdefs.h. */ | |
18240 | _ACEOF | |
18241 | cat confdefs.h >>conftest.$ac_ext | |
18242 | cat >>conftest.$ac_ext <<_ACEOF | |
18243 | /* end confdefs.h. */ | |
18244 | $ac_includes_default | |
18245 | int | |
18246 | main () | |
18247 | { | |
18248 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18249 | test_array [0] = 0 | |
18250 | ||
18251 | ; | |
18252 | return 0; | |
18253 | } | |
18254 | _ACEOF | |
18255 | rm -f conftest.$ac_objext | |
18256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18257 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18258 | ac_status=$? |
ac1cb8d3 VS |
18259 | grep -v '^ *+' conftest.er1 >conftest.err |
18260 | rm -f conftest.er1 | |
18261 | cat conftest.err >&5 | |
a848cd7e SC |
18262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18263 | (exit $ac_status); } && | |
5d7b7554 | 18264 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18266 | (eval $ac_try) 2>&5 | |
18267 | ac_status=$? | |
18268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18269 | (exit $ac_status); }; } && | |
18270 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18272 | (eval $ac_try) 2>&5 | |
18273 | ac_status=$? | |
18274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18275 | (exit $ac_status); }; }; then | |
18276 | ac_hi=$ac_mid | |
18277 | else | |
18278 | echo "$as_me: failed program was:" >&5 | |
18279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18280 | ||
18281 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18282 | fi | |
ac1cb8d3 | 18283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18284 | done |
18285 | case $ac_lo in | |
18286 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
18287 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18288 | See \`config.log' for more details." >&5 | |
18289 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18290 | See \`config.log' for more details." >&2;} | |
18291 | { (exit 1); exit 1; }; } ;; | |
18292 | esac | |
18293 | else | |
18294 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
18295 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18296 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18297 | { (exit 1); exit 1; }; } |
18298 | else | |
18299 | cat >conftest.$ac_ext <<_ACEOF | |
18300 | /* confdefs.h. */ | |
18301 | _ACEOF | |
18302 | cat confdefs.h >>conftest.$ac_ext | |
18303 | cat >>conftest.$ac_ext <<_ACEOF | |
18304 | /* end confdefs.h. */ | |
18305 | $ac_includes_default | |
18306 | long longval () { return (long) (sizeof (void *)); } | |
18307 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
18308 | #include <stdio.h> | |
18309 | #include <stdlib.h> | |
18310 | int | |
18311 | main () | |
18312 | { | |
18313 | ||
18314 | FILE *f = fopen ("conftest.val", "w"); | |
18315 | if (! f) | |
18316 | exit (1); | |
18317 | if (((long) (sizeof (void *))) < 0) | |
18318 | { | |
18319 | long i = longval (); | |
18320 | if (i != ((long) (sizeof (void *)))) | |
18321 | exit (1); | |
18322 | fprintf (f, "%ld\n", i); | |
18323 | } | |
18324 | else | |
18325 | { | |
18326 | unsigned long i = ulongval (); | |
18327 | if (i != ((long) (sizeof (void *)))) | |
18328 | exit (1); | |
18329 | fprintf (f, "%lu\n", i); | |
18330 | } | |
18331 | exit (ferror (f) || fclose (f) != 0); | |
18332 | ||
18333 | ; | |
18334 | return 0; | |
18335 | } | |
18336 | _ACEOF | |
18337 | rm -f conftest$ac_exeext | |
18338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18339 | (eval $ac_link) 2>&5 | |
18340 | ac_status=$? | |
18341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18342 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18344 | (eval $ac_try) 2>&5 | |
18345 | ac_status=$? | |
18346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18347 | (exit $ac_status); }; }; then | |
18348 | ac_cv_sizeof_void_p=`cat conftest.val` | |
18349 | else | |
18350 | echo "$as_me: program exited with status $ac_status" >&5 | |
18351 | echo "$as_me: failed program was:" >&5 | |
18352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18353 | ||
18354 | ( exit $ac_status ) | |
18355 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18356 | See \`config.log' for more details." >&5 | |
18357 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18358 | See \`config.log' for more details." >&2;} | |
18359 | { (exit 1); exit 1; }; } | |
18360 | fi | |
ac1cb8d3 | 18361 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18362 | fi |
18363 | fi | |
18364 | rm -f conftest.val | |
18365 | else | |
18366 | ac_cv_sizeof_void_p=0 | |
18367 | fi | |
18368 | fi | |
18369 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
18370 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
18371 | cat >>confdefs.h <<_ACEOF | |
18372 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
18373 | _ACEOF | |
18374 | ||
18375 | ||
18376 | echo "$as_me:$LINENO: checking for int" >&5 | |
18377 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
18378 | if test "${ac_cv_type_int+set}" = set; then | |
18379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18380 | else | |
18381 | cat >conftest.$ac_ext <<_ACEOF | |
18382 | /* confdefs.h. */ | |
18383 | _ACEOF | |
18384 | cat confdefs.h >>conftest.$ac_ext | |
18385 | cat >>conftest.$ac_ext <<_ACEOF | |
18386 | /* end confdefs.h. */ | |
18387 | $ac_includes_default | |
18388 | int | |
18389 | main () | |
18390 | { | |
18391 | if ((int *) 0) | |
18392 | return 0; | |
18393 | if (sizeof (int)) | |
18394 | return 0; | |
18395 | ; | |
18396 | return 0; | |
18397 | } | |
18398 | _ACEOF | |
18399 | rm -f conftest.$ac_objext | |
18400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18401 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18402 | ac_status=$? |
ac1cb8d3 VS |
18403 | grep -v '^ *+' conftest.er1 >conftest.err |
18404 | rm -f conftest.er1 | |
18405 | cat conftest.err >&5 | |
a848cd7e SC |
18406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18407 | (exit $ac_status); } && | |
5d7b7554 | 18408 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
18414 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18416 | (eval $ac_try) 2>&5 | |
18417 | ac_status=$? | |
18418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18419 | (exit $ac_status); }; }; then | |
18420 | ac_cv_type_int=yes | |
18421 | else | |
18422 | echo "$as_me: failed program was:" >&5 | |
18423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18424 | ||
18425 | ac_cv_type_int=no | |
18426 | fi | |
ac1cb8d3 | 18427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18428 | fi |
18429 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
18430 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
18431 | ||
18432 | echo "$as_me:$LINENO: checking size of int" >&5 | |
18433 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
18434 | if test "${ac_cv_sizeof_int+set}" = set; then | |
18435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18436 | else | |
18437 | if test "$ac_cv_type_int" = yes; then | |
18438 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18439 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18440 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18441 | # This bug is HP SR number 8606223364. | |
18442 | if test "$cross_compiling" = yes; then | |
18443 | # Depending upon the size, compute the lo and hi bounds. | |
18444 | cat >conftest.$ac_ext <<_ACEOF | |
18445 | /* confdefs.h. */ | |
18446 | _ACEOF | |
18447 | cat confdefs.h >>conftest.$ac_ext | |
18448 | cat >>conftest.$ac_ext <<_ACEOF | |
18449 | /* end confdefs.h. */ | |
18450 | $ac_includes_default | |
18451 | int | |
18452 | main () | |
18453 | { | |
18454 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
18455 | test_array [0] = 0 | |
18456 | ||
18457 | ; | |
18458 | return 0; | |
18459 | } | |
18460 | _ACEOF | |
18461 | rm -f conftest.$ac_objext | |
18462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18463 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18464 | ac_status=$? |
ac1cb8d3 VS |
18465 | grep -v '^ *+' conftest.er1 >conftest.err |
18466 | rm -f conftest.er1 | |
18467 | cat conftest.err >&5 | |
a848cd7e SC |
18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18469 | (exit $ac_status); } && | |
5d7b7554 | 18470 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18472 | (eval $ac_try) 2>&5 | |
18473 | ac_status=$? | |
18474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18475 | (exit $ac_status); }; } && | |
18476 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18478 | (eval $ac_try) 2>&5 | |
18479 | ac_status=$? | |
18480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18481 | (exit $ac_status); }; }; then | |
18482 | ac_lo=0 ac_mid=0 | |
18483 | while :; do | |
18484 | cat >conftest.$ac_ext <<_ACEOF | |
18485 | /* confdefs.h. */ | |
18486 | _ACEOF | |
18487 | cat confdefs.h >>conftest.$ac_ext | |
18488 | cat >>conftest.$ac_ext <<_ACEOF | |
18489 | /* end confdefs.h. */ | |
18490 | $ac_includes_default | |
18491 | int | |
18492 | main () | |
18493 | { | |
18494 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18495 | test_array [0] = 0 | |
18496 | ||
18497 | ; | |
18498 | return 0; | |
18499 | } | |
18500 | _ACEOF | |
18501 | rm -f conftest.$ac_objext | |
18502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18503 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18504 | ac_status=$? |
ac1cb8d3 VS |
18505 | grep -v '^ *+' conftest.er1 >conftest.err |
18506 | rm -f conftest.er1 | |
18507 | cat conftest.err >&5 | |
a848cd7e SC |
18508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18509 | (exit $ac_status); } && | |
5d7b7554 | 18510 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18512 | (eval $ac_try) 2>&5 | |
18513 | ac_status=$? | |
18514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18515 | (exit $ac_status); }; } && | |
18516 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18518 | (eval $ac_try) 2>&5 | |
18519 | ac_status=$? | |
18520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18521 | (exit $ac_status); }; }; then | |
18522 | ac_hi=$ac_mid; break | |
18523 | else | |
18524 | echo "$as_me: failed program was:" >&5 | |
18525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18526 | ||
18527 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18528 | if test $ac_lo -le $ac_mid; then |
18529 | ac_lo= ac_hi= | |
18530 | break | |
18531 | fi | |
18532 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18533 | fi |
ac1cb8d3 | 18534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18535 | done |
18536 | else | |
18537 | echo "$as_me: failed program was:" >&5 | |
18538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18539 | ||
18540 | cat >conftest.$ac_ext <<_ACEOF | |
18541 | /* confdefs.h. */ | |
18542 | _ACEOF | |
18543 | cat confdefs.h >>conftest.$ac_ext | |
18544 | cat >>conftest.$ac_ext <<_ACEOF | |
18545 | /* end confdefs.h. */ | |
18546 | $ac_includes_default | |
18547 | int | |
18548 | main () | |
18549 | { | |
18550 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
18551 | test_array [0] = 0 | |
18552 | ||
18553 | ; | |
18554 | return 0; | |
18555 | } | |
18556 | _ACEOF | |
18557 | rm -f conftest.$ac_objext | |
18558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18559 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18560 | ac_status=$? |
ac1cb8d3 VS |
18561 | grep -v '^ *+' conftest.er1 >conftest.err |
18562 | rm -f conftest.er1 | |
18563 | cat conftest.err >&5 | |
a848cd7e SC |
18564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18565 | (exit $ac_status); } && | |
5d7b7554 | 18566 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18568 | (eval $ac_try) 2>&5 | |
18569 | ac_status=$? | |
18570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18571 | (exit $ac_status); }; } && | |
18572 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18574 | (eval $ac_try) 2>&5 | |
18575 | ac_status=$? | |
18576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18577 | (exit $ac_status); }; }; then | |
18578 | ac_hi=-1 ac_mid=-1 | |
18579 | while :; do | |
18580 | cat >conftest.$ac_ext <<_ACEOF | |
18581 | /* confdefs.h. */ | |
18582 | _ACEOF | |
18583 | cat confdefs.h >>conftest.$ac_ext | |
18584 | cat >>conftest.$ac_ext <<_ACEOF | |
18585 | /* end confdefs.h. */ | |
18586 | $ac_includes_default | |
18587 | int | |
18588 | main () | |
18589 | { | |
18590 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
18591 | test_array [0] = 0 | |
18592 | ||
18593 | ; | |
18594 | return 0; | |
18595 | } | |
18596 | _ACEOF | |
18597 | rm -f conftest.$ac_objext | |
18598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18599 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18600 | ac_status=$? |
ac1cb8d3 VS |
18601 | grep -v '^ *+' conftest.er1 >conftest.err |
18602 | rm -f conftest.er1 | |
18603 | cat conftest.err >&5 | |
a848cd7e SC |
18604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18605 | (exit $ac_status); } && | |
5d7b7554 | 18606 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18608 | (eval $ac_try) 2>&5 | |
18609 | ac_status=$? | |
18610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18611 | (exit $ac_status); }; } && | |
18612 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18614 | (eval $ac_try) 2>&5 | |
18615 | ac_status=$? | |
18616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18617 | (exit $ac_status); }; }; then | |
18618 | ac_lo=$ac_mid; break | |
18619 | else | |
18620 | echo "$as_me: failed program was:" >&5 | |
18621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18622 | ||
18623 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18624 | if test $ac_mid -le $ac_hi; then |
18625 | ac_lo= ac_hi= | |
18626 | break | |
18627 | fi | |
18628 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18629 | fi |
ac1cb8d3 | 18630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18631 | done |
18632 | else | |
18633 | echo "$as_me: failed program was:" >&5 | |
18634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18635 | ||
18636 | ac_lo= ac_hi= | |
18637 | fi | |
ac1cb8d3 | 18638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18639 | fi |
ac1cb8d3 | 18640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18641 | # Binary search between lo and hi bounds. |
18642 | while test "x$ac_lo" != "x$ac_hi"; do | |
18643 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18644 | cat >conftest.$ac_ext <<_ACEOF | |
18645 | /* confdefs.h. */ | |
18646 | _ACEOF | |
18647 | cat confdefs.h >>conftest.$ac_ext | |
18648 | cat >>conftest.$ac_ext <<_ACEOF | |
18649 | /* end confdefs.h. */ | |
18650 | $ac_includes_default | |
18651 | int | |
18652 | main () | |
18653 | { | |
18654 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18655 | test_array [0] = 0 | |
18656 | ||
18657 | ; | |
18658 | return 0; | |
18659 | } | |
18660 | _ACEOF | |
18661 | rm -f conftest.$ac_objext | |
18662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18663 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18664 | ac_status=$? |
ac1cb8d3 VS |
18665 | grep -v '^ *+' conftest.er1 >conftest.err |
18666 | rm -f conftest.er1 | |
18667 | cat conftest.err >&5 | |
a848cd7e SC |
18668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18669 | (exit $ac_status); } && | |
5d7b7554 | 18670 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18672 | (eval $ac_try) 2>&5 | |
18673 | ac_status=$? | |
18674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18675 | (exit $ac_status); }; } && | |
18676 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18678 | (eval $ac_try) 2>&5 | |
18679 | ac_status=$? | |
18680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18681 | (exit $ac_status); }; }; then | |
18682 | ac_hi=$ac_mid | |
18683 | else | |
18684 | echo "$as_me: failed program was:" >&5 | |
18685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18686 | ||
18687 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18688 | fi | |
ac1cb8d3 | 18689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18690 | done |
18691 | case $ac_lo in | |
18692 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18693 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18694 | See \`config.log' for more details." >&5 | |
18695 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18696 | See \`config.log' for more details." >&2;} | |
18697 | { (exit 1); exit 1; }; } ;; | |
18698 | esac | |
18699 | else | |
18700 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
18701 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18702 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18703 | { (exit 1); exit 1; }; } |
18704 | else | |
18705 | cat >conftest.$ac_ext <<_ACEOF | |
18706 | /* confdefs.h. */ | |
18707 | _ACEOF | |
18708 | cat confdefs.h >>conftest.$ac_ext | |
18709 | cat >>conftest.$ac_ext <<_ACEOF | |
18710 | /* end confdefs.h. */ | |
18711 | $ac_includes_default | |
18712 | long longval () { return (long) (sizeof (int)); } | |
18713 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
18714 | #include <stdio.h> | |
18715 | #include <stdlib.h> | |
18716 | int | |
18717 | main () | |
18718 | { | |
18719 | ||
18720 | FILE *f = fopen ("conftest.val", "w"); | |
18721 | if (! f) | |
18722 | exit (1); | |
18723 | if (((long) (sizeof (int))) < 0) | |
18724 | { | |
18725 | long i = longval (); | |
18726 | if (i != ((long) (sizeof (int)))) | |
18727 | exit (1); | |
18728 | fprintf (f, "%ld\n", i); | |
18729 | } | |
18730 | else | |
18731 | { | |
18732 | unsigned long i = ulongval (); | |
18733 | if (i != ((long) (sizeof (int)))) | |
18734 | exit (1); | |
18735 | fprintf (f, "%lu\n", i); | |
18736 | } | |
18737 | exit (ferror (f) || fclose (f) != 0); | |
18738 | ||
18739 | ; | |
18740 | return 0; | |
18741 | } | |
18742 | _ACEOF | |
18743 | rm -f conftest$ac_exeext | |
18744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18745 | (eval $ac_link) 2>&5 | |
18746 | ac_status=$? | |
18747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18748 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18750 | (eval $ac_try) 2>&5 | |
18751 | ac_status=$? | |
18752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18753 | (exit $ac_status); }; }; then | |
18754 | ac_cv_sizeof_int=`cat conftest.val` | |
18755 | else | |
18756 | echo "$as_me: program exited with status $ac_status" >&5 | |
18757 | echo "$as_me: failed program was:" >&5 | |
18758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18759 | ||
18760 | ( exit $ac_status ) | |
18761 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18762 | See \`config.log' for more details." >&5 | |
18763 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18764 | See \`config.log' for more details." >&2;} | |
18765 | { (exit 1); exit 1; }; } | |
18766 | fi | |
ac1cb8d3 | 18767 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18768 | fi |
18769 | fi | |
18770 | rm -f conftest.val | |
18771 | else | |
18772 | ac_cv_sizeof_int=0 | |
18773 | fi | |
18774 | fi | |
18775 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
18776 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
18777 | cat >>confdefs.h <<_ACEOF | |
18778 | #define SIZEOF_INT $ac_cv_sizeof_int | |
18779 | _ACEOF | |
18780 | ||
18781 | ||
18782 | echo "$as_me:$LINENO: checking for long" >&5 | |
18783 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
18784 | if test "${ac_cv_type_long+set}" = set; then | |
18785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18786 | else | |
18787 | cat >conftest.$ac_ext <<_ACEOF | |
18788 | /* confdefs.h. */ | |
18789 | _ACEOF | |
18790 | cat confdefs.h >>conftest.$ac_ext | |
18791 | cat >>conftest.$ac_ext <<_ACEOF | |
18792 | /* end confdefs.h. */ | |
18793 | $ac_includes_default | |
18794 | int | |
18795 | main () | |
18796 | { | |
18797 | if ((long *) 0) | |
18798 | return 0; | |
18799 | if (sizeof (long)) | |
18800 | return 0; | |
18801 | ; | |
18802 | return 0; | |
18803 | } | |
18804 | _ACEOF | |
18805 | rm -f conftest.$ac_objext | |
18806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18807 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18808 | ac_status=$? |
ac1cb8d3 VS |
18809 | grep -v '^ *+' conftest.er1 >conftest.err |
18810 | rm -f conftest.er1 | |
18811 | cat conftest.err >&5 | |
a848cd7e SC |
18812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18813 | (exit $ac_status); } && | |
5d7b7554 | 18814 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
18820 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18822 | (eval $ac_try) 2>&5 | |
18823 | ac_status=$? | |
18824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18825 | (exit $ac_status); }; }; then | |
18826 | ac_cv_type_long=yes | |
18827 | else | |
18828 | echo "$as_me: failed program was:" >&5 | |
18829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18830 | ||
18831 | ac_cv_type_long=no | |
18832 | fi | |
ac1cb8d3 | 18833 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18834 | fi |
18835 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
18836 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
18837 | ||
18838 | echo "$as_me:$LINENO: checking size of long" >&5 | |
18839 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
18840 | if test "${ac_cv_sizeof_long+set}" = set; then | |
18841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18842 | else | |
18843 | if test "$ac_cv_type_long" = yes; then | |
18844 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18845 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18846 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18847 | # This bug is HP SR number 8606223364. | |
18848 | if test "$cross_compiling" = yes; then | |
18849 | # Depending upon the size, compute the lo and hi bounds. | |
18850 | cat >conftest.$ac_ext <<_ACEOF | |
18851 | /* confdefs.h. */ | |
18852 | _ACEOF | |
18853 | cat confdefs.h >>conftest.$ac_ext | |
18854 | cat >>conftest.$ac_ext <<_ACEOF | |
18855 | /* end confdefs.h. */ | |
18856 | $ac_includes_default | |
18857 | int | |
18858 | main () | |
18859 | { | |
18860 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
18861 | test_array [0] = 0 | |
18862 | ||
18863 | ; | |
18864 | return 0; | |
18865 | } | |
18866 | _ACEOF | |
18867 | rm -f conftest.$ac_objext | |
18868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18869 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18870 | ac_status=$? |
ac1cb8d3 VS |
18871 | grep -v '^ *+' conftest.er1 >conftest.err |
18872 | rm -f conftest.er1 | |
18873 | cat conftest.err >&5 | |
a848cd7e SC |
18874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18875 | (exit $ac_status); } && | |
5d7b7554 | 18876 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18878 | (eval $ac_try) 2>&5 | |
18879 | ac_status=$? | |
18880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18881 | (exit $ac_status); }; } && | |
18882 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18884 | (eval $ac_try) 2>&5 | |
18885 | ac_status=$? | |
18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18887 | (exit $ac_status); }; }; then | |
18888 | ac_lo=0 ac_mid=0 | |
18889 | while :; do | |
18890 | cat >conftest.$ac_ext <<_ACEOF | |
18891 | /* confdefs.h. */ | |
18892 | _ACEOF | |
18893 | cat confdefs.h >>conftest.$ac_ext | |
18894 | cat >>conftest.$ac_ext <<_ACEOF | |
18895 | /* end confdefs.h. */ | |
18896 | $ac_includes_default | |
18897 | int | |
18898 | main () | |
18899 | { | |
18900 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18901 | test_array [0] = 0 | |
18902 | ||
18903 | ; | |
18904 | return 0; | |
18905 | } | |
18906 | _ACEOF | |
18907 | rm -f conftest.$ac_objext | |
18908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18909 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18910 | ac_status=$? |
ac1cb8d3 VS |
18911 | grep -v '^ *+' conftest.er1 >conftest.err |
18912 | rm -f conftest.er1 | |
18913 | cat conftest.err >&5 | |
a848cd7e SC |
18914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18915 | (exit $ac_status); } && | |
5d7b7554 | 18916 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18918 | (eval $ac_try) 2>&5 | |
18919 | ac_status=$? | |
18920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18921 | (exit $ac_status); }; } && | |
18922 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18924 | (eval $ac_try) 2>&5 | |
18925 | ac_status=$? | |
18926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18927 | (exit $ac_status); }; }; then | |
18928 | ac_hi=$ac_mid; break | |
18929 | else | |
18930 | echo "$as_me: failed program was:" >&5 | |
18931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18932 | ||
18933 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18934 | if test $ac_lo -le $ac_mid; then |
18935 | ac_lo= ac_hi= | |
18936 | break | |
18937 | fi | |
18938 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18939 | fi |
ac1cb8d3 | 18940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18941 | done |
18942 | else | |
18943 | echo "$as_me: failed program was:" >&5 | |
18944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18945 | ||
18946 | cat >conftest.$ac_ext <<_ACEOF | |
18947 | /* confdefs.h. */ | |
18948 | _ACEOF | |
18949 | cat confdefs.h >>conftest.$ac_ext | |
18950 | cat >>conftest.$ac_ext <<_ACEOF | |
18951 | /* end confdefs.h. */ | |
18952 | $ac_includes_default | |
18953 | int | |
18954 | main () | |
18955 | { | |
18956 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
18957 | test_array [0] = 0 | |
18958 | ||
18959 | ; | |
18960 | return 0; | |
18961 | } | |
18962 | _ACEOF | |
18963 | rm -f conftest.$ac_objext | |
18964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18965 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18966 | ac_status=$? |
ac1cb8d3 VS |
18967 | grep -v '^ *+' conftest.er1 >conftest.err |
18968 | rm -f conftest.er1 | |
18969 | cat conftest.err >&5 | |
a848cd7e SC |
18970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18971 | (exit $ac_status); } && | |
5d7b7554 | 18972 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18974 | (eval $ac_try) 2>&5 | |
18975 | ac_status=$? | |
18976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18977 | (exit $ac_status); }; } && | |
18978 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18980 | (eval $ac_try) 2>&5 | |
18981 | ac_status=$? | |
18982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18983 | (exit $ac_status); }; }; then | |
18984 | ac_hi=-1 ac_mid=-1 | |
18985 | while :; do | |
18986 | cat >conftest.$ac_ext <<_ACEOF | |
18987 | /* confdefs.h. */ | |
18988 | _ACEOF | |
18989 | cat confdefs.h >>conftest.$ac_ext | |
18990 | cat >>conftest.$ac_ext <<_ACEOF | |
18991 | /* end confdefs.h. */ | |
18992 | $ac_includes_default | |
18993 | int | |
18994 | main () | |
18995 | { | |
18996 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
18997 | test_array [0] = 0 | |
18998 | ||
18999 | ; | |
19000 | return 0; | |
19001 | } | |
19002 | _ACEOF | |
19003 | rm -f conftest.$ac_objext | |
19004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19005 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19006 | ac_status=$? |
ac1cb8d3 VS |
19007 | grep -v '^ *+' conftest.er1 >conftest.err |
19008 | rm -f conftest.er1 | |
19009 | cat conftest.err >&5 | |
a848cd7e SC |
19010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19011 | (exit $ac_status); } && | |
5d7b7554 | 19012 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19014 | (eval $ac_try) 2>&5 | |
19015 | ac_status=$? | |
19016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19017 | (exit $ac_status); }; } && | |
19018 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19020 | (eval $ac_try) 2>&5 | |
19021 | ac_status=$? | |
19022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19023 | (exit $ac_status); }; }; then | |
19024 | ac_lo=$ac_mid; break | |
19025 | else | |
19026 | echo "$as_me: failed program was:" >&5 | |
19027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19028 | ||
19029 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19030 | if test $ac_mid -le $ac_hi; then |
19031 | ac_lo= ac_hi= | |
19032 | break | |
19033 | fi | |
19034 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19035 | fi |
ac1cb8d3 | 19036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19037 | done |
19038 | else | |
19039 | echo "$as_me: failed program was:" >&5 | |
19040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19041 | ||
19042 | ac_lo= ac_hi= | |
19043 | fi | |
ac1cb8d3 | 19044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19045 | fi |
ac1cb8d3 | 19046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19047 | # Binary search between lo and hi bounds. |
19048 | while test "x$ac_lo" != "x$ac_hi"; do | |
19049 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19050 | cat >conftest.$ac_ext <<_ACEOF | |
19051 | /* confdefs.h. */ | |
19052 | _ACEOF | |
19053 | cat confdefs.h >>conftest.$ac_ext | |
19054 | cat >>conftest.$ac_ext <<_ACEOF | |
19055 | /* end confdefs.h. */ | |
19056 | $ac_includes_default | |
19057 | int | |
19058 | main () | |
19059 | { | |
19060 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19061 | test_array [0] = 0 | |
19062 | ||
19063 | ; | |
19064 | return 0; | |
19065 | } | |
19066 | _ACEOF | |
19067 | rm -f conftest.$ac_objext | |
19068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19069 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19070 | ac_status=$? |
ac1cb8d3 VS |
19071 | grep -v '^ *+' conftest.er1 >conftest.err |
19072 | rm -f conftest.er1 | |
19073 | cat conftest.err >&5 | |
a848cd7e SC |
19074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19075 | (exit $ac_status); } && | |
5d7b7554 | 19076 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19078 | (eval $ac_try) 2>&5 | |
19079 | ac_status=$? | |
19080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19081 | (exit $ac_status); }; } && | |
19082 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19084 | (eval $ac_try) 2>&5 | |
19085 | ac_status=$? | |
19086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19087 | (exit $ac_status); }; }; then | |
19088 | ac_hi=$ac_mid | |
19089 | else | |
19090 | echo "$as_me: failed program was:" >&5 | |
19091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19092 | ||
19093 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19094 | fi | |
ac1cb8d3 | 19095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19096 | done |
19097 | case $ac_lo in | |
19098 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
19099 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19100 | See \`config.log' for more details." >&5 | |
19101 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19102 | See \`config.log' for more details." >&2;} | |
19103 | { (exit 1); exit 1; }; } ;; | |
19104 | esac | |
19105 | else | |
19106 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
19107 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19108 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19109 | { (exit 1); exit 1; }; } |
19110 | else | |
19111 | cat >conftest.$ac_ext <<_ACEOF | |
19112 | /* confdefs.h. */ | |
19113 | _ACEOF | |
19114 | cat confdefs.h >>conftest.$ac_ext | |
19115 | cat >>conftest.$ac_ext <<_ACEOF | |
19116 | /* end confdefs.h. */ | |
19117 | $ac_includes_default | |
19118 | long longval () { return (long) (sizeof (long)); } | |
19119 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
19120 | #include <stdio.h> | |
19121 | #include <stdlib.h> | |
19122 | int | |
19123 | main () | |
19124 | { | |
19125 | ||
19126 | FILE *f = fopen ("conftest.val", "w"); | |
19127 | if (! f) | |
19128 | exit (1); | |
19129 | if (((long) (sizeof (long))) < 0) | |
19130 | { | |
19131 | long i = longval (); | |
19132 | if (i != ((long) (sizeof (long)))) | |
19133 | exit (1); | |
19134 | fprintf (f, "%ld\n", i); | |
19135 | } | |
19136 | else | |
19137 | { | |
19138 | unsigned long i = ulongval (); | |
19139 | if (i != ((long) (sizeof (long)))) | |
19140 | exit (1); | |
19141 | fprintf (f, "%lu\n", i); | |
19142 | } | |
19143 | exit (ferror (f) || fclose (f) != 0); | |
19144 | ||
19145 | ; | |
19146 | return 0; | |
19147 | } | |
19148 | _ACEOF | |
19149 | rm -f conftest$ac_exeext | |
19150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19151 | (eval $ac_link) 2>&5 | |
19152 | ac_status=$? | |
19153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19154 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19156 | (eval $ac_try) 2>&5 | |
19157 | ac_status=$? | |
19158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19159 | (exit $ac_status); }; }; then | |
19160 | ac_cv_sizeof_long=`cat conftest.val` | |
19161 | else | |
19162 | echo "$as_me: program exited with status $ac_status" >&5 | |
19163 | echo "$as_me: failed program was:" >&5 | |
19164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19165 | ||
19166 | ( exit $ac_status ) | |
19167 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19168 | See \`config.log' for more details." >&5 | |
19169 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19170 | See \`config.log' for more details." >&2;} | |
19171 | { (exit 1); exit 1; }; } | |
19172 | fi | |
ac1cb8d3 | 19173 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19174 | fi |
19175 | fi | |
19176 | rm -f conftest.val | |
19177 | else | |
19178 | ac_cv_sizeof_long=0 | |
19179 | fi | |
19180 | fi | |
19181 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
19182 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
19183 | cat >>confdefs.h <<_ACEOF | |
19184 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
19185 | _ACEOF | |
19186 | ||
19187 | ||
19188 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
19189 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
19190 | if test "${ac_cv_type_size_t+set}" = set; then | |
19191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19192 | else | |
19193 | cat >conftest.$ac_ext <<_ACEOF | |
19194 | /* confdefs.h. */ | |
19195 | _ACEOF | |
19196 | cat confdefs.h >>conftest.$ac_ext | |
19197 | cat >>conftest.$ac_ext <<_ACEOF | |
19198 | /* end confdefs.h. */ | |
19199 | $ac_includes_default | |
19200 | int | |
19201 | main () | |
19202 | { | |
19203 | if ((size_t *) 0) | |
19204 | return 0; | |
19205 | if (sizeof (size_t)) | |
19206 | return 0; | |
19207 | ; | |
19208 | return 0; | |
19209 | } | |
19210 | _ACEOF | |
19211 | rm -f conftest.$ac_objext | |
19212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19213 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19214 | ac_status=$? |
ac1cb8d3 VS |
19215 | grep -v '^ *+' conftest.er1 >conftest.err |
19216 | rm -f conftest.er1 | |
19217 | cat conftest.err >&5 | |
a848cd7e SC |
19218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19219 | (exit $ac_status); } && | |
5d7b7554 | 19220 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
19226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19228 | (eval $ac_try) 2>&5 | |
19229 | ac_status=$? | |
19230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19231 | (exit $ac_status); }; }; then | |
19232 | ac_cv_type_size_t=yes | |
19233 | else | |
19234 | echo "$as_me: failed program was:" >&5 | |
19235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19236 | ||
19237 | ac_cv_type_size_t=no | |
19238 | fi | |
ac1cb8d3 | 19239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19240 | fi |
19241 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
19242 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
19243 | ||
19244 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
19245 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
19246 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
19247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19248 | else | |
19249 | if test "$ac_cv_type_size_t" = yes; then | |
19250 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19251 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19252 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19253 | # This bug is HP SR number 8606223364. | |
19254 | if test "$cross_compiling" = yes; then | |
19255 | # Depending upon the size, compute the lo and hi bounds. | |
19256 | cat >conftest.$ac_ext <<_ACEOF | |
19257 | /* confdefs.h. */ | |
19258 | _ACEOF | |
19259 | cat confdefs.h >>conftest.$ac_ext | |
19260 | cat >>conftest.$ac_ext <<_ACEOF | |
19261 | /* end confdefs.h. */ | |
19262 | $ac_includes_default | |
19263 | int | |
19264 | main () | |
19265 | { | |
19266 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
19267 | test_array [0] = 0 | |
19268 | ||
19269 | ; | |
19270 | return 0; | |
19271 | } | |
19272 | _ACEOF | |
19273 | rm -f conftest.$ac_objext | |
19274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19275 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19276 | ac_status=$? |
ac1cb8d3 VS |
19277 | grep -v '^ *+' conftest.er1 >conftest.err |
19278 | rm -f conftest.er1 | |
19279 | cat conftest.err >&5 | |
a848cd7e SC |
19280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19281 | (exit $ac_status); } && | |
5d7b7554 | 19282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19284 | (eval $ac_try) 2>&5 | |
19285 | ac_status=$? | |
19286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19287 | (exit $ac_status); }; } && | |
19288 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19290 | (eval $ac_try) 2>&5 | |
19291 | ac_status=$? | |
19292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19293 | (exit $ac_status); }; }; then | |
19294 | ac_lo=0 ac_mid=0 | |
19295 | while :; do | |
19296 | cat >conftest.$ac_ext <<_ACEOF | |
19297 | /* confdefs.h. */ | |
19298 | _ACEOF | |
19299 | cat confdefs.h >>conftest.$ac_ext | |
19300 | cat >>conftest.$ac_ext <<_ACEOF | |
19301 | /* end confdefs.h. */ | |
19302 | $ac_includes_default | |
19303 | int | |
19304 | main () | |
19305 | { | |
19306 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19307 | test_array [0] = 0 | |
19308 | ||
19309 | ; | |
19310 | return 0; | |
19311 | } | |
19312 | _ACEOF | |
19313 | rm -f conftest.$ac_objext | |
19314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19315 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19316 | ac_status=$? |
ac1cb8d3 VS |
19317 | grep -v '^ *+' conftest.er1 >conftest.err |
19318 | rm -f conftest.er1 | |
19319 | cat conftest.err >&5 | |
a848cd7e SC |
19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19321 | (exit $ac_status); } && | |
5d7b7554 | 19322 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19324 | (eval $ac_try) 2>&5 | |
19325 | ac_status=$? | |
19326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19327 | (exit $ac_status); }; } && | |
19328 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19330 | (eval $ac_try) 2>&5 | |
19331 | ac_status=$? | |
19332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19333 | (exit $ac_status); }; }; then | |
19334 | ac_hi=$ac_mid; break | |
19335 | else | |
19336 | echo "$as_me: failed program was:" >&5 | |
19337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19338 | ||
19339 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19340 | if test $ac_lo -le $ac_mid; then |
19341 | ac_lo= ac_hi= | |
19342 | break | |
19343 | fi | |
19344 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19345 | fi |
ac1cb8d3 | 19346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19347 | done |
19348 | else | |
19349 | echo "$as_me: failed program was:" >&5 | |
19350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19351 | ||
19352 | cat >conftest.$ac_ext <<_ACEOF | |
19353 | /* confdefs.h. */ | |
19354 | _ACEOF | |
19355 | cat confdefs.h >>conftest.$ac_ext | |
19356 | cat >>conftest.$ac_ext <<_ACEOF | |
19357 | /* end confdefs.h. */ | |
19358 | $ac_includes_default | |
19359 | int | |
19360 | main () | |
19361 | { | |
19362 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
19363 | test_array [0] = 0 | |
19364 | ||
19365 | ; | |
19366 | return 0; | |
19367 | } | |
19368 | _ACEOF | |
19369 | rm -f conftest.$ac_objext | |
19370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19371 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19372 | ac_status=$? |
ac1cb8d3 VS |
19373 | grep -v '^ *+' conftest.er1 >conftest.err |
19374 | rm -f conftest.er1 | |
19375 | cat conftest.err >&5 | |
a848cd7e SC |
19376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19377 | (exit $ac_status); } && | |
5d7b7554 | 19378 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19380 | (eval $ac_try) 2>&5 | |
19381 | ac_status=$? | |
19382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19383 | (exit $ac_status); }; } && | |
19384 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19386 | (eval $ac_try) 2>&5 | |
19387 | ac_status=$? | |
19388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19389 | (exit $ac_status); }; }; then | |
19390 | ac_hi=-1 ac_mid=-1 | |
19391 | while :; do | |
19392 | cat >conftest.$ac_ext <<_ACEOF | |
19393 | /* confdefs.h. */ | |
19394 | _ACEOF | |
19395 | cat confdefs.h >>conftest.$ac_ext | |
19396 | cat >>conftest.$ac_ext <<_ACEOF | |
19397 | /* end confdefs.h. */ | |
19398 | $ac_includes_default | |
19399 | int | |
19400 | main () | |
19401 | { | |
19402 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
19403 | test_array [0] = 0 | |
19404 | ||
19405 | ; | |
19406 | return 0; | |
19407 | } | |
19408 | _ACEOF | |
19409 | rm -f conftest.$ac_objext | |
19410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19411 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19412 | ac_status=$? |
ac1cb8d3 VS |
19413 | grep -v '^ *+' conftest.er1 >conftest.err |
19414 | rm -f conftest.er1 | |
19415 | cat conftest.err >&5 | |
a848cd7e SC |
19416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19417 | (exit $ac_status); } && | |
5d7b7554 | 19418 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19420 | (eval $ac_try) 2>&5 | |
19421 | ac_status=$? | |
19422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19423 | (exit $ac_status); }; } && | |
19424 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19426 | (eval $ac_try) 2>&5 | |
19427 | ac_status=$? | |
19428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19429 | (exit $ac_status); }; }; then | |
19430 | ac_lo=$ac_mid; break | |
19431 | else | |
19432 | echo "$as_me: failed program was:" >&5 | |
19433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19434 | ||
19435 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19436 | if test $ac_mid -le $ac_hi; then |
19437 | ac_lo= ac_hi= | |
19438 | break | |
19439 | fi | |
19440 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19441 | fi |
ac1cb8d3 | 19442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19443 | done |
19444 | else | |
19445 | echo "$as_me: failed program was:" >&5 | |
19446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19447 | ||
19448 | ac_lo= ac_hi= | |
19449 | fi | |
ac1cb8d3 | 19450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19451 | fi |
ac1cb8d3 | 19452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19453 | # Binary search between lo and hi bounds. |
19454 | while test "x$ac_lo" != "x$ac_hi"; do | |
19455 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19456 | cat >conftest.$ac_ext <<_ACEOF | |
19457 | /* confdefs.h. */ | |
19458 | _ACEOF | |
19459 | cat confdefs.h >>conftest.$ac_ext | |
19460 | cat >>conftest.$ac_ext <<_ACEOF | |
19461 | /* end confdefs.h. */ | |
19462 | $ac_includes_default | |
19463 | int | |
19464 | main () | |
19465 | { | |
19466 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19467 | test_array [0] = 0 | |
19468 | ||
19469 | ; | |
19470 | return 0; | |
19471 | } | |
19472 | _ACEOF | |
19473 | rm -f conftest.$ac_objext | |
19474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19475 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19476 | ac_status=$? |
ac1cb8d3 VS |
19477 | grep -v '^ *+' conftest.er1 >conftest.err |
19478 | rm -f conftest.er1 | |
19479 | cat conftest.err >&5 | |
a848cd7e SC |
19480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19481 | (exit $ac_status); } && | |
5d7b7554 | 19482 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19484 | (eval $ac_try) 2>&5 | |
19485 | ac_status=$? | |
19486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19487 | (exit $ac_status); }; } && | |
19488 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19490 | (eval $ac_try) 2>&5 | |
19491 | ac_status=$? | |
19492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19493 | (exit $ac_status); }; }; then | |
19494 | ac_hi=$ac_mid | |
19495 | else | |
19496 | echo "$as_me: failed program was:" >&5 | |
19497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19498 | ||
19499 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19500 | fi | |
ac1cb8d3 | 19501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19502 | done |
19503 | case $ac_lo in | |
19504 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
19505 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19506 | See \`config.log' for more details." >&5 | |
19507 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19508 | See \`config.log' for more details." >&2;} | |
19509 | { (exit 1); exit 1; }; } ;; | |
19510 | esac | |
19511 | else | |
19512 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
19513 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19514 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19515 | { (exit 1); exit 1; }; } |
19516 | else | |
19517 | cat >conftest.$ac_ext <<_ACEOF | |
19518 | /* confdefs.h. */ | |
19519 | _ACEOF | |
19520 | cat confdefs.h >>conftest.$ac_ext | |
19521 | cat >>conftest.$ac_ext <<_ACEOF | |
19522 | /* end confdefs.h. */ | |
19523 | $ac_includes_default | |
19524 | long longval () { return (long) (sizeof (size_t)); } | |
19525 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
19526 | #include <stdio.h> | |
19527 | #include <stdlib.h> | |
19528 | int | |
19529 | main () | |
19530 | { | |
19531 | ||
19532 | FILE *f = fopen ("conftest.val", "w"); | |
19533 | if (! f) | |
19534 | exit (1); | |
19535 | if (((long) (sizeof (size_t))) < 0) | |
19536 | { | |
19537 | long i = longval (); | |
19538 | if (i != ((long) (sizeof (size_t)))) | |
19539 | exit (1); | |
19540 | fprintf (f, "%ld\n", i); | |
19541 | } | |
19542 | else | |
19543 | { | |
19544 | unsigned long i = ulongval (); | |
19545 | if (i != ((long) (sizeof (size_t)))) | |
19546 | exit (1); | |
19547 | fprintf (f, "%lu\n", i); | |
19548 | } | |
19549 | exit (ferror (f) || fclose (f) != 0); | |
19550 | ||
19551 | ; | |
19552 | return 0; | |
19553 | } | |
19554 | _ACEOF | |
19555 | rm -f conftest$ac_exeext | |
19556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19557 | (eval $ac_link) 2>&5 | |
19558 | ac_status=$? | |
19559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19560 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19562 | (eval $ac_try) 2>&5 | |
19563 | ac_status=$? | |
19564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19565 | (exit $ac_status); }; }; then | |
19566 | ac_cv_sizeof_size_t=`cat conftest.val` | |
19567 | else | |
19568 | echo "$as_me: program exited with status $ac_status" >&5 | |
19569 | echo "$as_me: failed program was:" >&5 | |
19570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19571 | ||
19572 | ( exit $ac_status ) | |
19573 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19574 | See \`config.log' for more details." >&5 | |
19575 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19576 | See \`config.log' for more details." >&2;} | |
19577 | { (exit 1); exit 1; }; } | |
19578 | fi | |
ac1cb8d3 | 19579 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19580 | fi |
19581 | fi | |
19582 | rm -f conftest.val | |
19583 | else | |
19584 | ac_cv_sizeof_size_t=0 | |
19585 | fi | |
19586 | fi | |
19587 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
19588 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
19589 | cat >>confdefs.h <<_ACEOF | |
19590 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
19591 | _ACEOF | |
19592 | ||
19593 | ||
19594 | ||
19595 | case "${host}" in | |
19596 | arm-*-linux* ) | |
19597 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19598 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19599 | if test "${ac_cv_type_long_long+set}" = set; then | |
19600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19601 | else | |
19602 | cat >conftest.$ac_ext <<_ACEOF | |
19603 | /* confdefs.h. */ | |
19604 | _ACEOF | |
19605 | cat confdefs.h >>conftest.$ac_ext | |
19606 | cat >>conftest.$ac_ext <<_ACEOF | |
19607 | /* end confdefs.h. */ | |
19608 | $ac_includes_default | |
19609 | int | |
19610 | main () | |
19611 | { | |
19612 | if ((long long *) 0) | |
19613 | return 0; | |
19614 | if (sizeof (long long)) | |
19615 | return 0; | |
19616 | ; | |
19617 | return 0; | |
19618 | } | |
19619 | _ACEOF | |
19620 | rm -f conftest.$ac_objext | |
19621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19623 | ac_status=$? |
ac1cb8d3 VS |
19624 | grep -v '^ *+' conftest.er1 >conftest.err |
19625 | rm -f conftest.er1 | |
19626 | cat conftest.err >&5 | |
a848cd7e SC |
19627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19628 | (exit $ac_status); } && | |
5d7b7554 | 19629 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
19635 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19637 | (eval $ac_try) 2>&5 | |
19638 | ac_status=$? | |
19639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19640 | (exit $ac_status); }; }; then | |
19641 | ac_cv_type_long_long=yes | |
19642 | else | |
19643 | echo "$as_me: failed program was:" >&5 | |
19644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19645 | ||
19646 | ac_cv_type_long_long=no | |
19647 | fi | |
ac1cb8d3 | 19648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19649 | fi |
19650 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19651 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19652 | ||
19653 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19654 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19655 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19657 | else | |
19658 | if test "$ac_cv_type_long_long" = yes; then | |
19659 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19660 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19661 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19662 | # This bug is HP SR number 8606223364. | |
19663 | if test "$cross_compiling" = yes; then | |
19664 | # Depending upon the size, compute the lo and hi bounds. | |
19665 | cat >conftest.$ac_ext <<_ACEOF | |
19666 | /* confdefs.h. */ | |
19667 | _ACEOF | |
19668 | cat confdefs.h >>conftest.$ac_ext | |
19669 | cat >>conftest.$ac_ext <<_ACEOF | |
19670 | /* end confdefs.h. */ | |
19671 | $ac_includes_default | |
19672 | int | |
19673 | main () | |
19674 | { | |
19675 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19676 | test_array [0] = 0 | |
19677 | ||
19678 | ; | |
19679 | return 0; | |
19680 | } | |
19681 | _ACEOF | |
19682 | rm -f conftest.$ac_objext | |
19683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19684 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19685 | ac_status=$? |
ac1cb8d3 VS |
19686 | grep -v '^ *+' conftest.er1 >conftest.err |
19687 | rm -f conftest.er1 | |
19688 | cat conftest.err >&5 | |
a848cd7e SC |
19689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19690 | (exit $ac_status); } && | |
5d7b7554 | 19691 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19693 | (eval $ac_try) 2>&5 | |
19694 | ac_status=$? | |
19695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19696 | (exit $ac_status); }; } && | |
19697 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19699 | (eval $ac_try) 2>&5 | |
19700 | ac_status=$? | |
19701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19702 | (exit $ac_status); }; }; then | |
19703 | ac_lo=0 ac_mid=0 | |
19704 | while :; do | |
19705 | cat >conftest.$ac_ext <<_ACEOF | |
19706 | /* confdefs.h. */ | |
19707 | _ACEOF | |
19708 | cat confdefs.h >>conftest.$ac_ext | |
19709 | cat >>conftest.$ac_ext <<_ACEOF | |
19710 | /* end confdefs.h. */ | |
19711 | $ac_includes_default | |
19712 | int | |
19713 | main () | |
19714 | { | |
19715 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19716 | test_array [0] = 0 | |
19717 | ||
19718 | ; | |
19719 | return 0; | |
19720 | } | |
19721 | _ACEOF | |
19722 | rm -f conftest.$ac_objext | |
19723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19724 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19725 | ac_status=$? |
ac1cb8d3 VS |
19726 | grep -v '^ *+' conftest.er1 >conftest.err |
19727 | rm -f conftest.er1 | |
19728 | cat conftest.err >&5 | |
a848cd7e SC |
19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19730 | (exit $ac_status); } && | |
5d7b7554 | 19731 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19733 | (eval $ac_try) 2>&5 | |
19734 | ac_status=$? | |
19735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19736 | (exit $ac_status); }; } && | |
19737 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19739 | (eval $ac_try) 2>&5 | |
19740 | ac_status=$? | |
19741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19742 | (exit $ac_status); }; }; then | |
19743 | ac_hi=$ac_mid; break | |
19744 | else | |
19745 | echo "$as_me: failed program was:" >&5 | |
19746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19747 | ||
19748 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19749 | if test $ac_lo -le $ac_mid; then |
19750 | ac_lo= ac_hi= | |
19751 | break | |
19752 | fi | |
19753 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19754 | fi |
ac1cb8d3 | 19755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19756 | done |
19757 | else | |
19758 | echo "$as_me: failed program was:" >&5 | |
19759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19760 | ||
19761 | cat >conftest.$ac_ext <<_ACEOF | |
19762 | /* confdefs.h. */ | |
19763 | _ACEOF | |
19764 | cat confdefs.h >>conftest.$ac_ext | |
19765 | cat >>conftest.$ac_ext <<_ACEOF | |
19766 | /* end confdefs.h. */ | |
19767 | $ac_includes_default | |
19768 | int | |
19769 | main () | |
19770 | { | |
19771 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19772 | test_array [0] = 0 | |
19773 | ||
19774 | ; | |
19775 | return 0; | |
19776 | } | |
19777 | _ACEOF | |
19778 | rm -f conftest.$ac_objext | |
19779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19780 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19781 | ac_status=$? |
ac1cb8d3 VS |
19782 | grep -v '^ *+' conftest.er1 >conftest.err |
19783 | rm -f conftest.er1 | |
19784 | cat conftest.err >&5 | |
a848cd7e SC |
19785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19786 | (exit $ac_status); } && | |
5d7b7554 | 19787 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19789 | (eval $ac_try) 2>&5 | |
19790 | ac_status=$? | |
19791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19792 | (exit $ac_status); }; } && | |
19793 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19795 | (eval $ac_try) 2>&5 | |
19796 | ac_status=$? | |
19797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19798 | (exit $ac_status); }; }; then | |
19799 | ac_hi=-1 ac_mid=-1 | |
19800 | while :; do | |
19801 | cat >conftest.$ac_ext <<_ACEOF | |
19802 | /* confdefs.h. */ | |
19803 | _ACEOF | |
19804 | cat confdefs.h >>conftest.$ac_ext | |
19805 | cat >>conftest.$ac_ext <<_ACEOF | |
19806 | /* end confdefs.h. */ | |
19807 | $ac_includes_default | |
19808 | int | |
19809 | main () | |
19810 | { | |
19811 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19812 | test_array [0] = 0 | |
19813 | ||
19814 | ; | |
19815 | return 0; | |
19816 | } | |
19817 | _ACEOF | |
19818 | rm -f conftest.$ac_objext | |
19819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19820 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19821 | ac_status=$? |
ac1cb8d3 VS |
19822 | grep -v '^ *+' conftest.er1 >conftest.err |
19823 | rm -f conftest.er1 | |
19824 | cat conftest.err >&5 | |
a848cd7e SC |
19825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19826 | (exit $ac_status); } && | |
5d7b7554 | 19827 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19829 | (eval $ac_try) 2>&5 | |
19830 | ac_status=$? | |
19831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19832 | (exit $ac_status); }; } && | |
19833 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19835 | (eval $ac_try) 2>&5 | |
19836 | ac_status=$? | |
19837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19838 | (exit $ac_status); }; }; then | |
19839 | ac_lo=$ac_mid; break | |
19840 | else | |
19841 | echo "$as_me: failed program was:" >&5 | |
19842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19843 | ||
19844 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19845 | if test $ac_mid -le $ac_hi; then |
19846 | ac_lo= ac_hi= | |
19847 | break | |
19848 | fi | |
19849 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19850 | fi |
ac1cb8d3 | 19851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19852 | done |
19853 | else | |
19854 | echo "$as_me: failed program was:" >&5 | |
19855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19856 | ||
19857 | ac_lo= ac_hi= | |
19858 | fi | |
ac1cb8d3 | 19859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19860 | fi |
ac1cb8d3 | 19861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19862 | # Binary search between lo and hi bounds. |
19863 | while test "x$ac_lo" != "x$ac_hi"; do | |
19864 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19865 | cat >conftest.$ac_ext <<_ACEOF | |
19866 | /* confdefs.h. */ | |
19867 | _ACEOF | |
19868 | cat confdefs.h >>conftest.$ac_ext | |
19869 | cat >>conftest.$ac_ext <<_ACEOF | |
19870 | /* end confdefs.h. */ | |
19871 | $ac_includes_default | |
19872 | int | |
19873 | main () | |
19874 | { | |
19875 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19876 | test_array [0] = 0 | |
19877 | ||
19878 | ; | |
19879 | return 0; | |
19880 | } | |
19881 | _ACEOF | |
19882 | rm -f conftest.$ac_objext | |
19883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19884 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19885 | ac_status=$? |
ac1cb8d3 VS |
19886 | grep -v '^ *+' conftest.er1 >conftest.err |
19887 | rm -f conftest.er1 | |
19888 | cat conftest.err >&5 | |
a848cd7e SC |
19889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19890 | (exit $ac_status); } && | |
5d7b7554 | 19891 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19893 | (eval $ac_try) 2>&5 | |
19894 | ac_status=$? | |
19895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19896 | (exit $ac_status); }; } && | |
19897 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19899 | (eval $ac_try) 2>&5 | |
19900 | ac_status=$? | |
19901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19902 | (exit $ac_status); }; }; then | |
19903 | ac_hi=$ac_mid | |
19904 | else | |
19905 | echo "$as_me: failed program was:" >&5 | |
19906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19907 | ||
19908 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19909 | fi | |
ac1cb8d3 | 19910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19911 | done |
19912 | case $ac_lo in | |
19913 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19914 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19915 | See \`config.log' for more details." >&5 | |
19916 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19917 | See \`config.log' for more details." >&2;} | |
19918 | { (exit 1); exit 1; }; } ;; | |
19919 | esac | |
19920 | else | |
19921 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
19922 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19923 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19924 | { (exit 1); exit 1; }; } |
19925 | else | |
19926 | cat >conftest.$ac_ext <<_ACEOF | |
19927 | /* confdefs.h. */ | |
19928 | _ACEOF | |
19929 | cat confdefs.h >>conftest.$ac_ext | |
19930 | cat >>conftest.$ac_ext <<_ACEOF | |
19931 | /* end confdefs.h. */ | |
19932 | $ac_includes_default | |
19933 | long longval () { return (long) (sizeof (long long)); } | |
19934 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19935 | #include <stdio.h> | |
19936 | #include <stdlib.h> | |
19937 | int | |
19938 | main () | |
19939 | { | |
19940 | ||
19941 | FILE *f = fopen ("conftest.val", "w"); | |
19942 | if (! f) | |
19943 | exit (1); | |
19944 | if (((long) (sizeof (long long))) < 0) | |
19945 | { | |
19946 | long i = longval (); | |
19947 | if (i != ((long) (sizeof (long long)))) | |
19948 | exit (1); | |
19949 | fprintf (f, "%ld\n", i); | |
19950 | } | |
19951 | else | |
19952 | { | |
19953 | unsigned long i = ulongval (); | |
19954 | if (i != ((long) (sizeof (long long)))) | |
19955 | exit (1); | |
19956 | fprintf (f, "%lu\n", i); | |
19957 | } | |
19958 | exit (ferror (f) || fclose (f) != 0); | |
19959 | ||
19960 | ; | |
19961 | return 0; | |
19962 | } | |
19963 | _ACEOF | |
19964 | rm -f conftest$ac_exeext | |
19965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19966 | (eval $ac_link) 2>&5 | |
19967 | ac_status=$? | |
19968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19969 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19971 | (eval $ac_try) 2>&5 | |
19972 | ac_status=$? | |
19973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19974 | (exit $ac_status); }; }; then | |
19975 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19976 | else | |
19977 | echo "$as_me: program exited with status $ac_status" >&5 | |
19978 | echo "$as_me: failed program was:" >&5 | |
19979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19980 | ||
19981 | ( exit $ac_status ) | |
19982 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19983 | See \`config.log' for more details." >&5 | |
19984 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19985 | See \`config.log' for more details." >&2;} | |
19986 | { (exit 1); exit 1; }; } | |
19987 | fi | |
ac1cb8d3 | 19988 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19989 | fi |
19990 | fi | |
19991 | rm -f conftest.val | |
19992 | else | |
19993 | ac_cv_sizeof_long_long=0 | |
19994 | fi | |
19995 | fi | |
19996 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19997 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19998 | cat >>confdefs.h <<_ACEOF | |
19999 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20000 | _ACEOF | |
20001 | ||
20002 | ||
20003 | ;; | |
20004 | *-hp-hpux* ) | |
20005 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20006 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20007 | if test "${ac_cv_type_long_long+set}" = set; then | |
20008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20009 | else | |
20010 | cat >conftest.$ac_ext <<_ACEOF | |
20011 | /* confdefs.h. */ | |
20012 | _ACEOF | |
20013 | cat confdefs.h >>conftest.$ac_ext | |
20014 | cat >>conftest.$ac_ext <<_ACEOF | |
20015 | /* end confdefs.h. */ | |
20016 | $ac_includes_default | |
20017 | int | |
20018 | main () | |
20019 | { | |
20020 | if ((long long *) 0) | |
20021 | return 0; | |
20022 | if (sizeof (long long)) | |
20023 | return 0; | |
20024 | ; | |
20025 | return 0; | |
20026 | } | |
20027 | _ACEOF | |
20028 | rm -f conftest.$ac_objext | |
20029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20030 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20031 | ac_status=$? |
ac1cb8d3 VS |
20032 | grep -v '^ *+' conftest.er1 >conftest.err |
20033 | rm -f conftest.er1 | |
20034 | cat conftest.err >&5 | |
a848cd7e SC |
20035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20036 | (exit $ac_status); } && | |
5d7b7554 | 20037 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
20043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20045 | (eval $ac_try) 2>&5 | |
20046 | ac_status=$? | |
20047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20048 | (exit $ac_status); }; }; then | |
20049 | ac_cv_type_long_long=yes | |
20050 | else | |
20051 | echo "$as_me: failed program was:" >&5 | |
20052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20053 | ||
20054 | ac_cv_type_long_long=no | |
20055 | fi | |
ac1cb8d3 | 20056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20057 | fi |
20058 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20059 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20060 | ||
20061 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20062 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20063 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20065 | else | |
20066 | if test "$ac_cv_type_long_long" = yes; then | |
20067 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20068 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20069 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20070 | # This bug is HP SR number 8606223364. | |
20071 | if test "$cross_compiling" = yes; then | |
20072 | # Depending upon the size, compute the lo and hi bounds. | |
20073 | cat >conftest.$ac_ext <<_ACEOF | |
20074 | /* confdefs.h. */ | |
20075 | _ACEOF | |
20076 | cat confdefs.h >>conftest.$ac_ext | |
20077 | cat >>conftest.$ac_ext <<_ACEOF | |
20078 | /* end confdefs.h. */ | |
20079 | $ac_includes_default | |
20080 | int | |
20081 | main () | |
20082 | { | |
20083 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20084 | test_array [0] = 0 | |
20085 | ||
20086 | ; | |
20087 | return 0; | |
20088 | } | |
20089 | _ACEOF | |
20090 | rm -f conftest.$ac_objext | |
20091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20092 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20093 | ac_status=$? |
ac1cb8d3 VS |
20094 | grep -v '^ *+' conftest.er1 >conftest.err |
20095 | rm -f conftest.er1 | |
20096 | cat conftest.err >&5 | |
a848cd7e SC |
20097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20098 | (exit $ac_status); } && | |
5d7b7554 | 20099 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20101 | (eval $ac_try) 2>&5 | |
20102 | ac_status=$? | |
20103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20104 | (exit $ac_status); }; } && | |
20105 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20107 | (eval $ac_try) 2>&5 | |
20108 | ac_status=$? | |
20109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20110 | (exit $ac_status); }; }; then | |
20111 | ac_lo=0 ac_mid=0 | |
20112 | while :; do | |
20113 | cat >conftest.$ac_ext <<_ACEOF | |
20114 | /* confdefs.h. */ | |
20115 | _ACEOF | |
20116 | cat confdefs.h >>conftest.$ac_ext | |
20117 | cat >>conftest.$ac_ext <<_ACEOF | |
20118 | /* end confdefs.h. */ | |
20119 | $ac_includes_default | |
20120 | int | |
20121 | main () | |
20122 | { | |
20123 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20124 | test_array [0] = 0 | |
20125 | ||
20126 | ; | |
20127 | return 0; | |
20128 | } | |
20129 | _ACEOF | |
20130 | rm -f conftest.$ac_objext | |
20131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20132 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20133 | ac_status=$? |
ac1cb8d3 VS |
20134 | grep -v '^ *+' conftest.er1 >conftest.err |
20135 | rm -f conftest.er1 | |
20136 | cat conftest.err >&5 | |
a848cd7e SC |
20137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20138 | (exit $ac_status); } && | |
5d7b7554 | 20139 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20141 | (eval $ac_try) 2>&5 | |
20142 | ac_status=$? | |
20143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20144 | (exit $ac_status); }; } && | |
20145 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20147 | (eval $ac_try) 2>&5 | |
20148 | ac_status=$? | |
20149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20150 | (exit $ac_status); }; }; then | |
20151 | ac_hi=$ac_mid; break | |
20152 | else | |
20153 | echo "$as_me: failed program was:" >&5 | |
20154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20155 | ||
20156 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20157 | if test $ac_lo -le $ac_mid; then |
20158 | ac_lo= ac_hi= | |
20159 | break | |
20160 | fi | |
20161 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20162 | fi |
ac1cb8d3 | 20163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20164 | done |
20165 | else | |
20166 | echo "$as_me: failed program was:" >&5 | |
20167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20168 | ||
20169 | cat >conftest.$ac_ext <<_ACEOF | |
20170 | /* confdefs.h. */ | |
20171 | _ACEOF | |
20172 | cat confdefs.h >>conftest.$ac_ext | |
20173 | cat >>conftest.$ac_ext <<_ACEOF | |
20174 | /* end confdefs.h. */ | |
20175 | $ac_includes_default | |
20176 | int | |
20177 | main () | |
20178 | { | |
20179 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20180 | test_array [0] = 0 | |
20181 | ||
20182 | ; | |
20183 | return 0; | |
20184 | } | |
20185 | _ACEOF | |
20186 | rm -f conftest.$ac_objext | |
20187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20188 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20189 | ac_status=$? |
ac1cb8d3 VS |
20190 | grep -v '^ *+' conftest.er1 >conftest.err |
20191 | rm -f conftest.er1 | |
20192 | cat conftest.err >&5 | |
a848cd7e SC |
20193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20194 | (exit $ac_status); } && | |
5d7b7554 | 20195 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20197 | (eval $ac_try) 2>&5 | |
20198 | ac_status=$? | |
20199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20200 | (exit $ac_status); }; } && | |
20201 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20203 | (eval $ac_try) 2>&5 | |
20204 | ac_status=$? | |
20205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20206 | (exit $ac_status); }; }; then | |
20207 | ac_hi=-1 ac_mid=-1 | |
20208 | while :; do | |
20209 | cat >conftest.$ac_ext <<_ACEOF | |
20210 | /* confdefs.h. */ | |
20211 | _ACEOF | |
20212 | cat confdefs.h >>conftest.$ac_ext | |
20213 | cat >>conftest.$ac_ext <<_ACEOF | |
20214 | /* end confdefs.h. */ | |
20215 | $ac_includes_default | |
20216 | int | |
20217 | main () | |
20218 | { | |
20219 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20220 | test_array [0] = 0 | |
20221 | ||
20222 | ; | |
20223 | return 0; | |
20224 | } | |
20225 | _ACEOF | |
20226 | rm -f conftest.$ac_objext | |
20227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20228 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20229 | ac_status=$? |
ac1cb8d3 VS |
20230 | grep -v '^ *+' conftest.er1 >conftest.err |
20231 | rm -f conftest.er1 | |
20232 | cat conftest.err >&5 | |
a848cd7e SC |
20233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20234 | (exit $ac_status); } && | |
5d7b7554 | 20235 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20237 | (eval $ac_try) 2>&5 | |
20238 | ac_status=$? | |
20239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20240 | (exit $ac_status); }; } && | |
20241 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20243 | (eval $ac_try) 2>&5 | |
20244 | ac_status=$? | |
20245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20246 | (exit $ac_status); }; }; then | |
20247 | ac_lo=$ac_mid; break | |
20248 | else | |
20249 | echo "$as_me: failed program was:" >&5 | |
20250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20251 | ||
20252 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20253 | if test $ac_mid -le $ac_hi; then |
20254 | ac_lo= ac_hi= | |
20255 | break | |
20256 | fi | |
20257 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20258 | fi |
ac1cb8d3 | 20259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20260 | done |
20261 | else | |
20262 | echo "$as_me: failed program was:" >&5 | |
20263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20264 | ||
20265 | ac_lo= ac_hi= | |
20266 | fi | |
ac1cb8d3 | 20267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20268 | fi |
ac1cb8d3 | 20269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20270 | # Binary search between lo and hi bounds. |
20271 | while test "x$ac_lo" != "x$ac_hi"; do | |
20272 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20273 | cat >conftest.$ac_ext <<_ACEOF | |
20274 | /* confdefs.h. */ | |
20275 | _ACEOF | |
20276 | cat confdefs.h >>conftest.$ac_ext | |
20277 | cat >>conftest.$ac_ext <<_ACEOF | |
20278 | /* end confdefs.h. */ | |
20279 | $ac_includes_default | |
20280 | int | |
20281 | main () | |
20282 | { | |
20283 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20284 | test_array [0] = 0 | |
20285 | ||
20286 | ; | |
20287 | return 0; | |
20288 | } | |
20289 | _ACEOF | |
20290 | rm -f conftest.$ac_objext | |
20291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20292 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20293 | ac_status=$? |
ac1cb8d3 VS |
20294 | grep -v '^ *+' conftest.er1 >conftest.err |
20295 | rm -f conftest.er1 | |
20296 | cat conftest.err >&5 | |
a848cd7e SC |
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20298 | (exit $ac_status); } && | |
5d7b7554 | 20299 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20301 | (eval $ac_try) 2>&5 | |
20302 | ac_status=$? | |
20303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20304 | (exit $ac_status); }; } && | |
20305 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20307 | (eval $ac_try) 2>&5 | |
20308 | ac_status=$? | |
20309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20310 | (exit $ac_status); }; }; then | |
20311 | ac_hi=$ac_mid | |
20312 | else | |
20313 | echo "$as_me: failed program was:" >&5 | |
20314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20315 | ||
20316 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20317 | fi | |
ac1cb8d3 | 20318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20319 | done |
20320 | case $ac_lo in | |
20321 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20322 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20323 | See \`config.log' for more details." >&5 | |
20324 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20325 | See \`config.log' for more details." >&2;} | |
20326 | { (exit 1); exit 1; }; } ;; | |
20327 | esac | |
20328 | else | |
20329 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
20330 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20331 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20332 | { (exit 1); exit 1; }; } |
20333 | else | |
20334 | cat >conftest.$ac_ext <<_ACEOF | |
20335 | /* confdefs.h. */ | |
20336 | _ACEOF | |
20337 | cat confdefs.h >>conftest.$ac_ext | |
20338 | cat >>conftest.$ac_ext <<_ACEOF | |
20339 | /* end confdefs.h. */ | |
20340 | $ac_includes_default | |
20341 | long longval () { return (long) (sizeof (long long)); } | |
20342 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20343 | #include <stdio.h> | |
20344 | #include <stdlib.h> | |
20345 | int | |
20346 | main () | |
20347 | { | |
20348 | ||
20349 | FILE *f = fopen ("conftest.val", "w"); | |
20350 | if (! f) | |
20351 | exit (1); | |
20352 | if (((long) (sizeof (long long))) < 0) | |
20353 | { | |
20354 | long i = longval (); | |
20355 | if (i != ((long) (sizeof (long long)))) | |
20356 | exit (1); | |
20357 | fprintf (f, "%ld\n", i); | |
20358 | } | |
20359 | else | |
20360 | { | |
20361 | unsigned long i = ulongval (); | |
20362 | if (i != ((long) (sizeof (long long)))) | |
20363 | exit (1); | |
20364 | fprintf (f, "%lu\n", i); | |
20365 | } | |
20366 | exit (ferror (f) || fclose (f) != 0); | |
20367 | ||
20368 | ; | |
20369 | return 0; | |
20370 | } | |
20371 | _ACEOF | |
20372 | rm -f conftest$ac_exeext | |
20373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20374 | (eval $ac_link) 2>&5 | |
20375 | ac_status=$? | |
20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20379 | (eval $ac_try) 2>&5 | |
20380 | ac_status=$? | |
20381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20382 | (exit $ac_status); }; }; then | |
20383 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20384 | else | |
20385 | echo "$as_me: program exited with status $ac_status" >&5 | |
20386 | echo "$as_me: failed program was:" >&5 | |
20387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20388 | ||
20389 | ( exit $ac_status ) | |
20390 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20391 | See \`config.log' for more details." >&5 | |
20392 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20393 | See \`config.log' for more details." >&2;} | |
20394 | { (exit 1); exit 1; }; } | |
20395 | fi | |
ac1cb8d3 | 20396 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20397 | fi |
20398 | fi | |
20399 | rm -f conftest.val | |
20400 | else | |
20401 | ac_cv_sizeof_long_long=0 | |
20402 | fi | |
20403 | fi | |
20404 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20405 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20406 | cat >>confdefs.h <<_ACEOF | |
20407 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20408 | _ACEOF | |
20409 | ||
20410 | ||
20411 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 20412 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
20413 | fi |
20414 | ;; | |
20415 | * ) | |
20416 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20417 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20418 | if test "${ac_cv_type_long_long+set}" = set; then | |
20419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20420 | else | |
20421 | cat >conftest.$ac_ext <<_ACEOF | |
20422 | /* confdefs.h. */ | |
20423 | _ACEOF | |
20424 | cat confdefs.h >>conftest.$ac_ext | |
20425 | cat >>conftest.$ac_ext <<_ACEOF | |
20426 | /* end confdefs.h. */ | |
20427 | $ac_includes_default | |
20428 | int | |
20429 | main () | |
20430 | { | |
20431 | if ((long long *) 0) | |
20432 | return 0; | |
20433 | if (sizeof (long long)) | |
20434 | return 0; | |
20435 | ; | |
20436 | return 0; | |
20437 | } | |
20438 | _ACEOF | |
20439 | rm -f conftest.$ac_objext | |
20440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20441 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20442 | ac_status=$? |
ac1cb8d3 VS |
20443 | grep -v '^ *+' conftest.er1 >conftest.err |
20444 | rm -f conftest.er1 | |
20445 | cat conftest.err >&5 | |
a848cd7e SC |
20446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20447 | (exit $ac_status); } && | |
5d7b7554 | 20448 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
20454 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20456 | (eval $ac_try) 2>&5 | |
20457 | ac_status=$? | |
20458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20459 | (exit $ac_status); }; }; then | |
20460 | ac_cv_type_long_long=yes | |
20461 | else | |
20462 | echo "$as_me: failed program was:" >&5 | |
20463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20464 | ||
20465 | ac_cv_type_long_long=no | |
20466 | fi | |
ac1cb8d3 | 20467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20468 | fi |
20469 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20470 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20471 | ||
20472 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20473 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20474 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20476 | else | |
20477 | if test "$ac_cv_type_long_long" = yes; then | |
20478 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20479 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20480 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20481 | # This bug is HP SR number 8606223364. | |
20482 | if test "$cross_compiling" = yes; then | |
20483 | # Depending upon the size, compute the lo and hi bounds. | |
20484 | cat >conftest.$ac_ext <<_ACEOF | |
20485 | /* confdefs.h. */ | |
20486 | _ACEOF | |
20487 | cat confdefs.h >>conftest.$ac_ext | |
20488 | cat >>conftest.$ac_ext <<_ACEOF | |
20489 | /* end confdefs.h. */ | |
20490 | $ac_includes_default | |
20491 | int | |
20492 | main () | |
20493 | { | |
20494 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20495 | test_array [0] = 0 | |
20496 | ||
20497 | ; | |
20498 | return 0; | |
20499 | } | |
20500 | _ACEOF | |
20501 | rm -f conftest.$ac_objext | |
20502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20503 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20504 | ac_status=$? |
ac1cb8d3 VS |
20505 | grep -v '^ *+' conftest.er1 >conftest.err |
20506 | rm -f conftest.er1 | |
20507 | cat conftest.err >&5 | |
a848cd7e SC |
20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20509 | (exit $ac_status); } && | |
5d7b7554 | 20510 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20512 | (eval $ac_try) 2>&5 | |
20513 | ac_status=$? | |
20514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20515 | (exit $ac_status); }; } && | |
20516 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20518 | (eval $ac_try) 2>&5 | |
20519 | ac_status=$? | |
20520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20521 | (exit $ac_status); }; }; then | |
20522 | ac_lo=0 ac_mid=0 | |
20523 | while :; do | |
20524 | cat >conftest.$ac_ext <<_ACEOF | |
20525 | /* confdefs.h. */ | |
20526 | _ACEOF | |
20527 | cat confdefs.h >>conftest.$ac_ext | |
20528 | cat >>conftest.$ac_ext <<_ACEOF | |
20529 | /* end confdefs.h. */ | |
20530 | $ac_includes_default | |
20531 | int | |
20532 | main () | |
20533 | { | |
20534 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20535 | test_array [0] = 0 | |
20536 | ||
20537 | ; | |
20538 | return 0; | |
20539 | } | |
20540 | _ACEOF | |
20541 | rm -f conftest.$ac_objext | |
20542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20543 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20544 | ac_status=$? |
ac1cb8d3 VS |
20545 | grep -v '^ *+' conftest.er1 >conftest.err |
20546 | rm -f conftest.er1 | |
20547 | cat conftest.err >&5 | |
a848cd7e SC |
20548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20549 | (exit $ac_status); } && | |
5d7b7554 | 20550 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20552 | (eval $ac_try) 2>&5 | |
20553 | ac_status=$? | |
20554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20555 | (exit $ac_status); }; } && | |
20556 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20558 | (eval $ac_try) 2>&5 | |
20559 | ac_status=$? | |
20560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20561 | (exit $ac_status); }; }; then | |
20562 | ac_hi=$ac_mid; break | |
20563 | else | |
20564 | echo "$as_me: failed program was:" >&5 | |
20565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20566 | ||
20567 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20568 | if test $ac_lo -le $ac_mid; then |
20569 | ac_lo= ac_hi= | |
20570 | break | |
20571 | fi | |
20572 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20573 | fi |
ac1cb8d3 | 20574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20575 | done |
20576 | else | |
20577 | echo "$as_me: failed program was:" >&5 | |
20578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20579 | ||
20580 | cat >conftest.$ac_ext <<_ACEOF | |
20581 | /* confdefs.h. */ | |
20582 | _ACEOF | |
20583 | cat confdefs.h >>conftest.$ac_ext | |
20584 | cat >>conftest.$ac_ext <<_ACEOF | |
20585 | /* end confdefs.h. */ | |
20586 | $ac_includes_default | |
20587 | int | |
20588 | main () | |
20589 | { | |
20590 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20591 | test_array [0] = 0 | |
20592 | ||
20593 | ; | |
20594 | return 0; | |
20595 | } | |
20596 | _ACEOF | |
20597 | rm -f conftest.$ac_objext | |
20598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20599 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20600 | ac_status=$? |
ac1cb8d3 VS |
20601 | grep -v '^ *+' conftest.er1 >conftest.err |
20602 | rm -f conftest.er1 | |
20603 | cat conftest.err >&5 | |
a848cd7e SC |
20604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20605 | (exit $ac_status); } && | |
5d7b7554 | 20606 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20608 | (eval $ac_try) 2>&5 | |
20609 | ac_status=$? | |
20610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20611 | (exit $ac_status); }; } && | |
20612 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20614 | (eval $ac_try) 2>&5 | |
20615 | ac_status=$? | |
20616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20617 | (exit $ac_status); }; }; then | |
20618 | ac_hi=-1 ac_mid=-1 | |
20619 | while :; do | |
20620 | cat >conftest.$ac_ext <<_ACEOF | |
20621 | /* confdefs.h. */ | |
20622 | _ACEOF | |
20623 | cat confdefs.h >>conftest.$ac_ext | |
20624 | cat >>conftest.$ac_ext <<_ACEOF | |
20625 | /* end confdefs.h. */ | |
20626 | $ac_includes_default | |
20627 | int | |
20628 | main () | |
20629 | { | |
20630 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20631 | test_array [0] = 0 | |
20632 | ||
20633 | ; | |
20634 | return 0; | |
20635 | } | |
20636 | _ACEOF | |
20637 | rm -f conftest.$ac_objext | |
20638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20639 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20640 | ac_status=$? |
ac1cb8d3 VS |
20641 | grep -v '^ *+' conftest.er1 >conftest.err |
20642 | rm -f conftest.er1 | |
20643 | cat conftest.err >&5 | |
a848cd7e SC |
20644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20645 | (exit $ac_status); } && | |
5d7b7554 | 20646 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20648 | (eval $ac_try) 2>&5 | |
20649 | ac_status=$? | |
20650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20651 | (exit $ac_status); }; } && | |
20652 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20654 | (eval $ac_try) 2>&5 | |
20655 | ac_status=$? | |
20656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20657 | (exit $ac_status); }; }; then | |
20658 | ac_lo=$ac_mid; break | |
20659 | else | |
20660 | echo "$as_me: failed program was:" >&5 | |
20661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20662 | ||
20663 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20664 | if test $ac_mid -le $ac_hi; then |
20665 | ac_lo= ac_hi= | |
20666 | break | |
20667 | fi | |
20668 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20669 | fi |
ac1cb8d3 | 20670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20671 | done |
20672 | else | |
20673 | echo "$as_me: failed program was:" >&5 | |
20674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20675 | ||
20676 | ac_lo= ac_hi= | |
20677 | fi | |
ac1cb8d3 | 20678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20679 | fi |
ac1cb8d3 | 20680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20681 | # Binary search between lo and hi bounds. |
20682 | while test "x$ac_lo" != "x$ac_hi"; do | |
20683 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20684 | cat >conftest.$ac_ext <<_ACEOF | |
20685 | /* confdefs.h. */ | |
20686 | _ACEOF | |
20687 | cat confdefs.h >>conftest.$ac_ext | |
20688 | cat >>conftest.$ac_ext <<_ACEOF | |
20689 | /* end confdefs.h. */ | |
20690 | $ac_includes_default | |
20691 | int | |
20692 | main () | |
20693 | { | |
20694 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20695 | test_array [0] = 0 | |
20696 | ||
20697 | ; | |
20698 | return 0; | |
20699 | } | |
20700 | _ACEOF | |
20701 | rm -f conftest.$ac_objext | |
20702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20703 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20704 | ac_status=$? |
ac1cb8d3 VS |
20705 | grep -v '^ *+' conftest.er1 >conftest.err |
20706 | rm -f conftest.er1 | |
20707 | cat conftest.err >&5 | |
a848cd7e SC |
20708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20709 | (exit $ac_status); } && | |
5d7b7554 | 20710 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20712 | (eval $ac_try) 2>&5 | |
20713 | ac_status=$? | |
20714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20715 | (exit $ac_status); }; } && | |
20716 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20718 | (eval $ac_try) 2>&5 | |
20719 | ac_status=$? | |
20720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20721 | (exit $ac_status); }; }; then | |
20722 | ac_hi=$ac_mid | |
20723 | else | |
20724 | echo "$as_me: failed program was:" >&5 | |
20725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20726 | ||
20727 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20728 | fi | |
ac1cb8d3 | 20729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20730 | done |
20731 | case $ac_lo in | |
20732 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20733 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20734 | See \`config.log' for more details." >&5 | |
20735 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20736 | See \`config.log' for more details." >&2;} | |
20737 | { (exit 1); exit 1; }; } ;; | |
20738 | esac | |
20739 | else | |
20740 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
20741 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20742 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20743 | { (exit 1); exit 1; }; } |
20744 | else | |
20745 | cat >conftest.$ac_ext <<_ACEOF | |
20746 | /* confdefs.h. */ | |
20747 | _ACEOF | |
20748 | cat confdefs.h >>conftest.$ac_ext | |
20749 | cat >>conftest.$ac_ext <<_ACEOF | |
20750 | /* end confdefs.h. */ | |
20751 | $ac_includes_default | |
20752 | long longval () { return (long) (sizeof (long long)); } | |
20753 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20754 | #include <stdio.h> | |
20755 | #include <stdlib.h> | |
20756 | int | |
20757 | main () | |
20758 | { | |
20759 | ||
20760 | FILE *f = fopen ("conftest.val", "w"); | |
20761 | if (! f) | |
20762 | exit (1); | |
20763 | if (((long) (sizeof (long long))) < 0) | |
20764 | { | |
20765 | long i = longval (); | |
20766 | if (i != ((long) (sizeof (long long)))) | |
20767 | exit (1); | |
20768 | fprintf (f, "%ld\n", i); | |
20769 | } | |
20770 | else | |
20771 | { | |
20772 | unsigned long i = ulongval (); | |
20773 | if (i != ((long) (sizeof (long long)))) | |
20774 | exit (1); | |
20775 | fprintf (f, "%lu\n", i); | |
20776 | } | |
20777 | exit (ferror (f) || fclose (f) != 0); | |
20778 | ||
20779 | ; | |
20780 | return 0; | |
20781 | } | |
20782 | _ACEOF | |
20783 | rm -f conftest$ac_exeext | |
20784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20785 | (eval $ac_link) 2>&5 | |
20786 | ac_status=$? | |
20787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20790 | (eval $ac_try) 2>&5 | |
20791 | ac_status=$? | |
20792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20793 | (exit $ac_status); }; }; then | |
20794 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20795 | else | |
20796 | echo "$as_me: program exited with status $ac_status" >&5 | |
20797 | echo "$as_me: failed program was:" >&5 | |
20798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20799 | ||
20800 | ( exit $ac_status ) | |
20801 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20802 | See \`config.log' for more details." >&5 | |
20803 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20804 | See \`config.log' for more details." >&2;} | |
20805 | { (exit 1); exit 1; }; } | |
20806 | fi | |
ac1cb8d3 | 20807 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20808 | fi |
20809 | fi | |
20810 | rm -f conftest.val | |
20811 | else | |
20812 | ac_cv_sizeof_long_long=0 | |
20813 | fi | |
20814 | fi | |
20815 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20816 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20817 | cat >>confdefs.h <<_ACEOF | |
20818 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20819 | _ACEOF | |
20820 | ||
20821 | ||
20822 | esac | |
20823 | ||
238ecede MW |
20824 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
20825 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
20826 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
20827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20828 | else | |
20829 | cat >conftest.$ac_ext <<_ACEOF | |
20830 | /* confdefs.h. */ | |
20831 | _ACEOF | |
20832 | cat confdefs.h >>conftest.$ac_ext | |
20833 | cat >>conftest.$ac_ext <<_ACEOF | |
20834 | /* end confdefs.h. */ | |
20835 | ||
83d8eb47 MW |
20836 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20837 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20838 | # error "fake wchar_t" |
20839 | #endif | |
20840 | #ifdef HAVE_WCHAR_H | |
20841 | # ifdef __CYGWIN__ | |
20842 | # include <stddef.h> | |
20843 | # endif | |
20844 | # include <wchar.h> | |
20845 | #endif | |
20846 | #ifdef HAVE_STDLIB_H | |
20847 | # include <stdlib.h> | |
20848 | #endif | |
20849 | #include <stdio.h> | |
20850 | ||
20851 | ||
20852 | ||
20853 | int | |
20854 | main () | |
20855 | { | |
20856 | if ((wchar_t *) 0) | |
20857 | return 0; | |
20858 | if (sizeof (wchar_t)) | |
20859 | return 0; | |
20860 | ; | |
20861 | return 0; | |
20862 | } | |
20863 | _ACEOF | |
20864 | rm -f conftest.$ac_objext | |
20865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20866 | (eval $ac_compile) 2>conftest.er1 | |
20867 | ac_status=$? | |
20868 | grep -v '^ *+' conftest.er1 >conftest.err | |
20869 | rm -f conftest.er1 | |
20870 | cat conftest.err >&5 | |
20871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20872 | (exit $ac_status); } && | |
5d7b7554 | 20873 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20875 | (eval $ac_try) 2>&5 | |
20876 | ac_status=$? | |
20877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20878 | (exit $ac_status); }; } && | |
20879 | { ac_try='test -s conftest.$ac_objext' | |
20880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20881 | (eval $ac_try) 2>&5 | |
20882 | ac_status=$? | |
20883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20884 | (exit $ac_status); }; }; then | |
20885 | ac_cv_type_wchar_t=yes | |
20886 | else | |
20887 | echo "$as_me: failed program was:" >&5 | |
20888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20889 | ||
20890 | ac_cv_type_wchar_t=no | |
20891 | fi | |
20892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20893 | fi | |
20894 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
20895 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
20896 | ||
a848cd7e SC |
20897 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
20898 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 20899 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
20900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20901 | else | |
238ecede MW |
20902 | if test "$ac_cv_type_wchar_t" = yes; then |
20903 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20904 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20905 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20906 | # This bug is HP SR number 8606223364. | |
20907 | if test "$cross_compiling" = yes; then | |
20908 | # Depending upon the size, compute the lo and hi bounds. | |
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> | |
20930 | ||
20931 | ||
20932 | ||
20933 | int | |
20934 | main () | |
20935 | { | |
20936 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
20937 | test_array [0] = 0 | |
20938 | ||
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); } && | |
5d7b7554 | 20952 | { ac_try='test -z "$ac_cxx_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_lo=0 ac_mid=0 | |
20965 | while :; do | |
20966 | cat >conftest.$ac_ext <<_ACEOF | |
20967 | /* confdefs.h. */ | |
20968 | _ACEOF | |
20969 | cat confdefs.h >>conftest.$ac_ext | |
20970 | cat >>conftest.$ac_ext <<_ACEOF | |
20971 | /* end confdefs.h. */ | |
20972 | ||
83d8eb47 MW |
20973 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20974 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20975 | # error "fake wchar_t" |
20976 | #endif | |
20977 | #ifdef HAVE_WCHAR_H | |
20978 | # ifdef __CYGWIN__ | |
20979 | # include <stddef.h> | |
20980 | # endif | |
20981 | # include <wchar.h> | |
20982 | #endif | |
20983 | #ifdef HAVE_STDLIB_H | |
20984 | # include <stdlib.h> | |
20985 | #endif | |
20986 | #include <stdio.h> | |
20987 | ||
20988 | ||
20989 | ||
20990 | int | |
20991 | main () | |
20992 | { | |
20993 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20994 | test_array [0] = 0 | |
20995 | ||
20996 | ; | |
20997 | return 0; | |
20998 | } | |
20999 | _ACEOF | |
21000 | rm -f conftest.$ac_objext | |
21001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21002 | (eval $ac_compile) 2>conftest.er1 | |
21003 | ac_status=$? | |
21004 | grep -v '^ *+' conftest.er1 >conftest.err | |
21005 | rm -f conftest.er1 | |
21006 | cat conftest.err >&5 | |
21007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21008 | (exit $ac_status); } && | |
5d7b7554 | 21009 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21011 | (eval $ac_try) 2>&5 | |
21012 | ac_status=$? | |
21013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21014 | (exit $ac_status); }; } && | |
21015 | { ac_try='test -s conftest.$ac_objext' | |
21016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21017 | (eval $ac_try) 2>&5 | |
21018 | ac_status=$? | |
21019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21020 | (exit $ac_status); }; }; then | |
21021 | ac_hi=$ac_mid; break | |
21022 | else | |
21023 | echo "$as_me: failed program was:" >&5 | |
21024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21025 | ||
21026 | ac_lo=`expr $ac_mid + 1` | |
21027 | if test $ac_lo -le $ac_mid; then | |
21028 | ac_lo= ac_hi= | |
21029 | break | |
21030 | fi | |
21031 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21032 | fi | |
21033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21034 | done | |
21035 | else | |
21036 | echo "$as_me: failed program was:" >&5 | |
21037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21038 | ||
21039 | cat >conftest.$ac_ext <<_ACEOF | |
21040 | /* confdefs.h. */ | |
21041 | _ACEOF | |
21042 | cat confdefs.h >>conftest.$ac_ext | |
21043 | cat >>conftest.$ac_ext <<_ACEOF | |
21044 | /* end confdefs.h. */ | |
21045 | ||
83d8eb47 MW |
21046 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21047 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21048 | # error "fake wchar_t" |
21049 | #endif | |
21050 | #ifdef HAVE_WCHAR_H | |
21051 | # ifdef __CYGWIN__ | |
21052 | # include <stddef.h> | |
21053 | # endif | |
21054 | # include <wchar.h> | |
21055 | #endif | |
21056 | #ifdef HAVE_STDLIB_H | |
21057 | # include <stdlib.h> | |
21058 | #endif | |
21059 | #include <stdio.h> | |
21060 | ||
21061 | ||
21062 | ||
21063 | int | |
21064 | main () | |
21065 | { | |
21066 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
21067 | test_array [0] = 0 | |
21068 | ||
21069 | ; | |
21070 | return 0; | |
21071 | } | |
21072 | _ACEOF | |
21073 | rm -f conftest.$ac_objext | |
21074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21075 | (eval $ac_compile) 2>conftest.er1 | |
21076 | ac_status=$? | |
21077 | grep -v '^ *+' conftest.er1 >conftest.err | |
21078 | rm -f conftest.er1 | |
21079 | cat conftest.err >&5 | |
21080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21081 | (exit $ac_status); } && | |
5d7b7554 | 21082 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21084 | (eval $ac_try) 2>&5 | |
21085 | ac_status=$? | |
21086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21087 | (exit $ac_status); }; } && | |
21088 | { ac_try='test -s conftest.$ac_objext' | |
21089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21090 | (eval $ac_try) 2>&5 | |
21091 | ac_status=$? | |
21092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21093 | (exit $ac_status); }; }; then | |
21094 | ac_hi=-1 ac_mid=-1 | |
21095 | while :; do | |
21096 | cat >conftest.$ac_ext <<_ACEOF | |
21097 | /* confdefs.h. */ | |
21098 | _ACEOF | |
21099 | cat confdefs.h >>conftest.$ac_ext | |
21100 | cat >>conftest.$ac_ext <<_ACEOF | |
21101 | /* end confdefs.h. */ | |
21102 | ||
83d8eb47 MW |
21103 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21104 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21105 | # error "fake wchar_t" |
21106 | #endif | |
21107 | #ifdef HAVE_WCHAR_H | |
21108 | # ifdef __CYGWIN__ | |
21109 | # include <stddef.h> | |
21110 | # endif | |
21111 | # include <wchar.h> | |
21112 | #endif | |
21113 | #ifdef HAVE_STDLIB_H | |
21114 | # include <stdlib.h> | |
21115 | #endif | |
21116 | #include <stdio.h> | |
21117 | ||
21118 | ||
21119 | ||
21120 | int | |
21121 | main () | |
21122 | { | |
21123 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
21124 | test_array [0] = 0 | |
21125 | ||
21126 | ; | |
21127 | return 0; | |
21128 | } | |
21129 | _ACEOF | |
21130 | rm -f conftest.$ac_objext | |
21131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21132 | (eval $ac_compile) 2>conftest.er1 | |
21133 | ac_status=$? | |
21134 | grep -v '^ *+' conftest.er1 >conftest.err | |
21135 | rm -f conftest.er1 | |
21136 | cat conftest.err >&5 | |
21137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21138 | (exit $ac_status); } && | |
5d7b7554 | 21139 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21141 | (eval $ac_try) 2>&5 | |
21142 | ac_status=$? | |
21143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21144 | (exit $ac_status); }; } && | |
21145 | { ac_try='test -s conftest.$ac_objext' | |
21146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21147 | (eval $ac_try) 2>&5 | |
21148 | ac_status=$? | |
21149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21150 | (exit $ac_status); }; }; then | |
21151 | ac_lo=$ac_mid; break | |
21152 | else | |
21153 | echo "$as_me: failed program was:" >&5 | |
21154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21155 | ||
21156 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
21157 | if test $ac_mid -le $ac_hi; then | |
21158 | ac_lo= ac_hi= | |
21159 | break | |
21160 | fi | |
21161 | ac_mid=`expr 2 '*' $ac_mid` | |
21162 | fi | |
21163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21164 | done | |
21165 | else | |
21166 | echo "$as_me: failed program was:" >&5 | |
21167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21168 | ||
21169 | ac_lo= ac_hi= | |
21170 | fi | |
21171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21172 | fi | |
21173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21174 | # Binary search between lo and hi bounds. | |
21175 | while test "x$ac_lo" != "x$ac_hi"; do | |
21176 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21177 | cat >conftest.$ac_ext <<_ACEOF | |
21178 | /* confdefs.h. */ | |
21179 | _ACEOF | |
21180 | cat confdefs.h >>conftest.$ac_ext | |
21181 | cat >>conftest.$ac_ext <<_ACEOF | |
21182 | /* end confdefs.h. */ | |
21183 | ||
83d8eb47 MW |
21184 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21185 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21186 | # error "fake wchar_t" |
21187 | #endif | |
21188 | #ifdef HAVE_WCHAR_H | |
21189 | # ifdef __CYGWIN__ | |
21190 | # include <stddef.h> | |
21191 | # endif | |
21192 | # include <wchar.h> | |
21193 | #endif | |
21194 | #ifdef HAVE_STDLIB_H | |
21195 | # include <stdlib.h> | |
21196 | #endif | |
21197 | #include <stdio.h> | |
a848cd7e | 21198 | |
a848cd7e | 21199 | |
a848cd7e | 21200 | |
238ecede MW |
21201 | int |
21202 | main () | |
21203 | { | |
21204 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21205 | test_array [0] = 0 | |
a848cd7e | 21206 | |
238ecede MW |
21207 | ; |
21208 | return 0; | |
21209 | } | |
21210 | _ACEOF | |
21211 | rm -f conftest.$ac_objext | |
21212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21213 | (eval $ac_compile) 2>conftest.er1 | |
21214 | ac_status=$? | |
21215 | grep -v '^ *+' conftest.er1 >conftest.err | |
21216 | rm -f conftest.er1 | |
21217 | cat conftest.err >&5 | |
21218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21219 | (exit $ac_status); } && | |
5d7b7554 | 21220 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21222 | (eval $ac_try) 2>&5 | |
21223 | ac_status=$? | |
21224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21225 | (exit $ac_status); }; } && | |
21226 | { ac_try='test -s conftest.$ac_objext' | |
21227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21228 | (eval $ac_try) 2>&5 | |
21229 | ac_status=$? | |
21230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21231 | (exit $ac_status); }; }; then | |
21232 | ac_hi=$ac_mid | |
21233 | else | |
21234 | echo "$as_me: failed program was:" >&5 | |
21235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21236 | ||
21237 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21238 | fi | |
21239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21240 | done | |
21241 | case $ac_lo in | |
21242 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
21243 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
21244 | See \`config.log' for more details." >&5 | |
21245 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21246 | See \`config.log' for more details." >&2;} | |
21247 | { (exit 1); exit 1; }; } ;; | |
21248 | esac | |
21249 | else | |
21250 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
21251 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21252 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 21253 | { (exit 1); exit 1; }; } |
a848cd7e SC |
21254 | else |
21255 | cat >conftest.$ac_ext <<_ACEOF | |
21256 | /* confdefs.h. */ | |
21257 | _ACEOF | |
21258 | cat confdefs.h >>conftest.$ac_ext | |
21259 | cat >>conftest.$ac_ext <<_ACEOF | |
21260 | /* end confdefs.h. */ | |
21261 | ||
83d8eb47 MW |
21262 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21263 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21264 | # error "fake wchar_t" |
21265 | #endif | |
21266 | #ifdef HAVE_WCHAR_H | |
21267 | # ifdef __CYGWIN__ | |
21268 | # include <stddef.h> | |
21269 | # endif | |
21270 | # include <wchar.h> | |
21271 | #endif | |
21272 | #ifdef HAVE_STDLIB_H | |
21273 | # include <stdlib.h> | |
21274 | #endif | |
21275 | #include <stdio.h> | |
21276 | ||
21277 | ||
21278 | ||
21279 | long longval () { return (long) (sizeof (wchar_t)); } | |
21280 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21281 | #include <stdio.h> | |
21282 | #include <stdlib.h> | |
21283 | int | |
21284 | main () | |
21285 | { | |
a848cd7e | 21286 | |
238ecede MW |
21287 | FILE *f = fopen ("conftest.val", "w"); |
21288 | if (! f) | |
21289 | exit (1); | |
21290 | if (((long) (sizeof (wchar_t))) < 0) | |
21291 | { | |
21292 | long i = longval (); | |
21293 | if (i != ((long) (sizeof (wchar_t)))) | |
21294 | exit (1); | |
21295 | fprintf (f, "%ld\n", i); | |
21296 | } | |
21297 | else | |
21298 | { | |
21299 | unsigned long i = ulongval (); | |
21300 | if (i != ((long) (sizeof (wchar_t)))) | |
21301 | exit (1); | |
21302 | fprintf (f, "%lu\n", i); | |
21303 | } | |
21304 | exit (ferror (f) || fclose (f) != 0); | |
21305 | ||
21306 | ; | |
21307 | return 0; | |
21308 | } | |
a848cd7e SC |
21309 | _ACEOF |
21310 | rm -f conftest$ac_exeext | |
21311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21312 | (eval $ac_link) 2>&5 | |
21313 | ac_status=$? | |
21314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21315 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21317 | (eval $ac_try) 2>&5 | |
21318 | ac_status=$? | |
21319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21320 | (exit $ac_status); }; }; then | |
238ecede | 21321 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
21322 | else |
21323 | echo "$as_me: program exited with status $ac_status" >&5 | |
21324 | echo "$as_me: failed program was:" >&5 | |
21325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21326 | ||
21327 | ( exit $ac_status ) | |
238ecede MW |
21328 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
21329 | See \`config.log' for more details." >&5 | |
21330 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21331 | See \`config.log' for more details." >&2;} | |
21332 | { (exit 1); exit 1; }; } | |
a848cd7e | 21333 | fi |
ac1cb8d3 | 21334 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21335 | fi |
a848cd7e | 21336 | fi |
238ecede MW |
21337 | rm -f conftest.val |
21338 | else | |
21339 | ac_cv_sizeof_wchar_t=0 | |
21340 | fi | |
21341 | fi | |
21342 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
21343 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 21344 | cat >>confdefs.h <<_ACEOF |
238ecede | 21345 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
21346 | _ACEOF |
21347 | ||
21348 | ||
47a7e797 MW |
21349 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
21350 | wxUSE_WCHAR_T=yes | |
21351 | else | |
21352 | wxUSE_WCHAR_T=no | |
21353 | fi | |
238ecede | 21354 | |
ba3d13e1 VZ |
21355 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
21356 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
21357 | if test "${wx_cv_func_va_copy+set}" = set; then | |
21358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21359 | else | |
21360 | ||
21361 | cat >conftest.$ac_ext <<_ACEOF | |
21362 | ||
21363 | #include <stdarg.h> | |
21364 | void foo(char *f, ...) | |
21365 | { | |
21366 | va_list ap1, ap2; | |
21367 | va_start(ap1, f); | |
21368 | va_copy(ap2, ap1); | |
21369 | va_end(ap2); | |
21370 | va_end(ap1); | |
21371 | } | |
5886b072 VZ |
21372 | int main() |
21373 | { | |
b902e639 VZ |
21374 | foo("hi", 17); |
21375 | return 0; | |
5886b072 | 21376 | } |
ba3d13e1 VZ |
21377 | _ACEOF |
21378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21380 | (eval $ac_link) 2>conftest.er1 | |
21381 | ac_status=$? | |
21382 | grep -v '^ *+' conftest.er1 >conftest.err | |
21383 | rm -f conftest.er1 | |
21384 | cat conftest.err >&5 | |
21385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21386 | (exit $ac_status); } && | |
5d7b7554 | 21387 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
21388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21389 | (eval $ac_try) 2>&5 | |
21390 | ac_status=$? | |
21391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21392 | (exit $ac_status); }; } && | |
21393 | { ac_try='test -s conftest$ac_exeext' | |
21394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21395 | (eval $ac_try) 2>&5 | |
21396 | ac_status=$? | |
21397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21398 | (exit $ac_status); }; }; then | |
21399 | wx_cv_func_va_copy=yes | |
21400 | else | |
21401 | echo "$as_me: failed program was:" >&5 | |
21402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21403 | ||
21404 | wx_cv_func_va_copy=no | |
21405 | ||
21406 | fi | |
21407 | rm -f conftest.err conftest.$ac_objext \ | |
21408 | conftest$ac_exeext conftest.$ac_ext | |
21409 | ||
21410 | ||
21411 | fi | |
21412 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
21413 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
21414 | ||
21415 | if test $wx_cv_func_va_copy = "yes"; then | |
21416 | cat >>confdefs.h <<\_ACEOF | |
21417 | #define HAVE_VA_COPY 1 | |
21418 | _ACEOF | |
21419 | ||
21420 | else | |
21421 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
21422 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
21423 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
21424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21425 | else | |
21426 | ||
21427 | if test "$cross_compiling" = yes; then | |
21428 | wx_cv_type_va_list_lvalue=yes | |
21429 | ||
21430 | else | |
21431 | cat >conftest.$ac_ext <<_ACEOF | |
21432 | ||
21433 | #include <stdarg.h> | |
21434 | int foo(char *f, ...) | |
21435 | { | |
21436 | va_list ap1, ap2; | |
21437 | va_start(ap1, f); | |
21438 | ap2 = ap1; | |
21439 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
21440 | return 1; | |
21441 | va_end(ap2); | |
21442 | va_end(ap1); | |
21443 | return 0; | |
21444 | } | |
21445 | int main() | |
21446 | { | |
21447 | return foo("hi", 17); | |
21448 | } | |
21449 | _ACEOF | |
21450 | rm -f conftest$ac_exeext | |
21451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21452 | (eval $ac_link) 2>&5 | |
21453 | ac_status=$? | |
21454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21455 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21457 | (eval $ac_try) 2>&5 | |
21458 | ac_status=$? | |
21459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21460 | (exit $ac_status); }; }; then | |
21461 | wx_cv_type_va_list_lvalue=yes | |
21462 | else | |
21463 | echo "$as_me: program exited with status $ac_status" >&5 | |
21464 | echo "$as_me: failed program was:" >&5 | |
21465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21466 | ||
21467 | ( exit $ac_status ) | |
21468 | wx_cv_type_va_list_lvalue=no | |
21469 | fi | |
21470 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21471 | fi | |
21472 | ||
21473 | ||
21474 | fi | |
21475 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
21476 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
21477 | ||
21478 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
21479 | cat >>confdefs.h <<\_ACEOF | |
21480 | #define VA_LIST_IS_ARRAY 1 | |
21481 | _ACEOF | |
21482 | ||
21483 | fi | |
21484 | fi | |
21485 | ||
a848cd7e SC |
21486 | # Check whether --enable-largefile or --disable-largefile was given. |
21487 | if test "${enable_largefile+set}" = set; then | |
21488 | enableval="$enable_largefile" | |
21489 | ||
21490 | fi; | |
21491 | if test "$enable_largefile" != no; then | |
21492 | wx_largefile=no | |
21493 | ||
21494 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
21495 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
21496 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
21497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21498 | else | |
21499 | ||
21500 | cat >conftest.$ac_ext <<_ACEOF | |
21501 | /* confdefs.h. */ | |
21502 | _ACEOF | |
21503 | cat confdefs.h >>conftest.$ac_ext | |
21504 | cat >>conftest.$ac_ext <<_ACEOF | |
21505 | /* end confdefs.h. */ | |
21506 | #define _FILE_OFFSET_BITS 64 | |
21507 | #include <sys/types.h> | |
21508 | int | |
21509 | main () | |
21510 | { | |
21511 | typedef struct { | |
21512 | unsigned int field: sizeof(off_t) == 8; | |
21513 | } wxlf; | |
21514 | ||
21515 | ; | |
21516 | return 0; | |
21517 | } | |
21518 | _ACEOF | |
21519 | rm -f conftest.$ac_objext | |
21520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21521 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21522 | ac_status=$? |
ac1cb8d3 VS |
21523 | grep -v '^ *+' conftest.er1 >conftest.err |
21524 | rm -f conftest.er1 | |
21525 | cat conftest.err >&5 | |
a848cd7e SC |
21526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21527 | (exit $ac_status); } && | |
5d7b7554 | 21528 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21530 | (eval $ac_try) 2>&5 | |
21531 | ac_status=$? | |
21532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21533 | (exit $ac_status); }; } && | |
21534 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21536 | (eval $ac_try) 2>&5 | |
21537 | ac_status=$? | |
21538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21539 | (exit $ac_status); }; }; then | |
21540 | ac_cv_sys_file_offset_bits=64 | |
21541 | else | |
21542 | echo "$as_me: failed program was:" >&5 | |
21543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21544 | ||
21545 | ac_cv_sys_file_offset_bits=no | |
21546 | fi | |
ac1cb8d3 | 21547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21548 | |
21549 | ||
21550 | fi | |
21551 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
21552 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21553 | ||
21554 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
21555 | wx_largefile=yes | |
21556 | cat >>confdefs.h <<_ACEOF | |
21557 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
21558 | _ACEOF | |
21559 | ||
21560 | fi | |
21561 | ||
21562 | if test "x$wx_largefile" != "xyes"; then | |
21563 | ||
21564 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
21565 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
21566 | if test "${ac_cv_sys_large_files+set}" = set; then | |
21567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21568 | else | |
21569 | ||
21570 | cat >conftest.$ac_ext <<_ACEOF | |
21571 | /* confdefs.h. */ | |
21572 | _ACEOF | |
21573 | cat confdefs.h >>conftest.$ac_ext | |
21574 | cat >>conftest.$ac_ext <<_ACEOF | |
21575 | /* end confdefs.h. */ | |
21576 | #define _LARGE_FILES 1 | |
21577 | #include <sys/types.h> | |
21578 | int | |
21579 | main () | |
21580 | { | |
21581 | typedef struct { | |
21582 | unsigned int field: sizeof(off_t) == 8; | |
21583 | } wxlf; | |
21584 | ||
21585 | ; | |
21586 | return 0; | |
21587 | } | |
21588 | _ACEOF | |
21589 | rm -f conftest.$ac_objext | |
21590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21591 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21592 | ac_status=$? |
ac1cb8d3 VS |
21593 | grep -v '^ *+' conftest.er1 >conftest.err |
21594 | rm -f conftest.er1 | |
21595 | cat conftest.err >&5 | |
a848cd7e SC |
21596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21597 | (exit $ac_status); } && | |
5d7b7554 | 21598 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21600 | (eval $ac_try) 2>&5 | |
21601 | ac_status=$? | |
21602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21603 | (exit $ac_status); }; } && | |
21604 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21606 | (eval $ac_try) 2>&5 | |
21607 | ac_status=$? | |
21608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21609 | (exit $ac_status); }; }; then | |
21610 | ac_cv_sys_large_files=1 | |
21611 | else | |
21612 | echo "$as_me: failed program was:" >&5 | |
21613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21614 | ||
21615 | ac_cv_sys_large_files=no | |
21616 | fi | |
ac1cb8d3 | 21617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21618 | |
21619 | ||
21620 | fi | |
21621 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
21622 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
21623 | ||
21624 | if test "$ac_cv_sys_large_files" != no; then | |
21625 | wx_largefile=yes | |
21626 | cat >>confdefs.h <<_ACEOF | |
21627 | #define _LARGE_FILES $ac_cv_sys_large_files | |
21628 | _ACEOF | |
21629 | ||
21630 | fi | |
21631 | ||
21632 | fi | |
21633 | ||
21634 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
21635 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21636 | if test "x$wx_largefile" = "xyes"; then | |
21637 | cat >>confdefs.h <<\_ACEOF | |
21638 | #define HAVE_LARGEFILE_SUPPORT 1 | |
21639 | _ACEOF | |
21640 | ||
21641 | fi | |
21642 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
21643 | echo "${ECHO_T}$wx_largefile" >&6 | |
21644 | fi | |
21645 | ||
5b674b9d DE |
21646 | |
21647 | if test "x$wx_largefile" = "xyes"; then | |
21648 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 21649 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
21650 | |
21651 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
21652 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
21653 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
21654 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
21655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21656 | else | |
21657 | ||
00421666 MW |
21658 | cat >conftest.$ac_ext <<_ACEOF |
21659 | /* confdefs.h. */ | |
21660 | _ACEOF | |
21661 | cat confdefs.h >>conftest.$ac_ext | |
21662 | cat >>conftest.$ac_ext <<_ACEOF | |
21663 | /* end confdefs.h. */ | |
21664 | ||
21665 | int | |
21666 | main () | |
21667 | { | |
21668 | ||
21669 | #ifndef __STDC_EXT__ | |
21670 | choke me | |
21671 | #endif | |
21672 | ||
21673 | ; | |
21674 | return 0; | |
21675 | } | |
21676 | _ACEOF | |
21677 | rm -f conftest.$ac_objext | |
21678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21679 | (eval $ac_compile) 2>conftest.er1 | |
21680 | ac_status=$? | |
21681 | grep -v '^ *+' conftest.er1 >conftest.err | |
21682 | rm -f conftest.er1 | |
21683 | cat conftest.err >&5 | |
21684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21685 | (exit $ac_status); } && | |
5d7b7554 | 21686 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
00421666 MW |
21687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21688 | (eval $ac_try) 2>&5 | |
21689 | ac_status=$? | |
21690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21691 | (exit $ac_status); }; } && | |
21692 | { ac_try='test -s conftest.$ac_objext' | |
21693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21694 | (eval $ac_try) 2>&5 | |
21695 | ac_status=$? | |
21696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21697 | (exit $ac_status); }; }; then | |
21698 | wx_cv_STDC_EXT_required=no | |
21699 | else | |
21700 | echo "$as_me: failed program was:" >&5 | |
21701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21702 | ||
21703 | wx_cv_STDC_EXT_required=yes | |
21704 | ||
21705 | fi | |
21706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
00421666 MW |
21707 | |
21708 | ||
21709 | fi | |
21710 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
21711 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
21712 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 21713 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
21714 | fi |
21715 | fi | |
5b674b9d | 21716 | else |
5ff751d6 | 21717 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
21718 | fi |
21719 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
21720 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
21721 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
21722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21723 | else | |
21724 | while :; do | |
21725 | ac_cv_sys_largefile_source=no | |
21726 | cat >conftest.$ac_ext <<_ACEOF | |
21727 | /* confdefs.h. */ | |
21728 | _ACEOF | |
21729 | cat confdefs.h >>conftest.$ac_ext | |
21730 | cat >>conftest.$ac_ext <<_ACEOF | |
21731 | /* end confdefs.h. */ | |
21732 | #include <stdio.h> | |
21733 | int | |
21734 | main () | |
21735 | { | |
21736 | return !fseeko; | |
21737 | ; | |
21738 | return 0; | |
21739 | } | |
21740 | _ACEOF | |
21741 | rm -f conftest.$ac_objext | |
21742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21743 | (eval $ac_compile) 2>conftest.er1 | |
21744 | ac_status=$? | |
21745 | grep -v '^ *+' conftest.er1 >conftest.err | |
21746 | rm -f conftest.er1 | |
21747 | cat conftest.err >&5 | |
21748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21749 | (exit $ac_status); } && | |
5d7b7554 | 21750 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21752 | (eval $ac_try) 2>&5 | |
21753 | ac_status=$? | |
21754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21755 | (exit $ac_status); }; } && | |
21756 | { ac_try='test -s conftest.$ac_objext' | |
21757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21758 | (eval $ac_try) 2>&5 | |
21759 | ac_status=$? | |
21760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21761 | (exit $ac_status); }; }; then | |
21762 | break | |
21763 | else | |
21764 | echo "$as_me: failed program was:" >&5 | |
21765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21766 | ||
21767 | fi | |
21768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21769 | cat >conftest.$ac_ext <<_ACEOF | |
21770 | /* confdefs.h. */ | |
21771 | _ACEOF | |
21772 | cat confdefs.h >>conftest.$ac_ext | |
21773 | cat >>conftest.$ac_ext <<_ACEOF | |
21774 | /* end confdefs.h. */ | |
21775 | #define _LARGEFILE_SOURCE 1 | |
21776 | #include <stdio.h> | |
21777 | int | |
21778 | main () | |
21779 | { | |
21780 | return !fseeko; | |
21781 | ; | |
21782 | return 0; | |
21783 | } | |
21784 | _ACEOF | |
21785 | rm -f conftest.$ac_objext | |
21786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21787 | (eval $ac_compile) 2>conftest.er1 | |
21788 | ac_status=$? | |
21789 | grep -v '^ *+' conftest.er1 >conftest.err | |
21790 | rm -f conftest.er1 | |
21791 | cat conftest.err >&5 | |
21792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21793 | (exit $ac_status); } && | |
5d7b7554 | 21794 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21796 | (eval $ac_try) 2>&5 | |
21797 | ac_status=$? | |
21798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21799 | (exit $ac_status); }; } && | |
21800 | { ac_try='test -s conftest.$ac_objext' | |
21801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21802 | (eval $ac_try) 2>&5 | |
21803 | ac_status=$? | |
21804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21805 | (exit $ac_status); }; }; then | |
21806 | ac_cv_sys_largefile_source=1; break | |
21807 | else | |
21808 | echo "$as_me: failed program was:" >&5 | |
21809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21810 | ||
21811 | fi | |
21812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21813 | break | |
21814 | done | |
21815 | fi | |
21816 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
21817 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
21818 | if test "$ac_cv_sys_largefile_source" != no; then | |
21819 | ||
21820 | cat >>confdefs.h <<_ACEOF | |
21821 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
21822 | _ACEOF | |
21823 | ||
21824 | fi | |
21825 | rm -f conftest* | |
21826 | ||
21827 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
21828 | # in glibc 2.1.3, but that breaks too many other things. | |
21829 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
21830 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
21831 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
21832 | if test "${ac_cv_func_fseeko+set}" = set; then | |
21833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21834 | else | |
21835 | cat >conftest.$ac_ext <<_ACEOF | |
21836 | /* confdefs.h. */ | |
21837 | _ACEOF | |
21838 | cat confdefs.h >>conftest.$ac_ext | |
21839 | cat >>conftest.$ac_ext <<_ACEOF | |
21840 | /* end confdefs.h. */ | |
21841 | #include <stdio.h> | |
21842 | int | |
21843 | main () | |
21844 | { | |
21845 | return fseeko && fseeko (stdin, 0, 0); | |
21846 | ; | |
21847 | return 0; | |
21848 | } | |
21849 | _ACEOF | |
21850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21852 | (eval $ac_link) 2>conftest.er1 | |
21853 | ac_status=$? | |
21854 | grep -v '^ *+' conftest.er1 >conftest.err | |
21855 | rm -f conftest.er1 | |
21856 | cat conftest.err >&5 | |
21857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21858 | (exit $ac_status); } && | |
5d7b7554 | 21859 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21861 | (eval $ac_try) 2>&5 | |
21862 | ac_status=$? | |
21863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21864 | (exit $ac_status); }; } && | |
21865 | { ac_try='test -s conftest$ac_exeext' | |
21866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21867 | (eval $ac_try) 2>&5 | |
21868 | ac_status=$? | |
21869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21870 | (exit $ac_status); }; }; then | |
21871 | ac_cv_func_fseeko=yes | |
21872 | else | |
21873 | echo "$as_me: failed program was:" >&5 | |
21874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21875 | ||
21876 | ac_cv_func_fseeko=no | |
21877 | fi | |
21878 | rm -f conftest.err conftest.$ac_objext \ | |
21879 | conftest$ac_exeext conftest.$ac_ext | |
21880 | fi | |
21881 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
21882 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
21883 | if test $ac_cv_func_fseeko = yes; then | |
21884 | ||
21885 | cat >>confdefs.h <<\_ACEOF | |
21886 | #define HAVE_FSEEKO 1 | |
21887 | _ACEOF | |
21888 | ||
21889 | fi | |
21890 | ||
5b674b9d | 21891 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 21892 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 21893 | fi |
a848cd7e SC |
21894 | fi |
21895 | ||
21896 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
21897 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
21898 | if test "${ac_cv_c_bigendian+set}" = set; then | |
21899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21900 | else | |
21901 | ac_cv_c_bigendian=unknown | |
21902 | # See if sys/param.h defines the BYTE_ORDER macro. | |
21903 | cat >conftest.$ac_ext <<_ACEOF | |
21904 | /* confdefs.h. */ | |
21905 | _ACEOF | |
21906 | cat confdefs.h >>conftest.$ac_ext | |
21907 | cat >>conftest.$ac_ext <<_ACEOF | |
21908 | /* end confdefs.h. */ | |
21909 | #include <sys/types.h> | |
21910 | #include <sys/param.h> | |
21911 | int | |
21912 | main () | |
21913 | { | |
21914 | ||
21915 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
21916 | bogus endian macros | |
21917 | #endif | |
21918 | ; | |
21919 | return 0; | |
21920 | } | |
21921 | _ACEOF | |
21922 | rm -f conftest.$ac_objext | |
21923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21924 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21925 | ac_status=$? |
ac1cb8d3 VS |
21926 | grep -v '^ *+' conftest.er1 >conftest.err |
21927 | rm -f conftest.er1 | |
21928 | cat conftest.err >&5 | |
a848cd7e SC |
21929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21930 | (exit $ac_status); } && | |
5d7b7554 | 21931 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21933 | (eval $ac_try) 2>&5 | |
21934 | ac_status=$? | |
21935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21936 | (exit $ac_status); }; } && | |
21937 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21939 | (eval $ac_try) 2>&5 | |
21940 | ac_status=$? | |
21941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21942 | (exit $ac_status); }; }; then | |
21943 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
21944 | cat >conftest.$ac_ext <<_ACEOF | |
21945 | /* confdefs.h. */ | |
21946 | _ACEOF | |
21947 | cat confdefs.h >>conftest.$ac_ext | |
21948 | cat >>conftest.$ac_ext <<_ACEOF | |
21949 | /* end confdefs.h. */ | |
21950 | #include <sys/types.h> | |
21951 | #include <sys/param.h> | |
21952 | int | |
21953 | main () | |
21954 | { | |
21955 | ||
21956 | #if BYTE_ORDER != BIG_ENDIAN | |
21957 | not big endian | |
21958 | #endif | |
21959 | ; | |
21960 | return 0; | |
21961 | } | |
21962 | _ACEOF | |
21963 | rm -f conftest.$ac_objext | |
21964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21965 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21966 | ac_status=$? |
ac1cb8d3 VS |
21967 | grep -v '^ *+' conftest.er1 >conftest.err |
21968 | rm -f conftest.er1 | |
21969 | cat conftest.err >&5 | |
a848cd7e SC |
21970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21971 | (exit $ac_status); } && | |
5d7b7554 | 21972 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21974 | (eval $ac_try) 2>&5 | |
21975 | ac_status=$? | |
21976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21977 | (exit $ac_status); }; } && | |
21978 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21980 | (eval $ac_try) 2>&5 | |
21981 | ac_status=$? | |
21982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21983 | (exit $ac_status); }; }; then | |
21984 | ac_cv_c_bigendian=yes | |
21985 | else | |
21986 | echo "$as_me: failed program was:" >&5 | |
21987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21988 | ||
21989 | ac_cv_c_bigendian=no | |
21990 | fi | |
ac1cb8d3 | 21991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21992 | else |
21993 | echo "$as_me: failed program was:" >&5 | |
21994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21995 | ||
21996 | fi | |
ac1cb8d3 | 21997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21998 | if test $ac_cv_c_bigendian = unknown; then |
21999 | if test "$cross_compiling" = yes; then | |
22000 | ac_cv_c_bigendian=unknown | |
22001 | else | |
22002 | cat >conftest.$ac_ext <<_ACEOF | |
22003 | /* confdefs.h. */ | |
22004 | _ACEOF | |
22005 | cat confdefs.h >>conftest.$ac_ext | |
22006 | cat >>conftest.$ac_ext <<_ACEOF | |
22007 | /* end confdefs.h. */ | |
22008 | main () { | |
22009 | /* Are we little or big endian? From Harbison&Steele. */ | |
22010 | union | |
22011 | { | |
22012 | long l; | |
22013 | char c[sizeof (long)]; | |
22014 | } u; | |
22015 | u.l = 1; | |
22016 | exit (u.c[sizeof (long) - 1] == 1); | |
22017 | } | |
22018 | _ACEOF | |
22019 | rm -f conftest$ac_exeext | |
22020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22021 | (eval $ac_link) 2>&5 | |
22022 | ac_status=$? | |
22023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22024 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22026 | (eval $ac_try) 2>&5 | |
22027 | ac_status=$? | |
22028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22029 | (exit $ac_status); }; }; then | |
22030 | ac_cv_c_bigendian=no | |
22031 | else | |
22032 | echo "$as_me: program exited with status $ac_status" >&5 | |
22033 | echo "$as_me: failed program was:" >&5 | |
22034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22035 | ||
22036 | ( exit $ac_status ) | |
22037 | ac_cv_c_bigendian=yes | |
22038 | fi | |
ac1cb8d3 | 22039 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22040 | fi |
22041 | fi | |
22042 | fi | |
22043 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
22044 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
22045 | if test $ac_cv_c_bigendian = unknown; then | |
22046 | { 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 | |
22047 | 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;} | |
22048 | fi | |
22049 | if test $ac_cv_c_bigendian = yes; then | |
22050 | cat >>confdefs.h <<\_ACEOF | |
22051 | #define WORDS_BIGENDIAN 1 | |
22052 | _ACEOF | |
22053 | ||
22054 | fi | |
22055 | ||
22056 | ||
a848cd7e SC |
22057 | |
22058 | ||
22059 | ||
22060 | ac_ext=cc | |
22061 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22062 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22063 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22064 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22065 | ||
22066 | ||
22067 | ||
22068 | for ac_header in iostream | |
22069 | do | |
22070 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22072 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22076 | fi | |
22077 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22078 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22079 | else | |
22080 | # Is the header compilable? | |
22081 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22082 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22083 | cat >conftest.$ac_ext <<_ACEOF | |
22084 | /* confdefs.h. */ | |
22085 | _ACEOF | |
22086 | cat confdefs.h >>conftest.$ac_ext | |
22087 | cat >>conftest.$ac_ext <<_ACEOF | |
22088 | /* end confdefs.h. */ | |
22089 | $ac_includes_default | |
22090 | #include <$ac_header> | |
22091 | _ACEOF | |
22092 | rm -f conftest.$ac_objext | |
22093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22094 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22095 | ac_status=$? |
ac1cb8d3 VS |
22096 | grep -v '^ *+' conftest.er1 >conftest.err |
22097 | rm -f conftest.er1 | |
22098 | cat conftest.err >&5 | |
a848cd7e SC |
22099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22100 | (exit $ac_status); } && | |
5d7b7554 | 22101 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22103 | (eval $ac_try) 2>&5 | |
22104 | ac_status=$? | |
22105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22106 | (exit $ac_status); }; } && | |
22107 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22109 | (eval $ac_try) 2>&5 | |
22110 | ac_status=$? | |
22111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22112 | (exit $ac_status); }; }; then | |
22113 | ac_header_compiler=yes | |
22114 | else | |
22115 | echo "$as_me: failed program was:" >&5 | |
22116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22117 | ||
22118 | ac_header_compiler=no | |
22119 | fi | |
ac1cb8d3 | 22120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22121 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22122 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22123 | ||
22124 | # Is the header present? | |
22125 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22126 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22127 | cat >conftest.$ac_ext <<_ACEOF | |
22128 | /* confdefs.h. */ | |
22129 | _ACEOF | |
22130 | cat confdefs.h >>conftest.$ac_ext | |
22131 | cat >>conftest.$ac_ext <<_ACEOF | |
22132 | /* end confdefs.h. */ | |
22133 | #include <$ac_header> | |
22134 | _ACEOF | |
22135 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22136 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22137 | ac_status=$? | |
22138 | grep -v '^ *+' conftest.er1 >conftest.err | |
22139 | rm -f conftest.er1 | |
22140 | cat conftest.err >&5 | |
22141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22142 | (exit $ac_status); } >/dev/null; then | |
22143 | if test -s conftest.err; then | |
22144 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22145 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22146 | else |
22147 | ac_cpp_err= | |
22148 | fi | |
22149 | else | |
22150 | ac_cpp_err=yes | |
22151 | fi | |
22152 | if test -z "$ac_cpp_err"; then | |
22153 | ac_header_preproc=yes | |
22154 | else | |
22155 | echo "$as_me: failed program was:" >&5 | |
22156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22157 | ||
22158 | ac_header_preproc=no | |
22159 | fi | |
22160 | rm -f conftest.err conftest.$ac_ext | |
22161 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22162 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22163 | ||
22164 | # So? What about this header? | |
ac1cb8d3 VS |
22165 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22166 | yes:no: ) | |
a848cd7e SC |
22167 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22168 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22170 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22171 | ac_header_preproc=yes | |
a848cd7e | 22172 | ;; |
ac1cb8d3 | 22173 | no:yes:* ) |
a848cd7e SC |
22174 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22175 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22176 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22177 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22178 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22179 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22180 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22181 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22184 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22185 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22186 | ( |
22187 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22188 | ## ----------------------------------------- ## |
22189 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22190 | ## ----------------------------------------- ## | |
a848cd7e SC |
22191 | _ASBOX |
22192 | ) | | |
22193 | sed "s/^/$as_me: WARNING: /" >&2 | |
22194 | ;; | |
22195 | esac | |
22196 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22197 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22198 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22200 | else | |
ac1cb8d3 | 22201 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22202 | fi |
22203 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22204 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22205 | ||
22206 | fi | |
22207 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22208 | cat >>confdefs.h <<_ACEOF | |
22209 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22210 | _ACEOF | |
22211 | ||
22212 | fi | |
22213 | ||
22214 | done | |
22215 | ||
22216 | ||
22217 | if test "$ac_cv_header_iostream" = "yes" ; then | |
22218 | : | |
22219 | else | |
22220 | cat >>confdefs.h <<\_ACEOF | |
22221 | #define wxUSE_IOSTREAMH 1 | |
22222 | _ACEOF | |
22223 | ||
22224 | fi | |
22225 | ||
5d7b7554 VZ |
22226 | ac_ext=cc |
22227 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22228 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22229 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22230 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22231 | |
22232 | ||
22233 | ||
22234 | ||
22235 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
22236 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
22237 | if test "${wx_cv_cpp_bool+set}" = set; then | |
22238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22239 | else | |
22240 | ||
22241 | ||
22242 | ||
22243 | ac_ext=cc | |
22244 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22245 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22246 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22247 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22248 | ||
22249 | ||
22250 | cat >conftest.$ac_ext <<_ACEOF | |
22251 | /* confdefs.h. */ | |
22252 | _ACEOF | |
22253 | cat confdefs.h >>conftest.$ac_ext | |
22254 | cat >>conftest.$ac_ext <<_ACEOF | |
22255 | /* end confdefs.h. */ | |
22256 | ||
22257 | ||
22258 | int | |
22259 | main () | |
22260 | { | |
22261 | ||
22262 | bool b = true; | |
22263 | ||
22264 | return 0; | |
22265 | ||
22266 | ; | |
22267 | return 0; | |
22268 | } | |
22269 | _ACEOF | |
22270 | rm -f conftest.$ac_objext | |
22271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22272 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22273 | ac_status=$? |
ac1cb8d3 VS |
22274 | grep -v '^ *+' conftest.er1 >conftest.err |
22275 | rm -f conftest.er1 | |
22276 | cat conftest.err >&5 | |
a848cd7e SC |
22277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22278 | (exit $ac_status); } && | |
5d7b7554 | 22279 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22281 | (eval $ac_try) 2>&5 | |
22282 | ac_status=$? | |
22283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22284 | (exit $ac_status); }; } && | |
22285 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22287 | (eval $ac_try) 2>&5 | |
22288 | ac_status=$? | |
22289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22290 | (exit $ac_status); }; }; then | |
22291 | ||
22292 | wx_cv_cpp_bool=yes | |
22293 | ||
22294 | else | |
22295 | echo "$as_me: failed program was:" >&5 | |
22296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22297 | ||
22298 | ||
22299 | wx_cv_cpp_bool=no | |
22300 | ||
22301 | ||
22302 | fi | |
ac1cb8d3 | 22303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22304 | |
5d7b7554 VZ |
22305 | ac_ext=cc |
22306 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22307 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22308 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22309 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22310 | |
22311 | ||
22312 | fi | |
22313 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22314 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22315 | ||
22316 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22317 | cat >>confdefs.h <<\_ACEOF | |
22318 | #define HAVE_BOOL 1 | |
22319 | _ACEOF | |
22320 | ||
22321 | fi | |
22322 | ||
22323 | ||
22324 | ||
22325 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22326 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22327 | if test "${wx_cv_explicit+set}" = set; then | |
22328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22329 | else | |
22330 | ||
22331 | ||
22332 | ||
22333 | ac_ext=cc | |
22334 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22335 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22336 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22337 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22338 | ||
22339 | ||
22340 | cat >conftest.$ac_ext <<_ACEOF | |
22341 | /* confdefs.h. */ | |
22342 | _ACEOF | |
22343 | cat confdefs.h >>conftest.$ac_ext | |
22344 | cat >>conftest.$ac_ext <<_ACEOF | |
22345 | /* end confdefs.h. */ | |
22346 | ||
22347 | class Foo { public: explicit Foo(int) {} }; | |
22348 | ||
22349 | int | |
22350 | main () | |
22351 | { | |
22352 | ||
22353 | return 0; | |
22354 | ||
22355 | ; | |
22356 | return 0; | |
22357 | } | |
22358 | _ACEOF | |
22359 | rm -f conftest.$ac_objext | |
22360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22361 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22362 | ac_status=$? |
ac1cb8d3 VS |
22363 | grep -v '^ *+' conftest.er1 >conftest.err |
22364 | rm -f conftest.er1 | |
22365 | cat conftest.err >&5 | |
a848cd7e SC |
22366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22367 | (exit $ac_status); } && | |
5d7b7554 | 22368 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22370 | (eval $ac_try) 2>&5 | |
22371 | ac_status=$? | |
22372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22373 | (exit $ac_status); }; } && | |
22374 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22376 | (eval $ac_try) 2>&5 | |
22377 | ac_status=$? | |
22378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22379 | (exit $ac_status); }; }; then | |
22380 | ||
22381 | cat >conftest.$ac_ext <<_ACEOF | |
22382 | /* confdefs.h. */ | |
22383 | _ACEOF | |
22384 | cat confdefs.h >>conftest.$ac_ext | |
22385 | cat >>conftest.$ac_ext <<_ACEOF | |
22386 | /* end confdefs.h. */ | |
22387 | ||
22388 | class Foo { public: explicit Foo(int) {} }; | |
22389 | static void TakeFoo(const Foo& foo) { } | |
22390 | ||
22391 | int | |
22392 | main () | |
22393 | { | |
22394 | ||
22395 | TakeFoo(17); | |
22396 | return 0; | |
22397 | ||
22398 | ; | |
22399 | return 0; | |
22400 | } | |
22401 | _ACEOF | |
22402 | rm -f conftest.$ac_objext | |
22403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22404 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22405 | ac_status=$? |
ac1cb8d3 VS |
22406 | grep -v '^ *+' conftest.er1 >conftest.err |
22407 | rm -f conftest.er1 | |
22408 | cat conftest.err >&5 | |
a848cd7e SC |
22409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22410 | (exit $ac_status); } && | |
5d7b7554 | 22411 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22413 | (eval $ac_try) 2>&5 | |
22414 | ac_status=$? | |
22415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22416 | (exit $ac_status); }; } && | |
22417 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22419 | (eval $ac_try) 2>&5 | |
22420 | ac_status=$? | |
22421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22422 | (exit $ac_status); }; }; then | |
22423 | wx_cv_explicit=no | |
22424 | else | |
22425 | echo "$as_me: failed program was:" >&5 | |
22426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22427 | ||
22428 | wx_cv_explicit=yes | |
22429 | ||
22430 | fi | |
ac1cb8d3 | 22431 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22432 | |
22433 | else | |
22434 | echo "$as_me: failed program was:" >&5 | |
22435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22436 | ||
22437 | wx_cv_explicit=no | |
22438 | ||
22439 | fi | |
ac1cb8d3 | 22440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22441 | |
5d7b7554 VZ |
22442 | ac_ext=cc |
22443 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22444 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22445 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22446 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22447 | |
22448 | ||
22449 | fi | |
22450 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22451 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22452 | ||
22453 | if test "$wx_cv_explicit" = "yes"; then | |
22454 | cat >>confdefs.h <<\_ACEOF | |
22455 | #define HAVE_EXPLICIT 1 | |
22456 | _ACEOF | |
22457 | ||
22458 | fi | |
22459 | ||
22460 | ||
22461 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22462 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22463 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22465 | else | |
22466 | ||
22467 | ||
22468 | ac_ext=cc | |
22469 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22470 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22471 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22472 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22473 | ||
22474 | cat >conftest.$ac_ext <<_ACEOF | |
22475 | /* confdefs.h. */ | |
22476 | _ACEOF | |
22477 | cat confdefs.h >>conftest.$ac_ext | |
22478 | cat >>conftest.$ac_ext <<_ACEOF | |
22479 | /* end confdefs.h. */ | |
22480 | ||
22481 | int | |
22482 | main () | |
22483 | { | |
22484 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
22485 | ; | |
22486 | return 0; | |
22487 | } | |
22488 | _ACEOF | |
22489 | rm -f conftest.$ac_objext | |
22490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22491 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22492 | ac_status=$? |
ac1cb8d3 VS |
22493 | grep -v '^ *+' conftest.er1 >conftest.err |
22494 | rm -f conftest.er1 | |
22495 | cat conftest.err >&5 | |
a848cd7e SC |
22496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22497 | (exit $ac_status); } && | |
5d7b7554 | 22498 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22500 | (eval $ac_try) 2>&5 | |
22501 | ac_status=$? | |
22502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22503 | (exit $ac_status); }; } && | |
22504 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22506 | (eval $ac_try) 2>&5 | |
22507 | ac_status=$? | |
22508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22509 | (exit $ac_status); }; }; then | |
22510 | ac_cv_cxx_const_cast=yes | |
22511 | else | |
22512 | echo "$as_me: failed program was:" >&5 | |
22513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22514 | ||
22515 | ac_cv_cxx_const_cast=no | |
22516 | fi | |
ac1cb8d3 | 22517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
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 | |
a848cd7e SC |
22523 | |
22524 | ||
22525 | fi | |
22526 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
22527 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
22528 | if test "$ac_cv_cxx_const_cast" = yes; then | |
22529 | ||
22530 | cat >>confdefs.h <<\_ACEOF | |
22531 | #define HAVE_CONST_CAST | |
22532 | _ACEOF | |
22533 | ||
22534 | fi | |
22535 | ||
7714864e RL |
22536 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
22537 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
22538 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
22539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22540 | else | |
22541 | ||
22542 | ||
22543 | ac_ext=cc | |
22544 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22545 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22546 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22547 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22548 | ||
22549 | cat >conftest.$ac_ext <<_ACEOF | |
22550 | /* confdefs.h. */ | |
22551 | _ACEOF | |
22552 | cat confdefs.h >>conftest.$ac_ext | |
22553 | cat >>conftest.$ac_ext <<_ACEOF | |
22554 | /* end confdefs.h. */ | |
22555 | #include <typeinfo> | |
22556 | class Base { public : Base () {} virtual void f () = 0;}; | |
22557 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22558 | class Unrelated { public : Unrelated () {} }; | |
22559 | int g (Unrelated&) { return 0; } | |
22560 | int | |
22561 | main () | |
22562 | { | |
22563 | ||
22564 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
22565 | ; | |
22566 | return 0; | |
22567 | } | |
22568 | _ACEOF | |
22569 | rm -f conftest.$ac_objext | |
22570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22571 | (eval $ac_compile) 2>conftest.er1 | |
22572 | ac_status=$? | |
22573 | grep -v '^ *+' conftest.er1 >conftest.err | |
22574 | rm -f conftest.er1 | |
22575 | cat conftest.err >&5 | |
22576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22577 | (exit $ac_status); } && | |
5d7b7554 | 22578 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
22579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22580 | (eval $ac_try) 2>&5 | |
22581 | ac_status=$? | |
22582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22583 | (exit $ac_status); }; } && | |
22584 | { ac_try='test -s conftest.$ac_objext' | |
22585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22586 | (eval $ac_try) 2>&5 | |
22587 | ac_status=$? | |
22588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22589 | (exit $ac_status); }; }; then | |
22590 | ac_cv_cxx_reinterpret_cast=yes | |
22591 | else | |
22592 | echo "$as_me: failed program was:" >&5 | |
22593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22594 | ||
22595 | ac_cv_cxx_reinterpret_cast=no | |
22596 | fi | |
22597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
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 | |
7714864e RL |
22603 | |
22604 | ||
22605 | fi | |
22606 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
22607 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
22608 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
22609 | ||
22610 | cat >>confdefs.h <<\_ACEOF | |
22611 | #define HAVE_REINTERPRET_CAST | |
22612 | _ACEOF | |
22613 | ||
22614 | fi | |
22615 | ||
a848cd7e SC |
22616 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
22617 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
22618 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
22619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22620 | else | |
22621 | ||
22622 | ||
22623 | ac_ext=cc | |
22624 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22625 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22626 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22627 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22628 | ||
22629 | cat >conftest.$ac_ext <<_ACEOF | |
22630 | /* confdefs.h. */ | |
22631 | _ACEOF | |
22632 | cat confdefs.h >>conftest.$ac_ext | |
22633 | cat >>conftest.$ac_ext <<_ACEOF | |
22634 | /* end confdefs.h. */ | |
22635 | #include <typeinfo> | |
22636 | class Base { public : Base () {} virtual void f () = 0; }; | |
22637 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22638 | int g (Derived&) { return 0; } | |
22639 | int | |
22640 | main () | |
22641 | { | |
22642 | ||
22643 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
22644 | ; | |
22645 | return 0; | |
22646 | } | |
22647 | _ACEOF | |
22648 | rm -f conftest.$ac_objext | |
22649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22650 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22651 | ac_status=$? |
ac1cb8d3 VS |
22652 | grep -v '^ *+' conftest.er1 >conftest.err |
22653 | rm -f conftest.er1 | |
22654 | cat conftest.err >&5 | |
a848cd7e SC |
22655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22656 | (exit $ac_status); } && | |
5d7b7554 | 22657 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22659 | (eval $ac_try) 2>&5 | |
22660 | ac_status=$? | |
22661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22662 | (exit $ac_status); }; } && | |
22663 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22665 | (eval $ac_try) 2>&5 | |
22666 | ac_status=$? | |
22667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22668 | (exit $ac_status); }; }; then | |
22669 | ac_cv_cxx_static_cast=yes | |
22670 | else | |
22671 | echo "$as_me: failed program was:" >&5 | |
22672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22673 | ||
22674 | ac_cv_cxx_static_cast=no | |
22675 | fi | |
ac1cb8d3 | 22676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
22677 | ac_ext=cc |
22678 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22679 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22680 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22681 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22682 | |
22683 | ||
22684 | fi | |
22685 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
22686 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
22687 | if test "$ac_cv_cxx_static_cast" = yes; then | |
22688 | ||
22689 | cat >>confdefs.h <<\_ACEOF | |
22690 | #define HAVE_STATIC_CAST | |
22691 | _ACEOF | |
22692 | ||
22693 | fi | |
22694 | ||
22695 | ||
3c28b7cb | 22696 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 22697 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
22698 | fi |
22699 | ||
9122d155 | 22700 | if test "x$SUNCC" = xyes; then |
c92ad099 | 22701 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
22702 | fi |
22703 | ||
0ad5d837 | 22704 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 22705 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
22706 | fi |
22707 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 22708 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
22709 | fi |
22710 | ||
2eef8513 | 22711 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 22712 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
22713 | fi |
22714 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 22715 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
22716 | fi |
22717 | ||
22718 | if test "x$COMPAQCXX" = "xyes"; then | |
22719 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
22720 | fi | |
22721 | ||
f56c22b4 | 22722 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
f56c22b4 MW |
22723 | if test "$wxUSE_UNICODE" = "yes"; then |
22724 | std_string="std::wstring" | |
22725 | char_type="wchar_t" | |
22726 | else | |
22727 | std_string="std::string" | |
22728 | char_type="char" | |
22729 | fi | |
22730 | ||
22731 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
22732 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
22733 | cat >conftest.$ac_ext <<_ACEOF |
22734 | /* confdefs.h. */ | |
22735 | _ACEOF | |
22736 | cat confdefs.h >>conftest.$ac_ext | |
22737 | cat >>conftest.$ac_ext <<_ACEOF | |
22738 | /* end confdefs.h. */ | |
22739 | #include <string> | |
a848cd7e SC |
22740 | int |
22741 | main () | |
22742 | { | |
f56c22b4 | 22743 | $std_string foo; |
a848cd7e SC |
22744 | ; |
22745 | return 0; | |
22746 | } | |
22747 | _ACEOF | |
22748 | rm -f conftest.$ac_objext | |
22749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22750 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22751 | ac_status=$? |
ac1cb8d3 VS |
22752 | grep -v '^ *+' conftest.er1 >conftest.err |
22753 | rm -f conftest.er1 | |
22754 | cat conftest.err >&5 | |
a848cd7e SC |
22755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22756 | (exit $ac_status); } && | |
5d7b7554 | 22757 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22759 | (eval $ac_try) 2>&5 | |
22760 | ac_status=$? | |
22761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22762 | (exit $ac_status); }; } && | |
22763 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22765 | (eval $ac_try) 2>&5 | |
22766 | ac_status=$? | |
22767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22768 | (exit $ac_status); }; }; then | |
22769 | echo "$as_me:$LINENO: result: yes" >&5 | |
22770 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
22771 | cat >>confdefs.h <<\_ACEOF |
22772 | #define HAVE_STD_WSTRING 1 | |
22773 | _ACEOF | |
22774 | ||
a848cd7e SC |
22775 | else |
22776 | echo "$as_me: failed program was:" >&5 | |
22777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22778 | ||
22779 | echo "$as_me:$LINENO: result: no" >&5 | |
22780 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
22781 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
22782 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
22783 | cat >conftest.$ac_ext <<_ACEOF |
22784 | /* confdefs.h. */ | |
22785 | _ACEOF | |
22786 | cat confdefs.h >>conftest.$ac_ext | |
22787 | cat >>conftest.$ac_ext <<_ACEOF | |
22788 | /* end confdefs.h. */ | |
22789 | ||
22790 | #ifdef HAVE_WCHAR_H | |
22791 | # ifdef __CYGWIN__ | |
22792 | # include <stddef.h> | |
22793 | # endif | |
22794 | # include <wchar.h> | |
22795 | #endif | |
22796 | #ifdef HAVE_STDLIB_H | |
22797 | # include <stdlib.h> | |
22798 | #endif | |
22799 | #include <stdio.h> | |
22800 | #include <string> | |
22801 | ||
22802 | int | |
22803 | main () | |
22804 | { | |
f56c22b4 MW |
22805 | std::basic_string<$char_type> foo; |
22806 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
22807 | ; |
22808 | return 0; | |
22809 | } | |
22810 | _ACEOF | |
22811 | rm -f conftest.$ac_objext | |
22812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22813 | (eval $ac_compile) 2>conftest.er1 | |
22814 | ac_status=$? | |
22815 | grep -v '^ *+' conftest.er1 >conftest.err | |
22816 | rm -f conftest.er1 | |
22817 | cat conftest.err >&5 | |
22818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22819 | (exit $ac_status); } && | |
5d7b7554 | 22820 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
22821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22822 | (eval $ac_try) 2>&5 | |
22823 | ac_status=$? | |
22824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22825 | (exit $ac_status); }; } && | |
22826 | { ac_try='test -s conftest.$ac_objext' | |
22827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22828 | (eval $ac_try) 2>&5 | |
22829 | ac_status=$? | |
22830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22831 | (exit $ac_status); }; }; then | |
22832 | echo "$as_me:$LINENO: result: yes" >&5 | |
22833 | echo "${ECHO_T}yes" >&6 | |
22834 | else | |
22835 | echo "$as_me: failed program was:" >&5 | |
22836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22837 | ||
22838 | echo "$as_me:$LINENO: result: no" >&5 | |
22839 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 22840 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
22841 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
22842 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
22843 | { (exit 1); exit 1; }; } | |
22844 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
22845 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
22846 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 22847 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
22848 | else |
22849 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
22850 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
22851 | wxUSE_STD_STRING=no | |
22852 | fi | |
22853 | ||
0a08f02a | 22854 | |
a848cd7e | 22855 | fi |
ac1cb8d3 | 22856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22857 | |
0a08f02a MB |
22858 | fi |
22859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f56c22b4 MW |
22860 | fi |
22861 | ||
22862 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
f56c22b4 MW |
22863 | echo "$as_me:$LINENO: checking for std::istream" >&5 |
22864 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
22865 | if test "${ac_cv_type_std__istream+set}" = set; then | |
22866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22867 | else | |
22868 | cat >conftest.$ac_ext <<_ACEOF | |
22869 | /* confdefs.h. */ | |
22870 | _ACEOF | |
22871 | cat confdefs.h >>conftest.$ac_ext | |
22872 | cat >>conftest.$ac_ext <<_ACEOF | |
22873 | /* end confdefs.h. */ | |
22874 | #include <iostream> | |
22875 | ||
22876 | int | |
22877 | main () | |
22878 | { | |
22879 | if ((std::istream *) 0) | |
22880 | return 0; | |
22881 | if (sizeof (std::istream)) | |
22882 | return 0; | |
22883 | ; | |
22884 | return 0; | |
22885 | } | |
22886 | _ACEOF | |
22887 | rm -f conftest.$ac_objext | |
22888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22889 | (eval $ac_compile) 2>conftest.er1 | |
22890 | ac_status=$? | |
22891 | grep -v '^ *+' conftest.er1 >conftest.err | |
22892 | rm -f conftest.er1 | |
22893 | cat conftest.err >&5 | |
22894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22895 | (exit $ac_status); } && | |
5d7b7554 | 22896 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22898 | (eval $ac_try) 2>&5 | |
22899 | ac_status=$? | |
22900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22901 | (exit $ac_status); }; } && | |
22902 | { ac_try='test -s conftest.$ac_objext' | |
22903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22904 | (eval $ac_try) 2>&5 | |
22905 | ac_status=$? | |
22906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22907 | (exit $ac_status); }; }; then | |
22908 | ac_cv_type_std__istream=yes | |
22909 | else | |
22910 | echo "$as_me: failed program was:" >&5 | |
22911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22912 | ||
22913 | ac_cv_type_std__istream=no | |
22914 | fi | |
22915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22916 | fi | |
22917 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
22918 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
22919 | if test $ac_cv_type_std__istream = yes; then | |
22920 | ||
22921 | cat >>confdefs.h <<_ACEOF | |
22922 | #define HAVE_STD__ISTREAM 1 | |
22923 | _ACEOF | |
22924 | ||
22925 | ||
22926 | else | |
22927 | wxUSE_STD_IOSTREAM=no | |
22928 | fi | |
22929 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
22930 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
22931 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
22932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22933 | else | |
22934 | cat >conftest.$ac_ext <<_ACEOF | |
22935 | /* confdefs.h. */ | |
22936 | _ACEOF | |
22937 | cat confdefs.h >>conftest.$ac_ext | |
22938 | cat >>conftest.$ac_ext <<_ACEOF | |
22939 | /* end confdefs.h. */ | |
22940 | #include <iostream> | |
22941 | ||
22942 | int | |
22943 | main () | |
22944 | { | |
22945 | if ((std::ostream *) 0) | |
22946 | return 0; | |
22947 | if (sizeof (std::ostream)) | |
22948 | return 0; | |
22949 | ; | |
22950 | return 0; | |
22951 | } | |
22952 | _ACEOF | |
22953 | rm -f conftest.$ac_objext | |
22954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22955 | (eval $ac_compile) 2>conftest.er1 | |
22956 | ac_status=$? | |
22957 | grep -v '^ *+' conftest.er1 >conftest.err | |
22958 | rm -f conftest.er1 | |
22959 | cat conftest.err >&5 | |
22960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22961 | (exit $ac_status); } && | |
5d7b7554 | 22962 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22964 | (eval $ac_try) 2>&5 | |
22965 | ac_status=$? | |
22966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22967 | (exit $ac_status); }; } && | |
22968 | { ac_try='test -s conftest.$ac_objext' | |
22969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22970 | (eval $ac_try) 2>&5 | |
22971 | ac_status=$? | |
22972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22973 | (exit $ac_status); }; }; then | |
22974 | ac_cv_type_std__ostream=yes | |
22975 | else | |
22976 | echo "$as_me: failed program was:" >&5 | |
22977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22978 | ||
22979 | ac_cv_type_std__ostream=no | |
22980 | fi | |
22981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22982 | fi | |
22983 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
22984 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
22985 | if test $ac_cv_type_std__ostream = yes; then | |
22986 | ||
22987 | cat >>confdefs.h <<_ACEOF | |
22988 | #define HAVE_STD__OSTREAM 1 | |
22989 | _ACEOF | |
22990 | ||
22991 | ||
22992 | else | |
22993 | wxUSE_STD_IOSTREAM=no | |
22994 | fi | |
22995 | ||
22996 | ||
22997 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
22998 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
22999 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
23000 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
23001 | { (exit 1); exit 1; }; } | |
23002 | else | |
23003 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23004 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23005 | fi |
f56c22b4 | 23006 | fi |
0a08f02a MB |
23007 | fi |
23008 | ||
23009 | if test "$wxUSE_STL" = "yes"; then | |
0a08f02a MB |
23010 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 |
23011 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23012 | cat >conftest.$ac_ext <<_ACEOF |
23013 | /* confdefs.h. */ | |
23014 | _ACEOF | |
23015 | cat confdefs.h >>conftest.$ac_ext | |
23016 | cat >>conftest.$ac_ext <<_ACEOF | |
23017 | /* end confdefs.h. */ | |
23018 | #include <string> | |
0a08f02a MB |
23019 | #include <functional> |
23020 | #include <algorithm> | |
23021 | #include <vector> | |
23022 | #include <list> | |
a848cd7e SC |
23023 | int |
23024 | main () | |
23025 | { | |
0a08f02a MB |
23026 | std::vector<int> moo; |
23027 | std::list<int> foo; | |
23028 | std::vector<int>::iterator it = | |
23029 | std::find_if(moo.begin(), moo.end(), | |
23030 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23031 | ; |
23032 | return 0; | |
23033 | } | |
23034 | _ACEOF | |
23035 | rm -f conftest.$ac_objext | |
23036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23037 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23038 | ac_status=$? |
ac1cb8d3 VS |
23039 | grep -v '^ *+' conftest.er1 >conftest.err |
23040 | rm -f conftest.er1 | |
23041 | cat conftest.err >&5 | |
a848cd7e SC |
23042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23043 | (exit $ac_status); } && | |
5d7b7554 | 23044 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23046 | (eval $ac_try) 2>&5 | |
23047 | ac_status=$? | |
23048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23049 | (exit $ac_status); }; } && | |
23050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23052 | (eval $ac_try) 2>&5 | |
23053 | ac_status=$? | |
23054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23055 | (exit $ac_status); }; }; then | |
23056 | echo "$as_me:$LINENO: result: yes" >&5 | |
23057 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23058 | else |
23059 | echo "$as_me: failed program was:" >&5 | |
23060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23061 | ||
23062 | echo "$as_me:$LINENO: result: no" >&5 | |
23063 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23064 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23065 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23066 | { (exit 1); exit 1; }; } | |
a848cd7e | 23067 | fi |
ac1cb8d3 | 23068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23069 | |
23070 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23071 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23072 | cat >conftest.$ac_ext <<_ACEOF | |
23073 | /* confdefs.h. */ | |
23074 | _ACEOF | |
23075 | cat confdefs.h >>conftest.$ac_ext | |
23076 | cat >>conftest.$ac_ext <<_ACEOF | |
23077 | /* end confdefs.h. */ | |
23078 | #include <string> | |
23079 | int | |
23080 | main () | |
23081 | { | |
23082 | std::string foo, bar; | |
23083 | foo.compare(bar); | |
23084 | foo.compare(1, 1, bar); | |
23085 | foo.compare(1, 1, bar, 1, 1); | |
23086 | foo.compare(""); | |
23087 | foo.compare(1, 1, ""); | |
23088 | foo.compare(1, 1, "", 2); | |
23089 | ; | |
23090 | return 0; | |
23091 | } | |
23092 | _ACEOF | |
23093 | rm -f conftest.$ac_objext | |
23094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23095 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23096 | ac_status=$? |
ac1cb8d3 VS |
23097 | grep -v '^ *+' conftest.er1 >conftest.err |
23098 | rm -f conftest.er1 | |
23099 | cat conftest.err >&5 | |
a848cd7e SC |
23100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23101 | (exit $ac_status); } && | |
5d7b7554 | 23102 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23104 | (eval $ac_try) 2>&5 | |
23105 | ac_status=$? | |
23106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23107 | (exit $ac_status); }; } && | |
23108 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23110 | (eval $ac_try) 2>&5 | |
23111 | ac_status=$? | |
23112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23113 | (exit $ac_status); }; }; then | |
23114 | echo "$as_me:$LINENO: result: yes" >&5 | |
23115 | echo "${ECHO_T}yes" >&6 | |
23116 | cat >>confdefs.h <<\_ACEOF | |
23117 | #define HAVE_STD_STRING_COMPARE 1 | |
23118 | _ACEOF | |
23119 | ||
23120 | else | |
23121 | echo "$as_me: failed program was:" >&5 | |
23122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23123 | ||
23124 | echo "$as_me:$LINENO: result: no" >&5 | |
23125 | echo "${ECHO_T}no" >&6 | |
23126 | fi | |
ac1cb8d3 | 23127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23128 | |
23129 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23130 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23131 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23132 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23134 | fi | |
23135 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23136 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23137 | else | |
23138 | # Is the header compilable? | |
23139 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23140 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23141 | cat >conftest.$ac_ext <<_ACEOF | |
23142 | /* confdefs.h. */ | |
23143 | _ACEOF | |
23144 | cat confdefs.h >>conftest.$ac_ext | |
23145 | cat >>conftest.$ac_ext <<_ACEOF | |
23146 | /* end confdefs.h. */ | |
23147 | $ac_includes_default | |
23148 | #include <hash_map> | |
23149 | _ACEOF | |
23150 | rm -f conftest.$ac_objext | |
23151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23152 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23153 | ac_status=$? |
ac1cb8d3 VS |
23154 | grep -v '^ *+' conftest.er1 >conftest.err |
23155 | rm -f conftest.er1 | |
23156 | cat conftest.err >&5 | |
bdcade0a MB |
23157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23158 | (exit $ac_status); } && | |
5d7b7554 | 23159 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23161 | (eval $ac_try) 2>&5 | |
23162 | ac_status=$? | |
23163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23164 | (exit $ac_status); }; } && | |
23165 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23167 | (eval $ac_try) 2>&5 | |
23168 | ac_status=$? | |
23169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23170 | (exit $ac_status); }; }; then | |
23171 | ac_header_compiler=yes | |
23172 | else | |
23173 | echo "$as_me: failed program was:" >&5 | |
23174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23175 | ||
23176 | ac_header_compiler=no | |
23177 | fi | |
ac1cb8d3 | 23178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23179 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23180 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23181 | ||
23182 | # Is the header present? | |
23183 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23184 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23185 | cat >conftest.$ac_ext <<_ACEOF | |
23186 | /* confdefs.h. */ | |
23187 | _ACEOF | |
23188 | cat confdefs.h >>conftest.$ac_ext | |
23189 | cat >>conftest.$ac_ext <<_ACEOF | |
23190 | /* end confdefs.h. */ | |
23191 | #include <hash_map> | |
23192 | _ACEOF | |
23193 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23194 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23195 | ac_status=$? | |
23196 | grep -v '^ *+' conftest.er1 >conftest.err | |
23197 | rm -f conftest.er1 | |
23198 | cat conftest.err >&5 | |
23199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23200 | (exit $ac_status); } >/dev/null; then | |
23201 | if test -s conftest.err; then | |
23202 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23203 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23204 | else |
23205 | ac_cpp_err= | |
23206 | fi | |
23207 | else | |
23208 | ac_cpp_err=yes | |
23209 | fi | |
23210 | if test -z "$ac_cpp_err"; then | |
23211 | ac_header_preproc=yes | |
23212 | else | |
23213 | echo "$as_me: failed program was:" >&5 | |
23214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23215 | ||
23216 | ac_header_preproc=no | |
23217 | fi | |
23218 | rm -f conftest.err conftest.$ac_ext | |
23219 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23220 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23221 | ||
23222 | # So? What about this header? | |
ac1cb8d3 VS |
23223 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23224 | yes:no: ) | |
bdcade0a MB |
23225 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23226 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23227 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23228 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23229 | ac_header_preproc=yes | |
bdcade0a | 23230 | ;; |
ac1cb8d3 | 23231 | no:yes:* ) |
bdcade0a MB |
23232 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23233 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23234 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23235 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23236 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23237 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23238 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23239 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23240 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23241 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23242 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23243 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23244 | ( |
23245 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23246 | ## ----------------------------------------- ## |
23247 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23248 | ## ----------------------------------------- ## | |
bdcade0a MB |
23249 | _ASBOX |
23250 | ) | | |
23251 | sed "s/^/$as_me: WARNING: /" >&2 | |
23252 | ;; | |
23253 | esac | |
23254 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23255 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23256 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23258 | else | |
23259 | ac_cv_header_hash_map=$ac_header_preproc | |
23260 | fi | |
23261 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23262 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23263 | ||
23264 | fi | |
23265 | if test $ac_cv_header_hash_map = yes; then | |
23266 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23267 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23268 | cat >conftest.$ac_ext <<_ACEOF | |
23269 | /* confdefs.h. */ | |
23270 | _ACEOF | |
23271 | cat confdefs.h >>conftest.$ac_ext | |
23272 | cat >>conftest.$ac_ext <<_ACEOF | |
23273 | /* end confdefs.h. */ | |
23274 | #include <hash_map> | |
23275 | #include <hash_set> | |
23276 | int | |
23277 | main () | |
23278 | { | |
23279 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23280 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23281 | ; | |
23282 | return 0; | |
23283 | } | |
23284 | _ACEOF | |
23285 | rm -f conftest.$ac_objext | |
23286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23287 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23288 | ac_status=$? |
ac1cb8d3 VS |
23289 | grep -v '^ *+' conftest.er1 >conftest.err |
23290 | rm -f conftest.er1 | |
23291 | cat conftest.err >&5 | |
bdcade0a MB |
23292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23293 | (exit $ac_status); } && | |
5d7b7554 | 23294 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23296 | (eval $ac_try) 2>&5 | |
23297 | ac_status=$? | |
23298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23299 | (exit $ac_status); }; } && | |
23300 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23302 | (eval $ac_try) 2>&5 | |
23303 | ac_status=$? | |
23304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23305 | (exit $ac_status); }; }; then | |
23306 | echo "$as_me:$LINENO: result: yes" >&5 | |
23307 | echo "${ECHO_T}yes" >&6 | |
23308 | cat >>confdefs.h <<\_ACEOF | |
23309 | #define HAVE_HASH_MAP 1 | |
23310 | _ACEOF | |
23311 | ||
23312 | cat >>confdefs.h <<\_ACEOF | |
23313 | #define HAVE_STD_HASH_MAP 1 | |
23314 | _ACEOF | |
23315 | ||
23316 | else | |
23317 | echo "$as_me: failed program was:" >&5 | |
23318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23319 | ||
23320 | echo "$as_me:$LINENO: result: no" >&5 | |
23321 | echo "${ECHO_T}no" >&6 | |
23322 | fi | |
ac1cb8d3 | 23323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23324 | |
23325 | fi | |
23326 | ||
23327 | ||
23328 | ||
23329 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23330 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23331 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23332 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23334 | fi | |
23335 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23336 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23337 | else | |
23338 | # Is the header compilable? | |
23339 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23340 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23341 | cat >conftest.$ac_ext <<_ACEOF | |
23342 | /* confdefs.h. */ | |
23343 | _ACEOF | |
23344 | cat confdefs.h >>conftest.$ac_ext | |
23345 | cat >>conftest.$ac_ext <<_ACEOF | |
23346 | /* end confdefs.h. */ | |
23347 | $ac_includes_default | |
23348 | #include <ext/hash_map> | |
23349 | _ACEOF | |
23350 | rm -f conftest.$ac_objext | |
23351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23352 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23353 | ac_status=$? |
ac1cb8d3 VS |
23354 | grep -v '^ *+' conftest.er1 >conftest.err |
23355 | rm -f conftest.er1 | |
23356 | cat conftest.err >&5 | |
bdcade0a MB |
23357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23358 | (exit $ac_status); } && | |
5d7b7554 | 23359 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23361 | (eval $ac_try) 2>&5 | |
23362 | ac_status=$? | |
23363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23364 | (exit $ac_status); }; } && | |
23365 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23367 | (eval $ac_try) 2>&5 | |
23368 | ac_status=$? | |
23369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23370 | (exit $ac_status); }; }; then | |
23371 | ac_header_compiler=yes | |
23372 | else | |
23373 | echo "$as_me: failed program was:" >&5 | |
23374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23375 | ||
23376 | ac_header_compiler=no | |
23377 | fi | |
ac1cb8d3 | 23378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23379 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23380 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23381 | ||
23382 | # Is the header present? | |
23383 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23384 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23385 | cat >conftest.$ac_ext <<_ACEOF | |
23386 | /* confdefs.h. */ | |
23387 | _ACEOF | |
23388 | cat confdefs.h >>conftest.$ac_ext | |
23389 | cat >>conftest.$ac_ext <<_ACEOF | |
23390 | /* end confdefs.h. */ | |
23391 | #include <ext/hash_map> | |
23392 | _ACEOF | |
23393 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23394 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23395 | ac_status=$? | |
23396 | grep -v '^ *+' conftest.er1 >conftest.err | |
23397 | rm -f conftest.er1 | |
23398 | cat conftest.err >&5 | |
23399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23400 | (exit $ac_status); } >/dev/null; then | |
23401 | if test -s conftest.err; then | |
23402 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23403 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23404 | else |
23405 | ac_cpp_err= | |
23406 | fi | |
23407 | else | |
23408 | ac_cpp_err=yes | |
23409 | fi | |
23410 | if test -z "$ac_cpp_err"; then | |
23411 | ac_header_preproc=yes | |
23412 | else | |
23413 | echo "$as_me: failed program was:" >&5 | |
23414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23415 | ||
23416 | ac_header_preproc=no | |
23417 | fi | |
23418 | rm -f conftest.err conftest.$ac_ext | |
23419 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23420 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23421 | ||
23422 | # So? What about this header? | |
ac1cb8d3 VS |
23423 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23424 | yes:no: ) | |
bdcade0a MB |
23425 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23426 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23427 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23428 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23429 | ac_header_preproc=yes | |
bdcade0a | 23430 | ;; |
ac1cb8d3 | 23431 | no:yes:* ) |
bdcade0a MB |
23432 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23433 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23434 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23435 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23436 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23437 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23438 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23439 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23440 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23441 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23442 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23443 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23444 | ( |
23445 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23446 | ## ----------------------------------------- ## |
23447 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23448 | ## ----------------------------------------- ## | |
bdcade0a MB |
23449 | _ASBOX |
23450 | ) | | |
23451 | sed "s/^/$as_me: WARNING: /" >&2 | |
23452 | ;; | |
23453 | esac | |
23454 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23455 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23456 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23458 | else | |
23459 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23460 | fi | |
23461 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23462 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23463 | ||
23464 | fi | |
23465 | if test $ac_cv_header_ext_hash_map = yes; then | |
23466 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23467 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23468 | cat >conftest.$ac_ext <<_ACEOF | |
23469 | /* confdefs.h. */ | |
23470 | _ACEOF | |
23471 | cat confdefs.h >>conftest.$ac_ext | |
23472 | cat >>conftest.$ac_ext <<_ACEOF | |
23473 | /* end confdefs.h. */ | |
23474 | #include <ext/hash_map> | |
23475 | #include <ext/hash_set> | |
23476 | int | |
23477 | main () | |
23478 | { | |
23479 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23480 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23481 | ; | |
23482 | return 0; | |
23483 | } | |
23484 | _ACEOF | |
23485 | rm -f conftest.$ac_objext | |
23486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23487 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23488 | ac_status=$? |
ac1cb8d3 VS |
23489 | grep -v '^ *+' conftest.er1 >conftest.err |
23490 | rm -f conftest.er1 | |
23491 | cat conftest.err >&5 | |
bdcade0a MB |
23492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23493 | (exit $ac_status); } && | |
5d7b7554 | 23494 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23496 | (eval $ac_try) 2>&5 | |
23497 | ac_status=$? | |
23498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23499 | (exit $ac_status); }; } && | |
23500 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23502 | (eval $ac_try) 2>&5 | |
23503 | ac_status=$? | |
23504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23505 | (exit $ac_status); }; }; then | |
23506 | echo "$as_me:$LINENO: result: yes" >&5 | |
23507 | echo "${ECHO_T}yes" >&6 | |
23508 | cat >>confdefs.h <<\_ACEOF | |
23509 | #define HAVE_EXT_HASH_MAP 1 | |
23510 | _ACEOF | |
23511 | ||
23512 | cat >>confdefs.h <<\_ACEOF | |
23513 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
23514 | _ACEOF | |
23515 | ||
23516 | else | |
23517 | echo "$as_me: failed program was:" >&5 | |
23518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23519 | ||
23520 | echo "$as_me:$LINENO: result: no" >&5 | |
23521 | echo "${ECHO_T}no" >&6 | |
23522 | fi | |
ac1cb8d3 | 23523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23524 | |
23525 | fi | |
23526 | ||
23527 | ||
a848cd7e SC |
23528 | fi |
23529 | ||
23530 | ||
23531 | SEARCH_INCLUDE="\ | |
23532 | /usr/local/include \ | |
23533 | \ | |
23534 | /usr/Motif-2.1/include \ | |
23535 | /usr/Motif-1.2/include \ | |
23536 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
23537 | \ |
23538 | /usr/dt/include \ | |
23539 | /usr/openwin/include \ | |
23540 | \ | |
23541 | /usr/include/Xm \ | |
23542 | \ | |
23543 | /usr/X11R6/include \ | |
23544 | /usr/X11R6.4/include \ | |
23545 | /usr/X11R5/include \ | |
23546 | /usr/X11R4/include \ | |
23547 | \ | |
23548 | /usr/include/X11R6 \ | |
23549 | /usr/include/X11R5 \ | |
23550 | /usr/include/X11R4 \ | |
23551 | \ | |
23552 | /usr/local/X11R6/include \ | |
23553 | /usr/local/X11R5/include \ | |
23554 | /usr/local/X11R4/include \ | |
23555 | \ | |
23556 | /usr/local/include/X11R6 \ | |
23557 | /usr/local/include/X11R5 \ | |
23558 | /usr/local/include/X11R4 \ | |
23559 | \ | |
23560 | /usr/X11/include \ | |
23561 | /usr/include/X11 \ | |
23562 | /usr/local/X11/include \ | |
23563 | /usr/local/include/X11 \ | |
23564 | \ | |
a848cd7e | 23565 | /usr/XFree86/include/X11 \ |
e051b34e MW |
23566 | /usr/pkg/include \ |
23567 | \ | |
a848cd7e SC |
23568 | /usr/openwin/share/include" |
23569 | ||
6f9cf1e6 | 23570 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 23571 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
23572 | |
23573 | case "${host}" in | |
23574 | *-*-irix6* ) | |
23575 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
23576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23577 | else | |
23578 | ||
c687b303 VZ |
23579 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
23580 | for e in a so sl dylib dll.a; do | |
23581 | libc="$d/libc.$e" | |
23582 | if test -f $libc; then | |
23583 | save_LIBS="$LIBS" | |
23584 | LIBS="$libc" | |
23585 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
23586 | int main() { return 0; } |
23587 | _ACEOF | |
23588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23590 | (eval $ac_link) 2>conftest.er1 | |
23591 | ac_status=$? | |
23592 | grep -v '^ *+' conftest.er1 >conftest.err | |
23593 | rm -f conftest.er1 | |
23594 | cat conftest.err >&5 | |
23595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23596 | (exit $ac_status); } && | |
5d7b7554 | 23597 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
23598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23599 | (eval $ac_try) 2>&5 | |
23600 | ac_status=$? | |
23601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23602 | (exit $ac_status); }; } && | |
23603 | { ac_try='test -s conftest$ac_exeext' | |
23604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23605 | (eval $ac_try) 2>&5 | |
23606 | ac_status=$? | |
23607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23608 | (exit $ac_status); }; }; then | |
23609 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
23610 | else | |
23611 | echo "$as_me: failed program was:" >&5 | |
23612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23613 | ||
23614 | fi | |
23615 | rm -f conftest.err conftest.$ac_objext \ | |
23616 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
23617 | LIBS="$save_LIBS" |
23618 | if test "x$wx_cv_std_libpath" != "x"; then | |
23619 | break 2 | |
23620 | fi | |
23621 | fi | |
23622 | done | |
23623 | done | |
23624 | if test "x$wx_cv_std_libpath" = "x"; then | |
23625 | wx_cv_std_libpath="lib" | |
0ad5d837 | 23626 | fi |
0ad5d837 VZ |
23627 | |
23628 | ||
23629 | fi | |
6f9cf1e6 MW |
23630 | |
23631 | ;; | |
23632 | ||
23633 | *-*-solaris2* ) | |
23634 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
23635 | wx_cv_std_libpath="lib/64" | |
23636 | else | |
23637 | wx_cv_std_libpath="lib" | |
23638 | fi | |
23639 | ;; | |
23640 | ||
23641 | *-*-linux* ) | |
23642 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
23643 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
23644 | wx_cv_std_libpath="lib64" | |
23645 | else | |
23646 | wx_cv_std_libpath="lib" | |
23647 | fi | |
c687b303 VZ |
23648 | ;; |
23649 | ||
23650 | *) | |
23651 | wx_cv_std_libpath="lib"; | |
23652 | ;; | |
23653 | esac | |
0ad5d837 | 23654 | |
6f9cf1e6 MW |
23655 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
23656 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
23657 | ||
23658 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 23659 | |
3eca31dc MW |
23660 | if test "$build" != "$host" -a "$GCC" = yes; then |
23661 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
23662 | cross_root=`dirname $cross_root` | |
23663 | cross_root=`dirname $cross_root` | |
23664 | ||
23665 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23666 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 23667 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
23668 | |
23669 | if test -z "$PKG_CONFIG_PATH"; then | |
23670 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
23671 | export PKG_CONFIG_PATH | |
23672 | fi | |
23673 | ||
23674 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
23675 | ||
23676 | ac_find_includes= | |
23677 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
23678 | do | |
23679 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
23680 | ac_find_includes=$ac_dir | |
23681 | break | |
23682 | fi | |
23683 | done | |
23684 | ||
23685 | x_includes=$ac_find_includes | |
23686 | fi | |
23687 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
23688 | ||
0ad5d837 VZ |
23689 | ac_find_libraries= |
23690 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
23691 | do |
23692 | for ac_extension in a so sl dylib dll.a; do | |
23693 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
23694 | ac_find_libraries=$ac_dir | |
23695 | break 2 | |
23696 | fi | |
23697 | done | |
23698 | done | |
23699 | ||
23700 | x_libraries=$ac_find_libraries | |
23701 | fi | |
23702 | fi | |
23703 | fi | |
23704 | ||
a848cd7e SC |
23705 | |
23706 | cat >confcache <<\_ACEOF | |
23707 | # This file is a shell script that caches the results of configure | |
23708 | # tests run on this system so they can be shared between configure | |
23709 | # scripts and configure runs, see configure's option --config-cache. | |
23710 | # It is not useful on other systems. If it contains results you don't | |
23711 | # want to keep, you may remove or edit it. | |
23712 | # | |
23713 | # config.status only pays attention to the cache file if you give it | |
23714 | # the --recheck option to rerun configure. | |
23715 | # | |
23716 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23717 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23718 | # following values. | |
23719 | ||
23720 | _ACEOF | |
23721 | ||
23722 | # The following way of writing the cache mishandles newlines in values, | |
23723 | # but we know of no workaround that is simple, portable, and efficient. | |
23724 | # So, don't put newlines in cache variables' values. | |
23725 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23726 | # and sets the high bit in the cache file unless we assign to the vars. | |
23727 | { | |
23728 | (set) 2>&1 | | |
23729 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23730 | *ac_space=\ *) | |
23731 | # `set' does not quote correctly, so add quotes (double-quote | |
23732 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23733 | sed -n \ | |
ac1cb8d3 VS |
23734 | "s/'/'\\\\''/g; |
23735 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
23736 | ;; |
23737 | *) | |
23738 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23739 | sed -n \ | |
ac1cb8d3 | 23740 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
23741 | ;; |
23742 | esac; | |
23743 | } | | |
23744 | sed ' | |
23745 | t clear | |
23746 | : clear | |
23747 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23748 | t end | |
23749 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23750 | : end' >>confcache | |
23751 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
23752 | if test -w $cache_file; then | |
23753 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23754 | cat confcache >$cache_file | |
23755 | else | |
23756 | echo "not updating unwritable cache $cache_file" | |
23757 | fi | |
23758 | fi | |
23759 | rm -f confcache | |
23760 | ||
23761 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
23762 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
23763 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
23764 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
23765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23766 | else | |
23767 | ||
23768 | cat >conftest.$ac_ext <<_ACEOF | |
23769 | /* confdefs.h. */ | |
23770 | _ACEOF | |
23771 | cat confdefs.h >>conftest.$ac_ext | |
23772 | cat >>conftest.$ac_ext <<_ACEOF | |
23773 | /* end confdefs.h. */ | |
23774 | #include <features.h> | |
23775 | int | |
23776 | main () | |
23777 | { | |
23778 | ||
23779 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 23780 | not glibc 2.1 |
a848cd7e SC |
23781 | #endif |
23782 | ||
23783 | ; | |
23784 | return 0; | |
23785 | } | |
23786 | _ACEOF | |
23787 | rm -f conftest.$ac_objext | |
23788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23789 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23790 | ac_status=$? |
ac1cb8d3 VS |
23791 | grep -v '^ *+' conftest.er1 >conftest.err |
23792 | rm -f conftest.er1 | |
23793 | cat conftest.err >&5 | |
a848cd7e SC |
23794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23795 | (exit $ac_status); } && | |
5d7b7554 | 23796 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23798 | (eval $ac_try) 2>&5 | |
23799 | ac_status=$? | |
23800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23801 | (exit $ac_status); }; } && | |
23802 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23804 | (eval $ac_try) 2>&5 | |
23805 | ac_status=$? | |
23806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23807 | (exit $ac_status); }; }; then | |
23808 | ||
23809 | wx_cv_lib_glibc21=yes | |
23810 | ||
23811 | else | |
23812 | echo "$as_me: failed program was:" >&5 | |
23813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23814 | ||
23815 | ||
23816 | wx_cv_lib_glibc21=no | |
23817 | ||
23818 | ||
23819 | fi | |
ac1cb8d3 | 23820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23821 | |
23822 | fi | |
23823 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
23824 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
23825 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
23826 | cat >>confdefs.h <<\_ACEOF | |
23827 | #define wxHAVE_GLIBC2 1 | |
23828 | _ACEOF | |
23829 | ||
23830 | fi | |
23831 | fi | |
23832 | ||
23833 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
23834 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
23835 | cat >>confdefs.h <<\_ACEOF | |
23836 | #define _GNU_SOURCE 1 | |
23837 | _ACEOF | |
23838 | ||
23839 | fi | |
23840 | fi | |
23841 | ||
5d7b7554 VZ |
23842 | have_cos=0 |
23843 | have_floor=0 | |
a848cd7e | 23844 | |
5d7b7554 VZ |
23845 | for ac_func in cos |
23846 | do | |
23847 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23848 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23849 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23850 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a848cd7e | 23851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 23852 | else |
5d7b7554 | 23853 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
23854 | /* confdefs.h. */ |
23855 | _ACEOF | |
23856 | cat confdefs.h >>conftest.$ac_ext | |
23857 | cat >>conftest.$ac_ext <<_ACEOF | |
23858 | /* end confdefs.h. */ | |
5d7b7554 VZ |
23859 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23860 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23861 | #define $ac_func innocuous_$ac_func | |
23862 | ||
23863 | /* System header to define __stub macros and hopefully few prototypes, | |
23864 | which can conflict with char $ac_func (); below. | |
23865 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23866 | <limits.h> exists even on freestanding compilers. */ | |
23867 | ||
23868 | #ifdef __STDC__ | |
23869 | # include <limits.h> | |
23870 | #else | |
23871 | # include <assert.h> | |
23872 | #endif | |
23873 | ||
23874 | #undef $ac_func | |
23875 | ||
23876 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23877 | #ifdef __cplusplus | |
23878 | extern "C" | |
23879 | { | |
23880 | #endif | |
23881 | /* We use char because int might match the return type of a gcc2 | |
23882 | builtin and then its argument prototype would still apply. */ | |
23883 | char $ac_func (); | |
23884 | /* The GNU C library defines this for functions which it implements | |
23885 | to always fail with ENOSYS. Some functions are actually named | |
23886 | something starting with __ and the normal name is an alias. */ | |
23887 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23888 | choke me | |
23889 | #else | |
23890 | char (*f) () = $ac_func; | |
23891 | #endif | |
23892 | #ifdef __cplusplus | |
23893 | } | |
23894 | #endif | |
23895 | ||
23896 | int | |
23897 | main () | |
23898 | { | |
23899 | return f != $ac_func; | |
23900 | ; | |
23901 | return 0; | |
23902 | } | |
a848cd7e | 23903 | _ACEOF |
5d7b7554 VZ |
23904 | rm -f conftest.$ac_objext conftest$ac_exeext |
23905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23906 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 23907 | ac_status=$? |
ac1cb8d3 VS |
23908 | grep -v '^ *+' conftest.er1 >conftest.err |
23909 | rm -f conftest.er1 | |
23910 | cat conftest.err >&5 | |
a848cd7e SC |
23911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23912 | (exit $ac_status); } && | |
5d7b7554 | 23913 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23915 | (eval $ac_try) 2>&5 | |
23916 | ac_status=$? | |
23917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23918 | (exit $ac_status); }; } && | |
5d7b7554 | 23919 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23921 | (eval $ac_try) 2>&5 | |
23922 | ac_status=$? | |
23923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23924 | (exit $ac_status); }; }; then | |
5d7b7554 | 23925 | eval "$as_ac_var=yes" |
a848cd7e SC |
23926 | else |
23927 | echo "$as_me: failed program was:" >&5 | |
23928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23929 | ||
5d7b7554 | 23930 | eval "$as_ac_var=no" |
a848cd7e | 23931 | fi |
5d7b7554 VZ |
23932 | rm -f conftest.err conftest.$ac_objext \ |
23933 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 23934 | fi |
5d7b7554 VZ |
23935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
23936 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23937 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23938 | cat >>confdefs.h <<_ACEOF | |
23939 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23940 | _ACEOF | |
23941 | have_cos=1 | |
a848cd7e | 23942 | fi |
5d7b7554 | 23943 | done |
a848cd7e | 23944 | |
ab0f0edd | 23945 | |
5d7b7554 | 23946 | for ac_func in floor |
a848cd7e SC |
23947 | do |
23948 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23949 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23950 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23951 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23953 | else | |
23954 | cat >conftest.$ac_ext <<_ACEOF | |
23955 | /* confdefs.h. */ | |
23956 | _ACEOF | |
23957 | cat confdefs.h >>conftest.$ac_ext | |
23958 | cat >>conftest.$ac_ext <<_ACEOF | |
23959 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23960 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23961 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23962 | #define $ac_func innocuous_$ac_func | |
23963 | ||
a848cd7e SC |
23964 | /* System header to define __stub macros and hopefully few prototypes, |
23965 | which can conflict with char $ac_func (); below. | |
23966 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23967 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23968 | |
a848cd7e SC |
23969 | #ifdef __STDC__ |
23970 | # include <limits.h> | |
23971 | #else | |
23972 | # include <assert.h> | |
23973 | #endif | |
ac1cb8d3 VS |
23974 | |
23975 | #undef $ac_func | |
23976 | ||
a848cd7e SC |
23977 | /* Override any gcc2 internal prototype to avoid an error. */ |
23978 | #ifdef __cplusplus | |
23979 | extern "C" | |
23980 | { | |
23981 | #endif | |
23982 | /* We use char because int might match the return type of a gcc2 | |
23983 | builtin and then its argument prototype would still apply. */ | |
23984 | char $ac_func (); | |
23985 | /* The GNU C library defines this for functions which it implements | |
23986 | to always fail with ENOSYS. Some functions are actually named | |
23987 | something starting with __ and the normal name is an alias. */ | |
23988 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23989 | choke me | |
23990 | #else | |
23991 | char (*f) () = $ac_func; | |
23992 | #endif | |
23993 | #ifdef __cplusplus | |
23994 | } | |
23995 | #endif | |
23996 | ||
23997 | int | |
23998 | main () | |
23999 | { | |
24000 | return f != $ac_func; | |
24001 | ; | |
24002 | return 0; | |
24003 | } | |
24004 | _ACEOF | |
24005 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24007 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24008 | ac_status=$? |
ac1cb8d3 VS |
24009 | grep -v '^ *+' conftest.er1 >conftest.err |
24010 | rm -f conftest.er1 | |
24011 | cat conftest.err >&5 | |
a848cd7e SC |
24012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24013 | (exit $ac_status); } && | |
5d7b7554 VZ |
24014 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
24015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24016 | (eval $ac_try) 2>&5 | |
24017 | ac_status=$? | |
24018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24019 | (exit $ac_status); }; } && | |
24020 | { ac_try='test -s conftest$ac_exeext' | |
24021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24022 | (eval $ac_try) 2>&5 | |
24023 | ac_status=$? | |
24024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24025 | (exit $ac_status); }; }; then | |
24026 | eval "$as_ac_var=yes" | |
24027 | else | |
24028 | echo "$as_me: failed program was:" >&5 | |
24029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24030 | ||
24031 | eval "$as_ac_var=no" | |
24032 | fi | |
24033 | rm -f conftest.err conftest.$ac_objext \ | |
24034 | conftest$ac_exeext conftest.$ac_ext | |
24035 | fi | |
24036 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24037 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24038 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24039 | cat >>confdefs.h <<_ACEOF | |
24040 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24041 | _ACEOF | |
24042 | have_floor=1 | |
24043 | fi | |
24044 | done | |
24045 | ||
24046 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
24047 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
24048 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
24049 | echo "$as_me:$LINENO: result: yes" >&5 | |
24050 | echo "${ECHO_T}yes" >&6 | |
24051 | else | |
24052 | echo "$as_me:$LINENO: result: no" >&5 | |
24053 | echo "${ECHO_T}no" >&6 | |
24054 | LIBS="$LIBS -lm" | |
24055 | # use different functions to avoid configure caching | |
24056 | have_sin=0 | |
24057 | have_ceil=0 | |
24058 | ||
24059 | for ac_func in sin | |
24060 | do | |
24061 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24062 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24063 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24064 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24066 | else | |
24067 | cat >conftest.$ac_ext <<_ACEOF | |
24068 | /* confdefs.h. */ | |
24069 | _ACEOF | |
24070 | cat confdefs.h >>conftest.$ac_ext | |
24071 | cat >>conftest.$ac_ext <<_ACEOF | |
24072 | /* end confdefs.h. */ | |
24073 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24074 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24075 | #define $ac_func innocuous_$ac_func | |
24076 | ||
24077 | /* System header to define __stub macros and hopefully few prototypes, | |
24078 | which can conflict with char $ac_func (); below. | |
24079 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24080 | <limits.h> exists even on freestanding compilers. */ | |
24081 | ||
24082 | #ifdef __STDC__ | |
24083 | # include <limits.h> | |
24084 | #else | |
24085 | # include <assert.h> | |
24086 | #endif | |
24087 | ||
24088 | #undef $ac_func | |
24089 | ||
24090 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24091 | #ifdef __cplusplus | |
24092 | extern "C" | |
24093 | { | |
24094 | #endif | |
24095 | /* We use char because int might match the return type of a gcc2 | |
24096 | builtin and then its argument prototype would still apply. */ | |
24097 | char $ac_func (); | |
24098 | /* The GNU C library defines this for functions which it implements | |
24099 | to always fail with ENOSYS. Some functions are actually named | |
24100 | something starting with __ and the normal name is an alias. */ | |
24101 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24102 | choke me | |
24103 | #else | |
24104 | char (*f) () = $ac_func; | |
24105 | #endif | |
24106 | #ifdef __cplusplus | |
24107 | } | |
24108 | #endif | |
24109 | ||
24110 | int | |
24111 | main () | |
24112 | { | |
24113 | return f != $ac_func; | |
24114 | ; | |
24115 | return 0; | |
24116 | } | |
24117 | _ACEOF | |
24118 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24120 | (eval $ac_link) 2>conftest.er1 | |
24121 | ac_status=$? | |
24122 | grep -v '^ *+' conftest.er1 >conftest.err | |
24123 | rm -f conftest.er1 | |
24124 | cat conftest.err >&5 | |
24125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24126 | (exit $ac_status); } && | |
24127 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
24128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24129 | (eval $ac_try) 2>&5 | |
24130 | ac_status=$? | |
24131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24132 | (exit $ac_status); }; } && | |
24133 | { ac_try='test -s conftest$ac_exeext' | |
24134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24135 | (eval $ac_try) 2>&5 | |
24136 | ac_status=$? | |
24137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24138 | (exit $ac_status); }; }; then | |
24139 | eval "$as_ac_var=yes" | |
24140 | else | |
24141 | echo "$as_me: failed program was:" >&5 | |
24142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24143 | ||
24144 | eval "$as_ac_var=no" | |
24145 | fi | |
24146 | rm -f conftest.err conftest.$ac_objext \ | |
24147 | conftest$ac_exeext conftest.$ac_ext | |
24148 | fi | |
24149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24150 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24151 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24152 | cat >>confdefs.h <<_ACEOF | |
24153 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24154 | _ACEOF | |
24155 | have_sin=1 | |
24156 | fi | |
24157 | done | |
24158 | ||
24159 | ||
24160 | for ac_func in ceil | |
24161 | do | |
24162 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24163 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24164 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24165 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24167 | else | |
24168 | cat >conftest.$ac_ext <<_ACEOF | |
24169 | /* confdefs.h. */ | |
24170 | _ACEOF | |
24171 | cat confdefs.h >>conftest.$ac_ext | |
24172 | cat >>conftest.$ac_ext <<_ACEOF | |
24173 | /* end confdefs.h. */ | |
24174 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24175 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24176 | #define $ac_func innocuous_$ac_func | |
24177 | ||
24178 | /* System header to define __stub macros and hopefully few prototypes, | |
24179 | which can conflict with char $ac_func (); below. | |
24180 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24181 | <limits.h> exists even on freestanding compilers. */ | |
24182 | ||
24183 | #ifdef __STDC__ | |
24184 | # include <limits.h> | |
24185 | #else | |
24186 | # include <assert.h> | |
24187 | #endif | |
24188 | ||
24189 | #undef $ac_func | |
24190 | ||
24191 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24192 | #ifdef __cplusplus | |
24193 | extern "C" | |
24194 | { | |
24195 | #endif | |
24196 | /* We use char because int might match the return type of a gcc2 | |
24197 | builtin and then its argument prototype would still apply. */ | |
24198 | char $ac_func (); | |
24199 | /* The GNU C library defines this for functions which it implements | |
24200 | to always fail with ENOSYS. Some functions are actually named | |
24201 | something starting with __ and the normal name is an alias. */ | |
24202 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24203 | choke me | |
24204 | #else | |
24205 | char (*f) () = $ac_func; | |
24206 | #endif | |
24207 | #ifdef __cplusplus | |
24208 | } | |
24209 | #endif | |
24210 | ||
24211 | int | |
24212 | main () | |
24213 | { | |
24214 | return f != $ac_func; | |
24215 | ; | |
24216 | return 0; | |
24217 | } | |
24218 | _ACEOF | |
24219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24221 | (eval $ac_link) 2>conftest.er1 | |
24222 | ac_status=$? | |
24223 | grep -v '^ *+' conftest.er1 >conftest.err | |
24224 | rm -f conftest.er1 | |
24225 | cat conftest.err >&5 | |
24226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24227 | (exit $ac_status); } && | |
24228 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
24229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24230 | (eval $ac_try) 2>&5 | |
24231 | ac_status=$? | |
24232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24233 | (exit $ac_status); }; } && | |
24234 | { ac_try='test -s conftest$ac_exeext' | |
24235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24236 | (eval $ac_try) 2>&5 | |
24237 | ac_status=$? | |
24238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24239 | (exit $ac_status); }; }; then | |
24240 | eval "$as_ac_var=yes" | |
24241 | else | |
24242 | echo "$as_me: failed program was:" >&5 | |
24243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24244 | ||
24245 | eval "$as_ac_var=no" | |
24246 | fi | |
24247 | rm -f conftest.err conftest.$ac_objext \ | |
24248 | conftest$ac_exeext conftest.$ac_ext | |
24249 | fi | |
24250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24251 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24252 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24253 | cat >>confdefs.h <<_ACEOF | |
24254 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24255 | _ACEOF | |
24256 | have_ceil=1 | |
24257 | fi | |
24258 | done | |
24259 | ||
24260 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
24261 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
24262 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
24263 | echo "$as_me:$LINENO: result: yes" >&5 | |
24264 | echo "${ECHO_T}yes" >&6 | |
24265 | else | |
24266 | echo "$as_me:$LINENO: result: no" >&5 | |
24267 | echo "${ECHO_T}no" >&6 | |
24268 | # not sure we should warn the user, crash, etc. | |
24269 | fi | |
24270 | fi | |
24271 | ||
24272 | ||
24273 | ||
24274 | if test "$wxUSE_REGEX" != "no"; then | |
24275 | cat >>confdefs.h <<\_ACEOF | |
24276 | #define wxUSE_REGEX 1 | |
24277 | _ACEOF | |
24278 | ||
24279 | ||
24280 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
24281 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
24282 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
24283 | wxUSE_REGEX=builtin | |
24284 | fi | |
24285 | ||
24286 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
24287 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24288 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24289 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24290 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24292 | fi | |
24293 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24294 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24295 | else | |
24296 | # Is the header compilable? | |
24297 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
24298 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
24299 | cat >conftest.$ac_ext <<_ACEOF | |
24300 | /* confdefs.h. */ | |
24301 | _ACEOF | |
24302 | cat confdefs.h >>conftest.$ac_ext | |
24303 | cat >>conftest.$ac_ext <<_ACEOF | |
24304 | /* end confdefs.h. */ | |
24305 | $ac_includes_default | |
24306 | #include <regex.h> | |
24307 | _ACEOF | |
24308 | rm -f conftest.$ac_objext | |
24309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24310 | (eval $ac_compile) 2>conftest.er1 | |
24311 | ac_status=$? | |
24312 | grep -v '^ *+' conftest.er1 >conftest.err | |
24313 | rm -f conftest.er1 | |
24314 | cat conftest.err >&5 | |
24315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24316 | (exit $ac_status); } && | |
24317 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
24318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24319 | (eval $ac_try) 2>&5 | |
24320 | ac_status=$? | |
24321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24322 | (exit $ac_status); }; } && | |
24323 | { ac_try='test -s conftest.$ac_objext' | |
24324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24325 | (eval $ac_try) 2>&5 | |
24326 | ac_status=$? | |
24327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24328 | (exit $ac_status); }; }; then | |
24329 | ac_header_compiler=yes | |
24330 | else | |
24331 | echo "$as_me: failed program was:" >&5 | |
24332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24333 | ||
24334 | ac_header_compiler=no | |
24335 | fi | |
24336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24337 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24338 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24339 | ||
24340 | # Is the header present? | |
24341 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
24342 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
24343 | cat >conftest.$ac_ext <<_ACEOF | |
24344 | /* confdefs.h. */ | |
24345 | _ACEOF | |
24346 | cat confdefs.h >>conftest.$ac_ext | |
24347 | cat >>conftest.$ac_ext <<_ACEOF | |
24348 | /* end confdefs.h. */ | |
24349 | #include <regex.h> | |
24350 | _ACEOF | |
24351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24353 | ac_status=$? | |
24354 | grep -v '^ *+' conftest.er1 >conftest.err | |
24355 | rm -f conftest.er1 | |
24356 | cat conftest.err >&5 | |
24357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24358 | (exit $ac_status); } >/dev/null; then | |
24359 | if test -s conftest.err; then | |
24360 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
24361 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
24362 | else | |
24363 | ac_cpp_err= | |
24364 | fi | |
24365 | else | |
24366 | ac_cpp_err=yes | |
24367 | fi | |
24368 | if test -z "$ac_cpp_err"; then | |
24369 | ac_header_preproc=yes | |
24370 | else | |
24371 | echo "$as_me: failed program was:" >&5 | |
24372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24373 | ||
24374 | ac_header_preproc=no | |
24375 | fi | |
24376 | rm -f conftest.err conftest.$ac_ext | |
24377 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24378 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24379 | ||
24380 | # So? What about this header? | |
24381 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
24382 | yes:no: ) | |
24383 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24384 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24385 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 | |
24386 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
24387 | ac_header_preproc=yes | |
24388 | ;; | |
24389 | no:yes:* ) | |
24390 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
24391 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
24392 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
24393 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
24394 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
24395 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
24396 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24397 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24398 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
24399 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
24400 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 | |
24401 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
24402 | ( | |
24403 | cat <<\_ASBOX | |
24404 | ## ----------------------------------------- ## | |
24405 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24406 | ## ----------------------------------------- ## | |
24407 | _ASBOX | |
24408 | ) | | |
24409 | sed "s/^/$as_me: WARNING: /" >&2 | |
24410 | ;; | |
24411 | esac | |
24412 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24413 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24414 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24416 | else | |
24417 | ac_cv_header_regex_h=$ac_header_preproc | |
24418 | fi | |
24419 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24420 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24421 | ||
24422 | fi | |
24423 | if test $ac_cv_header_regex_h = yes; then | |
24424 | ||
24425 | ||
24426 | for ac_func in regcomp re_search | |
24427 | do | |
24428 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24429 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24430 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24431 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24433 | else | |
24434 | cat >conftest.$ac_ext <<_ACEOF | |
24435 | /* confdefs.h. */ | |
24436 | _ACEOF | |
24437 | cat confdefs.h >>conftest.$ac_ext | |
24438 | cat >>conftest.$ac_ext <<_ACEOF | |
24439 | /* end confdefs.h. */ | |
24440 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24441 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24442 | #define $ac_func innocuous_$ac_func | |
24443 | ||
24444 | /* System header to define __stub macros and hopefully few prototypes, | |
24445 | which can conflict with char $ac_func (); below. | |
24446 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24447 | <limits.h> exists even on freestanding compilers. */ | |
24448 | ||
24449 | #ifdef __STDC__ | |
24450 | # include <limits.h> | |
24451 | #else | |
24452 | # include <assert.h> | |
24453 | #endif | |
24454 | ||
24455 | #undef $ac_func | |
24456 | ||
24457 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24458 | #ifdef __cplusplus | |
24459 | extern "C" | |
24460 | { | |
24461 | #endif | |
24462 | /* We use char because int might match the return type of a gcc2 | |
24463 | builtin and then its argument prototype would still apply. */ | |
24464 | char $ac_func (); | |
24465 | /* The GNU C library defines this for functions which it implements | |
24466 | to always fail with ENOSYS. Some functions are actually named | |
24467 | something starting with __ and the normal name is an alias. */ | |
24468 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24469 | choke me | |
24470 | #else | |
24471 | char (*f) () = $ac_func; | |
24472 | #endif | |
24473 | #ifdef __cplusplus | |
24474 | } | |
24475 | #endif | |
24476 | ||
24477 | int | |
24478 | main () | |
24479 | { | |
24480 | return f != $ac_func; | |
24481 | ; | |
24482 | return 0; | |
24483 | } | |
24484 | _ACEOF | |
24485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24487 | (eval $ac_link) 2>conftest.er1 | |
24488 | ac_status=$? | |
24489 | grep -v '^ *+' conftest.er1 >conftest.err | |
24490 | rm -f conftest.er1 | |
24491 | cat conftest.err >&5 | |
24492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24493 | (exit $ac_status); } && | |
24494 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
ac1cb8d3 VS |
24495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24496 | (eval $ac_try) 2>&5 | |
24497 | ac_status=$? | |
24498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24499 | (exit $ac_status); }; } && | |
24500 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24502 | (eval $ac_try) 2>&5 | |
24503 | ac_status=$? | |
24504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24505 | (exit $ac_status); }; }; then | |
24506 | eval "$as_ac_var=yes" | |
24507 | else | |
24508 | echo "$as_me: failed program was:" >&5 | |
24509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24510 | ||
24511 | eval "$as_ac_var=no" | |
24512 | fi | |
ac1cb8d3 VS |
24513 | rm -f conftest.err conftest.$ac_objext \ |
24514 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24515 | fi |
24516 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24517 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24518 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24519 | cat >>confdefs.h <<_ACEOF | |
24520 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24521 | _ACEOF | |
24522 | ||
24523 | fi | |
24524 | done | |
24525 | ||
24526 | fi | |
24527 | ||
24528 | ||
24529 | ||
24530 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
24531 | if test "$wxUSE_REGEX" = "sys" ; then | |
24532 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
24533 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
24534 | { (exit 1); exit 1; }; } | |
24535 | else | |
24536 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
24537 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
24538 | wxUSE_REGEX=builtin | |
24539 | fi | |
24540 | else | |
24541 | wxUSE_REGEX=sys | |
24542 | cat >>confdefs.h <<\_ACEOF | |
24543 | #define WX_NO_REGEX_ADVANCED 1 | |
24544 | _ACEOF | |
24545 | ||
24546 | fi | |
24547 | fi | |
24548 | fi | |
24549 | ||
24550 | ||
24551 | ZLIB_LINK= | |
24552 | if test "$wxUSE_ZLIB" != "no" ; then | |
24553 | cat >>confdefs.h <<\_ACEOF | |
24554 | #define wxUSE_ZLIB 1 | |
24555 | _ACEOF | |
24556 | ||
24557 | ||
24558 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
24559 | if test "$USE_DARWIN" = 1; then | |
24560 | system_zlib_h_ok="yes" | |
24561 | else | |
24562 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
24563 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
24564 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24566 | else | |
24567 | if test "$cross_compiling" = yes; then | |
24568 | unset ac_cv_header_zlib_h | |
24569 | ||
24570 | else | |
24571 | cat >conftest.$ac_ext <<_ACEOF | |
24572 | /* confdefs.h. */ | |
24573 | _ACEOF | |
24574 | cat confdefs.h >>conftest.$ac_ext | |
24575 | cat >>conftest.$ac_ext <<_ACEOF | |
24576 | /* end confdefs.h. */ | |
24577 | ||
24578 | #include <zlib.h> | |
24579 | #include <stdio.h> | |
24580 | ||
24581 | int main() | |
24582 | { | |
24583 | FILE *f=fopen("conftestval", "w"); | |
24584 | if (!f) exit(1); | |
24585 | fprintf(f, "%s", | |
24586 | ZLIB_VERSION[0] == '1' && | |
24587 | (ZLIB_VERSION[2] > '1' || | |
24588 | (ZLIB_VERSION[2] == '1' && | |
24589 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
24590 | exit(0); | |
24591 | } | |
24592 | ||
24593 | _ACEOF | |
24594 | rm -f conftest$ac_exeext | |
24595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24596 | (eval $ac_link) 2>&5 | |
24597 | ac_status=$? | |
24598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24599 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24601 | (eval $ac_try) 2>&5 | |
24602 | ac_status=$? | |
24603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24604 | (exit $ac_status); }; }; then | |
24605 | ac_cv_header_zlib_h=`cat conftestval` | |
24606 | else | |
24607 | echo "$as_me: program exited with status $ac_status" >&5 | |
24608 | echo "$as_me: failed program was:" >&5 | |
24609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24610 | ||
24611 | ( exit $ac_status ) | |
24612 | ac_cv_header_zlib_h=no | |
24613 | fi | |
ac1cb8d3 | 24614 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24615 | fi |
24616 | ||
24617 | fi | |
24618 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24619 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24620 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24621 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24622 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24623 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24625 | fi | |
24626 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24627 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24628 | else | |
24629 | # Is the header compilable? | |
24630 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
24631 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
24632 | cat >conftest.$ac_ext <<_ACEOF | |
24633 | /* confdefs.h. */ | |
24634 | _ACEOF | |
24635 | cat confdefs.h >>conftest.$ac_ext | |
24636 | cat >>conftest.$ac_ext <<_ACEOF | |
24637 | /* end confdefs.h. */ | |
24638 | $ac_includes_default | |
24639 | #include <zlib.h> | |
24640 | _ACEOF | |
24641 | rm -f conftest.$ac_objext | |
24642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24643 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24644 | ac_status=$? |
ac1cb8d3 VS |
24645 | grep -v '^ *+' conftest.er1 >conftest.err |
24646 | rm -f conftest.er1 | |
24647 | cat conftest.err >&5 | |
a848cd7e SC |
24648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24649 | (exit $ac_status); } && | |
5d7b7554 | 24650 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24652 | (eval $ac_try) 2>&5 | |
24653 | ac_status=$? | |
24654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24655 | (exit $ac_status); }; } && | |
24656 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24658 | (eval $ac_try) 2>&5 | |
24659 | ac_status=$? | |
24660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24661 | (exit $ac_status); }; }; then | |
24662 | ac_header_compiler=yes | |
24663 | else | |
24664 | echo "$as_me: failed program was:" >&5 | |
24665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24666 | ||
24667 | ac_header_compiler=no | |
24668 | fi | |
ac1cb8d3 | 24669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24670 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24671 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24672 | ||
24673 | # Is the header present? | |
24674 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
24675 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
24676 | cat >conftest.$ac_ext <<_ACEOF | |
24677 | /* confdefs.h. */ | |
24678 | _ACEOF | |
24679 | cat confdefs.h >>conftest.$ac_ext | |
24680 | cat >>conftest.$ac_ext <<_ACEOF | |
24681 | /* end confdefs.h. */ | |
24682 | #include <zlib.h> | |
24683 | _ACEOF | |
24684 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24685 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24686 | ac_status=$? | |
24687 | grep -v '^ *+' conftest.er1 >conftest.err | |
24688 | rm -f conftest.er1 | |
24689 | cat conftest.err >&5 | |
24690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24691 | (exit $ac_status); } >/dev/null; then | |
24692 | if test -s conftest.err; then | |
5d7b7554 VZ |
24693 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
24694 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
24695 | else |
24696 | ac_cpp_err= | |
24697 | fi | |
24698 | else | |
24699 | ac_cpp_err=yes | |
24700 | fi | |
24701 | if test -z "$ac_cpp_err"; then | |
24702 | ac_header_preproc=yes | |
24703 | else | |
24704 | echo "$as_me: failed program was:" >&5 | |
24705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24706 | ||
24707 | ac_header_preproc=no | |
24708 | fi | |
24709 | rm -f conftest.err conftest.$ac_ext | |
24710 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24711 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24712 | ||
24713 | # So? What about this header? | |
5d7b7554 | 24714 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 24715 | yes:no: ) |
a848cd7e SC |
24716 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24717 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24718 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
24719 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
24720 | ac_header_preproc=yes | |
a848cd7e | 24721 | ;; |
ac1cb8d3 | 24722 | no:yes:* ) |
a848cd7e SC |
24723 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
24724 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24725 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
24726 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
24727 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
24728 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
24729 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24730 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24731 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
24732 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24733 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
24734 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24735 | ( |
24736 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24737 | ## ----------------------------------------- ## |
24738 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24739 | ## ----------------------------------------- ## | |
a848cd7e SC |
24740 | _ASBOX |
24741 | ) | | |
24742 | sed "s/^/$as_me: WARNING: /" >&2 | |
24743 | ;; | |
24744 | esac | |
24745 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24746 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24747 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24749 | else | |
24750 | ac_cv_header_zlib_h=$ac_header_preproc | |
24751 | fi | |
24752 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24753 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24754 | ||
24755 | fi | |
24756 | ||
24757 | ||
24758 | ||
24759 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
24760 | fi | |
24761 | ||
24762 | if test "$system_zlib_h_ok" = "yes"; then | |
24763 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
24764 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
24765 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
24766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24767 | else | |
24768 | ac_check_lib_save_LIBS=$LIBS | |
24769 | LIBS="-lz $LIBS" | |
24770 | cat >conftest.$ac_ext <<_ACEOF | |
24771 | /* confdefs.h. */ | |
24772 | _ACEOF | |
24773 | cat confdefs.h >>conftest.$ac_ext | |
24774 | cat >>conftest.$ac_ext <<_ACEOF | |
24775 | /* end confdefs.h. */ | |
24776 | ||
24777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24778 | #ifdef __cplusplus | |
24779 | extern "C" | |
24780 | #endif | |
24781 | /* We use char because int might match the return type of a gcc2 | |
24782 | builtin and then its argument prototype would still apply. */ | |
24783 | char deflate (); | |
24784 | int | |
24785 | main () | |
24786 | { | |
24787 | deflate (); | |
24788 | ; | |
24789 | return 0; | |
24790 | } | |
24791 | _ACEOF | |
24792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24794 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24795 | ac_status=$? |
ac1cb8d3 VS |
24796 | grep -v '^ *+' conftest.er1 >conftest.err |
24797 | rm -f conftest.er1 | |
24798 | cat conftest.err >&5 | |
a848cd7e SC |
24799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24800 | (exit $ac_status); } && | |
5d7b7554 | 24801 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24803 | (eval $ac_try) 2>&5 | |
24804 | ac_status=$? | |
24805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24806 | (exit $ac_status); }; } && | |
24807 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24809 | (eval $ac_try) 2>&5 | |
24810 | ac_status=$? | |
24811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24812 | (exit $ac_status); }; }; then | |
24813 | ac_cv_lib_z_deflate=yes | |
24814 | else | |
24815 | echo "$as_me: failed program was:" >&5 | |
24816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24817 | ||
24818 | ac_cv_lib_z_deflate=no | |
24819 | fi | |
ac1cb8d3 VS |
24820 | rm -f conftest.err conftest.$ac_objext \ |
24821 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24822 | LIBS=$ac_check_lib_save_LIBS |
24823 | fi | |
24824 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
24825 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
24826 | if test $ac_cv_lib_z_deflate = yes; then | |
24827 | ZLIB_LINK=" -lz" | |
24828 | fi | |
24829 | ||
24830 | fi | |
24831 | ||
24832 | if test "x$ZLIB_LINK" = "x" ; then | |
24833 | if test "$wxUSE_ZLIB" = "sys" ; then | |
24834 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
24835 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
24836 | { (exit 1); exit 1; }; } | |
24837 | else | |
24838 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
24839 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
24840 | wxUSE_ZLIB=builtin | |
24841 | fi | |
24842 | else | |
24843 | wxUSE_ZLIB=sys | |
24844 | fi | |
24845 | fi | |
24846 | fi | |
24847 | ||
24848 | ||
24849 | PNG_LINK= | |
24850 | if test "$wxUSE_LIBPNG" != "no" ; then | |
24851 | cat >>confdefs.h <<\_ACEOF | |
24852 | #define wxUSE_LIBPNG 1 | |
24853 | _ACEOF | |
24854 | ||
24855 | ||
24856 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
24857 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
24858 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
24859 | wxUSE_LIBPNG=sys | |
24860 | fi | |
24861 | ||
24862 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
24863 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
24864 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
24865 | wxUSE_LIBPNG=builtin | |
24866 | fi | |
24867 | ||
24868 | if test "$wxUSE_MGL" != 1 ; then | |
24869 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
24870 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
24871 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
24872 | if test "${ac_cv_header_png_h+set}" = set; then | |
24873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24874 | else | |
24875 | if test "$cross_compiling" = yes; then | |
24876 | unset ac_cv_header_png_h | |
24877 | ||
24878 | else | |
24879 | cat >conftest.$ac_ext <<_ACEOF | |
24880 | /* confdefs.h. */ | |
24881 | _ACEOF | |
24882 | cat confdefs.h >>conftest.$ac_ext | |
24883 | cat >>conftest.$ac_ext <<_ACEOF | |
24884 | /* end confdefs.h. */ | |
24885 | ||
24886 | #include <png.h> | |
24887 | #include <stdio.h> | |
24888 | ||
24889 | int main() | |
24890 | { | |
24891 | FILE *f=fopen("conftestval", "w"); | |
24892 | if (!f) exit(1); | |
24893 | fprintf(f, "%s", | |
24894 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
24895 | exit(0); | |
24896 | } | |
24897 | ||
24898 | _ACEOF | |
24899 | rm -f conftest$ac_exeext | |
24900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24901 | (eval $ac_link) 2>&5 | |
24902 | ac_status=$? | |
24903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24904 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24906 | (eval $ac_try) 2>&5 | |
24907 | ac_status=$? | |
24908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24909 | (exit $ac_status); }; }; then | |
24910 | ac_cv_header_png_h=`cat conftestval` | |
24911 | else | |
24912 | echo "$as_me: program exited with status $ac_status" >&5 | |
24913 | echo "$as_me: failed program was:" >&5 | |
24914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24915 | ||
24916 | ( exit $ac_status ) | |
24917 | ac_cv_header_png_h=no | |
24918 | fi | |
ac1cb8d3 | 24919 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24920 | fi |
24921 | ||
24922 | fi | |
24923 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24924 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24925 | if test "${ac_cv_header_png_h+set}" = set; then | |
24926 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24927 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24928 | if test "${ac_cv_header_png_h+set}" = set; then | |
24929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24930 | fi | |
24931 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24932 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24933 | else | |
24934 | # Is the header compilable? | |
24935 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
24936 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
24937 | cat >conftest.$ac_ext <<_ACEOF | |
24938 | /* confdefs.h. */ | |
24939 | _ACEOF | |
24940 | cat confdefs.h >>conftest.$ac_ext | |
24941 | cat >>conftest.$ac_ext <<_ACEOF | |
24942 | /* end confdefs.h. */ | |
24943 | $ac_includes_default | |
24944 | #include <png.h> | |
24945 | _ACEOF | |
24946 | rm -f conftest.$ac_objext | |
24947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24948 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24949 | ac_status=$? |
ac1cb8d3 VS |
24950 | grep -v '^ *+' conftest.er1 >conftest.err |
24951 | rm -f conftest.er1 | |
24952 | cat conftest.err >&5 | |
a848cd7e SC |
24953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24954 | (exit $ac_status); } && | |
5d7b7554 | 24955 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24957 | (eval $ac_try) 2>&5 | |
24958 | ac_status=$? | |
24959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24960 | (exit $ac_status); }; } && | |
24961 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24963 | (eval $ac_try) 2>&5 | |
24964 | ac_status=$? | |
24965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24966 | (exit $ac_status); }; }; then | |
24967 | ac_header_compiler=yes | |
24968 | else | |
24969 | echo "$as_me: failed program was:" >&5 | |
24970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24971 | ||
24972 | ac_header_compiler=no | |
24973 | fi | |
ac1cb8d3 | 24974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24975 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24976 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24977 | ||
24978 | # Is the header present? | |
24979 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
24980 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
24981 | cat >conftest.$ac_ext <<_ACEOF | |
24982 | /* confdefs.h. */ | |
24983 | _ACEOF | |
24984 | cat confdefs.h >>conftest.$ac_ext | |
24985 | cat >>conftest.$ac_ext <<_ACEOF | |
24986 | /* end confdefs.h. */ | |
24987 | #include <png.h> | |
24988 | _ACEOF | |
24989 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24990 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24991 | ac_status=$? | |
24992 | grep -v '^ *+' conftest.er1 >conftest.err | |
24993 | rm -f conftest.er1 | |
24994 | cat conftest.err >&5 | |
24995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24996 | (exit $ac_status); } >/dev/null; then | |
24997 | if test -s conftest.err; then | |
5d7b7554 VZ |
24998 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
24999 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25000 | else |
25001 | ac_cpp_err= | |
25002 | fi | |
25003 | else | |
25004 | ac_cpp_err=yes | |
25005 | fi | |
25006 | if test -z "$ac_cpp_err"; then | |
25007 | ac_header_preproc=yes | |
25008 | else | |
25009 | echo "$as_me: failed program was:" >&5 | |
25010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25011 | ||
25012 | ac_header_preproc=no | |
25013 | fi | |
25014 | rm -f conftest.err conftest.$ac_ext | |
25015 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25016 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25017 | ||
25018 | # So? What about this header? | |
5d7b7554 | 25019 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25020 | yes:no: ) |
a848cd7e SC |
25021 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25022 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25023 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
25024 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
25025 | ac_header_preproc=yes | |
a848cd7e | 25026 | ;; |
ac1cb8d3 | 25027 | no:yes:* ) |
a848cd7e SC |
25028 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
25029 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25030 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
25031 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
25032 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
25033 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
25034 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25035 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25036 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
25037 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25038 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
25039 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25040 | ( |
25041 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25042 | ## ----------------------------------------- ## |
25043 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25044 | ## ----------------------------------------- ## | |
a848cd7e SC |
25045 | _ASBOX |
25046 | ) | | |
25047 | sed "s/^/$as_me: WARNING: /" >&2 | |
25048 | ;; | |
25049 | esac | |
25050 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25051 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25052 | if test "${ac_cv_header_png_h+set}" = set; then | |
25053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25054 | else | |
25055 | ac_cv_header_png_h=$ac_header_preproc | |
25056 | fi | |
25057 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25058 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25059 | ||
25060 | fi | |
25061 | ||
25062 | ||
25063 | ||
25064 | if test "$ac_cv_header_png_h" = "yes"; then | |
25065 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
25066 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
25067 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
25068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25069 | else | |
25070 | ac_check_lib_save_LIBS=$LIBS | |
25071 | LIBS="-lpng -lz -lm $LIBS" | |
25072 | cat >conftest.$ac_ext <<_ACEOF | |
25073 | /* confdefs.h. */ | |
25074 | _ACEOF | |
25075 | cat confdefs.h >>conftest.$ac_ext | |
25076 | cat >>conftest.$ac_ext <<_ACEOF | |
25077 | /* end confdefs.h. */ | |
25078 | ||
25079 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25080 | #ifdef __cplusplus | |
25081 | extern "C" | |
25082 | #endif | |
25083 | /* We use char because int might match the return type of a gcc2 | |
25084 | builtin and then its argument prototype would still apply. */ | |
25085 | char png_check_sig (); | |
25086 | int | |
25087 | main () | |
25088 | { | |
25089 | png_check_sig (); | |
25090 | ; | |
25091 | return 0; | |
25092 | } | |
25093 | _ACEOF | |
25094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25096 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25097 | ac_status=$? |
ac1cb8d3 VS |
25098 | grep -v '^ *+' conftest.er1 >conftest.err |
25099 | rm -f conftest.er1 | |
25100 | cat conftest.err >&5 | |
a848cd7e SC |
25101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25102 | (exit $ac_status); } && | |
5d7b7554 | 25103 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25105 | (eval $ac_try) 2>&5 | |
25106 | ac_status=$? | |
25107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25108 | (exit $ac_status); }; } && | |
25109 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25111 | (eval $ac_try) 2>&5 | |
25112 | ac_status=$? | |
25113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25114 | (exit $ac_status); }; }; then | |
25115 | ac_cv_lib_png_png_check_sig=yes | |
25116 | else | |
25117 | echo "$as_me: failed program was:" >&5 | |
25118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25119 | ||
25120 | ac_cv_lib_png_png_check_sig=no | |
25121 | fi | |
ac1cb8d3 VS |
25122 | rm -f conftest.err conftest.$ac_objext \ |
25123 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25124 | LIBS=$ac_check_lib_save_LIBS |
25125 | fi | |
25126 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
25127 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
25128 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
25129 | PNG_LINK=" -lpng -lz" | |
25130 | fi | |
25131 | ||
25132 | fi | |
25133 | ||
25134 | if test "x$PNG_LINK" = "x" ; then | |
25135 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
25136 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
25137 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
25138 | { (exit 1); exit 1; }; } | |
25139 | else | |
25140 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
25141 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
25142 | wxUSE_LIBPNG=builtin | |
25143 | fi | |
25144 | else | |
25145 | wxUSE_LIBPNG=sys | |
25146 | fi | |
25147 | fi | |
25148 | fi | |
25149 | ||
25150 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
25151 | fi | |
25152 | ||
25153 | ||
25154 | JPEG_LINK= | |
25155 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
25156 | cat >>confdefs.h <<\_ACEOF | |
25157 | #define wxUSE_LIBJPEG 1 | |
25158 | _ACEOF | |
25159 | ||
25160 | ||
25161 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
25162 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
25163 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
25164 | wxUSE_LIBJPEG=sys | |
25165 | fi | |
25166 | ||
25167 | if test "$wxUSE_MGL" != 1 ; then | |
25168 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
25169 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
25170 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
25171 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
25172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25173 | else | |
25174 | cat >conftest.$ac_ext <<_ACEOF | |
25175 | /* confdefs.h. */ | |
25176 | _ACEOF | |
25177 | cat confdefs.h >>conftest.$ac_ext | |
25178 | cat >>conftest.$ac_ext <<_ACEOF | |
25179 | /* end confdefs.h. */ | |
25180 | ||
25181 | #undef HAVE_STDLIB_H | |
25182 | #include <stdio.h> | |
25183 | #include <jpeglib.h> | |
25184 | ||
25185 | int | |
25186 | main () | |
25187 | { | |
25188 | ||
25189 | ||
25190 | ; | |
25191 | return 0; | |
25192 | } | |
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); } && | |
5d7b7554 | 25203 | { ac_try='test -z "$ac_cxx_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_cv_header_jpeglib_h=yes | |
25216 | else | |
25217 | echo "$as_me: failed program was:" >&5 | |
25218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25219 | ||
25220 | ac_cv_header_jpeglib_h=no | |
25221 | ||
25222 | fi | |
ac1cb8d3 | 25223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25224 | |
25225 | fi | |
25226 | ||
25227 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
25228 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
25229 | ||
25230 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
25231 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
25232 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
25233 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
25234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25235 | else | |
25236 | ac_check_lib_save_LIBS=$LIBS | |
25237 | LIBS="-ljpeg $LIBS" | |
25238 | cat >conftest.$ac_ext <<_ACEOF | |
25239 | /* confdefs.h. */ | |
25240 | _ACEOF | |
25241 | cat confdefs.h >>conftest.$ac_ext | |
25242 | cat >>conftest.$ac_ext <<_ACEOF | |
25243 | /* end confdefs.h. */ | |
25244 | ||
25245 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25246 | #ifdef __cplusplus | |
25247 | extern "C" | |
25248 | #endif | |
25249 | /* We use char because int might match the return type of a gcc2 | |
25250 | builtin and then its argument prototype would still apply. */ | |
25251 | char jpeg_read_header (); | |
25252 | int | |
25253 | main () | |
25254 | { | |
25255 | jpeg_read_header (); | |
25256 | ; | |
25257 | return 0; | |
25258 | } | |
25259 | _ACEOF | |
25260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25262 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25263 | ac_status=$? |
ac1cb8d3 VS |
25264 | grep -v '^ *+' conftest.er1 >conftest.err |
25265 | rm -f conftest.er1 | |
25266 | cat conftest.err >&5 | |
a848cd7e SC |
25267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25268 | (exit $ac_status); } && | |
5d7b7554 | 25269 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25271 | (eval $ac_try) 2>&5 | |
25272 | ac_status=$? | |
25273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25274 | (exit $ac_status); }; } && | |
25275 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25277 | (eval $ac_try) 2>&5 | |
25278 | ac_status=$? | |
25279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25280 | (exit $ac_status); }; }; then | |
25281 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
25282 | else | |
25283 | echo "$as_me: failed program was:" >&5 | |
25284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25285 | ||
25286 | ac_cv_lib_jpeg_jpeg_read_header=no | |
25287 | fi | |
ac1cb8d3 VS |
25288 | rm -f conftest.err conftest.$ac_objext \ |
25289 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25290 | LIBS=$ac_check_lib_save_LIBS |
25291 | fi | |
25292 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
25293 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
25294 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
25295 | JPEG_LINK=" -ljpeg" | |
25296 | fi | |
25297 | ||
25298 | fi | |
25299 | ||
25300 | if test "x$JPEG_LINK" = "x" ; then | |
25301 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
25302 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
25303 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
25304 | { (exit 1); exit 1; }; } | |
25305 | else | |
25306 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
25307 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
25308 | wxUSE_LIBJPEG=builtin | |
25309 | fi | |
25310 | else | |
25311 | wxUSE_LIBJPEG=sys | |
25312 | fi | |
25313 | fi | |
25314 | fi | |
25315 | fi | |
25316 | ||
25317 | ||
25318 | TIFF_LINK= | |
25319 | TIFF_PREREQ_LINKS=-lm | |
25320 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
25321 | cat >>confdefs.h <<\_ACEOF | |
25322 | #define wxUSE_LIBTIFF 1 | |
25323 | _ACEOF | |
25324 | ||
25325 | ||
25326 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
25327 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
25328 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
25329 | fi | |
25330 | if test "$wxUSE_ZLIB" = "sys"; then | |
25331 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
25332 | fi | |
25333 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25334 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25335 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25336 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25338 | fi | |
25339 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25340 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25341 | else | |
25342 | # Is the header compilable? | |
25343 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
25344 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
25345 | cat >conftest.$ac_ext <<_ACEOF | |
25346 | /* confdefs.h. */ | |
25347 | _ACEOF | |
25348 | cat confdefs.h >>conftest.$ac_ext | |
25349 | cat >>conftest.$ac_ext <<_ACEOF | |
25350 | /* end confdefs.h. */ | |
25351 | $ac_includes_default | |
25352 | #include <tiffio.h> | |
25353 | _ACEOF | |
25354 | rm -f conftest.$ac_objext | |
25355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25356 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25357 | ac_status=$? |
ac1cb8d3 VS |
25358 | grep -v '^ *+' conftest.er1 >conftest.err |
25359 | rm -f conftest.er1 | |
25360 | cat conftest.err >&5 | |
a848cd7e SC |
25361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25362 | (exit $ac_status); } && | |
5d7b7554 | 25363 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25365 | (eval $ac_try) 2>&5 | |
25366 | ac_status=$? | |
25367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25368 | (exit $ac_status); }; } && | |
25369 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25371 | (eval $ac_try) 2>&5 | |
25372 | ac_status=$? | |
25373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25374 | (exit $ac_status); }; }; then | |
25375 | ac_header_compiler=yes | |
25376 | else | |
25377 | echo "$as_me: failed program was:" >&5 | |
25378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25379 | ||
25380 | ac_header_compiler=no | |
25381 | fi | |
ac1cb8d3 | 25382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25383 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25384 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25385 | ||
25386 | # Is the header present? | |
25387 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
25388 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
25389 | cat >conftest.$ac_ext <<_ACEOF | |
25390 | /* confdefs.h. */ | |
25391 | _ACEOF | |
25392 | cat confdefs.h >>conftest.$ac_ext | |
25393 | cat >>conftest.$ac_ext <<_ACEOF | |
25394 | /* end confdefs.h. */ | |
25395 | #include <tiffio.h> | |
25396 | _ACEOF | |
25397 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25398 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25399 | ac_status=$? | |
25400 | grep -v '^ *+' conftest.er1 >conftest.err | |
25401 | rm -f conftest.er1 | |
25402 | cat conftest.err >&5 | |
25403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25404 | (exit $ac_status); } >/dev/null; then | |
25405 | if test -s conftest.err; then | |
5d7b7554 VZ |
25406 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25407 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25408 | else |
25409 | ac_cpp_err= | |
25410 | fi | |
25411 | else | |
25412 | ac_cpp_err=yes | |
25413 | fi | |
25414 | if test -z "$ac_cpp_err"; then | |
25415 | ac_header_preproc=yes | |
25416 | else | |
25417 | echo "$as_me: failed program was:" >&5 | |
25418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25419 | ||
25420 | ac_header_preproc=no | |
25421 | fi | |
25422 | rm -f conftest.err conftest.$ac_ext | |
25423 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25424 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25425 | ||
25426 | # So? What about this header? | |
5d7b7554 | 25427 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25428 | yes:no: ) |
a848cd7e SC |
25429 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25430 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25431 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
25432 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
25433 | ac_header_preproc=yes | |
a848cd7e | 25434 | ;; |
ac1cb8d3 | 25435 | no:yes:* ) |
a848cd7e SC |
25436 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
25437 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25438 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
25439 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
25440 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
25441 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
25442 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25443 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25444 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
25445 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25446 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
25447 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25448 | ( |
25449 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25450 | ## ----------------------------------------- ## |
25451 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25452 | ## ----------------------------------------- ## | |
a848cd7e SC |
25453 | _ASBOX |
25454 | ) | | |
25455 | sed "s/^/$as_me: WARNING: /" >&2 | |
25456 | ;; | |
25457 | esac | |
25458 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25459 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25460 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25462 | else | |
25463 | ac_cv_header_tiffio_h=$ac_header_preproc | |
25464 | fi | |
25465 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25466 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25467 | ||
25468 | fi | |
25469 | if test $ac_cv_header_tiffio_h = yes; then | |
25470 | ||
25471 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
25472 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
25473 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
25474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25475 | else | |
25476 | ac_check_lib_save_LIBS=$LIBS | |
25477 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
25478 | cat >conftest.$ac_ext <<_ACEOF | |
25479 | /* confdefs.h. */ | |
25480 | _ACEOF | |
25481 | cat confdefs.h >>conftest.$ac_ext | |
25482 | cat >>conftest.$ac_ext <<_ACEOF | |
25483 | /* end confdefs.h. */ | |
25484 | ||
25485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25486 | #ifdef __cplusplus | |
25487 | extern "C" | |
25488 | #endif | |
25489 | /* We use char because int might match the return type of a gcc2 | |
25490 | builtin and then its argument prototype would still apply. */ | |
25491 | char TIFFError (); | |
25492 | int | |
25493 | main () | |
25494 | { | |
25495 | TIFFError (); | |
25496 | ; | |
25497 | return 0; | |
25498 | } | |
25499 | _ACEOF | |
25500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25502 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25503 | ac_status=$? |
ac1cb8d3 VS |
25504 | grep -v '^ *+' conftest.er1 >conftest.err |
25505 | rm -f conftest.er1 | |
25506 | cat conftest.err >&5 | |
a848cd7e SC |
25507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25508 | (exit $ac_status); } && | |
5d7b7554 | 25509 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25511 | (eval $ac_try) 2>&5 | |
25512 | ac_status=$? | |
25513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25514 | (exit $ac_status); }; } && | |
25515 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25517 | (eval $ac_try) 2>&5 | |
25518 | ac_status=$? | |
25519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25520 | (exit $ac_status); }; }; then | |
25521 | ac_cv_lib_tiff_TIFFError=yes | |
25522 | else | |
25523 | echo "$as_me: failed program was:" >&5 | |
25524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25525 | ||
25526 | ac_cv_lib_tiff_TIFFError=no | |
25527 | fi | |
ac1cb8d3 VS |
25528 | rm -f conftest.err conftest.$ac_objext \ |
25529 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25530 | LIBS=$ac_check_lib_save_LIBS |
25531 | fi | |
25532 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
25533 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
25534 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
25535 | TIFF_LINK=" -ltiff" | |
25536 | fi | |
25537 | ||
25538 | ||
25539 | ||
25540 | fi | |
25541 | ||
25542 | ||
25543 | ||
25544 | if test "x$TIFF_LINK" = "x" ; then | |
25545 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
25546 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
25547 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
25548 | { (exit 1); exit 1; }; } | |
25549 | else | |
25550 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
25551 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
25552 | wxUSE_LIBTIFF=builtin | |
25553 | fi | |
25554 | else | |
25555 | wxUSE_LIBTIFF=sys | |
25556 | fi | |
25557 | fi | |
25558 | fi | |
25559 | ||
25560 | ||
47a7e797 MW |
25561 | if test "$wxUSE_WCHAR_T" != "yes"; then |
25562 | if test "$wxUSE_EXPAT" != "no"; then | |
25563 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
25564 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
25565 | wxUSE_EXPAT=no | |
25566 | fi | |
25567 | if test "$wxUSE_XML" != "no"; then | |
25568 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
25569 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
25570 | wxUSE_XML=no | |
25571 | fi | |
25572 | fi | |
25573 | ||
a848cd7e SC |
25574 | if test "$wxUSE_EXPAT" != "no"; then |
25575 | wxUSE_XML=yes | |
25576 | cat >>confdefs.h <<\_ACEOF | |
25577 | #define wxUSE_EXPAT 1 | |
25578 | _ACEOF | |
25579 | ||
25580 | cat >>confdefs.h <<\_ACEOF | |
25581 | #define wxUSE_XML 1 | |
25582 | _ACEOF | |
25583 | ||
25584 | ||
25585 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
25586 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25587 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25588 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25589 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25591 | fi | |
25592 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25593 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25594 | else | |
25595 | # Is the header compilable? | |
25596 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
25597 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
25598 | cat >conftest.$ac_ext <<_ACEOF | |
25599 | /* confdefs.h. */ | |
25600 | _ACEOF | |
25601 | cat confdefs.h >>conftest.$ac_ext | |
25602 | cat >>conftest.$ac_ext <<_ACEOF | |
25603 | /* end confdefs.h. */ | |
25604 | $ac_includes_default | |
25605 | #include <expat.h> | |
25606 | _ACEOF | |
25607 | rm -f conftest.$ac_objext | |
25608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25610 | ac_status=$? |
ac1cb8d3 VS |
25611 | grep -v '^ *+' conftest.er1 >conftest.err |
25612 | rm -f conftest.er1 | |
25613 | cat conftest.err >&5 | |
a848cd7e SC |
25614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25615 | (exit $ac_status); } && | |
5d7b7554 | 25616 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25618 | (eval $ac_try) 2>&5 | |
25619 | ac_status=$? | |
25620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25621 | (exit $ac_status); }; } && | |
25622 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25624 | (eval $ac_try) 2>&5 | |
25625 | ac_status=$? | |
25626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25627 | (exit $ac_status); }; }; then | |
25628 | ac_header_compiler=yes | |
25629 | else | |
25630 | echo "$as_me: failed program was:" >&5 | |
25631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25632 | ||
25633 | ac_header_compiler=no | |
25634 | fi | |
ac1cb8d3 | 25635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25636 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25637 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25638 | ||
25639 | # Is the header present? | |
25640 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
25641 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
25642 | cat >conftest.$ac_ext <<_ACEOF | |
25643 | /* confdefs.h. */ | |
25644 | _ACEOF | |
25645 | cat confdefs.h >>conftest.$ac_ext | |
25646 | cat >>conftest.$ac_ext <<_ACEOF | |
25647 | /* end confdefs.h. */ | |
25648 | #include <expat.h> | |
25649 | _ACEOF | |
25650 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25651 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25652 | ac_status=$? | |
25653 | grep -v '^ *+' conftest.er1 >conftest.err | |
25654 | rm -f conftest.er1 | |
25655 | cat conftest.err >&5 | |
25656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25657 | (exit $ac_status); } >/dev/null; then | |
25658 | if test -s conftest.err; then | |
5d7b7554 VZ |
25659 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25660 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25661 | else |
25662 | ac_cpp_err= | |
25663 | fi | |
25664 | else | |
25665 | ac_cpp_err=yes | |
25666 | fi | |
25667 | if test -z "$ac_cpp_err"; then | |
25668 | ac_header_preproc=yes | |
25669 | else | |
25670 | echo "$as_me: failed program was:" >&5 | |
25671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25672 | ||
25673 | ac_header_preproc=no | |
25674 | fi | |
25675 | rm -f conftest.err conftest.$ac_ext | |
25676 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25677 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25678 | ||
25679 | # So? What about this header? | |
5d7b7554 | 25680 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25681 | yes:no: ) |
a848cd7e SC |
25682 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25683 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25684 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
25685 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
25686 | ac_header_preproc=yes | |
a848cd7e | 25687 | ;; |
ac1cb8d3 | 25688 | no:yes:* ) |
a848cd7e SC |
25689 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
25690 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25691 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
25692 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
25693 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
25694 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
25695 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25696 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25697 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
25698 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25699 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
25700 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25701 | ( |
25702 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25703 | ## ----------------------------------------- ## |
25704 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25705 | ## ----------------------------------------- ## | |
a848cd7e SC |
25706 | _ASBOX |
25707 | ) | | |
25708 | sed "s/^/$as_me: WARNING: /" >&2 | |
25709 | ;; | |
25710 | esac | |
25711 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25712 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25713 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25715 | else | |
25716 | ac_cv_header_expat_h=$ac_header_preproc | |
25717 | fi | |
25718 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25719 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25720 | ||
25721 | fi | |
25722 | if test $ac_cv_header_expat_h = yes; then | |
25723 | found_expat_h=1 | |
25724 | fi | |
25725 | ||
25726 | ||
25727 | if test "x$found_expat_h" = "x1"; then | |
25728 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
25729 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
25730 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
25731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25732 | else | |
25733 | ||
a848cd7e SC |
25734 | cat >conftest.$ac_ext <<_ACEOF |
25735 | /* confdefs.h. */ | |
25736 | _ACEOF | |
25737 | cat confdefs.h >>conftest.$ac_ext | |
25738 | cat >>conftest.$ac_ext <<_ACEOF | |
25739 | /* end confdefs.h. */ | |
25740 | #include <expat.h> | |
25741 | int | |
25742 | main () | |
25743 | { | |
25744 | ||
25745 | ; | |
25746 | return 0; | |
25747 | } | |
25748 | _ACEOF | |
25749 | rm -f conftest.$ac_objext | |
25750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25751 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25752 | ac_status=$? |
ac1cb8d3 VS |
25753 | grep -v '^ *+' conftest.er1 >conftest.err |
25754 | rm -f conftest.er1 | |
25755 | cat conftest.err >&5 | |
a848cd7e SC |
25756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25757 | (exit $ac_status); } && | |
5d7b7554 | 25758 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25760 | (eval $ac_try) 2>&5 | |
25761 | ac_status=$? | |
25762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25763 | (exit $ac_status); }; } && | |
25764 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25766 | (eval $ac_try) 2>&5 | |
25767 | ac_status=$? | |
25768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25769 | (exit $ac_status); }; }; then | |
25770 | wx_cv_expat_is_not_broken=yes | |
25771 | else | |
25772 | echo "$as_me: failed program was:" >&5 | |
25773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25774 | ||
25775 | wx_cv_expat_is_not_broken=no | |
25776 | ||
25777 | fi | |
ac1cb8d3 | 25778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25779 | |
25780 | ||
25781 | fi | |
25782 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
25783 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
25784 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
25785 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
25786 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
25787 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
25788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25789 | else | |
25790 | ac_check_lib_save_LIBS=$LIBS | |
25791 | LIBS="-lexpat $LIBS" | |
25792 | cat >conftest.$ac_ext <<_ACEOF | |
25793 | /* confdefs.h. */ | |
25794 | _ACEOF | |
25795 | cat confdefs.h >>conftest.$ac_ext | |
25796 | cat >>conftest.$ac_ext <<_ACEOF | |
25797 | /* end confdefs.h. */ | |
25798 | ||
25799 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25800 | #ifdef __cplusplus | |
25801 | extern "C" | |
25802 | #endif | |
25803 | /* We use char because int might match the return type of a gcc2 | |
25804 | builtin and then its argument prototype would still apply. */ | |
25805 | char XML_ParserCreate (); | |
25806 | int | |
25807 | main () | |
25808 | { | |
25809 | XML_ParserCreate (); | |
25810 | ; | |
25811 | return 0; | |
25812 | } | |
25813 | _ACEOF | |
25814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25816 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25817 | ac_status=$? |
ac1cb8d3 VS |
25818 | grep -v '^ *+' conftest.er1 >conftest.err |
25819 | rm -f conftest.er1 | |
25820 | cat conftest.err >&5 | |
a848cd7e SC |
25821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25822 | (exit $ac_status); } && | |
5d7b7554 | 25823 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25825 | (eval $ac_try) 2>&5 | |
25826 | ac_status=$? | |
25827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25828 | (exit $ac_status); }; } && | |
25829 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25831 | (eval $ac_try) 2>&5 | |
25832 | ac_status=$? | |
25833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25834 | (exit $ac_status); }; }; then | |
25835 | ac_cv_lib_expat_XML_ParserCreate=yes | |
25836 | else | |
25837 | echo "$as_me: failed program was:" >&5 | |
25838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25839 | ||
25840 | ac_cv_lib_expat_XML_ParserCreate=no | |
25841 | fi | |
ac1cb8d3 VS |
25842 | rm -f conftest.err conftest.$ac_objext \ |
25843 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25844 | LIBS=$ac_check_lib_save_LIBS |
25845 | fi | |
25846 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
25847 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
25848 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
25849 | EXPAT_LINK=" -lexpat" | |
25850 | fi | |
25851 | ||
25852 | fi | |
25853 | fi | |
25854 | if test "x$EXPAT_LINK" = "x" ; then | |
25855 | if test "$wxUSE_EXPAT" = "sys" ; then | |
25856 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
25857 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
25858 | { (exit 1); exit 1; }; } | |
25859 | else | |
25860 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
25861 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
25862 | wxUSE_EXPAT=builtin | |
25863 | fi | |
25864 | else | |
25865 | wxUSE_EXPAT=sys | |
25866 | fi | |
25867 | fi | |
25868 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
25869 | ||
25870 | ||
25871 | subdirs="$subdirs src/expat" | |
25872 | ||
25873 | fi | |
25874 | fi | |
25875 | ||
25876 | ||
25877 | ||
25878 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
25879 | if test "${ac_cv_header_mspack_h+set}" = set; then |
25880 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25881 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25882 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25884 | fi | |
25885 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25886 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25887 | else | |
25888 | # Is the header compilable? | |
25889 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
25890 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
25891 | cat >conftest.$ac_ext <<_ACEOF | |
25892 | /* confdefs.h. */ | |
25893 | _ACEOF | |
25894 | cat confdefs.h >>conftest.$ac_ext | |
25895 | cat >>conftest.$ac_ext <<_ACEOF | |
25896 | /* end confdefs.h. */ | |
25897 | $ac_includes_default | |
25898 | #include <mspack.h> | |
25899 | _ACEOF | |
25900 | rm -f conftest.$ac_objext | |
25901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25902 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25903 | ac_status=$? |
ac1cb8d3 VS |
25904 | grep -v '^ *+' conftest.er1 >conftest.err |
25905 | rm -f conftest.er1 | |
25906 | cat conftest.err >&5 | |
a848cd7e SC |
25907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25908 | (exit $ac_status); } && | |
5d7b7554 | 25909 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25911 | (eval $ac_try) 2>&5 | |
25912 | ac_status=$? | |
25913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25914 | (exit $ac_status); }; } && | |
25915 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25917 | (eval $ac_try) 2>&5 | |
25918 | ac_status=$? | |
25919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25920 | (exit $ac_status); }; }; then | |
25921 | ac_header_compiler=yes | |
25922 | else | |
25923 | echo "$as_me: failed program was:" >&5 | |
25924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25925 | ||
25926 | ac_header_compiler=no | |
25927 | fi | |
ac1cb8d3 | 25928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25929 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25930 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25931 | ||
25932 | # Is the header present? | |
25933 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
25934 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
25935 | cat >conftest.$ac_ext <<_ACEOF | |
25936 | /* confdefs.h. */ | |
25937 | _ACEOF | |
25938 | cat confdefs.h >>conftest.$ac_ext | |
25939 | cat >>conftest.$ac_ext <<_ACEOF | |
25940 | /* end confdefs.h. */ | |
25941 | #include <mspack.h> | |
25942 | _ACEOF | |
25943 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25944 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25945 | ac_status=$? | |
25946 | grep -v '^ *+' conftest.er1 >conftest.err | |
25947 | rm -f conftest.er1 | |
25948 | cat conftest.err >&5 | |
25949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25950 | (exit $ac_status); } >/dev/null; then | |
25951 | if test -s conftest.err; then | |
5d7b7554 VZ |
25952 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25953 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25954 | else |
25955 | ac_cpp_err= | |
25956 | fi | |
25957 | else | |
25958 | ac_cpp_err=yes | |
25959 | fi | |
25960 | if test -z "$ac_cpp_err"; then | |
25961 | ac_header_preproc=yes | |
25962 | else | |
25963 | echo "$as_me: failed program was:" >&5 | |
25964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25965 | ||
25966 | ac_header_preproc=no | |
25967 | fi | |
25968 | rm -f conftest.err conftest.$ac_ext | |
25969 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25970 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25971 | ||
25972 | # So? What about this header? | |
5d7b7554 | 25973 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25974 | yes:no: ) |
a848cd7e SC |
25975 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25976 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25977 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
25978 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
25979 | ac_header_preproc=yes | |
a848cd7e | 25980 | ;; |
ac1cb8d3 | 25981 | no:yes:* ) |
a848cd7e SC |
25982 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
25983 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25984 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
25985 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
25986 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
25987 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
25988 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25989 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25990 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
25991 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25992 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
25993 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25994 | ( |
25995 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25996 | ## ----------------------------------------- ## |
25997 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25998 | ## ----------------------------------------- ## | |
a848cd7e SC |
25999 | _ASBOX |
26000 | ) | | |
26001 | sed "s/^/$as_me: WARNING: /" >&2 | |
26002 | ;; | |
26003 | esac | |
26004 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26005 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26006 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26008 | else | |
26009 | ac_cv_header_mspack_h=$ac_header_preproc | |
26010 | fi | |
26011 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26012 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26013 | ||
26014 | fi | |
26015 | if test $ac_cv_header_mspack_h = yes; then | |
26016 | found_mspack_h=1 | |
26017 | fi | |
26018 | ||
26019 | ||
26020 | if test "x$found_mspack_h" = "x1"; then | |
26021 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
26022 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
26023 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
26024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26025 | else | |
26026 | ac_check_lib_save_LIBS=$LIBS | |
26027 | LIBS="-lmspack $LIBS" | |
26028 | cat >conftest.$ac_ext <<_ACEOF | |
26029 | /* confdefs.h. */ | |
26030 | _ACEOF | |
26031 | cat confdefs.h >>conftest.$ac_ext | |
26032 | cat >>conftest.$ac_ext <<_ACEOF | |
26033 | /* end confdefs.h. */ | |
26034 | ||
26035 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26036 | #ifdef __cplusplus | |
26037 | extern "C" | |
26038 | #endif | |
26039 | /* We use char because int might match the return type of a gcc2 | |
26040 | builtin and then its argument prototype would still apply. */ | |
26041 | char mspack_create_chm_decompressor (); | |
26042 | int | |
26043 | main () | |
26044 | { | |
26045 | mspack_create_chm_decompressor (); | |
26046 | ; | |
26047 | return 0; | |
26048 | } | |
26049 | _ACEOF | |
26050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26052 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26053 | ac_status=$? |
ac1cb8d3 VS |
26054 | grep -v '^ *+' conftest.er1 >conftest.err |
26055 | rm -f conftest.er1 | |
26056 | cat conftest.err >&5 | |
a848cd7e SC |
26057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26058 | (exit $ac_status); } && | |
5d7b7554 | 26059 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26061 | (eval $ac_try) 2>&5 | |
26062 | ac_status=$? | |
26063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26064 | (exit $ac_status); }; } && | |
26065 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26067 | (eval $ac_try) 2>&5 | |
26068 | ac_status=$? | |
26069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26070 | (exit $ac_status); }; }; then | |
26071 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
26072 | else | |
26073 | echo "$as_me: failed program was:" >&5 | |
26074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26075 | ||
26076 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
26077 | fi | |
ac1cb8d3 VS |
26078 | rm -f conftest.err conftest.$ac_objext \ |
26079 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26080 | LIBS=$ac_check_lib_save_LIBS |
26081 | fi | |
26082 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
26083 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
26084 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
26085 | MSPACK_LINK=" -lmspack" | |
26086 | fi | |
26087 | ||
26088 | fi | |
26089 | if test "x$MSPACK_LINK" = "x" ; then | |
26090 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
26091 | fi |
26092 | fi | |
26093 | ||
26094 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
26095 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
26096 | #define wxUSE_LIBMSPACK 1 |
26097 | _ACEOF | |
26098 | ||
a848cd7e SC |
26099 | fi |
26100 | ||
26101 | ||
26102 | ||
26103 | AFMINSTALL= | |
26104 | WIN32INSTALL= | |
26105 | ||
26106 | TOOLKIT= | |
26107 | TOOLKIT_INCLUDE= | |
26108 | WIDGET_SET= | |
26109 | ||
26110 | if test "$USE_WIN32" = 1 ; then | |
26111 | ||
26112 | for ac_header in w32api.h | |
26113 | do | |
26114 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26115 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26116 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26117 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26118 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26120 | fi | |
26121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26122 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26123 | else | |
26124 | # Is the header compilable? | |
26125 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
26126 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
26127 | cat >conftest.$ac_ext <<_ACEOF | |
26128 | /* confdefs.h. */ | |
26129 | _ACEOF | |
26130 | cat confdefs.h >>conftest.$ac_ext | |
26131 | cat >>conftest.$ac_ext <<_ACEOF | |
26132 | /* end confdefs.h. */ | |
26133 | $ac_includes_default | |
26134 | #include <$ac_header> | |
26135 | _ACEOF | |
26136 | rm -f conftest.$ac_objext | |
26137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26138 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26139 | ac_status=$? |
ac1cb8d3 VS |
26140 | grep -v '^ *+' conftest.er1 >conftest.err |
26141 | rm -f conftest.er1 | |
26142 | cat conftest.err >&5 | |
a848cd7e SC |
26143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26144 | (exit $ac_status); } && | |
5d7b7554 | 26145 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26147 | (eval $ac_try) 2>&5 | |
26148 | ac_status=$? | |
26149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26150 | (exit $ac_status); }; } && | |
26151 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26153 | (eval $ac_try) 2>&5 | |
26154 | ac_status=$? | |
26155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26156 | (exit $ac_status); }; }; then | |
26157 | ac_header_compiler=yes | |
26158 | else | |
26159 | echo "$as_me: failed program was:" >&5 | |
26160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26161 | ||
26162 | ac_header_compiler=no | |
26163 | fi | |
ac1cb8d3 | 26164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26165 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26166 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26167 | ||
26168 | # Is the header present? | |
26169 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
26170 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
26171 | cat >conftest.$ac_ext <<_ACEOF | |
26172 | /* confdefs.h. */ | |
26173 | _ACEOF | |
26174 | cat confdefs.h >>conftest.$ac_ext | |
26175 | cat >>conftest.$ac_ext <<_ACEOF | |
26176 | /* end confdefs.h. */ | |
26177 | #include <$ac_header> | |
26178 | _ACEOF | |
26179 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26180 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26181 | ac_status=$? | |
26182 | grep -v '^ *+' conftest.er1 >conftest.err | |
26183 | rm -f conftest.er1 | |
26184 | cat conftest.err >&5 | |
26185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26186 | (exit $ac_status); } >/dev/null; then | |
26187 | if test -s conftest.err; then | |
5d7b7554 VZ |
26188 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26189 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26190 | else |
26191 | ac_cpp_err= | |
26192 | fi | |
26193 | else | |
26194 | ac_cpp_err=yes | |
26195 | fi | |
26196 | if test -z "$ac_cpp_err"; then | |
26197 | ac_header_preproc=yes | |
26198 | else | |
26199 | echo "$as_me: failed program was:" >&5 | |
26200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26201 | ||
26202 | ac_header_preproc=no | |
26203 | fi | |
26204 | rm -f conftest.err conftest.$ac_ext | |
26205 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26206 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26207 | ||
26208 | # So? What about this header? | |
5d7b7554 | 26209 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26210 | yes:no: ) |
a848cd7e SC |
26211 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
26212 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26213 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
26214 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
26215 | ac_header_preproc=yes | |
a848cd7e | 26216 | ;; |
ac1cb8d3 | 26217 | no:yes:* ) |
a848cd7e SC |
26218 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
26219 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26220 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
26221 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
26222 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
26223 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
26224 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
26225 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
26227 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26228 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
26229 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26230 | ( |
26231 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26232 | ## ----------------------------------------- ## |
26233 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26234 | ## ----------------------------------------- ## | |
a848cd7e SC |
26235 | _ASBOX |
26236 | ) | | |
26237 | sed "s/^/$as_me: WARNING: /" >&2 | |
26238 | ;; | |
26239 | esac | |
26240 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26241 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26242 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26244 | else | |
ac1cb8d3 | 26245 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
26246 | fi |
26247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26248 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26249 | ||
26250 | fi | |
26251 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
26252 | cat >>confdefs.h <<_ACEOF | |
26253 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
26254 | _ACEOF | |
26255 | ||
26256 | fi | |
26257 | ||
26258 | done | |
26259 | ||
26260 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26261 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26262 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26263 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26265 | fi | |
26266 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26267 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26268 | else | |
26269 | # Is the header compilable? | |
26270 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
26271 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
26272 | cat >conftest.$ac_ext <<_ACEOF | |
26273 | /* confdefs.h. */ | |
26274 | _ACEOF | |
26275 | cat confdefs.h >>conftest.$ac_ext | |
26276 | cat >>conftest.$ac_ext <<_ACEOF | |
26277 | /* end confdefs.h. */ | |
26278 | $ac_includes_default | |
26279 | #include <windows.h> | |
26280 | _ACEOF | |
26281 | rm -f conftest.$ac_objext | |
26282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26283 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26284 | ac_status=$? |
ac1cb8d3 VS |
26285 | grep -v '^ *+' conftest.er1 >conftest.err |
26286 | rm -f conftest.er1 | |
26287 | cat conftest.err >&5 | |
a848cd7e SC |
26288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26289 | (exit $ac_status); } && | |
5d7b7554 | 26290 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26292 | (eval $ac_try) 2>&5 | |
26293 | ac_status=$? | |
26294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26295 | (exit $ac_status); }; } && | |
26296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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 | ac_header_compiler=yes | |
26303 | else | |
26304 | echo "$as_me: failed program was:" >&5 | |
26305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26306 | ||
26307 | ac_header_compiler=no | |
26308 | fi | |
ac1cb8d3 | 26309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26310 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26311 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26312 | ||
26313 | # Is the header present? | |
26314 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
26315 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
26316 | cat >conftest.$ac_ext <<_ACEOF | |
26317 | /* confdefs.h. */ | |
26318 | _ACEOF | |
26319 | cat confdefs.h >>conftest.$ac_ext | |
26320 | cat >>conftest.$ac_ext <<_ACEOF | |
26321 | /* end confdefs.h. */ | |
26322 | #include <windows.h> | |
26323 | _ACEOF | |
26324 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26325 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26326 | ac_status=$? | |
26327 | grep -v '^ *+' conftest.er1 >conftest.err | |
26328 | rm -f conftest.er1 | |
26329 | cat conftest.err >&5 | |
26330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26331 | (exit $ac_status); } >/dev/null; then | |
26332 | if test -s conftest.err; then | |
5d7b7554 VZ |
26333 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26334 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26335 | else |
26336 | ac_cpp_err= | |
26337 | fi | |
26338 | else | |
26339 | ac_cpp_err=yes | |
26340 | fi | |
26341 | if test -z "$ac_cpp_err"; then | |
26342 | ac_header_preproc=yes | |
26343 | else | |
26344 | echo "$as_me: failed program was:" >&5 | |
26345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26346 | ||
26347 | ac_header_preproc=no | |
26348 | fi | |
26349 | rm -f conftest.err conftest.$ac_ext | |
26350 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26351 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26352 | ||
26353 | # So? What about this header? | |
5d7b7554 | 26354 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26355 | yes:no: ) |
a848cd7e SC |
26356 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26357 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26358 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
26359 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
26360 | ac_header_preproc=yes | |
a848cd7e | 26361 | ;; |
ac1cb8d3 | 26362 | no:yes:* ) |
a848cd7e SC |
26363 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
26364 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26365 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
26366 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
26367 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
26368 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
26369 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26370 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26371 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
26372 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26373 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
26374 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26375 | ( |
26376 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26377 | ## ----------------------------------------- ## |
26378 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26379 | ## ----------------------------------------- ## | |
a848cd7e SC |
26380 | _ASBOX |
26381 | ) | | |
26382 | sed "s/^/$as_me: WARNING: /" >&2 | |
26383 | ;; | |
26384 | esac | |
26385 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26386 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26387 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26389 | else | |
26390 | ac_cv_header_windows_h=$ac_header_preproc | |
26391 | fi | |
26392 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26393 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26394 | ||
26395 | fi | |
26396 | if test $ac_cv_header_windows_h = yes; then | |
26397 | : | |
26398 | else | |
26399 | ||
26400 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
26401 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
26402 | { (exit 1); exit 1; }; } | |
26403 | ||
26404 | fi | |
26405 | ||
26406 | ||
26407 | ||
26408 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
26409 | ||
26410 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
26411 | LIBS="$LIBS -loleacc" | |
26412 | fi | |
26413 | ||
26414 | case "${host}" in | |
26415 | *-*-cygwin* ) | |
26416 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
26417 | esac |
26418 | ||
26419 | if test "$wxUSE_ODBC" = "sys" ; then | |
26420 | wxUSE_ODBC = "yes" | |
26421 | fi | |
26422 | if test "$wxUSE_ODBC" = "yes" ; then | |
26423 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
26424 | cat >>confdefs.h <<\_ACEOF | |
26425 | #define wxUSE_ODBC 1 | |
26426 | _ACEOF | |
26427 | ||
26428 | fi | |
26429 | ||
370d2fd7 | 26430 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
26431 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
26432 | ||
004ee6da | 26433 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 26434 | |
a848cd7e SC |
26435 | WIN32INSTALL=win32install |
26436 | fi | |
26437 | ||
26438 | if test "$wxUSE_GUI" = "yes"; then | |
26439 | USE_GUI=1 | |
26440 | ||
26441 | GUI_TK_LIBRARY= | |
26442 | ||
26443 | WXGTK12= | |
26444 | WXGTK127= | |
26445 | WXGTK20= | |
26446 | WXGPE= | |
26447 | ||
207bc66c RN |
26448 | if test "$wxUSE_COCOA" = 1 ; then |
26449 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
26450 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
26451 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
26452 | wxUSE_PRINTING_ARCHITECTURE=no | |
26453 | fi | |
26454 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
26455 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
26456 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
26457 | wxUSE_DRAG_AND_DROP=no | |
26458 | fi | |
26459 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
26460 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
26461 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
26462 | wxUSE_DRAGIMAGE=no | |
26463 | fi | |
26464 | fi | |
26465 | ||
a848cd7e SC |
26466 | if test "$wxUSE_MSW" = 1 ; then |
26467 | TOOLKIT=MSW | |
26468 | GUIDIST=MSW_DIST | |
26469 | ||
ceec2216 | 26470 | case "${host}" in |
a848cd7e SC |
26471 | *-*-mingw32* ) |
26472 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
26473 | esac | |
26474 | fi | |
26475 | ||
26476 | if test "$wxUSE_GTK" = 1; then | |
5d7b7554 VZ |
26477 | ac_ext=c |
26478 | ac_cpp='$CPP $CPPFLAGS' | |
26479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26482 | ||
26483 | ||
a848cd7e SC |
26484 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
26485 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
26486 | ||
26487 | gtk_version_cached=1 | |
26488 | if test "${wx_cv_lib_gtk+set}" = set; then | |
26489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26490 | else | |
26491 | ||
26492 | gtk_version_cached=0 | |
26493 | echo "$as_me:$LINENO: result: " >&5 | |
26494 | echo "${ECHO_T}" >&6 | |
26495 | ||
26496 | GTK_MODULES= | |
26497 | if test "$wxUSE_THREADS" = "yes"; then | |
26498 | GTK_MODULES=gthread | |
26499 | fi | |
26500 | ||
f597b41c | 26501 | wx_cv_lib_gtk= |
5001df0d MW |
26502 | if test "x$wxGTK_VERSION" != "x1" |
26503 | then | |
26504 | case "${host}" in | |
26505 | *-*-solaris2* ) | |
26506 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 26507 | enable_gtktest=no |
5001df0d MW |
26508 | fi |
26509 | esac | |
26510 | ||
a848cd7e SC |
26511 | # Check whether --enable-gtktest or --disable-gtktest was given. |
26512 | if test "${enable_gtktest+set}" = set; then | |
26513 | enableval="$enable_gtktest" | |
26514 | ||
26515 | else | |
26516 | enable_gtktest=yes | |
26517 | fi; | |
26518 | ||
26519 | pkg_config_args=gtk+-2.0 | |
26520 | for module in . $GTK_MODULES | |
26521 | do | |
26522 | case "$module" in | |
26523 | gthread) | |
26524 | pkg_config_args="$pkg_config_args gthread-2.0" | |
26525 | ;; | |
26526 | esac | |
26527 | done | |
26528 | ||
26529 | no_gtk="" | |
26530 | ||
26531 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26532 | set dummy pkg-config; ac_word=$2 | |
26533 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26535 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26537 | else | |
26538 | case $PKG_CONFIG in | |
26539 | [\\/]* | ?:[\\/]*) | |
26540 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26541 | ;; | |
26542 | *) | |
26543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26544 | for as_dir in $PATH | |
26545 | do | |
26546 | IFS=$as_save_IFS | |
26547 | test -z "$as_dir" && as_dir=. | |
26548 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26550 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26552 | break 2 | |
26553 | fi | |
26554 | done | |
26555 | done | |
26556 | ||
26557 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26558 | ;; | |
26559 | esac | |
26560 | fi | |
26561 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26562 | ||
26563 | if test -n "$PKG_CONFIG"; then | |
26564 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26565 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26566 | else | |
26567 | echo "$as_me:$LINENO: result: no" >&5 | |
26568 | echo "${ECHO_T}no" >&6 | |
26569 | fi | |
26570 | ||
26571 | ||
26572 | if test x$PKG_CONFIG != xno ; then | |
26573 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
26574 | : | |
26575 | else | |
c2218763 | 26576 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
26577 | no_gtk=yes |
26578 | PKG_CONFIG=no | |
26579 | fi | |
26580 | else | |
26581 | no_gtk=yes | |
26582 | fi | |
26583 | ||
26584 | min_gtk_version=2.0.0 | |
26585 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
26586 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
26587 | ||
26588 | if test x$PKG_CONFIG != xno ; then | |
26589 | ## don't try to run the test against uninstalled libtool libs | |
26590 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
26591 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
26592 | enable_gtktest=no | |
26593 | fi | |
26594 | ||
26595 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
26596 | : | |
26597 | else | |
26598 | no_gtk=yes | |
26599 | fi | |
26600 | fi | |
26601 | ||
26602 | if test x"$no_gtk" = x ; then | |
26603 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
26604 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
26605 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26606 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26607 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26608 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26609 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26610 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26611 | if test "x$enable_gtktest" = "xyes" ; then | |
26612 | ac_save_CFLAGS="$CFLAGS" | |
26613 | ac_save_LIBS="$LIBS" | |
26614 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26615 | LIBS="$GTK_LIBS $LIBS" | |
26616 | rm -f conf.gtktest | |
26617 | if test "$cross_compiling" = yes; then | |
26618 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26619 | else | |
26620 | cat >conftest.$ac_ext <<_ACEOF | |
26621 | /* confdefs.h. */ | |
26622 | _ACEOF | |
26623 | cat confdefs.h >>conftest.$ac_ext | |
26624 | cat >>conftest.$ac_ext <<_ACEOF | |
26625 | /* end confdefs.h. */ | |
26626 | ||
26627 | #include <gtk/gtk.h> | |
26628 | #include <stdio.h> | |
26629 | #include <stdlib.h> | |
26630 | ||
26631 | int | |
26632 | main () | |
26633 | { | |
26634 | int major, minor, micro; | |
26635 | char *tmp_version; | |
26636 | ||
26637 | system ("touch conf.gtktest"); | |
26638 | ||
26639 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26640 | tmp_version = g_strdup("$min_gtk_version"); | |
26641 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26642 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26643 | exit(1); | |
26644 | } | |
26645 | ||
26646 | if ((gtk_major_version != $gtk_config_major_version) || | |
26647 | (gtk_minor_version != $gtk_config_minor_version) || | |
26648 | (gtk_micro_version != $gtk_config_micro_version)) | |
26649 | { | |
26650 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26651 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26652 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26653 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
26654 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26655 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26656 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26657 | printf("*** required on your system.\n"); | |
26658 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
26659 | printf("*** to point to the correct configuration files\n"); | |
26660 | } | |
26661 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26662 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26663 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26664 | { | |
26665 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26666 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26667 | printf("*** library (version %d.%d.%d)\n", | |
26668 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26669 | } | |
26670 | else | |
26671 | { | |
26672 | if ((gtk_major_version > major) || | |
26673 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26674 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26675 | { | |
26676 | return 0; | |
26677 | } | |
26678 | else | |
26679 | { | |
26680 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26681 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26682 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26683 | major, minor, micro); | |
26684 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26685 | printf("***\n"); | |
26686 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26687 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
26688 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26689 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
26690 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
26691 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26692 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26693 | } | |
26694 | } | |
26695 | return 1; | |
26696 | } | |
26697 | ||
26698 | _ACEOF | |
26699 | rm -f conftest$ac_exeext | |
26700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26701 | (eval $ac_link) 2>&5 | |
26702 | ac_status=$? | |
26703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26704 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26706 | (eval $ac_try) 2>&5 | |
26707 | ac_status=$? | |
26708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26709 | (exit $ac_status); }; }; then | |
26710 | : | |
26711 | else | |
26712 | echo "$as_me: program exited with status $ac_status" >&5 | |
26713 | echo "$as_me: failed program was:" >&5 | |
26714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26715 | ||
26716 | ( exit $ac_status ) | |
26717 | no_gtk=yes | |
26718 | fi | |
ac1cb8d3 | 26719 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26720 | fi |
26721 | CFLAGS="$ac_save_CFLAGS" | |
26722 | LIBS="$ac_save_LIBS" | |
26723 | fi | |
26724 | fi | |
26725 | if test "x$no_gtk" = x ; then | |
26726 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
26727 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
26728 | wx_cv_lib_gtk=2.0 | |
26729 | else | |
26730 | echo "$as_me:$LINENO: result: no" >&5 | |
26731 | echo "${ECHO_T}no" >&6 | |
26732 | if test "$PKG_CONFIG" = "no" ; then | |
26733 | echo "*** A new enough version of pkg-config was not found." | |
26734 | echo "*** See http://pkgconfig.sourceforge.net" | |
26735 | else | |
26736 | if test -f conf.gtktest ; then | |
26737 | : | |
26738 | else | |
26739 | echo "*** Could not run GTK+ test program, checking why..." | |
26740 | ac_save_CFLAGS="$CFLAGS" | |
26741 | ac_save_LIBS="$LIBS" | |
26742 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26743 | LIBS="$LIBS $GTK_LIBS" | |
26744 | cat >conftest.$ac_ext <<_ACEOF | |
26745 | /* confdefs.h. */ | |
26746 | _ACEOF | |
26747 | cat confdefs.h >>conftest.$ac_ext | |
26748 | cat >>conftest.$ac_ext <<_ACEOF | |
26749 | /* end confdefs.h. */ | |
26750 | ||
26751 | #include <gtk/gtk.h> | |
26752 | #include <stdio.h> | |
26753 | ||
26754 | int | |
26755 | main () | |
26756 | { | |
26757 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26758 | ; | |
26759 | return 0; | |
26760 | } | |
26761 | _ACEOF | |
26762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26764 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26765 | ac_status=$? |
ac1cb8d3 VS |
26766 | grep -v '^ *+' conftest.er1 >conftest.err |
26767 | rm -f conftest.er1 | |
26768 | cat conftest.err >&5 | |
a848cd7e SC |
26769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26770 | (exit $ac_status); } && | |
5d7b7554 | 26771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26773 | (eval $ac_try) 2>&5 | |
26774 | ac_status=$? | |
26775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26776 | (exit $ac_status); }; } && | |
26777 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26779 | (eval $ac_try) 2>&5 | |
26780 | ac_status=$? | |
26781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26782 | (exit $ac_status); }; }; then | |
26783 | echo "*** The test program compiled, but did not run. This usually means" | |
26784 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
26785 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
26786 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26787 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26788 | echo "*** is required on your system" | |
26789 | echo "***" | |
26790 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26791 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26792 | else | |
26793 | echo "$as_me: failed program was:" >&5 | |
26794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26795 | ||
26796 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26797 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
26798 | fi | |
ac1cb8d3 VS |
26799 | rm -f conftest.err conftest.$ac_objext \ |
26800 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26801 | CFLAGS="$ac_save_CFLAGS" |
26802 | LIBS="$ac_save_LIBS" | |
26803 | fi | |
26804 | fi | |
26805 | GTK_CFLAGS="" | |
26806 | GTK_LIBS="" | |
26807 | : | |
26808 | fi | |
26809 | ||
26810 | ||
26811 | rm -f conf.gtktest | |
26812 | ||
5001df0d MW |
26813 | |
26814 | case "${host}" in | |
26815 | *-*-solaris2* ) | |
26816 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
26817 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
26818 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
26819 | fi | |
26820 | if test "$wxUSE_SHARED" != "yes"; then | |
26821 | GTK_LIBS="$GTK_LIBS -lX11" | |
26822 | fi | |
26823 | esac | |
f597b41c MW |
26824 | fi |
26825 | ||
f34ca037 MW |
26826 | if test -z "$wx_cv_lib_gtk"; then |
26827 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
26828 | |
26829 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26830 | if test "${with_gtk_prefix+set}" = set; then | |
26831 | withval="$with_gtk_prefix" | |
26832 | gtk_config_prefix="$withval" | |
26833 | else | |
26834 | gtk_config_prefix="" | |
26835 | fi; | |
26836 | ||
26837 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26838 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26839 | withval="$with_gtk_exec_prefix" | |
26840 | gtk_config_exec_prefix="$withval" | |
26841 | else | |
26842 | gtk_config_exec_prefix="" | |
26843 | fi; | |
26844 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26845 | if test "${enable_gtktest+set}" = set; then | |
26846 | enableval="$enable_gtktest" | |
26847 | ||
26848 | else | |
26849 | enable_gtktest=yes | |
26850 | fi; | |
26851 | ||
26852 | for module in . $GTK_MODULES | |
26853 | do | |
26854 | case "$module" in | |
26855 | gthread) | |
26856 | gtk_config_args="$gtk_config_args gthread" | |
26857 | ;; | |
26858 | esac | |
26859 | done | |
26860 | ||
26861 | if test x$gtk_config_exec_prefix != x ; then | |
26862 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26863 | if test x${GTK_CONFIG+set} != xset ; then | |
26864 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26865 | fi | |
26866 | fi | |
26867 | if test x$gtk_config_prefix != x ; then | |
26868 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26869 | if test x${GTK_CONFIG+set} != xset ; then | |
26870 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26871 | fi | |
26872 | fi | |
26873 | ||
26874 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26875 | set dummy gtk-config; ac_word=$2 | |
26876 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26878 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26880 | else | |
26881 | case $GTK_CONFIG in | |
26882 | [\\/]* | ?:[\\/]*) | |
26883 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26884 | ;; | |
26885 | *) | |
26886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26887 | for as_dir in $PATH | |
26888 | do | |
26889 | IFS=$as_save_IFS | |
26890 | test -z "$as_dir" && as_dir=. | |
26891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26892 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26893 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26895 | break 2 | |
26896 | fi | |
26897 | done | |
26898 | done | |
26899 | ||
26900 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26901 | ;; | |
26902 | esac | |
26903 | fi | |
26904 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26905 | ||
26906 | if test -n "$GTK_CONFIG"; then | |
26907 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26908 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26909 | else | |
26910 | echo "$as_me:$LINENO: result: no" >&5 | |
26911 | echo "${ECHO_T}no" >&6 | |
26912 | fi | |
26913 | ||
26914 | min_gtk_version=1.2.7 | |
26915 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26916 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26917 | no_gtk="" | |
26918 | if test "$GTK_CONFIG" = "no" ; then | |
26919 | no_gtk=yes | |
26920 | else | |
26921 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26922 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26923 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26924 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26925 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26926 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26927 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26928 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26929 | if test "x$enable_gtktest" = "xyes" ; then | |
26930 | ac_save_CFLAGS="$CFLAGS" | |
26931 | ac_save_LIBS="$LIBS" | |
26932 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26933 | LIBS="$GTK_LIBS $LIBS" | |
26934 | rm -f conf.gtktest | |
26935 | if test "$cross_compiling" = yes; then | |
26936 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26937 | else | |
26938 | cat >conftest.$ac_ext <<_ACEOF | |
26939 | /* confdefs.h. */ | |
26940 | _ACEOF | |
26941 | cat confdefs.h >>conftest.$ac_ext | |
26942 | cat >>conftest.$ac_ext <<_ACEOF | |
26943 | /* end confdefs.h. */ | |
26944 | ||
26945 | #include <gtk/gtk.h> | |
26946 | #include <stdio.h> | |
26947 | #include <stdlib.h> | |
26948 | ||
26949 | int | |
26950 | main () | |
26951 | { | |
26952 | int major, minor, micro; | |
26953 | char *tmp_version; | |
26954 | ||
26955 | system ("touch conf.gtktest"); | |
26956 | ||
26957 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26958 | tmp_version = g_strdup("$min_gtk_version"); | |
26959 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26960 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26961 | exit(1); | |
26962 | } | |
26963 | ||
26964 | if ((gtk_major_version != $gtk_config_major_version) || | |
26965 | (gtk_minor_version != $gtk_config_minor_version) || | |
26966 | (gtk_micro_version != $gtk_config_micro_version)) | |
26967 | { | |
26968 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26969 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26970 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26971 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26972 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26973 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26974 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26975 | printf("*** required on your system.\n"); | |
26976 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26977 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26978 | printf("*** before re-running configure\n"); | |
26979 | } | |
26980 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26981 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26982 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26983 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26984 | { | |
26985 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26986 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26987 | printf("*** library (version %d.%d.%d)\n", | |
26988 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26989 | } | |
26990 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26991 | else | |
26992 | { | |
26993 | if ((gtk_major_version > major) || | |
26994 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26995 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26996 | { | |
26997 | return 0; | |
26998 | } | |
26999 | else | |
27000 | { | |
27001 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27002 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27003 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27004 | major, minor, micro); | |
27005 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27006 | printf("***\n"); | |
27007 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27008 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27009 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27010 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27011 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27012 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27013 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27014 | } | |
27015 | } | |
27016 | return 1; | |
27017 | } | |
27018 | ||
27019 | _ACEOF | |
27020 | rm -f conftest$ac_exeext | |
27021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27022 | (eval $ac_link) 2>&5 | |
27023 | ac_status=$? | |
27024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27025 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27027 | (eval $ac_try) 2>&5 | |
27028 | ac_status=$? | |
27029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27030 | (exit $ac_status); }; }; then | |
27031 | : | |
27032 | else | |
27033 | echo "$as_me: program exited with status $ac_status" >&5 | |
27034 | echo "$as_me: failed program was:" >&5 | |
27035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27036 | ||
27037 | ( exit $ac_status ) | |
27038 | no_gtk=yes | |
27039 | fi | |
ac1cb8d3 | 27040 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27041 | fi |
27042 | CFLAGS="$ac_save_CFLAGS" | |
27043 | LIBS="$ac_save_LIBS" | |
27044 | fi | |
27045 | fi | |
27046 | if test "x$no_gtk" = x ; then | |
27047 | echo "$as_me:$LINENO: result: yes" >&5 | |
27048 | echo "${ECHO_T}yes" >&6 | |
27049 | wx_cv_lib_gtk=1.2.7 | |
27050 | else | |
27051 | echo "$as_me:$LINENO: result: no" >&5 | |
27052 | echo "${ECHO_T}no" >&6 | |
27053 | if test "$GTK_CONFIG" = "no" ; then | |
27054 | echo "*** The gtk-config script installed by GTK could not be found" | |
27055 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27056 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27057 | echo "*** full path to gtk-config." | |
27058 | else | |
27059 | if test -f conf.gtktest ; then | |
27060 | : | |
27061 | else | |
27062 | echo "*** Could not run GTK test program, checking why..." | |
27063 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27064 | LIBS="$LIBS $GTK_LIBS" | |
27065 | cat >conftest.$ac_ext <<_ACEOF | |
27066 | /* confdefs.h. */ | |
27067 | _ACEOF | |
27068 | cat confdefs.h >>conftest.$ac_ext | |
27069 | cat >>conftest.$ac_ext <<_ACEOF | |
27070 | /* end confdefs.h. */ | |
27071 | ||
27072 | #include <gtk/gtk.h> | |
27073 | #include <stdio.h> | |
27074 | ||
27075 | int | |
27076 | main () | |
27077 | { | |
27078 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27079 | ; | |
27080 | return 0; | |
27081 | } | |
27082 | _ACEOF | |
27083 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27085 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27086 | ac_status=$? |
ac1cb8d3 VS |
27087 | grep -v '^ *+' conftest.er1 >conftest.err |
27088 | rm -f conftest.er1 | |
27089 | cat conftest.err >&5 | |
a848cd7e SC |
27090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27091 | (exit $ac_status); } && | |
5d7b7554 | 27092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27094 | (eval $ac_try) 2>&5 | |
27095 | ac_status=$? | |
27096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27097 | (exit $ac_status); }; } && | |
27098 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27100 | (eval $ac_try) 2>&5 | |
27101 | ac_status=$? | |
27102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27103 | (exit $ac_status); }; }; then | |
27104 | echo "*** The test program compiled, but did not run. This usually means" | |
27105 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27106 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27107 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27108 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27109 | echo "*** is required on your system" | |
27110 | echo "***" | |
27111 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27112 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27113 | echo "***" | |
27114 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27115 | echo "*** came with the system with the command" | |
27116 | echo "***" | |
27117 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27118 | else | |
27119 | echo "$as_me: failed program was:" >&5 | |
27120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27121 | ||
27122 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27123 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27124 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27125 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27126 | fi | |
ac1cb8d3 VS |
27127 | rm -f conftest.err conftest.$ac_objext \ |
27128 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27129 | CFLAGS="$ac_save_CFLAGS" |
27130 | LIBS="$ac_save_LIBS" | |
27131 | fi | |
27132 | fi | |
27133 | GTK_CFLAGS="" | |
27134 | GTK_LIBS="" | |
27135 | : | |
27136 | fi | |
27137 | ||
27138 | ||
27139 | rm -f conf.gtktest | |
27140 | ||
27141 | ||
f34ca037 | 27142 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
27143 | |
27144 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27145 | if test "${with_gtk_prefix+set}" = set; then | |
27146 | withval="$with_gtk_prefix" | |
27147 | gtk_config_prefix="$withval" | |
27148 | else | |
27149 | gtk_config_prefix="" | |
27150 | fi; | |
27151 | ||
27152 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27153 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27154 | withval="$with_gtk_exec_prefix" | |
27155 | gtk_config_exec_prefix="$withval" | |
27156 | else | |
27157 | gtk_config_exec_prefix="" | |
27158 | fi; | |
27159 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27160 | if test "${enable_gtktest+set}" = set; then | |
27161 | enableval="$enable_gtktest" | |
27162 | ||
27163 | else | |
27164 | enable_gtktest=yes | |
27165 | fi; | |
27166 | ||
27167 | for module in . $GTK_MODULES | |
27168 | do | |
27169 | case "$module" in | |
27170 | gthread) | |
27171 | gtk_config_args="$gtk_config_args gthread" | |
27172 | ;; | |
27173 | esac | |
27174 | done | |
27175 | ||
27176 | if test x$gtk_config_exec_prefix != x ; then | |
27177 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27178 | if test x${GTK_CONFIG+set} != xset ; then | |
27179 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27180 | fi | |
27181 | fi | |
27182 | if test x$gtk_config_prefix != x ; then | |
27183 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27184 | if test x${GTK_CONFIG+set} != xset ; then | |
27185 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27186 | fi | |
27187 | fi | |
27188 | ||
27189 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27190 | set dummy gtk-config; ac_word=$2 | |
27191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27193 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27195 | else | |
27196 | case $GTK_CONFIG in | |
27197 | [\\/]* | ?:[\\/]*) | |
27198 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27199 | ;; | |
27200 | *) | |
27201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27202 | for as_dir in $PATH | |
27203 | do | |
27204 | IFS=$as_save_IFS | |
27205 | test -z "$as_dir" && as_dir=. | |
27206 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27207 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27208 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27209 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27210 | break 2 | |
27211 | fi | |
27212 | done | |
27213 | done | |
27214 | ||
27215 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27216 | ;; | |
27217 | esac | |
27218 | fi | |
27219 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27220 | ||
27221 | if test -n "$GTK_CONFIG"; then | |
27222 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27223 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27224 | else | |
27225 | echo "$as_me:$LINENO: result: no" >&5 | |
27226 | echo "${ECHO_T}no" >&6 | |
27227 | fi | |
27228 | ||
27229 | min_gtk_version=1.2.3 | |
27230 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27231 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27232 | no_gtk="" | |
27233 | if test "$GTK_CONFIG" = "no" ; then | |
27234 | no_gtk=yes | |
27235 | else | |
27236 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27237 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27238 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27239 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27240 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27241 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27242 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27243 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27244 | if test "x$enable_gtktest" = "xyes" ; then | |
27245 | ac_save_CFLAGS="$CFLAGS" | |
27246 | ac_save_LIBS="$LIBS" | |
27247 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27248 | LIBS="$GTK_LIBS $LIBS" | |
27249 | rm -f conf.gtktest | |
27250 | if test "$cross_compiling" = yes; then | |
27251 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27252 | else | |
27253 | cat >conftest.$ac_ext <<_ACEOF | |
27254 | /* confdefs.h. */ | |
27255 | _ACEOF | |
27256 | cat confdefs.h >>conftest.$ac_ext | |
27257 | cat >>conftest.$ac_ext <<_ACEOF | |
27258 | /* end confdefs.h. */ | |
27259 | ||
27260 | #include <gtk/gtk.h> | |
27261 | #include <stdio.h> | |
27262 | #include <stdlib.h> | |
27263 | ||
27264 | int | |
27265 | main () | |
27266 | { | |
27267 | int major, minor, micro; | |
27268 | char *tmp_version; | |
27269 | ||
27270 | system ("touch conf.gtktest"); | |
27271 | ||
27272 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27273 | tmp_version = g_strdup("$min_gtk_version"); | |
27274 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27275 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27276 | exit(1); | |
27277 | } | |
27278 | ||
27279 | if ((gtk_major_version != $gtk_config_major_version) || | |
27280 | (gtk_minor_version != $gtk_config_minor_version) || | |
27281 | (gtk_micro_version != $gtk_config_micro_version)) | |
27282 | { | |
27283 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27284 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27285 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27286 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27287 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27288 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27289 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27290 | printf("*** required on your system.\n"); | |
27291 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27292 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27293 | printf("*** before re-running configure\n"); | |
27294 | } | |
27295 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27296 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27297 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27298 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27299 | { | |
27300 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27301 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27302 | printf("*** library (version %d.%d.%d)\n", | |
27303 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27304 | } | |
27305 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27306 | else | |
27307 | { | |
27308 | if ((gtk_major_version > major) || | |
27309 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27310 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27311 | { | |
27312 | return 0; | |
27313 | } | |
27314 | else | |
27315 | { | |
27316 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27317 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27318 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27319 | major, minor, micro); | |
27320 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27321 | printf("***\n"); | |
27322 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27323 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27324 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27325 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27326 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27327 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27328 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27329 | } | |
27330 | } | |
27331 | return 1; | |
27332 | } | |
27333 | ||
27334 | _ACEOF | |
27335 | rm -f conftest$ac_exeext | |
27336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27337 | (eval $ac_link) 2>&5 | |
27338 | ac_status=$? | |
27339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27342 | (eval $ac_try) 2>&5 | |
27343 | ac_status=$? | |
27344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27345 | (exit $ac_status); }; }; then | |
27346 | : | |
27347 | else | |
27348 | echo "$as_me: program exited with status $ac_status" >&5 | |
27349 | echo "$as_me: failed program was:" >&5 | |
27350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27351 | ||
27352 | ( exit $ac_status ) | |
27353 | no_gtk=yes | |
27354 | fi | |
ac1cb8d3 | 27355 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27356 | fi |
27357 | CFLAGS="$ac_save_CFLAGS" | |
27358 | LIBS="$ac_save_LIBS" | |
27359 | fi | |
27360 | fi | |
27361 | if test "x$no_gtk" = x ; then | |
27362 | echo "$as_me:$LINENO: result: yes" >&5 | |
27363 | echo "${ECHO_T}yes" >&6 | |
27364 | wx_cv_lib_gtk=1.2.3 | |
27365 | else | |
27366 | echo "$as_me:$LINENO: result: no" >&5 | |
27367 | echo "${ECHO_T}no" >&6 | |
27368 | if test "$GTK_CONFIG" = "no" ; then | |
27369 | echo "*** The gtk-config script installed by GTK could not be found" | |
27370 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27371 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27372 | echo "*** full path to gtk-config." | |
27373 | else | |
27374 | if test -f conf.gtktest ; then | |
27375 | : | |
27376 | else | |
27377 | echo "*** Could not run GTK test program, checking why..." | |
27378 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27379 | LIBS="$LIBS $GTK_LIBS" | |
27380 | cat >conftest.$ac_ext <<_ACEOF | |
27381 | /* confdefs.h. */ | |
27382 | _ACEOF | |
27383 | cat confdefs.h >>conftest.$ac_ext | |
27384 | cat >>conftest.$ac_ext <<_ACEOF | |
27385 | /* end confdefs.h. */ | |
27386 | ||
27387 | #include <gtk/gtk.h> | |
27388 | #include <stdio.h> | |
27389 | ||
27390 | int | |
27391 | main () | |
27392 | { | |
27393 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27394 | ; | |
27395 | return 0; | |
27396 | } | |
27397 | _ACEOF | |
27398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27400 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27401 | ac_status=$? |
ac1cb8d3 VS |
27402 | grep -v '^ *+' conftest.er1 >conftest.err |
27403 | rm -f conftest.er1 | |
27404 | cat conftest.err >&5 | |
a848cd7e SC |
27405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27406 | (exit $ac_status); } && | |
5d7b7554 | 27407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27409 | (eval $ac_try) 2>&5 | |
27410 | ac_status=$? | |
27411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27412 | (exit $ac_status); }; } && | |
27413 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27415 | (eval $ac_try) 2>&5 | |
27416 | ac_status=$? | |
27417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27418 | (exit $ac_status); }; }; then | |
27419 | echo "*** The test program compiled, but did not run. This usually means" | |
27420 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27421 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27422 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27423 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27424 | echo "*** is required on your system" | |
27425 | echo "***" | |
27426 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27427 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27428 | echo "***" | |
27429 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27430 | echo "*** came with the system with the command" | |
27431 | echo "***" | |
27432 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27433 | else | |
27434 | echo "$as_me: failed program was:" >&5 | |
27435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27436 | ||
27437 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27438 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27439 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27440 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27441 | fi | |
ac1cb8d3 VS |
27442 | rm -f conftest.err conftest.$ac_objext \ |
27443 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27444 | CFLAGS="$ac_save_CFLAGS" |
27445 | LIBS="$ac_save_LIBS" | |
27446 | fi | |
27447 | fi | |
27448 | GTK_CFLAGS="" | |
27449 | GTK_LIBS="" | |
27450 | : | |
27451 | fi | |
27452 | ||
27453 | ||
27454 | rm -f conf.gtktest | |
27455 | ||
f34ca037 | 27456 | fi |
a848cd7e SC |
27457 | fi |
27458 | fi | |
27459 | ||
27460 | if test -z "$wx_cv_lib_gtk"; then | |
27461 | wx_cv_lib_gtk=none | |
27462 | else | |
27463 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 27464 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
27465 | fi |
27466 | ||
27467 | ||
27468 | fi | |
27469 | ||
27470 | ||
27471 | if test "$gtk_version_cached" = 1; then | |
27472 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
27473 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
27474 | fi | |
27475 | ||
27476 | case "$wx_cv_lib_gtk" in | |
27477 | 2.0) WXGTK20=1 | |
27478 | TOOLKIT_VERSION=2 | |
27479 | ;; | |
27480 | 1.2.7) WXGTK127=1 | |
27481 | WXGTK12=1 | |
27482 | ;; | |
27483 | 1.2.3) WXGTK12=1 | |
27484 | ;; | |
27485 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
27486 | The development files for GTK+ were not found. For GTK+ 2, please |
27487 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27488 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27489 | and that the version is 1.2.3 or above. Also check that the | |
27490 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27491 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27492 | " >&5 |
27493 | echo "$as_me: error: | |
f597b41c MW |
27494 | The development files for GTK+ were not found. For GTK+ 2, please |
27495 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27496 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27497 | and that the version is 1.2.3 or above. Also check that the | |
27498 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27499 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27500 | " >&2;} |
27501 | { (exit 1); exit 1; }; } | |
27502 | ;; | |
27503 | esac | |
27504 | ||
27505 | if test "$WXGTK20" = 1; then | |
e56f4f9e | 27506 | save_CXXFLAGS="$CFLAGS" |
304205f1 | 27507 | save_LIBS="$LIBS" |
c92ad099 | 27508 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 27509 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 27510 | |
d12aef51 VZ |
27511 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
27512 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
27513 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
27514 | /* confdefs.h. */ |
27515 | _ACEOF | |
27516 | cat confdefs.h >>conftest.$ac_ext | |
27517 | cat >>conftest.$ac_ext <<_ACEOF | |
27518 | /* end confdefs.h. */ | |
304205f1 | 27519 | |
d12aef51 | 27520 | #include <gtk/gtk.h> |
304205f1 | 27521 | |
d12aef51 VZ |
27522 | int |
27523 | main () | |
27524 | { | |
304205f1 | 27525 | |
d12aef51 | 27526 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
27527 | |
27528 | ; | |
27529 | return 0; | |
27530 | } | |
27531 | _ACEOF | |
27532 | rm -f conftest.$ac_objext | |
27533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27534 | (eval $ac_compile) 2>conftest.er1 | |
27535 | ac_status=$? | |
27536 | grep -v '^ *+' conftest.er1 >conftest.err | |
27537 | rm -f conftest.er1 | |
27538 | cat conftest.err >&5 | |
27539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27540 | (exit $ac_status); } && | |
e56f4f9e | 27541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
27542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27543 | (eval $ac_try) 2>&5 | |
27544 | ac_status=$? | |
27545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27546 | (exit $ac_status); }; } && | |
27547 | { ac_try='test -s conftest.$ac_objext' | |
27548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27549 | (eval $ac_try) 2>&5 | |
27550 | ac_status=$? | |
27551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27552 | (exit $ac_status); }; }; then | |
27553 | ||
27554 | echo "$as_me:$LINENO: result: no" >&5 | |
27555 | echo "${ECHO_T}no" >&6 | |
27556 | ||
27557 | else | |
27558 | echo "$as_me: failed program was:" >&5 | |
27559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27560 | ||
27561 | ||
27562 | cat >>confdefs.h <<\_ACEOF | |
27563 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
27564 | _ACEOF | |
27565 | ||
27566 | echo "$as_me:$LINENO: result: yes" >&5 | |
27567 | echo "${ECHO_T}yes" >&6 | |
27568 | ||
27569 | fi | |
27570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27571 | ||
9755e73b VS |
27572 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
27573 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
27574 | cat >conftest.$ac_ext <<_ACEOF | |
27575 | /* confdefs.h. */ | |
27576 | _ACEOF | |
27577 | cat confdefs.h >>conftest.$ac_ext | |
27578 | cat >>conftest.$ac_ext <<_ACEOF | |
27579 | /* end confdefs.h. */ | |
27580 | ||
27581 | #include <gtk/gtk.h> | |
27582 | ||
27583 | int | |
27584 | main () | |
27585 | { | |
27586 | ||
27587 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 27588 | Not GTK+ 2.4 |
9755e73b VS |
27589 | #endif |
27590 | ||
27591 | ; | |
27592 | return 0; | |
27593 | } | |
27594 | _ACEOF | |
27595 | rm -f conftest.$ac_objext | |
27596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27597 | (eval $ac_compile) 2>conftest.er1 | |
27598 | ac_status=$? | |
27599 | grep -v '^ *+' conftest.er1 >conftest.err | |
27600 | rm -f conftest.er1 | |
27601 | cat conftest.err >&5 | |
27602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27603 | (exit $ac_status); } && | |
e56f4f9e | 27604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
27605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27606 | (eval $ac_try) 2>&5 | |
27607 | ac_status=$? | |
27608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27609 | (exit $ac_status); }; } && | |
27610 | { ac_try='test -s conftest.$ac_objext' | |
27611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27612 | (eval $ac_try) 2>&5 | |
27613 | ac_status=$? | |
27614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27615 | (exit $ac_status); }; }; then | |
27616 | ||
27617 | cat >>confdefs.h <<\_ACEOF | |
27618 | #define __WXGTK24__ 1 | |
27619 | _ACEOF | |
27620 | ||
27621 | echo "$as_me:$LINENO: result: yes" >&5 | |
27622 | echo "${ECHO_T}yes" >&6 | |
27623 | ||
27624 | else | |
27625 | echo "$as_me: failed program was:" >&5 | |
27626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27627 | ||
27628 | ||
27629 | echo "$as_me:$LINENO: result: no" >&5 | |
27630 | echo "${ECHO_T}no" >&6 | |
27631 | ||
27632 | fi | |
27633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27634 | ||
304205f1 VS |
27635 | CFLAGS="$save_CFLAGS" |
27636 | LIBS="$save_LIBS" | |
a848cd7e SC |
27637 | else |
27638 | if test "$wxUSE_UNICODE" = "yes"; then | |
27639 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
27640 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
27641 | wxUSE_UNICODE=no | |
27642 | fi | |
27643 | fi | |
27644 | ||
e56f4f9e VZ |
27645 | ac_ext=cc |
27646 | ac_cpp='$CXXCPP $CPPFLAGS' | |
27647 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27648 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27649 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27650 | ||
27651 | ||
a848cd7e SC |
27652 | if test "$USE_DARWIN" != 1; then |
27653 | ||
27654 | for ac_func in poll | |
27655 | do | |
27656 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27657 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27658 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27659 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27661 | else | |
27662 | cat >conftest.$ac_ext <<_ACEOF | |
27663 | /* confdefs.h. */ | |
27664 | _ACEOF | |
27665 | cat confdefs.h >>conftest.$ac_ext | |
27666 | cat >>conftest.$ac_ext <<_ACEOF | |
27667 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27668 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
27669 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27670 | #define $ac_func innocuous_$ac_func | |
27671 | ||
a848cd7e SC |
27672 | /* System header to define __stub macros and hopefully few prototypes, |
27673 | which can conflict with char $ac_func (); below. | |
27674 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27675 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27676 | |
a848cd7e SC |
27677 | #ifdef __STDC__ |
27678 | # include <limits.h> | |
27679 | #else | |
27680 | # include <assert.h> | |
27681 | #endif | |
ac1cb8d3 VS |
27682 | |
27683 | #undef $ac_func | |
27684 | ||
a848cd7e SC |
27685 | /* Override any gcc2 internal prototype to avoid an error. */ |
27686 | #ifdef __cplusplus | |
27687 | extern "C" | |
27688 | { | |
27689 | #endif | |
27690 | /* We use char because int might match the return type of a gcc2 | |
27691 | builtin and then its argument prototype would still apply. */ | |
27692 | char $ac_func (); | |
27693 | /* The GNU C library defines this for functions which it implements | |
27694 | to always fail with ENOSYS. Some functions are actually named | |
27695 | something starting with __ and the normal name is an alias. */ | |
27696 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27697 | choke me | |
27698 | #else | |
27699 | char (*f) () = $ac_func; | |
27700 | #endif | |
27701 | #ifdef __cplusplus | |
27702 | } | |
27703 | #endif | |
27704 | ||
27705 | int | |
27706 | main () | |
27707 | { | |
27708 | return f != $ac_func; | |
27709 | ; | |
27710 | return 0; | |
27711 | } | |
27712 | _ACEOF | |
27713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27715 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27716 | ac_status=$? |
ac1cb8d3 VS |
27717 | grep -v '^ *+' conftest.er1 >conftest.err |
27718 | rm -f conftest.er1 | |
27719 | cat conftest.err >&5 | |
a848cd7e SC |
27720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27721 | (exit $ac_status); } && | |
5d7b7554 | 27722 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27724 | (eval $ac_try) 2>&5 | |
27725 | ac_status=$? | |
27726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27727 | (exit $ac_status); }; } && | |
27728 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27730 | (eval $ac_try) 2>&5 | |
27731 | ac_status=$? | |
27732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27733 | (exit $ac_status); }; }; then | |
27734 | eval "$as_ac_var=yes" | |
27735 | else | |
27736 | echo "$as_me: failed program was:" >&5 | |
27737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27738 | ||
27739 | eval "$as_ac_var=no" | |
27740 | fi | |
ac1cb8d3 VS |
27741 | rm -f conftest.err conftest.$ac_objext \ |
27742 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27743 | fi |
27744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27745 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27746 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27747 | cat >>confdefs.h <<_ACEOF | |
27748 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27749 | _ACEOF | |
27750 | ||
27751 | fi | |
27752 | done | |
27753 | ||
27754 | fi | |
27755 | ||
27756 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
27757 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
27758 | ||
27759 | AFMINSTALL=afminstall | |
27760 | TOOLKIT=GTK | |
27761 | GUIDIST=GTK_DIST | |
27762 | ||
27763 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
27764 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
27765 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
27766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27767 | else | |
27768 | ac_check_lib_save_LIBS=$LIBS | |
27769 | LIBS="-lgdk $LIBS" | |
27770 | cat >conftest.$ac_ext <<_ACEOF | |
27771 | /* confdefs.h. */ | |
27772 | _ACEOF | |
27773 | cat confdefs.h >>conftest.$ac_ext | |
27774 | cat >>conftest.$ac_ext <<_ACEOF | |
27775 | /* end confdefs.h. */ | |
27776 | ||
27777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27778 | #ifdef __cplusplus | |
27779 | extern "C" | |
27780 | #endif | |
27781 | /* We use char because int might match the return type of a gcc2 | |
27782 | builtin and then its argument prototype would still apply. */ | |
27783 | char gdk_im_open (); | |
27784 | int | |
27785 | main () | |
27786 | { | |
27787 | gdk_im_open (); | |
27788 | ; | |
27789 | return 0; | |
27790 | } | |
27791 | _ACEOF | |
27792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27794 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27795 | ac_status=$? |
ac1cb8d3 VS |
27796 | grep -v '^ *+' conftest.er1 >conftest.err |
27797 | rm -f conftest.er1 | |
27798 | cat conftest.err >&5 | |
a848cd7e SC |
27799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27800 | (exit $ac_status); } && | |
5d7b7554 | 27801 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27803 | (eval $ac_try) 2>&5 | |
27804 | ac_status=$? | |
27805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27806 | (exit $ac_status); }; } && | |
27807 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27809 | (eval $ac_try) 2>&5 | |
27810 | ac_status=$? | |
27811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27812 | (exit $ac_status); }; }; then | |
27813 | ac_cv_lib_gdk_gdk_im_open=yes | |
27814 | else | |
27815 | echo "$as_me: failed program was:" >&5 | |
27816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27817 | ||
27818 | ac_cv_lib_gdk_gdk_im_open=no | |
27819 | fi | |
ac1cb8d3 VS |
27820 | rm -f conftest.err conftest.$ac_objext \ |
27821 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27822 | LIBS=$ac_check_lib_save_LIBS |
27823 | fi | |
27824 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
27825 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
27826 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
27827 | cat >>confdefs.h <<\_ACEOF | |
27828 | #define HAVE_XIM 1 | |
27829 | _ACEOF | |
27830 | ||
27831 | fi | |
27832 | ||
27833 | ||
27834 | ||
27835 | if test "$wxUSE_GPE" = "yes"; then | |
27836 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
27837 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
27838 | ||
0ad5d837 VZ |
27839 | ac_find_libraries= |
27840 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 27841 | do |
3eca31dc | 27842 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
27843 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
27844 | ac_find_libraries=$ac_dir | |
27845 | break 2 | |
27846 | fi | |
27847 | done | |
27848 | done | |
27849 | ||
27850 | if test "$ac_find_libraries" != "" ; then | |
27851 | ||
0ad5d837 | 27852 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
27853 | ac_path_to_link="" |
27854 | else | |
0ad5d837 VZ |
27855 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
27856 | result=$? | |
27857 | if test $result = 0; then | |
27858 | ac_path_to_link="" | |
27859 | else | |
27860 | ac_path_to_link=" -L$ac_find_libraries" | |
27861 | fi | |
a848cd7e SC |
27862 | fi |
27863 | ||
27864 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
27865 | WXGPE=1 | |
0ad5d837 VZ |
27866 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
27867 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
27868 | else |
27869 | echo "$as_me:$LINENO: result: not found" >&5 | |
27870 | echo "${ECHO_T}not found" >&6 | |
27871 | fi | |
27872 | ||
27873 | fi | |
27874 | fi | |
27875 | ||
27876 | if test "$wxUSE_MGL" = 1; then | |
27877 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
27878 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
27879 | if test "x$MGL_ROOT" = x ; then | |
27880 | echo "$as_me:$LINENO: result: not found" >&5 | |
27881 | echo "${ECHO_T}not found" >&6 | |
27882 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
27883 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
27884 | { (exit 1); exit 1; }; } | |
27885 | else | |
27886 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
27887 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
27888 | fi | |
27889 | ||
27890 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
27891 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
27892 | case "${host}" in | |
27893 | *-*-linux* ) | |
27894 | if test "x$wxUSE_SHARED" = xyes ; then | |
27895 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
27896 | else | |
27897 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
27898 | fi | |
27899 | ;; | |
27900 | *-pc-msdosdjgpp ) | |
27901 | mgl_os_candidates="dos32/dj2" | |
27902 | ;; | |
27903 | *) | |
27904 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
27905 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
27906 | { (exit 1); exit 1; }; } | |
27907 | esac | |
27908 | ||
27909 | mgl_lib_type="" | |
27910 | mgl_os="" | |
27911 | ||
27912 | for mgl_os_i in $mgl_os_candidates ; do | |
27913 | if test "x$mgl_os" = x ; then | |
27914 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
27915 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
27916 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
27917 | mgl_lib_type=debug | |
27918 | mgl_os=$mgl_os_i | |
27919 | fi | |
27920 | fi | |
27921 | if test "x$mgl_lib_type" = x ; then | |
27922 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
27923 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
27924 | mgl_lib_type=release | |
27925 | mgl_os=$mgl_os_i | |
27926 | fi | |
27927 | fi | |
27928 | fi | |
27929 | done | |
27930 | ||
27931 | if test "x$mgl_os" = x ; then | |
27932 | echo "$as_me:$LINENO: result: not found" >&5 | |
27933 | echo "${ECHO_T}not found" >&6 | |
27934 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
27935 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
27936 | { (exit 1); exit 1; }; } | |
27937 | fi | |
27938 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
27939 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
27940 | ||
27941 | wxUSE_UNIVERSAL="yes" | |
27942 | ||
27943 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
27944 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
27945 | ||
27946 | AFMINSTALL=afminstall | |
27947 | TOOLKIT=MGL | |
27948 | GUIDIST=MGL_DIST | |
27949 | fi | |
27950 | ||
27951 | if test "$wxUSE_MICROWIN" = 1; then | |
27952 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
27953 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
27954 | if test "x$MICROWINDOWS" = x ; then | |
27955 | echo "$as_me:$LINENO: result: not found" >&5 | |
27956 | echo "${ECHO_T}not found" >&6 | |
27957 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
27958 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
27959 | { (exit 1); exit 1; }; } | |
27960 | else | |
27961 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
27962 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
27963 | fi | |
27964 | ||
27965 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
27966 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
27967 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
27968 | else | |
27969 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
27970 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
27971 | { (exit 1); exit 1; }; } | |
27972 | fi | |
27973 | ||
27974 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
27975 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
27976 | ||
27977 | wxUSE_UNIVERSAL="yes" | |
27978 | ||
27979 | AFMINSTALL=afminstall | |
27980 | TOOLKIT=MICROWIN | |
27981 | GUIDIST=MICROWIN_DIST | |
27982 | ||
27983 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
27984 | fi | |
27985 | ||
74b84332 | 27986 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
5d7b7554 VZ |
27987 | |
27988 | if test "x$ac_path_x_has_been_run" != xyes; then | |
27989 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
27990 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
27991 | ||
5d7b7554 | 27992 | ac_path_x_has_been_run=yes |
a848cd7e SC |
27993 | |
27994 | # Check whether --with-x or --without-x was given. | |
27995 | if test "${with_x+set}" = set; then | |
27996 | withval="$with_x" | |
27997 | ||
27998 | fi; | |
27999 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
28000 | if test "x$with_x" = xno; then | |
28001 | # The user explicitly disabled X. | |
28002 | have_x=disabled | |
28003 | else | |
28004 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
28005 | # Both variables are already set. | |
28006 | have_x=yes | |
28007 | else | |
28008 | if test "${ac_cv_have_x+set}" = set; then | |
28009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28010 | else | |
28011 | # One or both of the vars are not set, and there is no cached value. | |
28012 | ac_x_includes=no ac_x_libraries=no | |
28013 | rm -fr conftest.dir | |
28014 | if mkdir conftest.dir; then | |
28015 | cd conftest.dir | |
28016 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
28017 | cat >Imakefile <<'_ACEOF' | |
28018 | acfindx: | |
28019 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
28020 | _ACEOF | |
28021 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
28022 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
28023 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
28024 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
28025 | for ac_extension in a so sl; do | |
28026 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
28027 | test -f $ac_im_libdir/libX11.$ac_extension; then |
28028 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
28029 | fi |
28030 | done | |
28031 | # Screen out bogus values from the imake configuration. They are | |
28032 | # bogus both because they are the default anyway, and because | |
28033 | # using them would break gcc on systems where it needs fixed includes. | |
28034 | case $ac_im_incroot in | |
28035 | /usr/include) ;; | |
28036 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
28037 | esac | |
28038 | case $ac_im_usrlibdir in | |
28039 | /usr/lib | /lib) ;; | |
28040 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
28041 | esac | |
28042 | fi | |
28043 | cd .. | |
28044 | rm -fr conftest.dir | |
28045 | fi | |
28046 | ||
28047 | # Standard set of common directories for X headers. | |
28048 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
28049 | ac_x_header_dirs=' | |
28050 | /usr/X11/include | |
28051 | /usr/X11R6/include | |
28052 | /usr/X11R5/include | |
28053 | /usr/X11R4/include | |
28054 | ||
28055 | /usr/include/X11 | |
28056 | /usr/include/X11R6 | |
28057 | /usr/include/X11R5 | |
28058 | /usr/include/X11R4 | |
28059 | ||
28060 | /usr/local/X11/include | |
28061 | /usr/local/X11R6/include | |
28062 | /usr/local/X11R5/include | |
28063 | /usr/local/X11R4/include | |
28064 | ||
28065 | /usr/local/include/X11 | |
28066 | /usr/local/include/X11R6 | |
28067 | /usr/local/include/X11R5 | |
28068 | /usr/local/include/X11R4 | |
28069 | ||
28070 | /usr/X386/include | |
28071 | /usr/x386/include | |
28072 | /usr/XFree86/include/X11 | |
28073 | ||
28074 | /usr/include | |
28075 | /usr/local/include | |
28076 | /usr/unsupported/include | |
28077 | /usr/athena/include | |
28078 | /usr/local/x11r5/include | |
28079 | /usr/lpp/Xamples/include | |
28080 | ||
28081 | /usr/openwin/include | |
28082 | /usr/openwin/share/include' | |
28083 | ||
28084 | if test "$ac_x_includes" = no; then | |
5d7b7554 | 28085 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
28086 | # First, try using that file with no special directory specified. |
28087 | cat >conftest.$ac_ext <<_ACEOF | |
28088 | /* confdefs.h. */ | |
28089 | _ACEOF | |
28090 | cat confdefs.h >>conftest.$ac_ext | |
28091 | cat >>conftest.$ac_ext <<_ACEOF | |
28092 | /* end confdefs.h. */ | |
2b850ae1 | 28093 | #include <X11/Intrinsic.h> |
a848cd7e SC |
28094 | _ACEOF |
28095 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28096 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28097 | ac_status=$? | |
28098 | grep -v '^ *+' conftest.er1 >conftest.err | |
28099 | rm -f conftest.er1 | |
28100 | cat conftest.err >&5 | |
28101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28102 | (exit $ac_status); } >/dev/null; then | |
28103 | if test -s conftest.err; then | |
5d7b7554 VZ |
28104 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
28105 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
28106 | else |
28107 | ac_cpp_err= | |
28108 | fi | |
28109 | else | |
28110 | ac_cpp_err=yes | |
28111 | fi | |
28112 | if test -z "$ac_cpp_err"; then | |
28113 | # We can compile using X headers with no special include directory. | |
28114 | ac_x_includes= | |
28115 | else | |
28116 | echo "$as_me: failed program was:" >&5 | |
28117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28118 | ||
28119 | for ac_dir in $ac_x_header_dirs; do | |
2b850ae1 | 28120 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
a848cd7e SC |
28121 | ac_x_includes=$ac_dir |
28122 | break | |
28123 | fi | |
28124 | done | |
28125 | fi | |
28126 | rm -f conftest.err conftest.$ac_ext | |
28127 | fi # $ac_x_includes = no | |
28128 | ||
28129 | if test "$ac_x_libraries" = no; then | |
28130 | # Check for the libraries. | |
28131 | # See if we find them without any special options. | |
28132 | # Don't add to $LIBS permanently. | |
28133 | ac_save_LIBS=$LIBS | |
2b850ae1 | 28134 | LIBS="-lXt $LIBS" |
a848cd7e SC |
28135 | cat >conftest.$ac_ext <<_ACEOF |
28136 | /* confdefs.h. */ | |
28137 | _ACEOF | |
28138 | cat confdefs.h >>conftest.$ac_ext | |
28139 | cat >>conftest.$ac_ext <<_ACEOF | |
28140 | /* end confdefs.h. */ | |
2b850ae1 | 28141 | #include <X11/Intrinsic.h> |
a848cd7e SC |
28142 | int |
28143 | main () | |
28144 | { | |
2b850ae1 | 28145 | XtMalloc (0) |
a848cd7e SC |
28146 | ; |
28147 | return 0; | |
28148 | } | |
28149 | _ACEOF | |
28150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28152 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28153 | ac_status=$? |
ac1cb8d3 VS |
28154 | grep -v '^ *+' conftest.er1 >conftest.err |
28155 | rm -f conftest.er1 | |
28156 | cat conftest.err >&5 | |
a848cd7e SC |
28157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28158 | (exit $ac_status); } && | |
5d7b7554 | 28159 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28161 | (eval $ac_try) 2>&5 | |
28162 | ac_status=$? | |
28163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28164 | (exit $ac_status); }; } && | |
28165 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28167 | (eval $ac_try) 2>&5 | |
28168 | ac_status=$? | |
28169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28170 | (exit $ac_status); }; }; then | |
28171 | LIBS=$ac_save_LIBS | |
28172 | # We can link X programs with no special library path. | |
28173 | ac_x_libraries= | |
28174 | else | |
28175 | echo "$as_me: failed program was:" >&5 | |
28176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28177 | ||
28178 | LIBS=$ac_save_LIBS | |
28179 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
28180 | do | |
28181 | # Don't even attempt the hair of trying to link an X program! | |
28182 | for ac_extension in a so sl; do | |
2b850ae1 | 28183 | if test -r $ac_dir/libXt.$ac_extension; then |
a848cd7e SC |
28184 | ac_x_libraries=$ac_dir |
28185 | break 2 | |
28186 | fi | |
28187 | done | |
28188 | done | |
28189 | fi | |
ac1cb8d3 VS |
28190 | rm -f conftest.err conftest.$ac_objext \ |
28191 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28192 | fi # $ac_x_libraries = no |
28193 | ||
28194 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
28195 | # Didn't find X anywhere. Cache the known absence of X. | |
28196 | ac_cv_have_x="have_x=no" | |
28197 | else | |
28198 | # Record where we found X for the cache. | |
28199 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 28200 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
28201 | fi |
28202 | fi | |
28203 | ||
28204 | fi | |
28205 | eval "$ac_cv_have_x" | |
28206 | fi # $with_x != no | |
28207 | ||
28208 | if test "$have_x" != yes; then | |
28209 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
28210 | echo "${ECHO_T}$have_x" >&6 | |
28211 | no_x=yes | |
28212 | else | |
28213 | # If each of the values was on the command line, it overrides each guess. | |
28214 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
28215 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
28216 | # Update the cache value to reflect the command line values. | |
28217 | ac_cv_have_x="have_x=yes \ | |
28218 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
5d7b7554 VZ |
28219 | # It might be that x_includes is empty (headers are found in the |
28220 | # standard search path. Then output the corresponding message | |
28221 | ac_out_x_includes=$x_includes | |
28222 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
28223 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
28224 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
28225 | fi |
28226 | ||
5d7b7554 | 28227 | fi |
a848cd7e SC |
28228 | if test "$no_x" = yes; then |
28229 | # Not all programs may use this symbol, but it does not hurt to define it. | |
28230 | ||
28231 | cat >>confdefs.h <<\_ACEOF | |
28232 | #define X_DISPLAY_MISSING 1 | |
28233 | _ACEOF | |
28234 | ||
28235 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
28236 | else | |
28237 | if test -n "$x_includes"; then | |
28238 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
28239 | fi | |
28240 | ||
28241 | # It would also be nice to do this for all -L options, not just this one. | |
28242 | if test -n "$x_libraries"; then | |
28243 | X_LIBS="$X_LIBS -L$x_libraries" | |
28244 | # For Solaris; some versions of Sun CC require a space after -R and | |
28245 | # others require no space. Words are not sufficient . . . . | |
28246 | case `(uname -sr) 2>/dev/null` in | |
28247 | "SunOS 5"*) | |
28248 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
28249 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
28250 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
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 | int | |
28259 | main () | |
28260 | { | |
28261 | ||
28262 | ; | |
28263 | return 0; | |
28264 | } | |
28265 | _ACEOF | |
28266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28268 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28269 | ac_status=$? |
ac1cb8d3 VS |
28270 | grep -v '^ *+' conftest.er1 >conftest.err |
28271 | rm -f conftest.er1 | |
28272 | cat conftest.err >&5 | |
a848cd7e SC |
28273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28274 | (exit $ac_status); } && | |
5d7b7554 | 28275 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28277 | (eval $ac_try) 2>&5 | |
28278 | ac_status=$? | |
28279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28280 | (exit $ac_status); }; } && | |
28281 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28283 | (eval $ac_try) 2>&5 | |
28284 | ac_status=$? | |
28285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28286 | (exit $ac_status); }; }; then | |
28287 | ac_R_nospace=yes | |
28288 | else | |
28289 | echo "$as_me: failed program was:" >&5 | |
28290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28291 | ||
28292 | ac_R_nospace=no | |
28293 | fi | |
ac1cb8d3 VS |
28294 | rm -f conftest.err conftest.$ac_objext \ |
28295 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28296 | if test $ac_R_nospace = yes; then |
28297 | echo "$as_me:$LINENO: result: no" >&5 | |
28298 | echo "${ECHO_T}no" >&6 | |
28299 | X_LIBS="$X_LIBS -R$x_libraries" | |
28300 | else | |
28301 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
28302 | cat >conftest.$ac_ext <<_ACEOF | |
28303 | /* confdefs.h. */ | |
28304 | _ACEOF | |
28305 | cat confdefs.h >>conftest.$ac_ext | |
28306 | cat >>conftest.$ac_ext <<_ACEOF | |
28307 | /* end confdefs.h. */ | |
28308 | ||
28309 | int | |
28310 | main () | |
28311 | { | |
28312 | ||
28313 | ; | |
28314 | return 0; | |
28315 | } | |
28316 | _ACEOF | |
28317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28319 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28320 | ac_status=$? |
ac1cb8d3 VS |
28321 | grep -v '^ *+' conftest.er1 >conftest.err |
28322 | rm -f conftest.er1 | |
28323 | cat conftest.err >&5 | |
a848cd7e SC |
28324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28325 | (exit $ac_status); } && | |
5d7b7554 | 28326 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28328 | (eval $ac_try) 2>&5 | |
28329 | ac_status=$? | |
28330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28331 | (exit $ac_status); }; } && | |
28332 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28334 | (eval $ac_try) 2>&5 | |
28335 | ac_status=$? | |
28336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28337 | (exit $ac_status); }; }; then | |
28338 | ac_R_space=yes | |
28339 | else | |
28340 | echo "$as_me: failed program was:" >&5 | |
28341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28342 | ||
28343 | ac_R_space=no | |
28344 | fi | |
ac1cb8d3 VS |
28345 | rm -f conftest.err conftest.$ac_objext \ |
28346 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28347 | if test $ac_R_space = yes; then |
28348 | echo "$as_me:$LINENO: result: yes" >&5 | |
28349 | echo "${ECHO_T}yes" >&6 | |
28350 | X_LIBS="$X_LIBS -R $x_libraries" | |
28351 | else | |
28352 | echo "$as_me:$LINENO: result: neither works" >&5 | |
28353 | echo "${ECHO_T}neither works" >&6 | |
28354 | fi | |
28355 | fi | |
28356 | LIBS=$ac_xsave_LIBS | |
28357 | esac | |
28358 | fi | |
28359 | ||
28360 | # Check for system-dependent libraries X programs must link with. | |
28361 | # Do this before checking for the system-independent R6 libraries | |
28362 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
28363 | ||
28364 | if test "$ISC" = yes; then | |
28365 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
28366 | else | |
28367 | # Martyn Johnson says this is needed for Ultrix, if the X | |
28368 | # libraries were built with DECnet support. And Karl Berry says | |
28369 | # the Alpha needs dnet_stub (dnet does not exist). | |
28370 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
28371 | cat >conftest.$ac_ext <<_ACEOF | |
28372 | /* confdefs.h. */ | |
28373 | _ACEOF | |
28374 | cat confdefs.h >>conftest.$ac_ext | |
28375 | cat >>conftest.$ac_ext <<_ACEOF | |
28376 | /* end confdefs.h. */ | |
28377 | ||
28378 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28379 | #ifdef __cplusplus | |
28380 | extern "C" | |
28381 | #endif | |
28382 | /* We use char because int might match the return type of a gcc2 | |
28383 | builtin and then its argument prototype would still apply. */ | |
28384 | char XOpenDisplay (); | |
28385 | int | |
28386 | main () | |
28387 | { | |
28388 | XOpenDisplay (); | |
28389 | ; | |
28390 | return 0; | |
28391 | } | |
28392 | _ACEOF | |
28393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28395 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28396 | ac_status=$? |
ac1cb8d3 VS |
28397 | grep -v '^ *+' conftest.er1 >conftest.err |
28398 | rm -f conftest.er1 | |
28399 | cat conftest.err >&5 | |
a848cd7e SC |
28400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28401 | (exit $ac_status); } && | |
5d7b7554 | 28402 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28404 | (eval $ac_try) 2>&5 | |
28405 | ac_status=$? | |
28406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28407 | (exit $ac_status); }; } && | |
28408 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28410 | (eval $ac_try) 2>&5 | |
28411 | ac_status=$? | |
28412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28413 | (exit $ac_status); }; }; then | |
28414 | : | |
28415 | else | |
28416 | echo "$as_me: failed program was:" >&5 | |
28417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28418 | ||
28419 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
28420 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
28421 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
28422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28423 | else | |
28424 | ac_check_lib_save_LIBS=$LIBS | |
28425 | LIBS="-ldnet $LIBS" | |
28426 | cat >conftest.$ac_ext <<_ACEOF | |
28427 | /* confdefs.h. */ | |
28428 | _ACEOF | |
28429 | cat confdefs.h >>conftest.$ac_ext | |
28430 | cat >>conftest.$ac_ext <<_ACEOF | |
28431 | /* end confdefs.h. */ | |
28432 | ||
28433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28434 | #ifdef __cplusplus | |
28435 | extern "C" | |
28436 | #endif | |
28437 | /* We use char because int might match the return type of a gcc2 | |
28438 | builtin and then its argument prototype would still apply. */ | |
28439 | char dnet_ntoa (); | |
28440 | int | |
28441 | main () | |
28442 | { | |
28443 | dnet_ntoa (); | |
28444 | ; | |
28445 | return 0; | |
28446 | } | |
28447 | _ACEOF | |
28448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28450 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28451 | ac_status=$? |
ac1cb8d3 VS |
28452 | grep -v '^ *+' conftest.er1 >conftest.err |
28453 | rm -f conftest.er1 | |
28454 | cat conftest.err >&5 | |
a848cd7e SC |
28455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28456 | (exit $ac_status); } && | |
5d7b7554 | 28457 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28459 | (eval $ac_try) 2>&5 | |
28460 | ac_status=$? | |
28461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28462 | (exit $ac_status); }; } && | |
28463 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28465 | (eval $ac_try) 2>&5 | |
28466 | ac_status=$? | |
28467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28468 | (exit $ac_status); }; }; then | |
28469 | ac_cv_lib_dnet_dnet_ntoa=yes | |
28470 | else | |
28471 | echo "$as_me: failed program was:" >&5 | |
28472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28473 | ||
28474 | ac_cv_lib_dnet_dnet_ntoa=no | |
28475 | fi | |
ac1cb8d3 VS |
28476 | rm -f conftest.err conftest.$ac_objext \ |
28477 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28478 | LIBS=$ac_check_lib_save_LIBS |
28479 | fi | |
28480 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
28481 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
28482 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
28483 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
28484 | fi | |
28485 | ||
28486 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
28487 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
28488 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
28489 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
28490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28491 | else | |
28492 | ac_check_lib_save_LIBS=$LIBS | |
28493 | LIBS="-ldnet_stub $LIBS" | |
28494 | cat >conftest.$ac_ext <<_ACEOF | |
28495 | /* confdefs.h. */ | |
28496 | _ACEOF | |
28497 | cat confdefs.h >>conftest.$ac_ext | |
28498 | cat >>conftest.$ac_ext <<_ACEOF | |
28499 | /* end confdefs.h. */ | |
28500 | ||
28501 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28502 | #ifdef __cplusplus | |
28503 | extern "C" | |
28504 | #endif | |
28505 | /* We use char because int might match the return type of a gcc2 | |
28506 | builtin and then its argument prototype would still apply. */ | |
28507 | char dnet_ntoa (); | |
28508 | int | |
28509 | main () | |
28510 | { | |
28511 | dnet_ntoa (); | |
28512 | ; | |
28513 | return 0; | |
28514 | } | |
28515 | _ACEOF | |
28516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28518 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28519 | ac_status=$? |
ac1cb8d3 VS |
28520 | grep -v '^ *+' conftest.er1 >conftest.err |
28521 | rm -f conftest.er1 | |
28522 | cat conftest.err >&5 | |
a848cd7e SC |
28523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28524 | (exit $ac_status); } && | |
5d7b7554 | 28525 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28527 | (eval $ac_try) 2>&5 | |
28528 | ac_status=$? | |
28529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28530 | (exit $ac_status); }; } && | |
28531 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28533 | (eval $ac_try) 2>&5 | |
28534 | ac_status=$? | |
28535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28536 | (exit $ac_status); }; }; then | |
28537 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
28538 | else | |
28539 | echo "$as_me: failed program was:" >&5 | |
28540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28541 | ||
28542 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
28543 | fi | |
ac1cb8d3 VS |
28544 | rm -f conftest.err conftest.$ac_objext \ |
28545 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28546 | LIBS=$ac_check_lib_save_LIBS |
28547 | fi | |
28548 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
28549 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
28550 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
28551 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
28552 | fi | |
28553 | ||
28554 | fi | |
28555 | fi | |
ac1cb8d3 VS |
28556 | rm -f conftest.err conftest.$ac_objext \ |
28557 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28558 | LIBS="$ac_xsave_LIBS" |
28559 | ||
28560 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
28561 | # to get the SysV transport functions. | |
28562 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
28563 | # needs -lnsl. | |
28564 | # The nsl library prevents programs from opening the X display | |
28565 | # on Irix 5.2, according to T.E. Dickey. | |
28566 | # The functions gethostbyname, getservbyname, and inet_addr are | |
28567 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
28568 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
28569 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
28570 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
28571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28572 | else | |
28573 | cat >conftest.$ac_ext <<_ACEOF | |
28574 | /* confdefs.h. */ | |
28575 | _ACEOF | |
28576 | cat confdefs.h >>conftest.$ac_ext | |
28577 | cat >>conftest.$ac_ext <<_ACEOF | |
28578 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28579 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
28580 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28581 | #define gethostbyname innocuous_gethostbyname | |
28582 | ||
a848cd7e SC |
28583 | /* System header to define __stub macros and hopefully few prototypes, |
28584 | which can conflict with char gethostbyname (); below. | |
28585 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28586 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28587 | |
a848cd7e SC |
28588 | #ifdef __STDC__ |
28589 | # include <limits.h> | |
28590 | #else | |
28591 | # include <assert.h> | |
28592 | #endif | |
ac1cb8d3 VS |
28593 | |
28594 | #undef gethostbyname | |
28595 | ||
a848cd7e SC |
28596 | /* Override any gcc2 internal prototype to avoid an error. */ |
28597 | #ifdef __cplusplus | |
28598 | extern "C" | |
28599 | { | |
28600 | #endif | |
28601 | /* We use char because int might match the return type of a gcc2 | |
28602 | builtin and then its argument prototype would still apply. */ | |
28603 | char gethostbyname (); | |
28604 | /* The GNU C library defines this for functions which it implements | |
28605 | to always fail with ENOSYS. Some functions are actually named | |
28606 | something starting with __ and the normal name is an alias. */ | |
28607 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
28608 | choke me | |
28609 | #else | |
28610 | char (*f) () = gethostbyname; | |
28611 | #endif | |
28612 | #ifdef __cplusplus | |
28613 | } | |
28614 | #endif | |
28615 | ||
28616 | int | |
28617 | main () | |
28618 | { | |
28619 | return f != gethostbyname; | |
28620 | ; | |
28621 | return 0; | |
28622 | } | |
28623 | _ACEOF | |
28624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28626 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28627 | ac_status=$? |
ac1cb8d3 VS |
28628 | grep -v '^ *+' conftest.er1 >conftest.err |
28629 | rm -f conftest.er1 | |
28630 | cat conftest.err >&5 | |
a848cd7e SC |
28631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28632 | (exit $ac_status); } && | |
5d7b7554 | 28633 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28635 | (eval $ac_try) 2>&5 | |
28636 | ac_status=$? | |
28637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28638 | (exit $ac_status); }; } && | |
28639 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28641 | (eval $ac_try) 2>&5 | |
28642 | ac_status=$? | |
28643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28644 | (exit $ac_status); }; }; then | |
28645 | ac_cv_func_gethostbyname=yes | |
28646 | else | |
28647 | echo "$as_me: failed program was:" >&5 | |
28648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28649 | ||
28650 | ac_cv_func_gethostbyname=no | |
28651 | fi | |
ac1cb8d3 VS |
28652 | rm -f conftest.err conftest.$ac_objext \ |
28653 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28654 | fi |
28655 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
28656 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
28657 | ||
28658 | if test $ac_cv_func_gethostbyname = no; then | |
28659 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
28660 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
28661 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
28662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28663 | else | |
28664 | ac_check_lib_save_LIBS=$LIBS | |
28665 | LIBS="-lnsl $LIBS" | |
28666 | cat >conftest.$ac_ext <<_ACEOF | |
28667 | /* confdefs.h. */ | |
28668 | _ACEOF | |
28669 | cat confdefs.h >>conftest.$ac_ext | |
28670 | cat >>conftest.$ac_ext <<_ACEOF | |
28671 | /* end confdefs.h. */ | |
28672 | ||
28673 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28674 | #ifdef __cplusplus | |
28675 | extern "C" | |
28676 | #endif | |
28677 | /* We use char because int might match the return type of a gcc2 | |
28678 | builtin and then its argument prototype would still apply. */ | |
28679 | char gethostbyname (); | |
28680 | int | |
28681 | main () | |
28682 | { | |
28683 | gethostbyname (); | |
28684 | ; | |
28685 | return 0; | |
28686 | } | |
28687 | _ACEOF | |
28688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
28690 | (eval $ac_link) 2>conftest.er1 |
28691 | ac_status=$? | |
28692 | grep -v '^ *+' conftest.er1 >conftest.err | |
28693 | rm -f conftest.er1 | |
28694 | cat conftest.err >&5 | |
28695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28696 | (exit $ac_status); } && | |
5d7b7554 | 28697 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28699 | (eval $ac_try) 2>&5 | |
28700 | ac_status=$? | |
28701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28702 | (exit $ac_status); }; } && | |
28703 | { ac_try='test -s conftest$ac_exeext' | |
28704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28705 | (eval $ac_try) 2>&5 | |
28706 | ac_status=$? | |
28707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28708 | (exit $ac_status); }; }; then | |
28709 | ac_cv_lib_nsl_gethostbyname=yes | |
28710 | else | |
28711 | echo "$as_me: failed program was:" >&5 | |
28712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28713 | ||
28714 | ac_cv_lib_nsl_gethostbyname=no | |
28715 | fi | |
28716 | rm -f conftest.err conftest.$ac_objext \ | |
28717 | conftest$ac_exeext conftest.$ac_ext | |
28718 | LIBS=$ac_check_lib_save_LIBS | |
28719 | fi | |
28720 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
28721 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
28722 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
28723 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
28724 | fi | |
28725 | ||
28726 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
28727 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
28728 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
28729 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
28730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28731 | else | |
28732 | ac_check_lib_save_LIBS=$LIBS | |
28733 | LIBS="-lbsd $LIBS" | |
28734 | cat >conftest.$ac_ext <<_ACEOF | |
28735 | /* confdefs.h. */ | |
28736 | _ACEOF | |
28737 | cat confdefs.h >>conftest.$ac_ext | |
28738 | cat >>conftest.$ac_ext <<_ACEOF | |
28739 | /* end confdefs.h. */ | |
28740 | ||
28741 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28742 | #ifdef __cplusplus | |
28743 | extern "C" | |
28744 | #endif | |
28745 | /* We use char because int might match the return type of a gcc2 | |
28746 | builtin and then its argument prototype would still apply. */ | |
28747 | char gethostbyname (); | |
28748 | int | |
28749 | main () | |
28750 | { | |
28751 | gethostbyname (); | |
28752 | ; | |
28753 | return 0; | |
28754 | } | |
28755 | _ACEOF | |
28756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28758 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28759 | ac_status=$? |
ac1cb8d3 VS |
28760 | grep -v '^ *+' conftest.er1 >conftest.err |
28761 | rm -f conftest.er1 | |
28762 | cat conftest.err >&5 | |
a848cd7e SC |
28763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28764 | (exit $ac_status); } && | |
5d7b7554 | 28765 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
28766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28767 | (eval $ac_try) 2>&5 | |
28768 | ac_status=$? | |
28769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
28770 | (exit $ac_status); }; } && |
28771 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28773 | (eval $ac_try) 2>&5 | |
28774 | ac_status=$? | |
28775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28776 | (exit $ac_status); }; }; then | |
28777 | ac_cv_lib_bsd_gethostbyname=yes | |
28778 | else | |
28779 | echo "$as_me: failed program was:" >&5 | |
28780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28781 | ||
28782 | ac_cv_lib_bsd_gethostbyname=no | |
28783 | fi | |
ac1cb8d3 VS |
28784 | rm -f conftest.err conftest.$ac_objext \ |
28785 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28786 | LIBS=$ac_check_lib_save_LIBS |
28787 | fi | |
28788 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
28789 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
28790 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
28791 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
28792 | fi | |
28793 | ||
28794 | fi | |
28795 | fi | |
28796 | ||
28797 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
28798 | # socket/setsockopt and other routines are undefined under SCO ODT | |
28799 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
28800 | # on later versions), says Simon Leinen: it contains gethostby* | |
28801 | # variants that don't use the name server (or something). -lsocket | |
28802 | # must be given before -lnsl if both are needed. We assume that | |
28803 | # if connect needs -lnsl, so does gethostbyname. | |
28804 | echo "$as_me:$LINENO: checking for connect" >&5 | |
28805 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
28806 | if test "${ac_cv_func_connect+set}" = set; then | |
28807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28808 | else | |
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. */ | |
ac1cb8d3 VS |
28815 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
28816 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28817 | #define connect innocuous_connect | |
28818 | ||
a848cd7e SC |
28819 | /* System header to define __stub macros and hopefully few prototypes, |
28820 | which can conflict with char connect (); below. | |
28821 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28822 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28823 | |
a848cd7e SC |
28824 | #ifdef __STDC__ |
28825 | # include <limits.h> | |
28826 | #else | |
28827 | # include <assert.h> | |
28828 | #endif | |
ac1cb8d3 VS |
28829 | |
28830 | #undef connect | |
28831 | ||
a848cd7e SC |
28832 | /* Override any gcc2 internal prototype to avoid an error. */ |
28833 | #ifdef __cplusplus | |
28834 | extern "C" | |
28835 | { | |
28836 | #endif | |
28837 | /* We use char because int might match the return type of a gcc2 | |
28838 | builtin and then its argument prototype would still apply. */ | |
28839 | char connect (); | |
28840 | /* The GNU C library defines this for functions which it implements | |
28841 | to always fail with ENOSYS. Some functions are actually named | |
28842 | something starting with __ and the normal name is an alias. */ | |
28843 | #if defined (__stub_connect) || defined (__stub___connect) | |
28844 | choke me | |
28845 | #else | |
28846 | char (*f) () = connect; | |
28847 | #endif | |
28848 | #ifdef __cplusplus | |
28849 | } | |
28850 | #endif | |
28851 | ||
28852 | int | |
28853 | main () | |
28854 | { | |
28855 | return f != connect; | |
28856 | ; | |
28857 | return 0; | |
28858 | } | |
28859 | _ACEOF | |
28860 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28862 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28863 | ac_status=$? |
ac1cb8d3 VS |
28864 | grep -v '^ *+' conftest.er1 >conftest.err |
28865 | rm -f conftest.er1 | |
28866 | cat conftest.err >&5 | |
a848cd7e SC |
28867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28868 | (exit $ac_status); } && | |
5d7b7554 | 28869 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28871 | (eval $ac_try) 2>&5 | |
28872 | ac_status=$? | |
28873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28874 | (exit $ac_status); }; } && | |
28875 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28877 | (eval $ac_try) 2>&5 | |
28878 | ac_status=$? | |
28879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28880 | (exit $ac_status); }; }; then | |
28881 | ac_cv_func_connect=yes | |
28882 | else | |
28883 | echo "$as_me: failed program was:" >&5 | |
28884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28885 | ||
28886 | ac_cv_func_connect=no | |
28887 | fi | |
ac1cb8d3 VS |
28888 | rm -f conftest.err conftest.$ac_objext \ |
28889 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28890 | fi |
28891 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
28892 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
28893 | ||
28894 | if test $ac_cv_func_connect = no; then | |
28895 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
28896 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
28897 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
28898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28899 | else | |
28900 | ac_check_lib_save_LIBS=$LIBS | |
28901 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
28902 | cat >conftest.$ac_ext <<_ACEOF | |
28903 | /* confdefs.h. */ | |
28904 | _ACEOF | |
28905 | cat confdefs.h >>conftest.$ac_ext | |
28906 | cat >>conftest.$ac_ext <<_ACEOF | |
28907 | /* end confdefs.h. */ | |
28908 | ||
28909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28910 | #ifdef __cplusplus | |
28911 | extern "C" | |
28912 | #endif | |
28913 | /* We use char because int might match the return type of a gcc2 | |
28914 | builtin and then its argument prototype would still apply. */ | |
28915 | char connect (); | |
28916 | int | |
28917 | main () | |
28918 | { | |
28919 | connect (); | |
28920 | ; | |
28921 | return 0; | |
28922 | } | |
28923 | _ACEOF | |
28924 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28926 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28927 | ac_status=$? |
ac1cb8d3 VS |
28928 | grep -v '^ *+' conftest.er1 >conftest.err |
28929 | rm -f conftest.er1 | |
28930 | cat conftest.err >&5 | |
a848cd7e SC |
28931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28932 | (exit $ac_status); } && | |
5d7b7554 | 28933 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28935 | (eval $ac_try) 2>&5 | |
28936 | ac_status=$? | |
28937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28938 | (exit $ac_status); }; } && | |
28939 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28941 | (eval $ac_try) 2>&5 | |
28942 | ac_status=$? | |
28943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28944 | (exit $ac_status); }; }; then | |
28945 | ac_cv_lib_socket_connect=yes | |
28946 | else | |
28947 | echo "$as_me: failed program was:" >&5 | |
28948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28949 | ||
28950 | ac_cv_lib_socket_connect=no | |
28951 | fi | |
ac1cb8d3 VS |
28952 | rm -f conftest.err conftest.$ac_objext \ |
28953 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28954 | LIBS=$ac_check_lib_save_LIBS |
28955 | fi | |
28956 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
28957 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
28958 | if test $ac_cv_lib_socket_connect = yes; then | |
28959 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
28960 | fi | |
28961 | ||
28962 | fi | |
28963 | ||
28964 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
28965 | echo "$as_me:$LINENO: checking for remove" >&5 | |
28966 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
28967 | if test "${ac_cv_func_remove+set}" = set; then | |
28968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28969 | else | |
28970 | cat >conftest.$ac_ext <<_ACEOF | |
28971 | /* confdefs.h. */ | |
28972 | _ACEOF | |
28973 | cat confdefs.h >>conftest.$ac_ext | |
28974 | cat >>conftest.$ac_ext <<_ACEOF | |
28975 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28976 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
28977 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28978 | #define remove innocuous_remove | |
28979 | ||
a848cd7e SC |
28980 | /* System header to define __stub macros and hopefully few prototypes, |
28981 | which can conflict with char remove (); below. | |
28982 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28983 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28984 | |
a848cd7e SC |
28985 | #ifdef __STDC__ |
28986 | # include <limits.h> | |
28987 | #else | |
28988 | # include <assert.h> | |
28989 | #endif | |
ac1cb8d3 VS |
28990 | |
28991 | #undef remove | |
28992 | ||
a848cd7e SC |
28993 | /* Override any gcc2 internal prototype to avoid an error. */ |
28994 | #ifdef __cplusplus | |
28995 | extern "C" | |
28996 | { | |
28997 | #endif | |
28998 | /* We use char because int might match the return type of a gcc2 | |
28999 | builtin and then its argument prototype would still apply. */ | |
29000 | char remove (); | |
29001 | /* The GNU C library defines this for functions which it implements | |
29002 | to always fail with ENOSYS. Some functions are actually named | |
29003 | something starting with __ and the normal name is an alias. */ | |
29004 | #if defined (__stub_remove) || defined (__stub___remove) | |
29005 | choke me | |
29006 | #else | |
29007 | char (*f) () = remove; | |
29008 | #endif | |
29009 | #ifdef __cplusplus | |
29010 | } | |
29011 | #endif | |
29012 | ||
29013 | int | |
29014 | main () | |
29015 | { | |
29016 | return f != remove; | |
29017 | ; | |
29018 | return 0; | |
29019 | } | |
29020 | _ACEOF | |
29021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29023 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29024 | ac_status=$? |
ac1cb8d3 VS |
29025 | grep -v '^ *+' conftest.er1 >conftest.err |
29026 | rm -f conftest.er1 | |
29027 | cat conftest.err >&5 | |
a848cd7e SC |
29028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29029 | (exit $ac_status); } && | |
5d7b7554 | 29030 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29032 | (eval $ac_try) 2>&5 | |
29033 | ac_status=$? | |
29034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29035 | (exit $ac_status); }; } && | |
29036 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29038 | (eval $ac_try) 2>&5 | |
29039 | ac_status=$? | |
29040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29041 | (exit $ac_status); }; }; then | |
29042 | ac_cv_func_remove=yes | |
29043 | else | |
29044 | echo "$as_me: failed program was:" >&5 | |
29045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29046 | ||
29047 | ac_cv_func_remove=no | |
29048 | fi | |
ac1cb8d3 VS |
29049 | rm -f conftest.err conftest.$ac_objext \ |
29050 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29051 | fi |
29052 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
29053 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
29054 | ||
29055 | if test $ac_cv_func_remove = no; then | |
29056 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
29057 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
29058 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
29059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29060 | else | |
29061 | ac_check_lib_save_LIBS=$LIBS | |
29062 | LIBS="-lposix $LIBS" | |
29063 | cat >conftest.$ac_ext <<_ACEOF | |
29064 | /* confdefs.h. */ | |
29065 | _ACEOF | |
29066 | cat confdefs.h >>conftest.$ac_ext | |
29067 | cat >>conftest.$ac_ext <<_ACEOF | |
29068 | /* end confdefs.h. */ | |
29069 | ||
29070 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29071 | #ifdef __cplusplus | |
29072 | extern "C" | |
29073 | #endif | |
29074 | /* We use char because int might match the return type of a gcc2 | |
29075 | builtin and then its argument prototype would still apply. */ | |
29076 | char remove (); | |
29077 | int | |
29078 | main () | |
29079 | { | |
29080 | remove (); | |
29081 | ; | |
29082 | return 0; | |
29083 | } | |
29084 | _ACEOF | |
29085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29087 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29088 | ac_status=$? |
ac1cb8d3 VS |
29089 | grep -v '^ *+' conftest.er1 >conftest.err |
29090 | rm -f conftest.er1 | |
29091 | cat conftest.err >&5 | |
a848cd7e SC |
29092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29093 | (exit $ac_status); } && | |
5d7b7554 | 29094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29096 | (eval $ac_try) 2>&5 | |
29097 | ac_status=$? | |
29098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29099 | (exit $ac_status); }; } && | |
29100 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29102 | (eval $ac_try) 2>&5 | |
29103 | ac_status=$? | |
29104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29105 | (exit $ac_status); }; }; then | |
29106 | ac_cv_lib_posix_remove=yes | |
29107 | else | |
29108 | echo "$as_me: failed program was:" >&5 | |
29109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29110 | ||
29111 | ac_cv_lib_posix_remove=no | |
29112 | fi | |
ac1cb8d3 VS |
29113 | rm -f conftest.err conftest.$ac_objext \ |
29114 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29115 | LIBS=$ac_check_lib_save_LIBS |
29116 | fi | |
29117 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
29118 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
29119 | if test $ac_cv_lib_posix_remove = yes; then | |
29120 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
29121 | fi | |
29122 | ||
29123 | fi | |
29124 | ||
29125 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
29126 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
29127 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
29128 | if test "${ac_cv_func_shmat+set}" = set; then | |
29129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29130 | else | |
29131 | cat >conftest.$ac_ext <<_ACEOF | |
29132 | /* confdefs.h. */ | |
29133 | _ACEOF | |
29134 | cat confdefs.h >>conftest.$ac_ext | |
29135 | cat >>conftest.$ac_ext <<_ACEOF | |
29136 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29137 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
29138 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29139 | #define shmat innocuous_shmat | |
29140 | ||
a848cd7e SC |
29141 | /* System header to define __stub macros and hopefully few prototypes, |
29142 | which can conflict with char shmat (); below. | |
29143 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29144 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29145 | |
a848cd7e SC |
29146 | #ifdef __STDC__ |
29147 | # include <limits.h> | |
29148 | #else | |
29149 | # include <assert.h> | |
29150 | #endif | |
ac1cb8d3 VS |
29151 | |
29152 | #undef shmat | |
29153 | ||
a848cd7e SC |
29154 | /* Override any gcc2 internal prototype to avoid an error. */ |
29155 | #ifdef __cplusplus | |
29156 | extern "C" | |
29157 | { | |
29158 | #endif | |
29159 | /* We use char because int might match the return type of a gcc2 | |
29160 | builtin and then its argument prototype would still apply. */ | |
29161 | char shmat (); | |
29162 | /* The GNU C library defines this for functions which it implements | |
29163 | to always fail with ENOSYS. Some functions are actually named | |
29164 | something starting with __ and the normal name is an alias. */ | |
29165 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
29166 | choke me | |
29167 | #else | |
29168 | char (*f) () = shmat; | |
29169 | #endif | |
29170 | #ifdef __cplusplus | |
29171 | } | |
29172 | #endif | |
29173 | ||
29174 | int | |
29175 | main () | |
29176 | { | |
29177 | return f != shmat; | |
29178 | ; | |
29179 | return 0; | |
29180 | } | |
29181 | _ACEOF | |
29182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29184 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29185 | ac_status=$? |
ac1cb8d3 VS |
29186 | grep -v '^ *+' conftest.er1 >conftest.err |
29187 | rm -f conftest.er1 | |
29188 | cat conftest.err >&5 | |
a848cd7e SC |
29189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29190 | (exit $ac_status); } && | |
5d7b7554 | 29191 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29193 | (eval $ac_try) 2>&5 | |
29194 | ac_status=$? | |
29195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29196 | (exit $ac_status); }; } && | |
29197 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29199 | (eval $ac_try) 2>&5 | |
29200 | ac_status=$? | |
29201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29202 | (exit $ac_status); }; }; then | |
29203 | ac_cv_func_shmat=yes | |
29204 | else | |
29205 | echo "$as_me: failed program was:" >&5 | |
29206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29207 | ||
29208 | ac_cv_func_shmat=no | |
29209 | fi | |
ac1cb8d3 VS |
29210 | rm -f conftest.err conftest.$ac_objext \ |
29211 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29212 | fi |
29213 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
29214 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
29215 | ||
29216 | if test $ac_cv_func_shmat = no; then | |
29217 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
29218 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
29219 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
29220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29221 | else | |
29222 | ac_check_lib_save_LIBS=$LIBS | |
29223 | LIBS="-lipc $LIBS" | |
29224 | cat >conftest.$ac_ext <<_ACEOF | |
29225 | /* confdefs.h. */ | |
29226 | _ACEOF | |
29227 | cat confdefs.h >>conftest.$ac_ext | |
29228 | cat >>conftest.$ac_ext <<_ACEOF | |
29229 | /* end confdefs.h. */ | |
29230 | ||
29231 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29232 | #ifdef __cplusplus | |
29233 | extern "C" | |
29234 | #endif | |
29235 | /* We use char because int might match the return type of a gcc2 | |
29236 | builtin and then its argument prototype would still apply. */ | |
29237 | char shmat (); | |
29238 | int | |
29239 | main () | |
29240 | { | |
29241 | shmat (); | |
29242 | ; | |
29243 | return 0; | |
29244 | } | |
29245 | _ACEOF | |
29246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29248 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29249 | ac_status=$? |
ac1cb8d3 VS |
29250 | grep -v '^ *+' conftest.er1 >conftest.err |
29251 | rm -f conftest.er1 | |
29252 | cat conftest.err >&5 | |
a848cd7e SC |
29253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29254 | (exit $ac_status); } && | |
5d7b7554 | 29255 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29257 | (eval $ac_try) 2>&5 | |
29258 | ac_status=$? | |
29259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29260 | (exit $ac_status); }; } && | |
29261 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29263 | (eval $ac_try) 2>&5 | |
29264 | ac_status=$? | |
29265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29266 | (exit $ac_status); }; }; then | |
29267 | ac_cv_lib_ipc_shmat=yes | |
29268 | else | |
29269 | echo "$as_me: failed program was:" >&5 | |
29270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29271 | ||
29272 | ac_cv_lib_ipc_shmat=no | |
29273 | fi | |
ac1cb8d3 VS |
29274 | rm -f conftest.err conftest.$ac_objext \ |
29275 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29276 | LIBS=$ac_check_lib_save_LIBS |
29277 | fi | |
29278 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
29279 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
29280 | if test $ac_cv_lib_ipc_shmat = yes; then | |
29281 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
29282 | fi | |
29283 | ||
29284 | fi | |
29285 | fi | |
29286 | ||
29287 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
29288 | ac_save_LDFLAGS=$LDFLAGS | |
29289 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
29290 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
29291 | # check for ICE first), but we must link in the order -lSM -lICE or | |
29292 | # we get undefined symbols. So assume we have SM if we have ICE. | |
29293 | # These have to be linked with before -lX11, unlike the other | |
29294 | # libraries we check for below, so use a different variable. | |
29295 | # John Interrante, Karl Berry | |
29296 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
29297 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
29298 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
29299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29300 | else | |
29301 | ac_check_lib_save_LIBS=$LIBS | |
29302 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
29303 | cat >conftest.$ac_ext <<_ACEOF | |
29304 | /* confdefs.h. */ | |
29305 | _ACEOF | |
29306 | cat confdefs.h >>conftest.$ac_ext | |
29307 | cat >>conftest.$ac_ext <<_ACEOF | |
29308 | /* end confdefs.h. */ | |
29309 | ||
29310 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29311 | #ifdef __cplusplus | |
29312 | extern "C" | |
29313 | #endif | |
29314 | /* We use char because int might match the return type of a gcc2 | |
29315 | builtin and then its argument prototype would still apply. */ | |
29316 | char IceConnectionNumber (); | |
29317 | int | |
29318 | main () | |
29319 | { | |
29320 | IceConnectionNumber (); | |
29321 | ; | |
29322 | return 0; | |
29323 | } | |
29324 | _ACEOF | |
29325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29327 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29328 | ac_status=$? |
ac1cb8d3 VS |
29329 | grep -v '^ *+' conftest.er1 >conftest.err |
29330 | rm -f conftest.er1 | |
29331 | cat conftest.err >&5 | |
a848cd7e SC |
29332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29333 | (exit $ac_status); } && | |
5d7b7554 | 29334 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29336 | (eval $ac_try) 2>&5 | |
29337 | ac_status=$? | |
29338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29339 | (exit $ac_status); }; } && | |
29340 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29342 | (eval $ac_try) 2>&5 | |
29343 | ac_status=$? | |
29344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29345 | (exit $ac_status); }; }; then | |
29346 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
29347 | else | |
29348 | echo "$as_me: failed program was:" >&5 | |
29349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29350 | ||
29351 | ac_cv_lib_ICE_IceConnectionNumber=no | |
29352 | fi | |
ac1cb8d3 VS |
29353 | rm -f conftest.err conftest.$ac_objext \ |
29354 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29355 | LIBS=$ac_check_lib_save_LIBS |
29356 | fi | |
29357 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
29358 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
29359 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
29360 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
29361 | fi | |
29362 | ||
29363 | LDFLAGS=$ac_save_LDFLAGS | |
29364 | ||
29365 | fi | |
29366 | ||
29367 | ||
29368 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
29369 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
29370 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
29371 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
29372 | fi |
29373 | ||
74b84332 VS |
29374 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
29375 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
29376 | AFMINSTALL=afminstall |
29377 | COMPILED_X_PROGRAM=0 | |
29378 | ||
74b84332 VS |
29379 | fi |
29380 | ||
29381 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
29382 | if test "$wxUSE_NANOX" = "yes"; then |
29383 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
29384 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
29385 | if test "x$MICROWIN" = x ; then | |
29386 | echo "$as_me:$LINENO: result: not found" >&5 | |
29387 | echo "${ECHO_T}not found" >&6 | |
29388 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
29389 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
29390 | { (exit 1); exit 1; }; } | |
29391 | else | |
29392 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
29393 | echo "${ECHO_T}$MICROWIN" >&6 | |
29394 | cat >>confdefs.h <<\_ACEOF | |
29395 | #define wxUSE_NANOX 1 | |
29396 | _ACEOF | |
29397 | ||
29398 | fi | |
29399 | fi | |
29400 | ||
29401 | if test "$wxUSE_UNICODE" = "yes"; then | |
29402 | ||
29403 | succeeded=no | |
29404 | ||
29405 | if test -z "$PKG_CONFIG"; then | |
29406 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29407 | set dummy pkg-config; ac_word=$2 | |
29408 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29410 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29412 | else | |
29413 | case $PKG_CONFIG in | |
29414 | [\\/]* | ?:[\\/]*) | |
29415 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29416 | ;; | |
29417 | *) | |
29418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29419 | for as_dir in $PATH | |
29420 | do | |
29421 | IFS=$as_save_IFS | |
29422 | test -z "$as_dir" && as_dir=. | |
29423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29424 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29425 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29426 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29427 | break 2 | |
29428 | fi | |
29429 | done | |
29430 | done | |
29431 | ||
29432 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29433 | ;; | |
29434 | esac | |
29435 | fi | |
29436 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29437 | ||
29438 | if test -n "$PKG_CONFIG"; then | |
29439 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29440 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29441 | else | |
29442 | echo "$as_me:$LINENO: result: no" >&5 | |
29443 | echo "${ECHO_T}no" >&6 | |
29444 | fi | |
29445 | ||
29446 | fi | |
29447 | ||
29448 | if test "$PKG_CONFIG" = "no" ; then | |
29449 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29450 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29451 | echo "*** to the full path to pkg-config." | |
29452 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29453 | else | |
29454 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29455 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29456 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
29457 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
29458 | ||
29459 | if $PKG_CONFIG --exists "pangox" ; then | |
29460 | echo "$as_me:$LINENO: result: yes" >&5 | |
29461 | echo "${ECHO_T}yes" >&6 | |
29462 | succeeded=yes | |
29463 | ||
29464 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
29465 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
29466 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
29467 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
29468 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
29469 | ||
29470 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
29471 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
29472 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
29473 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
29474 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
29475 | else | |
29476 | PANGOX_CFLAGS="" | |
29477 | PANGOX_LIBS="" | |
29478 | ## If we have a custom action on failure, don't print errors, but | |
29479 | ## do set a variable so people can do so. | |
29480 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
29481 | ||
29482 | fi | |
29483 | ||
29484 | ||
29485 | ||
29486 | else | |
29487 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29488 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29489 | fi | |
29490 | fi | |
29491 | ||
29492 | if test $succeeded = yes; then | |
29493 | ||
c92ad099 | 29494 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29495 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
29496 | ||
29497 | else | |
29498 | ||
29499 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
29500 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
29501 | { (exit 1); exit 1; }; } | |
29502 | ||
29503 | ||
29504 | fi | |
29505 | ||
29506 | ||
29507 | succeeded=no | |
29508 | ||
29509 | if test -z "$PKG_CONFIG"; then | |
29510 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29511 | set dummy pkg-config; ac_word=$2 | |
29512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29514 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29516 | else | |
29517 | case $PKG_CONFIG in | |
29518 | [\\/]* | ?:[\\/]*) | |
29519 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29520 | ;; | |
29521 | *) | |
29522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29523 | for as_dir in $PATH | |
29524 | do | |
29525 | IFS=$as_save_IFS | |
29526 | test -z "$as_dir" && as_dir=. | |
29527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29529 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29531 | break 2 | |
29532 | fi | |
29533 | done | |
29534 | done | |
29535 | ||
29536 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29537 | ;; | |
29538 | esac | |
29539 | fi | |
29540 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29541 | ||
29542 | if test -n "$PKG_CONFIG"; then | |
29543 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29544 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29545 | else | |
29546 | echo "$as_me:$LINENO: result: no" >&5 | |
29547 | echo "${ECHO_T}no" >&6 | |
29548 | fi | |
29549 | ||
29550 | fi | |
29551 | ||
29552 | if test "$PKG_CONFIG" = "no" ; then | |
29553 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29554 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29555 | echo "*** to the full path to pkg-config." | |
29556 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29557 | else | |
29558 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29559 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29560 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
29561 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
29562 | ||
29563 | if $PKG_CONFIG --exists "pangoft2" ; then | |
29564 | echo "$as_me:$LINENO: result: yes" >&5 | |
29565 | echo "${ECHO_T}yes" >&6 | |
29566 | succeeded=yes | |
29567 | ||
29568 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
29569 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
29570 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
29571 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
29572 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
29573 | ||
29574 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
29575 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
29576 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
29577 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
29578 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
29579 | else | |
29580 | PANGOFT2_CFLAGS="" | |
29581 | PANGOFT2_LIBS="" | |
29582 | ## If we have a custom action on failure, don't print errors, but | |
29583 | ## do set a variable so people can do so. | |
29584 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
29585 | ||
29586 | fi | |
29587 | ||
29588 | ||
29589 | ||
29590 | else | |
29591 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29592 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29593 | fi | |
29594 | fi | |
29595 | ||
29596 | if test $succeeded = yes; then | |
29597 | ||
c92ad099 | 29598 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29599 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
29600 | ||
29601 | else | |
29602 | ||
29603 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
29604 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
29605 | wxUSE_PRINTING_ARCHITECTURE="no" | |
29606 | ||
29607 | ||
29608 | fi | |
29609 | ||
29610 | ||
29611 | succeeded=no | |
29612 | ||
29613 | if test -z "$PKG_CONFIG"; then | |
29614 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29615 | set dummy pkg-config; ac_word=$2 | |
29616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29618 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29620 | else | |
29621 | case $PKG_CONFIG in | |
29622 | [\\/]* | ?:[\\/]*) | |
29623 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29624 | ;; | |
29625 | *) | |
29626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29627 | for as_dir in $PATH | |
29628 | do | |
29629 | IFS=$as_save_IFS | |
29630 | test -z "$as_dir" && as_dir=. | |
29631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29632 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29633 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29635 | break 2 | |
29636 | fi | |
29637 | done | |
29638 | done | |
29639 | ||
29640 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29641 | ;; | |
29642 | esac | |
29643 | fi | |
29644 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29645 | ||
29646 | if test -n "$PKG_CONFIG"; then | |
29647 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29648 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29649 | else | |
29650 | echo "$as_me:$LINENO: result: no" >&5 | |
29651 | echo "${ECHO_T}no" >&6 | |
29652 | fi | |
29653 | ||
29654 | fi | |
29655 | ||
29656 | if test "$PKG_CONFIG" = "no" ; then | |
29657 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29658 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29659 | echo "*** to the full path to pkg-config." | |
29660 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29661 | else | |
29662 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29663 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29664 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
29665 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
29666 | ||
29667 | if $PKG_CONFIG --exists "pangoxft" ; then | |
29668 | echo "$as_me:$LINENO: result: yes" >&5 | |
29669 | echo "${ECHO_T}yes" >&6 | |
29670 | succeeded=yes | |
29671 | ||
29672 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
29673 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
29674 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
29675 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
29676 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
29677 | ||
29678 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
29679 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
29680 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
29681 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
29682 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
29683 | else | |
29684 | PANGOXFT_CFLAGS="" | |
29685 | PANGOXFT_LIBS="" | |
29686 | ## If we have a custom action on failure, don't print errors, but | |
29687 | ## do set a variable so people can do so. | |
29688 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
29689 | ||
29690 | fi | |
29691 | ||
29692 | ||
29693 | ||
29694 | else | |
29695 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29696 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29697 | fi | |
29698 | fi | |
29699 | ||
29700 | if test $succeeded = yes; then | |
29701 | ||
4ae1af05 MB |
29702 | cat >>confdefs.h <<\_ACEOF |
29703 | #define HAVE_PANGO_XFT 1 | |
29704 | _ACEOF | |
29705 | ||
c92ad099 | 29706 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29707 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
29708 | ||
29709 | else | |
29710 | ||
29711 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
29712 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
29713 | ||
29714 | ||
29715 | fi | |
29716 | ||
e56f4f9e | 29717 | save_CXXFLAGS="$CXXFLAGS" |
304205f1 | 29718 | save_LIBS="$LIBS" |
e56f4f9e | 29719 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
304205f1 VS |
29720 | LIBS="$LIBS $PANGOX_LIBS" |
29721 | ||
29722 | for ac_func in pango_font_family_is_monospace | |
29723 | do | |
29724 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29725 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29726 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29727 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29729 | else | |
29730 | cat >conftest.$ac_ext <<_ACEOF | |
29731 | /* confdefs.h. */ | |
29732 | _ACEOF | |
29733 | cat confdefs.h >>conftest.$ac_ext | |
29734 | cat >>conftest.$ac_ext <<_ACEOF | |
29735 | /* end confdefs.h. */ | |
29736 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
29737 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29738 | #define $ac_func innocuous_$ac_func | |
29739 | ||
29740 | /* System header to define __stub macros and hopefully few prototypes, | |
29741 | which can conflict with char $ac_func (); below. | |
29742 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29743 | <limits.h> exists even on freestanding compilers. */ | |
29744 | ||
29745 | #ifdef __STDC__ | |
29746 | # include <limits.h> | |
29747 | #else | |
29748 | # include <assert.h> | |
29749 | #endif | |
29750 | ||
29751 | #undef $ac_func | |
29752 | ||
29753 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29754 | #ifdef __cplusplus | |
29755 | extern "C" | |
29756 | { | |
29757 | #endif | |
29758 | /* We use char because int might match the return type of a gcc2 | |
29759 | builtin and then its argument prototype would still apply. */ | |
29760 | char $ac_func (); | |
29761 | /* The GNU C library defines this for functions which it implements | |
29762 | to always fail with ENOSYS. Some functions are actually named | |
29763 | something starting with __ and the normal name is an alias. */ | |
29764 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29765 | choke me | |
29766 | #else | |
29767 | char (*f) () = $ac_func; | |
29768 | #endif | |
29769 | #ifdef __cplusplus | |
29770 | } | |
29771 | #endif | |
29772 | ||
29773 | int | |
29774 | main () | |
29775 | { | |
29776 | return f != $ac_func; | |
29777 | ; | |
29778 | return 0; | |
29779 | } | |
29780 | _ACEOF | |
29781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29783 | (eval $ac_link) 2>conftest.er1 | |
29784 | ac_status=$? | |
29785 | grep -v '^ *+' conftest.er1 >conftest.err | |
29786 | rm -f conftest.er1 | |
29787 | cat conftest.err >&5 | |
29788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29789 | (exit $ac_status); } && | |
5d7b7554 | 29790 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
29791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29792 | (eval $ac_try) 2>&5 | |
29793 | ac_status=$? | |
29794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29795 | (exit $ac_status); }; } && | |
29796 | { ac_try='test -s conftest$ac_exeext' | |
29797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29798 | (eval $ac_try) 2>&5 | |
29799 | ac_status=$? | |
29800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29801 | (exit $ac_status); }; }; then | |
29802 | eval "$as_ac_var=yes" | |
29803 | else | |
29804 | echo "$as_me: failed program was:" >&5 | |
29805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29806 | ||
29807 | eval "$as_ac_var=no" | |
29808 | fi | |
29809 | rm -f conftest.err conftest.$ac_objext \ | |
29810 | conftest$ac_exeext conftest.$ac_ext | |
29811 | fi | |
29812 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29813 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29814 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29815 | cat >>confdefs.h <<_ACEOF | |
29816 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29817 | _ACEOF | |
29818 | ||
29819 | fi | |
29820 | done | |
29821 | ||
e56f4f9e | 29822 | CXXFLAGS="$save_CXXFLAGS" |
304205f1 | 29823 | LIBS="$save_LIBS" |
a848cd7e SC |
29824 | fi |
29825 | ||
29826 | wxUSE_UNIVERSAL="yes" | |
29827 | ||
29828 | if test "$wxUSE_NANOX" = "yes"; then | |
29829 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
29830 | 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" | |
29831 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
29832 | else | |
29833 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
29834 | fi | |
29835 | ||
a848cd7e SC |
29836 | TOOLKIT=X11 |
29837 | GUIDIST=X11_DIST | |
29838 | fi | |
29839 | ||
29840 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
29841 | if test "$wxUSE_UNICODE" = "yes"; then |
29842 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
29843 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
29844 | { (exit 1); exit 1; }; } | |
29845 | fi | |
29846 | ||
74b84332 VS |
29847 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
29848 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 29849 | |
74b84332 VS |
29850 | ac_find_includes= |
29851 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29852 | do | |
29853 | if test -f "$ac_dir/Xm/Xm.h"; then | |
29854 | ac_find_includes=$ac_dir | |
29855 | break | |
29856 | fi | |
29857 | done | |
a848cd7e | 29858 | |
74b84332 VS |
29859 | if test "$ac_find_includes" != "" ; then |
29860 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29861 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29862 | ||
29863 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29864 | ac_path_to_include="" | |
29865 | else | |
29866 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
29867 | result=$? | |
29868 | if test $result = 0; then | |
29869 | ac_path_to_include="" | |
29870 | else | |
29871 | ac_path_to_include=" -I$ac_find_includes" | |
29872 | fi | |
a848cd7e SC |
29873 | fi |
29874 | ||
74b84332 VS |
29875 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
29876 | else | |
e56f4f9e VZ |
29877 | save_CXXFLAGS=$CXXFLAGS |
29878 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
e051b34e | 29879 | |
74b84332 | 29880 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29881 | /* confdefs.h. */ |
29882 | _ACEOF | |
29883 | cat confdefs.h >>conftest.$ac_ext | |
29884 | cat >>conftest.$ac_ext <<_ACEOF | |
29885 | /* end confdefs.h. */ | |
29886 | ||
74b84332 VS |
29887 | #include <Xm/Xm.h> |
29888 | ||
a848cd7e SC |
29889 | int |
29890 | main () | |
29891 | { | |
29892 | ||
74b84332 VS |
29893 | int version; |
29894 | version = xmUseVersion; | |
29895 | ||
a848cd7e SC |
29896 | ; |
29897 | return 0; | |
29898 | } | |
29899 | _ACEOF | |
74b84332 VS |
29900 | rm -f conftest.$ac_objext |
29901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29902 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 29903 | ac_status=$? |
ac1cb8d3 VS |
29904 | grep -v '^ *+' conftest.er1 >conftest.err |
29905 | rm -f conftest.er1 | |
29906 | cat conftest.err >&5 | |
a848cd7e SC |
29907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29908 | (exit $ac_status); } && | |
5d7b7554 | 29909 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29911 | (eval $ac_try) 2>&5 | |
29912 | ac_status=$? | |
29913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29914 | (exit $ac_status); }; } && | |
74b84332 | 29915 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
29916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29917 | (eval $ac_try) 2>&5 | |
29918 | ac_status=$? | |
29919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29920 | (exit $ac_status); }; }; then | |
74b84332 VS |
29921 | |
29922 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
29923 | echo "${ECHO_T}found in default search path" >&6 | |
29924 | COMPILED_X_PROGRAM=1 | |
29925 | ||
a848cd7e SC |
29926 | else |
29927 | echo "$as_me: failed program was:" >&5 | |
29928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29929 | ||
a848cd7e | 29930 | |
74b84332 VS |
29931 | echo "$as_me:$LINENO: result: no" >&5 |
29932 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
29933 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
29934 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 29935 | { (exit 1); exit 1; }; } |
a848cd7e | 29936 | |
a848cd7e | 29937 | |
a848cd7e | 29938 | fi |
74b84332 | 29939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e | 29940 | |
e56f4f9e | 29941 | CXXFLAGS=$save_CXXFLAGS |
74b84332 VS |
29942 | fi |
29943 | ||
0ad5d837 VZ |
29944 | |
29945 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
29946 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
29947 | ||
0ad5d837 VZ |
29948 | ac_find_libraries= |
29949 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 29950 | do |
3eca31dc | 29951 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
29952 | if test -f "$ac_dir/libXm.$ac_extension"; then |
29953 | ac_find_libraries=$ac_dir | |
29954 | break 2 | |
a848cd7e | 29955 | fi |
74b84332 VS |
29956 | done |
29957 | done | |
a848cd7e | 29958 | |
0ad5d837 VZ |
29959 | |
29960 | if test "x$ac_find_libraries" != "x" ; then | |
29961 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
29962 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 29963 | |
74b84332 | 29964 | |
0ad5d837 | 29965 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 29966 | ac_path_to_link="" |
a848cd7e | 29967 | else |
0ad5d837 VZ |
29968 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29969 | result=$? | |
29970 | if test $result = 0; then | |
29971 | ac_path_to_link="" | |
29972 | else | |
29973 | ac_path_to_link=" -L$ac_find_libraries" | |
29974 | fi | |
74b84332 VS |
29975 | fi |
29976 | ||
0ad5d837 VZ |
29977 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
29978 | else | |
e56f4f9e VZ |
29979 | save_CXXFLAGS=$CXXFLAGS |
29980 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
6f9cf1e6 MW |
29981 | save_LIBS="$LIBS" |
29982 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 29983 | |
0ad5d837 | 29984 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29985 | /* confdefs.h. */ |
29986 | _ACEOF | |
29987 | cat confdefs.h >>conftest.$ac_ext | |
29988 | cat >>conftest.$ac_ext <<_ACEOF | |
29989 | /* end confdefs.h. */ | |
29990 | ||
0ad5d837 | 29991 | #include <Xm/Xm.h> |
74b84332 | 29992 | |
a848cd7e SC |
29993 | int |
29994 | main () | |
29995 | { | |
74b84332 | 29996 | |
0ad5d837 VZ |
29997 | int version; |
29998 | version = xmUseVersion; | |
74b84332 | 29999 | |
a848cd7e SC |
30000 | ; |
30001 | return 0; | |
30002 | } | |
30003 | _ACEOF | |
0ad5d837 VZ |
30004 | rm -f conftest.$ac_objext conftest$ac_exeext |
30005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30006 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 30007 | ac_status=$? |
ac1cb8d3 VS |
30008 | grep -v '^ *+' conftest.er1 >conftest.err |
30009 | rm -f conftest.er1 | |
30010 | cat conftest.err >&5 | |
a848cd7e SC |
30011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30012 | (exit $ac_status); } && | |
5d7b7554 | 30013 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30015 | (eval $ac_try) 2>&5 | |
30016 | ac_status=$? | |
30017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30018 | (exit $ac_status); }; } && | |
0ad5d837 | 30019 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30021 | (eval $ac_try) 2>&5 | |
30022 | ac_status=$? | |
30023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30024 | (exit $ac_status); }; }; then | |
74b84332 | 30025 | |
0ad5d837 | 30026 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 30027 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 30028 | COMPILED_X_PROGRAM=1 |
74b84332 | 30029 | |
a848cd7e SC |
30030 | else |
30031 | echo "$as_me: failed program was:" >&5 | |
30032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30033 | ||
74b84332 | 30034 | |
6f9cf1e6 | 30035 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 30036 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 30037 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
30038 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
30039 | { (exit 1); exit 1; }; } | |
30040 | ||
30041 | ||
30042 | fi | |
0ad5d837 VZ |
30043 | rm -f conftest.err conftest.$ac_objext \ |
30044 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 30045 | |
e56f4f9e | 30046 | CXXFLAGS=$save_CXXFLAGS |
6f9cf1e6 | 30047 | LIBS="$save_LIBS" |
74b84332 VS |
30048 | fi |
30049 | ||
30050 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
30051 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
30052 | libp_link="" | |
30053 | libsm_ice_link="" | |
30054 | libs_found=0 | |
30055 | for libp in "" " -lXp"; do | |
30056 | if test "$libs_found" = "0"; then | |
30057 | for libsm_ice in "" " -lSM -lICE"; do | |
30058 | if test "$libs_found" = "0"; then | |
30059 | save_LIBS="$LIBS" | |
30060 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
e56f4f9e VZ |
30061 | save_CXXFLAGS=$CXXFLAGS |
30062 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
74b84332 VS |
30063 | |
30064 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30065 | /* confdefs.h. */ |
30066 | _ACEOF | |
30067 | cat confdefs.h >>conftest.$ac_ext | |
30068 | cat >>conftest.$ac_ext <<_ACEOF | |
30069 | /* end confdefs.h. */ | |
30070 | ||
74b84332 VS |
30071 | #include <Xm/Xm.h> |
30072 | #include <Xm/List.h> | |
30073 | ||
a848cd7e SC |
30074 | int |
30075 | main () | |
30076 | { | |
74b84332 VS |
30077 | |
30078 | XmString string = NULL; | |
30079 | Widget w = NULL; | |
30080 | int position = 0; | |
30081 | XmListAddItem(w, string, position); | |
30082 | ||
a848cd7e SC |
30083 | ; |
30084 | return 0; | |
30085 | } | |
30086 | _ACEOF | |
30087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30089 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30090 | ac_status=$? |
ac1cb8d3 VS |
30091 | grep -v '^ *+' conftest.er1 >conftest.err |
30092 | rm -f conftest.er1 | |
30093 | cat conftest.err >&5 | |
a848cd7e SC |
30094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30095 | (exit $ac_status); } && | |
5d7b7554 | 30096 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30098 | (eval $ac_try) 2>&5 | |
30099 | ac_status=$? | |
30100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30101 | (exit $ac_status); }; } && | |
30102 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30104 | (eval $ac_try) 2>&5 | |
30105 | ac_status=$? | |
30106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30107 | (exit $ac_status); }; }; then | |
30108 | ||
30109 | libp_link="$libp" | |
30110 | libsm_ice_link="$libsm_ice" | |
30111 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
30112 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
30113 | libs_found=1 | |
30114 | ||
30115 | else | |
30116 | echo "$as_me: failed program was:" >&5 | |
30117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30118 | ||
30119 | ||
30120 | ||
30121 | fi | |
ac1cb8d3 VS |
30122 | rm -f conftest.err conftest.$ac_objext \ |
30123 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30124 | |
30125 | LIBS="$save_LIBS" | |
e56f4f9e | 30126 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
30127 | fi |
30128 | done | |
30129 | fi | |
30130 | done | |
30131 | ||
30132 | if test "$libs_found" = "0"; then | |
30133 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
30134 | echo "${ECHO_T}can't find the right libraries" >&6 | |
30135 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
30136 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
30137 | { (exit 1); exit 1; }; } | |
30138 | fi | |
30139 | ||
62fa8b3a MW |
30140 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
30141 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
30142 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
30143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30144 | else | |
30145 | ac_check_lib_save_LIBS=$LIBS | |
30146 | LIBS="-lSgm $LIBS" | |
30147 | cat >conftest.$ac_ext <<_ACEOF | |
30148 | /* confdefs.h. */ | |
30149 | _ACEOF | |
30150 | cat confdefs.h >>conftest.$ac_ext | |
30151 | cat >>conftest.$ac_ext <<_ACEOF | |
30152 | /* end confdefs.h. */ | |
30153 | ||
30154 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30155 | #ifdef __cplusplus | |
30156 | extern "C" | |
30157 | #endif | |
30158 | /* We use char because int might match the return type of a gcc2 | |
30159 | builtin and then its argument prototype would still apply. */ | |
30160 | char SgCreateList (); | |
30161 | int | |
30162 | main () | |
30163 | { | |
30164 | SgCreateList (); | |
30165 | ; | |
30166 | return 0; | |
30167 | } | |
30168 | _ACEOF | |
30169 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30171 | (eval $ac_link) 2>conftest.er1 | |
30172 | ac_status=$? | |
30173 | grep -v '^ *+' conftest.er1 >conftest.err | |
30174 | rm -f conftest.er1 | |
30175 | cat conftest.err >&5 | |
30176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30177 | (exit $ac_status); } && | |
5d7b7554 | 30178 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
30179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30180 | (eval $ac_try) 2>&5 | |
30181 | ac_status=$? | |
30182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30183 | (exit $ac_status); }; } && | |
30184 | { ac_try='test -s conftest$ac_exeext' | |
30185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30186 | (eval $ac_try) 2>&5 | |
30187 | ac_status=$? | |
30188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30189 | (exit $ac_status); }; }; then | |
30190 | ac_cv_lib_Sgm_SgCreateList=yes | |
30191 | else | |
30192 | echo "$as_me: failed program was:" >&5 | |
30193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30194 | ||
30195 | ac_cv_lib_Sgm_SgCreateList=no | |
30196 | fi | |
30197 | rm -f conftest.err conftest.$ac_objext \ | |
30198 | conftest$ac_exeext conftest.$ac_ext | |
30199 | LIBS=$ac_check_lib_save_LIBS | |
30200 | fi | |
30201 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
30202 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
30203 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
30204 | libsgm_link=" -lSgm" | |
30205 | fi | |
30206 | ||
30207 | ||
e56f4f9e VZ |
30208 | save_CXXFLAGS=$CXXFLAGS |
30209 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
0ad5d837 | 30210 | |
a848cd7e SC |
30211 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
30212 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
30213 | if test "${wx_cv_lib_motif2+set}" = set; then |
30214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30215 | else | |
30216 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30217 | /* confdefs.h. */ |
30218 | _ACEOF | |
30219 | cat confdefs.h >>conftest.$ac_ext | |
30220 | cat >>conftest.$ac_ext <<_ACEOF | |
30221 | /* end confdefs.h. */ | |
30222 | ||
0ad5d837 | 30223 | #include <Xm/Xm.h> |
a848cd7e SC |
30224 | |
30225 | int | |
30226 | main () | |
30227 | { | |
30228 | ||
0ad5d837 VZ |
30229 | #if XmVersion < 2000 |
30230 | Not Motif 2 | |
30231 | #endif | |
a848cd7e SC |
30232 | |
30233 | ; | |
30234 | return 0; | |
30235 | } | |
30236 | _ACEOF | |
30237 | rm -f conftest.$ac_objext | |
30238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30239 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30240 | ac_status=$? |
ac1cb8d3 VS |
30241 | grep -v '^ *+' conftest.er1 >conftest.err |
30242 | rm -f conftest.er1 | |
30243 | cat conftest.err >&5 | |
a848cd7e SC |
30244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30245 | (exit $ac_status); } && | |
5d7b7554 | 30246 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30248 | (eval $ac_try) 2>&5 | |
30249 | ac_status=$? | |
30250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30251 | (exit $ac_status); }; } && | |
30252 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30254 | (eval $ac_try) 2>&5 | |
30255 | ac_status=$? | |
30256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30257 | (exit $ac_status); }; }; then | |
0ad5d837 | 30258 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
30259 | else |
30260 | echo "$as_me: failed program was:" >&5 | |
30261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30262 | ||
0ad5d837 VZ |
30263 | wx_cv_lib_motif2="no" |
30264 | fi | |
30265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30266 | fi | |
30267 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
30268 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
30269 | if test "$wx_cv_lib_motif2" = "yes"; then | |
30270 | cat >>confdefs.h <<\_ACEOF | |
30271 | #define __WXMOTIF20__ 1 | |
30272 | _ACEOF | |
a848cd7e | 30273 | |
0ad5d837 VZ |
30274 | else |
30275 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30276 | #define __WXMOTIF20__ 0 |
30277 | _ACEOF | |
30278 | ||
0ad5d837 | 30279 | fi |
2113bc77 MW |
30280 | |
30281 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
30282 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
30283 | if test "${wx_cv_lib_lesstif+set}" = set; then |
30284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30285 | else | |
30286 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
30287 | /* confdefs.h. */ |
30288 | _ACEOF | |
30289 | cat confdefs.h >>conftest.$ac_ext | |
30290 | cat >>conftest.$ac_ext <<_ACEOF | |
30291 | /* end confdefs.h. */ | |
30292 | ||
0ad5d837 | 30293 | #include <Xm/Xm.h> |
2113bc77 MW |
30294 | |
30295 | int | |
30296 | main () | |
30297 | { | |
30298 | ||
0ad5d837 VZ |
30299 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
30300 | Not Lesstif | |
30301 | #endif | |
2113bc77 MW |
30302 | |
30303 | ; | |
30304 | return 0; | |
30305 | } | |
30306 | _ACEOF | |
30307 | rm -f conftest.$ac_objext | |
30308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30309 | (eval $ac_compile) 2>conftest.er1 | |
30310 | ac_status=$? | |
30311 | grep -v '^ *+' conftest.er1 >conftest.err | |
30312 | rm -f conftest.er1 | |
30313 | cat conftest.err >&5 | |
30314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30315 | (exit $ac_status); } && | |
5d7b7554 | 30316 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
30317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30318 | (eval $ac_try) 2>&5 | |
30319 | ac_status=$? | |
30320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30321 | (exit $ac_status); }; } && | |
30322 | { ac_try='test -s conftest.$ac_objext' | |
30323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30324 | (eval $ac_try) 2>&5 | |
30325 | ac_status=$? | |
30326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30327 | (exit $ac_status); }; }; then | |
0ad5d837 | 30328 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
30329 | else |
30330 | echo "$as_me: failed program was:" >&5 | |
30331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30332 | ||
0ad5d837 VZ |
30333 | wx_cv_lib_lesstif="no" |
30334 | fi | |
30335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 30336 | |
0ad5d837 VZ |
30337 | fi |
30338 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
30339 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
30340 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
30341 | cat >>confdefs.h <<\_ACEOF | |
30342 | #define __WXLESSTIF__ 1 | |
30343 | _ACEOF | |
30344 | ||
30345 | else | |
30346 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
30347 | #define __WXLESSTIF__ 0 |
30348 | _ACEOF | |
30349 | ||
0ad5d837 | 30350 | fi |
2113bc77 | 30351 | |
e56f4f9e | 30352 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e | 30353 | |
62fa8b3a | 30354 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
30355 | TOOLKIT=MOTIF |
30356 | GUIDIST=MOTIF_DIST | |
30357 | fi | |
30358 | ||
74b84332 | 30359 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
30360 | if test "$wxUSE_LIBXPM" = "sys"; then |
30361 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
30362 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
30363 | ||
0ad5d837 VZ |
30364 | ac_find_libraries= |
30365 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30366 | do |
3eca31dc | 30367 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30368 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
30369 | ac_find_libraries=$ac_dir | |
30370 | break 2 | |
30371 | fi | |
30372 | done | |
30373 | done | |
30374 | ||
30375 | if test "$ac_find_libraries" != "" ; then | |
30376 | ||
0ad5d837 | 30377 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30378 | ac_path_to_link="" |
30379 | else | |
0ad5d837 VZ |
30380 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30381 | result=$? | |
30382 | if test $result = 0; then | |
30383 | ac_path_to_link="" | |
30384 | else | |
30385 | ac_path_to_link=" -L$ac_find_libraries" | |
30386 | fi | |
a848cd7e SC |
30387 | fi |
30388 | ||
30389 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
30390 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
30391 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
30392 | |
30393 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
30394 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
30395 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
30396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30397 | else | |
30398 | ||
e56f4f9e VZ |
30399 | save_CXXFLAGS=$CXXFLAGS |
30400 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
30401 | |
30402 | cat >conftest.$ac_ext <<_ACEOF | |
30403 | /* confdefs.h. */ | |
30404 | _ACEOF | |
30405 | cat confdefs.h >>conftest.$ac_ext | |
30406 | cat >>conftest.$ac_ext <<_ACEOF | |
30407 | /* end confdefs.h. */ | |
30408 | ||
30409 | #include <X11/xpm.h> | |
30410 | ||
30411 | int | |
30412 | main () | |
30413 | { | |
30414 | ||
30415 | int version; | |
30416 | version = XpmLibraryVersion(); | |
30417 | ||
30418 | ; | |
30419 | return 0; | |
30420 | } | |
30421 | _ACEOF | |
30422 | rm -f conftest.$ac_objext | |
30423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30425 | ac_status=$? |
ac1cb8d3 VS |
30426 | grep -v '^ *+' conftest.er1 >conftest.err |
30427 | rm -f conftest.er1 | |
30428 | cat conftest.err >&5 | |
a848cd7e SC |
30429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30430 | (exit $ac_status); } && | |
5d7b7554 | 30431 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30433 | (eval $ac_try) 2>&5 | |
30434 | ac_status=$? | |
30435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30436 | (exit $ac_status); }; } && | |
30437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30439 | (eval $ac_try) 2>&5 | |
30440 | ac_status=$? | |
30441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30442 | (exit $ac_status); }; }; then | |
30443 | wx_cv_x11_xpm_h=yes | |
30444 | else | |
30445 | echo "$as_me: failed program was:" >&5 | |
30446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30447 | ||
30448 | wx_cv_x11_xpm_h=no | |
30449 | ||
30450 | fi | |
ac1cb8d3 | 30451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 30452 | |
e56f4f9e | 30453 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
30454 | |
30455 | ||
30456 | fi | |
30457 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
30458 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
30459 | ||
30460 | if test $wx_cv_x11_xpm_h = "yes"; then | |
30461 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
30462 | cat >>confdefs.h <<\_ACEOF | |
30463 | #define wxHAVE_LIB_XPM 1 | |
30464 | _ACEOF | |
30465 | ||
30466 | else | |
30467 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
30468 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
30469 | fi | |
30470 | fi | |
30471 | ||
30472 | fi | |
30473 | ||
30474 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
30475 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
30476 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
30477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30478 | else | |
30479 | ac_check_lib_save_LIBS=$LIBS | |
30480 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
30481 | cat >conftest.$ac_ext <<_ACEOF | |
30482 | /* confdefs.h. */ | |
30483 | _ACEOF | |
30484 | cat confdefs.h >>conftest.$ac_ext | |
30485 | cat >>conftest.$ac_ext <<_ACEOF | |
30486 | /* end confdefs.h. */ | |
30487 | ||
30488 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30489 | #ifdef __cplusplus | |
30490 | extern "C" | |
30491 | #endif | |
30492 | /* We use char because int might match the return type of a gcc2 | |
30493 | builtin and then its argument prototype would still apply. */ | |
30494 | char XShapeQueryExtension (); | |
30495 | int | |
30496 | main () | |
30497 | { | |
30498 | XShapeQueryExtension (); | |
30499 | ; | |
30500 | return 0; | |
30501 | } | |
30502 | _ACEOF | |
30503 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30505 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30506 | ac_status=$? |
ac1cb8d3 VS |
30507 | grep -v '^ *+' conftest.er1 >conftest.err |
30508 | rm -f conftest.er1 | |
30509 | cat conftest.err >&5 | |
a848cd7e SC |
30510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30511 | (exit $ac_status); } && | |
5d7b7554 | 30512 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30514 | (eval $ac_try) 2>&5 | |
30515 | ac_status=$? | |
30516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30517 | (exit $ac_status); }; } && | |
30518 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30520 | (eval $ac_try) 2>&5 | |
30521 | ac_status=$? | |
30522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30523 | (exit $ac_status); }; }; then | |
30524 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
30525 | else | |
30526 | echo "$as_me: failed program was:" >&5 | |
30527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30528 | ||
30529 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
30530 | fi | |
ac1cb8d3 VS |
30531 | rm -f conftest.err conftest.$ac_objext \ |
30532 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30533 | LIBS=$ac_check_lib_save_LIBS |
30534 | fi | |
30535 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
30536 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
30537 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
30538 | ||
30539 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
30540 | wxHAVE_XEXT_LIB=1 | |
30541 | ||
30542 | fi | |
30543 | ||
30544 | ||
30545 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
e56f4f9e VZ |
30546 | save_CXXFLAGS="$CXXFLAGS" |
30547 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
30548 | |
30549 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
30550 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
30551 | cat >conftest.$ac_ext <<_ACEOF | |
30552 | /* confdefs.h. */ | |
30553 | _ACEOF | |
30554 | cat confdefs.h >>conftest.$ac_ext | |
30555 | cat >>conftest.$ac_ext <<_ACEOF | |
30556 | /* end confdefs.h. */ | |
30557 | ||
30558 | #include <X11/Xlib.h> | |
30559 | #include <X11/extensions/shape.h> | |
30560 | ||
30561 | int | |
30562 | main () | |
30563 | { | |
30564 | ||
30565 | int dummy1, dummy2; | |
30566 | XShapeQueryExtension((Display*)NULL, | |
30567 | (int*)NULL, (int*)NULL); | |
30568 | ||
30569 | ; | |
30570 | return 0; | |
30571 | } | |
30572 | _ACEOF | |
30573 | rm -f conftest.$ac_objext | |
30574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30575 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30576 | ac_status=$? |
ac1cb8d3 VS |
30577 | grep -v '^ *+' conftest.er1 >conftest.err |
30578 | rm -f conftest.er1 | |
30579 | cat conftest.err >&5 | |
a848cd7e SC |
30580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30581 | (exit $ac_status); } && | |
5d7b7554 | 30582 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30584 | (eval $ac_try) 2>&5 | |
30585 | ac_status=$? | |
30586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30587 | (exit $ac_status); }; } && | |
30588 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30590 | (eval $ac_try) 2>&5 | |
30591 | ac_status=$? | |
30592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30593 | (exit $ac_status); }; }; then | |
30594 | ||
30595 | cat >>confdefs.h <<\_ACEOF | |
30596 | #define HAVE_XSHAPE 1 | |
30597 | _ACEOF | |
30598 | ||
30599 | echo "$as_me:$LINENO: result: found" >&5 | |
30600 | echo "${ECHO_T}found" >&6 | |
30601 | ||
30602 | else | |
30603 | echo "$as_me: failed program was:" >&5 | |
30604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30605 | ||
30606 | ||
30607 | echo "$as_me:$LINENO: result: not found" >&5 | |
30608 | echo "${ECHO_T}not found" >&6 | |
30609 | ||
30610 | fi | |
ac1cb8d3 | 30611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e56f4f9e | 30612 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
30613 | |
30614 | fi | |
30615 | fi | |
30616 | ||
30617 | if test "$wxUSE_MAC" = 1; then | |
30618 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
30619 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
30620 | if test "$GCC" = yes; then | |
30621 | echo "$as_me:$LINENO: result: gcc" >&5 | |
30622 | echo "${ECHO_T}gcc" >&6 | |
30623 | CPPFLAGS_PASCAL="-fpascal-strings" | |
30624 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
30625 | echo "$as_me:$LINENO: result: xlc" >&5 | |
30626 | echo "${ECHO_T}xlc" >&6 | |
30627 | CPPFLAGS_PASCAL="-qmacpstr" | |
30628 | else | |
30629 | echo "$as_me:$LINENO: result: none" >&5 | |
30630 | echo "${ECHO_T}none" >&6 | |
30631 | fi | |
30632 | ||
1e9e8aba | 30633 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 30634 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 30635 | else |
c92ad099 | 30636 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 30637 | fi |
a848cd7e | 30638 | |
a848cd7e SC |
30639 | TOOLKIT=MAC |
30640 | GUIDIST=MACX_DIST | |
dd21ced8 | 30641 | WXBASEPORT="_carbon" |
a848cd7e SC |
30642 | fi |
30643 | ||
30644 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
30645 | TOOLKIT=COCOA |
30646 | GUIDIST=COCOA_DIST | |
30647 | fi | |
30648 | ||
30649 | if test "$wxUSE_PM" = 1; then | |
30650 | TOOLKIT=PM | |
de59c161 RD |
30651 | GUIDIST=PM_DIST |
30652 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
30653 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
30654 | if test "${wx_cv_spbcdata+set}" = set; then | |
30655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30656 | else | |
30657 | ||
30658 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
30659 | /* confdefs.h. */ |
30660 | _ACEOF | |
30661 | cat confdefs.h >>conftest.$ac_ext | |
30662 | cat >>conftest.$ac_ext <<_ACEOF | |
30663 | /* end confdefs.h. */ | |
30664 | ||
30665 | #define INCL_PM | |
30666 | #include <os2.h> | |
30667 | ||
30668 | int | |
30669 | main () | |
30670 | { | |
30671 | ||
30672 | SPBCDATA test; | |
30673 | ||
30674 | ; | |
30675 | return 0; | |
30676 | } | |
30677 | _ACEOF | |
30678 | rm -f conftest.$ac_objext | |
30679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30680 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 30681 | ac_status=$? |
ac1cb8d3 VS |
30682 | grep -v '^ *+' conftest.er1 >conftest.err |
30683 | rm -f conftest.er1 | |
30684 | cat conftest.err >&5 | |
de59c161 RD |
30685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30686 | (exit $ac_status); } && | |
5d7b7554 | 30687 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30689 | (eval $ac_try) 2>&5 | |
30690 | ac_status=$? | |
30691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30692 | (exit $ac_status); }; } && | |
30693 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
30694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30695 | (eval $ac_try) 2>&5 | |
30696 | ac_status=$? | |
30697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30698 | (exit $ac_status); }; }; then | |
30699 | wx_cv_spbcdata=yes | |
30700 | else | |
30701 | echo "$as_me: failed program was:" >&5 | |
30702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30703 | ||
30704 | wx_cv_spbcdata=no | |
30705 | ||
30706 | fi | |
ac1cb8d3 | 30707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
30708 | |
30709 | ||
30710 | fi | |
30711 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
30712 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
30713 | ||
30714 | if test $wx_cv_spbcdata = "yes"; then | |
30715 | cat >>confdefs.h <<\_ACEOF | |
30716 | #define HAVE_SPBCDATA 1 | |
30717 | _ACEOF | |
30718 | ||
30719 | fi | |
a848cd7e SC |
30720 | fi |
30721 | ||
30722 | if test "$TOOLKIT" = "PM" ; then | |
30723 | TOOLKIT_DIR="os2" | |
30724 | else | |
30725 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
30726 | fi | |
30727 | ||
a848cd7e | 30728 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
30729 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
30730 | WIDGET_SET=univ | |
a848cd7e SC |
30731 | fi |
30732 | ||
30733 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
30734 | DISTDIR="wx\$(TOOLKIT)" | |
30735 | else | |
30736 | USE_GUI=0 | |
30737 | ||
30738 | TOOLKIT_DIR="base" | |
30739 | ||
30740 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 30741 | TOOLKIT="MSW" |
a848cd7e SC |
30742 | fi |
30743 | ||
a848cd7e SC |
30744 | GUIDIST="BASE_DIST" |
30745 | DISTDIR="wxBase" | |
30746 | fi | |
30747 | ||
30748 | ||
d12aef51 VZ |
30749 | if test "$wxUSE_GUI" = "yes"; then |
30750 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
30751 | ||
30752 | for ac_header in X11/Xlib.h | |
30753 | do | |
30754 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30755 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30756 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30757 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30758 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30760 | fi | |
30761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30763 | else | |
30764 | # Is the header compilable? | |
30765 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30766 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30767 | cat >conftest.$ac_ext <<_ACEOF | |
30768 | /* confdefs.h. */ | |
30769 | _ACEOF | |
30770 | cat confdefs.h >>conftest.$ac_ext | |
30771 | cat >>conftest.$ac_ext <<_ACEOF | |
30772 | /* end confdefs.h. */ | |
30773 | $ac_includes_default | |
30774 | #include <$ac_header> | |
30775 | _ACEOF | |
30776 | rm -f conftest.$ac_objext | |
30777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30778 | (eval $ac_compile) 2>conftest.er1 | |
30779 | ac_status=$? | |
30780 | grep -v '^ *+' conftest.er1 >conftest.err | |
30781 | rm -f conftest.er1 | |
30782 | cat conftest.err >&5 | |
30783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30784 | (exit $ac_status); } && | |
5d7b7554 | 30785 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
30786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30787 | (eval $ac_try) 2>&5 | |
30788 | ac_status=$? | |
30789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30790 | (exit $ac_status); }; } && | |
30791 | { ac_try='test -s conftest.$ac_objext' | |
30792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30793 | (eval $ac_try) 2>&5 | |
30794 | ac_status=$? | |
30795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30796 | (exit $ac_status); }; }; then | |
30797 | ac_header_compiler=yes | |
30798 | else | |
30799 | echo "$as_me: failed program was:" >&5 | |
30800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30801 | ||
30802 | ac_header_compiler=no | |
30803 | fi | |
30804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30805 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
30806 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30807 | ||
30808 | # Is the header present? | |
30809 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
30810 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
30811 | cat >conftest.$ac_ext <<_ACEOF | |
30812 | /* confdefs.h. */ | |
30813 | _ACEOF | |
30814 | cat confdefs.h >>conftest.$ac_ext | |
30815 | cat >>conftest.$ac_ext <<_ACEOF | |
30816 | /* end confdefs.h. */ | |
30817 | #include <$ac_header> | |
30818 | _ACEOF | |
30819 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30820 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30821 | ac_status=$? | |
30822 | grep -v '^ *+' conftest.er1 >conftest.err | |
30823 | rm -f conftest.er1 | |
30824 | cat conftest.err >&5 | |
30825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30826 | (exit $ac_status); } >/dev/null; then | |
30827 | if test -s conftest.err; then | |
5d7b7554 VZ |
30828 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
30829 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
d12aef51 VZ |
30830 | else |
30831 | ac_cpp_err= | |
30832 | fi | |
30833 | else | |
30834 | ac_cpp_err=yes | |
30835 | fi | |
30836 | if test -z "$ac_cpp_err"; then | |
30837 | ac_header_preproc=yes | |
30838 | else | |
30839 | echo "$as_me: failed program was:" >&5 | |
30840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30841 | ||
30842 | ac_header_preproc=no | |
30843 | fi | |
30844 | rm -f conftest.err conftest.$ac_ext | |
30845 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30846 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30847 | ||
30848 | # So? What about this header? | |
5d7b7554 | 30849 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
d12aef51 VZ |
30850 | yes:no: ) |
30851 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
30852 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
30853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
30854 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
30855 | ac_header_preproc=yes | |
30856 | ;; | |
30857 | no:yes:* ) | |
30858 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
30859 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
30860 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
30861 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
30862 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
30863 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
30864 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
30865 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
30866 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
30867 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30868 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
30869 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
30870 | ( | |
30871 | cat <<\_ASBOX | |
30872 | ## ----------------------------------------- ## | |
30873 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30874 | ## ----------------------------------------- ## | |
30875 | _ASBOX | |
30876 | ) | | |
30877 | sed "s/^/$as_me: WARNING: /" >&2 | |
30878 | ;; | |
30879 | esac | |
30880 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30882 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30884 | else | |
30885 | eval "$as_ac_Header=\$ac_header_preproc" | |
30886 | fi | |
30887 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30888 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30889 | ||
30890 | fi | |
30891 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30892 | cat >>confdefs.h <<_ACEOF | |
30893 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30894 | _ACEOF | |
30895 | ||
30896 | fi | |
30897 | ||
30898 | done | |
30899 | ||
30900 | ||
30901 | for ac_header in X11/XKBlib.h | |
30902 | do | |
30903 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30908 | else | |
30909 | cat >conftest.$ac_ext <<_ACEOF | |
30910 | /* confdefs.h. */ | |
30911 | _ACEOF | |
30912 | cat confdefs.h >>conftest.$ac_ext | |
30913 | cat >>conftest.$ac_ext <<_ACEOF | |
30914 | /* end confdefs.h. */ | |
30915 | ||
30916 | #if HAVE_X11_XLIB_H | |
30917 | #include <X11/Xlib.h> | |
30918 | #endif | |
30919 | ||
30920 | ||
30921 | #include <$ac_header> | |
30922 | _ACEOF | |
30923 | rm -f conftest.$ac_objext | |
30924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30925 | (eval $ac_compile) 2>conftest.er1 | |
30926 | ac_status=$? | |
30927 | grep -v '^ *+' conftest.er1 >conftest.err | |
30928 | rm -f conftest.er1 | |
30929 | cat conftest.err >&5 | |
30930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30931 | (exit $ac_status); } && | |
5d7b7554 | 30932 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
30933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30934 | (eval $ac_try) 2>&5 | |
30935 | ac_status=$? | |
30936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30937 | (exit $ac_status); }; } && | |
30938 | { ac_try='test -s conftest.$ac_objext' | |
30939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30940 | (eval $ac_try) 2>&5 | |
30941 | ac_status=$? | |
30942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30943 | (exit $ac_status); }; }; then | |
30944 | eval "$as_ac_Header=yes" | |
30945 | else | |
30946 | echo "$as_me: failed program was:" >&5 | |
30947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30948 | ||
30949 | eval "$as_ac_Header=no" | |
30950 | fi | |
30951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30952 | fi | |
30953 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30954 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30955 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30956 | cat >>confdefs.h <<_ACEOF | |
30957 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30958 | _ACEOF | |
30959 | ||
30960 | fi | |
30961 | ||
30962 | done | |
30963 | ||
30964 | fi | |
30965 | fi | |
30966 | ||
a848cd7e SC |
30967 | |
30968 | ||
30969 | IODBC_C_SRC="" | |
30970 | ||
30971 | ||
30972 | if test "$TOOLKIT" != "MSW" ; then | |
30973 | ||
30974 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
30975 | ||
30976 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30977 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30978 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30979 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30981 | fi | |
30982 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30983 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30984 | else | |
30985 | # Is the header compilable? | |
30986 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
30987 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
30988 | cat >conftest.$ac_ext <<_ACEOF | |
30989 | /* confdefs.h. */ | |
30990 | _ACEOF | |
30991 | cat confdefs.h >>conftest.$ac_ext | |
30992 | cat >>conftest.$ac_ext <<_ACEOF | |
30993 | /* end confdefs.h. */ | |
30994 | $ac_includes_default | |
30995 | #include <sql.h> | |
30996 | _ACEOF | |
30997 | rm -f conftest.$ac_objext | |
30998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30999 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31000 | ac_status=$? |
ac1cb8d3 VS |
31001 | grep -v '^ *+' conftest.er1 >conftest.err |
31002 | rm -f conftest.er1 | |
31003 | cat conftest.err >&5 | |
a848cd7e SC |
31004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31005 | (exit $ac_status); } && | |
5d7b7554 | 31006 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31008 | (eval $ac_try) 2>&5 | |
31009 | ac_status=$? | |
31010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31011 | (exit $ac_status); }; } && | |
31012 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31014 | (eval $ac_try) 2>&5 | |
31015 | ac_status=$? | |
31016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31017 | (exit $ac_status); }; }; then | |
31018 | ac_header_compiler=yes | |
31019 | else | |
31020 | echo "$as_me: failed program was:" >&5 | |
31021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31022 | ||
31023 | ac_header_compiler=no | |
31024 | fi | |
ac1cb8d3 | 31025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31026 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31027 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31028 | ||
31029 | # Is the header present? | |
31030 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
31031 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
31032 | cat >conftest.$ac_ext <<_ACEOF | |
31033 | /* confdefs.h. */ | |
31034 | _ACEOF | |
31035 | cat confdefs.h >>conftest.$ac_ext | |
31036 | cat >>conftest.$ac_ext <<_ACEOF | |
31037 | /* end confdefs.h. */ | |
31038 | #include <sql.h> | |
31039 | _ACEOF | |
31040 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31041 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31042 | ac_status=$? | |
31043 | grep -v '^ *+' conftest.er1 >conftest.err | |
31044 | rm -f conftest.er1 | |
31045 | cat conftest.err >&5 | |
31046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31047 | (exit $ac_status); } >/dev/null; then | |
31048 | if test -s conftest.err; then | |
5d7b7554 VZ |
31049 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31050 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
31051 | else |
31052 | ac_cpp_err= | |
31053 | fi | |
31054 | else | |
31055 | ac_cpp_err=yes | |
31056 | fi | |
31057 | if test -z "$ac_cpp_err"; then | |
31058 | ac_header_preproc=yes | |
31059 | else | |
31060 | echo "$as_me: failed program was:" >&5 | |
31061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31062 | ||
31063 | ac_header_preproc=no | |
31064 | fi | |
31065 | rm -f conftest.err conftest.$ac_ext | |
31066 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31067 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31068 | ||
31069 | # So? What about this header? | |
5d7b7554 | 31070 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 31071 | yes:no: ) |
a848cd7e SC |
31072 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31073 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31074 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
31075 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
31076 | ac_header_preproc=yes | |
a848cd7e | 31077 | ;; |
ac1cb8d3 | 31078 | no:yes:* ) |
a848cd7e SC |
31079 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
31080 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31081 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
31082 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
31083 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
31084 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
31085 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31086 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31087 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
31088 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31089 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
31090 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31091 | ( |
31092 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31093 | ## ----------------------------------------- ## |
31094 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31095 | ## ----------------------------------------- ## | |
a848cd7e SC |
31096 | _ASBOX |
31097 | ) | | |
31098 | sed "s/^/$as_me: WARNING: /" >&2 | |
31099 | ;; | |
31100 | esac | |
31101 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31102 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31103 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31105 | else | |
31106 | ac_cv_header_sql_h=$ac_header_preproc | |
31107 | fi | |
31108 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31109 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31110 | ||
31111 | fi | |
31112 | if test $ac_cv_header_sql_h = yes; then | |
31113 | found_sql_h=1 | |
31114 | fi | |
31115 | ||
31116 | ||
31117 | if test "x$found_sql_h" = "x1" ; then | |
31118 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
31119 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
31120 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
31121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31122 | else | |
31123 | ac_check_lib_save_LIBS=$LIBS | |
31124 | LIBS="-liodbc $LIBS" | |
31125 | cat >conftest.$ac_ext <<_ACEOF | |
31126 | /* confdefs.h. */ | |
31127 | _ACEOF | |
31128 | cat confdefs.h >>conftest.$ac_ext | |
31129 | cat >>conftest.$ac_ext <<_ACEOF | |
31130 | /* end confdefs.h. */ | |
31131 | ||
31132 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31133 | #ifdef __cplusplus | |
31134 | extern "C" | |
31135 | #endif | |
31136 | /* We use char because int might match the return type of a gcc2 | |
31137 | builtin and then its argument prototype would still apply. */ | |
31138 | char SQLAllocEnv (); | |
31139 | int | |
31140 | main () | |
31141 | { | |
31142 | SQLAllocEnv (); | |
31143 | ; | |
31144 | return 0; | |
31145 | } | |
31146 | _ACEOF | |
31147 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31149 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31150 | ac_status=$? |
ac1cb8d3 VS |
31151 | grep -v '^ *+' conftest.er1 >conftest.err |
31152 | rm -f conftest.er1 | |
31153 | cat conftest.err >&5 | |
a848cd7e SC |
31154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31155 | (exit $ac_status); } && | |
5d7b7554 | 31156 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31158 | (eval $ac_try) 2>&5 | |
31159 | ac_status=$? | |
31160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31161 | (exit $ac_status); }; } && | |
31162 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31164 | (eval $ac_try) 2>&5 | |
31165 | ac_status=$? | |
31166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31167 | (exit $ac_status); }; }; then | |
31168 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
31169 | else | |
31170 | echo "$as_me: failed program was:" >&5 | |
31171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31172 | ||
31173 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
31174 | fi | |
ac1cb8d3 VS |
31175 | rm -f conftest.err conftest.$ac_objext \ |
31176 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31177 | LIBS=$ac_check_lib_save_LIBS |
31178 | fi | |
31179 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
31180 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
31181 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
31182 | ODBC_LINK=" -liodbc" | |
31183 | else | |
31184 | ||
31185 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
31186 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
31187 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
31188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31189 | else | |
31190 | ac_check_lib_save_LIBS=$LIBS | |
31191 | LIBS="-lunixodbc $LIBS" | |
31192 | cat >conftest.$ac_ext <<_ACEOF | |
31193 | /* confdefs.h. */ | |
31194 | _ACEOF | |
31195 | cat confdefs.h >>conftest.$ac_ext | |
31196 | cat >>conftest.$ac_ext <<_ACEOF | |
31197 | /* end confdefs.h. */ | |
31198 | ||
31199 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31200 | #ifdef __cplusplus | |
31201 | extern "C" | |
31202 | #endif | |
31203 | /* We use char because int might match the return type of a gcc2 | |
31204 | builtin and then its argument prototype would still apply. */ | |
31205 | char SQLAllocEnv (); | |
31206 | int | |
31207 | main () | |
31208 | { | |
31209 | SQLAllocEnv (); | |
31210 | ; | |
31211 | return 0; | |
31212 | } | |
31213 | _ACEOF | |
31214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31216 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31217 | ac_status=$? |
ac1cb8d3 VS |
31218 | grep -v '^ *+' conftest.er1 >conftest.err |
31219 | rm -f conftest.er1 | |
31220 | cat conftest.err >&5 | |
a848cd7e SC |
31221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31222 | (exit $ac_status); } && | |
5d7b7554 | 31223 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31225 | (eval $ac_try) 2>&5 | |
31226 | ac_status=$? | |
31227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31228 | (exit $ac_status); }; } && | |
31229 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31231 | (eval $ac_try) 2>&5 | |
31232 | ac_status=$? | |
31233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31234 | (exit $ac_status); }; }; then | |
31235 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
31236 | else | |
31237 | echo "$as_me: failed program was:" >&5 | |
31238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31239 | ||
31240 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
31241 | fi | |
ac1cb8d3 VS |
31242 | rm -f conftest.err conftest.$ac_objext \ |
31243 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31244 | LIBS=$ac_check_lib_save_LIBS |
31245 | fi | |
31246 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
31247 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
31248 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
31249 | ODBC_LINK=" -lunixodbc" | |
31250 | else | |
31251 | ||
31252 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
31253 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
31254 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
31255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31256 | else | |
31257 | ac_check_lib_save_LIBS=$LIBS | |
31258 | LIBS="-lodbc $LIBS" | |
31259 | cat >conftest.$ac_ext <<_ACEOF | |
31260 | /* confdefs.h. */ | |
31261 | _ACEOF | |
31262 | cat confdefs.h >>conftest.$ac_ext | |
31263 | cat >>conftest.$ac_ext <<_ACEOF | |
31264 | /* end confdefs.h. */ | |
31265 | ||
31266 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31267 | #ifdef __cplusplus | |
31268 | extern "C" | |
31269 | #endif | |
31270 | /* We use char because int might match the return type of a gcc2 | |
31271 | builtin and then its argument prototype would still apply. */ | |
31272 | char SQLAllocEnv (); | |
31273 | int | |
31274 | main () | |
31275 | { | |
31276 | SQLAllocEnv (); | |
31277 | ; | |
31278 | return 0; | |
31279 | } | |
31280 | _ACEOF | |
31281 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31283 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31284 | ac_status=$? |
ac1cb8d3 VS |
31285 | grep -v '^ *+' conftest.er1 >conftest.err |
31286 | rm -f conftest.er1 | |
31287 | cat conftest.err >&5 | |
a848cd7e SC |
31288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31289 | (exit $ac_status); } && | |
5d7b7554 | 31290 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31292 | (eval $ac_try) 2>&5 | |
31293 | ac_status=$? | |
31294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31295 | (exit $ac_status); }; } && | |
31296 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31298 | (eval $ac_try) 2>&5 | |
31299 | ac_status=$? | |
31300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31301 | (exit $ac_status); }; }; then | |
31302 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
31303 | else | |
31304 | echo "$as_me: failed program was:" >&5 | |
31305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31306 | ||
31307 | ac_cv_lib_odbc_SQLAllocEnv=no | |
31308 | fi | |
ac1cb8d3 VS |
31309 | rm -f conftest.err conftest.$ac_objext \ |
31310 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31311 | LIBS=$ac_check_lib_save_LIBS |
31312 | fi | |
31313 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
31314 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
31315 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
31316 | ODBC_LINK=" -lodbc" | |
31317 | fi | |
31318 | ||
31319 | ||
31320 | fi | |
31321 | ||
31322 | ||
31323 | fi | |
31324 | ||
31325 | fi | |
31326 | if test "x$ODBC_LINK" = "x" ; then | |
31327 | if test "$wxUSE_ODBC" = "sys" ; then | |
31328 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
31329 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
31330 | { (exit 1); exit 1; }; } | |
31331 | else | |
31332 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
31333 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
31334 | wxUSE_ODBC=builtin | |
31335 | fi | |
31336 | else | |
31337 | wxUSE_ODBC=sys | |
31338 | fi | |
31339 | fi | |
a848cd7e | 31340 | |
2da0c077 RD |
31341 | if test "$wxUSE_ODBC" = "builtin" ; then |
31342 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
31343 | #define wxUSE_BUILTIN_IODBC 1 |
31344 | _ACEOF | |
31345 | ||
a848cd7e SC |
31346 | fi |
31347 | fi | |
31348 | ||
2da0c077 RD |
31349 | if test "$wxUSE_ODBC" != "no" ; then |
31350 | cat >>confdefs.h <<\_ACEOF | |
31351 | #define wxUSE_ODBC 1 | |
31352 | _ACEOF | |
31353 | ||
31354 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
31355 | ||
5ff751d6 | 31356 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 31357 | fi |
a848cd7e | 31358 | |
01cb68df | 31359 | |
a848cd7e | 31360 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 31361 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
31362 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
31363 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
31364 | ||
0ad5d837 VZ |
31365 | ac_find_libraries= |
31366 | for ac_dir in $SEARCH_LIB; | |
31367 | do | |
31368 | for ac_extension in a so sl dylib dll.a; do | |
31369 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
31370 | ac_find_libraries=$ac_dir | |
31371 | break 2 | |
31372 | fi | |
31373 | done | |
31374 | done | |
31375 | ||
a848cd7e SC |
31376 | if test "$ac_find_libraries" != "" ; then |
31377 | ||
0ad5d837 | 31378 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31379 | ac_path_to_link="" |
31380 | else | |
0ad5d837 VZ |
31381 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31382 | result=$? | |
31383 | if test $result = 0; then | |
31384 | ac_path_to_link="" | |
31385 | else | |
31386 | ac_path_to_link=" -L$ac_find_libraries" | |
31387 | fi | |
a848cd7e SC |
31388 | fi |
31389 | ||
31390 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31391 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
31392 | fi | |
31393 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
31394 | echo "$as_me:$LINENO: result: yes" >&5 | |
31395 | echo "${ECHO_T}yes" >&6 | |
31396 | ||
31397 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
31398 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
31399 | ||
0ad5d837 VZ |
31400 | ac_find_libraries= |
31401 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31402 | do |
3eca31dc | 31403 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31404 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
31405 | ac_find_libraries=$ac_dir | |
31406 | break 2 | |
31407 | fi | |
31408 | done | |
31409 | done | |
31410 | ||
31411 | if test "$ac_find_libraries" != "" ; then | |
31412 | echo "$as_me:$LINENO: result: yes" >&5 | |
31413 | echo "${ECHO_T}yes" >&6 | |
31414 | ||
31415 | for ac_header in X11/extensions/xf86vmode.h | |
31416 | do | |
31417 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31418 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31419 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31422 | else | |
31423 | cat >conftest.$ac_ext <<_ACEOF | |
31424 | /* confdefs.h. */ | |
31425 | _ACEOF | |
31426 | cat confdefs.h >>conftest.$ac_ext | |
31427 | cat >>conftest.$ac_ext <<_ACEOF | |
31428 | /* end confdefs.h. */ | |
31429 | ||
31430 | #if HAVE_X11_XLIB_H | |
31431 | #include <X11/Xlib.h> | |
31432 | #endif | |
31433 | ||
31434 | ||
31435 | #include <$ac_header> | |
31436 | _ACEOF | |
31437 | rm -f conftest.$ac_objext | |
31438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31439 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31440 | ac_status=$? |
ac1cb8d3 VS |
31441 | grep -v '^ *+' conftest.er1 >conftest.err |
31442 | rm -f conftest.er1 | |
31443 | cat conftest.err >&5 | |
a848cd7e SC |
31444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31445 | (exit $ac_status); } && | |
5d7b7554 | 31446 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31448 | (eval $ac_try) 2>&5 | |
31449 | ac_status=$? | |
31450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31451 | (exit $ac_status); }; } && | |
31452 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31454 | (eval $ac_try) 2>&5 | |
31455 | ac_status=$? | |
31456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31457 | (exit $ac_status); }; }; then | |
31458 | eval "$as_ac_Header=yes" | |
31459 | else | |
31460 | echo "$as_me: failed program was:" >&5 | |
31461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31462 | ||
31463 | eval "$as_ac_Header=no" | |
31464 | fi | |
ac1cb8d3 | 31465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31466 | fi |
31467 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31468 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31470 | cat >>confdefs.h <<_ACEOF | |
31471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31472 | _ACEOF | |
31473 | ||
31474 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
31475 | ||
31476 | fi | |
31477 | ||
31478 | done | |
31479 | ||
31480 | else | |
31481 | echo "$as_me:$LINENO: result: no" >&5 | |
31482 | echo "${ECHO_T}no" >&6 | |
31483 | fi | |
31484 | ||
31485 | else | |
31486 | echo "$as_me:$LINENO: result: no" >&5 | |
31487 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
31488 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
31489 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
31490 | wxUSE_DISPLAY="no" |
31491 | fi | |
01cb68df RG |
31492 | elif test "$wxUSE_MSW" = 1; then |
31493 | ||
e5efa97e | 31494 | for ac_header in ddraw.h |
01cb68df RG |
31495 | do |
31496 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 31497 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
31498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
31499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 31501 | else |
5294a27e | 31502 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
31503 | /* confdefs.h. */ |
31504 | _ACEOF | |
31505 | cat confdefs.h >>conftest.$ac_ext | |
31506 | cat >>conftest.$ac_ext <<_ACEOF | |
31507 | /* end confdefs.h. */ | |
5294a27e VZ |
31508 | #include <windows.h> |
31509 | ||
01cb68df RG |
31510 | #include <$ac_header> |
31511 | _ACEOF | |
31512 | rm -f conftest.$ac_objext | |
31513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31514 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 31515 | ac_status=$? |
ac1cb8d3 VS |
31516 | grep -v '^ *+' conftest.er1 >conftest.err |
31517 | rm -f conftest.er1 | |
31518 | cat conftest.err >&5 | |
01cb68df RG |
31519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31520 | (exit $ac_status); } && | |
5d7b7554 | 31521 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31523 | (eval $ac_try) 2>&5 | |
31524 | ac_status=$? | |
31525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31526 | (exit $ac_status); }; } && | |
31527 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
31528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31529 | (eval $ac_try) 2>&5 | |
31530 | ac_status=$? | |
31531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31532 | (exit $ac_status); }; }; then | |
5294a27e | 31533 | eval "$as_ac_Header=yes" |
01cb68df RG |
31534 | else |
31535 | echo "$as_me: failed program was:" >&5 | |
31536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31537 | ||
5294a27e | 31538 | eval "$as_ac_Header=no" |
01cb68df | 31539 | fi |
ac1cb8d3 | 31540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
31541 | fi |
31542 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31543 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
31544 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31545 | cat >>confdefs.h <<_ACEOF | |
31546 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31547 | _ACEOF | |
31548 | ||
01cb68df RG |
31549 | fi |
31550 | ||
31551 | done | |
31552 | ||
a848cd7e SC |
31553 | fi |
31554 | fi | |
31555 | ||
31556 | ||
31557 | USE_OPENGL=0 | |
31558 | if test "$wxUSE_OPENGL" = "yes"; then | |
31559 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
31560 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
31561 | elif test "$wxUSE_MSW" = 1; then | |
31562 | OPENGL_LIBS="-lopengl32 -lglu32" | |
31563 | else | |
31564 | ||
31565 | ||
31566 | ac_find_includes= | |
31567 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
31568 | do | |
31569 | if test -f "$ac_dir/GL/gl.h"; then | |
31570 | ac_find_includes=$ac_dir | |
31571 | break | |
31572 | fi | |
31573 | done | |
31574 | ||
31575 | if test "$ac_find_includes" != "" ; then | |
31576 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
31577 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
31578 | ||
31579 | if test "x$ac_find_includes" = "x/usr/include"; then | |
31580 | ac_path_to_include="" | |
31581 | else | |
31582 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
31583 | result=$? | |
31584 | if test $result = 0; then | |
31585 | ac_path_to_include="" | |
31586 | else | |
31587 | ac_path_to_include=" -I$ac_find_includes" | |
31588 | fi | |
31589 | fi | |
31590 | ||
c92ad099 | 31591 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
31592 | fi |
31593 | ||
31594 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31595 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31596 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31597 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31599 | fi | |
31600 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31601 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31602 | else | |
31603 | # Is the header compilable? | |
31604 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
31605 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
31606 | cat >conftest.$ac_ext <<_ACEOF | |
31607 | /* confdefs.h. */ | |
31608 | _ACEOF | |
31609 | cat confdefs.h >>conftest.$ac_ext | |
31610 | cat >>conftest.$ac_ext <<_ACEOF | |
31611 | /* end confdefs.h. */ | |
31612 | $ac_includes_default | |
31613 | #include <GL/gl.h> | |
31614 | _ACEOF | |
31615 | rm -f conftest.$ac_objext | |
31616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31617 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31618 | ac_status=$? |
ac1cb8d3 VS |
31619 | grep -v '^ *+' conftest.er1 >conftest.err |
31620 | rm -f conftest.er1 | |
31621 | cat conftest.err >&5 | |
a848cd7e SC |
31622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31623 | (exit $ac_status); } && | |
5d7b7554 | 31624 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31626 | (eval $ac_try) 2>&5 | |
31627 | ac_status=$? | |
31628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31629 | (exit $ac_status); }; } && | |
31630 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31632 | (eval $ac_try) 2>&5 | |
31633 | ac_status=$? | |
31634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31635 | (exit $ac_status); }; }; then | |
31636 | ac_header_compiler=yes | |
31637 | else | |
31638 | echo "$as_me: failed program was:" >&5 | |
31639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31640 | ||
31641 | ac_header_compiler=no | |
31642 | fi | |
ac1cb8d3 | 31643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31644 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31645 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31646 | ||
31647 | # Is the header present? | |
31648 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
31649 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
31650 | cat >conftest.$ac_ext <<_ACEOF | |
31651 | /* confdefs.h. */ | |
31652 | _ACEOF | |
31653 | cat confdefs.h >>conftest.$ac_ext | |
31654 | cat >>conftest.$ac_ext <<_ACEOF | |
31655 | /* end confdefs.h. */ | |
31656 | #include <GL/gl.h> | |
31657 | _ACEOF | |
31658 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31659 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31660 | ac_status=$? | |
31661 | grep -v '^ *+' conftest.er1 >conftest.err | |
31662 | rm -f conftest.er1 | |
31663 | cat conftest.err >&5 | |
31664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31665 | (exit $ac_status); } >/dev/null; then | |
31666 | if test -s conftest.err; then | |
5d7b7554 VZ |
31667 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31668 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
31669 | else |
31670 | ac_cpp_err= | |
31671 | fi | |
31672 | else | |
31673 | ac_cpp_err=yes | |
31674 | fi | |
31675 | if test -z "$ac_cpp_err"; then | |
31676 | ac_header_preproc=yes | |
31677 | else | |
31678 | echo "$as_me: failed program was:" >&5 | |
31679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31680 | ||
31681 | ac_header_preproc=no | |
31682 | fi | |
31683 | rm -f conftest.err conftest.$ac_ext | |
31684 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31685 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31686 | ||
31687 | # So? What about this header? | |
5d7b7554 | 31688 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 31689 | yes:no: ) |
a848cd7e SC |
31690 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31691 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31692 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
31693 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
31694 | ac_header_preproc=yes | |
a848cd7e | 31695 | ;; |
ac1cb8d3 | 31696 | no:yes:* ) |
a848cd7e SC |
31697 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
31698 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31699 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
31700 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
31701 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
31702 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
31703 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31704 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31705 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
31706 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31707 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
31708 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31709 | ( |
31710 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31711 | ## ----------------------------------------- ## |
31712 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31713 | ## ----------------------------------------- ## | |
a848cd7e SC |
31714 | _ASBOX |
31715 | ) | | |
31716 | sed "s/^/$as_me: WARNING: /" >&2 | |
31717 | ;; | |
31718 | esac | |
31719 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31720 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31721 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31723 | else | |
31724 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
31725 | fi | |
31726 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31727 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31728 | ||
31729 | fi | |
31730 | if test $ac_cv_header_GL_gl_h = yes; then | |
31731 | ||
31732 | found_gl=0 | |
31733 | ||
31734 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
31735 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
31736 | ||
0ad5d837 VZ |
31737 | ac_find_libraries= |
31738 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31739 | do |
3eca31dc | 31740 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31741 | if test -f "$ac_dir/libGL.$ac_extension"; then |
31742 | ac_find_libraries=$ac_dir | |
31743 | break 2 | |
31744 | fi | |
31745 | done | |
31746 | done | |
31747 | ||
31748 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
31749 | echo "$as_me:$LINENO: result: yes" >&5 |
31750 | echo "${ECHO_T}yes" >&6 | |
31751 | ||
a848cd7e | 31752 | |
0ad5d837 | 31753 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31754 | ac_path_to_link="" |
31755 | else | |
0ad5d837 VZ |
31756 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31757 | result=$? | |
31758 | if test $result = 0; then | |
31759 | ac_path_to_link="" | |
31760 | else | |
31761 | ac_path_to_link=" -L$ac_find_libraries" | |
31762 | fi | |
a848cd7e SC |
31763 | fi |
31764 | ||
31765 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31766 | LDFLAGS_GL="$ac_path_to_link" | |
31767 | fi | |
31768 | ||
69120ee4 VZ |
31769 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
31770 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 31771 | |
0ad5d837 VZ |
31772 | ac_find_libraries= |
31773 | for ac_dir in $SEARCH_LIB; | |
31774 | do | |
31775 | for ac_extension in a so sl dylib dll.a; do | |
31776 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
31777 | ac_find_libraries=$ac_dir | |
31778 | break 2 | |
31779 | fi | |
31780 | done | |
31781 | done | |
31782 | ||
a848cd7e SC |
31783 | if test "$ac_find_libraries" != "" ; then |
31784 | ||
0ad5d837 | 31785 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31786 | ac_path_to_link="" |
31787 | else | |
0ad5d837 VZ |
31788 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31789 | result=$? | |
31790 | if test $result = 0; then | |
31791 | ac_path_to_link="" | |
31792 | else | |
31793 | ac_path_to_link=" -L$ac_find_libraries" | |
31794 | fi | |
a848cd7e SC |
31795 | fi |
31796 | ||
31797 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
31798 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
31799 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
31800 | fi | |
31801 | ||
31802 | found_gl=1 | |
31803 | OPENGL_LIBS="-lGL -lGLU" | |
31804 | echo "$as_me:$LINENO: result: yes" >&5 | |
31805 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
31806 | else |
31807 | echo "$as_me:$LINENO: result: no" >&5 | |
31808 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 31809 | fi |
69120ee4 VZ |
31810 | else |
31811 | echo "$as_me:$LINENO: result: no" >&5 | |
31812 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
31813 | fi |
31814 | ||
31815 | if test "$found_gl" != 1; then | |
a848cd7e SC |
31816 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
31817 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
31818 | ||
0ad5d837 VZ |
31819 | ac_find_libraries= |
31820 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31821 | do |
3eca31dc | 31822 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31823 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
31824 | ac_find_libraries=$ac_dir | |
31825 | break 2 | |
31826 | fi | |
31827 | done | |
31828 | done | |
31829 | ||
31830 | if test "$ac_find_libraries" != "" ; then | |
31831 | ||
0ad5d837 | 31832 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31833 | ac_path_to_link="" |
31834 | else | |
0ad5d837 VZ |
31835 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31836 | result=$? | |
31837 | if test $result = 0; then | |
31838 | ac_path_to_link="" | |
31839 | else | |
31840 | ac_path_to_link=" -L$ac_find_libraries" | |
31841 | fi | |
a848cd7e SC |
31842 | fi |
31843 | ||
31844 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
31845 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
31846 | echo "$as_me:$LINENO: result: yes" >&5 | |
31847 | echo "${ECHO_T}yes" >&6 | |
31848 | else | |
31849 | echo "$as_me:$LINENO: result: no" >&5 | |
31850 | echo "${ECHO_T}no" >&6 | |
31851 | fi | |
31852 | fi | |
31853 | ||
31854 | fi | |
31855 | ||
31856 | ||
31857 | ||
31858 | if test "x$OPENGL_LIBS" = "x"; then | |
31859 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
31860 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
31861 | { (exit 1); exit 1; }; } | |
31862 | fi | |
31863 | fi | |
31864 | ||
31865 | if test "$wxUSE_OPENGL" = "yes"; then | |
31866 | USE_OPENGL=1 | |
31867 | cat >>confdefs.h <<\_ACEOF | |
31868 | #define wxUSE_OPENGL 1 | |
31869 | _ACEOF | |
31870 | ||
31871 | cat >>confdefs.h <<\_ACEOF | |
31872 | #define wxUSE_GLCANVAS 1 | |
31873 | _ACEOF | |
31874 | ||
31875 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
31876 | fi | |
31877 | fi | |
31878 | ||
a848cd7e SC |
31879 | |
31880 | if test -n "$TOOLKIT" ; then | |
31881 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
31882 | fi | |
31883 | ||
a848cd7e SC |
31884 | |
31885 | ||
31886 | if test "$wxUSE_SHARED" = "yes"; then | |
31887 | case "${host}" in | |
31888 | *-pc-msdosdjgpp ) | |
31889 | wxUSE_SHARED=no | |
31890 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
31891 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
31892 | ;; | |
31893 | esac | |
31894 | fi | |
31895 | ||
a848cd7e | 31896 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
31897 | |
31898 | ||
31899 | found_versioning=no | |
31900 | ||
31901 | ||
31902 | if test $found_versioning = no ; then | |
31903 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
31904 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
31905 | if test "${wx_cv_version_script+set}" = set; then | |
31906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31907 | else | |
31908 | ||
31909 | echo "VER_1 { *; };" >conftest.sym | |
31910 | echo "int main() { return 0; }" >conftest.cpp | |
31911 | ||
31912 | if { ac_try=' | |
31913 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31914 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
31915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31916 | (eval $ac_try) 2>&5 | |
31917 | ac_status=$? | |
31918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31919 | (exit $ac_status); }; } ; then | |
31920 | if test -s conftest.stderr ; then | |
31921 | wx_cv_version_script=no | |
31922 | else | |
31923 | wx_cv_version_script=yes | |
31924 | fi | |
31925 | else | |
31926 | wx_cv_version_script=no | |
31927 | fi | |
e5d4b470 MW |
31928 | |
31929 | if test $wx_cv_version_script = yes | |
31930 | then | |
31931 | echo "struct B { virtual ~B() { } }; \ | |
31932 | struct D : public B { }; \ | |
31933 | void F() { D d; }" > conftest.cpp | |
31934 | ||
31935 | if { ac_try=' | |
31936 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31937 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
31938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31939 | (eval $ac_try) 2>&5 | |
31940 | ac_status=$? | |
31941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31942 | (exit $ac_status); }; } && | |
31943 | { ac_try=' | |
31944 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31945 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
31946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31947 | (eval $ac_try) 2>&5 | |
31948 | ac_status=$? | |
31949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31950 | (exit $ac_status); }; } | |
31951 | then | |
31952 | if { ac_try=' | |
31953 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31954 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
31955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31956 | (eval $ac_try) 2>&5 | |
31957 | ac_status=$? | |
31958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31959 | (exit $ac_status); }; } | |
31960 | then | |
31961 | wx_cv_version_script=yes | |
31962 | else | |
31963 | wx_cv_version_script=no | |
31964 | fi | |
31965 | fi | |
31966 | fi | |
31967 | ||
a848cd7e | 31968 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 31969 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
31970 | |
31971 | fi | |
31972 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
31973 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
31974 | if test $wx_cv_version_script = yes ; then | |
31975 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
31976 | fi | |
31977 | fi | |
31978 | ||
31979 | ||
31980 | case "${host}" in | |
31981 | *-*-linux* | *-*-gnu* ) | |
31982 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31983 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 31984 | ;; |
a848cd7e SC |
31985 | |
31986 | *-*-solaris2* ) | |
31987 | if test "$GCC" = yes ; then | |
c92ad099 | 31988 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
31989 | |
31990 | saveLdflags="$LDFLAGS" | |
31991 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
31992 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
31993 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
31994 | cat >conftest.$ac_ext <<_ACEOF | |
31995 | /* confdefs.h. */ | |
31996 | _ACEOF | |
31997 | cat confdefs.h >>conftest.$ac_ext | |
31998 | cat >>conftest.$ac_ext <<_ACEOF | |
31999 | /* end confdefs.h. */ | |
32000 | ||
32001 | int | |
32002 | main () | |
32003 | { | |
32004 | ||
32005 | ; | |
32006 | return 0; | |
32007 | } | |
32008 | _ACEOF | |
32009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32011 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32012 | ac_status=$? |
ac1cb8d3 VS |
32013 | grep -v '^ *+' conftest.er1 >conftest.err |
32014 | rm -f conftest.er1 | |
32015 | cat conftest.err >&5 | |
a848cd7e SC |
32016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32017 | (exit $ac_status); } && | |
5d7b7554 | 32018 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32020 | (eval $ac_try) 2>&5 | |
32021 | ac_status=$? | |
32022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32023 | (exit $ac_status); }; } && | |
32024 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32026 | (eval $ac_try) 2>&5 | |
32027 | ac_status=$? | |
32028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32029 | (exit $ac_status); }; }; then | |
32030 | ||
32031 | echo "$as_me:$LINENO: result: yes" >&5 | |
32032 | echo "${ECHO_T}yes" >&6 | |
32033 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32034 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
32035 | |
32036 | else | |
32037 | echo "$as_me: failed program was:" >&5 | |
32038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32039 | ||
32040 | ||
32041 | echo "$as_me:$LINENO: result: no" >&5 | |
32042 | echo "${ECHO_T}no" >&6 | |
32043 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
32044 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
32045 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
32046 | cat >conftest.$ac_ext <<_ACEOF | |
32047 | /* confdefs.h. */ | |
32048 | _ACEOF | |
32049 | cat confdefs.h >>conftest.$ac_ext | |
32050 | cat >>conftest.$ac_ext <<_ACEOF | |
32051 | /* end confdefs.h. */ | |
32052 | ||
32053 | int | |
32054 | main () | |
32055 | { | |
32056 | ||
32057 | ; | |
32058 | return 0; | |
32059 | } | |
32060 | _ACEOF | |
32061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32063 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32064 | ac_status=$? |
ac1cb8d3 VS |
32065 | grep -v '^ *+' conftest.er1 >conftest.err |
32066 | rm -f conftest.er1 | |
32067 | cat conftest.err >&5 | |
a848cd7e SC |
32068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32069 | (exit $ac_status); } && | |
5d7b7554 | 32070 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32072 | (eval $ac_try) 2>&5 | |
32073 | ac_status=$? | |
32074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32075 | (exit $ac_status); }; } && | |
32076 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32078 | (eval $ac_try) 2>&5 | |
32079 | ac_status=$? | |
32080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32081 | (exit $ac_status); }; }; then | |
32082 | ||
ffa0583f | 32083 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 32084 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
32085 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
32086 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
32087 | ||
a848cd7e SC |
32088 | else |
32089 | echo "$as_me: failed program was:" >&5 | |
32090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32091 | ||
32092 | ||
32093 | echo "$as_me:$LINENO: result: no" >&5 | |
32094 | echo "${ECHO_T}no" >&6 | |
32095 | ||
32096 | fi | |
ac1cb8d3 VS |
32097 | rm -f conftest.err conftest.$ac_objext \ |
32098 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32099 | |
32100 | fi | |
ac1cb8d3 VS |
32101 | rm -f conftest.err conftest.$ac_objext \ |
32102 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32103 | LDFLAGS="$saveLdflags" |
32104 | else | |
a848cd7e | 32105 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 32106 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
32107 | fi |
32108 | ;; | |
32109 | ||
cfda0ea8 | 32110 | *-*-darwin* ) |
0caebc27 MW |
32111 | install_name_tool=`which install_name_tool` |
32112 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
32113 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
32114 | cat <<EOF >change-install-names | |
a848cd7e SC |
32115 | #!/bin/sh |
32116 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
32117 | inst_cmd="install_name_tool " | |
32118 | for i in \${libnames} ; do | |
32119 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
32120 | done | |
32121 | \${inst_cmd} \${3} | |
32122 | EOF | |
0caebc27 MW |
32123 | chmod +x change-install-names |
32124 | fi | |
a848cd7e SC |
32125 | ;; |
32126 | ||
32127 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
32128 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
32129 | ;; | |
a848cd7e | 32130 | |
81f90336 MW |
32131 | *-*-hpux* ) |
32132 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
32133 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 32134 | ;; |
81f90336 | 32135 | |
a848cd7e | 32136 | esac |
ceec2216 | 32137 | |
ffa0583f RL |
32138 | if test $wxUSE_RPATH = "no"; then |
32139 | SAMPLES_RPATH_FLAG='' | |
32140 | SAMPLES_RPATH_POSTLINK='' | |
32141 | WXCONFIG_RPATH='' | |
32142 | fi | |
32143 | ||
32144 | SHARED=1 | |
32145 | ||
32146 | else | |
32147 | ||
ceec2216 RL |
32148 | config_linkage_component="-static" |
32149 | SHARED=0 | |
ffa0583f | 32150 | |
ceec2216 | 32151 | fi |
a848cd7e | 32152 | |
a848cd7e | 32153 | |
ceec2216 RL |
32154 | UNICODE=0 |
32155 | lib_unicode_suffix= | |
32156 | WX_CHARTYPE="ansi" | |
32157 | if test "$wxUSE_UNICODE" = "yes"; then | |
32158 | lib_unicode_suffix=u | |
32159 | WX_CHARTYPE="unicode" | |
32160 | UNICODE=1 | |
a848cd7e SC |
32161 | fi |
32162 | ||
ceec2216 RL |
32163 | lib_debug_suffix= |
32164 | WX_DEBUGTYPE="release" | |
32165 | DEBUG_FLAG=0 | |
32166 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
32167 | lib_debug_suffix=d | |
32168 | WX_DEBUGTYPE="debug" | |
32169 | DEBUG_FLAG=1 | |
32170 | fi | |
a848cd7e | 32171 | |
ceec2216 RL |
32172 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
32173 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 32174 | |
ceec2216 RL |
32175 | DEBUG_INFO=0 |
32176 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
32177 | DEBUG_INFO=1 | |
32178 | fi | |
a848cd7e | 32179 | |
ceec2216 | 32180 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 32181 | |
ceec2216 | 32182 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 32183 | |
ceec2216 | 32184 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 32185 | |
ceec2216 RL |
32186 | if test "$cross_compiling" = "yes"; then |
32187 | HOST_SUFFIX="-$host_alias" | |
32188 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
32189 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
32190 | fi |
32191 | ||
dd21ced8 | 32192 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
32193 | if test "${TOOLKIT_DIR}" = "os2"; then |
32194 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32195 | else | |
32196 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32197 | fi | |
ceec2216 RL |
32198 | |
32199 | ||
32200 | ||
1d1af5ea DE |
32201 | if test "$wxUSE_COCOA" = 1; then |
32202 | ||
32203 | ||
32204 | ac_ext=c | |
32205 | ac_cpp='$CPP $CPPFLAGS' | |
32206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32209 | ||
32210 | ac_ext=m | |
32211 | ||
32212 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
32213 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
32214 | cat >conftest.$ac_ext <<_ACEOF | |
32215 | /* confdefs.h. */ | |
32216 | _ACEOF | |
32217 | cat confdefs.h >>conftest.$ac_ext | |
32218 | cat >>conftest.$ac_ext <<_ACEOF | |
32219 | /* end confdefs.h. */ | |
32220 | #include <AppKit/NSEvent.h> | |
32221 | #include <CoreFoundation/CoreFoundation.h> | |
32222 | ||
32223 | int | |
32224 | main () | |
32225 | { | |
32226 | ||
32227 | ; | |
32228 | return 0; | |
32229 | } | |
32230 | _ACEOF | |
32231 | rm -f conftest.$ac_objext | |
32232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32233 | (eval $ac_compile) 2>conftest.er1 | |
32234 | ac_status=$? | |
32235 | grep -v '^ *+' conftest.er1 >conftest.err | |
32236 | rm -f conftest.er1 | |
32237 | cat conftest.err >&5 | |
32238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32239 | (exit $ac_status); } && | |
5d7b7554 | 32240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
32241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32242 | (eval $ac_try) 2>&5 | |
32243 | ac_status=$? | |
32244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32245 | (exit $ac_status); }; } && | |
32246 | { ac_try='test -s conftest.$ac_objext' | |
32247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32248 | (eval $ac_try) 2>&5 | |
32249 | ac_status=$? | |
32250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32251 | (exit $ac_status); }; }; then | |
32252 | echo "$as_me:$LINENO: result: no" >&5 | |
32253 | echo "${ECHO_T}no" >&6 | |
32254 | else | |
32255 | echo "$as_me: failed program was:" >&5 | |
32256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32257 | ||
32258 | echo "$as_me:$LINENO: result: yes" >&5 | |
32259 | echo "${ECHO_T}yes" >&6 | |
32260 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
32261 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
32262 | cat >conftest.$ac_ext <<_ACEOF | |
32263 | /* confdefs.h. */ | |
32264 | _ACEOF | |
32265 | cat confdefs.h >>conftest.$ac_ext | |
32266 | cat >>conftest.$ac_ext <<_ACEOF | |
32267 | /* end confdefs.h. */ | |
32268 | #define __Point__ 1 | |
32269 | #include <AppKit/NSEvent.h> | |
32270 | #include <CoreFoundation/CoreFoundation.h> | |
32271 | ||
32272 | int | |
32273 | main () | |
32274 | { | |
32275 | ||
32276 | ; | |
32277 | return 0; | |
32278 | } | |
32279 | _ACEOF | |
32280 | rm -f conftest.$ac_objext | |
32281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32282 | (eval $ac_compile) 2>conftest.er1 | |
32283 | ac_status=$? | |
32284 | grep -v '^ *+' conftest.er1 >conftest.err | |
32285 | rm -f conftest.er1 | |
32286 | cat conftest.err >&5 | |
32287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32288 | (exit $ac_status); } && | |
5d7b7554 | 32289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
32290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32291 | (eval $ac_try) 2>&5 | |
32292 | ac_status=$? | |
32293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32294 | (exit $ac_status); }; } && | |
32295 | { ac_try='test -s conftest.$ac_objext' | |
32296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32297 | (eval $ac_try) 2>&5 | |
32298 | ac_status=$? | |
32299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32300 | (exit $ac_status); }; }; then | |
32301 | echo "$as_me:$LINENO: result: yes" >&5 | |
32302 | echo "${ECHO_T}yes" >&6 | |
32303 | cat >>confdefs.h <<\_ACEOF | |
32304 | #define __Point__ 1 | |
32305 | _ACEOF | |
32306 | ||
32307 | ||
32308 | else | |
32309 | echo "$as_me: failed program was:" >&5 | |
32310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32311 | ||
32312 | { { echo "$as_me:$LINENO: error: no | |
32313 | See \`config.log' for more details." >&5 | |
32314 | echo "$as_me: error: no | |
32315 | See \`config.log' for more details." >&2;} | |
32316 | { (exit 1); exit 1; }; } | |
32317 | ||
32318 | fi | |
32319 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32320 | ||
32321 | fi | |
32322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
32323 | ac_ext=cc |
32324 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32325 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32326 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32327 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1d1af5ea DE |
32328 | |
32329 | fi | |
32330 | ||
a848cd7e | 32331 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
32332 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
32333 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 32334 | |
a848cd7e | 32335 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
32336 | |
32337 | # Extract the first word of "Rez", so it can be a program name with args. | |
32338 | set dummy Rez; ac_word=$2 | |
32339 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 32341 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
32342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32343 | else | |
8ced02f6 DE |
32344 | if test -n "$REZ"; then |
32345 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
32346 | else |
32347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32348 | for as_dir in $PATH | |
32349 | do | |
32350 | IFS=$as_save_IFS | |
32351 | test -z "$as_dir" && as_dir=. | |
32352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32353 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 32354 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
32355 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
32356 | break 2 | |
32357 | fi | |
32358 | done | |
32359 | done | |
32360 | ||
8ced02f6 | 32361 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
32362 | fi |
32363 | fi | |
8ced02f6 DE |
32364 | REZ=$ac_cv_prog_REZ |
32365 | if test -n "$REZ"; then | |
32366 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
32367 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
32368 | else |
32369 | echo "$as_me:$LINENO: result: no" >&5 | |
32370 | echo "${ECHO_T}no" >&6 | |
32371 | fi | |
32372 | ||
32373 | # Extract the first word of "DeRez", so it can be a program name with args. | |
32374 | set dummy DeRez; ac_word=$2 | |
32375 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32377 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
32378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32379 | else | |
32380 | if test -n "$DEREZ"; then | |
32381 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
32382 | else | |
32383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32384 | for as_dir in $PATH | |
32385 | do | |
32386 | IFS=$as_save_IFS | |
32387 | test -z "$as_dir" && as_dir=. | |
32388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32389 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32390 | ac_cv_prog_DEREZ="DeRez" | |
32391 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32392 | break 2 | |
32393 | fi | |
32394 | done | |
32395 | done | |
32396 | ||
32397 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
32398 | fi | |
32399 | fi | |
32400 | DEREZ=$ac_cv_prog_DEREZ | |
32401 | if test -n "$DEREZ"; then | |
32402 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
32403 | echo "${ECHO_T}$DEREZ" >&6 | |
32404 | else | |
32405 | echo "$as_me:$LINENO: result: no" >&5 | |
32406 | echo "${ECHO_T}no" >&6 | |
32407 | fi | |
32408 | ||
32409 | # Extract the first word of "SetFile", so it can be a program name with args. | |
32410 | set dummy SetFile; ac_word=$2 | |
32411 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32413 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
32414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32415 | else | |
32416 | if test -n "$SETFILE"; then | |
32417 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
32418 | else | |
32419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32420 | for as_dir in $PATH | |
32421 | do | |
32422 | IFS=$as_save_IFS | |
32423 | test -z "$as_dir" && as_dir=. | |
32424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32425 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32426 | ac_cv_prog_SETFILE="SetFile" | |
32427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32428 | break 2 | |
32429 | fi | |
32430 | done | |
32431 | done | |
32432 | ||
32433 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
32434 | fi | |
32435 | fi | |
32436 | SETFILE=$ac_cv_prog_SETFILE | |
32437 | if test -n "$SETFILE"; then | |
32438 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
32439 | echo "${ECHO_T}$SETFILE" >&6 | |
32440 | else | |
32441 | echo "$as_me:$LINENO: result: no" >&5 | |
32442 | echo "${ECHO_T}no" >&6 | |
32443 | fi | |
32444 | ||
32445 | ||
32446 | MACSETFILE="\$(SETFILE)" | |
32447 | ||
32448 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 32449 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
32450 | RESCOMP="$REZ" |
32451 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 32452 | else |
004ee6da RL |
32453 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
32454 | RESCOMP="echo -n \| $REZ" | |
32455 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 32456 | fi |
004ee6da | 32457 | |
a848cd7e | 32458 | else |
ffa0583f | 32459 | MACSETFILE="@true" |
a848cd7e | 32460 | |
8ced02f6 | 32461 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
32462 | RESCOMP="emxbind" |
32463 | WXCONFIG_RESFLAGS="-ep" | |
32464 | ||
32465 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 32466 | else |
8ced02f6 | 32467 | POSTLINK_COMMAND="@true" |
a848cd7e | 32468 | fi |
004ee6da | 32469 | |
a848cd7e SC |
32470 | fi |
32471 | ||
32472 | ||
32473 | ||
32474 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
32475 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
32476 | if test "${ac_cv_type_mode_t+set}" = set; then | |
32477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32478 | else | |
32479 | cat >conftest.$ac_ext <<_ACEOF | |
32480 | /* confdefs.h. */ | |
32481 | _ACEOF | |
32482 | cat confdefs.h >>conftest.$ac_ext | |
32483 | cat >>conftest.$ac_ext <<_ACEOF | |
32484 | /* end confdefs.h. */ | |
32485 | $ac_includes_default | |
32486 | int | |
32487 | main () | |
32488 | { | |
32489 | if ((mode_t *) 0) | |
32490 | return 0; | |
32491 | if (sizeof (mode_t)) | |
32492 | return 0; | |
32493 | ; | |
32494 | return 0; | |
32495 | } | |
32496 | _ACEOF | |
32497 | rm -f conftest.$ac_objext | |
32498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32499 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32500 | ac_status=$? |
ac1cb8d3 VS |
32501 | grep -v '^ *+' conftest.er1 >conftest.err |
32502 | rm -f conftest.er1 | |
32503 | cat conftest.err >&5 | |
a848cd7e SC |
32504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32505 | (exit $ac_status); } && | |
5d7b7554 | 32506 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32508 | (eval $ac_try) 2>&5 | |
32509 | ac_status=$? | |
32510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32511 | (exit $ac_status); }; } && | |
32512 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32514 | (eval $ac_try) 2>&5 | |
32515 | ac_status=$? | |
32516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32517 | (exit $ac_status); }; }; then | |
32518 | ac_cv_type_mode_t=yes | |
32519 | else | |
32520 | echo "$as_me: failed program was:" >&5 | |
32521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32522 | ||
32523 | ac_cv_type_mode_t=no | |
32524 | fi | |
ac1cb8d3 | 32525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32526 | fi |
32527 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
32528 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
32529 | if test $ac_cv_type_mode_t = yes; then | |
32530 | : | |
32531 | else | |
32532 | ||
32533 | cat >>confdefs.h <<_ACEOF | |
32534 | #define mode_t int | |
32535 | _ACEOF | |
32536 | ||
32537 | fi | |
32538 | ||
32539 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
32540 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
32541 | if test "${ac_cv_type_off_t+set}" = set; then | |
32542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32543 | else | |
32544 | cat >conftest.$ac_ext <<_ACEOF | |
32545 | /* confdefs.h. */ | |
32546 | _ACEOF | |
32547 | cat confdefs.h >>conftest.$ac_ext | |
32548 | cat >>conftest.$ac_ext <<_ACEOF | |
32549 | /* end confdefs.h. */ | |
32550 | $ac_includes_default | |
32551 | int | |
32552 | main () | |
32553 | { | |
32554 | if ((off_t *) 0) | |
32555 | return 0; | |
32556 | if (sizeof (off_t)) | |
32557 | return 0; | |
32558 | ; | |
32559 | return 0; | |
32560 | } | |
32561 | _ACEOF | |
32562 | rm -f conftest.$ac_objext | |
32563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32564 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32565 | ac_status=$? |
ac1cb8d3 VS |
32566 | grep -v '^ *+' conftest.er1 >conftest.err |
32567 | rm -f conftest.er1 | |
32568 | cat conftest.err >&5 | |
a848cd7e SC |
32569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32570 | (exit $ac_status); } && | |
5d7b7554 | 32571 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32573 | (eval $ac_try) 2>&5 | |
32574 | ac_status=$? | |
32575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32576 | (exit $ac_status); }; } && | |
32577 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32579 | (eval $ac_try) 2>&5 | |
32580 | ac_status=$? | |
32581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32582 | (exit $ac_status); }; }; then | |
32583 | ac_cv_type_off_t=yes | |
32584 | else | |
32585 | echo "$as_me: failed program was:" >&5 | |
32586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32587 | ||
32588 | ac_cv_type_off_t=no | |
32589 | fi | |
ac1cb8d3 | 32590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32591 | fi |
32592 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
32593 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
32594 | if test $ac_cv_type_off_t = yes; then | |
32595 | : | |
32596 | else | |
32597 | ||
32598 | cat >>confdefs.h <<_ACEOF | |
32599 | #define off_t long | |
32600 | _ACEOF | |
32601 | ||
32602 | fi | |
32603 | ||
32604 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
32605 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
32606 | if test "${ac_cv_type_pid_t+set}" = set; then | |
32607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32608 | else | |
32609 | cat >conftest.$ac_ext <<_ACEOF | |
32610 | /* confdefs.h. */ | |
32611 | _ACEOF | |
32612 | cat confdefs.h >>conftest.$ac_ext | |
32613 | cat >>conftest.$ac_ext <<_ACEOF | |
32614 | /* end confdefs.h. */ | |
32615 | $ac_includes_default | |
32616 | int | |
32617 | main () | |
32618 | { | |
32619 | if ((pid_t *) 0) | |
32620 | return 0; | |
32621 | if (sizeof (pid_t)) | |
32622 | return 0; | |
32623 | ; | |
32624 | return 0; | |
32625 | } | |
32626 | _ACEOF | |
32627 | rm -f conftest.$ac_objext | |
32628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32629 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32630 | ac_status=$? |
ac1cb8d3 VS |
32631 | grep -v '^ *+' conftest.er1 >conftest.err |
32632 | rm -f conftest.er1 | |
32633 | cat conftest.err >&5 | |
a848cd7e SC |
32634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32635 | (exit $ac_status); } && | |
5d7b7554 | 32636 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32638 | (eval $ac_try) 2>&5 | |
32639 | ac_status=$? | |
32640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32641 | (exit $ac_status); }; } && | |
32642 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32644 | (eval $ac_try) 2>&5 | |
32645 | ac_status=$? | |
32646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32647 | (exit $ac_status); }; }; then | |
32648 | ac_cv_type_pid_t=yes | |
32649 | else | |
32650 | echo "$as_me: failed program was:" >&5 | |
32651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32652 | ||
32653 | ac_cv_type_pid_t=no | |
32654 | fi | |
ac1cb8d3 | 32655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32656 | fi |
32657 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
32658 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
32659 | if test $ac_cv_type_pid_t = yes; then | |
32660 | : | |
32661 | else | |
32662 | ||
32663 | cat >>confdefs.h <<_ACEOF | |
32664 | #define pid_t int | |
32665 | _ACEOF | |
32666 | ||
32667 | fi | |
32668 | ||
32669 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
32670 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
32671 | if test "${ac_cv_type_size_t+set}" = set; then | |
32672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32673 | else | |
32674 | cat >conftest.$ac_ext <<_ACEOF | |
32675 | /* confdefs.h. */ | |
32676 | _ACEOF | |
32677 | cat confdefs.h >>conftest.$ac_ext | |
32678 | cat >>conftest.$ac_ext <<_ACEOF | |
32679 | /* end confdefs.h. */ | |
32680 | $ac_includes_default | |
32681 | int | |
32682 | main () | |
32683 | { | |
32684 | if ((size_t *) 0) | |
32685 | return 0; | |
32686 | if (sizeof (size_t)) | |
32687 | return 0; | |
32688 | ; | |
32689 | return 0; | |
32690 | } | |
32691 | _ACEOF | |
32692 | rm -f conftest.$ac_objext | |
32693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32694 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32695 | ac_status=$? |
ac1cb8d3 VS |
32696 | grep -v '^ *+' conftest.er1 >conftest.err |
32697 | rm -f conftest.er1 | |
32698 | cat conftest.err >&5 | |
a848cd7e SC |
32699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32700 | (exit $ac_status); } && | |
5d7b7554 | 32701 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32703 | (eval $ac_try) 2>&5 | |
32704 | ac_status=$? | |
32705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32706 | (exit $ac_status); }; } && | |
32707 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32709 | (eval $ac_try) 2>&5 | |
32710 | ac_status=$? | |
32711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32712 | (exit $ac_status); }; }; then | |
32713 | ac_cv_type_size_t=yes | |
32714 | else | |
32715 | echo "$as_me: failed program was:" >&5 | |
32716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32717 | ||
32718 | ac_cv_type_size_t=no | |
32719 | fi | |
ac1cb8d3 | 32720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32721 | fi |
32722 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
32723 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
32724 | if test $ac_cv_type_size_t = yes; then | |
32725 | : | |
32726 | else | |
32727 | ||
32728 | cat >>confdefs.h <<_ACEOF | |
32729 | #define size_t unsigned | |
32730 | _ACEOF | |
32731 | ||
32732 | fi | |
32733 | ||
32734 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
32735 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
32736 | if test "${ac_cv_type_uid_t+set}" = set; then | |
32737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32738 | else | |
32739 | cat >conftest.$ac_ext <<_ACEOF | |
32740 | /* confdefs.h. */ | |
32741 | _ACEOF | |
32742 | cat confdefs.h >>conftest.$ac_ext | |
32743 | cat >>conftest.$ac_ext <<_ACEOF | |
32744 | /* end confdefs.h. */ | |
32745 | #include <sys/types.h> | |
32746 | ||
32747 | _ACEOF | |
32748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
32749 | $EGREP "uid_t" >/dev/null 2>&1; then | |
32750 | ac_cv_type_uid_t=yes | |
32751 | else | |
32752 | ac_cv_type_uid_t=no | |
32753 | fi | |
32754 | rm -f conftest* | |
32755 | ||
32756 | fi | |
32757 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
32758 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
32759 | if test $ac_cv_type_uid_t = no; then | |
32760 | ||
32761 | cat >>confdefs.h <<\_ACEOF | |
32762 | #define uid_t int | |
32763 | _ACEOF | |
32764 | ||
32765 | ||
32766 | cat >>confdefs.h <<\_ACEOF | |
32767 | #define gid_t int | |
32768 | _ACEOF | |
32769 | ||
32770 | fi | |
32771 | ||
32772 | ||
d51253e8 RL |
32773 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
32774 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
32775 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
32776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32777 | else | |
32778 | cat >conftest.$ac_ext <<_ACEOF | |
32779 | /* confdefs.h. */ | |
32780 | _ACEOF | |
32781 | cat confdefs.h >>conftest.$ac_ext | |
32782 | cat >>conftest.$ac_ext <<_ACEOF | |
32783 | /* end confdefs.h. */ | |
32784 | $ac_includes_default | |
32785 | int | |
32786 | main () | |
32787 | { | |
32788 | if ((ssize_t *) 0) | |
32789 | return 0; | |
32790 | if (sizeof (ssize_t)) | |
32791 | return 0; | |
32792 | ; | |
32793 | return 0; | |
32794 | } | |
32795 | _ACEOF | |
32796 | rm -f conftest.$ac_objext | |
32797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32798 | (eval $ac_compile) 2>conftest.er1 | |
32799 | ac_status=$? | |
32800 | grep -v '^ *+' conftest.er1 >conftest.err | |
32801 | rm -f conftest.er1 | |
32802 | cat conftest.err >&5 | |
32803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32804 | (exit $ac_status); } && | |
5d7b7554 | 32805 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
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_objext' | |
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_type_ssize_t=yes | |
32818 | else | |
32819 | echo "$as_me: failed program was:" >&5 | |
32820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32821 | ||
32822 | ac_cv_type_ssize_t=no | |
32823 | fi | |
32824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32825 | fi | |
32826 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
32827 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
32828 | if test $ac_cv_type_ssize_t = yes; then | |
32829 | ||
32830 | cat >>confdefs.h <<_ACEOF | |
32831 | #define HAVE_SSIZE_T 1 | |
32832 | _ACEOF | |
32833 | ||
32834 | ||
32835 | fi | |
32836 | ||
32837 | ||
a848cd7e SC |
32838 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 |
32839 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
32840 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
32841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32842 | else | |
32843 | ||
32844 | cat >conftest.$ac_ext <<_ACEOF | |
32845 | /* confdefs.h. */ | |
32846 | _ACEOF | |
32847 | cat confdefs.h >>conftest.$ac_ext | |
32848 | cat >>conftest.$ac_ext <<_ACEOF | |
32849 | /* end confdefs.h. */ | |
32850 | #include <stddef.h> | |
32851 | int | |
32852 | main () | |
32853 | { | |
32854 | ||
32855 | return 0; } | |
32856 | ||
32857 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
32858 | ||
32859 | int bar() { | |
32860 | ||
32861 | ; | |
32862 | return 0; | |
32863 | } | |
32864 | _ACEOF | |
32865 | rm -f conftest.$ac_objext | |
32866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32867 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32868 | ac_status=$? |
ac1cb8d3 VS |
32869 | grep -v '^ *+' conftest.er1 >conftest.err |
32870 | rm -f conftest.er1 | |
32871 | cat conftest.err >&5 | |
a848cd7e SC |
32872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32873 | (exit $ac_status); } && | |
5d7b7554 | 32874 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32876 | (eval $ac_try) 2>&5 | |
32877 | ac_status=$? | |
32878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32879 | (exit $ac_status); }; } && | |
32880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32882 | (eval $ac_try) 2>&5 | |
32883 | ac_status=$? | |
32884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32885 | (exit $ac_status); }; }; then | |
32886 | wx_cv_size_t_is_uint=no | |
32887 | else | |
32888 | echo "$as_me: failed program was:" >&5 | |
32889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32890 | ||
32891 | wx_cv_size_t_is_uint=yes | |
32892 | ||
32893 | fi | |
ac1cb8d3 | 32894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32895 | |
32896 | ||
32897 | fi | |
32898 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
32899 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
32900 | ||
32901 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
32902 | cat >>confdefs.h <<\_ACEOF | |
32903 | #define wxSIZE_T_IS_UINT 1 | |
32904 | _ACEOF | |
32905 | ||
32906 | else | |
32907 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
32908 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
32909 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
32910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32911 | else | |
32912 | cat >conftest.$ac_ext <<_ACEOF | |
32913 | /* confdefs.h. */ | |
32914 | _ACEOF | |
32915 | cat confdefs.h >>conftest.$ac_ext | |
32916 | cat >>conftest.$ac_ext <<_ACEOF | |
32917 | /* end confdefs.h. */ | |
32918 | #include <stddef.h> | |
32919 | int | |
32920 | main () | |
32921 | { | |
32922 | ||
32923 | return 0; } | |
32924 | ||
32925 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
32926 | ||
32927 | int bar() { | |
32928 | ||
32929 | ; | |
32930 | return 0; | |
32931 | } | |
32932 | _ACEOF | |
32933 | rm -f conftest.$ac_objext | |
32934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32935 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32936 | ac_status=$? |
ac1cb8d3 VS |
32937 | grep -v '^ *+' conftest.er1 >conftest.err |
32938 | rm -f conftest.er1 | |
32939 | cat conftest.err >&5 | |
a848cd7e SC |
32940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32941 | (exit $ac_status); } && | |
5d7b7554 | 32942 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32944 | (eval $ac_try) 2>&5 | |
32945 | ac_status=$? | |
32946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32947 | (exit $ac_status); }; } && | |
32948 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32950 | (eval $ac_try) 2>&5 | |
32951 | ac_status=$? | |
32952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32953 | (exit $ac_status); }; }; then | |
32954 | wx_cv_size_t_is_ulong=no | |
32955 | else | |
32956 | echo "$as_me: failed program was:" >&5 | |
32957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32958 | ||
32959 | wx_cv_size_t_is_ulong=yes | |
32960 | ||
32961 | fi | |
ac1cb8d3 | 32962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32963 | |
32964 | fi | |
32965 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
32966 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
32967 | ||
32968 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
32969 | cat >>confdefs.h <<\_ACEOF | |
32970 | #define wxSIZE_T_IS_ULONG 1 | |
32971 | _ACEOF | |
32972 | ||
32973 | fi | |
32974 | fi | |
32975 | ||
a848cd7e SC |
32976 | |
32977 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
32978 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
32979 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
32980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32981 | else | |
32982 | ||
32983 | cat >conftest.$ac_ext <<_ACEOF | |
32984 | /* confdefs.h. */ | |
32985 | _ACEOF | |
32986 | cat confdefs.h >>conftest.$ac_ext | |
32987 | cat >>conftest.$ac_ext <<_ACEOF | |
32988 | /* end confdefs.h. */ | |
32989 | #include <pwd.h> | |
32990 | int | |
32991 | main () | |
32992 | { | |
32993 | ||
32994 | char *p; | |
32995 | struct passwd *pw; | |
32996 | p = pw->pw_gecos; | |
32997 | ||
32998 | ; | |
32999 | return 0; | |
33000 | } | |
33001 | _ACEOF | |
33002 | rm -f conftest.$ac_objext | |
33003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33004 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33005 | ac_status=$? |
ac1cb8d3 VS |
33006 | grep -v '^ *+' conftest.er1 >conftest.err |
33007 | rm -f conftest.er1 | |
33008 | cat conftest.err >&5 | |
a848cd7e SC |
33009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33010 | (exit $ac_status); } && | |
5d7b7554 | 33011 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33013 | (eval $ac_try) 2>&5 | |
33014 | ac_status=$? | |
33015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33016 | (exit $ac_status); }; } && | |
33017 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33019 | (eval $ac_try) 2>&5 | |
33020 | ac_status=$? | |
33021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33022 | (exit $ac_status); }; }; then | |
33023 | ||
33024 | wx_cv_struct_pw_gecos=yes | |
33025 | ||
33026 | else | |
33027 | echo "$as_me: failed program was:" >&5 | |
33028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33029 | ||
33030 | ||
33031 | wx_cv_struct_pw_gecos=no | |
33032 | ||
33033 | ||
33034 | fi | |
ac1cb8d3 | 33035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33036 | |
33037 | ||
33038 | fi | |
33039 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
33040 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
33041 | ||
33042 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
33043 | cat >>confdefs.h <<\_ACEOF | |
33044 | #define HAVE_PW_GECOS 1 | |
33045 | _ACEOF | |
33046 | ||
33047 | fi | |
33048 | ||
33049 | ||
47a7e797 | 33050 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
33051 | cat >>confdefs.h <<\_ACEOF |
33052 | #define wxUSE_WCHAR_T 1 | |
33053 | _ACEOF | |
33054 | ||
33055 | ||
33056 | WCSLEN_FOUND=0 | |
33057 | WCHAR_LINK= | |
33058 | ||
33059 | for ac_func in wcslen | |
33060 | do | |
33061 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33062 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33063 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33064 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33066 | else | |
33067 | cat >conftest.$ac_ext <<_ACEOF | |
33068 | /* confdefs.h. */ | |
33069 | _ACEOF | |
33070 | cat confdefs.h >>conftest.$ac_ext | |
33071 | cat >>conftest.$ac_ext <<_ACEOF | |
33072 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33073 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33074 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33075 | #define $ac_func innocuous_$ac_func | |
33076 | ||
a848cd7e SC |
33077 | /* System header to define __stub macros and hopefully few prototypes, |
33078 | which can conflict with char $ac_func (); below. | |
33079 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33080 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33081 | |
a848cd7e SC |
33082 | #ifdef __STDC__ |
33083 | # include <limits.h> | |
33084 | #else | |
33085 | # include <assert.h> | |
33086 | #endif | |
ac1cb8d3 VS |
33087 | |
33088 | #undef $ac_func | |
33089 | ||
a848cd7e SC |
33090 | /* Override any gcc2 internal prototype to avoid an error. */ |
33091 | #ifdef __cplusplus | |
33092 | extern "C" | |
33093 | { | |
33094 | #endif | |
33095 | /* We use char because int might match the return type of a gcc2 | |
33096 | builtin and then its argument prototype would still apply. */ | |
33097 | char $ac_func (); | |
33098 | /* The GNU C library defines this for functions which it implements | |
33099 | to always fail with ENOSYS. Some functions are actually named | |
33100 | something starting with __ and the normal name is an alias. */ | |
33101 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33102 | choke me | |
33103 | #else | |
33104 | char (*f) () = $ac_func; | |
33105 | #endif | |
33106 | #ifdef __cplusplus | |
33107 | } | |
33108 | #endif | |
33109 | ||
33110 | int | |
33111 | main () | |
33112 | { | |
33113 | return f != $ac_func; | |
33114 | ; | |
33115 | return 0; | |
33116 | } | |
33117 | _ACEOF | |
33118 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33120 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33121 | ac_status=$? |
ac1cb8d3 VS |
33122 | grep -v '^ *+' conftest.er1 >conftest.err |
33123 | rm -f conftest.er1 | |
33124 | cat conftest.err >&5 | |
a848cd7e SC |
33125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33126 | (exit $ac_status); } && | |
5d7b7554 | 33127 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33129 | (eval $ac_try) 2>&5 | |
33130 | ac_status=$? | |
33131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33132 | (exit $ac_status); }; } && | |
33133 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33135 | (eval $ac_try) 2>&5 | |
33136 | ac_status=$? | |
33137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33138 | (exit $ac_status); }; }; then | |
33139 | eval "$as_ac_var=yes" | |
33140 | else | |
33141 | echo "$as_me: failed program was:" >&5 | |
33142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33143 | ||
33144 | eval "$as_ac_var=no" | |
33145 | fi | |
ac1cb8d3 VS |
33146 | rm -f conftest.err conftest.$ac_objext \ |
33147 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33148 | fi |
33149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33150 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33151 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33152 | cat >>confdefs.h <<_ACEOF | |
33153 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33154 | _ACEOF | |
33155 | WCSLEN_FOUND=1 | |
33156 | fi | |
33157 | done | |
33158 | ||
33159 | ||
33160 | if test "$WCSLEN_FOUND" = 0; then | |
33161 | if test "$TOOLKIT" = "MSW"; then | |
33162 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
33163 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
33164 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
33165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33166 | else | |
33167 | ac_check_lib_save_LIBS=$LIBS | |
33168 | LIBS="-lmsvcrt $LIBS" | |
33169 | cat >conftest.$ac_ext <<_ACEOF | |
33170 | /* confdefs.h. */ | |
33171 | _ACEOF | |
33172 | cat confdefs.h >>conftest.$ac_ext | |
33173 | cat >>conftest.$ac_ext <<_ACEOF | |
33174 | /* end confdefs.h. */ | |
33175 | ||
33176 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33177 | #ifdef __cplusplus | |
33178 | extern "C" | |
33179 | #endif | |
33180 | /* We use char because int might match the return type of a gcc2 | |
33181 | builtin and then its argument prototype would still apply. */ | |
33182 | char wcslen (); | |
33183 | int | |
33184 | main () | |
33185 | { | |
33186 | wcslen (); | |
33187 | ; | |
33188 | return 0; | |
33189 | } | |
33190 | _ACEOF | |
33191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33193 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33194 | ac_status=$? |
ac1cb8d3 VS |
33195 | grep -v '^ *+' conftest.er1 >conftest.err |
33196 | rm -f conftest.er1 | |
33197 | cat conftest.err >&5 | |
a848cd7e SC |
33198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33199 | (exit $ac_status); } && | |
5d7b7554 | 33200 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33202 | (eval $ac_try) 2>&5 | |
33203 | ac_status=$? | |
33204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33205 | (exit $ac_status); }; } && | |
33206 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33208 | (eval $ac_try) 2>&5 | |
33209 | ac_status=$? | |
33210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33211 | (exit $ac_status); }; }; then | |
33212 | ac_cv_lib_msvcrt_wcslen=yes | |
33213 | else | |
33214 | echo "$as_me: failed program was:" >&5 | |
33215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33216 | ||
33217 | ac_cv_lib_msvcrt_wcslen=no | |
33218 | fi | |
ac1cb8d3 VS |
33219 | rm -f conftest.err conftest.$ac_objext \ |
33220 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33221 | LIBS=$ac_check_lib_save_LIBS |
33222 | fi | |
33223 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
33224 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
33225 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
33226 | WCHAR_OK=1 | |
33227 | fi | |
33228 | ||
33229 | else | |
33230 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
33231 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
33232 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
33233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33234 | else | |
33235 | ac_check_lib_save_LIBS=$LIBS | |
33236 | LIBS="-lw $LIBS" | |
33237 | cat >conftest.$ac_ext <<_ACEOF | |
33238 | /* confdefs.h. */ | |
33239 | _ACEOF | |
33240 | cat confdefs.h >>conftest.$ac_ext | |
33241 | cat >>conftest.$ac_ext <<_ACEOF | |
33242 | /* end confdefs.h. */ | |
33243 | ||
33244 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33245 | #ifdef __cplusplus | |
33246 | extern "C" | |
33247 | #endif | |
33248 | /* We use char because int might match the return type of a gcc2 | |
33249 | builtin and then its argument prototype would still apply. */ | |
33250 | char wcslen (); | |
33251 | int | |
33252 | main () | |
33253 | { | |
33254 | wcslen (); | |
33255 | ; | |
33256 | return 0; | |
33257 | } | |
33258 | _ACEOF | |
33259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33261 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33262 | ac_status=$? |
ac1cb8d3 VS |
33263 | grep -v '^ *+' conftest.er1 >conftest.err |
33264 | rm -f conftest.er1 | |
33265 | cat conftest.err >&5 | |
a848cd7e SC |
33266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33267 | (exit $ac_status); } && | |
5d7b7554 | 33268 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33270 | (eval $ac_try) 2>&5 | |
33271 | ac_status=$? | |
33272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33273 | (exit $ac_status); }; } && | |
33274 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33276 | (eval $ac_try) 2>&5 | |
33277 | ac_status=$? | |
33278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33279 | (exit $ac_status); }; }; then | |
33280 | ac_cv_lib_w_wcslen=yes | |
33281 | else | |
33282 | echo "$as_me: failed program was:" >&5 | |
33283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33284 | ||
33285 | ac_cv_lib_w_wcslen=no | |
33286 | fi | |
ac1cb8d3 VS |
33287 | rm -f conftest.err conftest.$ac_objext \ |
33288 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33289 | LIBS=$ac_check_lib_save_LIBS |
33290 | fi | |
33291 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
33292 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
33293 | if test $ac_cv_lib_w_wcslen = yes; then | |
33294 | ||
33295 | WCHAR_LINK=" -lw" | |
33296 | WCSLEN_FOUND=1 | |
33297 | ||
33298 | fi | |
33299 | ||
33300 | fi | |
33301 | fi | |
33302 | ||
33303 | if test "$WCSLEN_FOUND" = 1; then | |
33304 | cat >>confdefs.h <<\_ACEOF | |
33305 | #define HAVE_WCSLEN 1 | |
33306 | _ACEOF | |
33307 | ||
33308 | fi | |
33309 | ||
efdf6afe | 33310 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 33311 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
33312 | fi |
33313 | ||
efdf6afe VZ |
33314 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
33315 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
33316 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
33317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33318 | else | |
33319 | cat >conftest.$ac_ext <<_ACEOF | |
33320 | /* confdefs.h. */ | |
33321 | _ACEOF | |
33322 | cat confdefs.h >>conftest.$ac_ext | |
33323 | cat >>conftest.$ac_ext <<_ACEOF | |
33324 | /* end confdefs.h. */ | |
33325 | #include <wchar.h> | |
33326 | ||
33327 | int | |
33328 | main () | |
33329 | { | |
33330 | if ((mbstate_t *) 0) | |
33331 | return 0; | |
33332 | if (sizeof (mbstate_t)) | |
33333 | return 0; | |
33334 | ; | |
33335 | return 0; | |
33336 | } | |
33337 | _ACEOF | |
33338 | rm -f conftest.$ac_objext | |
33339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33340 | (eval $ac_compile) 2>conftest.er1 | |
33341 | ac_status=$? | |
33342 | grep -v '^ *+' conftest.er1 >conftest.err | |
33343 | rm -f conftest.er1 | |
33344 | cat conftest.err >&5 | |
33345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33346 | (exit $ac_status); } && | |
5d7b7554 | 33347 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
efdf6afe VZ |
33348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33349 | (eval $ac_try) 2>&5 | |
33350 | ac_status=$? | |
33351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33352 | (exit $ac_status); }; } && | |
33353 | { ac_try='test -s conftest.$ac_objext' | |
33354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33355 | (eval $ac_try) 2>&5 | |
33356 | ac_status=$? | |
33357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33358 | (exit $ac_status); }; }; then | |
33359 | ac_cv_type_mbstate_t=yes | |
33360 | else | |
33361 | echo "$as_me: failed program was:" >&5 | |
33362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33363 | ||
33364 | ac_cv_type_mbstate_t=no | |
33365 | fi | |
33366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33367 | fi | |
33368 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
33369 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
33370 | if test $ac_cv_type_mbstate_t = yes; then | |
33371 | ||
33372 | cat >>confdefs.h <<_ACEOF | |
33373 | #define HAVE_MBSTATE_T 1 | |
33374 | _ACEOF | |
33375 | ||
a848cd7e SC |
33376 | |
33377 | for ac_func in wcsrtombs | |
33378 | do | |
33379 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33380 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33381 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33382 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33384 | else | |
33385 | cat >conftest.$ac_ext <<_ACEOF | |
33386 | /* confdefs.h. */ | |
33387 | _ACEOF | |
33388 | cat confdefs.h >>conftest.$ac_ext | |
33389 | cat >>conftest.$ac_ext <<_ACEOF | |
33390 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33391 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33392 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33393 | #define $ac_func innocuous_$ac_func | |
33394 | ||
a848cd7e SC |
33395 | /* System header to define __stub macros and hopefully few prototypes, |
33396 | which can conflict with char $ac_func (); below. | |
33397 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33398 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33399 | |
a848cd7e SC |
33400 | #ifdef __STDC__ |
33401 | # include <limits.h> | |
33402 | #else | |
33403 | # include <assert.h> | |
33404 | #endif | |
ac1cb8d3 VS |
33405 | |
33406 | #undef $ac_func | |
33407 | ||
a848cd7e SC |
33408 | /* Override any gcc2 internal prototype to avoid an error. */ |
33409 | #ifdef __cplusplus | |
33410 | extern "C" | |
33411 | { | |
33412 | #endif | |
33413 | /* We use char because int might match the return type of a gcc2 | |
33414 | builtin and then its argument prototype would still apply. */ | |
33415 | char $ac_func (); | |
33416 | /* The GNU C library defines this for functions which it implements | |
33417 | to always fail with ENOSYS. Some functions are actually named | |
33418 | something starting with __ and the normal name is an alias. */ | |
33419 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33420 | choke me | |
33421 | #else | |
33422 | char (*f) () = $ac_func; | |
33423 | #endif | |
33424 | #ifdef __cplusplus | |
33425 | } | |
33426 | #endif | |
33427 | ||
33428 | int | |
33429 | main () | |
33430 | { | |
33431 | return f != $ac_func; | |
33432 | ; | |
33433 | return 0; | |
33434 | } | |
33435 | _ACEOF | |
33436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33438 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33439 | ac_status=$? |
ac1cb8d3 VS |
33440 | grep -v '^ *+' conftest.er1 >conftest.err |
33441 | rm -f conftest.er1 | |
33442 | cat conftest.err >&5 | |
a848cd7e SC |
33443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33444 | (exit $ac_status); } && | |
5d7b7554 | 33445 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33447 | (eval $ac_try) 2>&5 | |
33448 | ac_status=$? | |
33449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33450 | (exit $ac_status); }; } && | |
33451 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33453 | (eval $ac_try) 2>&5 | |
33454 | ac_status=$? | |
33455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33456 | (exit $ac_status); }; }; then | |
33457 | eval "$as_ac_var=yes" | |
33458 | else | |
33459 | echo "$as_me: failed program was:" >&5 | |
33460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33461 | ||
33462 | eval "$as_ac_var=no" | |
33463 | fi | |
ac1cb8d3 VS |
33464 | rm -f conftest.err conftest.$ac_objext \ |
33465 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33466 | fi |
33467 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33468 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33469 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33470 | cat >>confdefs.h <<_ACEOF | |
33471 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33472 | _ACEOF | |
33473 | ||
33474 | fi | |
33475 | done | |
33476 | ||
efdf6afe VZ |
33477 | fi |
33478 | ||
a848cd7e SC |
33479 | else |
33480 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
33481 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
33482 | fi | |
33483 | ||
a848cd7e | 33484 | |
4a767dd5 VZ |
33485 | |
33486 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
33487 | do |
33488 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33489 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33490 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33491 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33493 | else | |
33494 | cat >conftest.$ac_ext <<_ACEOF | |
33495 | /* confdefs.h. */ | |
33496 | _ACEOF | |
33497 | cat confdefs.h >>conftest.$ac_ext | |
33498 | cat >>conftest.$ac_ext <<_ACEOF | |
33499 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33500 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33501 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33502 | #define $ac_func innocuous_$ac_func | |
33503 | ||
a848cd7e SC |
33504 | /* System header to define __stub macros and hopefully few prototypes, |
33505 | which can conflict with char $ac_func (); below. | |
33506 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33507 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33508 | |
a848cd7e SC |
33509 | #ifdef __STDC__ |
33510 | # include <limits.h> | |
33511 | #else | |
33512 | # include <assert.h> | |
33513 | #endif | |
ac1cb8d3 VS |
33514 | |
33515 | #undef $ac_func | |
33516 | ||
a848cd7e SC |
33517 | /* Override any gcc2 internal prototype to avoid an error. */ |
33518 | #ifdef __cplusplus | |
33519 | extern "C" | |
33520 | { | |
33521 | #endif | |
33522 | /* We use char because int might match the return type of a gcc2 | |
33523 | builtin and then its argument prototype would still apply. */ | |
33524 | char $ac_func (); | |
33525 | /* The GNU C library defines this for functions which it implements | |
33526 | to always fail with ENOSYS. Some functions are actually named | |
33527 | something starting with __ and the normal name is an alias. */ | |
33528 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33529 | choke me | |
33530 | #else | |
33531 | char (*f) () = $ac_func; | |
33532 | #endif | |
33533 | #ifdef __cplusplus | |
33534 | } | |
33535 | #endif | |
33536 | ||
33537 | int | |
33538 | main () | |
33539 | { | |
33540 | return f != $ac_func; | |
33541 | ; | |
33542 | return 0; | |
33543 | } | |
33544 | _ACEOF | |
33545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33547 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33548 | ac_status=$? |
ac1cb8d3 VS |
33549 | grep -v '^ *+' conftest.er1 >conftest.err |
33550 | rm -f conftest.er1 | |
33551 | cat conftest.err >&5 | |
a848cd7e SC |
33552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33553 | (exit $ac_status); } && | |
5d7b7554 | 33554 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33556 | (eval $ac_try) 2>&5 | |
33557 | ac_status=$? | |
33558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33559 | (exit $ac_status); }; } && | |
33560 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33562 | (eval $ac_try) 2>&5 | |
33563 | ac_status=$? | |
33564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33565 | (exit $ac_status); }; }; then | |
33566 | eval "$as_ac_var=yes" | |
33567 | else | |
33568 | echo "$as_me: failed program was:" >&5 | |
33569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33570 | ||
33571 | eval "$as_ac_var=no" | |
33572 | fi | |
ac1cb8d3 VS |
33573 | rm -f conftest.err conftest.$ac_objext \ |
33574 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33575 | fi |
33576 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33577 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33578 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33579 | cat >>confdefs.h <<_ACEOF | |
33580 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33581 | _ACEOF | |
33582 | ||
33583 | fi | |
33584 | done | |
33585 | ||
33586 | ||
33587 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
33588 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
33589 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
33590 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
33591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33592 | else | |
33593 | ||
efdf6afe | 33594 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
33595 | /* confdefs.h. */ |
33596 | _ACEOF | |
33597 | cat confdefs.h >>conftest.$ac_ext | |
33598 | cat >>conftest.$ac_ext <<_ACEOF | |
33599 | /* end confdefs.h. */ | |
33600 | ||
33601 | #include <stdio.h> | |
33602 | #include <stdarg.h> | |
efdf6afe VZ |
33603 | #ifdef __MSL__ |
33604 | #if __MSL__ >= 0x6000 | |
33605 | namespace std {} | |
33606 | using namespace std; | |
33607 | #endif | |
33608 | #endif | |
a848cd7e SC |
33609 | |
33610 | int | |
33611 | main () | |
33612 | { | |
33613 | ||
33614 | char *buf; | |
33615 | va_list ap; | |
62fa8b3a | 33616 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
33617 | |
33618 | ; | |
33619 | return 0; | |
33620 | } | |
33621 | _ACEOF | |
33622 | rm -f conftest.$ac_objext | |
33623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33624 | (eval $ac_compile) 2>conftest.er1 | |
33625 | ac_status=$? | |
33626 | grep -v '^ *+' conftest.er1 >conftest.err | |
33627 | rm -f conftest.er1 | |
33628 | cat conftest.err >&5 | |
33629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33630 | (exit $ac_status); } && | |
5d7b7554 | 33631 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
33632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33633 | (eval $ac_try) 2>&5 | |
33634 | ac_status=$? | |
33635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33636 | (exit $ac_status); }; } && | |
33637 | { ac_try='test -s conftest.$ac_objext' | |
33638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33639 | (eval $ac_try) 2>&5 | |
33640 | ac_status=$? | |
33641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33642 | (exit $ac_status); }; }; then | |
33643 | wx_cv_func_vsnprintf_decl=yes | |
33644 | else | |
33645 | echo "$as_me: failed program was:" >&5 | |
33646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33647 | ||
a848cd7e SC |
33648 | wx_cv_func_vsnprintf_decl=no |
33649 | ||
33650 | fi | |
ac1cb8d3 | 33651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33652 | |
33653 | ||
33654 | fi | |
33655 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
33656 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
33657 | ||
33658 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
33659 | cat >>confdefs.h <<\_ACEOF | |
33660 | #define HAVE_VSNPRINTF_DECL 1 | |
33661 | _ACEOF | |
33662 | ||
62fa8b3a MW |
33663 | |
33664 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
33665 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
33666 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
33667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33668 | else | |
33669 | ||
33670 | cat >conftest.$ac_ext <<_ACEOF | |
33671 | /* confdefs.h. */ | |
33672 | _ACEOF | |
33673 | cat confdefs.h >>conftest.$ac_ext | |
33674 | cat >>conftest.$ac_ext <<_ACEOF | |
33675 | /* end confdefs.h. */ | |
33676 | ||
33677 | #include <stdio.h> | |
33678 | #include <stdarg.h> | |
33679 | #ifdef __MSL__ | |
33680 | #if __MSL__ >= 0x6000 | |
33681 | namespace std {} | |
33682 | using namespace std; | |
33683 | #endif | |
33684 | #endif | |
33685 | ||
33686 | int | |
33687 | main () | |
33688 | { | |
33689 | ||
33690 | char *buf; | |
33691 | va_list ap; | |
33692 | const char *fmt = "%s"; | |
33693 | vsnprintf(buf, 10u, fmt, ap); | |
33694 | ||
33695 | ; | |
33696 | return 0; | |
33697 | } | |
33698 | _ACEOF | |
33699 | rm -f conftest.$ac_objext | |
33700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33701 | (eval $ac_compile) 2>conftest.er1 | |
33702 | ac_status=$? | |
33703 | grep -v '^ *+' conftest.er1 >conftest.err | |
33704 | rm -f conftest.er1 | |
33705 | cat conftest.err >&5 | |
33706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33707 | (exit $ac_status); } && | |
5d7b7554 | 33708 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
33709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33710 | (eval $ac_try) 2>&5 | |
33711 | ac_status=$? | |
33712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33713 | (exit $ac_status); }; } && | |
33714 | { ac_try='test -s conftest.$ac_objext' | |
33715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33716 | (eval $ac_try) 2>&5 | |
33717 | ac_status=$? | |
33718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33719 | (exit $ac_status); }; }; then | |
33720 | wx_cv_func_broken_vsnprintf_decl=no | |
33721 | else | |
33722 | echo "$as_me: failed program was:" >&5 | |
33723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33724 | ||
33725 | wx_cv_func_broken_vsnprintf_decl=yes | |
33726 | ||
33727 | fi | |
33728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33729 | ||
33730 | ||
33731 | fi | |
33732 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
33733 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
33734 | ||
33735 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
33736 | cat >>confdefs.h <<\_ACEOF | |
33737 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
33738 | _ACEOF | |
33739 | ||
33740 | fi | |
a848cd7e SC |
33741 | fi |
33742 | fi | |
33743 | ||
4a767dd5 VZ |
33744 | if test "$ac_cv_func_snprintf" = "yes"; then |
33745 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
33746 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
33747 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
33748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33749 | else | |
33750 | ||
33751 | cat >conftest.$ac_ext <<_ACEOF | |
33752 | /* confdefs.h. */ | |
33753 | _ACEOF | |
33754 | cat confdefs.h >>conftest.$ac_ext | |
33755 | cat >>conftest.$ac_ext <<_ACEOF | |
33756 | /* end confdefs.h. */ | |
33757 | ||
33758 | #include <stdio.h> | |
33759 | #include <stdarg.h> | |
33760 | #ifdef __MSL__ | |
33761 | #if __MSL__ >= 0x6000 | |
33762 | namespace std {} | |
33763 | using namespace std; | |
33764 | #endif | |
33765 | #endif | |
33766 | ||
33767 | int | |
33768 | main () | |
33769 | { | |
33770 | ||
33771 | char *buf; | |
62fa8b3a | 33772 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
33773 | |
33774 | ; | |
33775 | return 0; | |
33776 | } | |
33777 | _ACEOF | |
33778 | rm -f conftest.$ac_objext | |
33779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33780 | (eval $ac_compile) 2>conftest.er1 | |
33781 | ac_status=$? | |
33782 | grep -v '^ *+' conftest.er1 >conftest.err | |
33783 | rm -f conftest.er1 | |
33784 | cat conftest.err >&5 | |
33785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33786 | (exit $ac_status); } && | |
5d7b7554 | 33787 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4a767dd5 VZ |
33788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33789 | (eval $ac_try) 2>&5 | |
33790 | ac_status=$? | |
33791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33792 | (exit $ac_status); }; } && | |
33793 | { ac_try='test -s conftest.$ac_objext' | |
33794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33795 | (eval $ac_try) 2>&5 | |
33796 | ac_status=$? | |
33797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33798 | (exit $ac_status); }; }; then | |
33799 | wx_cv_func_snprintf_decl=yes | |
33800 | else | |
33801 | echo "$as_me: failed program was:" >&5 | |
33802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33803 | ||
33804 | wx_cv_func_snprintf_decl=no | |
33805 | ||
33806 | fi | |
33807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33808 | ||
33809 | ||
33810 | fi | |
33811 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
33812 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
33813 | ||
33814 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
33815 | cat >>confdefs.h <<\_ACEOF | |
33816 | #define HAVE_SNPRINTF_DECL 1 | |
33817 | _ACEOF | |
33818 | ||
62fa8b3a MW |
33819 | |
33820 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
33821 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
33822 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
33823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33824 | else | |
33825 | ||
33826 | cat >conftest.$ac_ext <<_ACEOF | |
33827 | /* confdefs.h. */ | |
33828 | _ACEOF | |
33829 | cat confdefs.h >>conftest.$ac_ext | |
33830 | cat >>conftest.$ac_ext <<_ACEOF | |
33831 | /* end confdefs.h. */ | |
33832 | ||
33833 | #include <stdio.h> | |
33834 | #include <stdarg.h> | |
33835 | #ifdef __MSL__ | |
33836 | #if __MSL__ >= 0x6000 | |
33837 | namespace std {} | |
33838 | using namespace std; | |
33839 | #endif | |
33840 | #endif | |
33841 | ||
33842 | int | |
33843 | main () | |
33844 | { | |
33845 | ||
33846 | char *buf; | |
33847 | const char *fmt = "%s"; | |
33848 | snprintf(buf, 10u, fmt, "wx"); | |
33849 | ||
33850 | ; | |
33851 | return 0; | |
33852 | } | |
33853 | _ACEOF | |
33854 | rm -f conftest.$ac_objext | |
33855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33856 | (eval $ac_compile) 2>conftest.er1 | |
33857 | ac_status=$? | |
33858 | grep -v '^ *+' conftest.er1 >conftest.err | |
33859 | rm -f conftest.er1 | |
33860 | cat conftest.err >&5 | |
33861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33862 | (exit $ac_status); } && | |
5d7b7554 | 33863 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
33864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33865 | (eval $ac_try) 2>&5 | |
33866 | ac_status=$? | |
33867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33868 | (exit $ac_status); }; } && | |
33869 | { ac_try='test -s conftest.$ac_objext' | |
33870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33871 | (eval $ac_try) 2>&5 | |
33872 | ac_status=$? | |
33873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33874 | (exit $ac_status); }; }; then | |
33875 | wx_cv_func_broken_snprintf_decl=no | |
33876 | else | |
33877 | echo "$as_me: failed program was:" >&5 | |
33878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33879 | ||
33880 | wx_cv_func_broken_snprintf_decl=yes | |
33881 | ||
33882 | fi | |
33883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33884 | ||
33885 | ||
33886 | fi | |
33887 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
33888 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
33889 | ||
33890 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
33891 | cat >>confdefs.h <<\_ACEOF | |
33892 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
33893 | _ACEOF | |
33894 | ||
33895 | fi | |
4a767dd5 VZ |
33896 | fi |
33897 | fi | |
33898 | ||
a848cd7e SC |
33899 | if test "$wxUSE_UNICODE" = yes; then |
33900 | ||
33901 | ||
33902 | ||
fbe47c7b VS |
33903 | |
33904 | ||
33905 | ||
33906 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
33907 | do |
33908 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33909 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33910 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33911 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33913 | else | |
33914 | cat >conftest.$ac_ext <<_ACEOF | |
33915 | /* confdefs.h. */ | |
33916 | _ACEOF | |
33917 | cat confdefs.h >>conftest.$ac_ext | |
33918 | cat >>conftest.$ac_ext <<_ACEOF | |
33919 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33920 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33921 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33922 | #define $ac_func innocuous_$ac_func | |
33923 | ||
a848cd7e SC |
33924 | /* System header to define __stub macros and hopefully few prototypes, |
33925 | which can conflict with char $ac_func (); below. | |
33926 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33927 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33928 | |
a848cd7e SC |
33929 | #ifdef __STDC__ |
33930 | # include <limits.h> | |
33931 | #else | |
33932 | # include <assert.h> | |
33933 | #endif | |
ac1cb8d3 VS |
33934 | |
33935 | #undef $ac_func | |
33936 | ||
a848cd7e SC |
33937 | /* Override any gcc2 internal prototype to avoid an error. */ |
33938 | #ifdef __cplusplus | |
33939 | extern "C" | |
33940 | { | |
33941 | #endif | |
33942 | /* We use char because int might match the return type of a gcc2 | |
33943 | builtin and then its argument prototype would still apply. */ | |
33944 | char $ac_func (); | |
33945 | /* The GNU C library defines this for functions which it implements | |
33946 | to always fail with ENOSYS. Some functions are actually named | |
33947 | something starting with __ and the normal name is an alias. */ | |
33948 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33949 | choke me | |
33950 | #else | |
33951 | char (*f) () = $ac_func; | |
33952 | #endif | |
33953 | #ifdef __cplusplus | |
33954 | } | |
33955 | #endif | |
33956 | ||
33957 | int | |
33958 | main () | |
33959 | { | |
33960 | return f != $ac_func; | |
33961 | ; | |
33962 | return 0; | |
33963 | } | |
33964 | _ACEOF | |
33965 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33967 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33968 | ac_status=$? |
ac1cb8d3 VS |
33969 | grep -v '^ *+' conftest.er1 >conftest.err |
33970 | rm -f conftest.er1 | |
33971 | cat conftest.err >&5 | |
a848cd7e SC |
33972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33973 | (exit $ac_status); } && | |
5d7b7554 | 33974 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33976 | (eval $ac_try) 2>&5 | |
33977 | ac_status=$? | |
33978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33979 | (exit $ac_status); }; } && | |
33980 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33982 | (eval $ac_try) 2>&5 | |
33983 | ac_status=$? | |
33984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33985 | (exit $ac_status); }; }; then | |
33986 | eval "$as_ac_var=yes" | |
33987 | else | |
33988 | echo "$as_me: failed program was:" >&5 | |
33989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33990 | ||
33991 | eval "$as_ac_var=no" | |
33992 | fi | |
ac1cb8d3 VS |
33993 | rm -f conftest.err conftest.$ac_objext \ |
33994 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33995 | fi |
33996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33997 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33998 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33999 | cat >>confdefs.h <<_ACEOF | |
34000 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34001 | _ACEOF | |
34002 | ||
34003 | fi | |
34004 | done | |
34005 | ||
34006 | ||
34007 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
34008 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
34009 | cat >conftest.$ac_ext <<_ACEOF | |
34010 | /* confdefs.h. */ | |
34011 | _ACEOF | |
34012 | cat confdefs.h >>conftest.$ac_ext | |
34013 | cat >>conftest.$ac_ext <<_ACEOF | |
34014 | /* end confdefs.h. */ | |
34015 | #include <wchar.h> | |
34016 | int | |
34017 | main () | |
34018 | { | |
34019 | &_vsnwprintf; | |
34020 | ; | |
34021 | return 0; | |
34022 | } | |
34023 | _ACEOF | |
34024 | rm -f conftest.$ac_objext | |
34025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34026 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34027 | ac_status=$? |
ac1cb8d3 VS |
34028 | grep -v '^ *+' conftest.er1 >conftest.err |
34029 | rm -f conftest.er1 | |
34030 | cat conftest.err >&5 | |
a848cd7e SC |
34031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34032 | (exit $ac_status); } && | |
5d7b7554 | 34033 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34035 | (eval $ac_try) 2>&5 | |
34036 | ac_status=$? | |
34037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34038 | (exit $ac_status); }; } && | |
34039 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34041 | (eval $ac_try) 2>&5 | |
34042 | ac_status=$? | |
34043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34044 | (exit $ac_status); }; }; then | |
34045 | echo "$as_me:$LINENO: result: yes" >&5 | |
34046 | echo "${ECHO_T}yes" >&6 | |
34047 | cat >>confdefs.h <<\_ACEOF | |
34048 | #define HAVE__VSNWPRINTF 1 | |
34049 | _ACEOF | |
34050 | ||
34051 | else | |
34052 | echo "$as_me: failed program was:" >&5 | |
34053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34054 | ||
34055 | echo "$as_me:$LINENO: result: no" >&5 | |
34056 | echo "${ECHO_T}no" >&6 | |
34057 | fi | |
ac1cb8d3 | 34058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
34059 | fi |
34060 | ||
6ebeb4c7 VZ |
34061 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
34062 | ||
34063 | for ac_func in fnmatch | |
34064 | do | |
34065 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34066 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34067 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34068 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34070 | else | |
34071 | cat >conftest.$ac_ext <<_ACEOF | |
34072 | /* confdefs.h. */ | |
34073 | _ACEOF | |
34074 | cat confdefs.h >>conftest.$ac_ext | |
34075 | cat >>conftest.$ac_ext <<_ACEOF | |
34076 | /* end confdefs.h. */ | |
34077 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34078 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34079 | #define $ac_func innocuous_$ac_func | |
34080 | ||
34081 | /* System header to define __stub macros and hopefully few prototypes, | |
34082 | which can conflict with char $ac_func (); below. | |
34083 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34084 | <limits.h> exists even on freestanding compilers. */ | |
34085 | ||
34086 | #ifdef __STDC__ | |
34087 | # include <limits.h> | |
34088 | #else | |
34089 | # include <assert.h> | |
34090 | #endif | |
34091 | ||
34092 | #undef $ac_func | |
34093 | ||
34094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34095 | #ifdef __cplusplus | |
34096 | extern "C" | |
34097 | { | |
34098 | #endif | |
34099 | /* We use char because int might match the return type of a gcc2 | |
34100 | builtin and then its argument prototype would still apply. */ | |
34101 | char $ac_func (); | |
34102 | /* The GNU C library defines this for functions which it implements | |
34103 | to always fail with ENOSYS. Some functions are actually named | |
34104 | something starting with __ and the normal name is an alias. */ | |
34105 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34106 | choke me | |
34107 | #else | |
34108 | char (*f) () = $ac_func; | |
34109 | #endif | |
34110 | #ifdef __cplusplus | |
34111 | } | |
34112 | #endif | |
34113 | ||
34114 | int | |
34115 | main () | |
34116 | { | |
34117 | return f != $ac_func; | |
34118 | ; | |
34119 | return 0; | |
34120 | } | |
34121 | _ACEOF | |
34122 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34124 | (eval $ac_link) 2>conftest.er1 | |
34125 | ac_status=$? | |
34126 | grep -v '^ *+' conftest.er1 >conftest.err | |
34127 | rm -f conftest.er1 | |
34128 | cat conftest.err >&5 | |
34129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34130 | (exit $ac_status); } && | |
5d7b7554 | 34131 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
34132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34133 | (eval $ac_try) 2>&5 | |
34134 | ac_status=$? | |
34135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34136 | (exit $ac_status); }; } && | |
34137 | { ac_try='test -s conftest$ac_exeext' | |
34138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34139 | (eval $ac_try) 2>&5 | |
34140 | ac_status=$? | |
34141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34142 | (exit $ac_status); }; }; then | |
34143 | eval "$as_ac_var=yes" | |
34144 | else | |
34145 | echo "$as_me: failed program was:" >&5 | |
34146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34147 | ||
34148 | eval "$as_ac_var=no" | |
34149 | fi | |
34150 | rm -f conftest.err conftest.$ac_objext \ | |
34151 | conftest$ac_exeext conftest.$ac_ext | |
34152 | fi | |
34153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34154 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34155 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34156 | cat >>confdefs.h <<_ACEOF | |
34157 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34158 | _ACEOF | |
34159 | ||
34160 | fi | |
34161 | done | |
34162 | ||
34163 | fi | |
34164 | ||
34165 | if test "$wxUSE_FILE" = "yes"; then | |
34166 | ||
34167 | for ac_func in fsync | |
34168 | do | |
34169 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34170 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34171 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34172 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34174 | else | |
34175 | cat >conftest.$ac_ext <<_ACEOF | |
34176 | /* confdefs.h. */ | |
34177 | _ACEOF | |
34178 | cat confdefs.h >>conftest.$ac_ext | |
34179 | cat >>conftest.$ac_ext <<_ACEOF | |
34180 | /* end confdefs.h. */ | |
34181 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34182 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34183 | #define $ac_func innocuous_$ac_func | |
34184 | ||
34185 | /* System header to define __stub macros and hopefully few prototypes, | |
34186 | which can conflict with char $ac_func (); below. | |
34187 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34188 | <limits.h> exists even on freestanding compilers. */ | |
34189 | ||
34190 | #ifdef __STDC__ | |
34191 | # include <limits.h> | |
34192 | #else | |
34193 | # include <assert.h> | |
34194 | #endif | |
34195 | ||
34196 | #undef $ac_func | |
34197 | ||
34198 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34199 | #ifdef __cplusplus | |
34200 | extern "C" | |
34201 | { | |
34202 | #endif | |
34203 | /* We use char because int might match the return type of a gcc2 | |
34204 | builtin and then its argument prototype would still apply. */ | |
34205 | char $ac_func (); | |
34206 | /* The GNU C library defines this for functions which it implements | |
34207 | to always fail with ENOSYS. Some functions are actually named | |
34208 | something starting with __ and the normal name is an alias. */ | |
34209 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34210 | choke me | |
34211 | #else | |
34212 | char (*f) () = $ac_func; | |
34213 | #endif | |
34214 | #ifdef __cplusplus | |
34215 | } | |
34216 | #endif | |
34217 | ||
34218 | int | |
34219 | main () | |
34220 | { | |
34221 | return f != $ac_func; | |
34222 | ; | |
34223 | return 0; | |
34224 | } | |
34225 | _ACEOF | |
34226 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34228 | (eval $ac_link) 2>conftest.er1 | |
34229 | ac_status=$? | |
34230 | grep -v '^ *+' conftest.er1 >conftest.err | |
34231 | rm -f conftest.er1 | |
34232 | cat conftest.err >&5 | |
34233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34234 | (exit $ac_status); } && | |
5d7b7554 | 34235 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
34236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34237 | (eval $ac_try) 2>&5 | |
34238 | ac_status=$? | |
34239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34240 | (exit $ac_status); }; } && | |
34241 | { ac_try='test -s conftest$ac_exeext' | |
34242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34243 | (eval $ac_try) 2>&5 | |
34244 | ac_status=$? | |
34245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34246 | (exit $ac_status); }; }; then | |
34247 | eval "$as_ac_var=yes" | |
34248 | else | |
34249 | echo "$as_me: failed program was:" >&5 | |
34250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34251 | ||
34252 | eval "$as_ac_var=no" | |
34253 | fi | |
34254 | rm -f conftest.err conftest.$ac_objext \ | |
34255 | conftest$ac_exeext conftest.$ac_ext | |
34256 | fi | |
34257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34258 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34259 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34260 | cat >>confdefs.h <<_ACEOF | |
34261 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34262 | _ACEOF | |
34263 | ||
34264 | fi | |
34265 | done | |
34266 | ||
34267 | fi | |
a848cd7e SC |
34268 | |
34269 | ||
34270 | if test "$TOOLKIT" != "MSW"; then | |
34271 | ||
34272 | ||
a848cd7e SC |
34273 | |
34274 | ||
34275 | ||
34276 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
34277 | if test "${with_libiconv_prefix+set}" = set; then | |
34278 | withval="$with_libiconv_prefix" | |
34279 | ||
34280 | for dir in `echo "$withval" | tr : ' '`; do | |
34281 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
34282 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
34283 | done | |
34284 | ||
34285 | fi; | |
34286 | ||
34287 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
34288 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
34289 | if test "${am_cv_func_iconv+set}" = set; then | |
34290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34291 | else | |
34292 | ||
34293 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
34294 | am_cv_lib_iconv=no | |
34295 | cat >conftest.$ac_ext <<_ACEOF | |
34296 | /* confdefs.h. */ | |
34297 | _ACEOF | |
34298 | cat confdefs.h >>conftest.$ac_ext | |
34299 | cat >>conftest.$ac_ext <<_ACEOF | |
34300 | /* end confdefs.h. */ | |
34301 | #include <stdlib.h> | |
34302 | #include <iconv.h> | |
34303 | int | |
34304 | main () | |
34305 | { | |
34306 | iconv_t cd = iconv_open("",""); | |
34307 | iconv(cd,NULL,NULL,NULL,NULL); | |
34308 | iconv_close(cd); | |
34309 | ; | |
34310 | return 0; | |
34311 | } | |
34312 | _ACEOF | |
34313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34315 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34316 | ac_status=$? |
ac1cb8d3 VS |
34317 | grep -v '^ *+' conftest.er1 >conftest.err |
34318 | rm -f conftest.er1 | |
34319 | cat conftest.err >&5 | |
a848cd7e SC |
34320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34321 | (exit $ac_status); } && | |
5d7b7554 | 34322 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34324 | (eval $ac_try) 2>&5 | |
34325 | ac_status=$? | |
34326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34327 | (exit $ac_status); }; } && | |
34328 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34330 | (eval $ac_try) 2>&5 | |
34331 | ac_status=$? | |
34332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34333 | (exit $ac_status); }; }; then | |
34334 | am_cv_func_iconv=yes | |
34335 | else | |
34336 | echo "$as_me: failed program was:" >&5 | |
34337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34338 | ||
34339 | fi | |
ac1cb8d3 VS |
34340 | rm -f conftest.err conftest.$ac_objext \ |
34341 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34342 | if test "$am_cv_func_iconv" != yes; then |
34343 | am_save_LIBS="$LIBS" | |
34344 | LIBS="$LIBS -liconv" | |
34345 | cat >conftest.$ac_ext <<_ACEOF | |
34346 | /* confdefs.h. */ | |
34347 | _ACEOF | |
34348 | cat confdefs.h >>conftest.$ac_ext | |
34349 | cat >>conftest.$ac_ext <<_ACEOF | |
34350 | /* end confdefs.h. */ | |
34351 | #include <stdlib.h> | |
34352 | #include <iconv.h> | |
34353 | int | |
34354 | main () | |
34355 | { | |
34356 | iconv_t cd = iconv_open("",""); | |
34357 | iconv(cd,NULL,NULL,NULL,NULL); | |
34358 | iconv_close(cd); | |
34359 | ; | |
34360 | return 0; | |
34361 | } | |
34362 | _ACEOF | |
34363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34365 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34366 | ac_status=$? |
ac1cb8d3 VS |
34367 | grep -v '^ *+' conftest.er1 >conftest.err |
34368 | rm -f conftest.er1 | |
34369 | cat conftest.err >&5 | |
a848cd7e SC |
34370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34371 | (exit $ac_status); } && | |
5d7b7554 | 34372 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34374 | (eval $ac_try) 2>&5 | |
34375 | ac_status=$? | |
34376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34377 | (exit $ac_status); }; } && | |
34378 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34380 | (eval $ac_try) 2>&5 | |
34381 | ac_status=$? | |
34382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34383 | (exit $ac_status); }; }; then | |
34384 | am_cv_lib_iconv=yes | |
34385 | am_cv_func_iconv=yes | |
34386 | else | |
34387 | echo "$as_me: failed program was:" >&5 | |
34388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34389 | ||
34390 | fi | |
ac1cb8d3 VS |
34391 | rm -f conftest.err conftest.$ac_objext \ |
34392 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34393 | LIBS="$am_save_LIBS" |
34394 | fi | |
34395 | ||
34396 | fi | |
34397 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
34398 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
34399 | if test "$am_cv_func_iconv" = yes; then | |
34400 | ||
34401 | cat >>confdefs.h <<\_ACEOF | |
34402 | #define HAVE_ICONV 1 | |
34403 | _ACEOF | |
34404 | ||
34405 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
34406 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
34407 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
34408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34409 | else | |
34410 | cat >conftest.$ac_ext <<_ACEOF | |
34411 | /* confdefs.h. */ | |
34412 | _ACEOF | |
34413 | cat confdefs.h >>conftest.$ac_ext | |
34414 | cat >>conftest.$ac_ext <<_ACEOF | |
34415 | /* end confdefs.h. */ | |
34416 | ||
34417 | #include <stdlib.h> | |
34418 | #include <iconv.h> | |
34419 | extern | |
34420 | #ifdef __cplusplus | |
34421 | "C" | |
34422 | #endif | |
34423 | #if defined(__STDC__) || defined(__cplusplus) | |
34424 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
34425 | #else | |
34426 | size_t iconv(); | |
34427 | #endif | |
34428 | ||
34429 | int | |
34430 | main () | |
34431 | { | |
34432 | ||
34433 | ; | |
34434 | return 0; | |
34435 | } | |
34436 | _ACEOF | |
34437 | rm -f conftest.$ac_objext | |
34438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34439 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34440 | ac_status=$? |
ac1cb8d3 VS |
34441 | grep -v '^ *+' conftest.er1 >conftest.err |
34442 | rm -f conftest.er1 | |
34443 | cat conftest.err >&5 | |
a848cd7e SC |
34444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34445 | (exit $ac_status); } && | |
5d7b7554 | 34446 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34448 | (eval $ac_try) 2>&5 | |
34449 | ac_status=$? | |
34450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34451 | (exit $ac_status); }; } && | |
34452 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34454 | (eval $ac_try) 2>&5 | |
34455 | ac_status=$? | |
34456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34457 | (exit $ac_status); }; }; then | |
34458 | wx_cv_func_iconv_const="no" | |
34459 | else | |
34460 | echo "$as_me: failed program was:" >&5 | |
34461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34462 | ||
34463 | wx_cv_func_iconv_const="yes" | |
34464 | ||
34465 | fi | |
ac1cb8d3 | 34466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34467 | |
34468 | fi | |
34469 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
34470 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
34471 | ||
34472 | iconv_const= | |
34473 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
34474 | iconv_const="const" | |
34475 | fi | |
34476 | ||
34477 | ||
34478 | cat >>confdefs.h <<_ACEOF | |
34479 | #define ICONV_CONST $iconv_const | |
34480 | _ACEOF | |
34481 | ||
34482 | fi | |
34483 | LIBICONV= | |
34484 | if test "$am_cv_lib_iconv" = yes; then | |
34485 | LIBICONV="-liconv" | |
34486 | fi | |
34487 | ||
34488 | ||
34489 | LIBS="$LIBICONV $LIBS" | |
a848cd7e SC |
34490 | |
34491 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
34492 | ||
34493 | for ac_func in sigaction | |
34494 | do | |
34495 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34496 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34497 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34498 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34500 | else | |
34501 | cat >conftest.$ac_ext <<_ACEOF | |
34502 | /* confdefs.h. */ | |
34503 | _ACEOF | |
34504 | cat confdefs.h >>conftest.$ac_ext | |
34505 | cat >>conftest.$ac_ext <<_ACEOF | |
34506 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34507 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34508 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34509 | #define $ac_func innocuous_$ac_func | |
34510 | ||
a848cd7e SC |
34511 | /* System header to define __stub macros and hopefully few prototypes, |
34512 | which can conflict with char $ac_func (); below. | |
34513 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34514 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34515 | |
a848cd7e SC |
34516 | #ifdef __STDC__ |
34517 | # include <limits.h> | |
34518 | #else | |
34519 | # include <assert.h> | |
34520 | #endif | |
ac1cb8d3 VS |
34521 | |
34522 | #undef $ac_func | |
34523 | ||
a848cd7e SC |
34524 | /* Override any gcc2 internal prototype to avoid an error. */ |
34525 | #ifdef __cplusplus | |
34526 | extern "C" | |
34527 | { | |
34528 | #endif | |
34529 | /* We use char because int might match the return type of a gcc2 | |
34530 | builtin and then its argument prototype would still apply. */ | |
34531 | char $ac_func (); | |
34532 | /* The GNU C library defines this for functions which it implements | |
34533 | to always fail with ENOSYS. Some functions are actually named | |
34534 | something starting with __ and the normal name is an alias. */ | |
34535 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34536 | choke me | |
34537 | #else | |
34538 | char (*f) () = $ac_func; | |
34539 | #endif | |
34540 | #ifdef __cplusplus | |
34541 | } | |
34542 | #endif | |
34543 | ||
34544 | int | |
34545 | main () | |
34546 | { | |
34547 | return f != $ac_func; | |
34548 | ; | |
34549 | return 0; | |
34550 | } | |
34551 | _ACEOF | |
34552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34554 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34555 | ac_status=$? |
ac1cb8d3 VS |
34556 | grep -v '^ *+' conftest.er1 >conftest.err |
34557 | rm -f conftest.er1 | |
34558 | cat conftest.err >&5 | |
a848cd7e SC |
34559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34560 | (exit $ac_status); } && | |
5d7b7554 | 34561 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34563 | (eval $ac_try) 2>&5 | |
34564 | ac_status=$? | |
34565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34566 | (exit $ac_status); }; } && | |
34567 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34569 | (eval $ac_try) 2>&5 | |
34570 | ac_status=$? | |
34571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34572 | (exit $ac_status); }; }; then | |
34573 | eval "$as_ac_var=yes" | |
34574 | else | |
34575 | echo "$as_me: failed program was:" >&5 | |
34576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34577 | ||
34578 | eval "$as_ac_var=no" | |
34579 | fi | |
ac1cb8d3 VS |
34580 | rm -f conftest.err conftest.$ac_objext \ |
34581 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34582 | fi |
34583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34584 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34585 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34586 | cat >>confdefs.h <<_ACEOF | |
34587 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34588 | _ACEOF | |
34589 | ||
34590 | fi | |
34591 | done | |
34592 | ||
34593 | ||
34594 | if test "$ac_cv_func_sigaction" = "no"; then | |
34595 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
34596 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
34597 | wxUSE_ON_FATAL_EXCEPTION=no | |
34598 | fi | |
34599 | ||
34600 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a848cd7e SC |
34601 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
34602 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
34603 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
34604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34605 | else | |
34606 | ||
34607 | cat >conftest.$ac_ext <<_ACEOF | |
34608 | /* confdefs.h. */ | |
34609 | _ACEOF | |
34610 | cat confdefs.h >>conftest.$ac_ext | |
34611 | cat >>conftest.$ac_ext <<_ACEOF | |
34612 | /* end confdefs.h. */ | |
34613 | #include <signal.h> | |
34614 | int | |
34615 | main () | |
34616 | { | |
34617 | ||
34618 | extern void testSigHandler(int); | |
34619 | ||
34620 | struct sigaction sa; | |
34621 | sa.sa_handler = testSigHandler; | |
34622 | ||
34623 | ; | |
34624 | return 0; | |
34625 | } | |
34626 | _ACEOF | |
34627 | rm -f conftest.$ac_objext | |
34628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34629 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34630 | ac_status=$? |
ac1cb8d3 VS |
34631 | grep -v '^ *+' conftest.er1 >conftest.err |
34632 | rm -f conftest.er1 | |
34633 | cat conftest.err >&5 | |
a848cd7e SC |
34634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34635 | (exit $ac_status); } && | |
5d7b7554 | 34636 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34638 | (eval $ac_try) 2>&5 | |
34639 | ac_status=$? | |
34640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34641 | (exit $ac_status); }; } && | |
34642 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34644 | (eval $ac_try) 2>&5 | |
34645 | ac_status=$? | |
34646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34647 | (exit $ac_status); }; }; then | |
34648 | ||
34649 | wx_cv_type_sa_handler=int | |
34650 | ||
34651 | else | |
34652 | echo "$as_me: failed program was:" >&5 | |
34653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34654 | ||
34655 | ||
34656 | wx_cv_type_sa_handler=void | |
34657 | ||
34658 | fi | |
ac1cb8d3 | 34659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34660 | |
34661 | fi | |
34662 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
34663 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
34664 | ||
a848cd7e SC |
34665 | cat >>confdefs.h <<_ACEOF |
34666 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
34667 | _ACEOF | |
34668 | ||
34669 | fi | |
34670 | fi | |
34671 | ||
eaff0f0d | 34672 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
eaff0f0d VZ |
34673 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 |
34674 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
34675 | if test "${wx_cv_func_backtrace+set}" = set; then | |
34676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34677 | else | |
34678 | ||
34679 | cat >conftest.$ac_ext <<_ACEOF | |
34680 | /* confdefs.h. */ | |
34681 | _ACEOF | |
34682 | cat confdefs.h >>conftest.$ac_ext | |
34683 | cat >>conftest.$ac_ext <<_ACEOF | |
34684 | /* end confdefs.h. */ | |
34685 | #include <execinfo.h> | |
34686 | int | |
34687 | main () | |
34688 | { | |
34689 | ||
34690 | void *trace[1]; | |
34691 | char **messages; | |
34692 | ||
34693 | backtrace(trace, 1); | |
34694 | messages = backtrace_symbols(trace, 1); | |
34695 | ||
34696 | ; | |
34697 | return 0; | |
34698 | } | |
34699 | _ACEOF | |
34700 | rm -f conftest.$ac_objext | |
34701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34702 | (eval $ac_compile) 2>conftest.er1 | |
34703 | ac_status=$? | |
34704 | grep -v '^ *+' conftest.er1 >conftest.err | |
34705 | rm -f conftest.er1 | |
34706 | cat conftest.err >&5 | |
34707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34708 | (exit $ac_status); } && | |
5d7b7554 | 34709 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
34710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34711 | (eval $ac_try) 2>&5 | |
34712 | ac_status=$? | |
34713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34714 | (exit $ac_status); }; } && | |
34715 | { ac_try='test -s conftest.$ac_objext' | |
34716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34717 | (eval $ac_try) 2>&5 | |
34718 | ac_status=$? | |
34719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34720 | (exit $ac_status); }; }; then | |
34721 | wx_cv_func_backtrace=yes | |
34722 | else | |
34723 | echo "$as_me: failed program was:" >&5 | |
34724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34725 | ||
34726 | wx_cv_func_backtrace=no | |
34727 | ||
34728 | fi | |
34729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34730 | ||
34731 | ||
34732 | fi | |
34733 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
34734 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
34735 | ||
34736 | ||
34737 | if test "$wx_cv_func_backtrace" = "no"; then | |
34738 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
34739 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
34740 | wxUSE_STACKWALKER=no | |
34741 | else | |
34742 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
34743 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
34744 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
34745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34746 | else | |
34747 | ||
34748 | cat >conftest.$ac_ext <<_ACEOF | |
34749 | /* confdefs.h. */ | |
34750 | _ACEOF | |
34751 | cat confdefs.h >>conftest.$ac_ext | |
34752 | cat >>conftest.$ac_ext <<_ACEOF | |
34753 | /* end confdefs.h. */ | |
34754 | #include <cxxabi.h> | |
34755 | int | |
34756 | main () | |
34757 | { | |
34758 | ||
34759 | int rc; | |
34760 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
34761 | ||
34762 | ; | |
34763 | return 0; | |
34764 | } | |
34765 | _ACEOF | |
dfe0c803 JS |
34766 | rm -f conftest.$ac_objext conftest$ac_exeext |
34767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34768 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
34769 | ac_status=$? |
34770 | grep -v '^ *+' conftest.er1 >conftest.err | |
34771 | rm -f conftest.er1 | |
34772 | cat conftest.err >&5 | |
34773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34774 | (exit $ac_status); } && | |
5d7b7554 | 34775 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
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); }; } && | |
dfe0c803 | 34781 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
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_cxa_demangle=yes | |
34788 | else | |
34789 | echo "$as_me: failed program was:" >&5 | |
34790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34791 | ||
34792 | wx_cv_func_cxa_demangle=no | |
34793 | ||
34794 | fi | |
dfe0c803 JS |
34795 | rm -f conftest.err conftest.$ac_objext \ |
34796 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
34797 | |
34798 | ||
34799 | fi | |
34800 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
34801 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
34802 | ||
34803 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
34804 | cat >>confdefs.h <<\_ACEOF | |
34805 | #define HAVE_CXA_DEMANGLE 1 | |
34806 | _ACEOF | |
34807 | ||
34808 | fi | |
34809 | fi | |
eaff0f0d VZ |
34810 | fi |
34811 | ||
898beab1 DE |
34812 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
34813 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
34814 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
34815 | wxUSE_STACKWALKER=no | |
34816 | fi | |
34817 | ||
34818 | ||
a848cd7e SC |
34819 | |
34820 | ||
34821 | for ac_func in mkstemp mktemp | |
34822 | do | |
34823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34824 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34826 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34828 | else | |
34829 | cat >conftest.$ac_ext <<_ACEOF | |
34830 | /* confdefs.h. */ | |
34831 | _ACEOF | |
34832 | cat confdefs.h >>conftest.$ac_ext | |
34833 | cat >>conftest.$ac_ext <<_ACEOF | |
34834 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34837 | #define $ac_func innocuous_$ac_func | |
34838 | ||
a848cd7e SC |
34839 | /* System header to define __stub macros and hopefully few prototypes, |
34840 | which can conflict with char $ac_func (); below. | |
34841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34842 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34843 | |
a848cd7e SC |
34844 | #ifdef __STDC__ |
34845 | # include <limits.h> | |
34846 | #else | |
34847 | # include <assert.h> | |
34848 | #endif | |
ac1cb8d3 VS |
34849 | |
34850 | #undef $ac_func | |
34851 | ||
a848cd7e SC |
34852 | /* Override any gcc2 internal prototype to avoid an error. */ |
34853 | #ifdef __cplusplus | |
34854 | extern "C" | |
34855 | { | |
34856 | #endif | |
34857 | /* We use char because int might match the return type of a gcc2 | |
34858 | builtin and then its argument prototype would still apply. */ | |
34859 | char $ac_func (); | |
34860 | /* The GNU C library defines this for functions which it implements | |
34861 | to always fail with ENOSYS. Some functions are actually named | |
34862 | something starting with __ and the normal name is an alias. */ | |
34863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34864 | choke me | |
34865 | #else | |
34866 | char (*f) () = $ac_func; | |
34867 | #endif | |
34868 | #ifdef __cplusplus | |
34869 | } | |
34870 | #endif | |
34871 | ||
34872 | int | |
34873 | main () | |
34874 | { | |
34875 | return f != $ac_func; | |
34876 | ; | |
34877 | return 0; | |
34878 | } | |
34879 | _ACEOF | |
34880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34882 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34883 | ac_status=$? |
ac1cb8d3 VS |
34884 | grep -v '^ *+' conftest.er1 >conftest.err |
34885 | rm -f conftest.er1 | |
34886 | cat conftest.err >&5 | |
a848cd7e SC |
34887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34888 | (exit $ac_status); } && | |
5d7b7554 | 34889 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34891 | (eval $ac_try) 2>&5 | |
34892 | ac_status=$? | |
34893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34894 | (exit $ac_status); }; } && | |
34895 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34897 | (eval $ac_try) 2>&5 | |
34898 | ac_status=$? | |
34899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34900 | (exit $ac_status); }; }; then | |
34901 | eval "$as_ac_var=yes" | |
34902 | else | |
34903 | echo "$as_me: failed program was:" >&5 | |
34904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34905 | ||
34906 | eval "$as_ac_var=no" | |
34907 | fi | |
ac1cb8d3 VS |
34908 | rm -f conftest.err conftest.$ac_objext \ |
34909 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34910 | fi |
34911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34912 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34913 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34914 | cat >>confdefs.h <<_ACEOF | |
34915 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34916 | _ACEOF | |
34917 | break | |
34918 | fi | |
34919 | done | |
34920 | ||
34921 | ||
34922 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
34923 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
34924 | if test "${wx_cv_func_statfs+set}" = set; then | |
34925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34926 | else | |
34927 | cat >conftest.$ac_ext <<_ACEOF | |
34928 | /* confdefs.h. */ | |
34929 | _ACEOF | |
34930 | cat confdefs.h >>conftest.$ac_ext | |
34931 | cat >>conftest.$ac_ext <<_ACEOF | |
34932 | /* end confdefs.h. */ | |
34933 | ||
34934 | #if defined(__BSD__) | |
84ae7ca4 VZ |
34935 | #include <sys/param.h> |
34936 | #include <sys/mount.h> | |
a848cd7e | 34937 | #else |
84ae7ca4 | 34938 | #include <sys/vfs.h> |
a848cd7e SC |
34939 | #endif |
34940 | ||
34941 | int | |
34942 | main () | |
34943 | { | |
34944 | ||
34945 | long l; | |
34946 | struct statfs fs; | |
34947 | statfs("/", &fs); | |
34948 | l = fs.f_bsize; | |
34949 | l += fs.f_blocks; | |
34950 | l += fs.f_bavail; | |
34951 | ||
34952 | ; | |
34953 | return 0; | |
34954 | } | |
34955 | _ACEOF | |
34956 | rm -f conftest.$ac_objext | |
34957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34958 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34959 | ac_status=$? |
ac1cb8d3 VS |
34960 | grep -v '^ *+' conftest.er1 >conftest.err |
34961 | rm -f conftest.er1 | |
34962 | cat conftest.err >&5 | |
a848cd7e SC |
34963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34964 | (exit $ac_status); } && | |
5d7b7554 | 34965 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34967 | (eval $ac_try) 2>&5 | |
34968 | ac_status=$? | |
34969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34970 | (exit $ac_status); }; } && | |
34971 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34973 | (eval $ac_try) 2>&5 | |
34974 | ac_status=$? | |
34975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34976 | (exit $ac_status); }; }; then | |
84ae7ca4 | 34977 | wx_cv_func_statfs=yes |
a848cd7e SC |
34978 | else |
34979 | echo "$as_me: failed program was:" >&5 | |
34980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34981 | ||
84ae7ca4 | 34982 | wx_cv_func_statfs=no |
a848cd7e SC |
34983 | |
34984 | fi | |
ac1cb8d3 | 34985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34986 | |
34987 | fi | |
34988 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
34989 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
34990 | ||
34991 | if test "$wx_cv_func_statfs" = "yes"; then | |
5d7b7554 | 34992 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 |
84ae7ca4 VZ |
34993 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 |
34994 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
34995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34996 | else | |
0683aca6 VZ |
34997 | cat >conftest.$ac_ext <<_ACEOF |
34998 | /* confdefs.h. */ | |
34999 | _ACEOF | |
35000 | cat confdefs.h >>conftest.$ac_ext | |
35001 | cat >>conftest.$ac_ext <<_ACEOF | |
35002 | /* end confdefs.h. */ | |
84ae7ca4 | 35003 | |
0683aca6 VZ |
35004 | #if defined(__BSD__) |
35005 | #include <sys/param.h> | |
35006 | #include <sys/mount.h> | |
35007 | #else | |
35008 | #include <sys/vfs.h> | |
35009 | #endif | |
35010 | ||
35011 | int | |
35012 | main () | |
35013 | { | |
35014 | ||
35015 | struct statfs fs; | |
35016 | statfs("", &fs); | |
35017 | ||
35018 | ; | |
35019 | return 0; | |
35020 | } | |
35021 | _ACEOF | |
35022 | rm -f conftest.$ac_objext | |
35023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35024 | (eval $ac_compile) 2>conftest.er1 | |
35025 | ac_status=$? | |
35026 | grep -v '^ *+' conftest.er1 >conftest.err | |
35027 | rm -f conftest.er1 | |
35028 | cat conftest.err >&5 | |
35029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35030 | (exit $ac_status); } && | |
5d7b7554 | 35031 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0683aca6 VZ |
35032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35033 | (eval $ac_try) 2>&5 | |
35034 | ac_status=$? | |
35035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35036 | (exit $ac_status); }; } && | |
35037 | { ac_try='test -s conftest.$ac_objext' | |
35038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35039 | (eval $ac_try) 2>&5 | |
35040 | ac_status=$? | |
35041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35042 | (exit $ac_status); }; }; then | |
35043 | wx_cv_func_statfs_decl=yes | |
35044 | else | |
35045 | echo "$as_me: failed program was:" >&5 | |
35046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35047 | ||
35048 | wx_cv_func_statfs_decl=no | |
35049 | ||
35050 | fi | |
35051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
35052 | |
35053 | fi | |
35054 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
35055 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
84ae7ca4 VZ |
35056 | |
35057 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
35058 | cat >>confdefs.h <<\_ACEOF | |
35059 | #define HAVE_STATFS_DECL 1 | |
35060 | _ACEOF | |
35061 | ||
35062 | fi | |
35063 | ||
a848cd7e SC |
35064 | wx_cv_type_statvfs_t="struct statfs" |
35065 | cat >>confdefs.h <<\_ACEOF | |
35066 | #define HAVE_STATFS 1 | |
35067 | _ACEOF | |
35068 | ||
35069 | else | |
35070 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
35071 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
35072 | if test "${wx_cv_func_statvfs+set}" = set; then | |
35073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35074 | else | |
35075 | cat >conftest.$ac_ext <<_ACEOF | |
35076 | /* confdefs.h. */ | |
35077 | _ACEOF | |
35078 | cat confdefs.h >>conftest.$ac_ext | |
35079 | cat >>conftest.$ac_ext <<_ACEOF | |
35080 | /* end confdefs.h. */ | |
35081 | ||
35082 | #include <stddef.h> | |
35083 | #include <sys/statvfs.h> | |
35084 | ||
35085 | int | |
35086 | main () | |
35087 | { | |
35088 | ||
35089 | statvfs("/", NULL); | |
35090 | ||
35091 | ; | |
35092 | return 0; | |
35093 | } | |
35094 | _ACEOF | |
35095 | rm -f conftest.$ac_objext | |
35096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35097 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35098 | ac_status=$? |
ac1cb8d3 VS |
35099 | grep -v '^ *+' conftest.er1 >conftest.err |
35100 | rm -f conftest.er1 | |
35101 | cat conftest.err >&5 | |
a848cd7e SC |
35102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35103 | (exit $ac_status); } && | |
5d7b7554 | 35104 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35106 | (eval $ac_try) 2>&5 | |
35107 | ac_status=$? | |
35108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35109 | (exit $ac_status); }; } && | |
35110 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35112 | (eval $ac_try) 2>&5 | |
35113 | ac_status=$? | |
35114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35115 | (exit $ac_status); }; }; then | |
35116 | wx_cv_func_statvfs=yes | |
35117 | else | |
35118 | echo "$as_me: failed program was:" >&5 | |
35119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35120 | ||
35121 | wx_cv_func_statvfs=no | |
35122 | ||
35123 | fi | |
ac1cb8d3 | 35124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35125 | |
35126 | fi | |
35127 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
35128 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
35129 | ||
35130 | if test "$wx_cv_func_statvfs" = "yes"; then | |
5d7b7554 | 35131 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
a848cd7e SC |
35132 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 |
35133 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
35134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35135 | else | |
35136 | cat >conftest.$ac_ext <<_ACEOF | |
35137 | /* confdefs.h. */ | |
35138 | _ACEOF | |
35139 | cat confdefs.h >>conftest.$ac_ext | |
35140 | cat >>conftest.$ac_ext <<_ACEOF | |
35141 | /* end confdefs.h. */ | |
35142 | ||
35143 | #include <sys/statvfs.h> | |
35144 | ||
35145 | int | |
35146 | main () | |
35147 | { | |
35148 | ||
35149 | long l; | |
35150 | statvfs_t fs; | |
35151 | statvfs("/", &fs); | |
35152 | l = fs.f_bsize; | |
35153 | l += fs.f_blocks; | |
35154 | l += fs.f_bavail; | |
35155 | ||
35156 | ; | |
35157 | return 0; | |
35158 | } | |
35159 | _ACEOF | |
35160 | rm -f conftest.$ac_objext | |
35161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35162 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35163 | ac_status=$? |
ac1cb8d3 VS |
35164 | grep -v '^ *+' conftest.er1 >conftest.err |
35165 | rm -f conftest.er1 | |
35166 | cat conftest.err >&5 | |
a848cd7e SC |
35167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35168 | (exit $ac_status); } && | |
5d7b7554 | 35169 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35171 | (eval $ac_try) 2>&5 | |
35172 | ac_status=$? | |
35173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35174 | (exit $ac_status); }; } && | |
35175 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35177 | (eval $ac_try) 2>&5 | |
35178 | ac_status=$? | |
35179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35180 | (exit $ac_status); }; }; then | |
35181 | wx_cv_type_statvfs_t=statvfs_t | |
35182 | else | |
35183 | echo "$as_me: failed program was:" >&5 | |
35184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35185 | ||
35186 | ||
35187 | cat >conftest.$ac_ext <<_ACEOF | |
35188 | /* confdefs.h. */ | |
35189 | _ACEOF | |
35190 | cat confdefs.h >>conftest.$ac_ext | |
35191 | cat >>conftest.$ac_ext <<_ACEOF | |
35192 | /* end confdefs.h. */ | |
35193 | ||
35194 | #include <sys/statvfs.h> | |
35195 | ||
35196 | int | |
35197 | main () | |
35198 | { | |
35199 | ||
35200 | long l; | |
35201 | struct statvfs fs; | |
35202 | statvfs("/", &fs); | |
35203 | l = fs.f_bsize; | |
35204 | l += fs.f_blocks; | |
35205 | l += fs.f_bavail; | |
35206 | ||
35207 | ; | |
35208 | return 0; | |
35209 | } | |
35210 | _ACEOF | |
35211 | rm -f conftest.$ac_objext | |
35212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35213 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35214 | ac_status=$? |
ac1cb8d3 VS |
35215 | grep -v '^ *+' conftest.er1 >conftest.err |
35216 | rm -f conftest.er1 | |
35217 | cat conftest.err >&5 | |
a848cd7e SC |
35218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35219 | (exit $ac_status); } && | |
5d7b7554 | 35220 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35222 | (eval $ac_try) 2>&5 | |
35223 | ac_status=$? | |
35224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35225 | (exit $ac_status); }; } && | |
35226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35228 | (eval $ac_try) 2>&5 | |
35229 | ac_status=$? | |
35230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35231 | (exit $ac_status); }; }; then | |
35232 | wx_cv_type_statvfs_t="struct statvfs" | |
35233 | else | |
35234 | echo "$as_me: failed program was:" >&5 | |
35235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35236 | ||
35237 | wx_cv_type_statvfs_t="unknown" | |
35238 | ||
35239 | fi | |
ac1cb8d3 | 35240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35241 | |
35242 | ||
35243 | fi | |
ac1cb8d3 | 35244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35245 | |
35246 | fi | |
35247 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
35248 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
35249 | ||
a848cd7e SC |
35250 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
35251 | cat >>confdefs.h <<\_ACEOF | |
35252 | #define HAVE_STATVFS 1 | |
35253 | _ACEOF | |
35254 | ||
35255 | fi | |
35256 | else | |
35257 | wx_cv_type_statvfs_t="unknown" | |
35258 | fi | |
35259 | fi | |
35260 | ||
35261 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
35262 | cat >>confdefs.h <<_ACEOF | |
35263 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
35264 | _ACEOF | |
35265 | ||
35266 | else | |
35267 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
35268 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
35269 | fi | |
35270 | ||
35271 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
35272 | ||
35273 | ||
35274 | for ac_func in fcntl flock | |
35275 | do | |
35276 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35277 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35278 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35279 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35281 | else | |
35282 | cat >conftest.$ac_ext <<_ACEOF | |
35283 | /* confdefs.h. */ | |
35284 | _ACEOF | |
35285 | cat confdefs.h >>conftest.$ac_ext | |
35286 | cat >>conftest.$ac_ext <<_ACEOF | |
35287 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35288 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35289 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35290 | #define $ac_func innocuous_$ac_func | |
35291 | ||
a848cd7e SC |
35292 | /* System header to define __stub macros and hopefully few prototypes, |
35293 | which can conflict with char $ac_func (); below. | |
35294 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35295 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35296 | |
a848cd7e SC |
35297 | #ifdef __STDC__ |
35298 | # include <limits.h> | |
35299 | #else | |
35300 | # include <assert.h> | |
35301 | #endif | |
ac1cb8d3 VS |
35302 | |
35303 | #undef $ac_func | |
35304 | ||
a848cd7e SC |
35305 | /* Override any gcc2 internal prototype to avoid an error. */ |
35306 | #ifdef __cplusplus | |
35307 | extern "C" | |
35308 | { | |
35309 | #endif | |
35310 | /* We use char because int might match the return type of a gcc2 | |
35311 | builtin and then its argument prototype would still apply. */ | |
35312 | char $ac_func (); | |
35313 | /* The GNU C library defines this for functions which it implements | |
35314 | to always fail with ENOSYS. Some functions are actually named | |
35315 | something starting with __ and the normal name is an alias. */ | |
35316 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35317 | choke me | |
35318 | #else | |
35319 | char (*f) () = $ac_func; | |
35320 | #endif | |
35321 | #ifdef __cplusplus | |
35322 | } | |
35323 | #endif | |
35324 | ||
35325 | int | |
35326 | main () | |
35327 | { | |
35328 | return f != $ac_func; | |
35329 | ; | |
35330 | return 0; | |
35331 | } | |
35332 | _ACEOF | |
35333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35335 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35336 | ac_status=$? |
ac1cb8d3 VS |
35337 | grep -v '^ *+' conftest.er1 >conftest.err |
35338 | rm -f conftest.er1 | |
35339 | cat conftest.err >&5 | |
a848cd7e SC |
35340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35341 | (exit $ac_status); } && | |
5d7b7554 | 35342 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35344 | (eval $ac_try) 2>&5 | |
35345 | ac_status=$? | |
35346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35347 | (exit $ac_status); }; } && | |
35348 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35350 | (eval $ac_try) 2>&5 | |
35351 | ac_status=$? | |
35352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35353 | (exit $ac_status); }; }; then | |
35354 | eval "$as_ac_var=yes" | |
35355 | else | |
35356 | echo "$as_me: failed program was:" >&5 | |
35357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35358 | ||
35359 | eval "$as_ac_var=no" | |
35360 | fi | |
ac1cb8d3 VS |
35361 | rm -f conftest.err conftest.$ac_objext \ |
35362 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35363 | fi |
35364 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35365 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35366 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35367 | cat >>confdefs.h <<_ACEOF | |
35368 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35369 | _ACEOF | |
35370 | break | |
35371 | fi | |
35372 | done | |
35373 | ||
35374 | ||
35375 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
35376 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
35377 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
35378 | wxUSE_SNGLINST_CHECKER=no | |
35379 | fi | |
35380 | fi | |
35381 | ||
35382 | ||
35383 | for ac_func in timegm | |
35384 | do | |
35385 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35386 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35387 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35388 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35390 | else | |
35391 | cat >conftest.$ac_ext <<_ACEOF | |
35392 | /* confdefs.h. */ | |
35393 | _ACEOF | |
35394 | cat confdefs.h >>conftest.$ac_ext | |
35395 | cat >>conftest.$ac_ext <<_ACEOF | |
35396 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35397 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35398 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35399 | #define $ac_func innocuous_$ac_func | |
35400 | ||
a848cd7e SC |
35401 | /* System header to define __stub macros and hopefully few prototypes, |
35402 | which can conflict with char $ac_func (); below. | |
35403 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35404 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35405 | |
a848cd7e SC |
35406 | #ifdef __STDC__ |
35407 | # include <limits.h> | |
35408 | #else | |
35409 | # include <assert.h> | |
35410 | #endif | |
ac1cb8d3 VS |
35411 | |
35412 | #undef $ac_func | |
35413 | ||
a848cd7e SC |
35414 | /* Override any gcc2 internal prototype to avoid an error. */ |
35415 | #ifdef __cplusplus | |
35416 | extern "C" | |
35417 | { | |
35418 | #endif | |
35419 | /* We use char because int might match the return type of a gcc2 | |
35420 | builtin and then its argument prototype would still apply. */ | |
35421 | char $ac_func (); | |
35422 | /* The GNU C library defines this for functions which it implements | |
35423 | to always fail with ENOSYS. Some functions are actually named | |
35424 | something starting with __ and the normal name is an alias. */ | |
35425 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35426 | choke me | |
35427 | #else | |
35428 | char (*f) () = $ac_func; | |
35429 | #endif | |
35430 | #ifdef __cplusplus | |
35431 | } | |
35432 | #endif | |
35433 | ||
35434 | int | |
35435 | main () | |
35436 | { | |
35437 | return f != $ac_func; | |
35438 | ; | |
35439 | return 0; | |
35440 | } | |
35441 | _ACEOF | |
35442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35444 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35445 | ac_status=$? |
ac1cb8d3 VS |
35446 | grep -v '^ *+' conftest.er1 >conftest.err |
35447 | rm -f conftest.er1 | |
35448 | cat conftest.err >&5 | |
a848cd7e SC |
35449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35450 | (exit $ac_status); } && | |
5d7b7554 | 35451 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35453 | (eval $ac_try) 2>&5 | |
35454 | ac_status=$? | |
35455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35456 | (exit $ac_status); }; } && | |
35457 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35459 | (eval $ac_try) 2>&5 | |
35460 | ac_status=$? | |
35461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35462 | (exit $ac_status); }; }; then | |
35463 | eval "$as_ac_var=yes" | |
35464 | else | |
35465 | echo "$as_me: failed program was:" >&5 | |
35466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35467 | ||
35468 | eval "$as_ac_var=no" | |
35469 | fi | |
ac1cb8d3 VS |
35470 | rm -f conftest.err conftest.$ac_objext \ |
35471 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35472 | fi |
35473 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35474 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35475 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35476 | cat >>confdefs.h <<_ACEOF | |
35477 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35478 | _ACEOF | |
35479 | ||
35480 | fi | |
35481 | done | |
35482 | ||
35483 | ||
35484 | ||
35485 | ||
35486 | for ac_func in putenv setenv | |
35487 | do | |
35488 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35489 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35490 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35491 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35493 | else | |
35494 | cat >conftest.$ac_ext <<_ACEOF | |
35495 | /* confdefs.h. */ | |
35496 | _ACEOF | |
35497 | cat confdefs.h >>conftest.$ac_ext | |
35498 | cat >>conftest.$ac_ext <<_ACEOF | |
35499 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35500 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35501 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35502 | #define $ac_func innocuous_$ac_func | |
35503 | ||
a848cd7e SC |
35504 | /* System header to define __stub macros and hopefully few prototypes, |
35505 | which can conflict with char $ac_func (); below. | |
35506 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35507 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35508 | |
a848cd7e SC |
35509 | #ifdef __STDC__ |
35510 | # include <limits.h> | |
35511 | #else | |
35512 | # include <assert.h> | |
35513 | #endif | |
ac1cb8d3 VS |
35514 | |
35515 | #undef $ac_func | |
35516 | ||
a848cd7e SC |
35517 | /* Override any gcc2 internal prototype to avoid an error. */ |
35518 | #ifdef __cplusplus | |
35519 | extern "C" | |
35520 | { | |
35521 | #endif | |
35522 | /* We use char because int might match the return type of a gcc2 | |
35523 | builtin and then its argument prototype would still apply. */ | |
35524 | char $ac_func (); | |
35525 | /* The GNU C library defines this for functions which it implements | |
35526 | to always fail with ENOSYS. Some functions are actually named | |
35527 | something starting with __ and the normal name is an alias. */ | |
35528 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35529 | choke me | |
35530 | #else | |
35531 | char (*f) () = $ac_func; | |
35532 | #endif | |
35533 | #ifdef __cplusplus | |
35534 | } | |
35535 | #endif | |
35536 | ||
35537 | int | |
35538 | main () | |
35539 | { | |
35540 | return f != $ac_func; | |
35541 | ; | |
35542 | return 0; | |
35543 | } | |
35544 | _ACEOF | |
35545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35547 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35548 | ac_status=$? |
ac1cb8d3 VS |
35549 | grep -v '^ *+' conftest.er1 >conftest.err |
35550 | rm -f conftest.er1 | |
35551 | cat conftest.err >&5 | |
a848cd7e SC |
35552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35553 | (exit $ac_status); } && | |
5d7b7554 | 35554 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35556 | (eval $ac_try) 2>&5 | |
35557 | ac_status=$? | |
35558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35559 | (exit $ac_status); }; } && | |
35560 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35562 | (eval $ac_try) 2>&5 | |
35563 | ac_status=$? | |
35564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35565 | (exit $ac_status); }; }; then | |
35566 | eval "$as_ac_var=yes" | |
35567 | else | |
35568 | echo "$as_me: failed program was:" >&5 | |
35569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35570 | ||
35571 | eval "$as_ac_var=no" | |
35572 | fi | |
ac1cb8d3 VS |
35573 | rm -f conftest.err conftest.$ac_objext \ |
35574 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35575 | fi |
35576 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35577 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35578 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35579 | cat >>confdefs.h <<_ACEOF | |
35580 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35581 | _ACEOF | |
35582 | break | |
35583 | fi | |
35584 | done | |
35585 | ||
35586 | ||
35587 | HAVE_SOME_SLEEP_FUNC=0 | |
35588 | if test "$USE_BEOS" = 1; then | |
35589 | cat >>confdefs.h <<\_ACEOF | |
35590 | #define HAVE_SLEEP 1 | |
35591 | _ACEOF | |
35592 | ||
35593 | HAVE_SOME_SLEEP_FUNC=1 | |
35594 | fi | |
35595 | ||
35596 | if test "$USE_DARWIN" = 1; then | |
35597 | cat >>confdefs.h <<\_ACEOF | |
35598 | #define HAVE_USLEEP 1 | |
35599 | _ACEOF | |
35600 | ||
35601 | HAVE_SOME_SLEEP_FUNC=1 | |
35602 | fi | |
35603 | ||
35604 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
35605 | POSIX4_LINK= | |
35606 | ||
35607 | for ac_func in nanosleep | |
35608 | do | |
35609 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35610 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35611 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35612 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35614 | else | |
35615 | cat >conftest.$ac_ext <<_ACEOF | |
35616 | /* confdefs.h. */ | |
35617 | _ACEOF | |
35618 | cat confdefs.h >>conftest.$ac_ext | |
35619 | cat >>conftest.$ac_ext <<_ACEOF | |
35620 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35621 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35623 | #define $ac_func innocuous_$ac_func | |
35624 | ||
a848cd7e SC |
35625 | /* System header to define __stub macros and hopefully few prototypes, |
35626 | which can conflict with char $ac_func (); below. | |
35627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35628 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35629 | |
a848cd7e SC |
35630 | #ifdef __STDC__ |
35631 | # include <limits.h> | |
35632 | #else | |
35633 | # include <assert.h> | |
35634 | #endif | |
ac1cb8d3 VS |
35635 | |
35636 | #undef $ac_func | |
35637 | ||
a848cd7e SC |
35638 | /* Override any gcc2 internal prototype to avoid an error. */ |
35639 | #ifdef __cplusplus | |
35640 | extern "C" | |
35641 | { | |
35642 | #endif | |
35643 | /* We use char because int might match the return type of a gcc2 | |
35644 | builtin and then its argument prototype would still apply. */ | |
35645 | char $ac_func (); | |
35646 | /* The GNU C library defines this for functions which it implements | |
35647 | to always fail with ENOSYS. Some functions are actually named | |
35648 | something starting with __ and the normal name is an alias. */ | |
35649 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35650 | choke me | |
35651 | #else | |
35652 | char (*f) () = $ac_func; | |
35653 | #endif | |
35654 | #ifdef __cplusplus | |
35655 | } | |
35656 | #endif | |
35657 | ||
35658 | int | |
35659 | main () | |
35660 | { | |
35661 | return f != $ac_func; | |
35662 | ; | |
35663 | return 0; | |
35664 | } | |
35665 | _ACEOF | |
35666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35668 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35669 | ac_status=$? |
ac1cb8d3 VS |
35670 | grep -v '^ *+' conftest.er1 >conftest.err |
35671 | rm -f conftest.er1 | |
35672 | cat conftest.err >&5 | |
a848cd7e SC |
35673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35674 | (exit $ac_status); } && | |
5d7b7554 | 35675 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35677 | (eval $ac_try) 2>&5 | |
35678 | ac_status=$? | |
35679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35680 | (exit $ac_status); }; } && | |
35681 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35683 | (eval $ac_try) 2>&5 | |
35684 | ac_status=$? | |
35685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35686 | (exit $ac_status); }; }; then | |
35687 | eval "$as_ac_var=yes" | |
35688 | else | |
35689 | echo "$as_me: failed program was:" >&5 | |
35690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35691 | ||
35692 | eval "$as_ac_var=no" | |
35693 | fi | |
ac1cb8d3 VS |
35694 | rm -f conftest.err conftest.$ac_objext \ |
35695 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35696 | fi |
35697 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35698 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35699 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35700 | cat >>confdefs.h <<_ACEOF | |
35701 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35702 | _ACEOF | |
35703 | cat >>confdefs.h <<\_ACEOF | |
35704 | #define HAVE_NANOSLEEP 1 | |
35705 | _ACEOF | |
35706 | ||
35707 | else | |
35708 | ||
35709 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
35710 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
35711 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
35712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35713 | else | |
35714 | ac_check_lib_save_LIBS=$LIBS | |
35715 | LIBS="-lposix4 $LIBS" | |
35716 | cat >conftest.$ac_ext <<_ACEOF | |
35717 | /* confdefs.h. */ | |
35718 | _ACEOF | |
35719 | cat confdefs.h >>conftest.$ac_ext | |
35720 | cat >>conftest.$ac_ext <<_ACEOF | |
35721 | /* end confdefs.h. */ | |
35722 | ||
35723 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35724 | #ifdef __cplusplus | |
35725 | extern "C" | |
35726 | #endif | |
35727 | /* We use char because int might match the return type of a gcc2 | |
35728 | builtin and then its argument prototype would still apply. */ | |
35729 | char nanosleep (); | |
35730 | int | |
35731 | main () | |
35732 | { | |
35733 | nanosleep (); | |
35734 | ; | |
35735 | return 0; | |
35736 | } | |
35737 | _ACEOF | |
35738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35740 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35741 | ac_status=$? |
ac1cb8d3 VS |
35742 | grep -v '^ *+' conftest.er1 >conftest.err |
35743 | rm -f conftest.er1 | |
35744 | cat conftest.err >&5 | |
a848cd7e SC |
35745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35746 | (exit $ac_status); } && | |
5d7b7554 | 35747 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35749 | (eval $ac_try) 2>&5 | |
35750 | ac_status=$? | |
35751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35752 | (exit $ac_status); }; } && | |
35753 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35755 | (eval $ac_try) 2>&5 | |
35756 | ac_status=$? | |
35757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35758 | (exit $ac_status); }; }; then | |
35759 | ac_cv_lib_posix4_nanosleep=yes | |
35760 | else | |
35761 | echo "$as_me: failed program was:" >&5 | |
35762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35763 | ||
35764 | ac_cv_lib_posix4_nanosleep=no | |
35765 | fi | |
ac1cb8d3 VS |
35766 | rm -f conftest.err conftest.$ac_objext \ |
35767 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35768 | LIBS=$ac_check_lib_save_LIBS |
35769 | fi | |
35770 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
35771 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
35772 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
35773 | ||
35774 | cat >>confdefs.h <<\_ACEOF | |
35775 | #define HAVE_NANOSLEEP 1 | |
35776 | _ACEOF | |
35777 | ||
35778 | POSIX4_LINK=" -lposix4" | |
35779 | ||
35780 | else | |
35781 | ||
35782 | ||
35783 | for ac_func in usleep | |
35784 | do | |
35785 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35786 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35787 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35788 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35790 | else | |
35791 | cat >conftest.$ac_ext <<_ACEOF | |
35792 | /* confdefs.h. */ | |
35793 | _ACEOF | |
35794 | cat confdefs.h >>conftest.$ac_ext | |
35795 | cat >>conftest.$ac_ext <<_ACEOF | |
35796 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35797 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35798 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35799 | #define $ac_func innocuous_$ac_func | |
35800 | ||
a848cd7e SC |
35801 | /* System header to define __stub macros and hopefully few prototypes, |
35802 | which can conflict with char $ac_func (); below. | |
35803 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35804 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35805 | |
a848cd7e SC |
35806 | #ifdef __STDC__ |
35807 | # include <limits.h> | |
35808 | #else | |
35809 | # include <assert.h> | |
35810 | #endif | |
ac1cb8d3 VS |
35811 | |
35812 | #undef $ac_func | |
35813 | ||
a848cd7e SC |
35814 | /* Override any gcc2 internal prototype to avoid an error. */ |
35815 | #ifdef __cplusplus | |
35816 | extern "C" | |
35817 | { | |
35818 | #endif | |
35819 | /* We use char because int might match the return type of a gcc2 | |
35820 | builtin and then its argument prototype would still apply. */ | |
35821 | char $ac_func (); | |
35822 | /* The GNU C library defines this for functions which it implements | |
35823 | to always fail with ENOSYS. Some functions are actually named | |
35824 | something starting with __ and the normal name is an alias. */ | |
35825 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35826 | choke me | |
35827 | #else | |
35828 | char (*f) () = $ac_func; | |
35829 | #endif | |
35830 | #ifdef __cplusplus | |
35831 | } | |
35832 | #endif | |
35833 | ||
35834 | int | |
35835 | main () | |
35836 | { | |
35837 | return f != $ac_func; | |
35838 | ; | |
35839 | return 0; | |
35840 | } | |
35841 | _ACEOF | |
35842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35844 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35845 | ac_status=$? |
ac1cb8d3 VS |
35846 | grep -v '^ *+' conftest.er1 >conftest.err |
35847 | rm -f conftest.er1 | |
35848 | cat conftest.err >&5 | |
a848cd7e SC |
35849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35850 | (exit $ac_status); } && | |
5d7b7554 | 35851 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35853 | (eval $ac_try) 2>&5 | |
35854 | ac_status=$? | |
35855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35856 | (exit $ac_status); }; } && | |
35857 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35859 | (eval $ac_try) 2>&5 | |
35860 | ac_status=$? | |
35861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35862 | (exit $ac_status); }; }; then | |
35863 | eval "$as_ac_var=yes" | |
35864 | else | |
35865 | echo "$as_me: failed program was:" >&5 | |
35866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35867 | ||
35868 | eval "$as_ac_var=no" | |
35869 | fi | |
ac1cb8d3 VS |
35870 | rm -f conftest.err conftest.$ac_objext \ |
35871 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35872 | fi |
35873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35874 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35875 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35876 | cat >>confdefs.h <<_ACEOF | |
35877 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35878 | _ACEOF | |
35879 | cat >>confdefs.h <<\_ACEOF | |
35880 | #define HAVE_USLEEP 1 | |
35881 | _ACEOF | |
35882 | ||
35883 | else | |
35884 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
35885 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
35886 | ||
35887 | fi | |
35888 | done | |
35889 | ||
35890 | ||
35891 | ||
35892 | fi | |
35893 | ||
35894 | ||
35895 | ||
35896 | fi | |
35897 | done | |
35898 | ||
35899 | fi | |
35900 | ||
35901 | ||
35902 | ||
35903 | for ac_func in uname gethostname | |
35904 | do | |
35905 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35906 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35907 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35908 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35910 | else | |
35911 | cat >conftest.$ac_ext <<_ACEOF | |
35912 | /* confdefs.h. */ | |
35913 | _ACEOF | |
35914 | cat confdefs.h >>conftest.$ac_ext | |
35915 | cat >>conftest.$ac_ext <<_ACEOF | |
35916 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35917 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35918 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35919 | #define $ac_func innocuous_$ac_func | |
35920 | ||
a848cd7e SC |
35921 | /* System header to define __stub macros and hopefully few prototypes, |
35922 | which can conflict with char $ac_func (); below. | |
35923 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35924 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35925 | |
a848cd7e SC |
35926 | #ifdef __STDC__ |
35927 | # include <limits.h> | |
35928 | #else | |
35929 | # include <assert.h> | |
35930 | #endif | |
ac1cb8d3 VS |
35931 | |
35932 | #undef $ac_func | |
35933 | ||
a848cd7e SC |
35934 | /* Override any gcc2 internal prototype to avoid an error. */ |
35935 | #ifdef __cplusplus | |
35936 | extern "C" | |
35937 | { | |
35938 | #endif | |
35939 | /* We use char because int might match the return type of a gcc2 | |
35940 | builtin and then its argument prototype would still apply. */ | |
35941 | char $ac_func (); | |
35942 | /* The GNU C library defines this for functions which it implements | |
35943 | to always fail with ENOSYS. Some functions are actually named | |
35944 | something starting with __ and the normal name is an alias. */ | |
35945 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35946 | choke me | |
35947 | #else | |
35948 | char (*f) () = $ac_func; | |
35949 | #endif | |
35950 | #ifdef __cplusplus | |
35951 | } | |
35952 | #endif | |
35953 | ||
35954 | int | |
35955 | main () | |
35956 | { | |
35957 | return f != $ac_func; | |
35958 | ; | |
35959 | return 0; | |
35960 | } | |
35961 | _ACEOF | |
35962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35964 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35965 | ac_status=$? |
ac1cb8d3 VS |
35966 | grep -v '^ *+' conftest.er1 >conftest.err |
35967 | rm -f conftest.er1 | |
35968 | cat conftest.err >&5 | |
a848cd7e SC |
35969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35970 | (exit $ac_status); } && | |
5d7b7554 | 35971 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35973 | (eval $ac_try) 2>&5 | |
35974 | ac_status=$? | |
35975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35976 | (exit $ac_status); }; } && | |
35977 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35979 | (eval $ac_try) 2>&5 | |
35980 | ac_status=$? | |
35981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35982 | (exit $ac_status); }; }; then | |
35983 | eval "$as_ac_var=yes" | |
35984 | else | |
35985 | echo "$as_me: failed program was:" >&5 | |
35986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35987 | ||
35988 | eval "$as_ac_var=no" | |
35989 | fi | |
ac1cb8d3 VS |
35990 | rm -f conftest.err conftest.$ac_objext \ |
35991 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35992 | fi |
35993 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35994 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35995 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35996 | cat >>confdefs.h <<_ACEOF | |
35997 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35998 | _ACEOF | |
35999 | break | |
36000 | fi | |
36001 | done | |
36002 | ||
36003 | ||
a848cd7e SC |
36004 | |
36005 | for ac_func in strtok_r | |
36006 | do | |
36007 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36008 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36009 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36010 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36012 | else | |
36013 | cat >conftest.$ac_ext <<_ACEOF | |
36014 | /* confdefs.h. */ | |
36015 | _ACEOF | |
36016 | cat confdefs.h >>conftest.$ac_ext | |
36017 | cat >>conftest.$ac_ext <<_ACEOF | |
36018 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36019 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36021 | #define $ac_func innocuous_$ac_func | |
36022 | ||
a848cd7e SC |
36023 | /* System header to define __stub macros and hopefully few prototypes, |
36024 | which can conflict with char $ac_func (); below. | |
36025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36026 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36027 | |
a848cd7e SC |
36028 | #ifdef __STDC__ |
36029 | # include <limits.h> | |
36030 | #else | |
36031 | # include <assert.h> | |
36032 | #endif | |
ac1cb8d3 VS |
36033 | |
36034 | #undef $ac_func | |
36035 | ||
a848cd7e SC |
36036 | /* Override any gcc2 internal prototype to avoid an error. */ |
36037 | #ifdef __cplusplus | |
36038 | extern "C" | |
36039 | { | |
36040 | #endif | |
36041 | /* We use char because int might match the return type of a gcc2 | |
36042 | builtin and then its argument prototype would still apply. */ | |
36043 | char $ac_func (); | |
36044 | /* The GNU C library defines this for functions which it implements | |
36045 | to always fail with ENOSYS. Some functions are actually named | |
36046 | something starting with __ and the normal name is an alias. */ | |
36047 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36048 | choke me | |
36049 | #else | |
36050 | char (*f) () = $ac_func; | |
36051 | #endif | |
36052 | #ifdef __cplusplus | |
36053 | } | |
36054 | #endif | |
36055 | ||
36056 | int | |
36057 | main () | |
36058 | { | |
36059 | return f != $ac_func; | |
36060 | ; | |
36061 | return 0; | |
36062 | } | |
36063 | _ACEOF | |
36064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36066 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36067 | ac_status=$? |
ac1cb8d3 VS |
36068 | grep -v '^ *+' conftest.er1 >conftest.err |
36069 | rm -f conftest.er1 | |
36070 | cat conftest.err >&5 | |
a848cd7e SC |
36071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36072 | (exit $ac_status); } && | |
5d7b7554 | 36073 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36075 | (eval $ac_try) 2>&5 | |
36076 | ac_status=$? | |
36077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36078 | (exit $ac_status); }; } && | |
36079 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36081 | (eval $ac_try) 2>&5 | |
36082 | ac_status=$? | |
36083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36084 | (exit $ac_status); }; }; then | |
36085 | eval "$as_ac_var=yes" | |
36086 | else | |
36087 | echo "$as_me: failed program was:" >&5 | |
36088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36089 | ||
36090 | eval "$as_ac_var=no" | |
36091 | fi | |
ac1cb8d3 VS |
36092 | rm -f conftest.err conftest.$ac_objext \ |
36093 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36094 | fi |
36095 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36096 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36097 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36098 | cat >>confdefs.h <<_ACEOF | |
36099 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36100 | _ACEOF | |
36101 | ||
36102 | fi | |
36103 | done | |
36104 | ||
36105 | ||
a848cd7e SC |
36106 | INET_LINK= |
36107 | ||
36108 | for ac_func in inet_addr | |
36109 | do | |
36110 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36111 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36112 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36113 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36115 | else | |
36116 | cat >conftest.$ac_ext <<_ACEOF | |
36117 | /* confdefs.h. */ | |
36118 | _ACEOF | |
36119 | cat confdefs.h >>conftest.$ac_ext | |
36120 | cat >>conftest.$ac_ext <<_ACEOF | |
36121 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36122 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36123 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36124 | #define $ac_func innocuous_$ac_func | |
36125 | ||
a848cd7e SC |
36126 | /* System header to define __stub macros and hopefully few prototypes, |
36127 | which can conflict with char $ac_func (); below. | |
36128 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36129 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36130 | |
a848cd7e SC |
36131 | #ifdef __STDC__ |
36132 | # include <limits.h> | |
36133 | #else | |
36134 | # include <assert.h> | |
36135 | #endif | |
ac1cb8d3 VS |
36136 | |
36137 | #undef $ac_func | |
36138 | ||
a848cd7e SC |
36139 | /* Override any gcc2 internal prototype to avoid an error. */ |
36140 | #ifdef __cplusplus | |
36141 | extern "C" | |
36142 | { | |
36143 | #endif | |
36144 | /* We use char because int might match the return type of a gcc2 | |
36145 | builtin and then its argument prototype would still apply. */ | |
36146 | char $ac_func (); | |
36147 | /* The GNU C library defines this for functions which it implements | |
36148 | to always fail with ENOSYS. Some functions are actually named | |
36149 | something starting with __ and the normal name is an alias. */ | |
36150 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36151 | choke me | |
36152 | #else | |
36153 | char (*f) () = $ac_func; | |
36154 | #endif | |
36155 | #ifdef __cplusplus | |
36156 | } | |
36157 | #endif | |
36158 | ||
36159 | int | |
36160 | main () | |
36161 | { | |
36162 | return f != $ac_func; | |
36163 | ; | |
36164 | return 0; | |
36165 | } | |
36166 | _ACEOF | |
36167 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36169 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36170 | ac_status=$? |
ac1cb8d3 VS |
36171 | grep -v '^ *+' conftest.er1 >conftest.err |
36172 | rm -f conftest.er1 | |
36173 | cat conftest.err >&5 | |
a848cd7e SC |
36174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36175 | (exit $ac_status); } && | |
5d7b7554 | 36176 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36178 | (eval $ac_try) 2>&5 | |
36179 | ac_status=$? | |
36180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36181 | (exit $ac_status); }; } && | |
36182 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36184 | (eval $ac_try) 2>&5 | |
36185 | ac_status=$? | |
36186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36187 | (exit $ac_status); }; }; then | |
36188 | eval "$as_ac_var=yes" | |
36189 | else | |
36190 | echo "$as_me: failed program was:" >&5 | |
36191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36192 | ||
36193 | eval "$as_ac_var=no" | |
36194 | fi | |
ac1cb8d3 VS |
36195 | rm -f conftest.err conftest.$ac_objext \ |
36196 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36197 | fi |
36198 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36199 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36200 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36201 | cat >>confdefs.h <<_ACEOF | |
36202 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36203 | _ACEOF | |
36204 | cat >>confdefs.h <<\_ACEOF | |
36205 | #define HAVE_INET_ADDR 1 | |
36206 | _ACEOF | |
36207 | ||
36208 | else | |
36209 | ||
36210 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
36211 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
36212 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
36213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36214 | else | |
36215 | ac_check_lib_save_LIBS=$LIBS | |
36216 | LIBS="-lnsl $LIBS" | |
36217 | cat >conftest.$ac_ext <<_ACEOF | |
36218 | /* confdefs.h. */ | |
36219 | _ACEOF | |
36220 | cat confdefs.h >>conftest.$ac_ext | |
36221 | cat >>conftest.$ac_ext <<_ACEOF | |
36222 | /* end confdefs.h. */ | |
36223 | ||
36224 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36225 | #ifdef __cplusplus | |
36226 | extern "C" | |
36227 | #endif | |
36228 | /* We use char because int might match the return type of a gcc2 | |
36229 | builtin and then its argument prototype would still apply. */ | |
36230 | char inet_addr (); | |
36231 | int | |
36232 | main () | |
36233 | { | |
36234 | inet_addr (); | |
36235 | ; | |
36236 | return 0; | |
36237 | } | |
36238 | _ACEOF | |
36239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36241 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36242 | ac_status=$? |
ac1cb8d3 VS |
36243 | grep -v '^ *+' conftest.er1 >conftest.err |
36244 | rm -f conftest.er1 | |
36245 | cat conftest.err >&5 | |
a848cd7e SC |
36246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36247 | (exit $ac_status); } && | |
5d7b7554 | 36248 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36250 | (eval $ac_try) 2>&5 | |
36251 | ac_status=$? | |
36252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36253 | (exit $ac_status); }; } && | |
36254 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36256 | (eval $ac_try) 2>&5 | |
36257 | ac_status=$? | |
36258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36259 | (exit $ac_status); }; }; then | |
36260 | ac_cv_lib_nsl_inet_addr=yes | |
36261 | else | |
36262 | echo "$as_me: failed program was:" >&5 | |
36263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36264 | ||
36265 | ac_cv_lib_nsl_inet_addr=no | |
36266 | fi | |
ac1cb8d3 VS |
36267 | rm -f conftest.err conftest.$ac_objext \ |
36268 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36269 | LIBS=$ac_check_lib_save_LIBS |
36270 | fi | |
36271 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
36272 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
36273 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
36274 | INET_LINK="nsl" | |
36275 | else | |
36276 | ||
36277 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
36278 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
36279 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
36280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36281 | else | |
36282 | ac_check_lib_save_LIBS=$LIBS | |
36283 | LIBS="-lresolv $LIBS" | |
36284 | cat >conftest.$ac_ext <<_ACEOF | |
36285 | /* confdefs.h. */ | |
36286 | _ACEOF | |
36287 | cat confdefs.h >>conftest.$ac_ext | |
36288 | cat >>conftest.$ac_ext <<_ACEOF | |
36289 | /* end confdefs.h. */ | |
36290 | ||
36291 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36292 | #ifdef __cplusplus | |
36293 | extern "C" | |
36294 | #endif | |
36295 | /* We use char because int might match the return type of a gcc2 | |
36296 | builtin and then its argument prototype would still apply. */ | |
36297 | char inet_addr (); | |
36298 | int | |
36299 | main () | |
36300 | { | |
36301 | inet_addr (); | |
36302 | ; | |
36303 | return 0; | |
36304 | } | |
36305 | _ACEOF | |
36306 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36308 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36309 | ac_status=$? |
ac1cb8d3 VS |
36310 | grep -v '^ *+' conftest.er1 >conftest.err |
36311 | rm -f conftest.er1 | |
36312 | cat conftest.err >&5 | |
a848cd7e SC |
36313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36314 | (exit $ac_status); } && | |
5d7b7554 | 36315 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36317 | (eval $ac_try) 2>&5 | |
36318 | ac_status=$? | |
36319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36320 | (exit $ac_status); }; } && | |
36321 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36323 | (eval $ac_try) 2>&5 | |
36324 | ac_status=$? | |
36325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36326 | (exit $ac_status); }; }; then | |
36327 | ac_cv_lib_resolv_inet_addr=yes | |
36328 | else | |
36329 | echo "$as_me: failed program was:" >&5 | |
36330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36331 | ||
36332 | ac_cv_lib_resolv_inet_addr=no | |
36333 | fi | |
ac1cb8d3 VS |
36334 | rm -f conftest.err conftest.$ac_objext \ |
36335 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36336 | LIBS=$ac_check_lib_save_LIBS |
36337 | fi | |
36338 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
36339 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
36340 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
36341 | INET_LINK="resolv" | |
36342 | else | |
36343 | ||
36344 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
36345 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
36346 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
36347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36348 | else | |
36349 | ac_check_lib_save_LIBS=$LIBS | |
36350 | LIBS="-lsocket $LIBS" | |
36351 | cat >conftest.$ac_ext <<_ACEOF | |
36352 | /* confdefs.h. */ | |
36353 | _ACEOF | |
36354 | cat confdefs.h >>conftest.$ac_ext | |
36355 | cat >>conftest.$ac_ext <<_ACEOF | |
36356 | /* end confdefs.h. */ | |
36357 | ||
36358 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36359 | #ifdef __cplusplus | |
36360 | extern "C" | |
36361 | #endif | |
36362 | /* We use char because int might match the return type of a gcc2 | |
36363 | builtin and then its argument prototype would still apply. */ | |
36364 | char inet_addr (); | |
36365 | int | |
36366 | main () | |
36367 | { | |
36368 | inet_addr (); | |
36369 | ; | |
36370 | return 0; | |
36371 | } | |
36372 | _ACEOF | |
36373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36375 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36376 | ac_status=$? |
ac1cb8d3 VS |
36377 | grep -v '^ *+' conftest.er1 >conftest.err |
36378 | rm -f conftest.er1 | |
36379 | cat conftest.err >&5 | |
a848cd7e SC |
36380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36381 | (exit $ac_status); } && | |
5d7b7554 | 36382 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36384 | (eval $ac_try) 2>&5 | |
36385 | ac_status=$? | |
36386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36387 | (exit $ac_status); }; } && | |
36388 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36390 | (eval $ac_try) 2>&5 | |
36391 | ac_status=$? | |
36392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36393 | (exit $ac_status); }; }; then | |
36394 | ac_cv_lib_socket_inet_addr=yes | |
36395 | else | |
36396 | echo "$as_me: failed program was:" >&5 | |
36397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36398 | ||
36399 | ac_cv_lib_socket_inet_addr=no | |
36400 | fi | |
ac1cb8d3 VS |
36401 | rm -f conftest.err conftest.$ac_objext \ |
36402 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36403 | LIBS=$ac_check_lib_save_LIBS |
36404 | fi | |
36405 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
36406 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
36407 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
36408 | INET_LINK="socket" | |
36409 | ||
36410 | fi | |
36411 | ||
36412 | ||
36413 | ||
36414 | fi | |
36415 | ||
36416 | ||
36417 | ||
36418 | fi | |
36419 | ||
36420 | ||
36421 | ||
36422 | fi | |
36423 | done | |
36424 | ||
36425 | ||
36426 | ||
36427 | for ac_func in inet_aton | |
36428 | do | |
36429 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36430 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36431 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36432 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36434 | else | |
36435 | cat >conftest.$ac_ext <<_ACEOF | |
36436 | /* confdefs.h. */ | |
36437 | _ACEOF | |
36438 | cat confdefs.h >>conftest.$ac_ext | |
36439 | cat >>conftest.$ac_ext <<_ACEOF | |
36440 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36441 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36442 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36443 | #define $ac_func innocuous_$ac_func | |
36444 | ||
a848cd7e SC |
36445 | /* System header to define __stub macros and hopefully few prototypes, |
36446 | which can conflict with char $ac_func (); below. | |
36447 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36448 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36449 | |
a848cd7e SC |
36450 | #ifdef __STDC__ |
36451 | # include <limits.h> | |
36452 | #else | |
36453 | # include <assert.h> | |
36454 | #endif | |
ac1cb8d3 VS |
36455 | |
36456 | #undef $ac_func | |
36457 | ||
a848cd7e SC |
36458 | /* Override any gcc2 internal prototype to avoid an error. */ |
36459 | #ifdef __cplusplus | |
36460 | extern "C" | |
36461 | { | |
36462 | #endif | |
36463 | /* We use char because int might match the return type of a gcc2 | |
36464 | builtin and then its argument prototype would still apply. */ | |
36465 | char $ac_func (); | |
36466 | /* The GNU C library defines this for functions which it implements | |
36467 | to always fail with ENOSYS. Some functions are actually named | |
36468 | something starting with __ and the normal name is an alias. */ | |
36469 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36470 | choke me | |
36471 | #else | |
36472 | char (*f) () = $ac_func; | |
36473 | #endif | |
36474 | #ifdef __cplusplus | |
36475 | } | |
36476 | #endif | |
36477 | ||
36478 | int | |
36479 | main () | |
36480 | { | |
36481 | return f != $ac_func; | |
36482 | ; | |
36483 | return 0; | |
36484 | } | |
36485 | _ACEOF | |
36486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36488 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36489 | ac_status=$? |
ac1cb8d3 VS |
36490 | grep -v '^ *+' conftest.er1 >conftest.err |
36491 | rm -f conftest.er1 | |
36492 | cat conftest.err >&5 | |
a848cd7e SC |
36493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36494 | (exit $ac_status); } && | |
5d7b7554 | 36495 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36497 | (eval $ac_try) 2>&5 | |
36498 | ac_status=$? | |
36499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36500 | (exit $ac_status); }; } && | |
36501 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36503 | (eval $ac_try) 2>&5 | |
36504 | ac_status=$? | |
36505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36506 | (exit $ac_status); }; }; then | |
36507 | eval "$as_ac_var=yes" | |
36508 | else | |
36509 | echo "$as_me: failed program was:" >&5 | |
36510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36511 | ||
36512 | eval "$as_ac_var=no" | |
36513 | fi | |
ac1cb8d3 VS |
36514 | rm -f conftest.err conftest.$ac_objext \ |
36515 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36516 | fi |
36517 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36518 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36519 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36520 | cat >>confdefs.h <<_ACEOF | |
36521 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36522 | _ACEOF | |
36523 | cat >>confdefs.h <<\_ACEOF | |
36524 | #define HAVE_INET_ATON 1 | |
36525 | _ACEOF | |
36526 | ||
36527 | else | |
36528 | ||
36529 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
36530 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
36531 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
36532 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
36533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36534 | else | |
36535 | ac_check_lib_save_LIBS=$LIBS | |
36536 | LIBS="-l$INET_LINK $LIBS" | |
36537 | cat >conftest.$ac_ext <<_ACEOF | |
36538 | /* confdefs.h. */ | |
36539 | _ACEOF | |
36540 | cat confdefs.h >>conftest.$ac_ext | |
36541 | cat >>conftest.$ac_ext <<_ACEOF | |
36542 | /* end confdefs.h. */ | |
36543 | ||
36544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36545 | #ifdef __cplusplus | |
36546 | extern "C" | |
36547 | #endif | |
36548 | /* We use char because int might match the return type of a gcc2 | |
36549 | builtin and then its argument prototype would still apply. */ | |
36550 | char inet_aton (); | |
36551 | int | |
36552 | main () | |
36553 | { | |
36554 | inet_aton (); | |
36555 | ; | |
36556 | return 0; | |
36557 | } | |
36558 | _ACEOF | |
36559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36561 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36562 | ac_status=$? |
ac1cb8d3 VS |
36563 | grep -v '^ *+' conftest.er1 >conftest.err |
36564 | rm -f conftest.er1 | |
36565 | cat conftest.err >&5 | |
a848cd7e SC |
36566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36567 | (exit $ac_status); } && | |
5d7b7554 | 36568 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36570 | (eval $ac_try) 2>&5 | |
36571 | ac_status=$? | |
36572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36573 | (exit $ac_status); }; } && | |
36574 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36576 | (eval $ac_try) 2>&5 | |
36577 | ac_status=$? | |
36578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36579 | (exit $ac_status); }; }; then | |
36580 | eval "$as_ac_Lib=yes" | |
36581 | else | |
36582 | echo "$as_me: failed program was:" >&5 | |
36583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36584 | ||
36585 | eval "$as_ac_Lib=no" | |
36586 | fi | |
ac1cb8d3 VS |
36587 | rm -f conftest.err conftest.$ac_objext \ |
36588 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36589 | LIBS=$ac_check_lib_save_LIBS |
36590 | fi | |
36591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
36592 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
36593 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
36594 | cat >>confdefs.h <<\_ACEOF | |
36595 | #define HAVE_INET_ATON 1 | |
36596 | _ACEOF | |
36597 | ||
36598 | fi | |
36599 | ||
36600 | ||
36601 | fi | |
36602 | done | |
36603 | ||
36604 | ||
36605 | if test "x$INET_LINK" != "x"; then | |
36606 | cat >>confdefs.h <<\_ACEOF | |
36607 | #define HAVE_INET_ADDR 1 | |
36608 | _ACEOF | |
36609 | ||
36610 | INET_LINK=" -l$INET_LINK" | |
36611 | fi | |
36612 | ||
36613 | fi | |
36614 | ||
36615 | ||
36616 | ||
36617 | EXTRALIBS_ESD= | |
36618 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
36619 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
36620 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
36621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36622 | else | |
36623 | ac_check_lib_save_LIBS=$LIBS | |
36624 | LIBS="-lesd $LIBS" | |
36625 | cat >conftest.$ac_ext <<_ACEOF | |
36626 | /* confdefs.h. */ | |
36627 | _ACEOF | |
36628 | cat confdefs.h >>conftest.$ac_ext | |
36629 | cat >>conftest.$ac_ext <<_ACEOF | |
36630 | /* end confdefs.h. */ | |
36631 | ||
36632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36633 | #ifdef __cplusplus | |
36634 | extern "C" | |
36635 | #endif | |
36636 | /* We use char because int might match the return type of a gcc2 | |
36637 | builtin and then its argument prototype would still apply. */ | |
36638 | char esd_close (); | |
36639 | int | |
36640 | main () | |
36641 | { | |
36642 | esd_close (); | |
36643 | ; | |
36644 | return 0; | |
36645 | } | |
36646 | _ACEOF | |
36647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36649 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36650 | ac_status=$? |
ac1cb8d3 VS |
36651 | grep -v '^ *+' conftest.er1 >conftest.err |
36652 | rm -f conftest.er1 | |
36653 | cat conftest.err >&5 | |
a848cd7e SC |
36654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36655 | (exit $ac_status); } && | |
5d7b7554 | 36656 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36658 | (eval $ac_try) 2>&5 | |
36659 | ac_status=$? | |
36660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36661 | (exit $ac_status); }; } && | |
36662 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36664 | (eval $ac_try) 2>&5 | |
36665 | ac_status=$? | |
36666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36667 | (exit $ac_status); }; }; then | |
36668 | ac_cv_lib_esd_esd_close=yes | |
36669 | else | |
36670 | echo "$as_me: failed program was:" >&5 | |
36671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36672 | ||
36673 | ac_cv_lib_esd_esd_close=no | |
36674 | fi | |
ac1cb8d3 VS |
36675 | rm -f conftest.err conftest.$ac_objext \ |
36676 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36677 | LIBS=$ac_check_lib_save_LIBS |
36678 | fi | |
36679 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
36680 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
36681 | if test $ac_cv_lib_esd_esd_close = yes; then | |
36682 | ||
36683 | ||
36684 | for ac_header in esd.h | |
36685 | do | |
36686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36687 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36688 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36692 | fi | |
36693 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36694 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36695 | else | |
36696 | # Is the header compilable? | |
36697 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36698 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36699 | cat >conftest.$ac_ext <<_ACEOF | |
36700 | /* confdefs.h. */ | |
36701 | _ACEOF | |
36702 | cat confdefs.h >>conftest.$ac_ext | |
36703 | cat >>conftest.$ac_ext <<_ACEOF | |
36704 | /* end confdefs.h. */ | |
36705 | $ac_includes_default | |
36706 | #include <$ac_header> | |
36707 | _ACEOF | |
36708 | rm -f conftest.$ac_objext | |
36709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36710 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36711 | ac_status=$? |
ac1cb8d3 VS |
36712 | grep -v '^ *+' conftest.er1 >conftest.err |
36713 | rm -f conftest.er1 | |
36714 | cat conftest.err >&5 | |
a848cd7e SC |
36715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36716 | (exit $ac_status); } && | |
5d7b7554 | 36717 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36719 | (eval $ac_try) 2>&5 | |
36720 | ac_status=$? | |
36721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36722 | (exit $ac_status); }; } && | |
36723 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36725 | (eval $ac_try) 2>&5 | |
36726 | ac_status=$? | |
36727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36728 | (exit $ac_status); }; }; then | |
36729 | ac_header_compiler=yes | |
36730 | else | |
36731 | echo "$as_me: failed program was:" >&5 | |
36732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36733 | ||
36734 | ac_header_compiler=no | |
36735 | fi | |
ac1cb8d3 | 36736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36737 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36738 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36739 | ||
36740 | # Is the header present? | |
36741 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36742 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36743 | cat >conftest.$ac_ext <<_ACEOF | |
36744 | /* confdefs.h. */ | |
36745 | _ACEOF | |
36746 | cat confdefs.h >>conftest.$ac_ext | |
36747 | cat >>conftest.$ac_ext <<_ACEOF | |
36748 | /* end confdefs.h. */ | |
36749 | #include <$ac_header> | |
36750 | _ACEOF | |
36751 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36752 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36753 | ac_status=$? | |
36754 | grep -v '^ *+' conftest.er1 >conftest.err | |
36755 | rm -f conftest.er1 | |
36756 | cat conftest.err >&5 | |
36757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36758 | (exit $ac_status); } >/dev/null; then | |
36759 | if test -s conftest.err; then | |
5d7b7554 VZ |
36760 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
36761 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
36762 | else |
36763 | ac_cpp_err= | |
36764 | fi | |
36765 | else | |
36766 | ac_cpp_err=yes | |
36767 | fi | |
36768 | if test -z "$ac_cpp_err"; then | |
36769 | ac_header_preproc=yes | |
36770 | else | |
36771 | echo "$as_me: failed program was:" >&5 | |
36772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36773 | ||
36774 | ac_header_preproc=no | |
36775 | fi | |
36776 | rm -f conftest.err conftest.$ac_ext | |
36777 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36778 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36779 | ||
36780 | # So? What about this header? | |
5d7b7554 | 36781 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 36782 | yes:no: ) |
a848cd7e SC |
36783 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36784 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36785 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36786 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36787 | ac_header_preproc=yes | |
a848cd7e | 36788 | ;; |
ac1cb8d3 | 36789 | no:yes:* ) |
a848cd7e SC |
36790 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36791 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36792 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36793 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36794 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36795 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36796 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36797 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36798 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36799 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36800 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36801 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36802 | ( |
36803 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36804 | ## ----------------------------------------- ## |
36805 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36806 | ## ----------------------------------------- ## | |
a848cd7e SC |
36807 | _ASBOX |
36808 | ) | | |
36809 | sed "s/^/$as_me: WARNING: /" >&2 | |
36810 | ;; | |
36811 | esac | |
36812 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36813 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36814 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36816 | else | |
ac1cb8d3 | 36817 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36818 | fi |
36819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36820 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36821 | ||
36822 | fi | |
36823 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36824 | cat >>confdefs.h <<_ACEOF | |
36825 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36826 | _ACEOF | |
36827 | ||
36828 | EXTRALIBS_ESD="-lesd" | |
36829 | ||
36830 | fi | |
36831 | ||
36832 | done | |
36833 | ||
36834 | ||
36835 | fi | |
36836 | ||
36837 | ||
36838 | ||
36839 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
36840 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
36841 | cat >conftest.$ac_ext <<_ACEOF | |
36842 | /* confdefs.h. */ | |
36843 | _ACEOF | |
36844 | cat confdefs.h >>conftest.$ac_ext | |
36845 | cat >>conftest.$ac_ext <<_ACEOF | |
36846 | /* end confdefs.h. */ | |
36847 | #ifdef __linux__ | |
36848 | #include <linux/cdrom.h> | |
36849 | #else | |
36850 | /* For Solaris */ | |
36851 | #include <sys/cdio.h> | |
36852 | #endif | |
36853 | ||
36854 | int | |
36855 | main () | |
36856 | { | |
36857 | struct cdrom_tocentry entry, old_entry; | |
36858 | ; | |
36859 | return 0; | |
36860 | } | |
36861 | _ACEOF | |
36862 | rm -f conftest.$ac_objext | |
36863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36864 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36865 | ac_status=$? |
ac1cb8d3 VS |
36866 | grep -v '^ *+' conftest.er1 >conftest.err |
36867 | rm -f conftest.er1 | |
36868 | cat conftest.err >&5 | |
a848cd7e SC |
36869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36870 | (exit $ac_status); } && | |
5d7b7554 | 36871 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36873 | (eval $ac_try) 2>&5 | |
36874 | ac_status=$? | |
36875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36876 | (exit $ac_status); }; } && | |
36877 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36879 | (eval $ac_try) 2>&5 | |
36880 | ac_status=$? | |
36881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36882 | (exit $ac_status); }; }; then | |
36883 | echo "$as_me:$LINENO: result: yes" >&5 | |
36884 | echo "${ECHO_T}yes" >&6 | |
36885 | cat >>confdefs.h <<\_ACEOF | |
36886 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
36887 | _ACEOF | |
36888 | ||
36889 | else | |
36890 | echo "$as_me: failed program was:" >&5 | |
36891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36892 | ||
36893 | echo "$as_me:$LINENO: result: no" >&5 | |
36894 | echo "${ECHO_T}no" >&6 | |
36895 | fi | |
ac1cb8d3 | 36896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36897 | |
36898 | ||
36899 | cat >confcache <<\_ACEOF | |
36900 | # This file is a shell script that caches the results of configure | |
36901 | # tests run on this system so they can be shared between configure | |
36902 | # scripts and configure runs, see configure's option --config-cache. | |
36903 | # It is not useful on other systems. If it contains results you don't | |
36904 | # want to keep, you may remove or edit it. | |
36905 | # | |
36906 | # config.status only pays attention to the cache file if you give it | |
36907 | # the --recheck option to rerun configure. | |
36908 | # | |
36909 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
36910 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
36911 | # following values. | |
36912 | ||
36913 | _ACEOF | |
36914 | ||
36915 | # The following way of writing the cache mishandles newlines in values, | |
36916 | # but we know of no workaround that is simple, portable, and efficient. | |
36917 | # So, don't put newlines in cache variables' values. | |
36918 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
36919 | # and sets the high bit in the cache file unless we assign to the vars. | |
36920 | { | |
36921 | (set) 2>&1 | | |
36922 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
36923 | *ac_space=\ *) | |
36924 | # `set' does not quote correctly, so add quotes (double-quote | |
36925 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
36926 | sed -n \ | |
ac1cb8d3 VS |
36927 | "s/'/'\\\\''/g; |
36928 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
36929 | ;; |
36930 | *) | |
36931 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
36932 | sed -n \ | |
ac1cb8d3 | 36933 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
36934 | ;; |
36935 | esac; | |
36936 | } | | |
36937 | sed ' | |
36938 | t clear | |
36939 | : clear | |
36940 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
36941 | t end | |
36942 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
36943 | : end' >>confcache | |
36944 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
36945 | if test -w $cache_file; then | |
36946 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
36947 | cat confcache >$cache_file | |
36948 | else | |
36949 | echo "not updating unwritable cache $cache_file" | |
36950 | fi | |
36951 | fi | |
36952 | rm -f confcache | |
36953 | ||
36954 | ||
a848cd7e SC |
36955 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
36956 | ||
36957 | ||
36958 | THREADS_LINK= | |
e56f4f9e | 36959 | THREADS_CXXFLAGS= |
a848cd7e SC |
36960 | |
36961 | if test "$wxUSE_THREADS" = "yes" ; then | |
36962 | if test "$USE_BEOS" = 1; then | |
36963 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
36964 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
36965 | wxUSE_THREADS="no" | |
36966 | fi | |
36967 | fi | |
36968 | ||
36969 | if test "$wxUSE_THREADS" = "yes" ; then | |
36970 | ||
36971 | ||
36972 | THREAD_OPTS="-pthread" | |
36973 | case "${host}" in | |
36974 | *-*-solaris2* | *-*-sunos4* ) | |
36975 | if test "x$GCC" = "xyes"; then | |
36976 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
36977 | else | |
36978 | THREAD_OPTS="-mt $THREAD_OPTS" | |
36979 | fi | |
36980 | ;; | |
36981 | *-*-freebsd*) | |
36982 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
36983 | ;; | |
36984 | *-*-darwin* | *-*-cygwin* ) | |
36985 | THREAD_OPTS="" | |
36986 | ;; | |
36987 | *-*-aix*) | |
36988 | THREAD_OPTS="pthreads" | |
36989 | ;; | |
36990 | *-hp-hpux* ) | |
00421666 MW |
36991 | if test "x$GCC" = "xyes"; then |
36992 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
36993 | THREAD_OPTS="" | |
36994 | else | |
0093c2fc | 36995 | THREAD_OPTS="-mt" |
a848cd7e SC |
36996 | fi |
36997 | ;; | |
36998 | ||
36999 | *-*-irix* ) | |
37000 | if test "x$GCC" = "xyes"; then | |
37001 | THREAD_OPTS="" | |
37002 | fi | |
37003 | ;; | |
37004 | ||
37005 | *-*-*UnixWare*) | |
37006 | if test "x$GCC" != "xyes"; then | |
37007 | THREAD_OPTS="-Ethread" | |
37008 | fi | |
37009 | ;; | |
37010 | esac | |
37011 | ||
37012 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
37013 | ||
37014 | THREADS_OK=no | |
37015 | for flag in $THREAD_OPTS; do | |
37016 | case $flag in | |
37017 | none) | |
37018 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
37019 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
37020 | ;; | |
37021 | ||
37022 | -*) | |
37023 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
37024 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
e56f4f9e | 37025 | THREADS_CXXFLAGS="$flag" |
a848cd7e SC |
37026 | ;; |
37027 | ||
37028 | *) | |
37029 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
37030 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
37031 | THREADS_LINK="-l$flag" | |
37032 | ;; | |
37033 | esac | |
37034 | ||
37035 | save_LIBS="$LIBS" | |
e56f4f9e | 37036 | save_CXXFLAGS="$CXXFLAGS" |
a848cd7e | 37037 | LIBS="$THREADS_LINK $LIBS" |
e56f4f9e | 37038 | CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS" |
a848cd7e SC |
37039 | |
37040 | cat >conftest.$ac_ext <<_ACEOF | |
37041 | /* confdefs.h. */ | |
37042 | _ACEOF | |
37043 | cat confdefs.h >>conftest.$ac_ext | |
37044 | cat >>conftest.$ac_ext <<_ACEOF | |
37045 | /* end confdefs.h. */ | |
37046 | #include <pthread.h> | |
37047 | int | |
37048 | main () | |
37049 | { | |
37050 | pthread_create(0,0,0,0); | |
37051 | ; | |
37052 | return 0; | |
37053 | } | |
37054 | _ACEOF | |
37055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37057 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37058 | ac_status=$? |
ac1cb8d3 VS |
37059 | grep -v '^ *+' conftest.er1 >conftest.err |
37060 | rm -f conftest.er1 | |
37061 | cat conftest.err >&5 | |
a848cd7e SC |
37062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37063 | (exit $ac_status); } && | |
5d7b7554 | 37064 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37066 | (eval $ac_try) 2>&5 | |
37067 | ac_status=$? | |
37068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37069 | (exit $ac_status); }; } && | |
37070 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37072 | (eval $ac_try) 2>&5 | |
37073 | ac_status=$? | |
37074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37075 | (exit $ac_status); }; }; then | |
37076 | THREADS_OK=yes | |
37077 | else | |
37078 | echo "$as_me: failed program was:" >&5 | |
37079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37080 | ||
37081 | fi | |
ac1cb8d3 VS |
37082 | rm -f conftest.err conftest.$ac_objext \ |
37083 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37084 | |
37085 | LIBS="$save_LIBS" | |
e56f4f9e | 37086 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
37087 | |
37088 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
37089 | echo "${ECHO_T}$THREADS_OK" >&6 | |
37090 | if test "x$THREADS_OK" = "xyes"; then | |
37091 | break; | |
37092 | fi | |
37093 | ||
37094 | THREADS_LINK="" | |
e56f4f9e | 37095 | THREADS_CXXFLAGS="" |
a848cd7e SC |
37096 | done |
37097 | ||
37098 | if test "x$THREADS_OK" != "xyes"; then | |
37099 | wxUSE_THREADS=no | |
37100 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
37101 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
37102 | else | |
e56f4f9e | 37103 | LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS" |
a848cd7e SC |
37104 | LIBS="$THREADS_LINK $LIBS" |
37105 | ||
37106 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
37107 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
37108 | flag=no | |
37109 | case "${host}" in | |
37110 | *-aix*) | |
37111 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
37112 | flag="-D_THREAD_SAFE" | |
37113 | ;; | |
37114 | *-freebsd*) | |
37115 | flag="-D_THREAD_SAFE" | |
37116 | ;; | |
37117 | *-hp-hpux* ) | |
37118 | flag="-D_REENTRANT" | |
37119 | if test "x$GCC" != "xyes"; then | |
37120 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
37121 | fi | |
37122 | ;; | |
37123 | *solaris* | alpha*-osf*) | |
37124 | flag="-D_REENTRANT" | |
37125 | ;; | |
37126 | esac | |
37127 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
37128 | echo "${ECHO_T}${flag}" >&6 | |
37129 | if test "x$flag" != xno; then | |
e56f4f9e | 37130 | THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag" |
a848cd7e SC |
37131 | fi |
37132 | ||
e56f4f9e | 37133 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS" |
a848cd7e SC |
37134 | fi |
37135 | fi | |
37136 | ||
37137 | if test "$wxUSE_THREADS" = "yes" ; then | |
37138 | ||
37139 | for ac_func in thr_setconcurrency | |
37140 | do | |
37141 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37142 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37143 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37144 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37146 | else | |
37147 | cat >conftest.$ac_ext <<_ACEOF | |
37148 | /* confdefs.h. */ | |
37149 | _ACEOF | |
37150 | cat confdefs.h >>conftest.$ac_ext | |
37151 | cat >>conftest.$ac_ext <<_ACEOF | |
37152 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37153 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37155 | #define $ac_func innocuous_$ac_func | |
37156 | ||
a848cd7e SC |
37157 | /* System header to define __stub macros and hopefully few prototypes, |
37158 | which can conflict with char $ac_func (); below. | |
37159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37160 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37161 | |
a848cd7e SC |
37162 | #ifdef __STDC__ |
37163 | # include <limits.h> | |
37164 | #else | |
37165 | # include <assert.h> | |
37166 | #endif | |
ac1cb8d3 VS |
37167 | |
37168 | #undef $ac_func | |
37169 | ||
a848cd7e SC |
37170 | /* Override any gcc2 internal prototype to avoid an error. */ |
37171 | #ifdef __cplusplus | |
37172 | extern "C" | |
37173 | { | |
37174 | #endif | |
37175 | /* We use char because int might match the return type of a gcc2 | |
37176 | builtin and then its argument prototype would still apply. */ | |
37177 | char $ac_func (); | |
37178 | /* The GNU C library defines this for functions which it implements | |
37179 | to always fail with ENOSYS. Some functions are actually named | |
37180 | something starting with __ and the normal name is an alias. */ | |
37181 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37182 | choke me | |
37183 | #else | |
37184 | char (*f) () = $ac_func; | |
37185 | #endif | |
37186 | #ifdef __cplusplus | |
37187 | } | |
37188 | #endif | |
37189 | ||
37190 | int | |
37191 | main () | |
37192 | { | |
37193 | return f != $ac_func; | |
37194 | ; | |
37195 | return 0; | |
37196 | } | |
37197 | _ACEOF | |
37198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37200 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37201 | ac_status=$? |
ac1cb8d3 VS |
37202 | grep -v '^ *+' conftest.er1 >conftest.err |
37203 | rm -f conftest.er1 | |
37204 | cat conftest.err >&5 | |
a848cd7e SC |
37205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37206 | (exit $ac_status); } && | |
5d7b7554 | 37207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37209 | (eval $ac_try) 2>&5 | |
37210 | ac_status=$? | |
37211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37212 | (exit $ac_status); }; } && | |
37213 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37215 | (eval $ac_try) 2>&5 | |
37216 | ac_status=$? | |
37217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37218 | (exit $ac_status); }; }; then | |
37219 | eval "$as_ac_var=yes" | |
37220 | else | |
37221 | echo "$as_me: failed program was:" >&5 | |
37222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37223 | ||
37224 | eval "$as_ac_var=no" | |
37225 | fi | |
ac1cb8d3 VS |
37226 | rm -f conftest.err conftest.$ac_objext \ |
37227 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37228 | fi |
37229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37230 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37231 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37232 | cat >>confdefs.h <<_ACEOF | |
37233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37234 | _ACEOF | |
37235 | ||
37236 | fi | |
37237 | done | |
37238 | ||
37239 | ||
6ebeb4c7 VZ |
37240 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
37241 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
37242 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
37243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37244 | else | |
37245 | ||
37246 | cat >conftest.$ac_ext <<_ACEOF | |
37247 | /* confdefs.h. */ | |
37248 | _ACEOF | |
37249 | cat confdefs.h >>conftest.$ac_ext | |
37250 | cat >>conftest.$ac_ext <<_ACEOF | |
37251 | /* end confdefs.h. */ | |
37252 | #include <pthread.h> | |
37253 | void ThreadCleanupFunc(void *p); | |
37254 | ||
37255 | int | |
37256 | main () | |
37257 | { | |
37258 | ||
37259 | void *p; | |
37260 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
37261 | pthread_cleanup_pop(0); | |
37262 | ||
37263 | ; | |
37264 | return 0; | |
37265 | } | |
37266 | _ACEOF | |
37267 | rm -f conftest.$ac_objext | |
37268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37269 | (eval $ac_compile) 2>conftest.er1 | |
37270 | ac_status=$? | |
37271 | grep -v '^ *+' conftest.er1 >conftest.err | |
37272 | rm -f conftest.er1 | |
37273 | cat conftest.err >&5 | |
37274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37275 | (exit $ac_status); } && | |
5d7b7554 | 37276 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
37277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37278 | (eval $ac_try) 2>&5 | |
37279 | ac_status=$? | |
37280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37281 | (exit $ac_status); }; } && | |
37282 | { ac_try='test -s conftest.$ac_objext' | |
37283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37284 | (eval $ac_try) 2>&5 | |
37285 | ac_status=$? | |
37286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37287 | (exit $ac_status); }; }; then | |
37288 | ||
37289 | wx_cv_func_pthread_cleanup=yes | |
37290 | ||
37291 | else | |
37292 | echo "$as_me: failed program was:" >&5 | |
37293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37294 | ||
37295 | ||
37296 | wx_cv_func_pthread_cleanup=no | |
37297 | ||
37298 | ||
37299 | fi | |
37300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37301 | ||
37302 | fi | |
37303 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
37304 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
37305 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
37306 | cat >>confdefs.h <<\_ACEOF | |
37307 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
37308 | _ACEOF | |
37309 | ||
37310 | fi | |
37311 | ||
a848cd7e SC |
37312 | |
37313 | for ac_header in sched.h | |
37314 | do | |
37315 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37316 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37317 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37321 | fi | |
37322 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37323 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37324 | else | |
37325 | # Is the header compilable? | |
37326 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37327 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37328 | cat >conftest.$ac_ext <<_ACEOF | |
37329 | /* confdefs.h. */ | |
37330 | _ACEOF | |
37331 | cat confdefs.h >>conftest.$ac_ext | |
37332 | cat >>conftest.$ac_ext <<_ACEOF | |
37333 | /* end confdefs.h. */ | |
37334 | $ac_includes_default | |
37335 | #include <$ac_header> | |
37336 | _ACEOF | |
37337 | rm -f conftest.$ac_objext | |
37338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37339 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37340 | ac_status=$? |
ac1cb8d3 VS |
37341 | grep -v '^ *+' conftest.er1 >conftest.err |
37342 | rm -f conftest.er1 | |
37343 | cat conftest.err >&5 | |
a848cd7e SC |
37344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37345 | (exit $ac_status); } && | |
5d7b7554 | 37346 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37348 | (eval $ac_try) 2>&5 | |
37349 | ac_status=$? | |
37350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37351 | (exit $ac_status); }; } && | |
37352 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37354 | (eval $ac_try) 2>&5 | |
37355 | ac_status=$? | |
37356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37357 | (exit $ac_status); }; }; then | |
37358 | ac_header_compiler=yes | |
37359 | else | |
37360 | echo "$as_me: failed program was:" >&5 | |
37361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37362 | ||
37363 | ac_header_compiler=no | |
37364 | fi | |
ac1cb8d3 | 37365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37366 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37367 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37368 | ||
37369 | # Is the header present? | |
37370 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37371 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37372 | cat >conftest.$ac_ext <<_ACEOF | |
37373 | /* confdefs.h. */ | |
37374 | _ACEOF | |
37375 | cat confdefs.h >>conftest.$ac_ext | |
37376 | cat >>conftest.$ac_ext <<_ACEOF | |
37377 | /* end confdefs.h. */ | |
37378 | #include <$ac_header> | |
37379 | _ACEOF | |
37380 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37381 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37382 | ac_status=$? | |
37383 | grep -v '^ *+' conftest.er1 >conftest.err | |
37384 | rm -f conftest.er1 | |
37385 | cat conftest.err >&5 | |
37386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37387 | (exit $ac_status); } >/dev/null; then | |
37388 | if test -s conftest.err; then | |
5d7b7554 VZ |
37389 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
37390 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
37391 | else |
37392 | ac_cpp_err= | |
37393 | fi | |
37394 | else | |
37395 | ac_cpp_err=yes | |
37396 | fi | |
37397 | if test -z "$ac_cpp_err"; then | |
37398 | ac_header_preproc=yes | |
37399 | else | |
37400 | echo "$as_me: failed program was:" >&5 | |
37401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37402 | ||
37403 | ac_header_preproc=no | |
37404 | fi | |
37405 | rm -f conftest.err conftest.$ac_ext | |
37406 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37407 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37408 | ||
37409 | # So? What about this header? | |
5d7b7554 | 37410 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 37411 | yes:no: ) |
a848cd7e SC |
37412 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37413 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37414 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37415 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37416 | ac_header_preproc=yes | |
a848cd7e | 37417 | ;; |
ac1cb8d3 | 37418 | no:yes:* ) |
a848cd7e SC |
37419 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37420 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37421 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37422 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37423 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37424 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37425 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37426 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37427 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37428 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37429 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37430 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37431 | ( |
37432 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37433 | ## ----------------------------------------- ## |
37434 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37435 | ## ----------------------------------------- ## | |
a848cd7e SC |
37436 | _ASBOX |
37437 | ) | | |
37438 | sed "s/^/$as_me: WARNING: /" >&2 | |
37439 | ;; | |
37440 | esac | |
37441 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37442 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37443 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37445 | else | |
ac1cb8d3 | 37446 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37447 | fi |
37448 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37449 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37450 | ||
37451 | fi | |
37452 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37453 | cat >>confdefs.h <<_ACEOF | |
37454 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37455 | _ACEOF | |
37456 | ||
37457 | fi | |
37458 | ||
37459 | done | |
37460 | ||
37461 | if test "$ac_cv_header_sched_h" = "yes"; then | |
37462 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
37463 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
37464 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
37465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37466 | else | |
37467 | cat >conftest.$ac_ext <<_ACEOF | |
37468 | /* confdefs.h. */ | |
37469 | _ACEOF | |
37470 | cat confdefs.h >>conftest.$ac_ext | |
37471 | cat >>conftest.$ac_ext <<_ACEOF | |
37472 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37473 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
37474 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37475 | #define sched_yield innocuous_sched_yield | |
37476 | ||
a848cd7e SC |
37477 | /* System header to define __stub macros and hopefully few prototypes, |
37478 | which can conflict with char sched_yield (); below. | |
37479 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37480 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37481 | |
a848cd7e SC |
37482 | #ifdef __STDC__ |
37483 | # include <limits.h> | |
37484 | #else | |
37485 | # include <assert.h> | |
37486 | #endif | |
ac1cb8d3 VS |
37487 | |
37488 | #undef sched_yield | |
37489 | ||
a848cd7e SC |
37490 | /* Override any gcc2 internal prototype to avoid an error. */ |
37491 | #ifdef __cplusplus | |
37492 | extern "C" | |
37493 | { | |
37494 | #endif | |
37495 | /* We use char because int might match the return type of a gcc2 | |
37496 | builtin and then its argument prototype would still apply. */ | |
37497 | char sched_yield (); | |
37498 | /* The GNU C library defines this for functions which it implements | |
37499 | to always fail with ENOSYS. Some functions are actually named | |
37500 | something starting with __ and the normal name is an alias. */ | |
37501 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
37502 | choke me | |
37503 | #else | |
37504 | char (*f) () = sched_yield; | |
37505 | #endif | |
37506 | #ifdef __cplusplus | |
37507 | } | |
37508 | #endif | |
37509 | ||
37510 | int | |
37511 | main () | |
37512 | { | |
37513 | return f != sched_yield; | |
37514 | ; | |
37515 | return 0; | |
37516 | } | |
37517 | _ACEOF | |
37518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37520 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37521 | ac_status=$? |
ac1cb8d3 VS |
37522 | grep -v '^ *+' conftest.er1 >conftest.err |
37523 | rm -f conftest.er1 | |
37524 | cat conftest.err >&5 | |
a848cd7e SC |
37525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37526 | (exit $ac_status); } && | |
5d7b7554 | 37527 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37529 | (eval $ac_try) 2>&5 | |
37530 | ac_status=$? | |
37531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37532 | (exit $ac_status); }; } && | |
37533 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37535 | (eval $ac_try) 2>&5 | |
37536 | ac_status=$? | |
37537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37538 | (exit $ac_status); }; }; then | |
37539 | ac_cv_func_sched_yield=yes | |
37540 | else | |
37541 | echo "$as_me: failed program was:" >&5 | |
37542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37543 | ||
37544 | ac_cv_func_sched_yield=no | |
37545 | fi | |
ac1cb8d3 VS |
37546 | rm -f conftest.err conftest.$ac_objext \ |
37547 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37548 | fi |
37549 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
37550 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
37551 | if test $ac_cv_func_sched_yield = yes; then | |
37552 | cat >>confdefs.h <<\_ACEOF | |
37553 | #define HAVE_SCHED_YIELD 1 | |
37554 | _ACEOF | |
37555 | ||
37556 | else | |
37557 | ||
37558 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
37559 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
37560 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
37561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37562 | else | |
37563 | ac_check_lib_save_LIBS=$LIBS | |
37564 | LIBS="-lposix4 $LIBS" | |
37565 | cat >conftest.$ac_ext <<_ACEOF | |
37566 | /* confdefs.h. */ | |
37567 | _ACEOF | |
37568 | cat confdefs.h >>conftest.$ac_ext | |
37569 | cat >>conftest.$ac_ext <<_ACEOF | |
37570 | /* end confdefs.h. */ | |
37571 | ||
37572 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37573 | #ifdef __cplusplus | |
37574 | extern "C" | |
37575 | #endif | |
37576 | /* We use char because int might match the return type of a gcc2 | |
37577 | builtin and then its argument prototype would still apply. */ | |
37578 | char sched_yield (); | |
37579 | int | |
37580 | main () | |
37581 | { | |
37582 | sched_yield (); | |
37583 | ; | |
37584 | return 0; | |
37585 | } | |
37586 | _ACEOF | |
37587 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37589 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37590 | ac_status=$? |
ac1cb8d3 VS |
37591 | grep -v '^ *+' conftest.er1 >conftest.err |
37592 | rm -f conftest.er1 | |
37593 | cat conftest.err >&5 | |
a848cd7e SC |
37594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37595 | (exit $ac_status); } && | |
5d7b7554 | 37596 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37598 | (eval $ac_try) 2>&5 | |
37599 | ac_status=$? | |
37600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37601 | (exit $ac_status); }; } && | |
37602 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37604 | (eval $ac_try) 2>&5 | |
37605 | ac_status=$? | |
37606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37607 | (exit $ac_status); }; }; then | |
37608 | ac_cv_lib_posix4_sched_yield=yes | |
37609 | else | |
37610 | echo "$as_me: failed program was:" >&5 | |
37611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37612 | ||
37613 | ac_cv_lib_posix4_sched_yield=no | |
37614 | fi | |
ac1cb8d3 VS |
37615 | rm -f conftest.err conftest.$ac_objext \ |
37616 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37617 | LIBS=$ac_check_lib_save_LIBS |
37618 | fi | |
37619 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
37620 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
37621 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
37622 | cat >>confdefs.h <<\_ACEOF | |
37623 | #define HAVE_SCHED_YIELD 1 | |
37624 | _ACEOF | |
37625 | POSIX4_LINK=" -lposix4" | |
37626 | else | |
37627 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
37628 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
37629 | ||
37630 | fi | |
37631 | ||
37632 | ||
37633 | ||
37634 | fi | |
37635 | ||
37636 | fi | |
37637 | ||
37638 | HAVE_PRIOR_FUNCS=0 | |
37639 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
37640 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
37641 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
37642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37643 | else | |
37644 | cat >conftest.$ac_ext <<_ACEOF | |
37645 | /* confdefs.h. */ | |
37646 | _ACEOF | |
37647 | cat confdefs.h >>conftest.$ac_ext | |
37648 | cat >>conftest.$ac_ext <<_ACEOF | |
37649 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37650 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
37651 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37652 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
37653 | ||
a848cd7e SC |
37654 | /* System header to define __stub macros and hopefully few prototypes, |
37655 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
37656 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37657 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37658 | |
a848cd7e SC |
37659 | #ifdef __STDC__ |
37660 | # include <limits.h> | |
37661 | #else | |
37662 | # include <assert.h> | |
37663 | #endif | |
ac1cb8d3 VS |
37664 | |
37665 | #undef pthread_attr_getschedpolicy | |
37666 | ||
a848cd7e SC |
37667 | /* Override any gcc2 internal prototype to avoid an error. */ |
37668 | #ifdef __cplusplus | |
37669 | extern "C" | |
37670 | { | |
37671 | #endif | |
37672 | /* We use char because int might match the return type of a gcc2 | |
37673 | builtin and then its argument prototype would still apply. */ | |
37674 | char pthread_attr_getschedpolicy (); | |
37675 | /* The GNU C library defines this for functions which it implements | |
37676 | to always fail with ENOSYS. Some functions are actually named | |
37677 | something starting with __ and the normal name is an alias. */ | |
37678 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
37679 | choke me | |
37680 | #else | |
37681 | char (*f) () = pthread_attr_getschedpolicy; | |
37682 | #endif | |
37683 | #ifdef __cplusplus | |
37684 | } | |
37685 | #endif | |
37686 | ||
37687 | int | |
37688 | main () | |
37689 | { | |
37690 | return f != pthread_attr_getschedpolicy; | |
37691 | ; | |
37692 | return 0; | |
37693 | } | |
37694 | _ACEOF | |
37695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37697 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37698 | ac_status=$? |
ac1cb8d3 VS |
37699 | grep -v '^ *+' conftest.er1 >conftest.err |
37700 | rm -f conftest.er1 | |
37701 | cat conftest.err >&5 | |
a848cd7e SC |
37702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37703 | (exit $ac_status); } && | |
5d7b7554 | 37704 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37706 | (eval $ac_try) 2>&5 | |
37707 | ac_status=$? | |
37708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37709 | (exit $ac_status); }; } && | |
37710 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37712 | (eval $ac_try) 2>&5 | |
37713 | ac_status=$? | |
37714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37715 | (exit $ac_status); }; }; then | |
37716 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
37717 | else | |
37718 | echo "$as_me: failed program was:" >&5 | |
37719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37720 | ||
37721 | ac_cv_func_pthread_attr_getschedpolicy=no | |
37722 | fi | |
ac1cb8d3 VS |
37723 | rm -f conftest.err conftest.$ac_objext \ |
37724 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37725 | fi |
37726 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
37727 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
37728 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
37729 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
37730 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
37731 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
37732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37733 | else | |
37734 | cat >conftest.$ac_ext <<_ACEOF | |
37735 | /* confdefs.h. */ | |
37736 | _ACEOF | |
37737 | cat confdefs.h >>conftest.$ac_ext | |
37738 | cat >>conftest.$ac_ext <<_ACEOF | |
37739 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37740 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
37741 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37742 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
37743 | ||
a848cd7e SC |
37744 | /* System header to define __stub macros and hopefully few prototypes, |
37745 | which can conflict with char pthread_attr_setschedparam (); below. | |
37746 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37747 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37748 | |
a848cd7e SC |
37749 | #ifdef __STDC__ |
37750 | # include <limits.h> | |
37751 | #else | |
37752 | # include <assert.h> | |
37753 | #endif | |
ac1cb8d3 VS |
37754 | |
37755 | #undef pthread_attr_setschedparam | |
37756 | ||
a848cd7e SC |
37757 | /* Override any gcc2 internal prototype to avoid an error. */ |
37758 | #ifdef __cplusplus | |
37759 | extern "C" | |
37760 | { | |
37761 | #endif | |
37762 | /* We use char because int might match the return type of a gcc2 | |
37763 | builtin and then its argument prototype would still apply. */ | |
37764 | char pthread_attr_setschedparam (); | |
37765 | /* The GNU C library defines this for functions which it implements | |
37766 | to always fail with ENOSYS. Some functions are actually named | |
37767 | something starting with __ and the normal name is an alias. */ | |
37768 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
37769 | choke me | |
37770 | #else | |
37771 | char (*f) () = pthread_attr_setschedparam; | |
37772 | #endif | |
37773 | #ifdef __cplusplus | |
37774 | } | |
37775 | #endif | |
37776 | ||
37777 | int | |
37778 | main () | |
37779 | { | |
37780 | return f != pthread_attr_setschedparam; | |
37781 | ; | |
37782 | return 0; | |
37783 | } | |
37784 | _ACEOF | |
37785 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37787 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37788 | ac_status=$? |
ac1cb8d3 VS |
37789 | grep -v '^ *+' conftest.er1 >conftest.err |
37790 | rm -f conftest.er1 | |
37791 | cat conftest.err >&5 | |
a848cd7e SC |
37792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37793 | (exit $ac_status); } && | |
5d7b7554 | 37794 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37796 | (eval $ac_try) 2>&5 | |
37797 | ac_status=$? | |
37798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37799 | (exit $ac_status); }; } && | |
37800 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37802 | (eval $ac_try) 2>&5 | |
37803 | ac_status=$? | |
37804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37805 | (exit $ac_status); }; }; then | |
37806 | ac_cv_func_pthread_attr_setschedparam=yes | |
37807 | else | |
37808 | echo "$as_me: failed program was:" >&5 | |
37809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37810 | ||
37811 | ac_cv_func_pthread_attr_setschedparam=no | |
37812 | fi | |
ac1cb8d3 VS |
37813 | rm -f conftest.err conftest.$ac_objext \ |
37814 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37815 | fi |
37816 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
37817 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
37818 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
37819 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
37820 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
37821 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
37822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37823 | else | |
37824 | cat >conftest.$ac_ext <<_ACEOF | |
37825 | /* confdefs.h. */ | |
37826 | _ACEOF | |
37827 | cat confdefs.h >>conftest.$ac_ext | |
37828 | cat >>conftest.$ac_ext <<_ACEOF | |
37829 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37830 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
37831 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37832 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
37833 | ||
a848cd7e SC |
37834 | /* System header to define __stub macros and hopefully few prototypes, |
37835 | which can conflict with char sched_get_priority_max (); below. | |
37836 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37837 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37838 | |
a848cd7e SC |
37839 | #ifdef __STDC__ |
37840 | # include <limits.h> | |
37841 | #else | |
37842 | # include <assert.h> | |
37843 | #endif | |
ac1cb8d3 VS |
37844 | |
37845 | #undef sched_get_priority_max | |
37846 | ||
a848cd7e SC |
37847 | /* Override any gcc2 internal prototype to avoid an error. */ |
37848 | #ifdef __cplusplus | |
37849 | extern "C" | |
37850 | { | |
37851 | #endif | |
37852 | /* We use char because int might match the return type of a gcc2 | |
37853 | builtin and then its argument prototype would still apply. */ | |
37854 | char sched_get_priority_max (); | |
37855 | /* The GNU C library defines this for functions which it implements | |
37856 | to always fail with ENOSYS. Some functions are actually named | |
37857 | something starting with __ and the normal name is an alias. */ | |
37858 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
37859 | choke me | |
37860 | #else | |
37861 | char (*f) () = sched_get_priority_max; | |
37862 | #endif | |
37863 | #ifdef __cplusplus | |
37864 | } | |
37865 | #endif | |
37866 | ||
37867 | int | |
37868 | main () | |
37869 | { | |
37870 | return f != sched_get_priority_max; | |
37871 | ; | |
37872 | return 0; | |
37873 | } | |
37874 | _ACEOF | |
37875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37877 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37878 | ac_status=$? |
ac1cb8d3 VS |
37879 | grep -v '^ *+' conftest.er1 >conftest.err |
37880 | rm -f conftest.er1 | |
37881 | cat conftest.err >&5 | |
a848cd7e SC |
37882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37883 | (exit $ac_status); } && | |
5d7b7554 | 37884 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37886 | (eval $ac_try) 2>&5 | |
37887 | ac_status=$? | |
37888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37889 | (exit $ac_status); }; } && | |
37890 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37892 | (eval $ac_try) 2>&5 | |
37893 | ac_status=$? | |
37894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37895 | (exit $ac_status); }; }; then | |
37896 | ac_cv_func_sched_get_priority_max=yes | |
37897 | else | |
37898 | echo "$as_me: failed program was:" >&5 | |
37899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37900 | ||
37901 | ac_cv_func_sched_get_priority_max=no | |
37902 | fi | |
ac1cb8d3 VS |
37903 | rm -f conftest.err conftest.$ac_objext \ |
37904 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37905 | fi |
37906 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
37907 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
37908 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
37909 | HAVE_PRIOR_FUNCS=1 | |
37910 | else | |
37911 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
37912 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
37913 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
37914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37915 | else | |
37916 | ac_check_lib_save_LIBS=$LIBS | |
37917 | LIBS="-lposix4 $LIBS" | |
37918 | cat >conftest.$ac_ext <<_ACEOF | |
37919 | /* confdefs.h. */ | |
37920 | _ACEOF | |
37921 | cat confdefs.h >>conftest.$ac_ext | |
37922 | cat >>conftest.$ac_ext <<_ACEOF | |
37923 | /* end confdefs.h. */ | |
37924 | ||
37925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37926 | #ifdef __cplusplus | |
37927 | extern "C" | |
37928 | #endif | |
37929 | /* We use char because int might match the return type of a gcc2 | |
37930 | builtin and then its argument prototype would still apply. */ | |
37931 | char sched_get_priority_max (); | |
37932 | int | |
37933 | main () | |
37934 | { | |
37935 | sched_get_priority_max (); | |
37936 | ; | |
37937 | return 0; | |
37938 | } | |
37939 | _ACEOF | |
37940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37942 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37943 | ac_status=$? |
ac1cb8d3 VS |
37944 | grep -v '^ *+' conftest.er1 >conftest.err |
37945 | rm -f conftest.er1 | |
37946 | cat conftest.err >&5 | |
a848cd7e SC |
37947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37948 | (exit $ac_status); } && | |
5d7b7554 | 37949 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37951 | (eval $ac_try) 2>&5 | |
37952 | ac_status=$? | |
37953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37954 | (exit $ac_status); }; } && | |
37955 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37957 | (eval $ac_try) 2>&5 | |
37958 | ac_status=$? | |
37959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37960 | (exit $ac_status); }; }; then | |
37961 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
37962 | else | |
37963 | echo "$as_me: failed program was:" >&5 | |
37964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37965 | ||
37966 | ac_cv_lib_posix4_sched_get_priority_max=no | |
37967 | fi | |
ac1cb8d3 VS |
37968 | rm -f conftest.err conftest.$ac_objext \ |
37969 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37970 | LIBS=$ac_check_lib_save_LIBS |
37971 | fi | |
37972 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
37973 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
37974 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
37975 | ||
37976 | HAVE_PRIOR_FUNCS=1 | |
37977 | POSIX4_LINK=" -lposix4" | |
37978 | ||
37979 | fi | |
37980 | ||
37981 | ||
37982 | fi | |
37983 | ||
37984 | ||
37985 | fi | |
37986 | ||
37987 | ||
37988 | fi | |
37989 | ||
37990 | ||
37991 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
37992 | cat >>confdefs.h <<\_ACEOF | |
37993 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
37994 | _ACEOF | |
37995 | ||
37996 | else | |
37997 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
37998 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
37999 | fi | |
38000 | ||
38001 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
38002 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
38003 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
38004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38005 | else | |
38006 | cat >conftest.$ac_ext <<_ACEOF | |
38007 | /* confdefs.h. */ | |
38008 | _ACEOF | |
38009 | cat confdefs.h >>conftest.$ac_ext | |
38010 | cat >>conftest.$ac_ext <<_ACEOF | |
38011 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38012 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
38013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38014 | #define pthread_cancel innocuous_pthread_cancel | |
38015 | ||
a848cd7e SC |
38016 | /* System header to define __stub macros and hopefully few prototypes, |
38017 | which can conflict with char pthread_cancel (); below. | |
38018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38019 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38020 | |
a848cd7e SC |
38021 | #ifdef __STDC__ |
38022 | # include <limits.h> | |
38023 | #else | |
38024 | # include <assert.h> | |
38025 | #endif | |
ac1cb8d3 VS |
38026 | |
38027 | #undef pthread_cancel | |
38028 | ||
a848cd7e SC |
38029 | /* Override any gcc2 internal prototype to avoid an error. */ |
38030 | #ifdef __cplusplus | |
38031 | extern "C" | |
38032 | { | |
38033 | #endif | |
38034 | /* We use char because int might match the return type of a gcc2 | |
38035 | builtin and then its argument prototype would still apply. */ | |
38036 | char pthread_cancel (); | |
38037 | /* The GNU C library defines this for functions which it implements | |
38038 | to always fail with ENOSYS. Some functions are actually named | |
38039 | something starting with __ and the normal name is an alias. */ | |
38040 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
38041 | choke me | |
38042 | #else | |
38043 | char (*f) () = pthread_cancel; | |
38044 | #endif | |
38045 | #ifdef __cplusplus | |
38046 | } | |
38047 | #endif | |
38048 | ||
38049 | int | |
38050 | main () | |
38051 | { | |
38052 | return f != pthread_cancel; | |
38053 | ; | |
38054 | return 0; | |
38055 | } | |
38056 | _ACEOF | |
38057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38059 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38060 | ac_status=$? |
ac1cb8d3 VS |
38061 | grep -v '^ *+' conftest.er1 >conftest.err |
38062 | rm -f conftest.er1 | |
38063 | cat conftest.err >&5 | |
a848cd7e SC |
38064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38065 | (exit $ac_status); } && | |
5d7b7554 | 38066 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
38072 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38074 | (eval $ac_try) 2>&5 | |
38075 | ac_status=$? | |
38076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38077 | (exit $ac_status); }; }; then | |
38078 | ac_cv_func_pthread_cancel=yes | |
38079 | else | |
38080 | echo "$as_me: failed program was:" >&5 | |
38081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38082 | ||
38083 | ac_cv_func_pthread_cancel=no | |
38084 | fi | |
ac1cb8d3 VS |
38085 | rm -f conftest.err conftest.$ac_objext \ |
38086 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38087 | fi |
38088 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
38089 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
38090 | if test $ac_cv_func_pthread_cancel = yes; then | |
38091 | cat >>confdefs.h <<\_ACEOF | |
38092 | #define HAVE_PTHREAD_CANCEL 1 | |
38093 | _ACEOF | |
38094 | ||
38095 | else | |
38096 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
38097 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
38098 | fi | |
38099 | ||
38100 | ||
abc736fd MW |
38101 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
38102 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
38103 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
38104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38105 | else | |
38106 | cat >conftest.$ac_ext <<_ACEOF | |
38107 | /* confdefs.h. */ | |
38108 | _ACEOF | |
38109 | cat confdefs.h >>conftest.$ac_ext | |
38110 | cat >>conftest.$ac_ext <<_ACEOF | |
38111 | /* end confdefs.h. */ | |
38112 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
38113 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38114 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
38115 | ||
38116 | /* System header to define __stub macros and hopefully few prototypes, | |
38117 | which can conflict with char pthread_attr_setstacksize (); below. | |
38118 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38119 | <limits.h> exists even on freestanding compilers. */ | |
38120 | ||
38121 | #ifdef __STDC__ | |
38122 | # include <limits.h> | |
38123 | #else | |
38124 | # include <assert.h> | |
38125 | #endif | |
38126 | ||
38127 | #undef pthread_attr_setstacksize | |
38128 | ||
38129 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38130 | #ifdef __cplusplus | |
38131 | extern "C" | |
38132 | { | |
38133 | #endif | |
38134 | /* We use char because int might match the return type of a gcc2 | |
38135 | builtin and then its argument prototype would still apply. */ | |
38136 | char pthread_attr_setstacksize (); | |
38137 | /* The GNU C library defines this for functions which it implements | |
38138 | to always fail with ENOSYS. Some functions are actually named | |
38139 | something starting with __ and the normal name is an alias. */ | |
38140 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
38141 | choke me | |
38142 | #else | |
38143 | char (*f) () = pthread_attr_setstacksize; | |
38144 | #endif | |
38145 | #ifdef __cplusplus | |
38146 | } | |
38147 | #endif | |
38148 | ||
38149 | int | |
38150 | main () | |
38151 | { | |
38152 | return f != pthread_attr_setstacksize; | |
38153 | ; | |
38154 | return 0; | |
38155 | } | |
38156 | _ACEOF | |
38157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38159 | (eval $ac_link) 2>conftest.er1 | |
38160 | ac_status=$? | |
38161 | grep -v '^ *+' conftest.er1 >conftest.err | |
38162 | rm -f conftest.er1 | |
38163 | cat conftest.err >&5 | |
38164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38165 | (exit $ac_status); } && | |
5d7b7554 | 38166 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
38167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38168 | (eval $ac_try) 2>&5 | |
38169 | ac_status=$? | |
38170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38171 | (exit $ac_status); }; } && | |
38172 | { ac_try='test -s conftest$ac_exeext' | |
38173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38174 | (eval $ac_try) 2>&5 | |
38175 | ac_status=$? | |
38176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38177 | (exit $ac_status); }; }; then | |
38178 | ac_cv_func_pthread_attr_setstacksize=yes | |
38179 | else | |
38180 | echo "$as_me: failed program was:" >&5 | |
38181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38182 | ||
38183 | ac_cv_func_pthread_attr_setstacksize=no | |
38184 | fi | |
38185 | rm -f conftest.err conftest.$ac_objext \ | |
38186 | conftest$ac_exeext conftest.$ac_ext | |
38187 | fi | |
38188 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
38189 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
38190 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
38191 | cat >>confdefs.h <<\_ACEOF | |
38192 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
38193 | _ACEOF | |
38194 | ||
38195 | fi | |
38196 | ||
a848cd7e SC |
38197 | |
38198 | ||
38199 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
38200 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
38201 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
38202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38203 | else | |
38204 | ||
38205 | cat >conftest.$ac_ext <<_ACEOF | |
38206 | /* confdefs.h. */ | |
38207 | _ACEOF | |
38208 | cat confdefs.h >>conftest.$ac_ext | |
38209 | cat >>conftest.$ac_ext <<_ACEOF | |
38210 | /* end confdefs.h. */ | |
38211 | #include <pthread.h> | |
38212 | int | |
38213 | main () | |
38214 | { | |
38215 | ||
38216 | pthread_mutexattr_t attr; | |
38217 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38218 | ||
38219 | ; | |
38220 | return 0; | |
38221 | } | |
38222 | _ACEOF | |
38223 | rm -f conftest.$ac_objext | |
38224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38225 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38226 | ac_status=$? |
ac1cb8d3 VS |
38227 | grep -v '^ *+' conftest.er1 >conftest.err |
38228 | rm -f conftest.er1 | |
38229 | cat conftest.err >&5 | |
a848cd7e SC |
38230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38231 | (exit $ac_status); } && | |
5d7b7554 | 38232 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38234 | (eval $ac_try) 2>&5 | |
38235 | ac_status=$? | |
38236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38237 | (exit $ac_status); }; } && | |
38238 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38240 | (eval $ac_try) 2>&5 | |
38241 | ac_status=$? | |
38242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38243 | (exit $ac_status); }; }; then | |
123dca7d | 38244 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
38245 | else |
38246 | echo "$as_me: failed program was:" >&5 | |
38247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38248 | ||
123dca7d | 38249 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
38250 | |
38251 | fi | |
ac1cb8d3 | 38252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38253 | |
38254 | fi | |
38255 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
38256 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
38257 | ||
38258 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
38259 | cat >>confdefs.h <<\_ACEOF | |
38260 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
38261 | _ACEOF | |
38262 | ||
123dca7d VZ |
38263 | |
38264 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
38265 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
38266 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
38267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38268 | else | |
38269 | ||
38270 | cat >conftest.$ac_ext <<_ACEOF | |
38271 | /* confdefs.h. */ | |
38272 | _ACEOF | |
38273 | cat confdefs.h >>conftest.$ac_ext | |
38274 | cat >>conftest.$ac_ext <<_ACEOF | |
38275 | /* end confdefs.h. */ | |
38276 | #include <pthread.h> | |
38277 | int | |
38278 | main () | |
38279 | { | |
38280 | ||
38281 | pthread_mutexattr_t attr; | |
38282 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38283 | ||
38284 | ; | |
38285 | return 0; | |
38286 | } | |
38287 | _ACEOF | |
38288 | rm -f conftest.$ac_objext | |
38289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38290 | (eval $ac_compile) 2>conftest.er1 | |
38291 | ac_status=$? | |
38292 | grep -v '^ *+' conftest.er1 >conftest.err | |
38293 | rm -f conftest.er1 | |
38294 | cat conftest.err >&5 | |
38295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38296 | (exit $ac_status); } && | |
5d7b7554 | 38297 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
123dca7d VZ |
38298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38299 | (eval $ac_try) 2>&5 | |
38300 | ac_status=$? | |
38301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38302 | (exit $ac_status); }; } && | |
38303 | { ac_try='test -s conftest.$ac_objext' | |
38304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38305 | (eval $ac_try) 2>&5 | |
38306 | ac_status=$? | |
38307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38308 | (exit $ac_status); }; }; then | |
38309 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
38310 | else | |
38311 | echo "$as_me: failed program was:" >&5 | |
38312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38313 | ||
38314 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
38315 | ||
38316 | fi | |
38317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38318 | ||
38319 | fi | |
38320 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
38321 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
38322 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
38323 | cat >>confdefs.h <<\_ACEOF | |
38324 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
38325 | _ACEOF | |
38326 | ||
38327 | fi | |
a848cd7e SC |
38328 | else |
38329 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
38330 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
38331 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
38332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38333 | else | |
38334 | ||
38335 | cat >conftest.$ac_ext <<_ACEOF | |
38336 | /* confdefs.h. */ | |
38337 | _ACEOF | |
38338 | cat confdefs.h >>conftest.$ac_ext | |
38339 | cat >>conftest.$ac_ext <<_ACEOF | |
38340 | /* end confdefs.h. */ | |
38341 | #include <pthread.h> | |
38342 | int | |
38343 | main () | |
38344 | { | |
38345 | ||
38346 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
38347 | ||
38348 | ; | |
38349 | return 0; | |
38350 | } | |
38351 | _ACEOF | |
38352 | rm -f conftest.$ac_objext | |
38353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38354 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38355 | ac_status=$? |
ac1cb8d3 VS |
38356 | grep -v '^ *+' conftest.er1 >conftest.err |
38357 | rm -f conftest.er1 | |
38358 | cat conftest.err >&5 | |
a848cd7e SC |
38359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38360 | (exit $ac_status); } && | |
5d7b7554 | 38361 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38363 | (eval $ac_try) 2>&5 | |
38364 | ac_status=$? | |
38365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38366 | (exit $ac_status); }; } && | |
38367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38369 | (eval $ac_try) 2>&5 | |
38370 | ac_status=$? | |
38371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38372 | (exit $ac_status); }; }; then | |
38373 | ||
38374 | wx_cv_type_pthread_rec_mutex_init=yes | |
38375 | ||
38376 | else | |
38377 | echo "$as_me: failed program was:" >&5 | |
38378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38379 | ||
38380 | ||
38381 | wx_cv_type_pthread_rec_mutex_init=no | |
38382 | ||
38383 | ||
38384 | fi | |
ac1cb8d3 | 38385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38386 | |
38387 | fi | |
38388 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
38389 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
38390 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
38391 | cat >>confdefs.h <<\_ACEOF | |
38392 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
38393 | _ACEOF | |
38394 | ||
38395 | else | |
38396 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
38397 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
38398 | fi | |
38399 | fi | |
38400 | fi | |
38401 | ||
38402 | else | |
38403 | if test "$wxUSE_THREADS" = "yes" ; then | |
38404 | case "${host}" in | |
38405 | *-*-mingw32* ) | |
38406 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
38407 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
38408 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
38409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38410 | else | |
38411 | ||
e56f4f9e VZ |
38412 | CXXFLAGS_OLD="$CXXFLAGS" |
38413 | CXXFLAGS="-mthreads $CXXFLAGS" | |
a848cd7e SC |
38414 | cat >conftest.$ac_ext <<_ACEOF |
38415 | /* confdefs.h. */ | |
38416 | _ACEOF | |
38417 | cat confdefs.h >>conftest.$ac_ext | |
38418 | cat >>conftest.$ac_ext <<_ACEOF | |
38419 | /* end confdefs.h. */ | |
38420 | ||
38421 | int | |
38422 | main () | |
38423 | { | |
38424 | ||
38425 | ; | |
38426 | return 0; | |
38427 | } | |
38428 | _ACEOF | |
38429 | rm -f conftest.$ac_objext | |
38430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38431 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38432 | ac_status=$? |
ac1cb8d3 VS |
38433 | grep -v '^ *+' conftest.er1 >conftest.err |
38434 | rm -f conftest.er1 | |
38435 | cat conftest.err >&5 | |
a848cd7e SC |
38436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38437 | (exit $ac_status); } && | |
5d7b7554 | 38438 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38440 | (eval $ac_try) 2>&5 | |
38441 | ac_status=$? | |
38442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38443 | (exit $ac_status); }; } && | |
38444 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38446 | (eval $ac_try) 2>&5 | |
38447 | ac_status=$? | |
38448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38449 | (exit $ac_status); }; }; then | |
38450 | wx_cv_cflags_mthread=yes | |
38451 | else | |
38452 | echo "$as_me: failed program was:" >&5 | |
38453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38454 | ||
38455 | wx_cv_cflags_mthread=no | |
38456 | ||
38457 | fi | |
ac1cb8d3 | 38458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38459 | |
38460 | ||
38461 | fi | |
38462 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
38463 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
38464 | ||
38465 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
e56f4f9e | 38466 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads" |
a848cd7e SC |
38467 | LDFLAGS="$LDFLAGS -mthreads" |
38468 | else | |
e56f4f9e | 38469 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
38470 | fi |
38471 | ;; | |
38472 | *-pc-os2*emx ) | |
5ff751d6 VZ |
38473 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
38474 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
38475 | LDFLAGS="$LDFLAGS -Zmt" |
38476 | ;; | |
38477 | esac | |
38478 | fi | |
38479 | fi | |
38480 | ||
004ee6da RL |
38481 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
38482 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
38483 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
38484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
38485 | else | |
38486 | cat >conftest.$ac_ext <<_ACEOF | |
38487 | /* confdefs.h. */ | |
38488 | _ACEOF | |
38489 | cat confdefs.h >>conftest.$ac_ext | |
38490 | cat >>conftest.$ac_ext <<_ACEOF | |
38491 | /* end confdefs.h. */ | |
004ee6da | 38492 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 38493 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 38494 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 38495 | |
a848cd7e | 38496 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 38497 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
38498 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
38499 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38500 | |
a848cd7e SC |
38501 | #ifdef __STDC__ |
38502 | # include <limits.h> | |
38503 | #else | |
38504 | # include <assert.h> | |
38505 | #endif | |
ac1cb8d3 | 38506 | |
004ee6da | 38507 | #undef localtime_r |
ac1cb8d3 | 38508 | |
a848cd7e SC |
38509 | /* Override any gcc2 internal prototype to avoid an error. */ |
38510 | #ifdef __cplusplus | |
38511 | extern "C" | |
38512 | { | |
38513 | #endif | |
38514 | /* We use char because int might match the return type of a gcc2 | |
38515 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 38516 | char localtime_r (); |
a848cd7e SC |
38517 | /* The GNU C library defines this for functions which it implements |
38518 | to always fail with ENOSYS. Some functions are actually named | |
38519 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 38520 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
38521 | choke me |
38522 | #else | |
004ee6da | 38523 | char (*f) () = localtime_r; |
a848cd7e SC |
38524 | #endif |
38525 | #ifdef __cplusplus | |
38526 | } | |
38527 | #endif | |
38528 | ||
38529 | int | |
38530 | main () | |
38531 | { | |
004ee6da RL |
38532 | return f != localtime_r; |
38533 | ; | |
38534 | return 0; | |
38535 | } | |
38536 | _ACEOF | |
38537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38539 | (eval $ac_link) 2>conftest.er1 | |
38540 | ac_status=$? | |
38541 | grep -v '^ *+' conftest.er1 >conftest.err | |
38542 | rm -f conftest.er1 | |
38543 | cat conftest.err >&5 | |
38544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38545 | (exit $ac_status); } && | |
5d7b7554 | 38546 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38548 | (eval $ac_try) 2>&5 | |
38549 | ac_status=$? | |
38550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38551 | (exit $ac_status); }; } && | |
38552 | { ac_try='test -s conftest$ac_exeext' | |
38553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38554 | (eval $ac_try) 2>&5 | |
38555 | ac_status=$? | |
38556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38557 | (exit $ac_status); }; }; then | |
38558 | ac_cv_func_localtime_r=yes | |
38559 | else | |
38560 | echo "$as_me: failed program was:" >&5 | |
38561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38562 | ||
38563 | ac_cv_func_localtime_r=no | |
38564 | fi | |
38565 | rm -f conftest.err conftest.$ac_objext \ | |
38566 | conftest$ac_exeext conftest.$ac_ext | |
38567 | fi | |
38568 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
38569 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
38570 | if test $ac_cv_func_localtime_r = yes; then | |
38571 | cat >>confdefs.h <<\_ACEOF | |
38572 | #define HAVE_LOCALTIME_R 1 | |
38573 | _ACEOF | |
38574 | ||
38575 | fi | |
38576 | ||
38577 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
38578 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
38579 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
38580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38581 | else | |
38582 | cat >conftest.$ac_ext <<_ACEOF | |
38583 | /* confdefs.h. */ | |
38584 | _ACEOF | |
38585 | cat confdefs.h >>conftest.$ac_ext | |
38586 | cat >>conftest.$ac_ext <<_ACEOF | |
38587 | /* end confdefs.h. */ | |
38588 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
38589 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38590 | #define gmtime_r innocuous_gmtime_r | |
38591 | ||
38592 | /* System header to define __stub macros and hopefully few prototypes, | |
38593 | which can conflict with char gmtime_r (); below. | |
38594 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38595 | <limits.h> exists even on freestanding compilers. */ | |
38596 | ||
38597 | #ifdef __STDC__ | |
38598 | # include <limits.h> | |
38599 | #else | |
38600 | # include <assert.h> | |
38601 | #endif | |
38602 | ||
38603 | #undef gmtime_r | |
38604 | ||
38605 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38606 | #ifdef __cplusplus | |
38607 | extern "C" | |
38608 | { | |
38609 | #endif | |
38610 | /* We use char because int might match the return type of a gcc2 | |
38611 | builtin and then its argument prototype would still apply. */ | |
38612 | char gmtime_r (); | |
38613 | /* The GNU C library defines this for functions which it implements | |
38614 | to always fail with ENOSYS. Some functions are actually named | |
38615 | something starting with __ and the normal name is an alias. */ | |
38616 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
38617 | choke me | |
38618 | #else | |
38619 | char (*f) () = gmtime_r; | |
38620 | #endif | |
38621 | #ifdef __cplusplus | |
38622 | } | |
38623 | #endif | |
38624 | ||
38625 | int | |
38626 | main () | |
38627 | { | |
38628 | return f != gmtime_r; | |
38629 | ; | |
38630 | return 0; | |
38631 | } | |
38632 | _ACEOF | |
38633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38635 | (eval $ac_link) 2>conftest.er1 | |
38636 | ac_status=$? | |
38637 | grep -v '^ *+' conftest.er1 >conftest.err | |
38638 | rm -f conftest.er1 | |
38639 | cat conftest.err >&5 | |
38640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38641 | (exit $ac_status); } && | |
5d7b7554 | 38642 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38644 | (eval $ac_try) 2>&5 | |
38645 | ac_status=$? | |
38646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38647 | (exit $ac_status); }; } && | |
38648 | { ac_try='test -s conftest$ac_exeext' | |
38649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38650 | (eval $ac_try) 2>&5 | |
38651 | ac_status=$? | |
38652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38653 | (exit $ac_status); }; }; then | |
38654 | ac_cv_func_gmtime_r=yes | |
38655 | else | |
38656 | echo "$as_me: failed program was:" >&5 | |
38657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38658 | ||
38659 | ac_cv_func_gmtime_r=no | |
38660 | fi | |
38661 | rm -f conftest.err conftest.$ac_objext \ | |
38662 | conftest$ac_exeext conftest.$ac_ext | |
38663 | fi | |
38664 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
38665 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
38666 | if test $ac_cv_func_gmtime_r = yes; then | |
38667 | cat >>confdefs.h <<\_ACEOF | |
38668 | #define HAVE_GMTIME_R 1 | |
38669 | _ACEOF | |
38670 | ||
38671 | fi | |
38672 | ||
38673 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
38674 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
38675 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
38676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38677 | else | |
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 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
38685 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38686 | #define readdir_r innocuous_readdir_r | |
38687 | ||
38688 | /* System header to define __stub macros and hopefully few prototypes, | |
38689 | which can conflict with char readdir_r (); below. | |
38690 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38691 | <limits.h> exists even on freestanding compilers. */ | |
38692 | ||
38693 | #ifdef __STDC__ | |
38694 | # include <limits.h> | |
38695 | #else | |
38696 | # include <assert.h> | |
38697 | #endif | |
38698 | ||
38699 | #undef readdir_r | |
38700 | ||
38701 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38702 | #ifdef __cplusplus | |
38703 | extern "C" | |
38704 | { | |
38705 | #endif | |
38706 | /* We use char because int might match the return type of a gcc2 | |
38707 | builtin and then its argument prototype would still apply. */ | |
38708 | char readdir_r (); | |
38709 | /* The GNU C library defines this for functions which it implements | |
38710 | to always fail with ENOSYS. Some functions are actually named | |
38711 | something starting with __ and the normal name is an alias. */ | |
38712 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
38713 | choke me | |
38714 | #else | |
38715 | char (*f) () = readdir_r; | |
38716 | #endif | |
38717 | #ifdef __cplusplus | |
38718 | } | |
38719 | #endif | |
38720 | ||
38721 | int | |
38722 | main () | |
38723 | { | |
38724 | return f != readdir_r; | |
38725 | ; | |
38726 | return 0; | |
38727 | } | |
38728 | _ACEOF | |
38729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38731 | (eval $ac_link) 2>conftest.er1 | |
38732 | ac_status=$? | |
38733 | grep -v '^ *+' conftest.er1 >conftest.err | |
38734 | rm -f conftest.er1 | |
38735 | cat conftest.err >&5 | |
38736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38737 | (exit $ac_status); } && | |
5d7b7554 | 38738 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38740 | (eval $ac_try) 2>&5 | |
38741 | ac_status=$? | |
38742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38743 | (exit $ac_status); }; } && | |
38744 | { ac_try='test -s conftest$ac_exeext' | |
38745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38746 | (eval $ac_try) 2>&5 | |
38747 | ac_status=$? | |
38748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38749 | (exit $ac_status); }; }; then | |
38750 | ac_cv_func_readdir_r=yes | |
38751 | else | |
38752 | echo "$as_me: failed program was:" >&5 | |
38753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38754 | ||
38755 | ac_cv_func_readdir_r=no | |
38756 | fi | |
38757 | rm -f conftest.err conftest.$ac_objext \ | |
38758 | conftest$ac_exeext conftest.$ac_ext | |
38759 | fi | |
38760 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
38761 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
38762 | if test $ac_cv_func_readdir_r = yes; then | |
38763 | cat >>confdefs.h <<\_ACEOF | |
38764 | #define HAVE_READDIR_R 1 | |
38765 | _ACEOF | |
38766 | ||
38767 | fi | |
38768 | ||
004ee6da | 38769 | |
004ee6da RL |
38770 | |
38771 | ||
38772 | ac_ext=c | |
38773 | ac_cpp='$CPP $CPPFLAGS' | |
38774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38777 | ||
38778 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
38779 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
38780 | ||
38781 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
38782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38783 | else | |
38784 | ||
38785 | ||
38786 | ################################################################ | |
38787 | ||
38788 | ac_cv_func_which_gethostbyname_r=unknown | |
38789 | ||
38790 | # | |
38791 | # ONE ARGUMENT (sanity check) | |
38792 | # | |
38793 | ||
38794 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
38795 | # a single argument. If it actually compiles, then we can assume that | |
38796 | # netdb.h is not declaring the function, and the compiler is thereby | |
38797 | # assuming an implicit prototype. In which case, we're out of luck. | |
38798 | # | |
38799 | cat >conftest.$ac_ext <<_ACEOF | |
38800 | /* confdefs.h. */ | |
38801 | _ACEOF | |
38802 | cat confdefs.h >>conftest.$ac_ext | |
38803 | cat >>conftest.$ac_ext <<_ACEOF | |
38804 | /* end confdefs.h. */ | |
38805 | #include <netdb.h> | |
38806 | int | |
38807 | main () | |
38808 | { | |
38809 | ||
38810 | char *name = "www.gnu.org"; | |
38811 | (void)gethostbyname_r(name) /* ; */ | |
38812 | ||
38813 | ; | |
38814 | return 0; | |
38815 | } | |
38816 | _ACEOF | |
38817 | rm -f conftest.$ac_objext | |
38818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38819 | (eval $ac_compile) 2>conftest.er1 | |
38820 | ac_status=$? | |
38821 | grep -v '^ *+' conftest.er1 >conftest.err | |
38822 | rm -f conftest.er1 | |
38823 | cat conftest.err >&5 | |
38824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38825 | (exit $ac_status); } && | |
5d7b7554 | 38826 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38828 | (eval $ac_try) 2>&5 | |
38829 | ac_status=$? | |
38830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38831 | (exit $ac_status); }; } && | |
38832 | { ac_try='test -s conftest.$ac_objext' | |
38833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38834 | (eval $ac_try) 2>&5 | |
38835 | ac_status=$? | |
38836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38837 | (exit $ac_status); }; }; then | |
38838 | ac_cv_func_which_gethostbyname_r=no | |
38839 | else | |
38840 | echo "$as_me: failed program was:" >&5 | |
38841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38842 | ||
38843 | fi | |
38844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38845 | ||
38846 | # | |
38847 | # SIX ARGUMENTS | |
38848 | # (e.g. Linux) | |
38849 | # | |
38850 | ||
38851 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38852 | ||
38853 | cat >conftest.$ac_ext <<_ACEOF | |
38854 | /* confdefs.h. */ | |
38855 | _ACEOF | |
38856 | cat confdefs.h >>conftest.$ac_ext | |
38857 | cat >>conftest.$ac_ext <<_ACEOF | |
38858 | /* end confdefs.h. */ | |
38859 | #include <netdb.h> | |
38860 | int | |
38861 | main () | |
38862 | { | |
38863 | ||
38864 | char *name = "www.gnu.org"; | |
38865 | struct hostent ret, *retp; | |
38866 | char buf[1024]; | |
38867 | int buflen = 1024; | |
38868 | int my_h_errno; | |
38869 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
38870 | ||
38871 | ; | |
38872 | return 0; | |
38873 | } | |
38874 | _ACEOF | |
38875 | rm -f conftest.$ac_objext | |
38876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38877 | (eval $ac_compile) 2>conftest.er1 | |
38878 | ac_status=$? | |
38879 | grep -v '^ *+' conftest.er1 >conftest.err | |
38880 | rm -f conftest.er1 | |
38881 | cat conftest.err >&5 | |
38882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38883 | (exit $ac_status); } && | |
5d7b7554 | 38884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38886 | (eval $ac_try) 2>&5 | |
38887 | ac_status=$? | |
38888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38889 | (exit $ac_status); }; } && | |
38890 | { ac_try='test -s conftest.$ac_objext' | |
38891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38892 | (eval $ac_try) 2>&5 | |
38893 | ac_status=$? | |
38894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38895 | (exit $ac_status); }; }; then | |
38896 | ac_cv_func_which_gethostbyname_r=six | |
38897 | else | |
38898 | echo "$as_me: failed program was:" >&5 | |
38899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38900 | ||
38901 | fi | |
38902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38903 | ||
38904 | fi | |
38905 | ||
38906 | # | |
38907 | # FIVE ARGUMENTS | |
38908 | # (e.g. Solaris) | |
38909 | # | |
38910 | ||
38911 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38912 | ||
38913 | cat >conftest.$ac_ext <<_ACEOF | |
38914 | /* confdefs.h. */ | |
38915 | _ACEOF | |
38916 | cat confdefs.h >>conftest.$ac_ext | |
38917 | cat >>conftest.$ac_ext <<_ACEOF | |
38918 | /* end confdefs.h. */ | |
38919 | #include <netdb.h> | |
38920 | int | |
38921 | main () | |
38922 | { | |
38923 | ||
38924 | char *name = "www.gnu.org"; | |
38925 | struct hostent ret; | |
38926 | char buf[1024]; | |
38927 | int buflen = 1024; | |
38928 | int my_h_errno; | |
38929 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
38930 | ||
38931 | ; | |
38932 | return 0; | |
38933 | } | |
38934 | _ACEOF | |
38935 | rm -f conftest.$ac_objext | |
38936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38937 | (eval $ac_compile) 2>conftest.er1 | |
38938 | ac_status=$? | |
38939 | grep -v '^ *+' conftest.er1 >conftest.err | |
38940 | rm -f conftest.er1 | |
38941 | cat conftest.err >&5 | |
38942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38943 | (exit $ac_status); } && | |
5d7b7554 | 38944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38946 | (eval $ac_try) 2>&5 | |
38947 | ac_status=$? | |
38948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38949 | (exit $ac_status); }; } && | |
38950 | { ac_try='test -s conftest.$ac_objext' | |
38951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38952 | (eval $ac_try) 2>&5 | |
38953 | ac_status=$? | |
38954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38955 | (exit $ac_status); }; }; then | |
38956 | ac_cv_func_which_gethostbyname_r=five | |
38957 | else | |
38958 | echo "$as_me: failed program was:" >&5 | |
38959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38960 | ||
38961 | fi | |
38962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38963 | ||
38964 | fi | |
38965 | ||
38966 | # | |
38967 | # THREE ARGUMENTS | |
38968 | # (e.g. AIX, HP-UX, Tru64) | |
38969 | # | |
38970 | ||
38971 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38972 | ||
38973 | cat >conftest.$ac_ext <<_ACEOF | |
38974 | /* confdefs.h. */ | |
38975 | _ACEOF | |
38976 | cat confdefs.h >>conftest.$ac_ext | |
38977 | cat >>conftest.$ac_ext <<_ACEOF | |
38978 | /* end confdefs.h. */ | |
38979 | #include <netdb.h> | |
38980 | int | |
38981 | main () | |
38982 | { | |
38983 | ||
38984 | char *name = "www.gnu.org"; | |
38985 | struct hostent ret; | |
38986 | struct hostent_data data; | |
38987 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
38988 | ||
38989 | ; | |
38990 | return 0; | |
38991 | } | |
38992 | _ACEOF | |
38993 | rm -f conftest.$ac_objext | |
38994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38995 | (eval $ac_compile) 2>conftest.er1 | |
38996 | ac_status=$? | |
38997 | grep -v '^ *+' conftest.er1 >conftest.err | |
38998 | rm -f conftest.er1 | |
38999 | cat conftest.err >&5 | |
39000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39001 | (exit $ac_status); } && | |
5d7b7554 | 39002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39004 | (eval $ac_try) 2>&5 | |
39005 | ac_status=$? | |
39006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39007 | (exit $ac_status); }; } && | |
39008 | { ac_try='test -s conftest.$ac_objext' | |
39009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39010 | (eval $ac_try) 2>&5 | |
39011 | ac_status=$? | |
39012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39013 | (exit $ac_status); }; }; then | |
39014 | ac_cv_func_which_gethostbyname_r=three | |
39015 | else | |
39016 | echo "$as_me: failed program was:" >&5 | |
39017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39018 | ||
39019 | fi | |
39020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39021 | ||
39022 | fi | |
39023 | ||
39024 | ################################################################ | |
39025 | ||
39026 | ||
39027 | fi | |
39028 | ||
39029 | case "$ac_cv_func_which_gethostbyname_r" in | |
39030 | three) | |
39031 | echo "$as_me:$LINENO: result: three" >&5 | |
39032 | echo "${ECHO_T}three" >&6 | |
39033 | cat >>confdefs.h <<\_ACEOF | |
39034 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
39035 | _ACEOF | |
39036 | ||
39037 | ;; | |
39038 | ||
39039 | five) | |
39040 | echo "$as_me:$LINENO: result: five" >&5 | |
39041 | echo "${ECHO_T}five" >&6 | |
39042 | cat >>confdefs.h <<\_ACEOF | |
39043 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
39044 | _ACEOF | |
39045 | ||
39046 | ;; | |
39047 | ||
39048 | six) | |
39049 | echo "$as_me:$LINENO: result: six" >&5 | |
39050 | echo "${ECHO_T}six" >&6 | |
39051 | cat >>confdefs.h <<\_ACEOF | |
39052 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
39053 | _ACEOF | |
39054 | ||
39055 | ;; | |
39056 | ||
39057 | no) | |
39058 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
39059 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
39060 | ;; | |
39061 | ||
39062 | unknown) | |
39063 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
39064 | echo "${ECHO_T}can't tell" >&6 | |
39065 | ;; | |
39066 | ||
39067 | *) | |
39068 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
39069 | echo "$as_me: error: internal error" >&2;} | |
39070 | { (exit 1); exit 1; }; } | |
39071 | ;; | |
39072 | esac | |
39073 | ||
5ec3bc43 JS |
39074 | ac_ext=cc |
39075 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39076 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39077 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39078 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
004ee6da RL |
39079 | |
39080 | ||
39081 | ||
39082 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
39083 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
39084 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
39085 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
39086 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
39087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39088 | else | |
39089 | cat >conftest.$ac_ext <<_ACEOF | |
39090 | /* confdefs.h. */ | |
39091 | _ACEOF | |
39092 | cat confdefs.h >>conftest.$ac_ext | |
39093 | cat >>conftest.$ac_ext <<_ACEOF | |
39094 | /* end confdefs.h. */ | |
39095 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
39096 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39097 | #define gethostbyname innocuous_gethostbyname | |
39098 | ||
39099 | /* System header to define __stub macros and hopefully few prototypes, | |
39100 | which can conflict with char gethostbyname (); below. | |
39101 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39102 | <limits.h> exists even on freestanding compilers. */ | |
39103 | ||
39104 | #ifdef __STDC__ | |
39105 | # include <limits.h> | |
39106 | #else | |
39107 | # include <assert.h> | |
39108 | #endif | |
39109 | ||
39110 | #undef gethostbyname | |
39111 | ||
39112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39113 | #ifdef __cplusplus | |
39114 | extern "C" | |
39115 | { | |
39116 | #endif | |
39117 | /* We use char because int might match the return type of a gcc2 | |
39118 | builtin and then its argument prototype would still apply. */ | |
39119 | char gethostbyname (); | |
39120 | /* The GNU C library defines this for functions which it implements | |
39121 | to always fail with ENOSYS. Some functions are actually named | |
39122 | something starting with __ and the normal name is an alias. */ | |
39123 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
39124 | choke me | |
39125 | #else | |
39126 | char (*f) () = gethostbyname; | |
39127 | #endif | |
39128 | #ifdef __cplusplus | |
39129 | } | |
39130 | #endif | |
39131 | ||
39132 | int | |
39133 | main () | |
39134 | { | |
39135 | return f != gethostbyname; | |
39136 | ; | |
39137 | return 0; | |
39138 | } | |
39139 | _ACEOF | |
39140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39142 | (eval $ac_link) 2>conftest.er1 | |
39143 | ac_status=$? | |
39144 | grep -v '^ *+' conftest.er1 >conftest.err | |
39145 | rm -f conftest.er1 | |
39146 | cat conftest.err >&5 | |
39147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39148 | (exit $ac_status); } && | |
5d7b7554 | 39149 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39151 | (eval $ac_try) 2>&5 | |
39152 | ac_status=$? | |
39153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39154 | (exit $ac_status); }; } && | |
39155 | { ac_try='test -s conftest$ac_exeext' | |
39156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39157 | (eval $ac_try) 2>&5 | |
39158 | ac_status=$? | |
39159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39160 | (exit $ac_status); }; }; then | |
39161 | ac_cv_func_gethostbyname=yes | |
39162 | else | |
39163 | echo "$as_me: failed program was:" >&5 | |
39164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39165 | ||
39166 | ac_cv_func_gethostbyname=no | |
39167 | fi | |
39168 | rm -f conftest.err conftest.$ac_objext \ | |
39169 | conftest$ac_exeext conftest.$ac_ext | |
39170 | fi | |
39171 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
39172 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
39173 | if test $ac_cv_func_gethostbyname = yes; then | |
39174 | cat >>confdefs.h <<\_ACEOF | |
39175 | #define HAVE_GETHOSTBYNAME 1 | |
39176 | _ACEOF | |
39177 | ||
39178 | fi | |
39179 | ||
39180 | fi | |
39181 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
39182 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
004ee6da RL |
39183 | if test "${ac_cv_func_getservbyname_r+set}" = set; then |
39184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39185 | else | |
39186 | cat >conftest.$ac_ext <<_ACEOF | |
39187 | /* confdefs.h. */ | |
39188 | _ACEOF | |
39189 | cat confdefs.h >>conftest.$ac_ext | |
39190 | cat >>conftest.$ac_ext <<_ACEOF | |
39191 | /* end confdefs.h. */ | |
39192 | /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r. | |
39193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39194 | #define getservbyname_r innocuous_getservbyname_r | |
39195 | ||
39196 | /* System header to define __stub macros and hopefully few prototypes, | |
39197 | which can conflict with char getservbyname_r (); below. | |
39198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39199 | <limits.h> exists even on freestanding compilers. */ | |
39200 | ||
39201 | #ifdef __STDC__ | |
39202 | # include <limits.h> | |
39203 | #else | |
39204 | # include <assert.h> | |
39205 | #endif | |
39206 | ||
39207 | #undef getservbyname_r | |
39208 | ||
39209 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39210 | #ifdef __cplusplus | |
39211 | extern "C" | |
39212 | { | |
39213 | #endif | |
39214 | /* We use char because int might match the return type of a gcc2 | |
39215 | builtin and then its argument prototype would still apply. */ | |
39216 | char getservbyname_r (); | |
39217 | /* The GNU C library defines this for functions which it implements | |
39218 | to always fail with ENOSYS. Some functions are actually named | |
39219 | something starting with __ and the normal name is an alias. */ | |
39220 | #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) | |
39221 | choke me | |
39222 | #else | |
39223 | char (*f) () = getservbyname_r; | |
39224 | #endif | |
39225 | #ifdef __cplusplus | |
39226 | } | |
39227 | #endif | |
39228 | ||
39229 | int | |
39230 | main () | |
39231 | { | |
39232 | return f != getservbyname_r; | |
39233 | ; | |
39234 | return 0; | |
39235 | } | |
39236 | _ACEOF | |
39237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39239 | (eval $ac_link) 2>conftest.er1 | |
39240 | ac_status=$? | |
39241 | grep -v '^ *+' conftest.er1 >conftest.err | |
39242 | rm -f conftest.er1 | |
39243 | cat conftest.err >&5 | |
39244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39245 | (exit $ac_status); } && | |
5d7b7554 | 39246 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39248 | (eval $ac_try) 2>&5 | |
39249 | ac_status=$? | |
39250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39251 | (exit $ac_status); }; } && | |
39252 | { ac_try='test -s conftest$ac_exeext' | |
39253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39254 | (eval $ac_try) 2>&5 | |
39255 | ac_status=$? | |
39256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39257 | (exit $ac_status); }; }; then | |
39258 | ac_cv_func_getservbyname_r=yes | |
39259 | else | |
39260 | echo "$as_me: failed program was:" >&5 | |
39261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39262 | ||
39263 | ac_cv_func_getservbyname_r=no | |
39264 | fi | |
39265 | rm -f conftest.err conftest.$ac_objext \ | |
39266 | conftest$ac_exeext conftest.$ac_ext | |
39267 | fi | |
39268 | echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5 | |
39269 | echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6 | |
39270 | if test $ac_cv_func_getservbyname_r = yes; then | |
99879bbf | 39271 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39272 | /* confdefs.h. */ |
39273 | _ACEOF | |
39274 | cat confdefs.h >>conftest.$ac_ext | |
39275 | cat >>conftest.$ac_ext <<_ACEOF | |
39276 | /* end confdefs.h. */ | |
99879bbf | 39277 | #include <netdb.h> |
004ee6da RL |
39278 | int |
39279 | main () | |
39280 | { | |
39281 | ||
99879bbf MR |
39282 | char *name; |
39283 | char *proto; | |
39284 | struct servent *se; | |
39285 | struct servent_data data; | |
39286 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
39287 | |
39288 | ; | |
39289 | return 0; | |
39290 | } | |
39291 | _ACEOF | |
39292 | rm -f conftest.$ac_objext | |
39293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39294 | (eval $ac_compile) 2>conftest.er1 | |
39295 | ac_status=$? | |
39296 | grep -v '^ *+' conftest.er1 >conftest.err | |
39297 | rm -f conftest.er1 | |
39298 | cat conftest.err >&5 | |
39299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39300 | (exit $ac_status); } && | |
5d7b7554 | 39301 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39303 | (eval $ac_try) 2>&5 | |
39304 | ac_status=$? | |
39305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39306 | (exit $ac_status); }; } && | |
39307 | { ac_try='test -s conftest.$ac_objext' | |
39308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39309 | (eval $ac_try) 2>&5 | |
39310 | ac_status=$? | |
39311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39312 | (exit $ac_status); }; }; then | |
39313 | ac_cv_func_which_getservbyname_r=four | |
39314 | else | |
39315 | echo "$as_me: failed program was:" >&5 | |
39316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39317 | ||
99879bbf | 39318 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39319 | /* confdefs.h. */ |
39320 | _ACEOF | |
39321 | cat confdefs.h >>conftest.$ac_ext | |
39322 | cat >>conftest.$ac_ext <<_ACEOF | |
39323 | /* end confdefs.h. */ | |
99879bbf | 39324 | #include <netdb.h> |
004ee6da RL |
39325 | int |
39326 | main () | |
39327 | { | |
39328 | ||
99879bbf MR |
39329 | char *name; |
39330 | char *proto; | |
39331 | struct servent *se, *res; | |
39332 | char buffer[2048]; | |
39333 | int buflen = 2048; | |
39334 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res); | |
004ee6da RL |
39335 | |
39336 | ; | |
39337 | return 0; | |
39338 | } | |
39339 | _ACEOF | |
39340 | rm -f conftest.$ac_objext | |
39341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39342 | (eval $ac_compile) 2>conftest.er1 | |
39343 | ac_status=$? | |
39344 | grep -v '^ *+' conftest.er1 >conftest.err | |
39345 | rm -f conftest.er1 | |
39346 | cat conftest.err >&5 | |
39347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39348 | (exit $ac_status); } && | |
5d7b7554 | 39349 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39351 | (eval $ac_try) 2>&5 | |
39352 | ac_status=$? | |
39353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39354 | (exit $ac_status); }; } && | |
39355 | { ac_try='test -s conftest.$ac_objext' | |
39356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39357 | (eval $ac_try) 2>&5 | |
39358 | ac_status=$? | |
39359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39360 | (exit $ac_status); }; }; then | |
39361 | ac_cv_func_which_getservbyname_r=six | |
39362 | else | |
39363 | echo "$as_me: failed program was:" >&5 | |
39364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39365 | ||
99879bbf | 39366 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39367 | /* confdefs.h. */ |
39368 | _ACEOF | |
39369 | cat confdefs.h >>conftest.$ac_ext | |
39370 | cat >>conftest.$ac_ext <<_ACEOF | |
39371 | /* end confdefs.h. */ | |
99879bbf | 39372 | #include <netdb.h> |
004ee6da RL |
39373 | int |
39374 | main () | |
39375 | { | |
39376 | ||
99879bbf MR |
39377 | char *name; |
39378 | char *proto; | |
39379 | struct servent *se; | |
39380 | char buffer[2048]; | |
39381 | int buflen = 2048; | |
39382 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
39383 | |
39384 | ; | |
39385 | return 0; | |
39386 | } | |
39387 | _ACEOF | |
39388 | rm -f conftest.$ac_objext | |
39389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39390 | (eval $ac_compile) 2>conftest.er1 | |
39391 | ac_status=$? | |
39392 | grep -v '^ *+' conftest.er1 >conftest.err | |
39393 | rm -f conftest.er1 | |
39394 | cat conftest.err >&5 | |
39395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39396 | (exit $ac_status); } && | |
5d7b7554 | 39397 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39399 | (eval $ac_try) 2>&5 | |
39400 | ac_status=$? | |
39401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39402 | (exit $ac_status); }; } && | |
39403 | { ac_try='test -s conftest.$ac_objext' | |
39404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39405 | (eval $ac_try) 2>&5 | |
39406 | ac_status=$? | |
39407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39408 | (exit $ac_status); }; }; then | |
39409 | ac_cv_func_which_getservbyname_r=five | |
39410 | else | |
39411 | echo "$as_me: failed program was:" >&5 | |
39412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39413 | ||
39414 | ac_cv_func_which_getservbyname_r=no | |
99879bbf | 39415 | |
004ee6da RL |
39416 | fi |
39417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39418 | ||
004ee6da RL |
39419 | fi |
39420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39421 | ||
004ee6da RL |
39422 | fi |
39423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
39424 | else |
39425 | ac_cv_func_which_getservbyname_r=no | |
39426 | fi | |
39427 | ||
004ee6da RL |
39428 | |
39429 | if test $ac_cv_func_which_getservbyname_r = six; then | |
39430 | cat >>confdefs.h <<\_ACEOF | |
39431 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
39432 | _ACEOF | |
39433 | ||
39434 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
39435 | cat >>confdefs.h <<\_ACEOF | |
39436 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
39437 | _ACEOF | |
39438 | ||
39439 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
39440 | cat >>confdefs.h <<\_ACEOF | |
39441 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
39442 | _ACEOF | |
39443 | ||
004ee6da RL |
39444 | fi |
39445 | ||
39446 | ||
39447 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
39448 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
39449 | ||
39450 | for ac_func in getservbyname | |
39451 | do | |
39452 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39453 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39454 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39455 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39457 | else | |
39458 | cat >conftest.$ac_ext <<_ACEOF | |
39459 | /* confdefs.h. */ | |
39460 | _ACEOF | |
39461 | cat confdefs.h >>conftest.$ac_ext | |
39462 | cat >>conftest.$ac_ext <<_ACEOF | |
39463 | /* end confdefs.h. */ | |
39464 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39465 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39466 | #define $ac_func innocuous_$ac_func | |
39467 | ||
39468 | /* System header to define __stub macros and hopefully few prototypes, | |
39469 | which can conflict with char $ac_func (); below. | |
39470 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39471 | <limits.h> exists even on freestanding compilers. */ | |
39472 | ||
39473 | #ifdef __STDC__ | |
39474 | # include <limits.h> | |
39475 | #else | |
39476 | # include <assert.h> | |
39477 | #endif | |
39478 | ||
39479 | #undef $ac_func | |
39480 | ||
39481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39482 | #ifdef __cplusplus | |
39483 | extern "C" | |
39484 | { | |
39485 | #endif | |
39486 | /* We use char because int might match the return type of a gcc2 | |
39487 | builtin and then its argument prototype would still apply. */ | |
39488 | char $ac_func (); | |
39489 | /* The GNU C library defines this for functions which it implements | |
39490 | to always fail with ENOSYS. Some functions are actually named | |
39491 | something starting with __ and the normal name is an alias. */ | |
39492 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39493 | choke me | |
39494 | #else | |
39495 | char (*f) () = $ac_func; | |
39496 | #endif | |
39497 | #ifdef __cplusplus | |
39498 | } | |
39499 | #endif | |
39500 | ||
39501 | int | |
39502 | main () | |
39503 | { | |
39504 | return f != $ac_func; | |
39505 | ; | |
39506 | return 0; | |
39507 | } | |
39508 | _ACEOF | |
39509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39511 | (eval $ac_link) 2>conftest.er1 | |
39512 | ac_status=$? | |
39513 | grep -v '^ *+' conftest.er1 >conftest.err | |
39514 | rm -f conftest.er1 | |
39515 | cat conftest.err >&5 | |
39516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39517 | (exit $ac_status); } && | |
5d7b7554 | 39518 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39520 | (eval $ac_try) 2>&5 | |
39521 | ac_status=$? | |
39522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39523 | (exit $ac_status); }; } && | |
39524 | { ac_try='test -s conftest$ac_exeext' | |
39525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39526 | (eval $ac_try) 2>&5 | |
39527 | ac_status=$? | |
39528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39529 | (exit $ac_status); }; }; then | |
39530 | eval "$as_ac_var=yes" | |
39531 | else | |
39532 | echo "$as_me: failed program was:" >&5 | |
39533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39534 | ||
39535 | eval "$as_ac_var=no" | |
39536 | fi | |
39537 | rm -f conftest.err conftest.$ac_objext \ | |
39538 | conftest$ac_exeext conftest.$ac_ext | |
39539 | fi | |
39540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39541 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39542 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39543 | cat >>confdefs.h <<_ACEOF | |
39544 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39545 | _ACEOF | |
39546 | cat >>confdefs.h <<\_ACEOF | |
39547 | #define HAVE_GETSERVBYNAME 1 | |
39548 | _ACEOF | |
39549 | ||
39550 | fi | |
39551 | done | |
39552 | ||
39553 | fi | |
39554 | ||
004ee6da RL |
39555 | if test "$wxUSE_THREADS" = "yes"; then |
39556 | cat >>confdefs.h <<\_ACEOF | |
39557 | #define wxUSE_THREADS 1 | |
39558 | _ACEOF | |
39559 | ||
39560 | ||
39561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
39562 | else | |
39563 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
39564 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
39565 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
39566 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
39567 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
39568 | echo "$as_me:$LINENO: result: yes" >&5 | |
39569 | echo "${ECHO_T}yes" >&6 | |
39570 | else | |
39571 | echo "$as_me:$LINENO: result: no" >&5 | |
39572 | echo "${ECHO_T}no" >&6 | |
39573 | fi | |
39574 | fi | |
39575 | fi | |
39576 | ||
39577 | if test "$WXGTK20" = 1 ; then | |
39578 | cat >>confdefs.h <<_ACEOF | |
39579 | #define __WXGTK20__ $WXGTK20 | |
39580 | _ACEOF | |
39581 | ||
39582 | WXGTK12=1 | |
39583 | fi | |
39584 | ||
39585 | if test "$WXGTK12" = 1 ; then | |
39586 | cat >>confdefs.h <<_ACEOF | |
39587 | #define __WXGTK12__ $WXGTK12 | |
39588 | _ACEOF | |
39589 | ||
39590 | fi | |
39591 | ||
39592 | if test "$WXGTK127" = 1 ; then | |
39593 | cat >>confdefs.h <<_ACEOF | |
39594 | #define __WXGTK127__ $WXGTK127 | |
39595 | _ACEOF | |
39596 | ||
39597 | fi | |
39598 | ||
39599 | if test "$WXGPE" = 1 ; then | |
39600 | cat >>confdefs.h <<_ACEOF | |
39601 | #define __WXGPE__ $WXGPE | |
39602 | _ACEOF | |
39603 | ||
39604 | fi | |
39605 | ||
39606 | DEBUG_CFLAGS= | |
39607 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
39608 | DEBUG_CFLAGS="-g" | |
39609 | wxUSE_OPTIMISE=no | |
39610 | fi | |
39611 | ||
39612 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
39613 | wxUSE_DEBUG_INFO=yes | |
39614 | if test "$GCC" = yes; then | |
39615 | DEBUG_CFLAGS="-ggdb" | |
39616 | fi | |
39617 | fi | |
39618 | ||
39619 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
39620 | cat >>confdefs.h <<\_ACEOF | |
39621 | #define WXDEBUG 1 | |
39622 | _ACEOF | |
39623 | ||
39624 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
39625 | else | |
39626 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
39627 | if test "x$wxGTK_VERSION" = "x1" ; then |
39628 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
39629 | fi | |
004ee6da RL |
39630 | fi |
39631 | fi | |
39632 | ||
39633 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
39634 | cat >>confdefs.h <<\_ACEOF | |
39635 | #define wxUSE_MEMORY_TRACING 1 | |
39636 | _ACEOF | |
39637 | ||
39638 | cat >>confdefs.h <<\_ACEOF | |
39639 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
39640 | _ACEOF | |
39641 | ||
39642 | cat >>confdefs.h <<\_ACEOF | |
39643 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
39644 | _ACEOF | |
39645 | ||
39646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
39647 | fi | |
39648 | ||
39649 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
39650 | DMALLOC_LIBS="-ldmallocthcxx" | |
39651 | fi | |
39652 | ||
39653 | PROFILE_FLAGS= | |
39654 | if test "$wxUSE_PROFILE" = "yes" ; then | |
39655 | PROFILE_FLAGS=" -pg" | |
39656 | fi | |
39657 | ||
39658 | if test "$GCC" = "yes" ; then | |
39659 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
39660 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
39661 | fi | |
39662 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
39663 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
39664 | fi | |
39665 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
39666 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
39667 | fi | |
39668 | ||
39669 | case "${host}" in | |
39670 | powerpc*-*-aix* ) | |
39671 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
39672 | ;; | |
39673 | *-hppa* ) | |
39674 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
39675 | ;; | |
39676 | esac | |
39677 | fi | |
39678 | ||
39679 | OPTIMISE_CFLAGS= | |
39680 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
39681 | if test "$GCC" = yes ; then | |
39682 | OPTIMISE_CFLAGS="-O0" | |
39683 | fi | |
39684 | else | |
39685 | if test "$GCC" = yes ; then | |
e5efa97e VZ |
39686 | case "${host}" in |
39687 | *-pc-os2_emx | *-pc-os2-emx ) | |
39688 | OPTIMISE_CFLAGS="-O2" | |
39689 | ;; | |
39690 | *) | |
39691 | OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing" | |
39692 | ;; | |
39693 | esac | |
004ee6da RL |
39694 | else |
39695 | OPTIMISE_CFLAGS="-O" | |
39696 | fi | |
39697 | fi | |
39698 | ||
39699 | ||
39700 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
39701 | cat >>confdefs.h <<\_ACEOF | |
39702 | #define WXWIN_COMPATIBILITY_2_4 1 | |
39703 | _ACEOF | |
39704 | ||
39705 | ||
39706 | WXWIN_COMPATIBILITY_2_6="yes" | |
39707 | fi | |
39708 | ||
39709 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
39710 | cat >>confdefs.h <<\_ACEOF | |
39711 | #define WXWIN_COMPATIBILITY_2_6 1 | |
39712 | _ACEOF | |
39713 | ||
39714 | fi | |
39715 | ||
39716 | ||
39717 | if test "$wxUSE_GUI" = "yes"; then | |
39718 | cat >>confdefs.h <<\_ACEOF | |
39719 | #define wxUSE_GUI 1 | |
39720 | _ACEOF | |
39721 | ||
39722 | ||
39723 | fi | |
39724 | ||
39725 | ||
39726 | if test "$wxUSE_UNIX" = "yes"; then | |
39727 | cat >>confdefs.h <<\_ACEOF | |
39728 | #define wxUSE_UNIX 1 | |
39729 | _ACEOF | |
39730 | ||
39731 | fi | |
39732 | ||
39733 | ||
39734 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
39735 | ||
39736 | HAVE_DL_FUNCS=0 | |
39737 | HAVE_SHL_FUNCS=0 | |
39738 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
39739 | if test "$USE_DARWIN" = 1; then | |
39740 | HAVE_DL_FUNCS=1 | |
39741 | elif test "$USE_DOS" = 1; then | |
39742 | HAVE_DL_FUNCS=0 | |
39743 | else | |
39744 | ||
39745 | for ac_func in dlopen | |
39746 | do | |
39747 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39748 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39749 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39750 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39752 | else | |
39753 | cat >conftest.$ac_ext <<_ACEOF | |
39754 | /* confdefs.h. */ | |
39755 | _ACEOF | |
39756 | cat confdefs.h >>conftest.$ac_ext | |
39757 | cat >>conftest.$ac_ext <<_ACEOF | |
39758 | /* end confdefs.h. */ | |
39759 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39760 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39761 | #define $ac_func innocuous_$ac_func | |
39762 | ||
39763 | /* System header to define __stub macros and hopefully few prototypes, | |
39764 | which can conflict with char $ac_func (); below. | |
39765 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39766 | <limits.h> exists even on freestanding compilers. */ | |
39767 | ||
39768 | #ifdef __STDC__ | |
39769 | # include <limits.h> | |
39770 | #else | |
39771 | # include <assert.h> | |
39772 | #endif | |
39773 | ||
39774 | #undef $ac_func | |
39775 | ||
39776 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39777 | #ifdef __cplusplus | |
39778 | extern "C" | |
39779 | { | |
39780 | #endif | |
39781 | /* We use char because int might match the return type of a gcc2 | |
39782 | builtin and then its argument prototype would still apply. */ | |
39783 | char $ac_func (); | |
39784 | /* The GNU C library defines this for functions which it implements | |
39785 | to always fail with ENOSYS. Some functions are actually named | |
39786 | something starting with __ and the normal name is an alias. */ | |
39787 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39788 | choke me | |
39789 | #else | |
39790 | char (*f) () = $ac_func; | |
39791 | #endif | |
39792 | #ifdef __cplusplus | |
39793 | } | |
39794 | #endif | |
39795 | ||
39796 | int | |
39797 | main () | |
39798 | { | |
39799 | return f != $ac_func; | |
a848cd7e SC |
39800 | ; |
39801 | return 0; | |
39802 | } | |
39803 | _ACEOF | |
39804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39806 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39807 | ac_status=$? |
ac1cb8d3 VS |
39808 | grep -v '^ *+' conftest.er1 >conftest.err |
39809 | rm -f conftest.er1 | |
39810 | cat conftest.err >&5 | |
a848cd7e SC |
39811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39812 | (exit $ac_status); } && | |
5d7b7554 | 39813 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39815 | (eval $ac_try) 2>&5 | |
39816 | ac_status=$? | |
39817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39818 | (exit $ac_status); }; } && | |
39819 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39821 | (eval $ac_try) 2>&5 | |
39822 | ac_status=$? | |
39823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39824 | (exit $ac_status); }; }; then | |
39825 | eval "$as_ac_var=yes" | |
39826 | else | |
39827 | echo "$as_me: failed program was:" >&5 | |
39828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39829 | ||
39830 | eval "$as_ac_var=no" | |
39831 | fi | |
ac1cb8d3 VS |
39832 | rm -f conftest.err conftest.$ac_objext \ |
39833 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39834 | fi |
39835 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39836 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39837 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39838 | cat >>confdefs.h <<_ACEOF | |
39839 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39840 | _ACEOF | |
39841 | ||
39842 | cat >>confdefs.h <<\_ACEOF | |
39843 | #define HAVE_DLOPEN 1 | |
39844 | _ACEOF | |
39845 | ||
39846 | HAVE_DL_FUNCS=1 | |
39847 | ||
39848 | else | |
39849 | ||
39850 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
39851 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
39852 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
39853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39854 | else | |
39855 | ac_check_lib_save_LIBS=$LIBS | |
39856 | LIBS="-ldl $LIBS" | |
39857 | cat >conftest.$ac_ext <<_ACEOF | |
39858 | /* confdefs.h. */ | |
39859 | _ACEOF | |
39860 | cat confdefs.h >>conftest.$ac_ext | |
39861 | cat >>conftest.$ac_ext <<_ACEOF | |
39862 | /* end confdefs.h. */ | |
39863 | ||
39864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39865 | #ifdef __cplusplus | |
39866 | extern "C" | |
39867 | #endif | |
39868 | /* We use char because int might match the return type of a gcc2 | |
39869 | builtin and then its argument prototype would still apply. */ | |
39870 | char dlopen (); | |
39871 | int | |
39872 | main () | |
39873 | { | |
39874 | dlopen (); | |
39875 | ; | |
39876 | return 0; | |
39877 | } | |
39878 | _ACEOF | |
39879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39881 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39882 | ac_status=$? |
ac1cb8d3 VS |
39883 | grep -v '^ *+' conftest.er1 >conftest.err |
39884 | rm -f conftest.er1 | |
39885 | cat conftest.err >&5 | |
a848cd7e SC |
39886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39887 | (exit $ac_status); } && | |
5d7b7554 | 39888 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39890 | (eval $ac_try) 2>&5 | |
39891 | ac_status=$? | |
39892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39893 | (exit $ac_status); }; } && | |
39894 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39896 | (eval $ac_try) 2>&5 | |
39897 | ac_status=$? | |
39898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39899 | (exit $ac_status); }; }; then | |
39900 | ac_cv_lib_dl_dlopen=yes | |
39901 | else | |
39902 | echo "$as_me: failed program was:" >&5 | |
39903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39904 | ||
39905 | ac_cv_lib_dl_dlopen=no | |
39906 | fi | |
ac1cb8d3 VS |
39907 | rm -f conftest.err conftest.$ac_objext \ |
39908 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39909 | LIBS=$ac_check_lib_save_LIBS |
39910 | fi | |
39911 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
39912 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
39913 | if test $ac_cv_lib_dl_dlopen = yes; then | |
39914 | ||
39915 | cat >>confdefs.h <<\_ACEOF | |
39916 | #define HAVE_DLOPEN 1 | |
39917 | _ACEOF | |
39918 | ||
39919 | HAVE_DL_FUNCS=1 | |
39920 | DL_LINK=" -ldl$DL_LINK" | |
39921 | ||
39922 | else | |
39923 | ||
39924 | ||
39925 | for ac_func in shl_load | |
39926 | do | |
39927 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39928 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39929 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39930 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39932 | else | |
39933 | cat >conftest.$ac_ext <<_ACEOF | |
39934 | /* confdefs.h. */ | |
39935 | _ACEOF | |
39936 | cat confdefs.h >>conftest.$ac_ext | |
39937 | cat >>conftest.$ac_ext <<_ACEOF | |
39938 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39939 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39940 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39941 | #define $ac_func innocuous_$ac_func | |
39942 | ||
a848cd7e SC |
39943 | /* System header to define __stub macros and hopefully few prototypes, |
39944 | which can conflict with char $ac_func (); below. | |
39945 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39946 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39947 | |
a848cd7e SC |
39948 | #ifdef __STDC__ |
39949 | # include <limits.h> | |
39950 | #else | |
39951 | # include <assert.h> | |
39952 | #endif | |
ac1cb8d3 VS |
39953 | |
39954 | #undef $ac_func | |
39955 | ||
a848cd7e SC |
39956 | /* Override any gcc2 internal prototype to avoid an error. */ |
39957 | #ifdef __cplusplus | |
39958 | extern "C" | |
39959 | { | |
39960 | #endif | |
39961 | /* We use char because int might match the return type of a gcc2 | |
39962 | builtin and then its argument prototype would still apply. */ | |
39963 | char $ac_func (); | |
39964 | /* The GNU C library defines this for functions which it implements | |
39965 | to always fail with ENOSYS. Some functions are actually named | |
39966 | something starting with __ and the normal name is an alias. */ | |
39967 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39968 | choke me | |
39969 | #else | |
39970 | char (*f) () = $ac_func; | |
39971 | #endif | |
39972 | #ifdef __cplusplus | |
39973 | } | |
39974 | #endif | |
39975 | ||
39976 | int | |
39977 | main () | |
39978 | { | |
39979 | return f != $ac_func; | |
39980 | ; | |
39981 | return 0; | |
39982 | } | |
39983 | _ACEOF | |
39984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39986 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39987 | ac_status=$? |
ac1cb8d3 VS |
39988 | grep -v '^ *+' conftest.er1 >conftest.err |
39989 | rm -f conftest.er1 | |
39990 | cat conftest.err >&5 | |
a848cd7e SC |
39991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39992 | (exit $ac_status); } && | |
5d7b7554 | 39993 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39995 | (eval $ac_try) 2>&5 | |
39996 | ac_status=$? | |
39997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39998 | (exit $ac_status); }; } && | |
39999 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40001 | (eval $ac_try) 2>&5 | |
40002 | ac_status=$? | |
40003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40004 | (exit $ac_status); }; }; then | |
40005 | eval "$as_ac_var=yes" | |
40006 | else | |
40007 | echo "$as_me: failed program was:" >&5 | |
40008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40009 | ||
40010 | eval "$as_ac_var=no" | |
40011 | fi | |
ac1cb8d3 VS |
40012 | rm -f conftest.err conftest.$ac_objext \ |
40013 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40014 | fi |
40015 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40016 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40017 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40018 | cat >>confdefs.h <<_ACEOF | |
40019 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40020 | _ACEOF | |
40021 | ||
40022 | cat >>confdefs.h <<\_ACEOF | |
40023 | #define HAVE_SHL_LOAD 1 | |
40024 | _ACEOF | |
40025 | ||
40026 | HAVE_SHL_FUNCS=1 | |
40027 | ||
40028 | else | |
40029 | ||
40030 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
40031 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
40032 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
40033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40034 | else | |
40035 | ac_check_lib_save_LIBS=$LIBS | |
40036 | LIBS="-lshl_load $LIBS" | |
40037 | cat >conftest.$ac_ext <<_ACEOF | |
40038 | /* confdefs.h. */ | |
40039 | _ACEOF | |
40040 | cat confdefs.h >>conftest.$ac_ext | |
40041 | cat >>conftest.$ac_ext <<_ACEOF | |
40042 | /* end confdefs.h. */ | |
40043 | ||
40044 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40045 | #ifdef __cplusplus | |
40046 | extern "C" | |
40047 | #endif | |
40048 | /* We use char because int might match the return type of a gcc2 | |
40049 | builtin and then its argument prototype would still apply. */ | |
40050 | char dld (); | |
40051 | int | |
40052 | main () | |
40053 | { | |
40054 | dld (); | |
40055 | ; | |
40056 | return 0; | |
40057 | } | |
40058 | _ACEOF | |
40059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40061 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40062 | ac_status=$? |
ac1cb8d3 VS |
40063 | grep -v '^ *+' conftest.er1 >conftest.err |
40064 | rm -f conftest.er1 | |
40065 | cat conftest.err >&5 | |
a848cd7e SC |
40066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40067 | (exit $ac_status); } && | |
5d7b7554 | 40068 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40070 | (eval $ac_try) 2>&5 | |
40071 | ac_status=$? | |
40072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40073 | (exit $ac_status); }; } && | |
40074 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40076 | (eval $ac_try) 2>&5 | |
40077 | ac_status=$? | |
40078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40079 | (exit $ac_status); }; }; then | |
40080 | ac_cv_lib_shl_load_dld=yes | |
40081 | else | |
40082 | echo "$as_me: failed program was:" >&5 | |
40083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40084 | ||
40085 | ac_cv_lib_shl_load_dld=no | |
40086 | fi | |
ac1cb8d3 VS |
40087 | rm -f conftest.err conftest.$ac_objext \ |
40088 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40089 | LIBS=$ac_check_lib_save_LIBS |
40090 | fi | |
40091 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
40092 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
40093 | if test $ac_cv_lib_shl_load_dld = yes; then | |
40094 | ||
40095 | HAVE_SHL_FUNCS=1 | |
40096 | DL_LINK=" -ldld$DL_LINK" | |
40097 | ||
40098 | fi | |
40099 | ||
40100 | ||
40101 | fi | |
40102 | done | |
40103 | ||
40104 | ||
40105 | fi | |
40106 | ||
40107 | ||
40108 | fi | |
40109 | done | |
40110 | ||
40111 | ||
40112 | if test "$HAVE_DL_FUNCS" = 1; then | |
40113 | ||
40114 | for ac_func in dlerror | |
40115 | do | |
40116 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40117 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40118 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40119 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40121 | else | |
40122 | cat >conftest.$ac_ext <<_ACEOF | |
40123 | /* confdefs.h. */ | |
40124 | _ACEOF | |
40125 | cat confdefs.h >>conftest.$ac_ext | |
40126 | cat >>conftest.$ac_ext <<_ACEOF | |
40127 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40128 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40129 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40130 | #define $ac_func innocuous_$ac_func | |
40131 | ||
a848cd7e SC |
40132 | /* System header to define __stub macros and hopefully few prototypes, |
40133 | which can conflict with char $ac_func (); below. | |
40134 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40135 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40136 | |
a848cd7e SC |
40137 | #ifdef __STDC__ |
40138 | # include <limits.h> | |
40139 | #else | |
40140 | # include <assert.h> | |
40141 | #endif | |
ac1cb8d3 VS |
40142 | |
40143 | #undef $ac_func | |
40144 | ||
a848cd7e SC |
40145 | /* Override any gcc2 internal prototype to avoid an error. */ |
40146 | #ifdef __cplusplus | |
40147 | extern "C" | |
40148 | { | |
40149 | #endif | |
40150 | /* We use char because int might match the return type of a gcc2 | |
40151 | builtin and then its argument prototype would still apply. */ | |
40152 | char $ac_func (); | |
40153 | /* The GNU C library defines this for functions which it implements | |
40154 | to always fail with ENOSYS. Some functions are actually named | |
40155 | something starting with __ and the normal name is an alias. */ | |
40156 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40157 | choke me | |
40158 | #else | |
40159 | char (*f) () = $ac_func; | |
40160 | #endif | |
40161 | #ifdef __cplusplus | |
40162 | } | |
40163 | #endif | |
40164 | ||
40165 | int | |
40166 | main () | |
40167 | { | |
40168 | return f != $ac_func; | |
40169 | ; | |
40170 | return 0; | |
40171 | } | |
40172 | _ACEOF | |
40173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40175 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40176 | ac_status=$? |
ac1cb8d3 VS |
40177 | grep -v '^ *+' conftest.er1 >conftest.err |
40178 | rm -f conftest.er1 | |
40179 | cat conftest.err >&5 | |
a848cd7e SC |
40180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40181 | (exit $ac_status); } && | |
5d7b7554 | 40182 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40184 | (eval $ac_try) 2>&5 | |
40185 | ac_status=$? | |
40186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40187 | (exit $ac_status); }; } && | |
40188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40190 | (eval $ac_try) 2>&5 | |
40191 | ac_status=$? | |
40192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40193 | (exit $ac_status); }; }; then | |
40194 | eval "$as_ac_var=yes" | |
40195 | else | |
40196 | echo "$as_me: failed program was:" >&5 | |
40197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40198 | ||
40199 | eval "$as_ac_var=no" | |
40200 | fi | |
ac1cb8d3 VS |
40201 | rm -f conftest.err conftest.$ac_objext \ |
40202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40203 | fi |
40204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40205 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40206 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40207 | cat >>confdefs.h <<_ACEOF | |
40208 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40209 | _ACEOF | |
40210 | cat >>confdefs.h <<\_ACEOF | |
40211 | #define HAVE_DLERROR 1 | |
40212 | _ACEOF | |
40213 | ||
40214 | else | |
40215 | ||
40216 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
40217 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
40218 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
40219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40220 | else | |
40221 | ac_check_lib_save_LIBS=$LIBS | |
40222 | LIBS="-ldl $LIBS" | |
40223 | cat >conftest.$ac_ext <<_ACEOF | |
40224 | /* confdefs.h. */ | |
40225 | _ACEOF | |
40226 | cat confdefs.h >>conftest.$ac_ext | |
40227 | cat >>conftest.$ac_ext <<_ACEOF | |
40228 | /* end confdefs.h. */ | |
40229 | ||
40230 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40231 | #ifdef __cplusplus | |
40232 | extern "C" | |
40233 | #endif | |
40234 | /* We use char because int might match the return type of a gcc2 | |
40235 | builtin and then its argument prototype would still apply. */ | |
40236 | char dlerror (); | |
40237 | int | |
40238 | main () | |
40239 | { | |
40240 | dlerror (); | |
40241 | ; | |
40242 | return 0; | |
40243 | } | |
40244 | _ACEOF | |
40245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40247 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40248 | ac_status=$? |
ac1cb8d3 VS |
40249 | grep -v '^ *+' conftest.er1 >conftest.err |
40250 | rm -f conftest.er1 | |
40251 | cat conftest.err >&5 | |
a848cd7e SC |
40252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40253 | (exit $ac_status); } && | |
5d7b7554 | 40254 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40256 | (eval $ac_try) 2>&5 | |
40257 | ac_status=$? | |
40258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40259 | (exit $ac_status); }; } && | |
40260 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40262 | (eval $ac_try) 2>&5 | |
40263 | ac_status=$? | |
40264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40265 | (exit $ac_status); }; }; then | |
40266 | ac_cv_lib_dl_dlerror=yes | |
40267 | else | |
40268 | echo "$as_me: failed program was:" >&5 | |
40269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40270 | ||
40271 | ac_cv_lib_dl_dlerror=no | |
40272 | fi | |
ac1cb8d3 VS |
40273 | rm -f conftest.err conftest.$ac_objext \ |
40274 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40275 | LIBS=$ac_check_lib_save_LIBS |
40276 | fi | |
40277 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
40278 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
40279 | if test $ac_cv_lib_dl_dlerror = yes; then | |
40280 | cat >>confdefs.h <<\_ACEOF | |
40281 | #define HAVE_DLERROR 1 | |
40282 | _ACEOF | |
40283 | ||
40284 | fi | |
40285 | ||
40286 | ||
40287 | ||
40288 | fi | |
40289 | done | |
40290 | ||
40291 | fi | |
40292 | fi | |
40293 | ||
40294 | if test "$HAVE_DL_FUNCS" = 0; then | |
40295 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 40296 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
40297 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
40298 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
40299 | wxUSE_DYNAMIC_LOADER=no | |
40300 | wxUSE_DYNLIB_CLASS=no | |
40301 | else | |
40302 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
40303 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
40304 | fi | |
40305 | fi | |
40306 | fi | |
40307 | fi | |
40308 | fi | |
40309 | ||
40310 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
40311 | cat >>confdefs.h <<\_ACEOF | |
40312 | #define wxUSE_DYNAMIC_LOADER 1 | |
40313 | _ACEOF | |
40314 | ||
40315 | fi | |
40316 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40317 | cat >>confdefs.h <<\_ACEOF | |
40318 | #define wxUSE_DYNLIB_CLASS 1 | |
40319 | _ACEOF | |
40320 | ||
40321 | fi | |
40322 | ||
40323 | ||
40324 | ||
40325 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40326 | if test "$wxUSE_SHARED" = "no" ; then | |
40327 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
40328 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
40329 | wxUSE_PLUGINS=no | |
40330 | fi | |
40331 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
40332 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
40333 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
40334 | wxUSE_PLUGINS=no | |
40335 | fi | |
40336 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
40337 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
40338 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
40339 | wxUSE_PLUGINS=no | |
40340 | fi | |
40341 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40342 | cat >>confdefs.h <<\_ACEOF | |
40343 | #define wxUSE_PLUGINS 1 | |
40344 | _ACEOF | |
40345 | ||
40346 | fi | |
40347 | fi | |
40348 | ||
40349 | ||
40350 | if test "$wxUSE_STL" = "yes"; then | |
40351 | cat >>confdefs.h <<\_ACEOF | |
40352 | #define wxUSE_STL 1 | |
40353 | _ACEOF | |
40354 | ||
40355 | fi | |
40356 | ||
40357 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
40358 | cat >>confdefs.h <<\_ACEOF | |
40359 | #define wxUSE_APPLE_IEEE 1 | |
40360 | _ACEOF | |
40361 | ||
40362 | fi | |
40363 | ||
40364 | if test "$wxUSE_TIMER" = "yes"; then | |
40365 | cat >>confdefs.h <<\_ACEOF | |
40366 | #define wxUSE_TIMER 1 | |
40367 | _ACEOF | |
40368 | ||
40369 | fi | |
40370 | ||
9c112555 | 40371 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
40372 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
40373 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
40374 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 40375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 40376 | else |
d12aef51 VZ |
40377 | |
40378 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40379 | /* confdefs.h. */ |
40380 | _ACEOF | |
40381 | cat confdefs.h >>conftest.$ac_ext | |
40382 | cat >>conftest.$ac_ext <<_ACEOF | |
40383 | /* end confdefs.h. */ | |
d12aef51 VZ |
40384 | |
40385 | #include <sys/soundcard.h> | |
40386 | ||
40387 | int | |
40388 | main () | |
40389 | { | |
40390 | ||
40391 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40392 | ||
40393 | ; | |
40394 | return 0; | |
40395 | } | |
a848cd7e | 40396 | _ACEOF |
d12aef51 VZ |
40397 | rm -f conftest.$ac_objext conftest$ac_exeext |
40398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40399 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 40400 | ac_status=$? |
ac1cb8d3 VS |
40401 | grep -v '^ *+' conftest.er1 >conftest.err |
40402 | rm -f conftest.er1 | |
40403 | cat conftest.err >&5 | |
a848cd7e SC |
40404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40405 | (exit $ac_status); } && | |
5d7b7554 | 40406 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40408 | (eval $ac_try) 2>&5 | |
40409 | ac_status=$? | |
40410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40411 | (exit $ac_status); }; } && | |
d12aef51 | 40412 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
40413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40414 | (eval $ac_try) 2>&5 | |
40415 | ac_status=$? | |
40416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40417 | (exit $ac_status); }; }; then | |
d12aef51 | 40418 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
40419 | else |
40420 | echo "$as_me: failed program was:" >&5 | |
40421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40422 | ||
a848cd7e | 40423 | |
d12aef51 VZ |
40424 | saveLibs="$LIBS" |
40425 | LIBS="$saveLibs -lossaudio" | |
40426 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40427 | /* confdefs.h. */ |
40428 | _ACEOF | |
40429 | cat confdefs.h >>conftest.$ac_ext | |
40430 | cat >>conftest.$ac_ext <<_ACEOF | |
40431 | /* end confdefs.h. */ | |
d12aef51 VZ |
40432 | |
40433 | #include <sys/soundcard.h> | |
40434 | ||
40435 | int | |
40436 | main () | |
40437 | { | |
40438 | ||
40439 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40440 | ||
40441 | ; | |
40442 | return 0; | |
40443 | } | |
a848cd7e | 40444 | _ACEOF |
d12aef51 VZ |
40445 | rm -f conftest.$ac_objext conftest$ac_exeext |
40446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40447 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
40448 | ac_status=$? |
40449 | grep -v '^ *+' conftest.er1 >conftest.err | |
40450 | rm -f conftest.er1 | |
40451 | cat conftest.err >&5 | |
40452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 40453 | (exit $ac_status); } && |
5d7b7554 | 40454 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
40455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40456 | (eval $ac_try) 2>&5 | |
40457 | ac_status=$? | |
40458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40459 | (exit $ac_status); }; } && | |
40460 | { ac_try='test -s conftest$ac_exeext' | |
40461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40462 | (eval $ac_try) 2>&5 | |
40463 | ac_status=$? | |
40464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40465 | (exit $ac_status); }; }; then | |
40466 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
40467 | else |
40468 | echo "$as_me: failed program was:" >&5 | |
40469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40470 | ||
a848cd7e | 40471 | |
d12aef51 VZ |
40472 | LIBS="$saveLibs" |
40473 | ac_cv_header_sys_soundcard=no | |
40474 | ||
40475 | ||
a848cd7e | 40476 | fi |
d12aef51 VZ |
40477 | rm -f conftest.err conftest.$ac_objext \ |
40478 | conftest$ac_exeext conftest.$ac_ext | |
40479 | ||
a848cd7e SC |
40480 | |
40481 | fi | |
d12aef51 VZ |
40482 | rm -f conftest.err conftest.$ac_objext \ |
40483 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40484 | |
40485 | fi | |
d12aef51 VZ |
40486 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
40487 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 40488 | |
d12aef51 VZ |
40489 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
40490 | cat >>confdefs.h <<\_ACEOF | |
40491 | #define HAVE_SYS_SOUNDCARD_H 1 | |
40492 | _ACEOF | |
a848cd7e | 40493 | |
d12aef51 VZ |
40494 | else |
40495 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
40496 | fi | |
9c112555 MW |
40497 | fi |
40498 | WITH_PLUGIN_SDL=0 | |
40499 | if test "$wxUSE_SOUND" = "yes"; then | |
40500 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
40501 | if test "$wxUSE_LIBSDL" != "no"; then |
40502 | ||
40503 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
40504 | if test "${with_sdl_prefix+set}" = set; then | |
40505 | withval="$with_sdl_prefix" | |
40506 | sdl_prefix="$withval" | |
40507 | else | |
40508 | sdl_prefix="" | |
40509 | fi; | |
40510 | ||
40511 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
40512 | if test "${with_sdl_exec_prefix+set}" = set; then | |
40513 | withval="$with_sdl_exec_prefix" | |
40514 | sdl_exec_prefix="$withval" | |
40515 | else | |
40516 | sdl_exec_prefix="" | |
40517 | fi; | |
40518 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
40519 | if test "${enable_sdltest+set}" = set; then | |
40520 | enableval="$enable_sdltest" | |
40521 | ||
40522 | else | |
40523 | enable_sdltest=yes | |
40524 | fi; | |
40525 | ||
40526 | if test x$sdl_exec_prefix != x ; then | |
40527 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
40528 | if test x${SDL_CONFIG+set} != xset ; then | |
40529 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
40530 | fi | |
40531 | fi | |
40532 | if test x$sdl_prefix != x ; then | |
40533 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
40534 | if test x${SDL_CONFIG+set} != xset ; then | |
40535 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
40536 | fi | |
40537 | fi | |
40538 | ||
40539 | ||
40540 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
40541 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
40542 | set dummy sdl-config; ac_word=$2 | |
40543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40545 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
40546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40547 | else | |
40548 | case $SDL_CONFIG in | |
40549 | [\\/]* | ?:[\\/]*) | |
40550 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
40551 | ;; | |
40552 | *) | |
40553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40554 | for as_dir in $PATH | |
40555 | do | |
40556 | IFS=$as_save_IFS | |
40557 | test -z "$as_dir" && as_dir=. | |
40558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40560 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40562 | break 2 | |
40563 | fi | |
40564 | done | |
40565 | done | |
40566 | ||
40567 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
40568 | ;; | |
40569 | esac | |
40570 | fi | |
40571 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
40572 | ||
40573 | if test -n "$SDL_CONFIG"; then | |
40574 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
40575 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
40576 | else | |
40577 | echo "$as_me:$LINENO: result: no" >&5 | |
40578 | echo "${ECHO_T}no" >&6 | |
40579 | fi | |
40580 | ||
40581 | min_sdl_version=1.2.0 | |
40582 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
40583 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
40584 | no_sdl="" | |
40585 | if test "$SDL_CONFIG" = "no" ; then | |
40586 | no_sdl=yes | |
40587 | else | |
40588 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
40589 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
40590 | ||
40591 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
40592 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
40593 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
40594 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
40595 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
40596 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
40597 | if test "x$enable_sdltest" = "xyes" ; then | |
40598 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 40599 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
40600 | ac_save_LIBS="$LIBS" |
40601 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40602 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40603 | LIBS="$LIBS $SDL_LIBS" |
40604 | rm -f conf.sdltest | |
40605 | if test "$cross_compiling" = yes; then | |
40606 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
40607 | else | |
40608 | cat >conftest.$ac_ext <<_ACEOF | |
40609 | /* confdefs.h. */ | |
40610 | _ACEOF | |
40611 | cat confdefs.h >>conftest.$ac_ext | |
40612 | cat >>conftest.$ac_ext <<_ACEOF | |
40613 | /* end confdefs.h. */ | |
40614 | ||
40615 | #include <stdio.h> | |
40616 | #include <stdlib.h> | |
40617 | #include <string.h> | |
40618 | #include "SDL.h" | |
40619 | ||
40620 | char* | |
40621 | my_strdup (char *str) | |
40622 | { | |
40623 | char *new_str; | |
40624 | ||
40625 | if (str) | |
40626 | { | |
40627 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
40628 | strcpy (new_str, str); | |
40629 | } | |
40630 | else | |
40631 | new_str = NULL; | |
40632 | ||
40633 | return new_str; | |
40634 | } | |
40635 | ||
40636 | int main (int argc, char *argv[]) | |
40637 | { | |
40638 | int major, minor, micro; | |
40639 | char *tmp_version; | |
40640 | ||
40641 | /* This hangs on some systems (?) | |
40642 | system ("touch conf.sdltest"); | |
40643 | */ | |
40644 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
40645 | ||
40646 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
40647 | tmp_version = my_strdup("$min_sdl_version"); | |
40648 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
40649 | printf("%s, bad version string\n", "$min_sdl_version"); | |
40650 | exit(1); | |
40651 | } | |
40652 | ||
40653 | if (($sdl_major_version > major) || | |
40654 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
40655 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
40656 | { | |
40657 | return 0; | |
40658 | } | |
40659 | else | |
40660 | { | |
40661 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
40662 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
40663 | printf("*** best to upgrade to the required version.\n"); | |
40664 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
40665 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
40666 | printf("*** config.cache before re-running configure\n"); | |
40667 | return 1; | |
40668 | } | |
40669 | } | |
40670 | ||
40671 | ||
40672 | _ACEOF | |
40673 | rm -f conftest$ac_exeext | |
40674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40675 | (eval $ac_link) 2>&5 | |
40676 | ac_status=$? | |
40677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40678 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
40679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40680 | (eval $ac_try) 2>&5 | |
40681 | ac_status=$? | |
40682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40683 | (exit $ac_status); }; }; then | |
40684 | : | |
40685 | else | |
40686 | echo "$as_me: program exited with status $ac_status" >&5 | |
40687 | echo "$as_me: failed program was:" >&5 | |
40688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40689 | ||
40690 | ( exit $ac_status ) | |
40691 | no_sdl=yes | |
40692 | fi | |
ac1cb8d3 | 40693 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40694 | fi |
40695 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 40696 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40697 | LIBS="$ac_save_LIBS" |
40698 | fi | |
40699 | fi | |
40700 | if test "x$no_sdl" = x ; then | |
40701 | echo "$as_me:$LINENO: result: yes" >&5 | |
40702 | echo "${ECHO_T}yes" >&6 | |
40703 | ||
40704 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 40705 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
40706 | cat >>confdefs.h <<\_ACEOF |
40707 | #define wxUSE_LIBSDL 1 | |
40708 | _ACEOF | |
40709 | ||
40710 | ||
40711 | else | |
40712 | echo "$as_me:$LINENO: result: no" >&5 | |
40713 | echo "${ECHO_T}no" >&6 | |
40714 | if test "$SDL_CONFIG" = "no" ; then | |
40715 | echo "*** The sdl-config script installed by SDL could not be found" | |
40716 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
40717 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
40718 | echo "*** full path to sdl-config." | |
40719 | else | |
40720 | if test -f conf.sdltest ; then | |
40721 | : | |
40722 | else | |
40723 | echo "*** Could not run SDL test program, checking why..." | |
40724 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40725 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40726 | LIBS="$LIBS $SDL_LIBS" |
40727 | cat >conftest.$ac_ext <<_ACEOF | |
40728 | /* confdefs.h. */ | |
40729 | _ACEOF | |
40730 | cat confdefs.h >>conftest.$ac_ext | |
40731 | cat >>conftest.$ac_ext <<_ACEOF | |
40732 | /* end confdefs.h. */ | |
40733 | ||
40734 | #include <stdio.h> | |
40735 | #include "SDL.h" | |
40736 | ||
40737 | int main(int argc, char *argv[]) | |
40738 | { return 0; } | |
40739 | #undef main | |
40740 | #define main K_and_R_C_main | |
40741 | ||
40742 | int | |
40743 | main () | |
40744 | { | |
40745 | return 0; | |
40746 | ; | |
40747 | return 0; | |
40748 | } | |
40749 | _ACEOF | |
40750 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40752 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40753 | ac_status=$? |
ac1cb8d3 VS |
40754 | grep -v '^ *+' conftest.er1 >conftest.err |
40755 | rm -f conftest.er1 | |
40756 | cat conftest.err >&5 | |
a848cd7e SC |
40757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40758 | (exit $ac_status); } && | |
5d7b7554 | 40759 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40761 | (eval $ac_try) 2>&5 | |
40762 | ac_status=$? | |
40763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40764 | (exit $ac_status); }; } && | |
40765 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40767 | (eval $ac_try) 2>&5 | |
40768 | ac_status=$? | |
40769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40770 | (exit $ac_status); }; }; then | |
40771 | echo "*** The test program compiled, but did not run. This usually means" | |
40772 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
40773 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
40774 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
40775 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
40776 | echo "*** is required on your system" | |
40777 | echo "***" | |
40778 | echo "*** If you have an old version installed, it is best to remove it, although" | |
40779 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
40780 | else | |
40781 | echo "$as_me: failed program was:" >&5 | |
40782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40783 | ||
40784 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
40785 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
40786 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
40787 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
40788 | fi | |
ac1cb8d3 VS |
40789 | rm -f conftest.err conftest.$ac_objext \ |
40790 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 40791 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 40792 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40793 | LIBS="$ac_save_LIBS" |
40794 | fi | |
40795 | fi | |
40796 | SDL_CFLAGS="" | |
40797 | SDL_LIBS="" | |
40798 | wxUSE_LIBSDL="no" | |
40799 | fi | |
40800 | ||
40801 | ||
40802 | rm -f conf.sdltest | |
40803 | ||
40804 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
40805 | WITH_PLUGIN_SDL=1 | |
40806 | fi | |
40807 | fi | |
40808 | fi | |
40809 | ||
40810 | cat >>confdefs.h <<\_ACEOF | |
40811 | #define wxUSE_SOUND 1 | |
40812 | _ACEOF | |
40813 | ||
40814 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
40815 | fi | |
40816 | ||
d1c38808 VZ |
40817 | if test "$WXGTK20" = 1; then |
40818 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
40819 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
40820 | ||
40821 | ||
40822 | succeeded=no | |
40823 | ||
40824 | if test -z "$PKG_CONFIG"; then | |
40825 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40826 | set dummy pkg-config; ac_word=$2 | |
40827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40829 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40831 | else | |
40832 | case $PKG_CONFIG in | |
40833 | [\\/]* | ?:[\\/]*) | |
40834 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40835 | ;; | |
40836 | *) | |
40837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40838 | for as_dir in $PATH | |
40839 | do | |
40840 | IFS=$as_save_IFS | |
40841 | test -z "$as_dir" && as_dir=. | |
40842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40844 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40846 | break 2 | |
40847 | fi | |
40848 | done | |
40849 | done | |
40850 | ||
40851 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40852 | ;; | |
40853 | esac | |
40854 | fi | |
40855 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40856 | ||
40857 | if test -n "$PKG_CONFIG"; then | |
40858 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40859 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40860 | else | |
40861 | echo "$as_me:$LINENO: result: no" >&5 | |
40862 | echo "${ECHO_T}no" >&6 | |
40863 | fi | |
40864 | ||
40865 | fi | |
40866 | ||
40867 | if test "$PKG_CONFIG" = "no" ; then | |
40868 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40869 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40870 | echo "*** to the full path to pkg-config." | |
40871 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40872 | else | |
40873 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40874 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
40875 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
40876 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 40877 | |
ffa762ff | 40878 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
40879 | echo "$as_me:$LINENO: result: yes" >&5 |
40880 | echo "${ECHO_T}yes" >&6 | |
40881 | succeeded=yes | |
40882 | ||
40883 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
40884 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 40885 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40886 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
40887 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
40888 | ||
40889 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
40890 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 40891 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40892 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
40893 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
40894 | else | |
40895 | LIBGNOMEPRINTUI_CFLAGS="" | |
40896 | LIBGNOMEPRINTUI_LIBS="" | |
40897 | ## If we have a custom action on failure, don't print errors, but | |
40898 | ## do set a variable so people can do so. | |
ffa762ff | 40899 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40900 | |
40901 | fi | |
40902 | ||
40903 | ||
40904 | ||
40905 | else | |
40906 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40907 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40908 | fi | |
40909 | fi | |
40910 | ||
40911 | if test $succeeded = yes; then | |
40912 | ||
c92ad099 | 40913 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
d1c38808 VZ |
40914 | cat >>confdefs.h <<\_ACEOF |
40915 | #define wxUSE_LIBGNOMEPRINT 1 | |
40916 | _ACEOF | |
40917 | ||
40918 | ||
40919 | else | |
40920 | ||
40921 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
40922 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
40923 | wxUSE_LIBGNOMEPRINT="no" | |
40924 | ||
40925 | ||
40926 | fi | |
40927 | ||
40928 | fi | |
40929 | fi | |
40930 | fi | |
40931 | ||
2b850ae1 RR |
40932 | if test "$WXGTK20" = 1; then |
40933 | if test "$wxUSE_MIMETYPE" = "yes" ; then | |
40934 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
40935 | ||
40936 | ||
40937 | succeeded=no | |
40938 | ||
40939 | if test -z "$PKG_CONFIG"; then | |
40940 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40941 | set dummy pkg-config; ac_word=$2 | |
40942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40944 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40946 | else | |
40947 | case $PKG_CONFIG in | |
40948 | [\\/]* | ?:[\\/]*) | |
40949 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40950 | ;; | |
40951 | *) | |
40952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40953 | for as_dir in $PATH | |
40954 | do | |
40955 | IFS=$as_save_IFS | |
40956 | test -z "$as_dir" && as_dir=. | |
40957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40958 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40959 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40961 | break 2 | |
40962 | fi | |
40963 | done | |
40964 | done | |
40965 | ||
40966 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40967 | ;; | |
40968 | esac | |
40969 | fi | |
40970 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40971 | ||
40972 | if test -n "$PKG_CONFIG"; then | |
40973 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40974 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40975 | else | |
40976 | echo "$as_me:$LINENO: result: no" >&5 | |
40977 | echo "${ECHO_T}no" >&6 | |
40978 | fi | |
40979 | ||
40980 | fi | |
40981 | ||
40982 | if test "$PKG_CONFIG" = "no" ; then | |
40983 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40984 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40985 | echo "*** to the full path to pkg-config." | |
40986 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40987 | else | |
40988 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40989 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
40990 | echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5 | |
40991 | echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6 | |
40992 | ||
40993 | if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then | |
40994 | echo "$as_me:$LINENO: result: yes" >&5 | |
40995 | echo "${ECHO_T}yes" >&6 | |
40996 | succeeded=yes | |
40997 | ||
40998 | echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5 | |
40999 | echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6 | |
41000 | GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"` | |
41001 | echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5 | |
41002 | echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6 | |
41003 | ||
41004 | echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5 | |
41005 | echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6 | |
41006 | GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"` | |
41007 | echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5 | |
41008 | echo "${ECHO_T}$GNOMEVFS_LIBS" >&6 | |
41009 | else | |
41010 | GNOMEVFS_CFLAGS="" | |
41011 | GNOMEVFS_LIBS="" | |
41012 | ## If we have a custom action on failure, don't print errors, but | |
41013 | ## do set a variable so people can do so. | |
41014 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
41015 | ||
41016 | fi | |
41017 | ||
41018 | ||
41019 | ||
41020 | else | |
41021 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41022 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41023 | fi | |
41024 | fi | |
41025 | ||
41026 | if test $succeeded = yes; then | |
41027 | ||
41028 | CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS" | |
41029 | cat >>confdefs.h <<\_ACEOF | |
41030 | #define wxUSE_LIBGNOMEVFS 1 | |
41031 | _ACEOF | |
41032 | ||
41033 | ||
41034 | else | |
41035 | ||
41036 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 | |
41037 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
41038 | wxUSE_LIBGNOMEVFS="no" | |
41039 | ||
41040 | ||
41041 | fi | |
41042 | ||
41043 | fi | |
41044 | fi | |
41045 | fi | |
41046 | ||
3565d135 RR |
41047 | if test "$WXGTK20" = 1; then |
41048 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
41049 | ||
41050 | succeeded=no | |
41051 | ||
41052 | if test -z "$PKG_CONFIG"; then | |
41053 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41054 | set dummy pkg-config; ac_word=$2 | |
41055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41057 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41059 | else | |
41060 | case $PKG_CONFIG in | |
41061 | [\\/]* | ?:[\\/]*) | |
41062 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41063 | ;; | |
41064 | *) | |
41065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41066 | for as_dir in $PATH | |
41067 | do | |
41068 | IFS=$as_save_IFS | |
41069 | test -z "$as_dir" && as_dir=. | |
41070 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41071 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41072 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41074 | break 2 | |
41075 | fi | |
41076 | done | |
41077 | done | |
41078 | ||
41079 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41080 | ;; | |
41081 | esac | |
41082 | fi | |
41083 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41084 | ||
41085 | if test -n "$PKG_CONFIG"; then | |
41086 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41087 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41088 | else | |
41089 | echo "$as_me:$LINENO: result: no" >&5 | |
41090 | echo "${ECHO_T}no" >&6 | |
41091 | fi | |
41092 | ||
41093 | fi | |
41094 | ||
41095 | if test "$PKG_CONFIG" = "no" ; then | |
41096 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41097 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41098 | echo "*** to the full path to pkg-config." | |
41099 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41100 | else | |
41101 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41102 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41103 | echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5 | |
41104 | echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6 | |
41105 | ||
41106 | if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then | |
41107 | echo "$as_me:$LINENO: result: yes" >&5 | |
41108 | echo "${ECHO_T}yes" >&6 | |
41109 | succeeded=yes | |
41110 | ||
41111 | echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5 | |
41112 | echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6 | |
41113 | HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"` | |
41114 | echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5 | |
41115 | echo "${ECHO_T}$HILDON_CFLAGS" >&6 | |
41116 | ||
41117 | echo "$as_me:$LINENO: checking HILDON_LIBS" >&5 | |
41118 | echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6 | |
41119 | HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"` | |
41120 | echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5 | |
41121 | echo "${ECHO_T}$HILDON_LIBS" >&6 | |
41122 | else | |
41123 | HILDON_CFLAGS="" | |
41124 | HILDON_LIBS="" | |
41125 | ## If we have a custom action on failure, don't print errors, but | |
41126 | ## do set a variable so people can do so. | |
41127 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
41128 | ||
41129 | fi | |
41130 | ||
41131 | ||
41132 | ||
41133 | else | |
41134 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41135 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41136 | fi | |
41137 | fi | |
41138 | ||
41139 | if test $succeeded = yes; then | |
41140 | ||
41141 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
41142 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
41143 | cat >>confdefs.h <<\_ACEOF | |
41144 | #define wxUSE_LIBHILDON 1 | |
41145 | _ACEOF | |
41146 | ||
41147 | ||
41148 | else | |
41149 | ||
41150 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
41151 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
41152 | wxUSE_LIBHILDON="no" | |
41153 | ||
41154 | ||
41155 | fi | |
41156 | ||
41157 | fi | |
41158 | fi | |
d1c38808 | 41159 | |
a848cd7e SC |
41160 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
41161 | cat >>confdefs.h <<\_ACEOF | |
41162 | #define wxUSE_CMDLINE_PARSER 1 | |
41163 | _ACEOF | |
41164 | ||
41165 | fi | |
41166 | ||
41167 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
41168 | cat >>confdefs.h <<\_ACEOF | |
41169 | #define wxUSE_STOPWATCH 1 | |
41170 | _ACEOF | |
41171 | ||
41172 | fi | |
41173 | ||
41174 | if test "$wxUSE_DATETIME" = "yes"; then | |
41175 | cat >>confdefs.h <<\_ACEOF | |
41176 | #define wxUSE_DATETIME 1 | |
41177 | _ACEOF | |
41178 | ||
41179 | fi | |
41180 | ||
41181 | if test "$wxUSE_FILE" = "yes"; then | |
41182 | cat >>confdefs.h <<\_ACEOF | |
41183 | #define wxUSE_FILE 1 | |
41184 | _ACEOF | |
41185 | ||
41186 | fi | |
41187 | ||
41188 | if test "$wxUSE_FFILE" = "yes"; then | |
41189 | cat >>confdefs.h <<\_ACEOF | |
41190 | #define wxUSE_FFILE 1 | |
41191 | _ACEOF | |
41192 | ||
41193 | fi | |
41194 | ||
41195 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
41196 | cat >>confdefs.h <<\_ACEOF | |
41197 | #define wxUSE_FILESYSTEM 1 | |
41198 | _ACEOF | |
41199 | ||
41200 | fi | |
41201 | ||
41202 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
41203 | cat >>confdefs.h <<\_ACEOF | |
41204 | #define wxUSE_FS_ZIP 1 | |
41205 | _ACEOF | |
41206 | ||
41207 | fi | |
41208 | ||
9e8e867f | 41209 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 41210 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 41211 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
41212 | _ACEOF |
41213 | ||
41214 | fi | |
41215 | ||
41216 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 41217 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
41218 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
41219 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
41220 | elif test "$wxUSE_ZLIB" = "no"; then | |
41221 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
41222 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
41223 | else | |
41224 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41225 | #define wxUSE_ZIPSTREAM 1 |
41226 | _ACEOF | |
41227 | ||
81f90336 | 41228 | fi |
a848cd7e SC |
41229 | fi |
41230 | ||
a848cd7e | 41231 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
41232 | if test "$USE_UNIX" != 1; then |
41233 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
41234 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
41235 | wxUSE_ON_FATAL_EXCEPTION=no | |
41236 | else | |
41237 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41238 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
41239 | _ACEOF | |
41240 | ||
18228ab4 | 41241 | fi |
a848cd7e SC |
41242 | fi |
41243 | ||
eaff0f0d VZ |
41244 | if test "$wxUSE_STACKWALKER" = "yes"; then |
41245 | cat >>confdefs.h <<\_ACEOF | |
41246 | #define wxUSE_STACKWALKER 1 | |
41247 | _ACEOF | |
41248 | ||
41249 | fi | |
41250 | ||
36b6448c | 41251 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
41252 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
41253 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
41254 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
41255 | wxUSE_DEBUGREPORT=no |
41256 | else | |
41257 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
41258 | #define wxUSE_DEBUGREPORT 1 |
41259 | _ACEOF | |
41260 | ||
21dfc162 MW |
41261 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
41262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
41263 | fi | |
dfe0c803 | 41264 | fi |
36b6448c VZ |
41265 | fi |
41266 | ||
a848cd7e SC |
41267 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
41268 | cat >>confdefs.h <<\_ACEOF | |
41269 | #define wxUSE_SNGLINST_CHECKER 1 | |
41270 | _ACEOF | |
41271 | ||
41272 | fi | |
41273 | ||
41274 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
41275 | cat >>confdefs.h <<\_ACEOF | |
41276 | #define wxUSE_BUSYINFO 1 | |
41277 | _ACEOF | |
41278 | ||
41279 | fi | |
41280 | ||
41281 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
41282 | cat >>confdefs.h <<\_ACEOF | |
41283 | #define wxUSE_STD_IOSTREAM 1 | |
41284 | _ACEOF | |
41285 | ||
41286 | fi | |
41287 | ||
59746b65 MW |
41288 | if test "$wxUSE_STD_STRING" = "yes"; then |
41289 | cat >>confdefs.h <<\_ACEOF | |
41290 | #define wxUSE_STD_STRING 1 | |
41291 | _ACEOF | |
41292 | ||
41293 | fi | |
41294 | ||
07158944 VZ |
41295 | if test "$wxUSE_STDPATHS" = "yes"; then |
41296 | cat >>confdefs.h <<\_ACEOF | |
41297 | #define wxUSE_STDPATHS 1 | |
41298 | _ACEOF | |
41299 | ||
41300 | fi | |
41301 | ||
a848cd7e SC |
41302 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
41303 | cat >>confdefs.h <<\_ACEOF | |
41304 | #define wxUSE_TEXTBUFFER 1 | |
41305 | _ACEOF | |
41306 | ||
41307 | fi | |
41308 | ||
41309 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
41310 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
41311 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
41312 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
41313 | else | |
41314 | cat >>confdefs.h <<\_ACEOF | |
41315 | #define wxUSE_TEXTFILE 1 | |
41316 | _ACEOF | |
41317 | ||
41318 | fi | |
41319 | fi | |
41320 | ||
41321 | if test "$wxUSE_CONFIG" = "yes" ; then | |
41322 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
41323 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
41324 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
41325 | else | |
41326 | cat >>confdefs.h <<\_ACEOF | |
41327 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
41328 | _ACEOF |
41329 | ||
41330 | cat >>confdefs.h <<\_ACEOF | |
41331 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
41332 | _ACEOF |
41333 | ||
41334 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
41335 | fi | |
41336 | fi | |
41337 | ||
41338 | if test "$wxUSE_INTL" = "yes" ; then | |
41339 | if test "$wxUSE_FILE" != "yes"; then | |
41340 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
41341 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
41342 | else | |
41343 | cat >>confdefs.h <<\_ACEOF | |
41344 | #define wxUSE_INTL 1 | |
41345 | _ACEOF | |
41346 | ||
41347 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
41348 | GUIDIST="$GUIDIST INTL_DIST" | |
41349 | fi | |
41350 | fi | |
41351 | ||
41352 | if test "$wxUSE_LOG" = "yes"; then | |
41353 | cat >>confdefs.h <<\_ACEOF | |
41354 | #define wxUSE_LOG 1 | |
41355 | _ACEOF | |
41356 | ||
41357 | ||
41358 | if test "$wxUSE_LOGGUI" = "yes"; then | |
41359 | cat >>confdefs.h <<\_ACEOF | |
41360 | #define wxUSE_LOGGUI 1 | |
41361 | _ACEOF | |
41362 | ||
41363 | fi | |
41364 | ||
41365 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
41366 | cat >>confdefs.h <<\_ACEOF | |
41367 | #define wxUSE_LOGWINDOW 1 | |
41368 | _ACEOF | |
41369 | ||
41370 | fi | |
41371 | ||
41372 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
41373 | cat >>confdefs.h <<\_ACEOF | |
41374 | #define wxUSE_LOG_DIALOG 1 | |
41375 | _ACEOF | |
41376 | ||
41377 | fi | |
0b78747f MW |
41378 | |
41379 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
41380 | fi |
41381 | ||
41382 | if test "$wxUSE_LONGLONG" = "yes"; then | |
41383 | cat >>confdefs.h <<\_ACEOF | |
41384 | #define wxUSE_LONGLONG 1 | |
41385 | _ACEOF | |
41386 | ||
41387 | fi | |
41388 | ||
41389 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
41390 | cat >>confdefs.h <<\_ACEOF | |
41391 | #define wxUSE_GEOMETRY 1 | |
41392 | _ACEOF | |
41393 | ||
41394 | fi | |
41395 | ||
a848cd7e SC |
41396 | if test "$wxUSE_STREAMS" = "yes" ; then |
41397 | cat >>confdefs.h <<\_ACEOF | |
41398 | #define wxUSE_STREAMS 1 | |
41399 | _ACEOF | |
41400 | ||
41401 | fi | |
41402 | ||
41403 | ||
41404 | if test "$wxUSE_DATETIME" = "yes"; then | |
41405 | ||
41406 | for ac_func in strptime | |
41407 | do | |
41408 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41409 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41410 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41411 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41413 | else | |
41414 | cat >conftest.$ac_ext <<_ACEOF | |
41415 | /* confdefs.h. */ | |
41416 | _ACEOF | |
41417 | cat confdefs.h >>conftest.$ac_ext | |
41418 | cat >>conftest.$ac_ext <<_ACEOF | |
41419 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41420 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41422 | #define $ac_func innocuous_$ac_func | |
41423 | ||
a848cd7e SC |
41424 | /* System header to define __stub macros and hopefully few prototypes, |
41425 | which can conflict with char $ac_func (); below. | |
41426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41427 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41428 | |
a848cd7e SC |
41429 | #ifdef __STDC__ |
41430 | # include <limits.h> | |
41431 | #else | |
41432 | # include <assert.h> | |
41433 | #endif | |
ac1cb8d3 VS |
41434 | |
41435 | #undef $ac_func | |
41436 | ||
a848cd7e SC |
41437 | /* Override any gcc2 internal prototype to avoid an error. */ |
41438 | #ifdef __cplusplus | |
41439 | extern "C" | |
41440 | { | |
41441 | #endif | |
41442 | /* We use char because int might match the return type of a gcc2 | |
41443 | builtin and then its argument prototype would still apply. */ | |
41444 | char $ac_func (); | |
41445 | /* The GNU C library defines this for functions which it implements | |
41446 | to always fail with ENOSYS. Some functions are actually named | |
41447 | something starting with __ and the normal name is an alias. */ | |
41448 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41449 | choke me | |
41450 | #else | |
41451 | char (*f) () = $ac_func; | |
41452 | #endif | |
41453 | #ifdef __cplusplus | |
41454 | } | |
41455 | #endif | |
41456 | ||
41457 | int | |
41458 | main () | |
41459 | { | |
41460 | return f != $ac_func; | |
41461 | ; | |
41462 | return 0; | |
41463 | } | |
41464 | _ACEOF | |
41465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41467 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41468 | ac_status=$? |
ac1cb8d3 VS |
41469 | grep -v '^ *+' conftest.er1 >conftest.err |
41470 | rm -f conftest.er1 | |
41471 | cat conftest.err >&5 | |
a848cd7e SC |
41472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41473 | (exit $ac_status); } && | |
5d7b7554 | 41474 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41476 | (eval $ac_try) 2>&5 | |
41477 | ac_status=$? | |
41478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41479 | (exit $ac_status); }; } && | |
41480 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41482 | (eval $ac_try) 2>&5 | |
41483 | ac_status=$? | |
41484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41485 | (exit $ac_status); }; }; then | |
41486 | eval "$as_ac_var=yes" | |
41487 | else | |
41488 | echo "$as_me: failed program was:" >&5 | |
41489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41490 | ||
41491 | eval "$as_ac_var=no" | |
41492 | fi | |
ac1cb8d3 VS |
41493 | rm -f conftest.err conftest.$ac_objext \ |
41494 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41495 | fi |
41496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41497 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41498 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41499 | cat >>confdefs.h <<_ACEOF | |
41500 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41501 | _ACEOF | |
41502 | ||
41503 | fi | |
41504 | done | |
41505 | ||
f536f005 VZ |
41506 | if test "$ac_cv_func_strptime" = "yes"; then |
41507 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
41508 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
41509 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
41510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41511 | else | |
41512 | ||
f536f005 VZ |
41513 | cat >conftest.$ac_ext <<_ACEOF |
41514 | /* confdefs.h. */ | |
41515 | _ACEOF | |
41516 | cat confdefs.h >>conftest.$ac_ext | |
41517 | cat >>conftest.$ac_ext <<_ACEOF | |
41518 | /* end confdefs.h. */ | |
41519 | ||
41520 | #include <time.h> | |
41521 | ||
41522 | int | |
41523 | main () | |
41524 | { | |
41525 | ||
41526 | struct tm t; | |
41527 | strptime("foo", "bar", &t); | |
41528 | ||
41529 | ; | |
41530 | return 0; | |
41531 | } | |
41532 | _ACEOF | |
41533 | rm -f conftest.$ac_objext | |
41534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41535 | (eval $ac_compile) 2>conftest.er1 | |
41536 | ac_status=$? | |
41537 | grep -v '^ *+' conftest.er1 >conftest.err | |
41538 | rm -f conftest.er1 | |
41539 | cat conftest.err >&5 | |
41540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41541 | (exit $ac_status); } && | |
5d7b7554 | 41542 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f536f005 VZ |
41543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41544 | (eval $ac_try) 2>&5 | |
41545 | ac_status=$? | |
41546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41547 | (exit $ac_status); }; } && | |
41548 | { ac_try='test -s conftest.$ac_objext' | |
41549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41550 | (eval $ac_try) 2>&5 | |
41551 | ac_status=$? | |
41552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41553 | (exit $ac_status); }; }; then | |
41554 | wx_cv_func_strptime_decl=yes | |
41555 | else | |
41556 | echo "$as_me: failed program was:" >&5 | |
41557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41558 | ||
41559 | wx_cv_func_strptime_decl=no | |
41560 | ||
41561 | fi | |
41562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f536f005 VZ |
41563 | |
41564 | ||
41565 | fi | |
41566 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
41567 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
41568 | fi | |
41569 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
41570 | cat >>confdefs.h <<\_ACEOF | |
41571 | #define HAVE_STRPTIME_DECL 1 | |
41572 | _ACEOF | |
41573 | ||
41574 | fi | |
a848cd7e SC |
41575 | |
41576 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
41577 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
41578 | if test "${wx_cv_var_timezone+set}" = set; then | |
41579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41580 | else | |
41581 | ||
41582 | cat >conftest.$ac_ext <<_ACEOF | |
41583 | /* confdefs.h. */ | |
41584 | _ACEOF | |
41585 | cat confdefs.h >>conftest.$ac_ext | |
41586 | cat >>conftest.$ac_ext <<_ACEOF | |
41587 | /* end confdefs.h. */ | |
41588 | ||
41589 | #include <time.h> | |
41590 | ||
41591 | int | |
41592 | main () | |
41593 | { | |
41594 | ||
41595 | int tz; | |
41596 | tz = timezone; | |
41597 | ||
41598 | ; | |
41599 | return 0; | |
41600 | } | |
41601 | _ACEOF | |
41602 | rm -f conftest.$ac_objext | |
41603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41604 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41605 | ac_status=$? |
ac1cb8d3 VS |
41606 | grep -v '^ *+' conftest.er1 >conftest.err |
41607 | rm -f conftest.er1 | |
41608 | cat conftest.err >&5 | |
a848cd7e SC |
41609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41610 | (exit $ac_status); } && | |
5d7b7554 | 41611 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41613 | (eval $ac_try) 2>&5 | |
41614 | ac_status=$? | |
41615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41616 | (exit $ac_status); }; } && | |
41617 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41619 | (eval $ac_try) 2>&5 | |
41620 | ac_status=$? | |
41621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41622 | (exit $ac_status); }; }; then | |
41623 | ||
41624 | wx_cv_var_timezone=timezone | |
41625 | ||
41626 | else | |
41627 | echo "$as_me: failed program was:" >&5 | |
41628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41629 | ||
41630 | ||
41631 | cat >conftest.$ac_ext <<_ACEOF | |
41632 | /* confdefs.h. */ | |
41633 | _ACEOF | |
41634 | cat confdefs.h >>conftest.$ac_ext | |
41635 | cat >>conftest.$ac_ext <<_ACEOF | |
41636 | /* end confdefs.h. */ | |
41637 | ||
41638 | #include <time.h> | |
41639 | ||
41640 | int | |
41641 | main () | |
41642 | { | |
41643 | ||
41644 | int tz; | |
41645 | tz = _timezone; | |
41646 | ||
41647 | ; | |
41648 | return 0; | |
41649 | } | |
41650 | _ACEOF | |
41651 | rm -f conftest.$ac_objext | |
41652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41653 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41654 | ac_status=$? |
ac1cb8d3 VS |
41655 | grep -v '^ *+' conftest.er1 >conftest.err |
41656 | rm -f conftest.er1 | |
41657 | cat conftest.err >&5 | |
a848cd7e SC |
41658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41659 | (exit $ac_status); } && | |
5d7b7554 | 41660 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41662 | (eval $ac_try) 2>&5 | |
41663 | ac_status=$? | |
41664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41665 | (exit $ac_status); }; } && | |
41666 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41668 | (eval $ac_try) 2>&5 | |
41669 | ac_status=$? | |
41670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41671 | (exit $ac_status); }; }; then | |
41672 | ||
41673 | wx_cv_var_timezone=_timezone | |
41674 | ||
41675 | else | |
41676 | echo "$as_me: failed program was:" >&5 | |
41677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41678 | ||
41679 | ||
41680 | cat >conftest.$ac_ext <<_ACEOF | |
41681 | /* confdefs.h. */ | |
41682 | _ACEOF | |
41683 | cat confdefs.h >>conftest.$ac_ext | |
41684 | cat >>conftest.$ac_ext <<_ACEOF | |
41685 | /* end confdefs.h. */ | |
41686 | ||
41687 | #include <time.h> | |
41688 | ||
41689 | int | |
41690 | main () | |
41691 | { | |
41692 | ||
41693 | int tz; | |
41694 | tz = __timezone; | |
41695 | ||
41696 | ; | |
41697 | return 0; | |
41698 | } | |
41699 | _ACEOF | |
41700 | rm -f conftest.$ac_objext | |
41701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41702 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41703 | ac_status=$? |
ac1cb8d3 VS |
41704 | grep -v '^ *+' conftest.er1 >conftest.err |
41705 | rm -f conftest.er1 | |
41706 | cat conftest.err >&5 | |
a848cd7e SC |
41707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41708 | (exit $ac_status); } && | |
5d7b7554 | 41709 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41711 | (eval $ac_try) 2>&5 | |
41712 | ac_status=$? | |
41713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41714 | (exit $ac_status); }; } && | |
41715 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41717 | (eval $ac_try) 2>&5 | |
41718 | ac_status=$? | |
41719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41720 | (exit $ac_status); }; }; then | |
41721 | ||
41722 | wx_cv_var_timezone=__timezone | |
41723 | ||
41724 | else | |
41725 | echo "$as_me: failed program was:" >&5 | |
41726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41727 | ||
41728 | ||
41729 | if test "$USE_DOS" = 0 ; then | |
41730 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
41731 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
41732 | fi | |
41733 | ||
41734 | ||
41735 | fi | |
ac1cb8d3 | 41736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41737 | |
41738 | ||
41739 | fi | |
ac1cb8d3 | 41740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41741 | |
41742 | ||
41743 | fi | |
ac1cb8d3 | 41744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41745 | |
41746 | ||
41747 | fi | |
41748 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
41749 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
41750 | ||
41751 | if test "x$wx_cv_var_timezone" != x ; then | |
41752 | cat >>confdefs.h <<_ACEOF | |
41753 | #define WX_TIMEZONE $wx_cv_var_timezone | |
41754 | _ACEOF | |
41755 | ||
41756 | fi | |
41757 | ||
41758 | ||
41759 | for ac_func in localtime | |
41760 | do | |
41761 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41762 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41763 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41764 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41766 | else | |
41767 | cat >conftest.$ac_ext <<_ACEOF | |
41768 | /* confdefs.h. */ | |
41769 | _ACEOF | |
41770 | cat confdefs.h >>conftest.$ac_ext | |
41771 | cat >>conftest.$ac_ext <<_ACEOF | |
41772 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41773 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41774 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41775 | #define $ac_func innocuous_$ac_func | |
41776 | ||
a848cd7e SC |
41777 | /* System header to define __stub macros and hopefully few prototypes, |
41778 | which can conflict with char $ac_func (); below. | |
41779 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41780 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41781 | |
a848cd7e SC |
41782 | #ifdef __STDC__ |
41783 | # include <limits.h> | |
41784 | #else | |
41785 | # include <assert.h> | |
41786 | #endif | |
ac1cb8d3 VS |
41787 | |
41788 | #undef $ac_func | |
41789 | ||
a848cd7e SC |
41790 | /* Override any gcc2 internal prototype to avoid an error. */ |
41791 | #ifdef __cplusplus | |
41792 | extern "C" | |
41793 | { | |
41794 | #endif | |
41795 | /* We use char because int might match the return type of a gcc2 | |
41796 | builtin and then its argument prototype would still apply. */ | |
41797 | char $ac_func (); | |
41798 | /* The GNU C library defines this for functions which it implements | |
41799 | to always fail with ENOSYS. Some functions are actually named | |
41800 | something starting with __ and the normal name is an alias. */ | |
41801 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41802 | choke me | |
41803 | #else | |
41804 | char (*f) () = $ac_func; | |
41805 | #endif | |
41806 | #ifdef __cplusplus | |
41807 | } | |
41808 | #endif | |
41809 | ||
41810 | int | |
41811 | main () | |
41812 | { | |
41813 | return f != $ac_func; | |
41814 | ; | |
41815 | return 0; | |
41816 | } | |
41817 | _ACEOF | |
41818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41820 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41821 | ac_status=$? |
ac1cb8d3 VS |
41822 | grep -v '^ *+' conftest.er1 >conftest.err |
41823 | rm -f conftest.er1 | |
41824 | cat conftest.err >&5 | |
a848cd7e SC |
41825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41826 | (exit $ac_status); } && | |
5d7b7554 | 41827 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41829 | (eval $ac_try) 2>&5 | |
41830 | ac_status=$? | |
41831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41832 | (exit $ac_status); }; } && | |
41833 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41835 | (eval $ac_try) 2>&5 | |
41836 | ac_status=$? | |
41837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41838 | (exit $ac_status); }; }; then | |
41839 | eval "$as_ac_var=yes" | |
41840 | else | |
41841 | echo "$as_me: failed program was:" >&5 | |
41842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41843 | ||
41844 | eval "$as_ac_var=no" | |
41845 | fi | |
ac1cb8d3 VS |
41846 | rm -f conftest.err conftest.$ac_objext \ |
41847 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41848 | fi |
41849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41850 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41851 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41852 | cat >>confdefs.h <<_ACEOF | |
41853 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41854 | _ACEOF | |
41855 | ||
41856 | fi | |
41857 | done | |
41858 | ||
41859 | ||
41860 | if test "$ac_cv_func_localtime" = "yes"; then | |
41861 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
41862 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
41863 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
41864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41865 | else | |
41866 | ||
41867 | cat >conftest.$ac_ext <<_ACEOF | |
41868 | /* confdefs.h. */ | |
41869 | _ACEOF | |
41870 | cat confdefs.h >>conftest.$ac_ext | |
41871 | cat >>conftest.$ac_ext <<_ACEOF | |
41872 | /* end confdefs.h. */ | |
41873 | ||
41874 | #include <time.h> | |
41875 | ||
41876 | int | |
41877 | main () | |
41878 | { | |
41879 | ||
41880 | struct tm tm; | |
41881 | tm.tm_gmtoff++; | |
41882 | ||
41883 | ; | |
41884 | return 0; | |
41885 | } | |
41886 | _ACEOF | |
41887 | rm -f conftest.$ac_objext | |
41888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41889 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41890 | ac_status=$? |
ac1cb8d3 VS |
41891 | grep -v '^ *+' conftest.er1 >conftest.err |
41892 | rm -f conftest.er1 | |
41893 | cat conftest.err >&5 | |
a848cd7e SC |
41894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41895 | (exit $ac_status); } && | |
5d7b7554 | 41896 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41898 | (eval $ac_try) 2>&5 | |
41899 | ac_status=$? | |
41900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41901 | (exit $ac_status); }; } && | |
41902 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41904 | (eval $ac_try) 2>&5 | |
41905 | ac_status=$? | |
41906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41907 | (exit $ac_status); }; }; then | |
41908 | ||
41909 | wx_cv_struct_tm_has_gmtoff=yes | |
41910 | ||
41911 | else | |
41912 | echo "$as_me: failed program was:" >&5 | |
41913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41914 | ||
41915 | wx_cv_struct_tm_has_gmtoff=no | |
41916 | ||
41917 | fi | |
ac1cb8d3 | 41918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41919 | |
41920 | fi | |
41921 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
41922 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
41923 | fi | |
41924 | ||
41925 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
41926 | cat >>confdefs.h <<\_ACEOF | |
41927 | #define WX_GMTOFF_IN_TM 1 | |
41928 | _ACEOF | |
41929 | ||
41930 | fi | |
41931 | ||
41932 | ||
41933 | ||
41934 | for ac_func in gettimeofday ftime | |
41935 | do | |
41936 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41937 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41938 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41939 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41941 | else | |
41942 | cat >conftest.$ac_ext <<_ACEOF | |
41943 | /* confdefs.h. */ | |
41944 | _ACEOF | |
41945 | cat confdefs.h >>conftest.$ac_ext | |
41946 | cat >>conftest.$ac_ext <<_ACEOF | |
41947 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41948 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41949 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41950 | #define $ac_func innocuous_$ac_func | |
41951 | ||
a848cd7e SC |
41952 | /* System header to define __stub macros and hopefully few prototypes, |
41953 | which can conflict with char $ac_func (); below. | |
41954 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41955 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41956 | |
a848cd7e SC |
41957 | #ifdef __STDC__ |
41958 | # include <limits.h> | |
41959 | #else | |
41960 | # include <assert.h> | |
41961 | #endif | |
ac1cb8d3 VS |
41962 | |
41963 | #undef $ac_func | |
41964 | ||
a848cd7e SC |
41965 | /* Override any gcc2 internal prototype to avoid an error. */ |
41966 | #ifdef __cplusplus | |
41967 | extern "C" | |
41968 | { | |
41969 | #endif | |
41970 | /* We use char because int might match the return type of a gcc2 | |
41971 | builtin and then its argument prototype would still apply. */ | |
41972 | char $ac_func (); | |
41973 | /* The GNU C library defines this for functions which it implements | |
41974 | to always fail with ENOSYS. Some functions are actually named | |
41975 | something starting with __ and the normal name is an alias. */ | |
41976 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41977 | choke me | |
41978 | #else | |
41979 | char (*f) () = $ac_func; | |
41980 | #endif | |
41981 | #ifdef __cplusplus | |
41982 | } | |
41983 | #endif | |
41984 | ||
41985 | int | |
41986 | main () | |
41987 | { | |
41988 | return f != $ac_func; | |
41989 | ; | |
41990 | return 0; | |
41991 | } | |
41992 | _ACEOF | |
41993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41995 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41996 | ac_status=$? |
ac1cb8d3 VS |
41997 | grep -v '^ *+' conftest.er1 >conftest.err |
41998 | rm -f conftest.er1 | |
41999 | cat conftest.err >&5 | |
a848cd7e SC |
42000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42001 | (exit $ac_status); } && | |
5d7b7554 | 42002 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42004 | (eval $ac_try) 2>&5 | |
42005 | ac_status=$? | |
42006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42007 | (exit $ac_status); }; } && | |
42008 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
42014 | eval "$as_ac_var=yes" | |
42015 | else | |
42016 | echo "$as_me: failed program was:" >&5 | |
42017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42018 | ||
42019 | eval "$as_ac_var=no" | |
42020 | fi | |
ac1cb8d3 VS |
42021 | rm -f conftest.err conftest.$ac_objext \ |
42022 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42023 | fi |
42024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42025 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42026 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42027 | cat >>confdefs.h <<_ACEOF | |
42028 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42029 | _ACEOF | |
42030 | break | |
42031 | fi | |
42032 | done | |
42033 | ||
42034 | ||
42035 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
42036 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
42037 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
42038 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
42039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42040 | else | |
42041 | ||
5d7b7554 | 42042 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
42043 | /* confdefs.h. */ |
42044 | _ACEOF | |
42045 | cat confdefs.h >>conftest.$ac_ext | |
42046 | cat >>conftest.$ac_ext <<_ACEOF | |
42047 | /* end confdefs.h. */ | |
42048 | ||
42049 | #include <sys/time.h> | |
42050 | #include <unistd.h> | |
42051 | ||
42052 | int | |
42053 | main () | |
42054 | { | |
42055 | ||
42056 | struct timeval tv; | |
42057 | gettimeofday(&tv, NULL); | |
42058 | ||
42059 | ; | |
42060 | return 0; | |
42061 | } | |
42062 | _ACEOF | |
42063 | rm -f conftest.$ac_objext | |
42064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42065 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42066 | ac_status=$? |
ac1cb8d3 VS |
42067 | grep -v '^ *+' conftest.er1 >conftest.err |
42068 | rm -f conftest.er1 | |
42069 | cat conftest.err >&5 | |
a848cd7e SC |
42070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42071 | (exit $ac_status); } && | |
5d7b7554 | 42072 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42074 | (eval $ac_try) 2>&5 | |
42075 | ac_status=$? | |
42076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42077 | (exit $ac_status); }; } && | |
42078 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42080 | (eval $ac_try) 2>&5 | |
42081 | ac_status=$? | |
42082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42083 | (exit $ac_status); }; }; then | |
42084 | wx_cv_func_gettimeofday_has_2_args=yes | |
42085 | else | |
42086 | echo "$as_me: failed program was:" >&5 | |
42087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42088 | ||
42089 | cat >conftest.$ac_ext <<_ACEOF | |
42090 | /* confdefs.h. */ | |
42091 | _ACEOF | |
42092 | cat confdefs.h >>conftest.$ac_ext | |
42093 | cat >>conftest.$ac_ext <<_ACEOF | |
42094 | /* end confdefs.h. */ | |
42095 | ||
42096 | #include <sys/time.h> | |
42097 | #include <unistd.h> | |
42098 | ||
42099 | int | |
42100 | main () | |
42101 | { | |
42102 | ||
42103 | struct timeval tv; | |
42104 | gettimeofday(&tv); | |
42105 | ||
42106 | ; | |
42107 | return 0; | |
42108 | } | |
42109 | _ACEOF | |
42110 | rm -f conftest.$ac_objext | |
42111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42113 | ac_status=$? |
ac1cb8d3 VS |
42114 | grep -v '^ *+' conftest.er1 >conftest.err |
42115 | rm -f conftest.er1 | |
42116 | cat conftest.err >&5 | |
a848cd7e SC |
42117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42118 | (exit $ac_status); } && | |
5d7b7554 | 42119 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42121 | (eval $ac_try) 2>&5 | |
42122 | ac_status=$? | |
42123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42124 | (exit $ac_status); }; } && | |
42125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42127 | (eval $ac_try) 2>&5 | |
42128 | ac_status=$? | |
42129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42130 | (exit $ac_status); }; }; then | |
42131 | wx_cv_func_gettimeofday_has_2_args=no | |
42132 | else | |
42133 | echo "$as_me: failed program was:" >&5 | |
42134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42135 | ||
42136 | ||
42137 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
42138 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
42139 | wx_cv_func_gettimeofday_has_2_args=unknown | |
42140 | ||
42141 | ||
42142 | fi | |
ac1cb8d3 | 42143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42144 | |
42145 | fi | |
ac1cb8d3 | 42146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42147 | |
42148 | fi | |
42149 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
42150 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
42151 | ||
42152 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
42153 | cat >>confdefs.h <<\_ACEOF | |
42154 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
42155 | _ACEOF | |
42156 | ||
42157 | fi | |
42158 | fi | |
42159 | ||
42160 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
42161 | fi | |
42162 | ||
42163 | ||
42164 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42165 | if test "$wxUSE_MGL" = "1"; then | |
42166 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
42167 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
42168 | wxUSE_SOCKETS="no" | |
42169 | fi | |
42170 | fi | |
42171 | ||
42172 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42173 | if test "$TOOLKIT" != "MSW"; then | |
42174 | echo "$as_me:$LINENO: checking for socket" >&5 | |
42175 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
42176 | if test "${ac_cv_func_socket+set}" = set; then | |
42177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42178 | else | |
42179 | cat >conftest.$ac_ext <<_ACEOF | |
42180 | /* confdefs.h. */ | |
42181 | _ACEOF | |
42182 | cat confdefs.h >>conftest.$ac_ext | |
42183 | cat >>conftest.$ac_ext <<_ACEOF | |
42184 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42185 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
42186 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42187 | #define socket innocuous_socket | |
42188 | ||
a848cd7e SC |
42189 | /* System header to define __stub macros and hopefully few prototypes, |
42190 | which can conflict with char socket (); below. | |
42191 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42192 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42193 | |
a848cd7e SC |
42194 | #ifdef __STDC__ |
42195 | # include <limits.h> | |
42196 | #else | |
42197 | # include <assert.h> | |
42198 | #endif | |
ac1cb8d3 VS |
42199 | |
42200 | #undef socket | |
42201 | ||
a848cd7e SC |
42202 | /* Override any gcc2 internal prototype to avoid an error. */ |
42203 | #ifdef __cplusplus | |
42204 | extern "C" | |
42205 | { | |
42206 | #endif | |
42207 | /* We use char because int might match the return type of a gcc2 | |
42208 | builtin and then its argument prototype would still apply. */ | |
42209 | char socket (); | |
42210 | /* The GNU C library defines this for functions which it implements | |
42211 | to always fail with ENOSYS. Some functions are actually named | |
42212 | something starting with __ and the normal name is an alias. */ | |
42213 | #if defined (__stub_socket) || defined (__stub___socket) | |
42214 | choke me | |
42215 | #else | |
42216 | char (*f) () = socket; | |
42217 | #endif | |
42218 | #ifdef __cplusplus | |
42219 | } | |
42220 | #endif | |
42221 | ||
42222 | int | |
42223 | main () | |
42224 | { | |
42225 | return f != socket; | |
42226 | ; | |
42227 | return 0; | |
42228 | } | |
42229 | _ACEOF | |
42230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42232 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42233 | ac_status=$? |
ac1cb8d3 VS |
42234 | grep -v '^ *+' conftest.er1 >conftest.err |
42235 | rm -f conftest.er1 | |
42236 | cat conftest.err >&5 | |
a848cd7e SC |
42237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42238 | (exit $ac_status); } && | |
5d7b7554 | 42239 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42241 | (eval $ac_try) 2>&5 | |
42242 | ac_status=$? | |
42243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42244 | (exit $ac_status); }; } && | |
42245 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42247 | (eval $ac_try) 2>&5 | |
42248 | ac_status=$? | |
42249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42250 | (exit $ac_status); }; }; then | |
42251 | ac_cv_func_socket=yes | |
42252 | else | |
42253 | echo "$as_me: failed program was:" >&5 | |
42254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42255 | ||
42256 | ac_cv_func_socket=no | |
42257 | fi | |
ac1cb8d3 VS |
42258 | rm -f conftest.err conftest.$ac_objext \ |
42259 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42260 | fi |
42261 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
42262 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
42263 | if test $ac_cv_func_socket = yes; then | |
42264 | : | |
42265 | else | |
42266 | ||
42267 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
42268 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
42269 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
42270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42271 | else | |
42272 | ac_check_lib_save_LIBS=$LIBS | |
42273 | LIBS="-lsocket $LIBS" | |
42274 | cat >conftest.$ac_ext <<_ACEOF | |
42275 | /* confdefs.h. */ | |
42276 | _ACEOF | |
42277 | cat confdefs.h >>conftest.$ac_ext | |
42278 | cat >>conftest.$ac_ext <<_ACEOF | |
42279 | /* end confdefs.h. */ | |
42280 | ||
42281 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42282 | #ifdef __cplusplus | |
42283 | extern "C" | |
42284 | #endif | |
42285 | /* We use char because int might match the return type of a gcc2 | |
42286 | builtin and then its argument prototype would still apply. */ | |
42287 | char socket (); | |
42288 | int | |
42289 | main () | |
42290 | { | |
42291 | socket (); | |
42292 | ; | |
42293 | return 0; | |
42294 | } | |
42295 | _ACEOF | |
42296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42298 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42299 | ac_status=$? |
ac1cb8d3 VS |
42300 | grep -v '^ *+' conftest.er1 >conftest.err |
42301 | rm -f conftest.er1 | |
42302 | cat conftest.err >&5 | |
a848cd7e SC |
42303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42304 | (exit $ac_status); } && | |
5d7b7554 | 42305 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42307 | (eval $ac_try) 2>&5 | |
42308 | ac_status=$? | |
42309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42310 | (exit $ac_status); }; } && | |
42311 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42313 | (eval $ac_try) 2>&5 | |
42314 | ac_status=$? | |
42315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42316 | (exit $ac_status); }; }; then | |
42317 | ac_cv_lib_socket_socket=yes | |
42318 | else | |
42319 | echo "$as_me: failed program was:" >&5 | |
42320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42321 | ||
42322 | ac_cv_lib_socket_socket=no | |
42323 | fi | |
ac1cb8d3 VS |
42324 | rm -f conftest.err conftest.$ac_objext \ |
42325 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42326 | LIBS=$ac_check_lib_save_LIBS |
42327 | fi | |
42328 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
42329 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
42330 | if test $ac_cv_lib_socket_socket = yes; then | |
42331 | if test "$INET_LINK" != " -lsocket"; then | |
42332 | INET_LINK="$INET_LINK -lsocket" | |
42333 | fi | |
42334 | else | |
42335 | ||
42336 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
42337 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
42338 | wxUSE_SOCKETS=no | |
42339 | ||
42340 | ||
42341 | fi | |
42342 | ||
42343 | ||
42344 | ||
42345 | fi | |
42346 | ||
42347 | fi | |
42348 | fi | |
42349 | ||
42350 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42351 | if test "$TOOLKIT" != "MSW"; then | |
5d7b7554 | 42352 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
a848cd7e SC |
42353 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
42354 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
42355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42356 | else | |
42357 | ||
42358 | cat >conftest.$ac_ext <<_ACEOF | |
42359 | /* confdefs.h. */ | |
42360 | _ACEOF | |
42361 | cat confdefs.h >>conftest.$ac_ext | |
42362 | cat >>conftest.$ac_ext <<_ACEOF | |
42363 | /* end confdefs.h. */ | |
42364 | ||
42365 | #include <sys/types.h> | |
42366 | #include <sys/socket.h> | |
42367 | ||
42368 | int | |
42369 | main () | |
42370 | { | |
42371 | ||
42372 | socklen_t len; | |
42373 | getsockname(0, 0, &len); | |
42374 | ||
42375 | ; | |
42376 | return 0; | |
42377 | } | |
42378 | _ACEOF | |
42379 | rm -f conftest.$ac_objext | |
42380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42381 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42382 | ac_status=$? |
ac1cb8d3 VS |
42383 | grep -v '^ *+' conftest.er1 >conftest.err |
42384 | rm -f conftest.er1 | |
42385 | cat conftest.err >&5 | |
a848cd7e SC |
42386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42387 | (exit $ac_status); } && | |
5d7b7554 | 42388 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42390 | (eval $ac_try) 2>&5 | |
42391 | ac_status=$? | |
42392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42393 | (exit $ac_status); }; } && | |
42394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42396 | (eval $ac_try) 2>&5 | |
42397 | ac_status=$? | |
42398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42399 | (exit $ac_status); }; }; then | |
42400 | wx_cv_type_getsockname3=socklen_t | |
42401 | else | |
42402 | echo "$as_me: failed program was:" >&5 | |
42403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42404 | ||
42405 | ||
6459a506 | 42406 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 42407 | if test "$GCC" = yes ; then |
c92ad099 | 42408 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
42409 | fi |
42410 | ||
42411 | cat >conftest.$ac_ext <<_ACEOF | |
42412 | /* confdefs.h. */ | |
42413 | _ACEOF | |
42414 | cat confdefs.h >>conftest.$ac_ext | |
42415 | cat >>conftest.$ac_ext <<_ACEOF | |
42416 | /* end confdefs.h. */ | |
42417 | ||
42418 | #include <sys/types.h> | |
42419 | #include <sys/socket.h> | |
42420 | ||
42421 | int | |
42422 | main () | |
42423 | { | |
42424 | ||
42425 | size_t len; | |
42426 | getsockname(0, 0, &len); | |
42427 | ||
42428 | ; | |
42429 | return 0; | |
42430 | } | |
42431 | _ACEOF | |
42432 | rm -f conftest.$ac_objext | |
42433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42434 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42435 | ac_status=$? |
ac1cb8d3 VS |
42436 | grep -v '^ *+' conftest.er1 >conftest.err |
42437 | rm -f conftest.er1 | |
42438 | cat conftest.err >&5 | |
a848cd7e SC |
42439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42440 | (exit $ac_status); } && | |
5d7b7554 | 42441 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42443 | (eval $ac_try) 2>&5 | |
42444 | ac_status=$? | |
42445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42446 | (exit $ac_status); }; } && | |
42447 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42449 | (eval $ac_try) 2>&5 | |
42450 | ac_status=$? | |
42451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42452 | (exit $ac_status); }; }; then | |
42453 | wx_cv_type_getsockname3=size_t | |
42454 | else | |
42455 | echo "$as_me: failed program was:" >&5 | |
42456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42457 | ||
42458 | cat >conftest.$ac_ext <<_ACEOF | |
42459 | /* confdefs.h. */ | |
42460 | _ACEOF | |
42461 | cat confdefs.h >>conftest.$ac_ext | |
42462 | cat >>conftest.$ac_ext <<_ACEOF | |
42463 | /* end confdefs.h. */ | |
42464 | ||
42465 | #include <sys/types.h> | |
42466 | #include <sys/socket.h> | |
42467 | ||
42468 | int | |
42469 | main () | |
42470 | { | |
42471 | ||
42472 | int len; | |
42473 | getsockname(0, 0, &len); | |
42474 | ||
42475 | ; | |
42476 | return 0; | |
42477 | } | |
42478 | _ACEOF | |
42479 | rm -f conftest.$ac_objext | |
42480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42481 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42482 | ac_status=$? |
ac1cb8d3 VS |
42483 | grep -v '^ *+' conftest.er1 >conftest.err |
42484 | rm -f conftest.er1 | |
42485 | cat conftest.err >&5 | |
a848cd7e SC |
42486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42487 | (exit $ac_status); } && | |
5d7b7554 | 42488 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42490 | (eval $ac_try) 2>&5 | |
42491 | ac_status=$? | |
42492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42493 | (exit $ac_status); }; } && | |
42494 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42496 | (eval $ac_try) 2>&5 | |
42497 | ac_status=$? | |
42498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42499 | (exit $ac_status); }; }; then | |
42500 | wx_cv_type_getsockname3=int | |
42501 | else | |
42502 | echo "$as_me: failed program was:" >&5 | |
42503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42504 | ||
42505 | wx_cv_type_getsockname3=unknown | |
42506 | ||
42507 | fi | |
ac1cb8d3 | 42508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42509 | |
42510 | fi | |
ac1cb8d3 | 42511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42512 | |
6459a506 | 42513 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
42514 | |
42515 | ||
42516 | fi | |
ac1cb8d3 | 42517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42518 | |
42519 | fi | |
42520 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
42521 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
42522 | ||
42523 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
42524 | wxUSE_SOCKETS=no | |
42525 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42526 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42527 | else | |
42528 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 42529 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
42530 | _ACEOF |
42531 | ||
42532 | fi | |
42533 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
42534 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
42535 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
42536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42537 | else | |
42538 | ||
42539 | cat >conftest.$ac_ext <<_ACEOF | |
42540 | /* confdefs.h. */ | |
42541 | _ACEOF | |
42542 | cat confdefs.h >>conftest.$ac_ext | |
42543 | cat >>conftest.$ac_ext <<_ACEOF | |
42544 | /* end confdefs.h. */ | |
42545 | ||
42546 | #include <sys/types.h> | |
42547 | #include <sys/socket.h> | |
42548 | ||
42549 | int | |
42550 | main () | |
42551 | { | |
42552 | ||
42553 | socklen_t len; | |
42554 | getsockopt(0, 0, 0, 0, &len); | |
42555 | ||
42556 | ; | |
42557 | return 0; | |
42558 | } | |
42559 | _ACEOF | |
42560 | rm -f conftest.$ac_objext | |
42561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42562 | (eval $ac_compile) 2>conftest.er1 | |
42563 | ac_status=$? | |
42564 | grep -v '^ *+' conftest.er1 >conftest.err | |
42565 | rm -f conftest.er1 | |
42566 | cat conftest.err >&5 | |
42567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42568 | (exit $ac_status); } && | |
5d7b7554 | 42569 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
42570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42571 | (eval $ac_try) 2>&5 | |
42572 | ac_status=$? | |
42573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42574 | (exit $ac_status); }; } && | |
42575 | { ac_try='test -s conftest.$ac_objext' | |
42576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42577 | (eval $ac_try) 2>&5 | |
42578 | ac_status=$? | |
42579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42580 | (exit $ac_status); }; }; then | |
42581 | wx_cv_type_getsockopt5=socklen_t | |
42582 | else | |
42583 | echo "$as_me: failed program was:" >&5 | |
42584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42585 | ||
42586 | ||
6459a506 | 42587 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 42588 | if test "$GCC" = yes ; then |
c92ad099 | 42589 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
42590 | fi |
42591 | ||
42592 | cat >conftest.$ac_ext <<_ACEOF | |
42593 | /* confdefs.h. */ | |
42594 | _ACEOF | |
42595 | cat confdefs.h >>conftest.$ac_ext | |
42596 | cat >>conftest.$ac_ext <<_ACEOF | |
42597 | /* end confdefs.h. */ | |
42598 | ||
42599 | #include <sys/types.h> | |
42600 | #include <sys/socket.h> | |
42601 | ||
42602 | int | |
42603 | main () | |
42604 | { | |
42605 | ||
42606 | size_t len; | |
42607 | getsockopt(0, 0, 0, 0, &len); | |
42608 | ||
42609 | ; | |
42610 | return 0; | |
42611 | } | |
42612 | _ACEOF | |
42613 | rm -f conftest.$ac_objext | |
42614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42615 | (eval $ac_compile) 2>conftest.er1 | |
42616 | ac_status=$? | |
42617 | grep -v '^ *+' conftest.er1 >conftest.err | |
42618 | rm -f conftest.er1 | |
42619 | cat conftest.err >&5 | |
42620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42621 | (exit $ac_status); } && | |
5d7b7554 | 42622 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
42623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42624 | (eval $ac_try) 2>&5 | |
42625 | ac_status=$? | |
42626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42627 | (exit $ac_status); }; } && | |
42628 | { ac_try='test -s conftest.$ac_objext' | |
42629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42630 | (eval $ac_try) 2>&5 | |
42631 | ac_status=$? | |
42632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42633 | (exit $ac_status); }; }; then | |
42634 | wx_cv_type_getsockopt5=size_t | |
42635 | else | |
42636 | echo "$as_me: failed program was:" >&5 | |
42637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42638 | ||
42639 | cat >conftest.$ac_ext <<_ACEOF | |
42640 | /* confdefs.h. */ | |
42641 | _ACEOF | |
42642 | cat confdefs.h >>conftest.$ac_ext | |
42643 | cat >>conftest.$ac_ext <<_ACEOF | |
42644 | /* end confdefs.h. */ | |
42645 | ||
42646 | #include <sys/types.h> | |
42647 | #include <sys/socket.h> | |
42648 | ||
42649 | int | |
42650 | main () | |
42651 | { | |
42652 | ||
42653 | int len; | |
42654 | getsockopt(0, 0, 0, 0, &len); | |
42655 | ||
42656 | ; | |
42657 | return 0; | |
42658 | } | |
42659 | _ACEOF | |
42660 | rm -f conftest.$ac_objext | |
42661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42662 | (eval $ac_compile) 2>conftest.er1 | |
42663 | ac_status=$? | |
42664 | grep -v '^ *+' conftest.er1 >conftest.err | |
42665 | rm -f conftest.er1 | |
42666 | cat conftest.err >&5 | |
42667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42668 | (exit $ac_status); } && | |
5d7b7554 | 42669 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
42670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42671 | (eval $ac_try) 2>&5 | |
42672 | ac_status=$? | |
42673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42674 | (exit $ac_status); }; } && | |
42675 | { ac_try='test -s conftest.$ac_objext' | |
42676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42677 | (eval $ac_try) 2>&5 | |
42678 | ac_status=$? | |
42679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42680 | (exit $ac_status); }; }; then | |
42681 | wx_cv_type_getsockopt5=int | |
42682 | else | |
42683 | echo "$as_me: failed program was:" >&5 | |
42684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42685 | ||
42686 | wx_cv_type_getsockopt5=unknown | |
42687 | ||
42688 | fi | |
42689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42690 | ||
42691 | fi | |
42692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42693 | ||
6459a506 | 42694 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
42695 | |
42696 | ||
42697 | fi | |
42698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42699 | ||
42700 | fi | |
42701 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
42702 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
42703 | ||
42704 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
42705 | wxUSE_SOCKETS=no | |
42706 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42707 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42708 | else | |
42709 | cat >>confdefs.h <<_ACEOF | |
42710 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
42711 | _ACEOF |
42712 | ||
42713 | fi | |
42714 | fi | |
42715 | fi | |
42716 | ||
42717 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42718 | cat >>confdefs.h <<\_ACEOF | |
42719 | #define wxUSE_SOCKETS 1 | |
42720 | _ACEOF | |
42721 | ||
42722 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
42723 | fi | |
42724 | ||
42725 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42726 | if test "$wxUSE_SOCKETS" != "yes"; then | |
42727 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
42728 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
42729 | wxUSE_PROTOCOL=no | |
42730 | fi | |
42731 | fi | |
42732 | ||
42733 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42734 | cat >>confdefs.h <<\_ACEOF | |
42735 | #define wxUSE_PROTOCOL 1 | |
42736 | _ACEOF | |
42737 | ||
42738 | ||
42739 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
42740 | cat >>confdefs.h <<\_ACEOF | |
42741 | #define wxUSE_PROTOCOL_HTTP 1 | |
42742 | _ACEOF | |
42743 | ||
42744 | fi | |
42745 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
42746 | cat >>confdefs.h <<\_ACEOF | |
42747 | #define wxUSE_PROTOCOL_FTP 1 | |
42748 | _ACEOF | |
42749 | ||
42750 | fi | |
42751 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
42752 | cat >>confdefs.h <<\_ACEOF | |
42753 | #define wxUSE_PROTOCOL_FILE 1 | |
42754 | _ACEOF | |
42755 | ||
42756 | fi | |
42757 | else | |
42758 | if test "$wxUSE_FS_INET" = "yes"; then | |
42759 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
42760 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
42761 | wxUSE_FS_INET="no" | |
42762 | fi | |
42763 | fi | |
42764 | ||
42765 | if test "$wxUSE_URL" = "yes"; then | |
42766 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
42767 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
42768 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
42769 | wxUSE_URL=no | |
42770 | fi | |
42771 | if test "$wxUSE_URL" = "yes"; then | |
42772 | cat >>confdefs.h <<\_ACEOF | |
42773 | #define wxUSE_URL 1 | |
42774 | _ACEOF | |
42775 | ||
42776 | fi | |
42777 | fi | |
42778 | ||
42779 | if test "$wxUSE_FS_INET" = "yes"; then | |
42780 | cat >>confdefs.h <<\_ACEOF | |
42781 | #define wxUSE_FS_INET 1 | |
42782 | _ACEOF | |
42783 | ||
42784 | fi | |
42785 | ||
42786 | ||
ee45c548 MW |
42787 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
42788 | wxUSE_JOYSTICK=no | |
42789 | ||
42790 | if test "$TOOLKIT" = "MSW"; then | |
42791 | wxUSE_JOYSTICK=yes | |
42792 | ||
42793 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
42794 | if test "$USE_DARWIN" = 1; then | |
42795 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
42796 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
ee45c548 MW |
42797 | cat >conftest.$ac_ext <<_ACEOF |
42798 | /* confdefs.h. */ | |
42799 | _ACEOF | |
42800 | cat confdefs.h >>conftest.$ac_ext | |
42801 | cat >>conftest.$ac_ext <<_ACEOF | |
42802 | /* end confdefs.h. */ | |
42803 | #include <IOKit/hid/IOHIDLib.h> | |
42804 | int | |
42805 | main () | |
42806 | { | |
42807 | IOHIDQueueInterface *qi = NULL; | |
42808 | IOHIDCallbackFunction cb = NULL; | |
42809 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
42810 | ; | |
42811 | return 0; | |
42812 | } | |
42813 | _ACEOF | |
42814 | rm -f conftest.$ac_objext | |
42815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42816 | (eval $ac_compile) 2>conftest.er1 | |
42817 | ac_status=$? | |
42818 | grep -v '^ *+' conftest.er1 >conftest.err | |
42819 | rm -f conftest.er1 | |
42820 | cat conftest.err >&5 | |
42821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42822 | (exit $ac_status); } && | |
5d7b7554 | 42823 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
42824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42825 | (eval $ac_try) 2>&5 | |
42826 | ac_status=$? | |
42827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42828 | (exit $ac_status); }; } && | |
42829 | { ac_try='test -s conftest.$ac_objext' | |
42830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42831 | (eval $ac_try) 2>&5 | |
42832 | ac_status=$? | |
42833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42834 | (exit $ac_status); }; }; then | |
42835 | wxUSE_JOYSTICK=yes | |
a848cd7e | 42836 | |
ee45c548 MW |
42837 | else |
42838 | echo "$as_me: failed program was:" >&5 | |
42839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42840 | ||
42841 | fi | |
42842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ee45c548 MW |
42843 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 |
42844 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
42845 | fi | |
42846 | ||
42847 | else | |
a848cd7e SC |
42848 | |
42849 | for ac_header in linux/joystick.h | |
42850 | do | |
42851 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
42852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42853 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42855 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42857 | fi | |
42858 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42859 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42860 | else | |
42861 | # Is the header compilable? | |
42862 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
42863 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
42864 | cat >conftest.$ac_ext <<_ACEOF | |
42865 | /* confdefs.h. */ | |
42866 | _ACEOF | |
42867 | cat confdefs.h >>conftest.$ac_ext | |
42868 | cat >>conftest.$ac_ext <<_ACEOF | |
42869 | /* end confdefs.h. */ | |
42870 | $ac_includes_default | |
42871 | #include <$ac_header> | |
42872 | _ACEOF | |
42873 | rm -f conftest.$ac_objext | |
42874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42876 | ac_status=$? |
ac1cb8d3 VS |
42877 | grep -v '^ *+' conftest.er1 >conftest.err |
42878 | rm -f conftest.er1 | |
42879 | cat conftest.err >&5 | |
a848cd7e SC |
42880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42881 | (exit $ac_status); } && | |
5d7b7554 | 42882 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42884 | (eval $ac_try) 2>&5 | |
42885 | ac_status=$? | |
42886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42887 | (exit $ac_status); }; } && | |
42888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42890 | (eval $ac_try) 2>&5 | |
42891 | ac_status=$? | |
42892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42893 | (exit $ac_status); }; }; then | |
42894 | ac_header_compiler=yes | |
42895 | else | |
42896 | echo "$as_me: failed program was:" >&5 | |
42897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42898 | ||
42899 | ac_header_compiler=no | |
42900 | fi | |
ac1cb8d3 | 42901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42902 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
42903 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
42904 | ||
42905 | # Is the header present? | |
42906 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
42907 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
42908 | cat >conftest.$ac_ext <<_ACEOF | |
42909 | /* confdefs.h. */ | |
42910 | _ACEOF | |
42911 | cat confdefs.h >>conftest.$ac_ext | |
42912 | cat >>conftest.$ac_ext <<_ACEOF | |
42913 | /* end confdefs.h. */ | |
42914 | #include <$ac_header> | |
42915 | _ACEOF | |
42916 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
42917 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42918 | ac_status=$? | |
42919 | grep -v '^ *+' conftest.er1 >conftest.err | |
42920 | rm -f conftest.er1 | |
42921 | cat conftest.err >&5 | |
42922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42923 | (exit $ac_status); } >/dev/null; then | |
42924 | if test -s conftest.err; then | |
5d7b7554 VZ |
42925 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
42926 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
42927 | else |
42928 | ac_cpp_err= | |
42929 | fi | |
42930 | else | |
42931 | ac_cpp_err=yes | |
42932 | fi | |
42933 | if test -z "$ac_cpp_err"; then | |
42934 | ac_header_preproc=yes | |
42935 | else | |
42936 | echo "$as_me: failed program was:" >&5 | |
42937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42938 | ||
42939 | ac_header_preproc=no | |
42940 | fi | |
42941 | rm -f conftest.err conftest.$ac_ext | |
42942 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
42943 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
42944 | ||
42945 | # So? What about this header? | |
5d7b7554 | 42946 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 42947 | yes:no: ) |
a848cd7e SC |
42948 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
42949 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
42950 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
42951 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
42952 | ac_header_preproc=yes | |
a848cd7e | 42953 | ;; |
ac1cb8d3 | 42954 | no:yes:* ) |
a848cd7e SC |
42955 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
42956 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
42957 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
42958 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
42959 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
42960 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
42961 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
42962 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
42963 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
42964 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
42965 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
42966 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
42967 | ( |
42968 | cat <<\_ASBOX | |
ac1cb8d3 VS |
42969 | ## ----------------------------------------- ## |
42970 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
42971 | ## ----------------------------------------- ## | |
a848cd7e SC |
42972 | _ASBOX |
42973 | ) | | |
42974 | sed "s/^/$as_me: WARNING: /" >&2 | |
42975 | ;; | |
42976 | esac | |
42977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42981 | else | |
ac1cb8d3 | 42982 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
42983 | fi |
42984 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42985 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42986 | ||
42987 | fi | |
42988 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
42989 | cat >>confdefs.h <<_ACEOF | |
42990 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
42991 | _ACEOF | |
ee45c548 | 42992 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
42993 | fi |
42994 | ||
42995 | done | |
42996 | ||
ee45c548 | 42997 | fi |
4cb1d3da | 42998 | |
ee45c548 MW |
42999 | if test "$wxUSE_JOYSTICK" = "yes"; then |
43000 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43001 | #define wxUSE_JOYSTICK 1 |
43002 | _ACEOF | |
43003 | ||
ee45c548 MW |
43004 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
43005 | else | |
43006 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
43007 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
43008 | fi |
43009 | fi | |
43010 | ||
43011 | ||
43012 | ||
43013 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
43014 | cat >>confdefs.h <<\_ACEOF | |
43015 | #define wxUSE_FONTMAP 1 | |
43016 | _ACEOF | |
43017 | ||
43018 | fi | |
43019 | ||
43020 | if test "$wxUSE_UNICODE" = "yes" ; then | |
43021 | cat >>confdefs.h <<\_ACEOF | |
43022 | #define wxUSE_UNICODE 1 | |
43023 | _ACEOF | |
43024 | ||
43025 | ||
43026 | if test "$USE_WIN32" != 1; then | |
43027 | wxUSE_UNICODE_MSLU=no | |
43028 | fi | |
43029 | ||
43030 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
43031 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
43032 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
43033 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
43034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43035 | else | |
43036 | ac_check_lib_save_LIBS=$LIBS | |
43037 | LIBS="-lunicows $LIBS" | |
43038 | cat >conftest.$ac_ext <<_ACEOF | |
43039 | /* confdefs.h. */ | |
43040 | _ACEOF | |
43041 | cat confdefs.h >>conftest.$ac_ext | |
43042 | cat >>conftest.$ac_ext <<_ACEOF | |
43043 | /* end confdefs.h. */ | |
43044 | ||
43045 | ||
43046 | int | |
43047 | main () | |
43048 | { | |
43049 | main (); | |
43050 | ; | |
43051 | return 0; | |
43052 | } | |
43053 | _ACEOF | |
43054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43056 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43057 | ac_status=$? |
ac1cb8d3 VS |
43058 | grep -v '^ *+' conftest.er1 >conftest.err |
43059 | rm -f conftest.er1 | |
43060 | cat conftest.err >&5 | |
a848cd7e SC |
43061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43062 | (exit $ac_status); } && | |
5d7b7554 | 43063 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43065 | (eval $ac_try) 2>&5 | |
43066 | ac_status=$? | |
43067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43068 | (exit $ac_status); }; } && | |
43069 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43071 | (eval $ac_try) 2>&5 | |
43072 | ac_status=$? | |
43073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43074 | (exit $ac_status); }; }; then | |
43075 | ac_cv_lib_unicows_main=yes | |
43076 | else | |
43077 | echo "$as_me: failed program was:" >&5 | |
43078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43079 | ||
43080 | ac_cv_lib_unicows_main=no | |
43081 | fi | |
ac1cb8d3 VS |
43082 | rm -f conftest.err conftest.$ac_objext \ |
43083 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43084 | LIBS=$ac_check_lib_save_LIBS |
43085 | fi | |
43086 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
43087 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
43088 | if test $ac_cv_lib_unicows_main = yes; then | |
43089 | ||
43090 | cat >>confdefs.h <<\_ACEOF | |
43091 | #define wxUSE_UNICODE_MSLU 1 | |
43092 | _ACEOF | |
43093 | ||
43094 | ||
43095 | else | |
43096 | ||
43097 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
43098 | Applications will only run on Windows NT/2000/XP!" >&5 | |
43099 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
43100 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
43101 | wxUSE_UNICODE_MSLU=no | |
43102 | ||
43103 | fi | |
43104 | ||
43105 | fi | |
43106 | fi | |
43107 | ||
43108 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
43109 | cat >>confdefs.h <<\_ACEOF | |
43110 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
43111 | _ACEOF | |
43112 | ||
43113 | fi | |
43114 | ||
43115 | ||
43116 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
43117 | cat >>confdefs.h <<\_ACEOF | |
43118 | #define wxUSE_POSTSCRIPT 1 | |
43119 | _ACEOF | |
43120 | ||
43121 | fi | |
43122 | ||
43123 | cat >>confdefs.h <<\_ACEOF | |
43124 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
43125 | _ACEOF | |
43126 | ||
43127 | ||
43128 | cat >>confdefs.h <<\_ACEOF | |
43129 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
43130 | _ACEOF | |
43131 | ||
43132 | ||
43133 | ||
43134 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
43135 | cat >>confdefs.h <<\_ACEOF | |
43136 | #define wxUSE_CONSTRAINTS 1 | |
43137 | _ACEOF | |
43138 | ||
43139 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
43140 | fi | |
43141 | ||
8a7b1113 VZ |
43142 | if test "$wxUSE_MDI" = "yes"; then |
43143 | cat >>confdefs.h <<\_ACEOF | |
43144 | #define wxUSE_MDI 1 | |
43145 | _ACEOF | |
43146 | ||
43147 | ||
43148 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43149 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43150 | #define wxUSE_MDI_ARCHITECTURE 1 |
43151 | _ACEOF | |
43152 | ||
8a7b1113 VZ |
43153 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
43154 | fi | |
a848cd7e SC |
43155 | fi |
43156 | ||
43157 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
43158 | cat >>confdefs.h <<\_ACEOF | |
43159 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
43160 | _ACEOF | |
43161 | ||
43162 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
43163 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43164 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
43165 | fi | |
43166 | fi | |
43167 | ||
43168 | if test "$wxUSE_HELP" = "yes"; then | |
43169 | cat >>confdefs.h <<\_ACEOF | |
43170 | #define wxUSE_HELP 1 | |
43171 | _ACEOF | |
43172 | ||
43173 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
43174 | ||
43175 | if test "$wxUSE_MSW" = 1; then | |
43176 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
43177 | cat >>confdefs.h <<\_ACEOF | |
43178 | #define wxUSE_MS_HTML_HELP 1 | |
43179 | _ACEOF | |
43180 | ||
43181 | fi | |
43182 | fi | |
43183 | ||
43184 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
43185 | if test "$wxUSE_HTML" = "yes"; then | |
43186 | cat >>confdefs.h <<\_ACEOF | |
43187 | #define wxUSE_WXHTML_HELP 1 | |
43188 | _ACEOF | |
43189 | ||
43190 | else | |
43191 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
43192 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
43193 | wxUSE_WXHTML_HELP=no | |
43194 | fi | |
43195 | fi | |
43196 | fi | |
43197 | ||
43198 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
43199 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
43200 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
43201 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
43202 | else | |
43203 | cat >>confdefs.h <<\_ACEOF | |
43204 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
43205 | _ACEOF | |
43206 | ||
43207 | fi | |
43208 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
43209 | fi | |
43210 | ||
43211 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
43212 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
43213 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
43214 | { (exit 1); exit 1; }; } | |
43215 | fi | |
43216 | ||
43217 | ||
efdf6afe VZ |
43218 | if test "$wxUSE_METAFILE" = "yes"; then |
43219 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
43220 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
43221 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
43222 | wxUSE_METAFILE=no | |
43223 | fi | |
43224 | fi | |
43225 | ||
43226 | ||
a848cd7e SC |
43227 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
43228 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
43229 | -o "$wxUSE_OLE" = "yes" \ | |
43230 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
43231 | ||
43232 | for ac_header in ole2.h | |
43233 | do | |
43234 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43235 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43236 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43237 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43238 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43240 | fi | |
43241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43243 | else | |
43244 | # Is the header compilable? | |
43245 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43246 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43247 | cat >conftest.$ac_ext <<_ACEOF | |
43248 | /* confdefs.h. */ | |
43249 | _ACEOF | |
43250 | cat confdefs.h >>conftest.$ac_ext | |
43251 | cat >>conftest.$ac_ext <<_ACEOF | |
43252 | /* end confdefs.h. */ | |
43253 | $ac_includes_default | |
43254 | #include <$ac_header> | |
43255 | _ACEOF | |
43256 | rm -f conftest.$ac_objext | |
43257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43258 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43259 | ac_status=$? |
ac1cb8d3 VS |
43260 | grep -v '^ *+' conftest.er1 >conftest.err |
43261 | rm -f conftest.er1 | |
43262 | cat conftest.err >&5 | |
a848cd7e SC |
43263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43264 | (exit $ac_status); } && | |
5d7b7554 | 43265 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43267 | (eval $ac_try) 2>&5 | |
43268 | ac_status=$? | |
43269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43270 | (exit $ac_status); }; } && | |
43271 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43273 | (eval $ac_try) 2>&5 | |
43274 | ac_status=$? | |
43275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43276 | (exit $ac_status); }; }; then | |
43277 | ac_header_compiler=yes | |
43278 | else | |
43279 | echo "$as_me: failed program was:" >&5 | |
43280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43281 | ||
43282 | ac_header_compiler=no | |
43283 | fi | |
ac1cb8d3 | 43284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43285 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43286 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43287 | ||
43288 | # Is the header present? | |
43289 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43290 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43291 | cat >conftest.$ac_ext <<_ACEOF | |
43292 | /* confdefs.h. */ | |
43293 | _ACEOF | |
43294 | cat confdefs.h >>conftest.$ac_ext | |
43295 | cat >>conftest.$ac_ext <<_ACEOF | |
43296 | /* end confdefs.h. */ | |
43297 | #include <$ac_header> | |
43298 | _ACEOF | |
43299 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43300 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43301 | ac_status=$? | |
43302 | grep -v '^ *+' conftest.er1 >conftest.err | |
43303 | rm -f conftest.er1 | |
43304 | cat conftest.err >&5 | |
43305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43306 | (exit $ac_status); } >/dev/null; then | |
43307 | if test -s conftest.err; then | |
5d7b7554 VZ |
43308 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
43309 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
43310 | else |
43311 | ac_cpp_err= | |
43312 | fi | |
43313 | else | |
43314 | ac_cpp_err=yes | |
43315 | fi | |
43316 | if test -z "$ac_cpp_err"; then | |
43317 | ac_header_preproc=yes | |
43318 | else | |
43319 | echo "$as_me: failed program was:" >&5 | |
43320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43321 | ||
43322 | ac_header_preproc=no | |
43323 | fi | |
43324 | rm -f conftest.err conftest.$ac_ext | |
43325 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43326 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43327 | ||
43328 | # So? What about this header? | |
5d7b7554 | 43329 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 43330 | yes:no: ) |
a848cd7e SC |
43331 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43332 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43334 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43335 | ac_header_preproc=yes | |
a848cd7e | 43336 | ;; |
ac1cb8d3 | 43337 | no:yes:* ) |
a848cd7e SC |
43338 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43339 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43340 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43341 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43342 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43343 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43344 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43345 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43346 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43347 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43348 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43349 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43350 | ( |
43351 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43352 | ## ----------------------------------------- ## |
43353 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43354 | ## ----------------------------------------- ## | |
a848cd7e SC |
43355 | _ASBOX |
43356 | ) | | |
43357 | sed "s/^/$as_me: WARNING: /" >&2 | |
43358 | ;; | |
43359 | esac | |
43360 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43361 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43362 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43364 | else | |
ac1cb8d3 | 43365 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43366 | fi |
43367 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43368 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43369 | ||
43370 | fi | |
43371 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43372 | cat >>confdefs.h <<_ACEOF | |
43373 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43374 | _ACEOF | |
43375 | ||
43376 | fi | |
43377 | ||
43378 | done | |
43379 | ||
43380 | ||
43381 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
43382 | if test "$GCC" = yes ; then | |
a848cd7e SC |
43383 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 |
43384 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
43385 | cat >conftest.$ac_ext <<_ACEOF | |
43386 | /* confdefs.h. */ | |
43387 | _ACEOF | |
43388 | cat confdefs.h >>conftest.$ac_ext | |
43389 | cat >>conftest.$ac_ext <<_ACEOF | |
43390 | /* end confdefs.h. */ | |
43391 | #include <windows.h> | |
43392 | #include <ole2.h> | |
43393 | int | |
43394 | main () | |
43395 | { | |
43396 | ||
43397 | ; | |
43398 | return 0; | |
43399 | } | |
43400 | _ACEOF | |
43401 | rm -f conftest.$ac_objext | |
43402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43403 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43404 | ac_status=$? |
ac1cb8d3 VS |
43405 | grep -v '^ *+' conftest.er1 >conftest.err |
43406 | rm -f conftest.er1 | |
43407 | cat conftest.err >&5 | |
a848cd7e SC |
43408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43409 | (exit $ac_status); } && | |
5d7b7554 | 43410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43412 | (eval $ac_try) 2>&5 | |
43413 | ac_status=$? | |
43414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43415 | (exit $ac_status); }; } && | |
43416 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43418 | (eval $ac_try) 2>&5 | |
43419 | ac_status=$? | |
43420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43421 | (exit $ac_status); }; }; then | |
43422 | echo "$as_me:$LINENO: result: no" >&5 | |
43423 | echo "${ECHO_T}no" >&6 | |
43424 | else | |
43425 | echo "$as_me: failed program was:" >&5 | |
43426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43427 | ||
43428 | echo "$as_me:$LINENO: result: yes" >&5 | |
43429 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 43430 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 43431 | fi |
ac1cb8d3 | 43432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43433 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
43434 | if test "$wxUSE_OLE" = "yes" ; then | |
43435 | cat >>confdefs.h <<\_ACEOF | |
43436 | #define wxUSE_OLE 1 | |
43437 | _ACEOF | |
43438 | ||
0b78747f | 43439 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
43440 | fi |
43441 | fi | |
43442 | ||
43443 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
43444 | cat >>confdefs.h <<\_ACEOF | |
43445 | #define wxUSE_DATAOBJ 1 | |
43446 | _ACEOF | |
43447 | ||
43448 | fi | |
43449 | else | |
43450 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
43451 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
43452 | ||
43453 | wxUSE_CLIPBOARD=no | |
43454 | wxUSE_DRAG_AND_DROP=no | |
43455 | wxUSE_DATAOBJ=no | |
43456 | wxUSE_OLE=no | |
43457 | fi | |
43458 | ||
43459 | if test "$wxUSE_METAFILE" = "yes"; then | |
43460 | cat >>confdefs.h <<\_ACEOF | |
43461 | #define wxUSE_METAFILE 1 | |
43462 | _ACEOF | |
43463 | ||
43464 | ||
43465 | cat >>confdefs.h <<\_ACEOF | |
43466 | #define wxUSE_ENH_METAFILE 1 | |
43467 | _ACEOF | |
43468 | ||
43469 | fi | |
43470 | fi | |
43471 | ||
43472 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 43473 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
43474 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
43475 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 43476 | wxUSE_IPC=no |
a848cd7e SC |
43477 | fi |
43478 | ||
0b78747f MW |
43479 | if test "$wxUSE_IPC" = "yes"; then |
43480 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43481 | #define wxUSE_IPC 1 |
43482 | _ACEOF | |
43483 | ||
0b78747f MW |
43484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
43485 | fi | |
a848cd7e SC |
43486 | fi |
43487 | ||
eb730a0c | 43488 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
43489 | if test "$wxUSE_MGL" = 1; then |
43490 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
43491 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
43492 | wxUSE_DATAOBJ=no | |
43493 | else | |
43494 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
43495 | #define wxUSE_DATAOBJ 1 |
43496 | _ACEOF | |
43497 | ||
2113bc77 | 43498 | fi |
eb730a0c JS |
43499 | else |
43500 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
43501 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
43502 | wxUSE_CLIPBOARD=no | |
43503 | wxUSE_DRAG_AND_DROP=no | |
43504 | fi | |
43505 | ||
a848cd7e SC |
43506 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
43507 | if test "$wxUSE_MGL" = 1; then | |
43508 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
43509 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
43510 | wxUSE_CLIPBOARD=no | |
43511 | fi | |
43512 | ||
43513 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
43514 | cat >>confdefs.h <<\_ACEOF | |
43515 | #define wxUSE_CLIPBOARD 1 | |
43516 | _ACEOF | |
43517 | ||
a848cd7e SC |
43518 | fi |
43519 | fi | |
43520 | ||
43521 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
43522 | if test "$wxUSE_GTK" = 1; then | |
43523 | if test "$WXGTK12" != 1; then | |
43524 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
43525 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
43526 | wxUSE_DRAG_AND_DROP=no | |
43527 | fi | |
43528 | fi | |
43529 | ||
43530 | if test "$wxUSE_MOTIF" = 1; then | |
43531 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
43532 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
43533 | wxUSE_DRAG_AND_DROP=no | |
43534 | fi | |
43535 | ||
43536 | if test "$wxUSE_X11" = 1; then | |
43537 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
43538 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
43539 | wxUSE_DRAG_AND_DROP=no | |
43540 | fi | |
43541 | ||
43542 | if test "$wxUSE_MGL" = 1; then | |
43543 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
43544 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
43545 | wxUSE_DRAG_AND_DROP=no | |
43546 | fi | |
43547 | ||
43548 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
43549 | cat >>confdefs.h <<\_ACEOF | |
43550 | #define wxUSE_DRAG_AND_DROP 1 | |
43551 | _ACEOF | |
43552 | ||
43553 | fi | |
43554 | ||
43555 | fi | |
43556 | ||
43557 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
43558 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
43559 | fi | |
43560 | ||
43561 | if test "$wxUSE_SPLINES" = "yes" ; then | |
43562 | cat >>confdefs.h <<\_ACEOF | |
43563 | #define wxUSE_SPLINES 1 | |
43564 | _ACEOF | |
43565 | ||
43566 | fi | |
43567 | ||
fbe2ca43 SN |
43568 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
43569 | cat >>confdefs.h <<\_ACEOF | |
43570 | #define wxUSE_MOUSEWHEEL 1 | |
43571 | _ACEOF | |
43572 | ||
43573 | fi | |
43574 | ||
a848cd7e SC |
43575 | |
43576 | USES_CONTROLS=0 | |
43577 | if test "$wxUSE_CONTROLS" = "yes"; then | |
43578 | USES_CONTROLS=1 | |
43579 | fi | |
43580 | ||
43581 | if test "$wxUSE_ACCEL" = "yes"; then | |
43582 | cat >>confdefs.h <<\_ACEOF | |
43583 | #define wxUSE_ACCEL 1 | |
43584 | _ACEOF | |
43585 | ||
43586 | USES_CONTROLS=1 | |
43587 | fi | |
43588 | ||
43589 | if test "$wxUSE_BUTTON" = "yes"; then | |
43590 | cat >>confdefs.h <<\_ACEOF | |
43591 | #define wxUSE_BUTTON 1 | |
43592 | _ACEOF | |
43593 | ||
43594 | USES_CONTROLS=1 | |
43595 | fi | |
43596 | ||
43597 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
43598 | cat >>confdefs.h <<\_ACEOF | |
43599 | #define wxUSE_BMPBUTTON 1 | |
43600 | _ACEOF | |
43601 | ||
43602 | USES_CONTROLS=1 | |
43603 | fi | |
43604 | ||
43605 | if test "$wxUSE_CALCTRL" = "yes"; then | |
43606 | cat >>confdefs.h <<\_ACEOF | |
43607 | #define wxUSE_CALENDARCTRL 1 | |
43608 | _ACEOF | |
43609 | ||
43610 | USES_CONTROLS=1 | |
43611 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
43612 | fi | |
43613 | ||
43614 | if test "$wxUSE_CARET" = "yes"; then | |
43615 | cat >>confdefs.h <<\_ACEOF | |
43616 | #define wxUSE_CARET 1 | |
43617 | _ACEOF | |
43618 | ||
43619 | USES_CONTROLS=1 | |
43620 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
43621 | fi | |
43622 | ||
43623 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
43624 | cat >>confdefs.h <<\_ACEOF | |
43625 | #define wxUSE_COMBOBOX 1 | |
43626 | _ACEOF | |
43627 | ||
43628 | USES_CONTROLS=1 | |
43629 | fi | |
43630 | ||
43631 | if test "$wxUSE_CHOICE" = "yes"; then | |
43632 | cat >>confdefs.h <<\_ACEOF | |
43633 | #define wxUSE_CHOICE 1 | |
43634 | _ACEOF | |
43635 | ||
43636 | USES_CONTROLS=1 | |
43637 | fi | |
43638 | ||
92bbdbcd WS |
43639 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
43640 | cat >>confdefs.h <<\_ACEOF | |
43641 | #define wxUSE_CHOICEBOOK 1 | |
43642 | _ACEOF | |
43643 | ||
43644 | USES_CONTROLS=1 | |
43645 | fi | |
43646 | ||
a848cd7e SC |
43647 | if test "$wxUSE_CHECKBOX" = "yes"; then |
43648 | cat >>confdefs.h <<\_ACEOF | |
43649 | #define wxUSE_CHECKBOX 1 | |
43650 | _ACEOF | |
43651 | ||
43652 | USES_CONTROLS=1 | |
43653 | fi | |
43654 | ||
43655 | if test "$wxUSE_CHECKLST" = "yes"; then | |
43656 | cat >>confdefs.h <<\_ACEOF | |
43657 | #define wxUSE_CHECKLISTBOX 1 | |
43658 | _ACEOF | |
43659 | ||
43660 | USES_CONTROLS=1 | |
43661 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
43662 | fi | |
43663 | ||
da98e9be VZ |
43664 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
43665 | cat >>confdefs.h <<\_ACEOF | |
43666 | #define wxUSE_DATEPICKCTRL 1 | |
43667 | _ACEOF | |
43668 | ||
43669 | USES_CONTROLS=1 | |
43670 | fi | |
43671 | ||
a848cd7e SC |
43672 | if test "$wxUSE_DISPLAY" = "yes"; then |
43673 | cat >>confdefs.h <<\_ACEOF | |
43674 | #define wxUSE_DISPLAY 1 | |
43675 | _ACEOF | |
43676 | ||
0b78747f | 43677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
43678 | fi |
43679 | ||
43680 | if test "$wxUSE_GAUGE" = "yes"; then | |
43681 | cat >>confdefs.h <<\_ACEOF | |
43682 | #define wxUSE_GAUGE 1 | |
43683 | _ACEOF | |
43684 | ||
43685 | USES_CONTROLS=1 | |
43686 | fi | |
43687 | ||
43688 | if test "$wxUSE_GRID" = "yes"; then | |
43689 | cat >>confdefs.h <<\_ACEOF | |
43690 | #define wxUSE_GRID 1 | |
43691 | _ACEOF | |
43692 | ||
43693 | USES_CONTROLS=1 | |
43694 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
43695 | fi | |
43696 | ||
20e34ecc RR |
43697 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
43698 | cat >>confdefs.h <<\_ACEOF | |
43699 | #define wxUSE_DATAVIEWCTRL 1 | |
43700 | _ACEOF | |
43701 | ||
43702 | USES_CONTROLS=1 | |
43703 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
43704 | fi | |
43705 | ||
a848cd7e SC |
43706 | if test "$wxUSE_IMAGLIST" = "yes"; then |
43707 | cat >>confdefs.h <<\_ACEOF | |
43708 | #define wxUSE_IMAGLIST 1 | |
43709 | _ACEOF | |
43710 | ||
43711 | fi | |
43712 | ||
43713 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
43714 | cat >>confdefs.h <<\_ACEOF | |
43715 | #define wxUSE_LISTBOOK 1 | |
43716 | _ACEOF | |
43717 | ||
43718 | USES_CONTROLS=1 | |
43719 | fi | |
43720 | ||
43721 | if test "$wxUSE_LISTBOX" = "yes"; then | |
43722 | cat >>confdefs.h <<\_ACEOF | |
43723 | #define wxUSE_LISTBOX 1 | |
43724 | _ACEOF | |
43725 | ||
43726 | USES_CONTROLS=1 | |
0b78747f | 43727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
43728 | fi |
43729 | ||
43730 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
43731 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43732 | cat >>confdefs.h <<\_ACEOF | |
43733 | #define wxUSE_LISTCTRL 1 | |
43734 | _ACEOF | |
43735 | ||
43736 | USES_CONTROLS=1 | |
43737 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
43738 | else | |
43739 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
43740 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43741 | fi | |
43742 | fi | |
43743 | ||
43744 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
43745 | cat >>confdefs.h <<\_ACEOF | |
43746 | #define wxUSE_NOTEBOOK 1 | |
43747 | _ACEOF | |
43748 | ||
43749 | USES_CONTROLS=1 | |
43750 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
43751 | fi | |
43752 | ||
43753 | ||
43754 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
43755 | cat >>confdefs.h <<\_ACEOF | |
43756 | #define wxUSE_RADIOBOX 1 | |
43757 | _ACEOF | |
43758 | ||
43759 | USES_CONTROLS=1 | |
43760 | fi | |
43761 | ||
43762 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
43763 | cat >>confdefs.h <<\_ACEOF | |
43764 | #define wxUSE_RADIOBTN 1 | |
43765 | _ACEOF | |
43766 | ||
43767 | USES_CONTROLS=1 | |
43768 | fi | |
43769 | ||
43770 | if test "$wxUSE_SASH" = "yes"; then | |
43771 | cat >>confdefs.h <<\_ACEOF | |
43772 | #define wxUSE_SASH 1 | |
43773 | _ACEOF | |
43774 | ||
43775 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
43776 | fi | |
43777 | ||
43778 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
43779 | cat >>confdefs.h <<\_ACEOF | |
43780 | #define wxUSE_SCROLLBAR 1 | |
43781 | _ACEOF | |
43782 | ||
43783 | USES_CONTROLS=1 | |
43784 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
43785 | fi | |
43786 | ||
43787 | if test "$wxUSE_SLIDER" = "yes"; then | |
43788 | cat >>confdefs.h <<\_ACEOF | |
43789 | #define wxUSE_SLIDER 1 | |
43790 | _ACEOF | |
43791 | ||
43792 | USES_CONTROLS=1 | |
43793 | fi | |
43794 | ||
43795 | if test "$wxUSE_SPINBTN" = "yes"; then | |
43796 | cat >>confdefs.h <<\_ACEOF | |
43797 | #define wxUSE_SPINBTN 1 | |
43798 | _ACEOF | |
43799 | ||
43800 | USES_CONTROLS=1 | |
43801 | fi | |
43802 | ||
43803 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
43804 | cat >>confdefs.h <<\_ACEOF | |
43805 | #define wxUSE_SPINCTRL 1 | |
43806 | _ACEOF | |
43807 | ||
43808 | USES_CONTROLS=1 | |
43809 | fi | |
43810 | ||
43811 | if test "$wxUSE_SPLITTER" = "yes"; then | |
43812 | cat >>confdefs.h <<\_ACEOF | |
43813 | #define wxUSE_SPLITTER 1 | |
43814 | _ACEOF | |
43815 | ||
43816 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
43817 | fi | |
43818 | ||
43819 | if test "$wxUSE_STATBMP" = "yes"; then | |
43820 | cat >>confdefs.h <<\_ACEOF | |
43821 | #define wxUSE_STATBMP 1 | |
43822 | _ACEOF | |
43823 | ||
43824 | USES_CONTROLS=1 | |
43825 | fi | |
43826 | ||
43827 | if test "$wxUSE_STATBOX" = "yes"; then | |
43828 | cat >>confdefs.h <<\_ACEOF | |
43829 | #define wxUSE_STATBOX 1 | |
43830 | _ACEOF | |
43831 | ||
43832 | USES_CONTROLS=1 | |
43833 | fi | |
43834 | ||
43835 | if test "$wxUSE_STATTEXT" = "yes"; then | |
43836 | cat >>confdefs.h <<\_ACEOF | |
43837 | #define wxUSE_STATTEXT 1 | |
43838 | _ACEOF | |
43839 | ||
43840 | USES_CONTROLS=1 | |
43841 | fi | |
43842 | ||
43843 | if test "$wxUSE_STATLINE" = "yes"; then | |
43844 | cat >>confdefs.h <<\_ACEOF | |
43845 | #define wxUSE_STATLINE 1 | |
43846 | _ACEOF | |
43847 | ||
43848 | USES_CONTROLS=1 | |
43849 | fi | |
43850 | ||
43851 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
43852 | cat >>confdefs.h <<\_ACEOF |
43853 | #define wxUSE_NATIVE_STATUSBAR 1 | |
43854 | _ACEOF | |
43855 | ||
a848cd7e SC |
43856 | cat >>confdefs.h <<\_ACEOF |
43857 | #define wxUSE_STATUSBAR 1 | |
43858 | _ACEOF | |
43859 | ||
43860 | USES_CONTROLS=1 | |
43861 | ||
43862 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
43863 | fi | |
43864 | ||
f10e38c4 | 43865 | if test "$wxUSE_TAB_DIALOG" = "yes"; then |
a848cd7e SC |
43866 | cat >>confdefs.h <<\_ACEOF |
43867 | #define wxUSE_TAB_DIALOG 1 | |
43868 | _ACEOF | |
43869 | ||
a848cd7e SC |
43870 | fi |
43871 | ||
43872 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
43873 | cat >>confdefs.h <<\_ACEOF | |
43874 | #define wxUSE_TEXTCTRL 1 | |
43875 | _ACEOF | |
43876 | ||
43877 | USES_CONTROLS=1 | |
43878 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
43879 | fi | |
43880 | ||
43881 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43882 | if test "$wxUSE_COCOA" = 1 ; then | |
43883 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
43884 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
43885 | wxUSE_TOGGLEBTN=no | |
43886 | fi | |
43887 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43888 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
43889 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
43890 | wxUSE_TOGGLEBTN=no | |
43891 | fi | |
43892 | ||
43893 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43894 | cat >>confdefs.h <<\_ACEOF | |
43895 | #define wxUSE_TOGGLEBTN 1 | |
43896 | _ACEOF | |
43897 | ||
43898 | USES_CONTROLS=1 | |
43899 | fi | |
43900 | fi | |
43901 | ||
43902 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
43903 | cat >>confdefs.h <<\_ACEOF | |
43904 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
43905 | _ACEOF | |
43906 | ||
43907 | wxUSE_TOOLBAR="yes" | |
43908 | USES_CONTROLS=1 | |
43909 | fi | |
43910 | ||
43911 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
43912 | cat >>confdefs.h <<\_ACEOF | |
43913 | #define wxUSE_TOOLBAR 1 | |
43914 | _ACEOF | |
43915 | ||
43916 | USES_CONTROLS=1 | |
43917 | ||
43918 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
43919 | wxUSE_TOOLBAR_NATIVE="yes" | |
43920 | fi | |
43921 | ||
43922 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
43923 | cat >>confdefs.h <<\_ACEOF | |
43924 | #define wxUSE_TOOLBAR_NATIVE 1 | |
43925 | _ACEOF | |
43926 | ||
43927 | USES_CONTROLS=1 | |
43928 | fi | |
43929 | ||
43930 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
43931 | fi | |
43932 | ||
43933 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
43934 | if test "$wxUSE_MOTIF" = 1; then | |
43935 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
43936 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
43937 | else | |
43938 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43939 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
43940 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
43941 | else | |
43942 | cat >>confdefs.h <<\_ACEOF | |
43943 | #define wxUSE_TOOLTIPS 1 | |
43944 | _ACEOF | |
43945 | ||
43946 | fi | |
43947 | fi | |
43948 | fi | |
43949 | ||
0093c2fc VZ |
43950 | if test "$wxUSE_TREEBOOK" = "yes"; then |
43951 | cat >>confdefs.h <<\_ACEOF | |
43952 | #define wxUSE_TREEBOOK 1 | |
43953 | _ACEOF | |
43954 | ||
43955 | USES_CONTROLS=1 | |
43956 | fi | |
43957 | ||
5ec3bc43 JS |
43958 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
43959 | cat >>confdefs.h <<\_ACEOF | |
43960 | #define wxUSE_TOOLBOOK 1 | |
43961 | _ACEOF | |
43962 | ||
43963 | USES_CONTROLS=1 | |
43964 | fi | |
43965 | ||
a848cd7e SC |
43966 | if test "$wxUSE_TREECTRL" = "yes"; then |
43967 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43968 | cat >>confdefs.h <<\_ACEOF | |
43969 | #define wxUSE_TREECTRL 1 | |
43970 | _ACEOF | |
43971 | ||
43972 | USES_CONTROLS=1 | |
43973 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
43974 | else | |
43975 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
43976 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43977 | fi | |
43978 | fi | |
43979 | ||
43980 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
43981 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
43982 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
43983 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
43984 | else | |
43985 | if test "$wxUSE_PM" = 1; then | |
43986 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
43987 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
43988 | else | |
43989 | cat >>confdefs.h <<\_ACEOF | |
43990 | #define wxUSE_POPUPWIN 1 | |
43991 | _ACEOF | |
43992 | ||
0b78747f | 43993 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
43994 | |
43995 | USES_CONTROLS=1 | |
43996 | fi | |
43997 | fi | |
43998 | fi | |
43999 | ||
0dcd06dd | 44000 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
44001 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
44002 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
44003 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
44004 | else | |
44005 | cat >>confdefs.h <<\_ACEOF | |
44006 | #define wxUSE_DIALUP_MANAGER 1 | |
44007 | _ACEOF | |
44008 | ||
44009 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
44010 | fi | |
44011 | fi | |
44012 | ||
a848cd7e SC |
44013 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
44014 | if test "$wxUSE_PM" = 1; then | |
44015 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
44016 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
44017 | else | |
44018 | cat >>confdefs.h <<\_ACEOF | |
44019 | #define wxUSE_TIPWINDOW 1 | |
44020 | _ACEOF | |
44021 | ||
44022 | fi | |
44023 | fi | |
44024 | ||
44025 | if test "$USES_CONTROLS" = 1; then | |
44026 | cat >>confdefs.h <<\_ACEOF | |
44027 | #define wxUSE_CONTROLS 1 | |
44028 | _ACEOF | |
44029 | ||
44030 | fi | |
44031 | ||
44032 | ||
44033 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
44034 | cat >>confdefs.h <<\_ACEOF | |
44035 | #define wxUSE_ACCESSIBILITY 1 | |
44036 | _ACEOF | |
44037 | ||
44038 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
44039 | fi | |
44040 | ||
38b4a946 VZ |
44041 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
44042 | cat >>confdefs.h <<\_ACEOF | |
44043 | #define wxUSE_DC_CACHEING 1 | |
44044 | _ACEOF | |
44045 | ||
44046 | fi | |
44047 | ||
a848cd7e SC |
44048 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
44049 | cat >>confdefs.h <<\_ACEOF | |
44050 | #define wxUSE_DRAGIMAGE 1 | |
44051 | _ACEOF | |
44052 | ||
44053 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
44054 | fi | |
44055 | ||
44056 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
44057 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
44058 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
44059 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
44060 | else | |
44061 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44062 | #define wxUSE_EXCEPTIONS 1 |
44063 | _ACEOF | |
44064 | ||
07bea8f0 VS |
44065 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
44066 | fi | |
a848cd7e SC |
44067 | fi |
44068 | ||
44069 | USE_HTML=0 | |
44070 | if test "$wxUSE_HTML" = "yes"; then | |
44071 | cat >>confdefs.h <<\_ACEOF | |
44072 | #define wxUSE_HTML 1 | |
44073 | _ACEOF | |
44074 | ||
44075 | USE_HTML=1 | |
44076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
44077 | if test "$wxUSE_MAC" = 1; then |
44078 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
44079 | fi | |
a848cd7e | 44080 | fi |
646b6ec1 | 44081 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 44082 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 44083 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 44084 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
44085 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
44086 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
44087 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
44088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44089 | else | |
44090 | cat >conftest.$ac_ext <<_ACEOF | |
44091 | /* confdefs.h. */ | |
44092 | _ACEOF | |
44093 | cat confdefs.h >>conftest.$ac_ext | |
44094 | cat >>conftest.$ac_ext <<_ACEOF | |
44095 | /* end confdefs.h. */ | |
44096 | #include <Carbon/Carbon.h> | |
44097 | ||
44098 | #include <WebKit/HIWebView.h> | |
44099 | _ACEOF | |
44100 | rm -f conftest.$ac_objext | |
44101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44102 | (eval $ac_compile) 2>conftest.er1 | |
44103 | ac_status=$? | |
44104 | grep -v '^ *+' conftest.er1 >conftest.err | |
44105 | rm -f conftest.er1 | |
44106 | cat conftest.err >&5 | |
44107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44108 | (exit $ac_status); } && | |
5d7b7554 | 44109 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
44110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44111 | (eval $ac_try) 2>&5 | |
44112 | ac_status=$? | |
44113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44114 | (exit $ac_status); }; } && | |
44115 | { ac_try='test -s conftest.$ac_objext' | |
44116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44117 | (eval $ac_try) 2>&5 | |
44118 | ac_status=$? | |
44119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44120 | (exit $ac_status); }; }; then | |
44121 | ac_cv_header_WebKit_HIWebView_h=yes | |
44122 | else | |
44123 | echo "$as_me: failed program was:" >&5 | |
44124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44125 | ||
44126 | ac_cv_header_WebKit_HIWebView_h=no | |
44127 | fi | |
44128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44129 | fi | |
44130 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
44131 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
44132 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
44133 | ||
44134 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
44135 | #define wxUSE_WEBKIT 1 |
44136 | _ACEOF | |
44137 | ||
07bea8f0 VS |
44138 | WEBKIT_LINK="-framework WebKit" |
44139 | ||
44140 | else | |
44141 | ||
44142 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
44143 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
44144 | wxUSE_WEBKIT=no | |
44145 | ||
646b6ec1 VS |
44146 | fi |
44147 | ||
07bea8f0 VS |
44148 | |
44149 | CPPFLAGS="$old_CPPFLAGS" | |
44150 | elif test "$wxUSE_COCOA" = 1; then | |
44151 | cat >>confdefs.h <<\_ACEOF | |
44152 | #define wxUSE_WEBKIT 1 | |
44153 | _ACEOF | |
44154 | ||
44155 | else | |
44156 | wxUSE_WEBKIT=no | |
44157 | fi | |
44158 | fi | |
44159 | ||
9a8f0513 VS |
44160 | USE_XRC=0 |
44161 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
44162 | if test "$wxUSE_XML" != "yes"; then |
44163 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
44164 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
44165 | wxUSE_XRC=no | |
44166 | else | |
44167 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
44168 | #define wxUSE_XRC 1 |
44169 | _ACEOF | |
44170 | ||
d2ebf0b7 VS |
44171 | USE_XRC=1 |
44172 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
44173 | fi | |
9a8f0513 | 44174 | fi |
07bea8f0 | 44175 | |
a848cd7e SC |
44176 | if test "$wxUSE_MENUS" = "yes"; then |
44177 | cat >>confdefs.h <<\_ACEOF | |
44178 | #define wxUSE_MENUS 1 | |
44179 | _ACEOF | |
44180 | ||
44181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
44182 | fi | |
44183 | ||
44184 | if test "$wxUSE_METAFILE" = "yes"; then | |
44185 | cat >>confdefs.h <<\_ACEOF | |
44186 | #define wxUSE_METAFILE 1 | |
44187 | _ACEOF | |
44188 | ||
44189 | fi | |
44190 | ||
44191 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
44192 | cat >>confdefs.h <<\_ACEOF | |
44193 | #define wxUSE_MIMETYPE 1 | |
44194 | _ACEOF | |
44195 | ||
44196 | fi | |
44197 | ||
44198 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
44199 | cat >>confdefs.h <<\_ACEOF | |
44200 | #define wxUSE_MINIFRAME 1 | |
44201 | _ACEOF | |
44202 | ||
44203 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
44204 | fi | |
44205 | ||
44206 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
44207 | cat >>confdefs.h <<\_ACEOF | |
44208 | #define wxUSE_SYSTEM_OPTIONS 1 | |
44209 | _ACEOF | |
44210 | ||
44211 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 44212 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
44213 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
44214 | fi | |
44215 | fi | |
44216 | ||
44217 | ||
44218 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
44219 | cat >>confdefs.h <<\_ACEOF | |
44220 | #define wxUSE_VALIDATORS 1 | |
44221 | _ACEOF | |
44222 | ||
44223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
44224 | fi | |
44225 | ||
44226 | if test "$wxUSE_PALETTE" = "yes" ; then | |
44227 | cat >>confdefs.h <<\_ACEOF | |
44228 | #define wxUSE_PALETTE 1 | |
44229 | _ACEOF | |
44230 | ||
44231 | fi | |
44232 | ||
44233 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
44234 | LIBS=" -lunicows $LIBS" | |
44235 | fi | |
44236 | ||
91dea314 MW |
44237 | USE_RICHTEXT=0 |
44238 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
44239 | cat >>confdefs.h <<\_ACEOF | |
44240 | #define wxUSE_RICHTEXT 1 | |
44241 | _ACEOF | |
44242 | ||
44243 | USE_RICHTEXT=1 | |
44244 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
44245 | fi | |
44246 | ||
a848cd7e SC |
44247 | |
44248 | if test "$wxUSE_IMAGE" = "yes" ; then | |
44249 | cat >>confdefs.h <<\_ACEOF | |
44250 | #define wxUSE_IMAGE 1 | |
44251 | _ACEOF | |
44252 | ||
44253 | ||
44254 | if test "$wxUSE_GIF" = "yes" ; then | |
44255 | cat >>confdefs.h <<\_ACEOF | |
44256 | #define wxUSE_GIF 1 | |
44257 | _ACEOF | |
44258 | ||
44259 | fi | |
44260 | ||
44261 | if test "$wxUSE_PCX" = "yes" ; then | |
44262 | cat >>confdefs.h <<\_ACEOF | |
44263 | #define wxUSE_PCX 1 | |
44264 | _ACEOF | |
44265 | ||
44266 | fi | |
44267 | ||
44268 | if test "$wxUSE_IFF" = "yes" ; then | |
44269 | cat >>confdefs.h <<\_ACEOF | |
44270 | #define wxUSE_IFF 1 | |
44271 | _ACEOF | |
44272 | ||
44273 | fi | |
44274 | ||
44275 | if test "$wxUSE_PNM" = "yes" ; then | |
44276 | cat >>confdefs.h <<\_ACEOF | |
44277 | #define wxUSE_PNM 1 | |
44278 | _ACEOF | |
44279 | ||
44280 | fi | |
44281 | ||
44282 | if test "$wxUSE_XPM" = "yes" ; then | |
44283 | cat >>confdefs.h <<\_ACEOF | |
44284 | #define wxUSE_XPM 1 | |
44285 | _ACEOF | |
44286 | ||
44287 | fi | |
44288 | ||
44289 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
44290 | cat >>confdefs.h <<\_ACEOF | |
44291 | #define wxUSE_ICO_CUR 1 | |
44292 | _ACEOF | |
44293 | ||
44294 | fi | |
44295 | fi | |
44296 | ||
44297 | ||
44298 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
44299 | cat >>confdefs.h <<\_ACEOF | |
44300 | #define wxUSE_CHOICEDLG 1 | |
44301 | _ACEOF | |
44302 | ||
44303 | fi | |
44304 | ||
44305 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
44306 | cat >>confdefs.h <<\_ACEOF | |
44307 | #define wxUSE_COLOURDLG 1 | |
44308 | _ACEOF | |
44309 | ||
44310 | fi | |
44311 | ||
44312 | if test "$wxUSE_FILEDLG" = "yes"; then | |
44313 | cat >>confdefs.h <<\_ACEOF | |
44314 | #define wxUSE_FILEDLG 1 | |
44315 | _ACEOF | |
44316 | ||
44317 | fi | |
44318 | ||
44319 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
44320 | cat >>confdefs.h <<\_ACEOF | |
44321 | #define wxUSE_FINDREPLDLG 1 | |
44322 | _ACEOF | |
44323 | ||
44324 | fi | |
44325 | ||
44326 | if test "$wxUSE_FONTDLG" = "yes"; then | |
44327 | cat >>confdefs.h <<\_ACEOF | |
44328 | #define wxUSE_FONTDLG 1 | |
44329 | _ACEOF | |
44330 | ||
44331 | fi | |
44332 | ||
44333 | if test "$wxUSE_DIRDLG" = "yes"; then | |
44334 | if test "$wxUSE_TREECTRL" != "yes"; then | |
44335 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
44336 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
44337 | else | |
44338 | cat >>confdefs.h <<\_ACEOF | |
44339 | #define wxUSE_DIRDLG 1 | |
44340 | _ACEOF | |
44341 | ||
44342 | fi | |
44343 | fi | |
44344 | ||
44345 | if test "$wxUSE_MSGDLG" = "yes"; then | |
44346 | cat >>confdefs.h <<\_ACEOF | |
44347 | #define wxUSE_MSGDLG 1 | |
44348 | _ACEOF | |
44349 | ||
44350 | fi | |
44351 | ||
44352 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
44353 | cat >>confdefs.h <<\_ACEOF | |
44354 | #define wxUSE_NUMBERDLG 1 | |
44355 | _ACEOF | |
44356 | ||
44357 | fi | |
44358 | ||
44359 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
44360 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44361 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
44362 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
44363 | else | |
44364 | cat >>confdefs.h <<\_ACEOF | |
44365 | #define wxUSE_PROGRESSDLG 1 | |
44366 | _ACEOF | |
44367 | ||
44368 | fi | |
44369 | fi | |
44370 | ||
44371 | if test "$wxUSE_SPLASH" = "yes"; then | |
44372 | cat >>confdefs.h <<\_ACEOF | |
44373 | #define wxUSE_SPLASH 1 | |
44374 | _ACEOF | |
44375 | ||
2057db16 | 44376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
44377 | fi |
44378 | ||
44379 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
44380 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44381 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
44382 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
44383 | else | |
44384 | cat >>confdefs.h <<\_ACEOF | |
44385 | #define wxUSE_STARTUP_TIPS 1 | |
44386 | _ACEOF | |
44387 | ||
44388 | fi | |
44389 | fi | |
44390 | ||
44391 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
44392 | cat >>confdefs.h <<\_ACEOF | |
44393 | #define wxUSE_TEXTDLG 1 | |
44394 | _ACEOF | |
44395 | ||
44396 | fi | |
44397 | ||
44398 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
44399 | cat >>confdefs.h <<\_ACEOF | |
44400 | #define wxUSE_WIZARDDLG 1 | |
44401 | _ACEOF | |
44402 | ||
44403 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
44404 | fi | |
44405 | ||
44406 | ||
f10e38c4 VZ |
44407 | USE_MEDIA=0 |
44408 | ||
ce756cb0 | 44409 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
44410 | if test "$wxUSE_GTK" = 1; then |
44411 | wxUSE_GSTREAMER="yes" | |
44412 | ||
f10e38c4 VZ |
44413 | GST_VERSION_MAJOR=0 |
44414 | GST_VERSION_MINOR=10 | |
44415 | GST_VERSION_RELEASE=0 | |
44416 | GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE | |
44417 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
44418 | ||
44419 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 44420 | |
dae87f93 | 44421 | succeeded=no |
ce756cb0 | 44422 | |
dae87f93 RN |
44423 | if test -z "$PKG_CONFIG"; then |
44424 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44425 | set dummy pkg-config; ac_word=$2 | |
44426 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44428 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
44429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44430 | else | |
44431 | case $PKG_CONFIG in | |
44432 | [\\/]* | ?:[\\/]*) | |
44433 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44434 | ;; | |
44435 | *) | |
44436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44437 | for as_dir in $PATH | |
44438 | do | |
44439 | IFS=$as_save_IFS | |
44440 | test -z "$as_dir" && as_dir=. | |
44441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44443 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
44444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44445 | break 2 | |
44446 | fi | |
44447 | done | |
44448 | done | |
44449 | ||
44450 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
44451 | ;; | |
44452 | esac | |
44453 | fi | |
44454 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
44455 | ||
44456 | if test -n "$PKG_CONFIG"; then | |
44457 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
44458 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
44459 | else | |
44460 | echo "$as_me:$LINENO: result: no" >&5 | |
44461 | echo "${ECHO_T}no" >&6 | |
44462 | fi | |
44463 | ||
44464 | fi | |
44465 | ||
44466 | if test "$PKG_CONFIG" = "no" ; then | |
44467 | echo "*** The pkg-config script could not be found. Make sure it is" | |
44468 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
44469 | echo "*** to the full path to pkg-config." | |
44470 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
44471 | else | |
44472 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
44473 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
f10e38c4 VZ |
44474 | echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR |
44475 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44476 | gconf-2.0" >&5 | |
44477 | echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR | |
44478 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44479 | gconf-2.0... $ECHO_C" >&6 | |
44480 | ||
44481 | if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR | |
44482 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44483 | gconf-2.0" ; then | |
dae87f93 | 44484 | echo "$as_me:$LINENO: result: yes" >&5 |
ce756cb0 | 44485 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 44486 | succeeded=yes |
ce756cb0 | 44487 | |
f10e38c4 VZ |
44488 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
44489 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
44490 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR | |
44491 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44492 | gconf-2.0"` | |
44493 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 | |
44494 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
44495 | ||
44496 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
44497 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
44498 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR | |
44499 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44500 | gconf-2.0"` | |
44501 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 | |
44502 | echo "${ECHO_T}$GST_LIBS" >&6 | |
dae87f93 | 44503 | else |
f10e38c4 VZ |
44504 | GST_CFLAGS="" |
44505 | GST_LIBS="" | |
dae87f93 RN |
44506 | ## If we have a custom action on failure, don't print errors, but |
44507 | ## do set a variable so people can do so. | |
f10e38c4 VZ |
44508 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR |
44509 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44510 | gconf-2.0"` | |
ce756cb0 | 44511 | |
dae87f93 RN |
44512 | fi |
44513 | ||
44514 | ||
44515 | ||
44516 | else | |
44517 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
44518 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
44519 | fi | |
44520 | fi | |
44521 | ||
44522 | if test $succeeded = yes; then | |
44523 | ||
f10e38c4 VZ |
44524 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
44525 | LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR" | |
ce756cb0 | 44526 | |
ce756cb0 | 44527 | else |
dae87f93 | 44528 | |
f10e38c4 | 44529 | GST_VERSION_MINOR=8 |
dae87f93 RN |
44530 | |
44531 | fi | |
44532 | ||
f10e38c4 VZ |
44533 | else |
44534 | GST_VERSION_MINOR=8 | |
44535 | fi | |
dae87f93 | 44536 | |
f10e38c4 VZ |
44537 | GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE |
44538 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 44539 | |
f10e38c4 | 44540 | if test x$GST_VERSION_MINOR = x8; then |
dae87f93 | 44541 | |
f10e38c4 | 44542 | succeeded=no |
dae87f93 | 44543 | |
f10e38c4 VZ |
44544 | if test -z "$PKG_CONFIG"; then |
44545 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44546 | set dummy pkg-config; ac_word=$2 | |
dae87f93 RN |
44547 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
44548 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f10e38c4 | 44549 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
dae87f93 RN |
44550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
44551 | else | |
f10e38c4 VZ |
44552 | case $PKG_CONFIG in |
44553 | [\\/]* | ?:[\\/]*) | |
44554 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44555 | ;; | |
44556 | *) | |
44557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dae87f93 RN |
44558 | for as_dir in $PATH |
44559 | do | |
44560 | IFS=$as_save_IFS | |
44561 | test -z "$as_dir" && as_dir=. | |
44562 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44563 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
f10e38c4 | 44564 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
dae87f93 RN |
44565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
44566 | break 2 | |
ce756cb0 | 44567 | fi |
dae87f93 RN |
44568 | done |
44569 | done | |
44570 | ||
f10e38c4 VZ |
44571 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
44572 | ;; | |
44573 | esac | |
dae87f93 | 44574 | fi |
f10e38c4 VZ |
44575 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
44576 | ||
44577 | if test -n "$PKG_CONFIG"; then | |
44578 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
44579 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
dae87f93 RN |
44580 | else |
44581 | echo "$as_me:$LINENO: result: no" >&5 | |
44582 | echo "${ECHO_T}no" >&6 | |
44583 | fi | |
44584 | ||
f10e38c4 | 44585 | fi |
ce756cb0 | 44586 | |
f10e38c4 VZ |
44587 | if test "$PKG_CONFIG" = "no" ; then |
44588 | echo "*** The pkg-config script could not be found. Make sure it is" | |
44589 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
44590 | echo "*** to the full path to pkg-config." | |
44591 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
44592 | else | |
44593 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
44594 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
44595 | echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR | |
44596 | gstreamer-interfaces-$GST_MAJORMINOR | |
44597 | gstreamer-gconf-$GST_MAJORMINOR" >&5 | |
44598 | echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR | |
44599 | gstreamer-interfaces-$GST_MAJORMINOR | |
44600 | gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6 | |
44601 | ||
44602 | if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR | |
44603 | gstreamer-interfaces-$GST_MAJORMINOR | |
44604 | gstreamer-gconf-$GST_MAJORMINOR" ; then | |
44605 | echo "$as_me:$LINENO: result: yes" >&5 | |
44606 | echo "${ECHO_T}yes" >&6 | |
44607 | succeeded=yes | |
dae87f93 | 44608 | |
f10e38c4 VZ |
44609 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
44610 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
44611 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR | |
44612 | gstreamer-interfaces-$GST_MAJORMINOR | |
44613 | gstreamer-gconf-$GST_MAJORMINOR"` | |
44614 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 | |
44615 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
44616 | ||
44617 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
44618 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
44619 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR | |
44620 | gstreamer-interfaces-$GST_MAJORMINOR | |
44621 | gstreamer-gconf-$GST_MAJORMINOR"` | |
44622 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 | |
44623 | echo "${ECHO_T}$GST_LIBS" >&6 | |
44624 | else | |
44625 | GST_CFLAGS="" | |
44626 | GST_LIBS="" | |
44627 | ## If we have a custom action on failure, don't print errors, but | |
44628 | ## do set a variable so people can do so. | |
44629 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR | |
44630 | gstreamer-interfaces-$GST_MAJORMINOR | |
44631 | gstreamer-gconf-$GST_MAJORMINOR"` | |
dae87f93 | 44632 | |
dae87f93 RN |
44633 | fi |
44634 | ||
44635 | ||
ce756cb0 | 44636 | |
f10e38c4 VZ |
44637 | else |
44638 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
44639 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
44640 | fi | |
44641 | fi | |
ce756cb0 | 44642 | |
f10e38c4 | 44643 | if test $succeeded = yes; then |
dae87f93 | 44644 | |
f10e38c4 VZ |
44645 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
44646 | LIBS="$LIBS $GST_LIBS" | |
dae87f93 | 44647 | |
f10e38c4 | 44648 | else |
ce756cb0 | 44649 | |
f10e38c4 VZ |
44650 | { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5 |
44651 | echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;} | |
44652 | wxUSE_GSTREAMER="no" | |
ce756cb0 | 44653 | |
f10e38c4 | 44654 | fi |
ce756cb0 | 44655 | |
dae87f93 | 44656 | fi |
ce756cb0 | 44657 | |
f10e38c4 | 44658 | |
dae87f93 RN |
44659 | if test "$wxUSE_GSTREAMER" = "yes"; then |
44660 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
44661 | #define wxUSE_GSTREAMER 1 |
44662 | _ACEOF | |
44663 | ||
dae87f93 RN |
44664 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
44665 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
44666 | fi |
44667 | fi | |
f10e38c4 | 44668 | USE_MEDIA=1 |
ce756cb0 RN |
44669 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" |
44670 | cat >>confdefs.h <<\_ACEOF | |
44671 | #define wxUSE_MEDIACTRL 1 | |
44672 | _ACEOF | |
44673 | ||
44674 | fi | |
44675 | ||
44676 | ||
a848cd7e SC |
44677 | if test "$cross_compiling" = "yes"; then |
44678 | OSINFO="\"$host\"" | |
44679 | else | |
44680 | OSINFO=`uname -s -r -m` | |
44681 | OSINFO="\"$OSINFO\"" | |
44682 | fi | |
44683 | ||
44684 | cat >>confdefs.h <<_ACEOF | |
44685 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
44686 | _ACEOF | |
44687 | ||
44688 | ||
44689 | ||
44690 | if test "x$prefix" != "xNONE"; then | |
44691 | wxPREFIX=$prefix | |
44692 | else | |
44693 | wxPREFIX=$ac_default_prefix | |
44694 | fi | |
44695 | ||
44696 | cat >>confdefs.h <<_ACEOF | |
44697 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
44698 | _ACEOF | |
44699 | ||
44700 | ||
a848cd7e SC |
44701 | |
44702 | ||
44703 | CORE_BASE_LIBS="net base" | |
44704 | CORE_GUI_LIBS="adv core" | |
44705 | ||
44706 | if test "$wxUSE_XML" = "yes" ; then | |
44707 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
44708 | fi | |
44709 | if test "$wxUSE_ODBC" != "no" ; then | |
44710 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
44711 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
44712 | fi | |
44713 | if test "$wxUSE_HTML" = "yes" ; then | |
44714 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
44715 | fi | |
61639efb VZ |
44716 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
44717 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
44718 | fi | |
9a8f0513 VS |
44719 | if test "$wxUSE_XRC" = "yes" ; then |
44720 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
44721 | fi | |
a848cd7e SC |
44722 | |
44723 | if test "$wxUSE_GUI" != "yes"; then | |
44724 | CORE_GUI_LIBS="" | |
44725 | fi | |
44726 | ||
44727 | ||
44728 | ||
44729 | ||
44730 | ||
5d7b7554 VZ |
44731 | ac_ext=c |
44732 | ac_cpp='$CPP $CPPFLAGS' | |
44733 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
44734 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
44735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
44736 | ||
a848cd7e SC |
44737 | |
44738 | ||
a848cd7e | 44739 | if test "$wxUSE_MAC" = 1 ; then |
a98bf0c0 | 44740 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
44741 | if test "$USE_DARWIN" = 1; then |
44742 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44743 | else | |
44744 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
44745 | fi | |
07bea8f0 | 44746 | fi |
5dcf30a0 | 44747 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
44748 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
44749 | else | |
44750 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 44751 | fi |
a848cd7e SC |
44752 | fi |
44753 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 44754 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
44755 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
44756 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44757 | fi | |
a848cd7e | 44758 | fi |
19b27e78 MW |
44759 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
44760 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
44761 | fi | |
a848cd7e | 44762 | |
a848cd7e SC |
44763 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
44764 | ||
a848cd7e SC |
44765 | if test "$wxUSE_GUI" = "yes"; then |
44766 | ||
44767 | ||
8bce5cda MW |
44768 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
44769 | dynamic erase event exec font image minimal mobile \ | |
44770 | mobile/wxedit mobile/styles propsize render \ | |
9e39d889 | 44771 | rotate shaped vscroll widgets" |
a848cd7e SC |
44772 | |
44773 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
44774 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
44775 | fi | |
0b78747f | 44776 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
44777 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
44778 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
44779 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
44780 | fi | |
44781 | fi | |
44782 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
44783 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 44784 | fi |
a848cd7e SC |
44785 | else |
44786 | SAMPLES_SUBDIRS="console" | |
44787 | fi | |
44788 | ||
44789 | ||
48f625bc | 44790 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
44791 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
44792 | elif test "$GCC" = yes ; then | |
44793 | CWARNINGS="-Wall -Wundef" | |
44794 | fi | |
44795 | ||
48f625bc | 44796 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 44797 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
44798 | elif test "$GXX" = yes ; then |
44799 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 44800 | fi |
a848cd7e | 44801 | |
a848cd7e | 44802 | |
5ff751d6 VZ |
44803 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
44804 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
44805 | ||
44806 | ||
c92ad099 | 44807 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 44808 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
44809 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
44810 | $CPPFLAGS ` | |
5ff751d6 | 44811 | |
8aeeb05c | 44812 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 44813 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 44814 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
44815 | |
44816 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
44817 | ||
a848cd7e | 44818 | |
95986553 DE |
44819 | if test "x$MWCC" = "xyes"; then |
44820 | ||
44821 | CC="$CC -cwd source -I-" | |
44822 | CXX="$CXX -cwd source -I-" | |
44823 | fi | |
44824 | ||
a848cd7e | 44825 | |
0c3c69fc | 44826 | LIBS=`echo $LIBS` |
a848cd7e SC |
44827 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
44828 | EXTRALIBS_XML="$EXPAT_LINK" | |
44829 | EXTRALIBS_HTML="$MSPACK_LINK" | |
44830 | EXTRALIBS_ODBC="$ODBC_LINK" | |
44831 | if test "$wxUSE_GUI" = "yes"; then | |
2b850ae1 | 44832 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
44833 | fi |
44834 | if test "$wxUSE_OPENGL" = "yes"; then | |
44835 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
44836 | fi | |
44837 | ||
8aeeb05c | 44838 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 44839 | |
5ff751d6 | 44840 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
44841 | |
44842 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 44843 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
44844 | fi |
44845 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 44846 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
44847 | fi |
44848 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 44849 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
44850 | fi |
44851 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 44852 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
44853 | fi |
44854 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 44855 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
44856 | fi |
44857 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 44858 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
44859 | fi |
44860 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 44861 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
44862 | fi |
44863 | ||
44864 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 44865 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
44866 | done |
44867 | ||
44868 | ||
44869 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
44870 | WXUNIV=1 | |
44871 | else | |
44872 | WXUNIV=0 | |
44873 | fi | |
44874 | ||
44875 | ||
44876 | ||
44877 | ||
44878 | ||
44879 | ||
44880 | ||
44881 | ||
44882 | ||
44883 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
44884 | MONOLITHIC=1 | |
44885 | else | |
44886 | MONOLITHIC=0 | |
44887 | fi | |
44888 | ||
44889 | if test $wxUSE_PLUGINS = "yes" ; then | |
44890 | USE_PLUGINS=1 | |
44891 | else | |
44892 | USE_PLUGINS=0 | |
44893 | fi | |
44894 | ||
44895 | if test $wxUSE_ODBC != "no" ; then | |
44896 | USE_ODBC=1 | |
44897 | else | |
44898 | USE_ODBC=0 | |
44899 | fi | |
44900 | ||
16358932 VZ |
44901 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
44902 | USE_QA=1 | |
44903 | else | |
44904 | USE_QA=0 | |
44905 | fi | |
44906 | ||
a848cd7e SC |
44907 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
44908 | OFFICIAL_BUILD=1 | |
44909 | else | |
44910 | OFFICIAL_BUILD=0 | |
44911 | fi | |
44912 | ||
44913 | ||
44914 | ||
44915 | ||
44916 | ||
44917 | ||
44918 | ||
44919 | ||
44920 | ||
44921 | ||
44922 | ||
44923 | ||
44924 | ||
44925 | ||
44926 | ||
44927 | ||
44928 | ||
44929 | ||
44930 | ||
ceec2216 | 44931 | |
d1c38808 | 44932 | |
3565d135 | 44933 | |
2b850ae1 | 44934 | |
a848cd7e SC |
44935 | |
44936 | ||
44937 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
44938 | ||
44939 | ||
44940 | ||
44941 | ||
44942 | ||
44943 | ||
44944 | ||
44945 | ||
4d4ff94c VZ |
44946 | case "$TOOLKIT" in |
44947 | GTK) | |
44948 | TOOLKIT_USER="GTK+" | |
44949 | if test "$WXGTK20" = 1; then | |
44950 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
44951 | fi | |
9a8f0513 | 44952 | ;; |
4d4ff94c VZ |
44953 | |
44954 | *) | |
44955 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 44956 | ;; |
4d4ff94c | 44957 | esac |
a848cd7e | 44958 | |
fb00f58d JS |
44959 | if test "$wxUSE_WINE" = "yes"; then |
44960 | BAKEFILE_FORCE_PLATFORM=win32 | |
44961 | fi | |
44962 | ||
7afc46ab KO |
44963 | if test "$wxUSE_MAC" = 1 ; then |
44964 | if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then | |
44965 | CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS" | |
44966 | CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS" | |
44967 | LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS" | |
44968 | bk_use_pch=no | |
44969 | fi | |
44970 | # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)? | |
44971 | # The makefile currently uses AR and RANLIB, which libtool apparently supercedes. | |
44972 | # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it) | |
44973 | fi | |
44974 | ||
9a8f0513 | 44975 | |
1e9e8aba DE |
44976 | |
44977 | ||
a848cd7e | 44978 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 VZ |
44979 | if test "x${host}" = "x" ; then |
44980 | { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5 | |
44981 | echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;} | |
44982 | { (exit 1); exit 1; }; } | |
44983 | fi | |
44984 | ||
a848cd7e SC |
44985 | BAKEFILE_HOST="${host}" |
44986 | fi | |
44987 | ||
44988 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
44989 | ||
44990 | if test -n "$ac_tool_prefix"; then | |
44991 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
44992 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
44993 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44995 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
44996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44997 | else | |
44998 | if test -n "$RANLIB"; then | |
44999 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
45000 | else | |
45001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45002 | for as_dir in $PATH | |
45003 | do | |
45004 | IFS=$as_save_IFS | |
45005 | test -z "$as_dir" && as_dir=. | |
45006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45008 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
45009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45010 | break 2 | |
45011 | fi | |
45012 | done | |
45013 | done | |
45014 | ||
45015 | fi | |
45016 | fi | |
45017 | RANLIB=$ac_cv_prog_RANLIB | |
45018 | if test -n "$RANLIB"; then | |
45019 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
45020 | echo "${ECHO_T}$RANLIB" >&6 | |
45021 | else | |
45022 | echo "$as_me:$LINENO: result: no" >&5 | |
45023 | echo "${ECHO_T}no" >&6 | |
45024 | fi | |
45025 | ||
45026 | fi | |
45027 | if test -z "$ac_cv_prog_RANLIB"; then | |
45028 | ac_ct_RANLIB=$RANLIB | |
45029 | # Extract the first word of "ranlib", so it can be a program name with args. | |
45030 | set dummy ranlib; ac_word=$2 | |
45031 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45033 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
45034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45035 | else | |
45036 | if test -n "$ac_ct_RANLIB"; then | |
45037 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
45038 | else | |
45039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45040 | for as_dir in $PATH | |
45041 | do | |
45042 | IFS=$as_save_IFS | |
45043 | test -z "$as_dir" && as_dir=. | |
45044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45045 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45046 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
45047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45048 | break 2 | |
45049 | fi | |
45050 | done | |
45051 | done | |
45052 | ||
45053 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
45054 | fi | |
45055 | fi | |
45056 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
45057 | if test -n "$ac_ct_RANLIB"; then | |
45058 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
45059 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
45060 | else | |
45061 | echo "$as_me:$LINENO: result: no" >&5 | |
45062 | echo "${ECHO_T}no" >&6 | |
45063 | fi | |
45064 | ||
45065 | RANLIB=$ac_ct_RANLIB | |
45066 | else | |
45067 | RANLIB="$ac_cv_prog_RANLIB" | |
45068 | fi | |
45069 | ||
45070 | # Find a good install program. We prefer a C program (faster), | |
45071 | # so one script is as good as another. But avoid the broken or | |
45072 | # incompatible versions: | |
45073 | # SysV /etc/install, /usr/sbin/install | |
45074 | # SunOS /usr/etc/install | |
45075 | # IRIX /sbin/install | |
45076 | # AIX /bin/install | |
45077 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
45078 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
45079 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
45080 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 45081 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
45082 | # ./install, which can be erroneously created by make from ./install.sh. |
45083 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
45084 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
45085 | if test -z "$INSTALL"; then | |
45086 | if test "${ac_cv_path_install+set}" = set; then | |
45087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45088 | else | |
45089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45090 | for as_dir in $PATH | |
45091 | do | |
45092 | IFS=$as_save_IFS | |
45093 | test -z "$as_dir" && as_dir=. | |
45094 | # Account for people who put trailing slashes in PATH elements. | |
45095 | case $as_dir/ in | |
45096 | ./ | .// | /cC/* | \ | |
45097 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 45098 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
45099 | /usr/ucb/* ) ;; |
45100 | *) | |
45101 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
45102 | # Don't use installbsd from OSF since it installs stuff as root | |
45103 | # by default. | |
45104 | for ac_prog in ginstall scoinst install; do | |
45105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
45106 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
45107 | if test $ac_prog = install && | |
45108 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45109 | # AIX install. It has an incompatible calling convention. | |
45110 | : | |
45111 | elif test $ac_prog = install && | |
45112 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45113 | # program-specific install script used by HP pwplus--don't use. | |
45114 | : | |
45115 | else | |
45116 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
45117 | break 3 | |
45118 | fi | |
45119 | fi | |
a848cd7e SC |
45120 | done |
45121 | done | |
45122 | ;; | |
45123 | esac | |
45124 | done | |
45125 | ||
45126 | ||
45127 | fi | |
45128 | if test "${ac_cv_path_install+set}" = set; then | |
45129 | INSTALL=$ac_cv_path_install | |
45130 | else | |
45131 | # As a last resort, use the slow shell script. We don't cache a | |
45132 | # path for INSTALL within a source directory, because that will | |
45133 | # break other packages using the cache if that directory is | |
45134 | # removed, or if the path is relative. | |
45135 | INSTALL=$ac_install_sh | |
45136 | fi | |
45137 | fi | |
45138 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
45139 | echo "${ECHO_T}$INSTALL" >&6 | |
45140 | ||
45141 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
45142 | # It thinks the first close brace ends the variable substitution. | |
45143 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
45144 | ||
45145 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
45146 | ||
45147 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
45148 | ||
45149 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
45150 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
45151 | LN_S=$as_ln_s | |
45152 | if test "$LN_S" = "ln -s"; then | |
45153 | echo "$as_me:$LINENO: result: yes" >&5 | |
45154 | echo "${ECHO_T}yes" >&6 | |
45155 | else | |
45156 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
45157 | echo "${ECHO_T}no, using $LN_S" >&6 | |
45158 | fi | |
45159 | ||
45160 | ||
45161 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45162 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45163 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45164 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45166 | else | |
45167 | cat >conftest.make <<\_ACEOF | |
45168 | all: | |
45169 | @echo 'ac_maketemp="$(MAKE)"' | |
45170 | _ACEOF | |
45171 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45172 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45173 | if test -n "$ac_maketemp"; then | |
45174 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45175 | else | |
45176 | eval ac_cv_prog_make_${ac_make}_set=no | |
45177 | fi | |
45178 | rm -f conftest.make | |
45179 | fi | |
45180 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45181 | echo "$as_me:$LINENO: result: yes" >&5 | |
45182 | echo "${ECHO_T}yes" >&6 | |
45183 | SET_MAKE= | |
45184 | else | |
45185 | echo "$as_me:$LINENO: result: no" >&5 | |
45186 | echo "${ECHO_T}no" >&6 | |
45187 | SET_MAKE="MAKE=${MAKE-make}" | |
45188 | fi | |
45189 | ||
45190 | ||
45191 | ||
45192 | if test -n "$ac_tool_prefix"; then | |
45193 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
45194 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
45195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45197 | if test "${ac_cv_prog_AR+set}" = set; then | |
45198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45199 | else | |
45200 | if test -n "$AR"; then | |
45201 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
45202 | else | |
45203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45204 | for as_dir in $PATH | |
45205 | do | |
45206 | IFS=$as_save_IFS | |
45207 | test -z "$as_dir" && as_dir=. | |
45208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45210 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
45211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45212 | break 2 | |
45213 | fi | |
45214 | done | |
45215 | done | |
45216 | ||
45217 | fi | |
45218 | fi | |
45219 | AR=$ac_cv_prog_AR | |
45220 | if test -n "$AR"; then | |
45221 | echo "$as_me:$LINENO: result: $AR" >&5 | |
45222 | echo "${ECHO_T}$AR" >&6 | |
45223 | else | |
45224 | echo "$as_me:$LINENO: result: no" >&5 | |
45225 | echo "${ECHO_T}no" >&6 | |
45226 | fi | |
45227 | ||
45228 | fi | |
45229 | if test -z "$ac_cv_prog_AR"; then | |
45230 | ac_ct_AR=$AR | |
45231 | # Extract the first word of "ar", so it can be a program name with args. | |
45232 | set dummy ar; ac_word=$2 | |
45233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45235 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
45236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45237 | else | |
45238 | if test -n "$ac_ct_AR"; then | |
45239 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
45240 | else | |
45241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45242 | for as_dir in $PATH | |
45243 | do | |
45244 | IFS=$as_save_IFS | |
45245 | test -z "$as_dir" && as_dir=. | |
45246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45247 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45248 | ac_cv_prog_ac_ct_AR="ar" | |
45249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45250 | break 2 | |
45251 | fi | |
45252 | done | |
45253 | done | |
45254 | ||
45255 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
45256 | fi | |
45257 | fi | |
45258 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
45259 | if test -n "$ac_ct_AR"; then | |
45260 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
45261 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
45262 | else | |
45263 | echo "$as_me:$LINENO: result: no" >&5 | |
45264 | echo "${ECHO_T}no" >&6 | |
45265 | fi | |
45266 | ||
45267 | AR=$ac_ct_AR | |
45268 | else | |
45269 | AR="$ac_cv_prog_AR" | |
45270 | fi | |
45271 | ||
45272 | if test -n "$ac_tool_prefix"; then | |
45273 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
45274 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
45275 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45277 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
45278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45279 | else | |
45280 | if test -n "$STRIP"; then | |
45281 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
45282 | else | |
45283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45284 | for as_dir in $PATH | |
45285 | do | |
45286 | IFS=$as_save_IFS | |
45287 | test -z "$as_dir" && as_dir=. | |
45288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45289 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45290 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
45291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45292 | break 2 | |
45293 | fi | |
45294 | done | |
45295 | done | |
45296 | ||
45297 | fi | |
45298 | fi | |
45299 | STRIP=$ac_cv_prog_STRIP | |
45300 | if test -n "$STRIP"; then | |
45301 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
45302 | echo "${ECHO_T}$STRIP" >&6 | |
45303 | else | |
45304 | echo "$as_me:$LINENO: result: no" >&5 | |
45305 | echo "${ECHO_T}no" >&6 | |
45306 | fi | |
45307 | ||
45308 | fi | |
45309 | if test -z "$ac_cv_prog_STRIP"; then | |
45310 | ac_ct_STRIP=$STRIP | |
45311 | # Extract the first word of "strip", so it can be a program name with args. | |
45312 | set dummy strip; ac_word=$2 | |
45313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45315 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
45316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45317 | else | |
45318 | if test -n "$ac_ct_STRIP"; then | |
45319 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
45320 | else | |
45321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45322 | for as_dir in $PATH | |
45323 | do | |
45324 | IFS=$as_save_IFS | |
45325 | test -z "$as_dir" && as_dir=. | |
45326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45328 | ac_cv_prog_ac_ct_STRIP="strip" | |
45329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45330 | break 2 | |
45331 | fi | |
45332 | done | |
45333 | done | |
45334 | ||
45335 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
45336 | fi | |
45337 | fi | |
45338 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
45339 | if test -n "$ac_ct_STRIP"; then | |
45340 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
45341 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
45342 | else | |
45343 | echo "$as_me:$LINENO: result: no" >&5 | |
45344 | echo "${ECHO_T}no" >&6 | |
45345 | fi | |
45346 | ||
45347 | STRIP=$ac_ct_STRIP | |
45348 | else | |
45349 | STRIP="$ac_cv_prog_STRIP" | |
45350 | fi | |
45351 | ||
45352 | if test -n "$ac_tool_prefix"; then | |
45353 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
45354 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
45355 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45357 | if test "${ac_cv_prog_NM+set}" = set; then | |
45358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45359 | else | |
45360 | if test -n "$NM"; then | |
45361 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
45362 | else | |
45363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45364 | for as_dir in $PATH | |
45365 | do | |
45366 | IFS=$as_save_IFS | |
45367 | test -z "$as_dir" && as_dir=. | |
45368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45369 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45370 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
45371 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45372 | break 2 | |
45373 | fi | |
45374 | done | |
45375 | done | |
45376 | ||
45377 | fi | |
45378 | fi | |
45379 | NM=$ac_cv_prog_NM | |
45380 | if test -n "$NM"; then | |
45381 | echo "$as_me:$LINENO: result: $NM" >&5 | |
45382 | echo "${ECHO_T}$NM" >&6 | |
45383 | else | |
45384 | echo "$as_me:$LINENO: result: no" >&5 | |
45385 | echo "${ECHO_T}no" >&6 | |
45386 | fi | |
45387 | ||
45388 | fi | |
45389 | if test -z "$ac_cv_prog_NM"; then | |
45390 | ac_ct_NM=$NM | |
45391 | # Extract the first word of "nm", so it can be a program name with args. | |
45392 | set dummy nm; ac_word=$2 | |
45393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45395 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
45396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45397 | else | |
45398 | if test -n "$ac_ct_NM"; then | |
45399 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
45400 | else | |
45401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45402 | for as_dir in $PATH | |
45403 | do | |
45404 | IFS=$as_save_IFS | |
45405 | test -z "$as_dir" && as_dir=. | |
45406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45407 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45408 | ac_cv_prog_ac_ct_NM="nm" | |
45409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45410 | break 2 | |
45411 | fi | |
45412 | done | |
45413 | done | |
45414 | ||
45415 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
45416 | fi | |
45417 | fi | |
45418 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
45419 | if test -n "$ac_ct_NM"; then | |
45420 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
45421 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
45422 | else | |
45423 | echo "$as_me:$LINENO: result: no" >&5 | |
45424 | echo "${ECHO_T}no" >&6 | |
45425 | fi | |
45426 | ||
45427 | NM=$ac_ct_NM | |
45428 | else | |
45429 | NM="$ac_cv_prog_NM" | |
45430 | fi | |
45431 | ||
45432 | ||
45433 | case ${BAKEFILE_HOST} in | |
45434 | *-hp-hpux* ) | |
1e9e8aba | 45435 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
45436 | ;; |
45437 | *) INSTALL_DIR="$INSTALL -d" | |
45438 | ;; | |
45439 | esac | |
45440 | ||
45441 | ||
45442 | LDFLAGS_GUI= | |
45443 | case ${BAKEFILE_HOST} in | |
45444 | *-*-cygwin* | *-*-mingw32* ) | |
45445 | LDFLAGS_GUI="-mwindows" | |
45446 | esac | |
45447 | ||
45448 | ||
45449 | fi | |
45450 | ||
45451 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
45452 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
45453 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
45454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45455 | else | |
45456 | ||
45457 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
45458 | egrep -s GNU > /dev/null); then | |
45459 | bakefile_cv_prog_makeisgnu="yes" | |
45460 | else | |
45461 | bakefile_cv_prog_makeisgnu="no" | |
45462 | fi | |
45463 | ||
45464 | fi | |
45465 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
45466 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
45467 | ||
45468 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
45469 | IF_GNU_MAKE="" | |
45470 | else | |
45471 | IF_GNU_MAKE="#" | |
45472 | fi | |
45473 | ||
45474 | ||
45475 | ||
45476 | PLATFORM_UNIX=0 | |
45477 | PLATFORM_WIN32=0 | |
45478 | PLATFORM_MSDOS=0 | |
45479 | PLATFORM_MAC=0 | |
1e9e8aba | 45480 | PLATFORM_MACOS=0 |
a848cd7e SC |
45481 | PLATFORM_MACOSX=0 |
45482 | PLATFORM_OS2=0 | |
1e9e8aba | 45483 | PLATFORM_BEOS=0 |
a848cd7e SC |
45484 | |
45485 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
45486 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 45487 | *-*-mingw32* ) |
a848cd7e SC |
45488 | PLATFORM_WIN32=1 |
45489 | ;; | |
45490 | *-pc-msdosdjgpp ) | |
45491 | PLATFORM_MSDOS=1 | |
45492 | ;; | |
45493 | *-pc-os2_emx | *-pc-os2-emx ) | |
45494 | PLATFORM_OS2=1 | |
45495 | ;; | |
47bd5406 | 45496 | *-*-darwin* ) |
a848cd7e SC |
45497 | PLATFORM_MAC=1 |
45498 | PLATFORM_MACOSX=1 | |
45499 | ;; | |
1e9e8aba DE |
45500 | *-*-beos* ) |
45501 | PLATFORM_BEOS=1 | |
45502 | ;; | |
45503 | powerpc-apple-macos* ) | |
45504 | PLATFORM_MAC=1 | |
45505 | PLATFORM_MACOS=1 | |
45506 | ;; | |
a848cd7e SC |
45507 | * ) |
45508 | PLATFORM_UNIX=1 | |
45509 | ;; | |
45510 | esac | |
45511 | else | |
45512 | case "$BAKEFILE_FORCE_PLATFORM" in | |
45513 | win32 ) | |
45514 | PLATFORM_WIN32=1 | |
45515 | ;; | |
45516 | msdos ) | |
45517 | PLATFORM_MSDOS=1 | |
45518 | ;; | |
45519 | os2 ) | |
45520 | PLATFORM_OS2=1 | |
45521 | ;; | |
45522 | darwin ) | |
45523 | PLATFORM_MAC=1 | |
45524 | PLATFORM_MACOSX=1 | |
45525 | ;; | |
45526 | unix ) | |
45527 | PLATFORM_UNIX=1 | |
45528 | ;; | |
1e9e8aba DE |
45529 | beos ) |
45530 | PLATFORM_BEOS=1 | |
45531 | ;; | |
a848cd7e SC |
45532 | * ) |
45533 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
45534 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
45535 | { (exit 1); exit 1; }; } | |
45536 | ;; | |
45537 | esac | |
45538 | fi | |
45539 | ||
45540 | ||
45541 | ||
45542 | ||
45543 | ||
45544 | ||
45545 | ||
45546 | ||
45547 | ||
1e9e8aba DE |
45548 | |
45549 | ||
a848cd7e SC |
45550 | # Check whether --enable-omf or --disable-omf was given. |
45551 | if test "${enable_omf+set}" = set; then | |
45552 | enableval="$enable_omf" | |
45553 | bk_os2_use_omf="$enableval" | |
45554 | fi; | |
45555 | ||
45556 | case "${BAKEFILE_HOST}" in | |
45557 | *-*-darwin* ) | |
47bd5406 VZ |
45558 | if test "x$GCC" = "xyes"; then |
45559 | CFLAGS="$CFLAGS -fno-common" | |
45560 | CXXFLAGS="$CXXFLAGS -fno-common" | |
45561 | fi | |
45562 | if test "x$XLCC" = "xyes"; then | |
45563 | CFLAGS="$CFLAGS -qnocommon" | |
45564 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
45565 | fi | |
a848cd7e SC |
45566 | ;; |
45567 | ||
45568 | *-pc-os2_emx | *-pc-os2-emx ) | |
45569 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
45570 | AR=emxomfar | |
45571 | RANLIB=: | |
45572 | LDFLAGS="-Zomf $LDFLAGS" | |
45573 | CFLAGS="-Zomf $CFLAGS" | |
45574 | CXXFLAGS="-Zomf $CXXFLAGS" | |
45575 | OS2_LIBEXT="lib" | |
45576 | else | |
45577 | OS2_LIBEXT="a" | |
45578 | fi | |
45579 | ;; | |
1e9e8aba DE |
45580 | |
45581 | i*86-*-beos* ) | |
45582 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
45583 | ;; | |
a848cd7e SC |
45584 | esac |
45585 | ||
45586 | ||
45587 | SO_SUFFIX="so" | |
45588 | SO_SUFFIX_MODULE="so" | |
45589 | EXEEXT="" | |
45590 | LIBPREFIX="lib" | |
45591 | LIBEXT=".a" | |
45592 | DLLPREFIX="lib" | |
45593 | DLLPREFIX_MODULE="" | |
45594 | DLLIMP_SUFFIX="" | |
810b94f0 | 45595 | dlldir="$libdir" |
a848cd7e SC |
45596 | |
45597 | case "${BAKEFILE_HOST}" in | |
45598 | *-hp-hpux* ) | |
45599 | SO_SUFFIX="sl" | |
45600 | SO_SUFFIX_MODULE="sl" | |
45601 | ;; | |
45602 | *-*-aix* ) | |
45603 | SO_SUFFIX="a" | |
45604 | SO_SUFFIX_MODULE="a" | |
45605 | ;; | |
810b94f0 MW |
45606 | *-*-cygwin* ) |
45607 | SO_SUFFIX="dll" | |
45608 | SO_SUFFIX_MODULE="dll" | |
45609 | DLLIMP_SUFFIX="dll.a" | |
45610 | EXEEXT=".exe" | |
45611 | DLLPREFIX="cyg" | |
45612 | dlldir="$bindir" | |
45613 | ;; | |
45614 | *-*-mingw32* ) | |
a848cd7e SC |
45615 | SO_SUFFIX="dll" |
45616 | SO_SUFFIX_MODULE="dll" | |
45617 | DLLIMP_SUFFIX="dll.a" | |
45618 | EXEEXT=".exe" | |
45619 | DLLPREFIX="" | |
810b94f0 | 45620 | dlldir="$bindir" |
a848cd7e SC |
45621 | ;; |
45622 | *-pc-msdosdjgpp ) | |
45623 | EXEEXT=".exe" | |
45624 | DLLPREFIX="" | |
810b94f0 | 45625 | dlldir="$bindir" |
a848cd7e SC |
45626 | ;; |
45627 | *-pc-os2_emx | *-pc-os2-emx ) | |
45628 | SO_SUFFIX="dll" | |
45629 | SO_SUFFIX_MODULE="dll" | |
45630 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
45631 | EXEEXT=".exe" | |
45632 | DLLPREFIX="" | |
45633 | LIBPREFIX="" | |
45634 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 45635 | dlldir="$bindir" |
a848cd7e | 45636 | ;; |
47bd5406 | 45637 | *-*-darwin* ) |
a848cd7e SC |
45638 | SO_SUFFIX="dylib" |
45639 | SO_SUFFIX_MODULE="bundle" | |
45640 | ;; | |
45641 | esac | |
45642 | ||
45643 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
45644 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
45645 | fi | |
45646 | ||
45647 | ||
45648 | ||
45649 | ||
45650 | ||
45651 | ||
45652 | ||
45653 | ||
45654 | ||
45655 | ||
45656 | ||
810b94f0 | 45657 | |
1e9e8aba DE |
45658 | PIC_FLAG="" |
45659 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
45660 | PIC_FLAG="-fPIC" |
45661 | fi | |
45662 | ||
1e9e8aba DE |
45663 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
45664 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 45665 | WINDOWS_IMPLIB=0 |
1e9e8aba | 45666 | |
a848cd7e SC |
45667 | case "${BAKEFILE_HOST}" in |
45668 | *-hp-hpux* ) | |
1e9e8aba | 45669 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
45670 | LDFLAGS="$LDFLAGS -L/usr/lib" |
45671 | ||
45672 | SHARED_LD_CC="${CC} -b -o" | |
45673 | SHARED_LD_CXX="${CXX} -b -o" | |
45674 | PIC_FLAG="+Z" | |
45675 | fi | |
45676 | ;; | |
45677 | ||
45678 | *-*-linux* ) | |
45679 | if test "x$GCC" != "xyes"; then | |
45680 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
45681 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
45682 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
45683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45684 | else | |
45685 | ||
45686 | cat >conftest.$ac_ext <<_ACEOF | |
45687 | /* confdefs.h. */ | |
45688 | _ACEOF | |
45689 | cat confdefs.h >>conftest.$ac_ext | |
45690 | cat >>conftest.$ac_ext <<_ACEOF | |
45691 | /* end confdefs.h. */ | |
45692 | ||
45693 | int | |
45694 | main () | |
45695 | { | |
45696 | ||
45697 | #ifndef __INTEL_COMPILER | |
e5efa97e | 45698 | This is not ICC |
a848cd7e SC |
45699 | #endif |
45700 | ||
45701 | ; | |
45702 | return 0; | |
45703 | } | |
45704 | _ACEOF | |
45705 | rm -f conftest.$ac_objext | |
45706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 45707 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 45708 | ac_status=$? |
ac1cb8d3 VS |
45709 | grep -v '^ *+' conftest.er1 >conftest.err |
45710 | rm -f conftest.er1 | |
45711 | cat conftest.err >&5 | |
a848cd7e SC |
45712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45713 | (exit $ac_status); } && | |
5d7b7554 | 45714 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
45715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45716 | (eval $ac_try) 2>&5 | |
45717 | ac_status=$? | |
45718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45719 | (exit $ac_status); }; } && | |
45720 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
45721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45722 | (eval $ac_try) 2>&5 | |
45723 | ac_status=$? | |
45724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45725 | (exit $ac_status); }; }; then | |
45726 | bakefile_cv_prog_icc=yes | |
45727 | else | |
45728 | echo "$as_me: failed program was:" >&5 | |
45729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45730 | ||
45731 | bakefile_cv_prog_icc=no | |
45732 | ||
45733 | fi | |
ac1cb8d3 | 45734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
45735 | |
45736 | fi | |
45737 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
45738 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
45739 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
45740 | PIC_FLAG="-KPIC" | |
45741 | fi | |
45742 | fi | |
45743 | ;; | |
45744 | ||
45745 | *-*-solaris2* ) | |
45746 | if test "x$GCC" != xyes ; then | |
45747 | SHARED_LD_CC="${CC} -G -o" | |
45748 | SHARED_LD_CXX="${CXX} -G -o" | |
45749 | PIC_FLAG="-KPIC" | |
45750 | fi | |
45751 | ;; | |
45752 | ||
45753 | *-*-darwin* ) | |
45754 | ||
473276a9 VS |
45755 | D='$' |
45756 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
45757 | #!/bin/sh |
45758 | #----------------------------------------------------------------------------- | |
45759 | #-- Name: distrib/mac/shared-ld-sh | |
45760 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
45761 | #-- Author: Gilles Depeyrot | |
45762 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
45763 | #-- Licence: any use permitted | |
45764 | #----------------------------------------------------------------------------- | |
45765 | ||
45766 | verbose=0 | |
45767 | args="" | |
45768 | objects="" | |
45769 | linking_flag="-dynamiclib" | |
810b94f0 | 45770 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 45771 | |
473276a9 VS |
45772 | while test ${D}# -gt 0; do |
45773 | case ${D}1 in | |
a848cd7e SC |
45774 | |
45775 | -v) | |
45776 | verbose=1 | |
45777 | ;; | |
45778 | ||
45779 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
45780 | # collect these options and values | |
473276a9 | 45781 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
45782 | shift |
45783 | ;; | |
45784 | ||
810b94f0 MW |
45785 | -s|-Wl,*) |
45786 | # collect these load args | |
45787 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 45788 | ;; |
810b94f0 MW |
45789 | |
45790 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 45791 | # collect these options |
473276a9 | 45792 | args="${D}{args} ${D}1" |
a848cd7e SC |
45793 | ;; |
45794 | ||
45795 | -dynamiclib|-bundle) | |
473276a9 | 45796 | linking_flag="${D}1" |
a848cd7e SC |
45797 | ;; |
45798 | ||
45799 | -*) | |
473276a9 | 45800 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
45801 | exit 1 |
45802 | ;; | |
45803 | ||
45804 | *.o | *.a | *.dylib) | |
45805 | # collect object files | |
473276a9 | 45806 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
45807 | ;; |
45808 | ||
45809 | *) | |
473276a9 | 45810 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
45811 | exit 1 |
45812 | ;; | |
45813 | ||
45814 | esac | |
45815 | shift | |
45816 | done | |
45817 | ||
810b94f0 MW |
45818 | status=0 |
45819 | ||
a848cd7e SC |
45820 | # |
45821 | # Link one module containing all the others | |
45822 | # | |
473276a9 | 45823 | if test ${D}{verbose} = 1; then |
810b94f0 | 45824 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 45825 | fi |
810b94f0 | 45826 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 45827 | status=${D}? |
a848cd7e SC |
45828 | |
45829 | # | |
810b94f0 MW |
45830 | # Link the shared library from the single module created, but only if the |
45831 | # previous command didn't fail: | |
a848cd7e | 45832 | # |
810b94f0 MW |
45833 | if test ${D}{status} = 0; then |
45834 | if test ${D}{verbose} = 1; then | |
45835 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
45836 | fi | |
45837 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
45838 | status=${D}? | |
a848cd7e SC |
45839 | fi |
45840 | ||
45841 | # | |
45842 | # Remove intermediate module | |
45843 | # | |
473276a9 | 45844 | rm -f master.${D}${D}.o |
a848cd7e | 45845 | |
810b94f0 | 45846 | exit ${D}status |
a848cd7e | 45847 | EOF |
473276a9 | 45848 | |
583d6b4b VZ |
45849 | chmod +x shared-ld-sh |
45850 | ||
45851 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
45852 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
45853 | ||
45854 | ||
45855 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
45856 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
45857 | if test "${bakefile_cv_gcc31+set}" = set; then | |
45858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45859 | else | |
45860 | ||
45861 | cat >conftest.$ac_ext <<_ACEOF | |
45862 | /* confdefs.h. */ | |
45863 | _ACEOF | |
45864 | cat confdefs.h >>conftest.$ac_ext | |
45865 | cat >>conftest.$ac_ext <<_ACEOF | |
45866 | /* end confdefs.h. */ | |
45867 | ||
45868 | int | |
45869 | main () | |
45870 | { | |
45871 | ||
45872 | #if (__GNUC__ < 3) || \ | |
45873 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
e5efa97e | 45874 | This is old gcc |
583d6b4b | 45875 | #endif |
a848cd7e | 45876 | |
583d6b4b VZ |
45877 | ; |
45878 | return 0; | |
45879 | } | |
45880 | _ACEOF | |
45881 | rm -f conftest.$ac_objext | |
45882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45883 | (eval $ac_compile) 2>conftest.er1 | |
45884 | ac_status=$? | |
45885 | grep -v '^ *+' conftest.er1 >conftest.err | |
45886 | rm -f conftest.er1 | |
45887 | cat conftest.err >&5 | |
45888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45889 | (exit $ac_status); } && | |
5d7b7554 | 45890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
583d6b4b VZ |
45891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45892 | (eval $ac_try) 2>&5 | |
45893 | ac_status=$? | |
45894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45895 | (exit $ac_status); }; } && | |
45896 | { ac_try='test -s conftest.$ac_objext' | |
45897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45898 | (eval $ac_try) 2>&5 | |
45899 | ac_status=$? | |
45900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45901 | (exit $ac_status); }; }; then | |
45902 | ||
45903 | bakefile_cv_gcc31=yes | |
45904 | ||
45905 | else | |
45906 | echo "$as_me: failed program was:" >&5 | |
45907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45908 | ||
45909 | ||
45910 | bakefile_cv_gcc31=no | |
45911 | ||
45912 | ||
45913 | fi | |
45914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
45915 | ||
45916 | fi | |
45917 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
45918 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
45919 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 45920 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 45921 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
45922 | else |
45923 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 45924 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
45925 | fi |
45926 | ||
47bd5406 VZ |
45927 | if test "x$GCC" == "xyes"; then |
45928 | PIC_FLAG="-dynamic -fPIC" | |
45929 | fi | |
45930 | if test "x$XLCC" = "xyes"; then | |
45931 | PIC_FLAG="-dynamic -DPIC" | |
45932 | fi | |
a848cd7e SC |
45933 | ;; |
45934 | ||
45935 | *-*-aix* ) | |
f6b50c59 | 45936 | if test "x$GCC" = "xyes"; then |
583d6b4b | 45937 | PIC_FLAG="" |
f6b50c59 | 45938 | |
583d6b4b VZ |
45939 | case "${BAKEFILE_HOST}" in |
45940 | *-*-aix5* ) | |
45941 | LD_EXPFULL="-Wl,-bexpfull" | |
45942 | ;; | |
45943 | esac | |
f6b50c59 | 45944 | |
583d6b4b VZ |
45945 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
45946 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
45947 | else | |
45948 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
45949 | set dummy makeC++SharedLib; ac_word=$2 |
45950 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45952 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
45953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45954 | else | |
45955 | if test -n "$AIX_CXX_LD"; then | |
45956 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
45957 | else | |
45958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45959 | for as_dir in $PATH | |
45960 | do | |
45961 | IFS=$as_save_IFS | |
45962 | test -z "$as_dir" && as_dir=. | |
45963 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45964 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45965 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
45966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45967 | break 2 | |
45968 | fi | |
45969 | done | |
45970 | done | |
45971 | ||
45972 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
45973 | fi | |
45974 | fi | |
45975 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
45976 | if test -n "$AIX_CXX_LD"; then | |
45977 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
45978 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
45979 | else | |
45980 | echo "$as_me:$LINENO: result: no" >&5 | |
45981 | echo "${ECHO_T}no" >&6 | |
45982 | fi | |
45983 | ||
f6b50c59 | 45984 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
45985 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
45986 | fi | |
45987 | ;; | |
45988 | ||
45989 | *-*-beos* ) | |
1e9e8aba DE |
45990 | SHARED_LD_CC="${LD} -nostart -o" |
45991 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
45992 | ;; |
45993 | ||
45994 | *-*-irix* ) | |
45995 | if test "x$GCC" != "xyes"; then | |
45996 | PIC_FLAG="-KPIC" | |
45997 | fi | |
45998 | ;; | |
45999 | ||
46000 | *-*-cygwin* | *-*-mingw32* ) | |
46001 | PIC_FLAG="" | |
1e9e8aba DE |
46002 | SHARED_LD_CC="\$(CC) -shared -o" |
46003 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 46004 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
46005 | ;; |
46006 | ||
46007 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
46008 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
46009 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 46010 | PIC_FLAG="" |
473276a9 VS |
46011 | |
46012 | D='$' | |
46013 | cat <<EOF >dllar.sh | |
46014 | #!/bin/sh | |
46015 | # | |
46016 | # dllar - a tool to build both a .dll and an .a file | |
46017 | # from a set of object (.o) files for EMX/OS2. | |
46018 | # | |
46019 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
46020 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
46021 | # | |
46022 | # This script will accept a set of files on the command line. | |
46023 | # All the public symbols from the .o files will be exported into | |
46024 | # a .DEF file, then linker will be run (through gcc) against them to | |
46025 | # build a shared library consisting of all given .o files. All libraries | |
46026 | # (.a) will be first decompressed into component .o files then act as | |
46027 | # described above. You can optionally give a description (-d "description") | |
46028 | # which will be put into .DLL. To see the list of accepted options (as well | |
46029 | # as command-line format) simply run this program without options. The .DLL | |
46030 | # is built to be imported by name (there is no guarantee that new versions | |
46031 | # of the library you build will have same ordinals for same symbols). | |
46032 | # | |
46033 | # dllar is free software; you can redistribute it and/or modify | |
46034 | # it under the terms of the GNU General Public License as published by | |
46035 | # the Free Software Foundation; either version 2, or (at your option) | |
46036 | # any later version. | |
46037 | # | |
46038 | # dllar is distributed in the hope that it will be useful, | |
46039 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
46040 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46041 | # GNU General Public License for more details. | |
46042 | # | |
46043 | # You should have received a copy of the GNU General Public License | |
46044 | # along with dllar; see the file COPYING. If not, write to the Free | |
46045 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
46046 | # 02111-1307, USA. | |
46047 | ||
46048 | # To successfuly run this program you will need: | |
46049 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
46050 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
46051 | # - gcc | |
46052 | # (used to build the .dll) | |
46053 | # - emxexp | |
46054 | # (used to create .def file from .o files) | |
46055 | # - emximp | |
46056 | # (used to create .a file from .def file) | |
46057 | # - GNU text utilites (cat, sort, uniq) | |
46058 | # used to process emxexp output | |
46059 | # - GNU file utilities (mv, rm) | |
46060 | # - GNU sed | |
46061 | # - lxlite (optional, see flag below) | |
46062 | # (used for general .dll cleanup) | |
46063 | # | |
46064 | ||
46065 | flag_USE_LXLITE=1; | |
46066 | ||
46067 | # | |
46068 | # helper functions | |
46069 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
46070 | # second argument (suffix to remove) is given | |
46071 | basnam(){ | |
46072 | case ${D}# in | |
46073 | 1) | |
1e9e8aba | 46074 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
46075 | ;; |
46076 | 2) | |
46077 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
46078 | ;; | |
46079 | *) | |
46080 | echo "error in basnam ${D}*" | |
46081 | exit 8 | |
46082 | ;; | |
46083 | esac | |
46084 | } | |
46085 | ||
46086 | # Cleanup temporary files and output | |
46087 | CleanUp() { | |
46088 | cd ${D}curDir | |
46089 | for i in ${D}inputFiles ; do | |
46090 | case ${D}i in | |
46091 | *!) | |
46092 | rm -rf \`basnam ${D}i !\` | |
46093 | ;; | |
46094 | *) | |
46095 | ;; | |
46096 | esac | |
46097 | done | |
46098 | ||
46099 | # Kill result in case of failure as there is just to many stupid make/nmake | |
46100 | # things out there which doesn't do this. | |
1e9e8aba | 46101 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
46102 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
46103 | fi | |
46104 | } | |
46105 | ||
46106 | # Print usage and exit script with rc=1. | |
46107 | PrintHelp() { | |
b1d22ded DE |
46108 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
46109 | echo ' [-name-mangler-script script.sh]' | |
46110 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
46111 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
46112 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 46113 | echo ' [*.o] [*.a]' |
473276a9 VS |
46114 | echo '*> "output_file" should have no extension.' |
46115 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
46116 | echo ' The import library name is derived from this and is set to "name".a,' | |
46117 | echo ' unless overridden by -import' | |
46118 | echo '*> "importlib_name" should have no extension.' | |
46119 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
46120 | echo ' This name is used as the import library name and may be longer and' | |
46121 | echo ' more descriptive than the DLL name which has to follow the old ' | |
46122 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
46123 | echo '*> "script.sh may be given to override the output_file name by a' |
46124 | echo ' different name. It is mainly useful if the regular make process' | |
46125 | echo ' of some package does not take into account OS/2 restriction of' | |
46126 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
46127 | echo ' supposed to procude a shorter name as output. The script should' | |
46128 | echo ' expect to get importlib_name without extension and should produce' | |
46129 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
46130 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
46131 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
46132 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
46133 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
46134 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
46135 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
46136 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
46137 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 46138 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 46139 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 46140 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 46141 | echo ' C runtime DLLs.' |
b1d22ded | 46142 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
46143 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
46144 | echo ' unchanged to GCC at the end of command line.' | |
46145 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
46146 | echo ' the basename for DLL and import library will be set to library name,' | |
46147 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
46148 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
46149 | echo ' library will be renamed into gcc_s.a.' | |
46150 | echo '--------' | |
46151 | echo 'Example:' | |
46152 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
46153 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
46154 | CleanUp | |
46155 | exit 1 | |
46156 | } | |
46157 | ||
46158 | # Execute a command. | |
46159 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
46160 | # @Uses Whatever CleanUp() uses. | |
46161 | doCommand() { | |
46162 | echo "${D}*" | |
46163 | eval ${D}* | |
46164 | rcCmd=${D}? | |
46165 | ||
1e9e8aba | 46166 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
46167 | echo "command failed, exit code="${D}rcCmd |
46168 | CleanUp | |
46169 | exit ${D}rcCmd | |
46170 | fi | |
46171 | } | |
46172 | ||
46173 | # main routine | |
46174 | # setup globals | |
46175 | cmdLine=${D}* | |
46176 | outFile="" | |
46177 | outimpFile="" | |
46178 | inputFiles="" | |
b1d22ded | 46179 | renameScript="" |
473276a9 VS |
46180 | description="" |
46181 | CC=gcc.exe | |
46182 | CFLAGS="-s -Zcrtdll" | |
46183 | EXTRA_CFLAGS="" | |
46184 | EXPORT_BY_ORDINALS=0 | |
46185 | exclude_symbols="" | |
46186 | library_flags="" | |
46187 | curDir=\`pwd\` | |
46188 | curDirS=curDir | |
46189 | case ${D}curDirS in | |
46190 | */) | |
46191 | ;; | |
46192 | *) | |
46193 | curDirS=${D}{curDirS}"/" | |
46194 | ;; | |
46195 | esac | |
46196 | # Parse commandline | |
46197 | libsToLink=0 | |
b1d22ded | 46198 | omfLinking=0 |
1e9e8aba | 46199 | while [ ${D}1 ]; do |
473276a9 VS |
46200 | case ${D}1 in |
46201 | -ord*) | |
46202 | EXPORT_BY_ORDINALS=1; | |
46203 | ;; | |
46204 | -o*) | |
46205 | shift | |
46206 | outFile=${D}1 | |
46207 | ;; | |
46208 | -i*) | |
46209 | shift | |
46210 | outimpFile=${D}1 | |
46211 | ;; | |
b1d22ded DE |
46212 | -name-mangler-script) |
46213 | shift | |
46214 | renameScript=${D}1 | |
46215 | ;; | |
473276a9 VS |
46216 | -d*) |
46217 | shift | |
46218 | description=${D}1 | |
46219 | ;; | |
46220 | -f*) | |
46221 | shift | |
46222 | CFLAGS=${D}1 | |
46223 | ;; | |
46224 | -c*) | |
46225 | shift | |
46226 | CC=${D}1 | |
46227 | ;; | |
46228 | -h*) | |
46229 | PrintHelp | |
46230 | ;; | |
46231 | -ex*) | |
46232 | shift | |
46233 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
46234 | ;; | |
46235 | -libf*) | |
46236 | shift | |
46237 | library_flags=${D}{library_flags}${D}1" " | |
46238 | ;; | |
46239 | -nocrt*) | |
46240 | CFLAGS="-s" | |
46241 | ;; | |
46242 | -nolxl*) | |
46243 | flag_USE_LXLITE=0 | |
46244 | ;; | |
46245 | -* | /*) | |
46246 | case ${D}1 in | |
46247 | -L* | -l*) | |
46248 | libsToLink=1 | |
46249 | ;; | |
b1d22ded DE |
46250 | -Zomf) |
46251 | omfLinking=1 | |
46252 | ;; | |
473276a9 VS |
46253 | *) |
46254 | ;; | |
46255 | esac | |
46256 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
46257 | ;; | |
b1d22ded DE |
46258 | *.dll) |
46259 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
46260 | if [ ${D}omfLinking -eq 1 ]; then | |
46261 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
46262 | else | |
46263 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
46264 | fi | |
46265 | ;; | |
473276a9 VS |
46266 | *) |
46267 | found=0; | |
1e9e8aba | 46268 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
46269 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
46270 | else | |
46271 | for file in ${D}1 ; do | |
1e9e8aba | 46272 | if [ -f ${D}file ]; then |
473276a9 VS |
46273 | inputFiles="${D}{inputFiles} ${D}file" |
46274 | found=1 | |
46275 | fi | |
46276 | done | |
1e9e8aba | 46277 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
46278 | echo "ERROR: No file(s) found: "${D}1 |
46279 | exit 8 | |
46280 | fi | |
46281 | fi | |
46282 | ;; | |
46283 | esac | |
46284 | shift | |
46285 | done # iterate cmdline words | |
46286 | ||
46287 | # | |
1e9e8aba | 46288 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
46289 | echo "dllar: no input files" |
46290 | PrintHelp | |
46291 | fi | |
46292 | ||
46293 | # Now extract all .o files from .a files | |
46294 | newInputFiles="" | |
46295 | for file in ${D}inputFiles ; do | |
46296 | case ${D}file in | |
46297 | *.a | *.lib) | |
46298 | case ${D}file in | |
46299 | *.a) | |
46300 | suffix=".a" | |
46301 | AR="ar" | |
46302 | ;; | |
46303 | *.lib) | |
46304 | suffix=".lib" | |
46305 | AR="emxomfar" | |
46306 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
46307 | ;; | |
46308 | *) | |
46309 | ;; | |
46310 | esac | |
46311 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
46312 | mkdir ${D}dirname | |
1e9e8aba | 46313 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
46314 | echo "Failed to create subdirectory ./${D}dirname" |
46315 | CleanUp | |
46316 | exit 8; | |
46317 | fi | |
46318 | # Append '!' to indicate archive | |
46319 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
46320 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
46321 | cd ${D}curDir | |
46322 | found=0; | |
46323 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 46324 | if [ -f ${D}subfile ]; then |
473276a9 | 46325 | found=1 |
1e9e8aba | 46326 | if [ -s ${D}subfile ]; then |
473276a9 VS |
46327 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
46328 | newInputFiles="${D}newInputFiles ${D}subfile" | |
46329 | fi | |
46330 | fi | |
46331 | done | |
1e9e8aba DE |
46332 | if [ ${D}found -eq 0 ]; then |
46333 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
46334 | fi |
46335 | ;; | |
46336 | *) | |
46337 | newInputFiles="${D}{newInputFiles} ${D}file" | |
46338 | ;; | |
46339 | esac | |
46340 | done | |
46341 | inputFiles="${D}newInputFiles" | |
46342 | ||
46343 | # Output filename(s). | |
46344 | do_backup=0; | |
1e9e8aba | 46345 | if [ -z ${D}outFile ]; then |
473276a9 VS |
46346 | do_backup=1; |
46347 | set outFile ${D}inputFiles; outFile=${D}2 | |
46348 | fi | |
46349 | ||
46350 | # If it is an archive, remove the '!' and the '_%' suffixes | |
46351 | case ${D}outFile in | |
46352 | *_%!) | |
46353 | outFile=\`basnam ${D}outFile _%!\` | |
46354 | ;; | |
46355 | *) | |
46356 | ;; | |
46357 | esac | |
46358 | case ${D}outFile in | |
46359 | *.dll) | |
46360 | outFile=\`basnam ${D}outFile .dll\` | |
46361 | ;; | |
46362 | *.DLL) | |
46363 | outFile=\`basnam ${D}outFile .DLL\` | |
46364 | ;; | |
46365 | *.o) | |
46366 | outFile=\`basnam ${D}outFile .o\` | |
46367 | ;; | |
46368 | *.obj) | |
46369 | outFile=\`basnam ${D}outFile .obj\` | |
46370 | ;; | |
46371 | *.a) | |
46372 | outFile=\`basnam ${D}outFile .a\` | |
46373 | ;; | |
46374 | *.lib) | |
46375 | outFile=\`basnam ${D}outFile .lib\` | |
46376 | ;; | |
46377 | *) | |
46378 | ;; | |
46379 | esac | |
46380 | case ${D}outimpFile in | |
46381 | *.a) | |
46382 | outimpFile=\`basnam ${D}outimpFile .a\` | |
46383 | ;; | |
46384 | *.lib) | |
46385 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
46386 | ;; | |
46387 | *) | |
46388 | ;; | |
46389 | esac | |
1e9e8aba | 46390 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
46391 | outimpFile=${D}outFile |
46392 | fi | |
46393 | defFile="${D}{outFile}.def" | |
46394 | arcFile="${D}{outimpFile}.a" | |
46395 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
46396 | |
46397 | #create ${D}dllFile as something matching 8.3 restrictions, | |
46398 | if [ -z ${D}renameScript ] ; then | |
46399 | dllFile="${D}outFile" | |
46400 | else | |
46401 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
46402 | fi | |
473276a9 | 46403 | |
1e9e8aba DE |
46404 | if [ ${D}do_backup -ne 0 ] ; then |
46405 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
46406 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
46407 | fi | |
1e9e8aba | 46408 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
46409 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
46410 | fi | |
46411 | fi | |
46412 | ||
46413 | # Extract public symbols from all the object files. | |
46414 | tmpdefFile=${D}{defFile}_% | |
46415 | rm -f ${D}tmpdefFile | |
46416 | for file in ${D}inputFiles ; do | |
46417 | case ${D}file in | |
46418 | *!) | |
46419 | ;; | |
46420 | *) | |
46421 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
46422 | ;; | |
46423 | esac | |
46424 | done | |
46425 | ||
46426 | # Create the def file. | |
46427 | rm -f ${D}defFile | |
46428 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
46429 | dllFile="${D}{dllFile}.dll" |
46430 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 46431 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
46432 | fi |
46433 | echo "EXPORTS" >> ${D}defFile | |
46434 | ||
46435 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
46436 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
46437 | ||
46438 | # Checks if the export is ok or not. | |
46439 | for word in ${D}exclude_symbols; do | |
46440 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
46441 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
46442 | done | |
46443 | ||
46444 | ||
1e9e8aba DE |
46445 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
46446 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
46447 | sed ' |
46448 | N | |
46449 | : loop | |
1e9e8aba | 46450 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
46451 | t loop |
46452 | ' > ${D}{tmpdefFile}% | |
46453 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
46454 | else | |
46455 | rm -f ${D}{tmpdefFile}% | |
46456 | fi | |
46457 | cat ${D}tmpdefFile >> ${D}defFile | |
46458 | rm -f ${D}tmpdefFile | |
46459 | ||
46460 | # Do linking, create implib, and apply lxlite. | |
46461 | gccCmdl=""; | |
46462 | for file in ${D}inputFiles ; do | |
46463 | case ${D}file in | |
46464 | *!) | |
46465 | ;; | |
46466 | *) | |
46467 | gccCmdl="${D}gccCmdl ${D}file" | |
46468 | ;; | |
46469 | esac | |
46470 | done | |
46471 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
46472 | touch "${D}{outFile}.dll" | |
46473 | ||
46474 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 46475 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 46476 | add_flags=""; |
1e9e8aba | 46477 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
46478 | add_flags="-ynd" |
46479 | fi | |
46480 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
46481 | fi | |
46482 | doCommand "emxomf -s -l ${D}arcFile" | |
46483 | ||
46484 | # Successful exit. | |
46485 | CleanUp 1 | |
46486 | exit 0 | |
46487 | EOF | |
46488 | ||
46489 | chmod +x dllar.sh | |
a848cd7e SC |
46490 | ;; |
46491 | ||
1e9e8aba | 46492 | powerpc-apple-macos* | \ |
0ad5d837 | 46493 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
46494 | *-*-sunos4* | \ |
46495 | *-*-osf* | \ | |
46496 | *-*-dgux5* | \ | |
47a7e797 MW |
46497 | *-*-sysv5* | \ |
46498 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
46499 | ;; |
46500 | ||
46501 | *) | |
46502 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
46503 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
46504 | { (exit 1); exit 1; }; } | |
46505 | esac | |
46506 | ||
2057db16 VS |
46507 | if test "x$PIC_FLAG" != "x" ; then |
46508 | PIC_FLAG="$PIC_FLAG -DPIC" | |
46509 | fi | |
46510 | ||
a848cd7e SC |
46511 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
46512 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
46513 | fi | |
46514 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
46515 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
46516 | fi | |
46517 | ||
46518 | ||
46519 | ||
46520 | ||
46521 | ||
46522 | ||
46523 | ||
46524 | ||
810b94f0 | 46525 | |
a848cd7e SC |
46526 | USE_SOVERSION=0 |
46527 | USE_SOVERLINUX=0 | |
46528 | USE_SOVERSOLARIS=0 | |
810b94f0 | 46529 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
46530 | USE_SOSYMLINKS=0 |
46531 | USE_MACVERSION=0 | |
46532 | SONAME_FLAG= | |
46533 | ||
46534 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 46535 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
46536 | SONAME_FLAG="-Wl,-soname," |
46537 | USE_SOVERSION=1 | |
46538 | USE_SOVERLINUX=1 | |
46539 | USE_SOSYMLINKS=1 | |
46540 | ;; | |
46541 | ||
a848cd7e SC |
46542 | *-*-solaris2* ) |
46543 | SONAME_FLAG="-h " | |
46544 | USE_SOVERSION=1 | |
46545 | USE_SOVERSOLARIS=1 | |
46546 | USE_SOSYMLINKS=1 | |
46547 | ;; | |
46548 | ||
46549 | *-*-darwin* ) | |
46550 | USE_MACVERSION=1 | |
46551 | USE_SOVERSION=1 | |
46552 | USE_SOSYMLINKS=1 | |
46553 | ;; | |
810b94f0 MW |
46554 | |
46555 | *-*-cygwin* ) | |
46556 | USE_SOVERSION=1 | |
46557 | USE_SOVERCYGWIN=1 | |
46558 | ;; | |
a848cd7e SC |
46559 | esac |
46560 | ||
46561 | ||
46562 | ||
46563 | ||
46564 | ||
46565 | ||
46566 | ||
46567 | ||
46568 | ||
810b94f0 | 46569 | |
f10e38c4 VZ |
46570 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
46571 | if test "${enable_dependency_tracking+set}" = set; then | |
46572 | enableval="$enable_dependency_tracking" | |
46573 | bk_use_trackdeps="$enableval" | |
46574 | fi; | |
46575 | ||
a848cd7e SC |
46576 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
46577 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
a848cd7e | 46578 | |
f10e38c4 VZ |
46579 | if test "x$bk_use_trackdeps" = "xno" ; then |
46580 | DEPS_TRACKING=0 | |
46581 | echo "$as_me:$LINENO: result: disabled" >&5 | |
46582 | echo "${ECHO_T}disabled" >&6 | |
46583 | else | |
46584 | DEPS_TRACKING=1 | |
46585 | ||
46586 | if test "x$GCC" = "xyes"; then | |
46587 | DEPSMODE=gcc | |
46588 | case "${BAKEFILE_HOST}" in | |
46589 | *-*-darwin* ) | |
46590 | DEPSFLAG="-no-cpp-precomp -MMD" | |
46591 | ;; | |
46592 | * ) | |
46593 | DEPSFLAG="-MMD" | |
46594 | ;; | |
46595 | esac | |
46596 | echo "$as_me:$LINENO: result: gcc" >&5 | |
a848cd7e | 46597 | echo "${ECHO_T}gcc" >&6 |
f10e38c4 VZ |
46598 | elif test "x$MWCC" = "xyes"; then |
46599 | DEPSMODE=mwcc | |
46600 | DEPSFLAG="-MM" | |
46601 | echo "$as_me:$LINENO: result: mwcc" >&5 | |
b1d22ded | 46602 | echo "${ECHO_T}mwcc" >&6 |
f10e38c4 VZ |
46603 | elif test "x$SUNCC" = "xyes"; then |
46604 | DEPSMODE=unixcc | |
46605 | DEPSFLAG="-xM1" | |
46606 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
0ad5d837 | 46607 | echo "${ECHO_T}Sun cc" >&6 |
f10e38c4 VZ |
46608 | elif test "x$SGICC" = "xyes"; then |
46609 | DEPSMODE=unixcc | |
46610 | DEPSFLAG="-M" | |
46611 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
0ad5d837 | 46612 | echo "${ECHO_T}SGI cc" >&6 |
f10e38c4 VZ |
46613 | elif test "x$HPCC" = "xyes"; then |
46614 | DEPSMODE=unixcc | |
46615 | DEPSFLAG="+make" | |
46616 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
3006edc0 | 46617 | echo "${ECHO_T}HP cc" >&6 |
f10e38c4 VZ |
46618 | elif test "x$COMPAQCC" = "xyes"; then |
46619 | DEPSMODE=gcc | |
46620 | DEPSFLAG="-MD" | |
46621 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
a1aa0349 | 46622 | echo "${ECHO_T}Compaq cc" >&6 |
f10e38c4 VZ |
46623 | else |
46624 | DEPS_TRACKING=0 | |
46625 | echo "$as_me:$LINENO: result: none" >&5 | |
a848cd7e | 46626 | echo "${ECHO_T}none" >&6 |
f10e38c4 | 46627 | fi |
a848cd7e | 46628 | |
f10e38c4 | 46629 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
46630 | |
46631 | D='$' | |
46632 | cat <<EOF >bk-deps | |
a848cd7e SC |
46633 | #!/bin/sh |
46634 | ||
46635 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
46636 | # script. It is used to track C/C++ files dependencies in portable way. | |
46637 | # | |
46638 | # Permission is given to use this file in any way. | |
46639 | ||
473276a9 | 46640 | DEPSMODE=${DEPSMODE} |
a848cd7e | 46641 | DEPSDIR=.deps |
0ad5d837 | 46642 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 46643 | |
473276a9 | 46644 | mkdir -p ${D}DEPSDIR |
a848cd7e | 46645 | |
473276a9 | 46646 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 46647 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
46648 | status=${D}? |
46649 | if test ${D}{status} != 0 ; then | |
46650 | exit ${D}{status} | |
a848cd7e SC |
46651 | fi |
46652 | # move created file to the location we want it in: | |
473276a9 VS |
46653 | while test ${D}# -gt 0; do |
46654 | case "${D}1" in | |
a848cd7e SC |
46655 | -o ) |
46656 | shift | |
473276a9 | 46657 | objfile=${D}1 |
a848cd7e SC |
46658 | ;; |
46659 | -* ) | |
46660 | ;; | |
46661 | * ) | |
473276a9 | 46662 | srcfile=${D}1 |
a848cd7e SC |
46663 | ;; |
46664 | esac | |
46665 | shift | |
46666 | done | |
1e9e8aba DE |
46667 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
46668 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
46669 | if test -f ${D}depfile ; then |
46670 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46671 | rm -f ${D}depfile | |
a848cd7e | 46672 | else |
a1aa0349 | 46673 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 46674 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
46675 | if test ! -f ${D}depfile ; then |
46676 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
46677 | depfile="${D}objfile.d" | |
46678 | fi | |
473276a9 VS |
46679 | if test -f ${D}depfile ; then |
46680 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46681 | rm -f ${D}depfile | |
a848cd7e SC |
46682 | fi |
46683 | fi | |
46684 | exit 0 | |
81f90336 | 46685 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 46686 | ${D}* || exit ${D}? |
81f90336 MW |
46687 | # Run mwcc again with -MM and redirect into the dep file we want |
46688 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
46689 | prevarg= | |
46690 | for arg in ${D}* ; do | |
46691 | if test "${D}prevarg" = "-o"; then | |
46692 | objfile=${D}arg | |
46693 | else | |
46694 | case "${D}arg" in | |
46695 | -* ) | |
46696 | ;; | |
46697 | * ) | |
46698 | srcfile=${D}arg | |
46699 | ;; | |
46700 | esac | |
46701 | fi | |
46702 | prevarg="${D}arg" | |
46703 | done | |
0ad5d837 | 46704 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 46705 | exit 0 |
0ad5d837 | 46706 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 46707 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
46708 | # Run compiler again with deps flag and redirect into the dep file. |
46709 | # It doesn't work if the '-o FILE' option is used, but without it the | |
46710 | # dependency file will contain the wrong name for the object. So it is | |
46711 | # removed from the command line, and the dep file is fixed with sed. | |
46712 | cmd="" | |
46713 | while test ${D}# -gt 0; do | |
46714 | case "${D}1" in | |
46715 | -o ) | |
46716 | shift | |
46717 | objfile=${D}1 | |
46718 | ;; | |
46719 | * ) | |
46720 | eval arg${D}#=\\${D}1 | |
46721 | cmd="${D}cmd \\${D}arg${D}#" | |
46722 | ;; | |
46723 | esac | |
46724 | shift | |
46725 | done | |
0ad5d837 | 46726 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 46727 | exit 0 |
a848cd7e | 46728 | else |
473276a9 VS |
46729 | ${D}* |
46730 | exit ${D}? | |
a848cd7e SC |
46731 | fi |
46732 | EOF | |
473276a9 | 46733 | |
f10e38c4 VZ |
46734 | chmod +x bk-deps |
46735 | fi | |
a848cd7e SC |
46736 | fi |
46737 | ||
46738 | ||
46739 | ||
46740 | ||
a848cd7e SC |
46741 | case ${BAKEFILE_HOST} in |
46742 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
46743 | if test -n "$ac_tool_prefix"; then |
46744 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
46745 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
46746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46748 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
46749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46750 | else | |
46751 | if test -n "$WINDRES"; then | |
46752 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
46753 | else | |
46754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46755 | for as_dir in $PATH | |
46756 | do | |
46757 | IFS=$as_save_IFS | |
46758 | test -z "$as_dir" && as_dir=. | |
46759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46761 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
46762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46763 | break 2 | |
46764 | fi | |
46765 | done | |
46766 | done | |
46767 | ||
46768 | fi | |
46769 | fi | |
46770 | WINDRES=$ac_cv_prog_WINDRES | |
46771 | if test -n "$WINDRES"; then | |
46772 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
46773 | echo "${ECHO_T}$WINDRES" >&6 | |
46774 | else | |
46775 | echo "$as_me:$LINENO: result: no" >&5 | |
46776 | echo "${ECHO_T}no" >&6 | |
46777 | fi | |
46778 | ||
46779 | fi | |
46780 | if test -z "$ac_cv_prog_WINDRES"; then | |
46781 | ac_ct_WINDRES=$WINDRES | |
46782 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
46783 | set dummy windres; ac_word=$2 |
46784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 46786 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
46787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46788 | else | |
8ced02f6 DE |
46789 | if test -n "$ac_ct_WINDRES"; then |
46790 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
46791 | else |
46792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46793 | for as_dir in $PATH | |
46794 | do | |
46795 | IFS=$as_save_IFS | |
46796 | test -z "$as_dir" && as_dir=. | |
46797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 46799 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
46800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
46801 | break 2 | |
46802 | fi | |
46803 | done | |
46804 | done | |
46805 | ||
a848cd7e SC |
46806 | fi |
46807 | fi | |
8ced02f6 DE |
46808 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
46809 | if test -n "$ac_ct_WINDRES"; then | |
46810 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
46811 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
46812 | else |
46813 | echo "$as_me:$LINENO: result: no" >&5 | |
46814 | echo "${ECHO_T}no" >&6 | |
46815 | fi | |
46816 | ||
8ced02f6 DE |
46817 | WINDRES=$ac_ct_WINDRES |
46818 | else | |
46819 | WINDRES="$ac_cv_prog_WINDRES" | |
46820 | fi | |
46821 | ||
a848cd7e SC |
46822 | ;; |
46823 | ||
1e9e8aba | 46824 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
46825 | # Extract the first word of "Rez", so it can be a program name with args. |
46826 | set dummy Rez; ac_word=$2 | |
46827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 46829 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
46830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46831 | else | |
8ced02f6 DE |
46832 | if test -n "$REZ"; then |
46833 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
46834 | else |
46835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46836 | for as_dir in $PATH | |
46837 | do | |
46838 | IFS=$as_save_IFS | |
46839 | test -z "$as_dir" && as_dir=. | |
46840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 46842 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
46843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
46844 | break 2 | |
46845 | fi | |
46846 | done | |
46847 | done | |
46848 | ||
8ced02f6 | 46849 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
46850 | fi |
46851 | fi | |
8ced02f6 DE |
46852 | REZ=$ac_cv_prog_REZ |
46853 | if test -n "$REZ"; then | |
46854 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
46855 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
46856 | else |
46857 | echo "$as_me:$LINENO: result: no" >&5 | |
46858 | echo "${ECHO_T}no" >&6 | |
46859 | fi | |
46860 | ||
46861 | # Extract the first word of "SetFile", so it can be a program name with args. | |
46862 | set dummy SetFile; ac_word=$2 | |
46863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46865 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
46866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46867 | else | |
46868 | if test -n "$SETFILE"; then | |
46869 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
46870 | else | |
46871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46872 | for as_dir in $PATH | |
46873 | do | |
46874 | IFS=$as_save_IFS | |
46875 | test -z "$as_dir" && as_dir=. | |
46876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46878 | ac_cv_prog_SETFILE="SetFile" | |
46879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46880 | break 2 | |
46881 | fi | |
46882 | done | |
46883 | done | |
46884 | ||
46885 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
46886 | fi | |
46887 | fi | |
46888 | SETFILE=$ac_cv_prog_SETFILE | |
46889 | if test -n "$SETFILE"; then | |
46890 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
46891 | echo "${ECHO_T}$SETFILE" >&6 | |
46892 | else | |
46893 | echo "$as_me:$LINENO: result: no" >&5 | |
46894 | echo "${ECHO_T}no" >&6 | |
46895 | fi | |
46896 | ||
46897 | ;; | |
46898 | esac | |
46899 | ||
46900 | ||
46901 | ||
46902 | ||
46903 | ||
8ced02f6 | 46904 | |
f10e38c4 | 46905 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.0" |
a848cd7e | 46906 | |
dcc1b6ad | 46907 | |
f10e38c4 | 46908 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0" |
a848cd7e | 46909 | |
646b6ec1 | 46910 | |
74b84332 | 46911 | |
a848cd7e SC |
46912 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
46913 | if test "${enable_precomp_headers+set}" = set; then | |
46914 | enableval="$enable_precomp_headers" | |
46915 | bk_use_pch="$enableval" | |
46916 | fi; | |
46917 | ||
46918 | GCC_PCH=0 | |
f10e38c4 VZ |
46919 | ICC_PCH=0 |
46920 | USE_PCH=0 | |
a848cd7e | 46921 | |
5c60e845 MW |
46922 | case ${BAKEFILE_HOST} in |
46923 | *-*-cygwin* ) | |
46924 | bk_use_pch="no" | |
46925 | ;; | |
46926 | esac | |
46927 | ||
a848cd7e SC |
46928 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
46929 | if test "x$GCC" = "xyes"; then | |
46930 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
46931 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
46932 | cat >conftest.$ac_ext <<_ACEOF | |
46933 | /* confdefs.h. */ | |
46934 | _ACEOF | |
46935 | cat confdefs.h >>conftest.$ac_ext | |
46936 | cat >>conftest.$ac_ext <<_ACEOF | |
46937 | /* end confdefs.h. */ | |
46938 | ||
46939 | int | |
46940 | main () | |
46941 | { | |
46942 | ||
46943 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
e5efa97e | 46944 | There is no PCH support |
a848cd7e SC |
46945 | #endif |
46946 | #if (__GNUC__ < 3) | |
e5efa97e | 46947 | There is no PCH support |
a848cd7e SC |
46948 | #endif |
46949 | #if (__GNUC__ == 3) && \ | |
46950 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
46951 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
46952 | ( defined(__INTEL_COMPILER) ) | |
e5efa97e | 46953 | There is no PCH support |
a848cd7e SC |
46954 | #endif |
46955 | ||
46956 | ; | |
46957 | return 0; | |
46958 | } | |
46959 | _ACEOF | |
46960 | rm -f conftest.$ac_objext | |
46961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 46962 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 46963 | ac_status=$? |
ac1cb8d3 VS |
46964 | grep -v '^ *+' conftest.er1 >conftest.err |
46965 | rm -f conftest.er1 | |
46966 | cat conftest.err >&5 | |
a848cd7e SC |
46967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
46968 | (exit $ac_status); } && | |
5d7b7554 | 46969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
46970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46971 | (eval $ac_try) 2>&5 | |
46972 | ac_status=$? | |
46973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46974 | (exit $ac_status); }; } && | |
46975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
46976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46977 | (eval $ac_try) 2>&5 | |
46978 | ac_status=$? | |
46979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46980 | (exit $ac_status); }; }; then | |
46981 | ||
46982 | echo "$as_me:$LINENO: result: yes" >&5 | |
46983 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
46984 | GCC_PCH=1 |
46985 | ||
46986 | else | |
46987 | echo "$as_me: failed program was:" >&5 | |
46988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46989 | ||
46990 | ||
f10e38c4 VZ |
46991 | cat >conftest.$ac_ext <<_ACEOF |
46992 | /* confdefs.h. */ | |
46993 | _ACEOF | |
46994 | cat confdefs.h >>conftest.$ac_ext | |
46995 | cat >>conftest.$ac_ext <<_ACEOF | |
46996 | /* end confdefs.h. */ | |
46997 | ||
46998 | int | |
46999 | main () | |
47000 | { | |
47001 | ||
47002 | #if !defined(__INTEL_COMPILER) || \ | |
47003 | (__INTEL_COMPILER < 800) | |
e5efa97e | 47004 | There is no PCH support |
f10e38c4 VZ |
47005 | #endif |
47006 | ||
47007 | ; | |
47008 | return 0; | |
47009 | } | |
47010 | _ACEOF | |
47011 | rm -f conftest.$ac_objext | |
47012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
47013 | (eval $ac_compile) 2>conftest.er1 | |
47014 | ac_status=$? | |
47015 | grep -v '^ *+' conftest.er1 >conftest.err | |
47016 | rm -f conftest.er1 | |
47017 | cat conftest.err >&5 | |
47018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47019 | (exit $ac_status); } && | |
5d7b7554 | 47020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f10e38c4 VZ |
47021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47022 | (eval $ac_try) 2>&5 | |
47023 | ac_status=$? | |
47024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47025 | (exit $ac_status); }; } && | |
47026 | { ac_try='test -s conftest.$ac_objext' | |
47027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
47028 | (eval $ac_try) 2>&5 | |
47029 | ac_status=$? | |
47030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47031 | (exit $ac_status); }; }; then | |
47032 | ||
47033 | echo "$as_me:$LINENO: result: yes" >&5 | |
47034 | echo "${ECHO_T}yes" >&6 | |
47035 | ICC_PCH=1 | |
47036 | ||
47037 | else | |
47038 | echo "$as_me: failed program was:" >&5 | |
47039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47040 | ||
47041 | ||
47042 | echo "$as_me:$LINENO: result: no" >&5 | |
a848cd7e SC |
47043 | echo "${ECHO_T}no" >&6 |
47044 | ||
47045 | fi | |
ac1cb8d3 | 47046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f10e38c4 VZ |
47047 | |
47048 | fi | |
47049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
47050 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then | |
47051 | USE_PCH=1 | |
1e9e8aba DE |
47052 | |
47053 | D='$' | |
47054 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
47055 | #!/bin/sh |
47056 | ||
47057 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47058 | # script. It is used to generated precompiled headers. | |
47059 | # | |
47060 | # Permission is given to use this file in any way. | |
47061 | ||
1e9e8aba DE |
47062 | outfile="${D}{1}" |
47063 | header="${D}{2}" | |
a848cd7e SC |
47064 | shift |
47065 | shift | |
47066 | ||
f10e38c4 VZ |
47067 | compiler="" |
47068 | headerfile="" | |
47069 | ||
1e9e8aba | 47070 | while test ${D}{#} -gt 0; do |
f10e38c4 | 47071 | add_to_cmdline=1 |
1e9e8aba | 47072 | case "${D}{1}" in |
a848cd7e | 47073 | -I* ) |
1e9e8aba DE |
47074 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
47075 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
47076 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
47077 | fi |
47078 | ;; | |
f10e38c4 VZ |
47079 | -use-pch|-use_pch ) |
47080 | shift | |
47081 | add_to_cmdline=0 | |
47082 | ;; | |
a848cd7e | 47083 | esac |
f10e38c4 VZ |
47084 | if test ${D}add_to_cmdline = 1 ; then |
47085 | compiler="${D}{compiler} ${D}{1}" | |
47086 | fi | |
a848cd7e SC |
47087 | shift |
47088 | done | |
47089 | ||
1e9e8aba | 47090 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 47091 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 47092 | else |
1e9e8aba DE |
47093 | if test -f ${D}{outfile} ; then |
47094 | rm -f ${D}{outfile} | |
a848cd7e | 47095 | else |
1e9e8aba | 47096 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 47097 | fi |
1e9e8aba | 47098 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e | 47099 | mkdir -p .deps |
f10e38c4 VZ |
47100 | if test "x${GCC_PCH}" = "x1" ; then |
47101 | # can do this because gcc is >= 3.4: | |
47102 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
47103 | elif test "x${ICC_PCH}" = "x1" ; then | |
47104 | filename=pch_gen-${D}${D} | |
47105 | file=${D}{filename}.c | |
47106 | dfile=${D}{filename}.d | |
47107 | cat > ${D}file <<EOT | |
47108 | #include "${D}header" | |
47109 | EOT | |
47110 | # using -MF icc complains about differing command lines in creation/use | |
47111 | ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\ | |
47112 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ | |
47113 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
47114 | fi | |
1e9e8aba | 47115 | exit ${D}{?} |
a848cd7e SC |
47116 | fi |
47117 | EOF | |
1e9e8aba | 47118 | |
a848cd7e SC |
47119 | chmod +x bk-make-pch |
47120 | fi | |
47121 | fi | |
47122 | fi | |
47123 | ||
47124 | ||
47125 | ||
f10e38c4 | 47126 | |
a848cd7e SC |
47127 | COND_BUILD_DEBUG="#" |
47128 | if test "x$BUILD" = "xdebug" ; then | |
47129 | COND_BUILD_DEBUG="" | |
47130 | fi | |
47131 | ||
47132 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
47133 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
47134 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
47135 | fi | |
47136 | ||
47137 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
47138 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47139 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
47140 | fi | |
47141 | ||
47142 | COND_BUILD_DEBUG_UNICODE_0="#" | |
47143 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
47144 | COND_BUILD_DEBUG_UNICODE_0="" | |
47145 | fi | |
47146 | ||
47147 | COND_BUILD_DEBUG_UNICODE_1="#" | |
47148 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
47149 | COND_BUILD_DEBUG_UNICODE_1="" | |
47150 | fi | |
47151 | ||
47152 | COND_BUILD_RELEASE="#" | |
47153 | if test "x$BUILD" = "xrelease" ; then | |
47154 | COND_BUILD_RELEASE="" | |
47155 | fi | |
47156 | ||
47157 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
47158 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47159 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
47160 | fi | |
47161 | ||
47162 | COND_BUILD_RELEASE_UNICODE_0="#" | |
47163 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
47164 | COND_BUILD_RELEASE_UNICODE_0="" | |
47165 | fi | |
47166 | ||
47167 | COND_BUILD_RELEASE_UNICODE_1="#" | |
47168 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
47169 | COND_BUILD_RELEASE_UNICODE_1="" | |
47170 | fi | |
47171 | ||
47172 | COND_DEBUG_FLAG_1="#" | |
47173 | if test "x$DEBUG_FLAG" = "x1" ; then | |
47174 | COND_DEBUG_FLAG_1="" | |
47175 | fi | |
47176 | ||
47177 | COND_DEBUG_INFO_0="#" | |
47178 | if test "x$DEBUG_INFO" = "x0" ; then | |
47179 | COND_DEBUG_INFO_0="" | |
47180 | fi | |
47181 | ||
47182 | COND_DEBUG_INFO_1="#" | |
47183 | if test "x$DEBUG_INFO" = "x1" ; then | |
47184 | COND_DEBUG_INFO_1="" | |
47185 | fi | |
47186 | ||
47187 | COND_DEPS_TRACKING_0="#" | |
47188 | if test "x$DEPS_TRACKING" = "x0" ; then | |
47189 | COND_DEPS_TRACKING_0="" | |
47190 | fi | |
47191 | ||
47192 | COND_DEPS_TRACKING_1="#" | |
47193 | if test "x$DEPS_TRACKING" = "x1" ; then | |
47194 | COND_DEPS_TRACKING_1="" | |
47195 | fi | |
47196 | ||
47197 | COND_GCC_PCH_1="#" | |
47198 | if test "x$GCC_PCH" = "x1" ; then | |
47199 | COND_GCC_PCH_1="" | |
47200 | fi | |
47201 | ||
f10e38c4 VZ |
47202 | COND_ICC_PCH_1="#" |
47203 | if test "x$ICC_PCH" = "x1" ; then | |
47204 | COND_ICC_PCH_1="" | |
47205 | fi | |
47206 | ||
a848cd7e SC |
47207 | COND_MONOLITHIC_0="#" |
47208 | if test "x$MONOLITHIC" = "x0" ; then | |
47209 | COND_MONOLITHIC_0="" | |
47210 | fi | |
47211 | ||
47212 | COND_MONOLITHIC_0_SHARED_0="#" | |
47213 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
47214 | COND_MONOLITHIC_0_SHARED_0="" | |
47215 | fi | |
47216 | ||
47217 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
47218 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
47219 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
47220 | fi | |
47221 | ||
90970d69 DE |
47222 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
47223 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47224 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
47225 | fi | |
47226 | ||
f10e38c4 VZ |
47227 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
47228 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
47229 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
47230 | fi | |
47231 | ||
a848cd7e SC |
47232 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
47233 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47234 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
47235 | fi | |
47236 | ||
6671c68b VZ |
47237 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
47238 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47239 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
47240 | fi | |
47241 | ||
a848cd7e SC |
47242 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
47243 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47244 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
47245 | fi | |
47246 | ||
ceec2216 RL |
47247 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
47248 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47249 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
47250 | fi | |
47251 | ||
a848cd7e SC |
47252 | COND_MONOLITHIC_0_SHARED_1="#" |
47253 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
47254 | COND_MONOLITHIC_0_SHARED_1="" | |
47255 | fi | |
47256 | ||
47257 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
47258 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47259 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
47260 | fi | |
47261 | ||
90970d69 DE |
47262 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
47263 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47264 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
47265 | fi | |
47266 | ||
f10e38c4 VZ |
47267 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
47268 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
47269 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
47270 | fi | |
47271 | ||
a848cd7e SC |
47272 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
47273 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47274 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
47275 | fi | |
47276 | ||
6671c68b VZ |
47277 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
47278 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47279 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
47280 | fi | |
47281 | ||
a848cd7e SC |
47282 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
47283 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47284 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
47285 | fi | |
47286 | ||
ceec2216 RL |
47287 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
47288 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47289 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
47290 | fi | |
47291 | ||
e5efa97e VZ |
47292 | COND_MONOLITHIC_0_USE_MEDIA_1="#" |
47293 | if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then | |
47294 | COND_MONOLITHIC_0_USE_MEDIA_1="" | |
47295 | fi | |
47296 | ||
a848cd7e SC |
47297 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
47298 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47299 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
47300 | fi | |
47301 | ||
47302 | COND_MONOLITHIC_1="#" | |
47303 | if test "x$MONOLITHIC" = "x1" ; then | |
47304 | COND_MONOLITHIC_1="" | |
47305 | fi | |
47306 | ||
47307 | COND_MONOLITHIC_1_SHARED_0="#" | |
47308 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
47309 | COND_MONOLITHIC_1_SHARED_0="" | |
47310 | fi | |
47311 | ||
47312 | COND_MONOLITHIC_1_SHARED_1="#" | |
47313 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
47314 | COND_MONOLITHIC_1_SHARED_1="" | |
47315 | fi | |
47316 | ||
47317 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
47318 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47319 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
47320 | fi | |
47321 | ||
47322 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
47323 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47324 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
47325 | fi | |
47326 | ||
eb730a0c JS |
47327 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
47328 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47329 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
47330 | fi | |
47331 | ||
a848cd7e SC |
47332 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
47333 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47334 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
47335 | fi | |
47336 | ||
47337 | COND_PLATFORM_MACOSX_1="#" | |
47338 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
47339 | COND_PLATFORM_MACOSX_1="" | |
47340 | fi | |
47341 | ||
a30f955f VS |
47342 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
47343 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
47344 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
47345 | fi | |
47346 | ||
a848cd7e SC |
47347 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
47348 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
47349 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
47350 | fi | |
47351 | ||
47352 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
47353 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
47354 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
47355 | fi | |
47356 | ||
47357 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
47358 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
47359 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
47360 | fi | |
47361 | ||
fc480dc1 DE |
47362 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
47363 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47364 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
47365 | fi | |
47366 | ||
1e9e8aba DE |
47367 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
47368 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47369 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47370 | fi | |
47371 | ||
ebee3cd0 VS |
47372 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
47373 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
47374 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
47375 | fi | |
47376 | ||
47377 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
47378 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
47379 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
47380 | fi | |
47381 | ||
a848cd7e SC |
47382 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
47383 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47384 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
47385 | fi | |
47386 | ||
47387 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
47388 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47389 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
47390 | fi | |
47391 | ||
b48a2016 DE |
47392 | COND_PLATFORM_MACOS_1="#" |
47393 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
47394 | COND_PLATFORM_MACOS_1="" | |
47395 | fi | |
47396 | ||
083508af MW |
47397 | COND_PLATFORM_MAC_1="#" |
47398 | if test "x$PLATFORM_MAC" = "x1" ; then | |
47399 | COND_PLATFORM_MAC_1="" | |
47400 | fi | |
47401 | ||
e5efa97e VZ |
47402 | COND_PLATFORM_MSDOS_0="#" |
47403 | if test "x$PLATFORM_MSDOS" = "x0" ; then | |
47404 | COND_PLATFORM_MSDOS_0="" | |
47405 | fi | |
47406 | ||
83d8eb47 MW |
47407 | COND_PLATFORM_MSDOS_1="#" |
47408 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
47409 | COND_PLATFORM_MSDOS_1="" | |
47410 | fi | |
47411 | ||
a848cd7e SC |
47412 | COND_PLATFORM_OS2_1="#" |
47413 | if test "x$PLATFORM_OS2" = "x1" ; then | |
47414 | COND_PLATFORM_OS2_1="" | |
47415 | fi | |
47416 | ||
47417 | COND_PLATFORM_UNIX_0="#" | |
47418 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
47419 | COND_PLATFORM_UNIX_0="" | |
47420 | fi | |
47421 | ||
47422 | COND_PLATFORM_UNIX_1="#" | |
47423 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
47424 | COND_PLATFORM_UNIX_1="" | |
47425 | fi | |
47426 | ||
47427 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
47428 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47429 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
47430 | fi | |
47431 | ||
47432 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
47433 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
47434 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
47435 | fi | |
47436 | ||
47437 | COND_PLATFORM_WIN32_0="#" | |
47438 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
47439 | COND_PLATFORM_WIN32_0="" | |
47440 | fi | |
47441 | ||
47442 | COND_PLATFORM_WIN32_1="#" | |
47443 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
47444 | COND_PLATFORM_WIN32_1="" | |
47445 | fi | |
47446 | ||
47447 | COND_SHARED_0="#" | |
47448 | if test "x$SHARED" = "x0" ; then | |
47449 | COND_SHARED_0="" | |
47450 | fi | |
47451 | ||
083508af MW |
47452 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
47453 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
47454 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
47455 | fi | |
47456 | ||
47457 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
47458 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47459 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
47460 | fi | |
47461 | ||
47462 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
47463 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
47464 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
47465 | fi | |
47466 | ||
a848cd7e SC |
47467 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
47468 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47469 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
47470 | fi | |
47471 | ||
47472 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47473 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47474 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47475 | fi | |
47476 | ||
47477 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47478 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47479 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47480 | fi | |
47481 | ||
47482 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47483 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47484 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47485 | fi | |
47486 | ||
083508af MW |
47487 | COND_SHARED_0_USE_XRC_1="#" |
47488 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47489 | COND_SHARED_0_USE_XRC_1="" | |
47490 | fi | |
47491 | ||
a848cd7e SC |
47492 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
47493 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47494 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
47495 | fi | |
47496 | ||
47497 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
47498 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
47499 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
47500 | fi | |
47501 | ||
47502 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
47503 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
47504 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
47505 | fi | |
47506 | ||
47507 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
47508 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
47509 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
47510 | fi | |
47511 | ||
47512 | COND_SHARED_1="#" | |
47513 | if test "x$SHARED" = "x1" ; then | |
47514 | COND_SHARED_1="" | |
47515 | fi | |
47516 | ||
47517 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
47518 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47519 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
47520 | fi | |
47521 | ||
083508af MW |
47522 | COND_SHARED_1_USE_XRC_1="#" |
47523 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47524 | COND_SHARED_1_USE_XRC_1="" | |
47525 | fi | |
47526 | ||
a30f955f VS |
47527 | COND_TOOLKIT_="#" |
47528 | if test "x$TOOLKIT" = "x" ; then | |
47529 | COND_TOOLKIT_="" | |
47530 | fi | |
47531 | ||
a848cd7e SC |
47532 | COND_TOOLKIT_COCOA="#" |
47533 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
47534 | COND_TOOLKIT_COCOA="" | |
47535 | fi | |
47536 | ||
a49baeab DE |
47537 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
47538 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
47539 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
47540 | fi | |
47541 | ||
a848cd7e SC |
47542 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
47543 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47544 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
47545 | fi | |
47546 | ||
47547 | COND_TOOLKIT_GTK="#" | |
47548 | if test "x$TOOLKIT" = "xGTK" ; then | |
47549 | COND_TOOLKIT_GTK="" | |
47550 | fi | |
47551 | ||
d044deea MW |
47552 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
47553 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
47554 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
47555 | fi | |
47556 | ||
47557 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
47558 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
47559 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
47560 | fi | |
47561 | ||
47562 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
47563 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
47564 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
47565 | fi | |
47566 | ||
47567 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
47568 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47569 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
47570 | fi | |
47571 | ||
47572 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
47573 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
47574 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
47575 | fi | |
47576 | ||
47577 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
47578 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47579 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
47580 | fi | |
47581 | ||
a848cd7e SC |
47582 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
47583 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
47584 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
47585 | fi | |
47586 | ||
a848cd7e SC |
47587 | COND_TOOLKIT_MAC="#" |
47588 | if test "x$TOOLKIT" = "xMAC" ; then | |
47589 | COND_TOOLKIT_MAC="" | |
47590 | fi | |
47591 | ||
47592 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
47593 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47594 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
47595 | fi | |
47596 | ||
47597 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
47598 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47599 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47600 | fi | |
47601 | ||
47602 | COND_TOOLKIT_MGL="#" | |
47603 | if test "x$TOOLKIT" = "xMGL" ; then | |
47604 | COND_TOOLKIT_MGL="" | |
47605 | fi | |
47606 | ||
47607 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
47608 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
47609 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
47610 | fi | |
47611 | ||
47612 | COND_TOOLKIT_MOTIF="#" | |
47613 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
47614 | COND_TOOLKIT_MOTIF="" | |
47615 | fi | |
47616 | ||
47617 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
47618 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
47619 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
47620 | fi | |
47621 | ||
47622 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
47623 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47624 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
47625 | fi | |
47626 | ||
47627 | COND_TOOLKIT_MSW="#" | |
47628 | if test "x$TOOLKIT" = "xMSW" ; then | |
47629 | COND_TOOLKIT_MSW="" | |
47630 | fi | |
47631 | ||
47632 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
47633 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
47634 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
47635 | fi | |
47636 | ||
47637 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
47638 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47639 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
47640 | fi | |
47641 | ||
0ee4059d DE |
47642 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
47643 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47644 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
47645 | fi | |
47646 | ||
a848cd7e SC |
47647 | COND_TOOLKIT_PM="#" |
47648 | if test "x$TOOLKIT" = "xPM" ; then | |
47649 | COND_TOOLKIT_PM="" | |
47650 | fi | |
47651 | ||
47652 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
47653 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
47654 | COND_TOOLKIT_PM_USE_GUI_1="" | |
47655 | fi | |
47656 | ||
47657 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
47658 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47659 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
47660 | fi | |
47661 | ||
3fd9c298 DE |
47662 | COND_TOOLKIT_WINCE="#" |
47663 | if test "x$TOOLKIT" = "xWINCE" ; then | |
47664 | COND_TOOLKIT_WINCE="" | |
47665 | fi | |
47666 | ||
47667 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
47668 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
47669 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
47670 | fi | |
47671 | ||
47672 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
47673 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47674 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
47675 | fi | |
47676 | ||
0ee4059d DE |
47677 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
47678 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
47679 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
47680 | fi | |
47681 | ||
a848cd7e SC |
47682 | COND_TOOLKIT_X11="#" |
47683 | if test "x$TOOLKIT" = "xX11" ; then | |
47684 | COND_TOOLKIT_X11="" | |
47685 | fi | |
47686 | ||
47687 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
47688 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
47689 | COND_TOOLKIT_X11_USE_GUI_1="" | |
47690 | fi | |
47691 | ||
47692 | COND_UNICODE_1="#" | |
47693 | if test "x$UNICODE" = "x1" ; then | |
47694 | COND_UNICODE_1="" | |
47695 | fi | |
47696 | ||
47697 | COND_USE_EXCEPTIONS_0="#" | |
47698 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
47699 | COND_USE_EXCEPTIONS_0="" | |
47700 | fi | |
47701 | ||
47702 | COND_USE_EXCEPTIONS_1="#" | |
47703 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
47704 | COND_USE_EXCEPTIONS_1="" | |
47705 | fi | |
47706 | ||
47707 | COND_USE_GUI_0="#" | |
47708 | if test "x$USE_GUI" = "x0" ; then | |
47709 | COND_USE_GUI_0="" | |
47710 | fi | |
47711 | ||
47712 | COND_USE_GUI_1="#" | |
47713 | if test "x$USE_GUI" = "x1" ; then | |
47714 | COND_USE_GUI_1="" | |
47715 | fi | |
47716 | ||
47717 | COND_USE_GUI_1_WXUNIV_0="#" | |
47718 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47719 | COND_USE_GUI_1_WXUNIV_0="" | |
47720 | fi | |
47721 | ||
47722 | COND_USE_GUI_1_WXUNIV_1="#" | |
47723 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
47724 | COND_USE_GUI_1_WXUNIV_1="" | |
47725 | fi | |
47726 | ||
47727 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47728 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47729 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47730 | fi | |
47731 | ||
47732 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47733 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47734 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47735 | fi | |
47736 | ||
47737 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47738 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47739 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47740 | fi | |
47741 | ||
083508af MW |
47742 | COND_USE_ODBC_1="#" |
47743 | if test "x$USE_ODBC" = "x1" ; then | |
47744 | COND_USE_ODBC_1="" | |
47745 | fi | |
47746 | ||
47747 | COND_USE_OPENGL_1="#" | |
47748 | if test "x$USE_OPENGL" = "x1" ; then | |
47749 | COND_USE_OPENGL_1="" | |
47750 | fi | |
47751 | ||
f10e38c4 VZ |
47752 | COND_USE_PCH_1="#" |
47753 | if test "x$USE_PCH" = "x1" ; then | |
47754 | COND_USE_PCH_1="" | |
47755 | fi | |
47756 | ||
a848cd7e SC |
47757 | COND_USE_PLUGINS_0="#" |
47758 | if test "x$USE_PLUGINS" = "x0" ; then | |
47759 | COND_USE_PLUGINS_0="" | |
47760 | fi | |
47761 | ||
0b78747f MW |
47762 | COND_USE_RTTI_0="#" |
47763 | if test "x$USE_RTTI" = "x0" ; then | |
47764 | COND_USE_RTTI_0="" | |
47765 | fi | |
47766 | ||
47767 | COND_USE_RTTI_1="#" | |
47768 | if test "x$USE_RTTI" = "x1" ; then | |
47769 | COND_USE_RTTI_1="" | |
47770 | fi | |
47771 | ||
a848cd7e SC |
47772 | COND_USE_SOSYMLINKS_1="#" |
47773 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
47774 | COND_USE_SOSYMLINKS_1="" | |
47775 | fi | |
47776 | ||
eb730a0c JS |
47777 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
47778 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47779 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
47780 | fi | |
47781 | ||
a848cd7e SC |
47782 | COND_USE_SOVERLINUX_1="#" |
47783 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
47784 | COND_USE_SOVERLINUX_1="" | |
47785 | fi | |
47786 | ||
47787 | COND_USE_SOVERSION_0="#" | |
47788 | if test "x$USE_SOVERSION" = "x0" ; then | |
47789 | COND_USE_SOVERSION_0="" | |
47790 | fi | |
47791 | ||
47792 | COND_USE_SOVERSOLARIS_1="#" | |
47793 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
47794 | COND_USE_SOVERSOLARIS_1="" | |
47795 | fi | |
47796 | ||
0b78747f MW |
47797 | COND_USE_THREADS_0="#" |
47798 | if test "x$USE_THREADS" = "x0" ; then | |
47799 | COND_USE_THREADS_0="" | |
47800 | fi | |
47801 | ||
47802 | COND_USE_THREADS_1="#" | |
47803 | if test "x$USE_THREADS" = "x1" ; then | |
47804 | COND_USE_THREADS_1="" | |
47805 | fi | |
47806 | ||
a13a7f89 RL |
47807 | COND_USE_XRC_1="#" |
47808 | if test "x$USE_XRC" = "x1" ; then | |
47809 | COND_USE_XRC_1="" | |
47810 | fi | |
47811 | ||
eb730a0c JS |
47812 | COND_WINDOWS_IMPLIB_1="#" |
47813 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
47814 | COND_WINDOWS_IMPLIB_1="" | |
47815 | fi | |
47816 | ||
a848cd7e SC |
47817 | COND_WITH_PLUGIN_SDL_1="#" |
47818 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
47819 | COND_WITH_PLUGIN_SDL_1="" | |
47820 | fi | |
47821 | ||
1e6eb025 VZ |
47822 | COND_WXUNIV_0="#" |
47823 | if test "x$WXUNIV" = "x0" ; then | |
47824 | COND_WXUNIV_0="" | |
47825 | fi | |
47826 | ||
a848cd7e SC |
47827 | COND_WXUNIV_1="#" |
47828 | if test "x$WXUNIV" = "x1" ; then | |
47829 | COND_WXUNIV_1="" | |
47830 | fi | |
47831 | ||
47832 | COND_WXUSE_EXPAT_BUILTIN="#" | |
47833 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47834 | COND_WXUSE_EXPAT_BUILTIN="" | |
47835 | fi | |
47836 | ||
47837 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
47838 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47839 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
47840 | fi | |
47841 | ||
47842 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
47843 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47844 | COND_WXUSE_LIBPNG_BUILTIN="" | |
47845 | fi | |
47846 | ||
47847 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
47848 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47849 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
47850 | fi | |
47851 | ||
47852 | COND_WXUSE_ODBC_BUILTIN="#" | |
47853 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
47854 | COND_WXUSE_ODBC_BUILTIN="" | |
47855 | fi | |
47856 | ||
47857 | COND_WXUSE_REGEX_BUILTIN="#" | |
47858 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
47859 | COND_WXUSE_REGEX_BUILTIN="" | |
47860 | fi | |
47861 | ||
47862 | COND_WXUSE_ZLIB_BUILTIN="#" | |
47863 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
47864 | COND_WXUSE_ZLIB_BUILTIN="" | |
47865 | fi | |
47866 | ||
47867 | ||
47868 | ||
810b94f0 MW |
47869 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
47870 | { { 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 | |
47871 | 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;} | |
47872 | { (exit 1); exit 1; }; } | |
47873 | fi | |
47874 | ||
2057db16 VS |
47875 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
47876 | { { 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 | |
47877 | 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;} | |
47878 | { (exit 1); exit 1; }; } | |
47879 | fi | |
47880 | ||
a848cd7e | 47881 | |
7afc46ab KO |
47882 | |
47883 | if test "$wxUSE_MAC" = 1 ; then | |
47884 | if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then | |
47885 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp | |
47886 | mv temp bk-deps | |
47887 | chmod +x bk-deps | |
47888 | fi | |
47889 | fi | |
47890 | ||
ceec2216 RL |
47891 | if test "$wxUSE_SHARED" = "yes"; then |
47892 | ||
47893 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
47894 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
47895 | ||
5b674b9d DE |
47896 | case "${host}" in |
47897 | *-pc-os2_emx | *-pc-os2-emx ) | |
47898 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
47899 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
47900 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
47901 | cp -p ${srcdir}/src/os2/dllar.sh . | |
47902 | ;; | |
47903 | esac | |
ceec2216 RL |
47904 | else |
47905 | ||
47906 | EXE_LINKER="$CXX -o" | |
47907 | ||
47908 | fi | |
69120ee4 VZ |
47909 | if test "$wxUSE_OMF" = "yes"; then |
47910 | case "${host}" in | |
47911 | *-pc-os2_emx | *-pc-os2-emx ) | |
47912 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
47913 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
47914 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
47915 | ;; | |
47916 | esac | |
47917 | fi | |
a848cd7e | 47918 | |
c08ebc62 | 47919 | if test $GCC_PCH = 1 ; then |
254e8e29 | 47920 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 47921 | fi |
a848cd7e | 47922 | |
5ff751d6 | 47923 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
47924 | |
47925 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
47926 | ||
47927 | ||
47928 | ||
47929 | ||
47930 | ||
47931 | ||
47932 | ||
47933 | ||
47934 | ||
47935 | ||
47936 | ||
47937 | ||
47938 | ||
47939 | ||
47940 | ||
47941 | ||
47942 | ||
47943 | ||
47944 | ||
47945 | ||
47946 | ||
47947 | ||
47948 | ||
47949 | ||
47950 | ||
47951 | ||
47952 | ||
47953 | ||
47954 | ||
47955 | ||
47956 | ||
47957 | ||
47958 | ||
47959 | ||
47960 | ||
47961 | ||
47962 | ||
47963 | ||
47964 | ||
47965 | ||
47966 | ||
47967 | ||
a848cd7e SC |
47968 | |
47969 | ||
47970 | ||
47971 | ||
47972 | ||
47973 | ||
47974 | ||
47975 | ||
47976 | ||
47977 | ||
47978 | ||
47979 | ||
a848cd7e SC |
47980 | |
47981 | ||
ddd14b14 | 47982 | |
370d2fd7 | 47983 | |
8ced02f6 | 47984 | |
a848cd7e SC |
47985 | |
47986 | ||
47987 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
47988 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 47989 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
47990 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
47991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47992 | else | |
47993 | cat >conftest.make <<\_ACEOF | |
47994 | all: | |
47995 | @echo 'ac_maketemp="$(MAKE)"' | |
47996 | _ACEOF | |
47997 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
47998 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
47999 | if test -n "$ac_maketemp"; then | |
48000 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48001 | else | |
48002 | eval ac_cv_prog_make_${ac_make}_set=no | |
48003 | fi | |
48004 | rm -f conftest.make | |
48005 | fi | |
48006 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48007 | echo "$as_me:$LINENO: result: yes" >&5 | |
48008 | echo "${ECHO_T}yes" >&6 | |
48009 | SET_MAKE= | |
48010 | else | |
48011 | echo "$as_me:$LINENO: result: no" >&5 | |
48012 | echo "${ECHO_T}no" >&6 | |
48013 | SET_MAKE="MAKE=${MAKE-make}" | |
48014 | fi | |
48015 | ||
48016 | ||
a848cd7e | 48017 | |
ceec2216 RL |
48018 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
48019 | ||
a848cd7e | 48020 | |
5c60e845 MW |
48021 | if test "$USE_WIN32" = 1; then |
48022 | ac_config_commands="$ac_config_commands | |
48023 | rcdefs.h | |
48024 | " | |
48025 | ||
48026 | fi | |
48027 | ||
ceec2216 | 48028 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 48029 | |
a848cd7e | 48030 | |
ceec2216 | 48031 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 48032 | |
ceec2216 RL |
48033 | |
48034 | ac_config_files="$ac_config_files version-script Makefile" | |
48035 | ||
48036 | ||
5c60e845 | 48037 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
48038 | |
48039 | ||
9103d280 | 48040 | |
1c14217d | 48041 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
48042 | if test "$wxUSE_GUI" = "yes"; then |
48043 | SUBDIRS="samples demos utils contrib" | |
48044 | else SUBDIRS="samples utils" | |
48045 | fi | |
48046 | ||
48047 | ||
48048 | ||
48049 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
48050 | if test "${with_cppunit_prefix+set}" = set; then | |
48051 | withval="$with_cppunit_prefix" | |
48052 | cppunit_config_prefix="$withval" | |
48053 | else | |
48054 | cppunit_config_prefix="" | |
48055 | fi; | |
48056 | ||
48057 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
48058 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
48059 | withval="$with_cppunit_exec_prefix" | |
48060 | cppunit_config_exec_prefix="$withval" | |
48061 | else | |
48062 | cppunit_config_exec_prefix="" | |
48063 | fi; | |
48064 | ||
48065 | if test x$cppunit_config_exec_prefix != x ; then | |
48066 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
48067 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48068 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
48069 | fi | |
48070 | fi | |
48071 | if test x$cppunit_config_prefix != x ; then | |
48072 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
48073 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48074 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
48075 | fi | |
48076 | fi | |
48077 | ||
48078 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
48079 | set dummy cppunit-config; ac_word=$2 | |
48080 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48081 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48082 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
48083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48084 | else | |
48085 | case $CPPUNIT_CONFIG in | |
48086 | [\\/]* | ?:[\\/]*) | |
48087 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
48088 | ;; | |
48089 | *) | |
48090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48091 | for as_dir in $PATH | |
48092 | do | |
48093 | IFS=$as_save_IFS | |
48094 | test -z "$as_dir" && as_dir=. | |
48095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48097 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
48098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48099 | break 2 | |
48100 | fi | |
48101 | done | |
48102 | done | |
48103 | ||
48104 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
48105 | ;; | |
48106 | esac | |
48107 | fi | |
48108 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
48109 | ||
48110 | if test -n "$CPPUNIT_CONFIG"; then | |
48111 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
48112 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
48113 | else | |
48114 | echo "$as_me:$LINENO: result: no" >&5 | |
48115 | echo "${ECHO_T}no" >&6 | |
48116 | fi | |
48117 | ||
48118 | cppunit_version_min=1.8.0 | |
48119 | ||
48120 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
48121 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
48122 | no_cppunit="" | |
48123 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
48124 | no_cppunit=yes | |
48125 | else | |
48126 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
48127 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
48128 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
48129 | ||
48130 | cppunit_major_version=`echo $cppunit_version | \ | |
48131 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48132 | cppunit_minor_version=`echo $cppunit_version | \ | |
48133 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48134 | cppunit_micro_version=`echo $cppunit_version | \ | |
48135 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48136 | ||
48137 | cppunit_major_min=`echo $cppunit_version_min | \ | |
48138 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48139 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
48140 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48141 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
48142 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48143 | ||
48144 | cppunit_version_proper=`expr \ | |
48145 | $cppunit_major_version \> $cppunit_major_min \| \ | |
48146 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48147 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
48148 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48149 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
48150 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
48151 | ||
48152 | if test "$cppunit_version_proper" = "1" ; then | |
48153 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
48154 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
48155 | else | |
48156 | echo "$as_me:$LINENO: result: no" >&5 | |
48157 | echo "${ECHO_T}no" >&6 | |
48158 | no_cppunit=yes | |
48159 | fi | |
48160 | fi | |
48161 | ||
48162 | if test "x$no_cppunit" = x ; then | |
c2218763 | 48163 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
48164 | else |
48165 | CPPUNIT_CFLAGS="" | |
48166 | CPPUNIT_LIBS="" | |
c2218763 | 48167 | : |
a848cd7e SC |
48168 | fi |
48169 | ||
48170 | ||
48171 | ||
48172 | ||
48173 | ||
48174 | for subdir in `echo $SUBDIRS`; do | |
48175 | if test -d ${srcdir}/${subdir} ; then | |
48176 | if test "$wxUSE_GUI" = "yes"; then | |
48177 | if test ${subdir} = "samples"; then | |
48178 | makefiles="samples/Makefile.in $makefiles" | |
48179 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
48180 | if test -d $srcdir/samples/$sample; then | |
48181 | makefiles="samples/$sample/Makefile.in $makefiles" | |
48182 | fi | |
48183 | done | |
9c112555 MW |
48184 | else |
48185 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
48186 | eval "disabled=\$$disabled_var" | |
48187 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
48188 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
48189 | fi |
48190 | else if test ${subdir} = "samples"; then | |
48191 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
48192 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
48193 | makefiles="" |
48194 | for util in HelpGen tex2rtf ; do | |
48195 | if test -d $srcdir/utils/$util ; then | |
48196 | makefiles="utils/$util/Makefile.in \ | |
48197 | utils/$util/src/Makefile.in \ | |
48198 | $makefiles" | |
48199 | fi | |
48200 | done | |
a848cd7e SC |
48201 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
48202 | fi | |
48203 | fi | |
48204 | ||
48205 | for mkin in $makefiles ; do | |
48206 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
48207 | ac_config_files="$ac_config_files $mk" | |
48208 | ||
48209 | done | |
48210 | fi | |
48211 | done | |
1c14217d | 48212 | fi |
a848cd7e SC |
48213 | cat >confcache <<\_ACEOF |
48214 | # This file is a shell script that caches the results of configure | |
48215 | # tests run on this system so they can be shared between configure | |
48216 | # scripts and configure runs, see configure's option --config-cache. | |
48217 | # It is not useful on other systems. If it contains results you don't | |
48218 | # want to keep, you may remove or edit it. | |
48219 | # | |
48220 | # config.status only pays attention to the cache file if you give it | |
48221 | # the --recheck option to rerun configure. | |
48222 | # | |
48223 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
48224 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
48225 | # following values. | |
48226 | ||
48227 | _ACEOF | |
48228 | ||
48229 | # The following way of writing the cache mishandles newlines in values, | |
48230 | # but we know of no workaround that is simple, portable, and efficient. | |
48231 | # So, don't put newlines in cache variables' values. | |
48232 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
48233 | # and sets the high bit in the cache file unless we assign to the vars. | |
48234 | { | |
48235 | (set) 2>&1 | | |
48236 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
48237 | *ac_space=\ *) | |
48238 | # `set' does not quote correctly, so add quotes (double-quote | |
48239 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
48240 | sed -n \ | |
ac1cb8d3 VS |
48241 | "s/'/'\\\\''/g; |
48242 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
48243 | ;; |
48244 | *) | |
48245 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
48246 | sed -n \ | |
ac1cb8d3 | 48247 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
48248 | ;; |
48249 | esac; | |
48250 | } | | |
48251 | sed ' | |
48252 | t clear | |
48253 | : clear | |
48254 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
48255 | t end | |
48256 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
48257 | : end' >>confcache | |
48258 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
48259 | if test -w $cache_file; then | |
48260 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
48261 | cat confcache >$cache_file | |
48262 | else | |
48263 | echo "not updating unwritable cache $cache_file" | |
48264 | fi | |
48265 | fi | |
48266 | rm -f confcache | |
48267 | ||
48268 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
48269 | # Let make expand exec_prefix. | |
48270 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
48271 | ||
48272 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
48273 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
48274 | # trailing colons and then remove the whole line if VPATH becomes empty | |
48275 | # (actually we leave an empty line to preserve line numbers). | |
48276 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 48277 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
48278 | s/:*\$(srcdir):*/:/; |
48279 | s/:*\${srcdir}:*/:/; | |
48280 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 48281 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 48282 | s/:*$//; |
ac1cb8d3 | 48283 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
48284 | }' |
48285 | fi | |
48286 | ||
48287 | DEFS=-DHAVE_CONFIG_H | |
48288 | ||
48289 | ac_libobjs= | |
48290 | ac_ltlibobjs= | |
48291 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
48292 | # 1. Remove the extension, and $U if already installed. | |
48293 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 48294 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
48295 | # 2. Add them. |
48296 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
48297 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
48298 | done | |
48299 | LIBOBJS=$ac_libobjs | |
48300 | ||
48301 | LTLIBOBJS=$ac_ltlibobjs | |
48302 | ||
48303 | ||
48304 | ||
48305 | : ${CONFIG_STATUS=./config.status} | |
48306 | ac_clean_files_save=$ac_clean_files | |
48307 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
48308 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
48309 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
48310 | cat >$CONFIG_STATUS <<_ACEOF | |
48311 | #! $SHELL | |
48312 | # Generated by $as_me. | |
48313 | # Run this file to recreate the current configuration. | |
48314 | # Compiler output produced by configure, useful for debugging | |
48315 | # configure, is in config.log if it exists. | |
48316 | ||
48317 | debug=false | |
48318 | ac_cs_recheck=false | |
48319 | ac_cs_silent=false | |
48320 | SHELL=\${CONFIG_SHELL-$SHELL} | |
48321 | _ACEOF | |
48322 | ||
48323 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48324 | ## --------------------- ## | |
48325 | ## M4sh Initialization. ## | |
48326 | ## --------------------- ## | |
48327 | ||
48328 | # Be Bourne compatible | |
48329 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
48330 | emulate sh | |
48331 | NULLCMD=: | |
48332 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
48333 | # is contrary to our usage. Disable this feature. | |
48334 | alias -g '${1+"$@"}'='"$@"' | |
48335 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
48336 | set -o posix | |
48337 | fi | |
ac1cb8d3 | 48338 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
48339 | |
48340 | # Support unset when possible. | |
ac1cb8d3 | 48341 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
48342 | as_unset=unset |
48343 | else | |
48344 | as_unset=false | |
48345 | fi | |
48346 | ||
48347 | ||
48348 | # Work around bugs in pre-3.0 UWIN ksh. | |
48349 | $as_unset ENV MAIL MAILPATH | |
48350 | PS1='$ ' | |
48351 | PS2='> ' | |
48352 | PS4='+ ' | |
48353 | ||
48354 | # NLS nuisances. | |
48355 | for as_var in \ | |
48356 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
48357 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
48358 | LC_TELEPHONE LC_TIME | |
48359 | do | |
ac1cb8d3 | 48360 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48361 | eval $as_var=C; export $as_var |
48362 | else | |
48363 | $as_unset $as_var | |
48364 | fi | |
48365 | done | |
48366 | ||
48367 | # Required to use basename. | |
48368 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48369 | as_expr=expr | |
48370 | else | |
48371 | as_expr=false | |
48372 | fi | |
48373 | ||
48374 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
48375 | as_basename=basename | |
48376 | else | |
48377 | as_basename=false | |
48378 | fi | |
48379 | ||
48380 | ||
48381 | # Name of the executable. | |
48382 | as_me=`$as_basename "$0" || | |
48383 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
48384 | X"$0" : 'X\(//\)$' \| \ | |
48385 | X"$0" : 'X\(/\)$' \| \ | |
48386 | . : '\(.\)' 2>/dev/null || | |
48387 | echo X/"$0" | | |
48388 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
48389 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
48390 | /^X\/\(\/\).*/{ s//\1/; q; } | |
48391 | s/.*/./; q'` | |
48392 | ||
48393 | ||
48394 | # PATH needs CR, and LINENO needs CR and PATH. | |
48395 | # Avoid depending upon Character Ranges. | |
48396 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
48397 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
48398 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
48399 | as_cr_digits='0123456789' | |
48400 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
48401 | ||
48402 | # The user is always right. | |
48403 | if test "${PATH_SEPARATOR+set}" != set; then | |
48404 | echo "#! /bin/sh" >conf$$.sh | |
48405 | echo "exit 0" >>conf$$.sh | |
48406 | chmod +x conf$$.sh | |
48407 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48408 | PATH_SEPARATOR=';' | |
48409 | else | |
48410 | PATH_SEPARATOR=: | |
48411 | fi | |
48412 | rm -f conf$$.sh | |
48413 | fi | |
48414 | ||
48415 | ||
48416 | as_lineno_1=$LINENO | |
48417 | as_lineno_2=$LINENO | |
48418 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48419 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48420 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
48421 | # Find who we are. Look in the path if we contain no path at all | |
48422 | # relative or not. | |
48423 | case $0 in | |
48424 | *[\\/]* ) as_myself=$0 ;; | |
48425 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48426 | for as_dir in $PATH | |
48427 | do | |
48428 | IFS=$as_save_IFS | |
48429 | test -z "$as_dir" && as_dir=. | |
48430 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
48431 | done | |
48432 | ||
48433 | ;; | |
48434 | esac | |
48435 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
48436 | # in which case we are not to be found in the path. | |
48437 | if test "x$as_myself" = x; then | |
48438 | as_myself=$0 | |
48439 | fi | |
48440 | if test ! -f "$as_myself"; then | |
48441 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
48442 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
48443 | { (exit 1); exit 1; }; } | |
48444 | fi | |
48445 | case $CONFIG_SHELL in | |
48446 | '') | |
48447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48448 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
48449 | do | |
48450 | IFS=$as_save_IFS | |
48451 | test -z "$as_dir" && as_dir=. | |
48452 | for as_base in sh bash ksh sh5; do | |
48453 | case $as_dir in | |
48454 | /*) | |
48455 | if ("$as_dir/$as_base" -c ' | |
48456 | as_lineno_1=$LINENO | |
48457 | as_lineno_2=$LINENO | |
48458 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48459 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48460 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
48461 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
48462 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
48463 | CONFIG_SHELL=$as_dir/$as_base | |
48464 | export CONFIG_SHELL | |
48465 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
48466 | fi;; | |
48467 | esac | |
48468 | done | |
48469 | done | |
48470 | ;; | |
48471 | esac | |
48472 | ||
48473 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
48474 | # uniformly replaced by the line number. The first 'sed' inserts a | |
48475 | # line-number line before each line; the second 'sed' does the real | |
48476 | # work. The second script uses 'N' to pair each line-number line | |
48477 | # with the numbered line, and appends trailing '-' during | |
48478 | # substitution so that $LINENO is not a special case at line end. | |
48479 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
48480 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
48481 | sed '=' <$as_myself | | |
48482 | sed ' | |
48483 | N | |
48484 | s,$,-, | |
48485 | : loop | |
48486 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
48487 | t loop | |
48488 | s,-$,, | |
48489 | s,^['$as_cr_digits']*\n,, | |
48490 | ' >$as_me.lineno && | |
48491 | chmod +x $as_me.lineno || | |
48492 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
48493 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
48494 | { (exit 1); exit 1; }; } | |
48495 | ||
48496 | # Don't try to exec as it changes $[0], causing all sort of problems | |
48497 | # (the dirname of $[0] is not the place where we might find the | |
48498 | # original and so on. Autoconf is especially sensible to this). | |
48499 | . ./$as_me.lineno | |
48500 | # Exit status is that of the last command. | |
48501 | exit | |
48502 | } | |
48503 | ||
48504 | ||
48505 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
48506 | *c*,-n*) ECHO_N= ECHO_C=' | |
48507 | ' ECHO_T=' ' ;; | |
48508 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
48509 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
48510 | esac | |
48511 | ||
48512 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48513 | as_expr=expr | |
48514 | else | |
48515 | as_expr=false | |
48516 | fi | |
48517 | ||
48518 | rm -f conf$$ conf$$.exe conf$$.file | |
48519 | echo >conf$$.file | |
48520 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
48521 | # We could just check for DJGPP; but this test a) works b) is more generic | |
48522 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
48523 | if test -f conf$$.exe; then | |
48524 | # Don't use ln at all; we don't have any links | |
48525 | as_ln_s='cp -p' | |
48526 | else | |
48527 | as_ln_s='ln -s' | |
48528 | fi | |
48529 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
48530 | as_ln_s=ln | |
48531 | else | |
48532 | as_ln_s='cp -p' | |
48533 | fi | |
48534 | rm -f conf$$ conf$$.exe conf$$.file | |
48535 | ||
48536 | if mkdir -p . 2>/dev/null; then | |
48537 | as_mkdir_p=: | |
48538 | else | |
ac1cb8d3 | 48539 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
48540 | as_mkdir_p=false |
48541 | fi | |
48542 | ||
48543 | as_executable_p="test -f" | |
48544 | ||
48545 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 48546 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48547 | |
48548 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 48549 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48550 | |
48551 | ||
48552 | # IFS | |
48553 | # We need space, tab and new line, in precisely that order. | |
48554 | as_nl=' | |
48555 | ' | |
48556 | IFS=" $as_nl" | |
48557 | ||
48558 | # CDPATH. | |
48559 | $as_unset CDPATH | |
48560 | ||
48561 | exec 6>&1 | |
48562 | ||
48563 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
48564 | # report actual input values of CONFIG_FILES etc. instead of their | |
48565 | # values after options handling. Logging --version etc. is OK. | |
48566 | exec 5>>config.log | |
48567 | { | |
48568 | echo | |
48569 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
48570 | ## Running $as_me. ## | |
48571 | _ASBOX | |
48572 | } >&5 | |
48573 | cat >&5 <<_CSEOF | |
48574 | ||
dd8df4fc | 48575 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 48576 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
48577 | |
48578 | CONFIG_FILES = $CONFIG_FILES | |
48579 | CONFIG_HEADERS = $CONFIG_HEADERS | |
48580 | CONFIG_LINKS = $CONFIG_LINKS | |
48581 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
48582 | $ $0 $@ | |
48583 | ||
48584 | _CSEOF | |
48585 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
48586 | echo >&5 | |
48587 | _ACEOF | |
48588 | ||
48589 | # Files that config.status was made for. | |
48590 | if test -n "$ac_config_files"; then | |
48591 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
48592 | fi | |
48593 | ||
48594 | if test -n "$ac_config_headers"; then | |
48595 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
48596 | fi | |
48597 | ||
48598 | if test -n "$ac_config_links"; then | |
48599 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
48600 | fi | |
48601 | ||
48602 | if test -n "$ac_config_commands"; then | |
48603 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
48604 | fi | |
48605 | ||
48606 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48607 | ||
48608 | ac_cs_usage="\ | |
48609 | \`$as_me' instantiates files from templates according to the | |
48610 | current configuration. | |
48611 | ||
48612 | Usage: $0 [OPTIONS] [FILE]... | |
48613 | ||
48614 | -h, --help print this help, then exit | |
48615 | -V, --version print version number, then exit | |
48616 | -q, --quiet do not print progress messages | |
48617 | -d, --debug don't remove temporary files | |
48618 | --recheck update $as_me by reconfiguring in the same conditions | |
48619 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 48620 | instantiate the configuration file FILE |
a848cd7e | 48621 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 48622 | instantiate the configuration header FILE |
a848cd7e SC |
48623 | |
48624 | Configuration files: | |
48625 | $config_files | |
48626 | ||
48627 | Configuration headers: | |
48628 | $config_headers | |
48629 | ||
48630 | Configuration commands: | |
48631 | $config_commands | |
48632 | ||
48633 | Report bugs to <bug-autoconf@gnu.org>." | |
48634 | _ACEOF | |
48635 | ||
48636 | cat >>$CONFIG_STATUS <<_ACEOF | |
48637 | ac_cs_version="\\ | |
dd8df4fc | 48638 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 48639 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
48640 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
48641 | ||
ac1cb8d3 | 48642 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
48643 | This config.status script is free software; the Free Software Foundation |
48644 | gives unlimited permission to copy, distribute and modify it." | |
48645 | srcdir=$srcdir | |
48646 | INSTALL="$INSTALL" | |
48647 | _ACEOF | |
48648 | ||
48649 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48650 | # If no file are specified by the user, then we need to provide default | |
48651 | # value. By we need to know if files were specified by the user. | |
48652 | ac_need_defaults=: | |
48653 | while test $# != 0 | |
48654 | do | |
48655 | case $1 in | |
48656 | --*=*) | |
48657 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
48658 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
48659 | ac_shift=: | |
48660 | ;; | |
48661 | -*) | |
48662 | ac_option=$1 | |
48663 | ac_optarg=$2 | |
48664 | ac_shift=shift | |
48665 | ;; | |
48666 | *) # This is not an option, so the user has probably given explicit | |
48667 | # arguments. | |
48668 | ac_option=$1 | |
48669 | ac_need_defaults=false;; | |
48670 | esac | |
48671 | ||
48672 | case $ac_option in | |
48673 | # Handling of the options. | |
48674 | _ACEOF | |
48675 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48676 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
48677 | ac_cs_recheck=: ;; | |
48678 | --version | --vers* | -V ) | |
48679 | echo "$ac_cs_version"; exit 0 ;; | |
48680 | --he | --h) | |
48681 | # Conflict between --help and --header | |
48682 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
48683 | Try \`$0 --help' for more information." >&5 | |
48684 | echo "$as_me: error: ambiguous option: $1 | |
48685 | Try \`$0 --help' for more information." >&2;} | |
48686 | { (exit 1); exit 1; }; };; | |
48687 | --help | --hel | -h ) | |
48688 | echo "$ac_cs_usage"; exit 0 ;; | |
48689 | --debug | --d* | -d ) | |
48690 | debug=: ;; | |
48691 | --file | --fil | --fi | --f ) | |
48692 | $ac_shift | |
48693 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
48694 | ac_need_defaults=false;; | |
48695 | --header | --heade | --head | --hea ) | |
48696 | $ac_shift | |
48697 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
48698 | ac_need_defaults=false;; | |
48699 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
48700 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
48701 | ac_cs_silent=: ;; | |
48702 | ||
48703 | # This is an error. | |
48704 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
48705 | Try \`$0 --help' for more information." >&5 | |
48706 | echo "$as_me: error: unrecognized option: $1 | |
48707 | Try \`$0 --help' for more information." >&2;} | |
48708 | { (exit 1); exit 1; }; } ;; | |
48709 | ||
48710 | *) ac_config_targets="$ac_config_targets $1" ;; | |
48711 | ||
48712 | esac | |
48713 | shift | |
48714 | done | |
48715 | ||
48716 | ac_configure_extra_args= | |
48717 | ||
48718 | if $ac_cs_silent; then | |
48719 | exec 6>/dev/null | |
48720 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
48721 | fi | |
48722 | ||
48723 | _ACEOF | |
48724 | cat >>$CONFIG_STATUS <<_ACEOF | |
48725 | if \$ac_cs_recheck; then | |
48726 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
48727 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
48728 | fi | |
48729 | ||
48730 | _ACEOF | |
48731 | ||
48732 | cat >>$CONFIG_STATUS <<_ACEOF | |
48733 | # | |
48734 | # INIT-COMMANDS section. | |
48735 | # | |
48736 | ||
5c60e845 MW |
48737 | |
48738 | CPP="$CPP" | |
48739 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
48740 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
48741 | ||
48742 | ||
ceec2216 RL |
48743 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
48744 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48745 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48746 | LN_S="${LN_S}" | |
a848cd7e SC |
48747 | |
48748 | ||
48749 | _ACEOF | |
48750 | ||
48751 | ||
48752 | ||
48753 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48754 | for ac_config_target in $ac_config_targets | |
48755 | do | |
48756 | case "$ac_config_target" in | |
48757 | # Handling of arguments. | |
ceec2216 RL |
48758 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
48759 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
48760 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
48761 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
48762 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 48763 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
48764 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
48765 | "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 |
48766 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
48767 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
48768 | { (exit 1); exit 1; }; };; | |
48769 | esac | |
48770 | done | |
48771 | ||
48772 | # If the user did not use the arguments to specify the items to instantiate, | |
48773 | # then the envvar interface is used. Set only those that are not. | |
48774 | # We use the long form for the default assignment because of an extremely | |
48775 | # bizarre bug on SunOS 4.1.3. | |
48776 | if $ac_need_defaults; then | |
48777 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
48778 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
48779 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
48780 | fi | |
48781 | ||
48782 | # Have a temporary directory for convenience. Make it in the build tree | |
48783 | # simply because there is no reason to put it here, and in addition, | |
48784 | # creating and moving files from /tmp can sometimes cause problems. | |
48785 | # Create a temporary directory, and hook for its removal unless debugging. | |
48786 | $debug || | |
48787 | { | |
48788 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
48789 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
48790 | } | |
48791 | ||
48792 | # Create a (secure) tmp directory for tmp files. | |
48793 | ||
48794 | { | |
48795 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
48796 | test -n "$tmp" && test -d "$tmp" | |
48797 | } || | |
48798 | { | |
48799 | tmp=./confstat$$-$RANDOM | |
48800 | (umask 077 && mkdir $tmp) | |
48801 | } || | |
48802 | { | |
48803 | echo "$me: cannot create a temporary directory in ." >&2 | |
48804 | { (exit 1); exit 1; } | |
48805 | } | |
48806 | ||
48807 | _ACEOF | |
48808 | ||
48809 | cat >>$CONFIG_STATUS <<_ACEOF | |
48810 | ||
48811 | # | |
48812 | # CONFIG_FILES section. | |
48813 | # | |
48814 | ||
48815 | # No need to generate the scripts if there are no CONFIG_FILES. | |
48816 | # This happens for instance when ./config.status config.h | |
48817 | if test -n "\$CONFIG_FILES"; then | |
48818 | # Protect against being on the right side of a sed subst in config.status. | |
48819 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
48820 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
48821 | s,@SHELL@,$SHELL,;t t | |
48822 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
48823 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
48824 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
48825 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
48826 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
48827 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
48828 | s,@exec_prefix@,$exec_prefix,;t t | |
48829 | s,@prefix@,$prefix,;t t | |
48830 | s,@program_transform_name@,$program_transform_name,;t t | |
48831 | s,@bindir@,$bindir,;t t | |
48832 | s,@sbindir@,$sbindir,;t t | |
48833 | s,@libexecdir@,$libexecdir,;t t | |
48834 | s,@datadir@,$datadir,;t t | |
48835 | s,@sysconfdir@,$sysconfdir,;t t | |
48836 | s,@sharedstatedir@,$sharedstatedir,;t t | |
48837 | s,@localstatedir@,$localstatedir,;t t | |
48838 | s,@libdir@,$libdir,;t t | |
48839 | s,@includedir@,$includedir,;t t | |
48840 | s,@oldincludedir@,$oldincludedir,;t t | |
48841 | s,@infodir@,$infodir,;t t | |
48842 | s,@mandir@,$mandir,;t t | |
48843 | s,@build_alias@,$build_alias,;t t | |
48844 | s,@host_alias@,$host_alias,;t t | |
48845 | s,@target_alias@,$target_alias,;t t | |
48846 | s,@DEFS@,$DEFS,;t t | |
48847 | s,@ECHO_C@,$ECHO_C,;t t | |
48848 | s,@ECHO_N@,$ECHO_N,;t t | |
48849 | s,@ECHO_T@,$ECHO_T,;t t | |
48850 | s,@LIBS@,$LIBS,;t t | |
48851 | s,@build@,$build,;t t | |
48852 | s,@build_cpu@,$build_cpu,;t t | |
48853 | s,@build_vendor@,$build_vendor,;t t | |
48854 | s,@build_os@,$build_os,;t t | |
48855 | s,@host@,$host,;t t | |
48856 | s,@host_cpu@,$host_cpu,;t t | |
48857 | s,@host_vendor@,$host_vendor,;t t | |
48858 | s,@host_os@,$host_os,;t t | |
48859 | s,@target@,$target,;t t | |
48860 | s,@target_cpu@,$target_cpu,;t t | |
48861 | s,@target_vendor@,$target_vendor,;t t | |
48862 | s,@target_os@,$target_os,;t t | |
48863 | s,@CC@,$CC,;t t | |
48864 | s,@CFLAGS@,$CFLAGS,;t t | |
48865 | s,@LDFLAGS@,$LDFLAGS,;t t | |
48866 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
48867 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
48868 | s,@EXEEXT@,$EXEEXT,;t t | |
48869 | s,@OBJEXT@,$OBJEXT,;t t | |
48870 | s,@CPP@,$CPP,;t t | |
48871 | s,@EGREP@,$EGREP,;t t | |
48872 | s,@CXX@,$CXX,;t t | |
48873 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
48874 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
48875 | s,@RANLIB@,$RANLIB,;t t | |
48876 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
48877 | s,@AR@,$AR,;t t | |
8c80d384 | 48878 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
48879 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
48880 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
48881 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
48882 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 48883 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
48884 | s,@WINDRES@,$WINDRES,;t t |
48885 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
48886 | s,@DLLTOOL@,$DLLTOOL,;t t |
48887 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
48888 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
48889 | s,@LN_S@,$LN_S,;t t | |
48890 | s,@CXXCPP@,$CXXCPP,;t t | |
48891 | s,@subdirs@,$subdirs,;t t | |
48892 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
48893 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
48894 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
48895 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
48896 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
48897 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
48898 | s,@X_LIBS@,$X_LIBS,;t t | |
48899 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
48900 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
48901 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
48902 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
48903 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
48904 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
48905 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 48906 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
48907 | s,@DEREZ@,$DEREZ,;t t |
48908 | s,@SETFILE@,$SETFILE,;t t | |
48909 | s,@LIBICONV@,$LIBICONV,;t t | |
48910 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
48911 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
48912 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
48913 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
48914 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
48915 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
2b850ae1 RR |
48916 | s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t |
48917 | s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t | |
3565d135 RR |
48918 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
48919 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
f10e38c4 VZ |
48920 | s,@GST_CFLAGS@,$GST_CFLAGS,;t t |
48921 | s,@GST_LIBS@,$GST_LIBS,;t t | |
a848cd7e SC |
48922 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
48923 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
48924 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
48925 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
48926 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
48927 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
48928 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
48929 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
48930 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
48931 | s,@VENDOR@,$VENDOR,;t t | |
48932 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
48933 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
48934 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
48935 | s,@WXUNIV@,$WXUNIV,;t t |
48936 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
48937 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
48938 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
48939 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
48940 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
48941 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
48942 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
48943 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
48944 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
48945 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 48946 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
2b850ae1 | 48947 | s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t |
3565d135 | 48948 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
48949 | s,@UNICODE@,$UNICODE,;t t |
48950 | s,@BUILD@,$BUILD,;t t | |
48951 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
48952 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
48953 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
48954 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
48955 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
48956 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
48957 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
48958 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
48959 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
48960 | s,@SET_MAKE@,$SET_MAKE,;t t | |
48961 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
48962 | s,@NM@,$NM,;t t |
48963 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
48964 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
48965 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
48966 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
48967 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
48968 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
48969 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 48970 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
48971 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
48972 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 48973 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
48974 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
48975 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
48976 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
48977 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
48978 | s,@LIBEXT@,$LIBEXT,;t t | |
48979 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
48980 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 48981 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
48982 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
48983 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
48984 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
48985 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
48986 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
48987 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 48988 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
48989 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
48990 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
48991 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 48992 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
48993 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
48994 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
48995 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
48996 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
48997 | s,@GCC_PCH@,$GCC_PCH,;t t | |
f10e38c4 | 48998 | s,@ICC_PCH@,$ICC_PCH,;t t |
a848cd7e SC |
48999 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
49000 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
49001 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
49002 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
49003 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
49004 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
49005 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
49006 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
49007 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
49008 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
49009 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
49010 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
49011 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
49012 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
49013 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
f10e38c4 | 49014 | s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t |
a848cd7e SC |
49015 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
49016 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
49017 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 49018 | 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 | 49019 | 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 | 49020 | 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 | 49021 | 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 | 49022 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 49023 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49024 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
49025 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 49026 | 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 | 49027 | 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 | 49028 | 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 | 49029 | 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 | 49030 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 49031 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
e5efa97e | 49032 | s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t |
a848cd7e SC |
49033 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
49034 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
49035 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
49036 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
49037 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
49038 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 49039 | 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 |
49040 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
49041 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 49042 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
49043 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
49044 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
49045 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 49046 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 49047 | 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 |
49048 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
49049 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
49050 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
49051 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 49052 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 49053 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
e5efa97e | 49054 | s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t |
83d8eb47 | 49055 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
49056 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
49057 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
49058 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
49059 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
49060 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
49061 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
49062 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
49063 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
49064 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
49065 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
49066 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
49067 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
49068 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49069 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49070 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 49071 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49072 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
49073 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
49074 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
49075 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
49076 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
49077 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 49078 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 49079 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 49080 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 49081 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
49082 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
49083 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
d044deea MW |
49084 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
49085 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
49086 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
49087 | 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 | |
49088 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
49089 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 49090 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
49091 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
49092 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
49093 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
49094 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
49095 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
49096 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
49097 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
49098 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
49099 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
49100 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
49101 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49102 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
49103 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
49104 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
49105 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
49106 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
49107 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
49108 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49109 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
49110 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
49111 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
49112 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
49113 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
49114 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
49115 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
49116 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
49117 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
49118 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
49119 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49120 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49121 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
49122 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
49123 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
f10e38c4 | 49124 | s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t |
a848cd7e | 49125 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
49126 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
49127 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 49128 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 49129 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
49130 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
49131 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
49132 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
49133 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
49134 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 49135 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 49136 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 49137 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 49138 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
49139 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
49140 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
49141 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
49142 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
49143 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
49144 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
49145 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
49146 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 49147 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
49148 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
49149 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
49150 | s,@USE_GUI@,$USE_GUI,;t t |
49151 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
49152 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
49153 | s,@TOOLKIT@,$TOOLKIT,;t t | |
49154 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 49155 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 49156 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 49157 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
49158 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
49159 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
49160 | s,@WX_VERSION@,$WX_VERSION,;t t | |
49161 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
49162 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
49163 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
49164 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
49165 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
49166 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
49167 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
49168 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
49169 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 49170 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 49171 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 49172 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
49173 | s,@DISTDIR@,$DISTDIR,;t t |
49174 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
49175 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
49176 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
49177 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
49178 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 49179 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
49180 | s,@RESFLAGS@,$RESFLAGS,;t t |
49181 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
49182 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
49183 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
49184 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 49185 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 49186 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 49187 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
49188 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
49189 | s,@LIBOBJS@,$LIBOBJS,;t t | |
49190 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
49191 | CEOF | |
49192 | ||
49193 | _ACEOF | |
49194 | ||
49195 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49196 | # Split the substitutions into bite-sized pieces for seds with | |
49197 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
49198 | ac_max_sed_lines=48 | |
49199 | ac_sed_frag=1 # Number of current file. | |
49200 | ac_beg=1 # First line for current file. | |
49201 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
49202 | ac_more_lines=: | |
49203 | ac_sed_cmds= | |
49204 | while $ac_more_lines; do | |
49205 | if test $ac_beg -gt 1; then | |
49206 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49207 | else | |
49208 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49209 | fi | |
49210 | if test ! -s $tmp/subs.frag; then | |
49211 | ac_more_lines=false | |
49212 | else | |
49213 | # The purpose of the label and of the branching condition is to | |
49214 | # speed up the sed processing (if there are no `@' at all, there | |
49215 | # is no need to browse any of the substitutions). | |
49216 | # These are the two extra sed commands mentioned above. | |
49217 | (echo ':t | |
49218 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
49219 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 49220 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 49221 | else |
ac1cb8d3 | 49222 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
49223 | fi |
49224 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
49225 | ac_beg=$ac_end | |
49226 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
49227 | fi | |
49228 | done | |
49229 | if test -z "$ac_sed_cmds"; then | |
49230 | ac_sed_cmds=cat | |
49231 | fi | |
49232 | fi # test -n "$CONFIG_FILES" | |
49233 | ||
49234 | _ACEOF | |
49235 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49236 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
49237 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49238 | case $ac_file in | |
49239 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49240 | cat >$tmp/stdin |
49241 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49242 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49243 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49244 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49245 | * ) ac_file_in=$ac_file.in ;; |
49246 | esac | |
49247 | ||
49248 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
49249 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49250 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49251 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49252 | X"$ac_file" : 'X\(//\)$' \| \ | |
49253 | X"$ac_file" : 'X\(/\)' \| \ | |
49254 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49255 | echo X"$ac_file" | |
49256 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49257 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49258 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49259 | /^X\(\/\).*/{ s//\1/; q; } | |
49260 | s/.*/./; q'` | |
49261 | { if $as_mkdir_p; then | |
49262 | mkdir -p "$ac_dir" | |
49263 | else | |
49264 | as_dir="$ac_dir" | |
49265 | as_dirs= | |
49266 | while test ! -d "$as_dir"; do | |
49267 | as_dirs="$as_dir $as_dirs" | |
49268 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49269 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49270 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49271 | X"$as_dir" : 'X\(//\)$' \| \ | |
49272 | X"$as_dir" : 'X\(/\)' \| \ | |
49273 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49274 | echo X"$as_dir" | |
49275 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49276 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49277 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49278 | /^X\(\/\).*/{ s//\1/; q; } | |
49279 | s/.*/./; q'` | |
49280 | done | |
49281 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49282 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49283 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49284 | { (exit 1); exit 1; }; }; } | |
49285 | ||
49286 | ac_builddir=. | |
49287 | ||
49288 | if test "$ac_dir" != .; then | |
49289 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49290 | # A "../" for each directory in $ac_dir_suffix. | |
49291 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49292 | else | |
49293 | ac_dir_suffix= ac_top_builddir= | |
49294 | fi | |
49295 | ||
49296 | case $srcdir in | |
49297 | .) # No --srcdir option. We are building in place. | |
49298 | ac_srcdir=. | |
49299 | if test -z "$ac_top_builddir"; then | |
49300 | ac_top_srcdir=. | |
49301 | else | |
49302 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49303 | fi ;; | |
49304 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49305 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49306 | ac_top_srcdir=$srcdir ;; | |
49307 | *) # Relative path. | |
49308 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49309 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49310 | esac | |
ac1cb8d3 VS |
49311 | |
49312 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49313 | # the directories may not exist. | |
49314 | case `pwd` in | |
49315 | .) ac_abs_builddir="$ac_dir";; | |
49316 | *) | |
49317 | case "$ac_dir" in | |
49318 | .) ac_abs_builddir=`pwd`;; | |
49319 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49320 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49321 | esac;; | |
49322 | esac | |
49323 | case $ac_abs_builddir in | |
49324 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49325 | *) | |
49326 | case ${ac_top_builddir}. in | |
49327 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49328 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49329 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49330 | esac;; | |
49331 | esac | |
49332 | case $ac_abs_builddir in | |
49333 | .) ac_abs_srcdir=$ac_srcdir;; | |
49334 | *) | |
49335 | case $ac_srcdir in | |
49336 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49337 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49338 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49339 | esac;; | |
49340 | esac | |
49341 | case $ac_abs_builddir in | |
49342 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49343 | *) | |
49344 | case $ac_top_srcdir in | |
49345 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49346 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49347 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49348 | esac;; | |
49349 | esac | |
a848cd7e SC |
49350 | |
49351 | ||
49352 | case $INSTALL in | |
49353 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
49354 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
49355 | esac | |
49356 | ||
a848cd7e SC |
49357 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
49358 | # use $as_me), people would be surprised to read: | |
49359 | # /* config.h. Generated by config.status. */ | |
49360 | if test x"$ac_file" = x-; then | |
49361 | configure_input= | |
49362 | else | |
49363 | configure_input="$ac_file. " | |
49364 | fi | |
49365 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 49366 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
49367 | |
49368 | # First look for the input files in the build tree, otherwise in the | |
49369 | # src tree. | |
49370 | ac_file_inputs=`IFS=: | |
49371 | for f in $ac_file_in; do | |
49372 | case $f in | |
49373 | -) echo $tmp/stdin ;; | |
49374 | [\\/$]*) | |
ac1cb8d3 VS |
49375 | # Absolute (can't be DOS-style, as IFS=:) |
49376 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49377 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49378 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49379 | echo "$f";; |
a848cd7e | 49380 | *) # Relative |
ac1cb8d3 VS |
49381 | if test -f "$f"; then |
49382 | # Build tree | |
49383 | echo "$f" | |
49384 | elif test -f "$srcdir/$f"; then | |
49385 | # Source tree | |
49386 | echo "$srcdir/$f" | |
49387 | else | |
49388 | # /dev/null tree | |
49389 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49390 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49391 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49392 | fi;; |
a848cd7e SC |
49393 | esac |
49394 | done` || { (exit 1); exit 1; } | |
5d7b7554 VZ |
49395 | |
49396 | if test x"$ac_file" != x-; then | |
49397 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49398 | echo "$as_me: creating $ac_file" >&6;} | |
49399 | rm -f "$ac_file" | |
49400 | fi | |
a848cd7e SC |
49401 | _ACEOF |
49402 | cat >>$CONFIG_STATUS <<_ACEOF | |
49403 | sed "$ac_vpsub | |
49404 | $extrasub | |
49405 | _ACEOF | |
49406 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49407 | :t | |
49408 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
49409 | s,@configure_input@,$configure_input,;t t | |
49410 | s,@srcdir@,$ac_srcdir,;t t | |
49411 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
49412 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
49413 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
49414 | s,@builddir@,$ac_builddir,;t t | |
49415 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
49416 | s,@top_builddir@,$ac_top_builddir,;t t | |
49417 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
49418 | s,@INSTALL@,$ac_INSTALL,;t t | |
49419 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
49420 | rm -f $tmp/stdin | |
49421 | if test x"$ac_file" != x-; then | |
49422 | mv $tmp/out $ac_file | |
49423 | else | |
49424 | cat $tmp/out | |
49425 | rm -f $tmp/out | |
49426 | fi | |
49427 | ||
ceec2216 RL |
49428 | # Run the commands associated with the file. |
49429 | case $ac_file in | |
49430 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
49431 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
49432 | esac | |
a848cd7e SC |
49433 | done |
49434 | _ACEOF | |
49435 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49436 | ||
49437 | # | |
49438 | # CONFIG_HEADER section. | |
49439 | # | |
49440 | ||
49441 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
49442 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
49443 | # | |
49444 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
49445 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
49446 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
49447 | ac_dC=' ' |
49448 | ac_dD=',;t' | |
49449 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 49450 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
49451 | ac_uB='$,\1#\2define\3' |
49452 | ac_uC=' ' | |
49453 | ac_uD=',;t' | |
49454 | ||
49455 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
49456 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49457 | case $ac_file in | |
49458 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49459 | cat >$tmp/stdin |
49460 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49461 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49462 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49463 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49464 | * ) ac_file_in=$ac_file.in ;; |
49465 | esac | |
49466 | ||
49467 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49468 | echo "$as_me: creating $ac_file" >&6;} | |
49469 | ||
49470 | # First look for the input files in the build tree, otherwise in the | |
49471 | # src tree. | |
49472 | ac_file_inputs=`IFS=: | |
49473 | for f in $ac_file_in; do | |
49474 | case $f in | |
49475 | -) echo $tmp/stdin ;; | |
49476 | [\\/$]*) | |
ac1cb8d3 VS |
49477 | # Absolute (can't be DOS-style, as IFS=:) |
49478 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49479 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49480 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
49481 | # Do quote $f, to prevent DOS paths from being IFS'd. |
49482 | echo "$f";; | |
a848cd7e | 49483 | *) # Relative |
ac1cb8d3 VS |
49484 | if test -f "$f"; then |
49485 | # Build tree | |
49486 | echo "$f" | |
49487 | elif test -f "$srcdir/$f"; then | |
49488 | # Source tree | |
49489 | echo "$srcdir/$f" | |
49490 | else | |
49491 | # /dev/null tree | |
49492 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49493 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49494 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49495 | fi;; |
a848cd7e SC |
49496 | esac |
49497 | done` || { (exit 1); exit 1; } | |
49498 | # Remove the trailing spaces. | |
ac1cb8d3 | 49499 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
49500 | |
49501 | _ACEOF | |
49502 | ||
49503 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
49504 | # `conftest.undefs', that substitutes the proper values into | |
49505 | # config.h.in to produce config.h. The first handles `#define' | |
49506 | # templates, and the second `#undef' templates. | |
49507 | # And first: Protect against being on the right side of a sed subst in | |
49508 | # config.status. Protect against being in an unquoted here document | |
49509 | # in config.status. | |
49510 | rm -f conftest.defines conftest.undefs | |
49511 | # Using a here document instead of a string reduces the quoting nightmare. | |
49512 | # Putting comments in sed scripts is not portable. | |
49513 | # | |
49514 | # `end' is used to avoid that the second main sed command (meant for | |
49515 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
49516 | # See the Autoconf documentation for `clear'. | |
49517 | cat >confdef2sed.sed <<\_ACEOF | |
49518 | s/[\\&,]/\\&/g | |
49519 | s,[\\$`],\\&,g | |
49520 | t clear | |
49521 | : clear | |
ac1cb8d3 | 49522 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 49523 | t end |
ac1cb8d3 | 49524 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
49525 | : end |
49526 | _ACEOF | |
49527 | # If some macros were called several times there might be several times | |
49528 | # the same #defines, which is useless. Nevertheless, we may not want to | |
49529 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
49530 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
49531 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
49532 | rm -f confdef2sed.sed | |
49533 | ||
49534 | # This sed command replaces #undef with comments. This is necessary, for | |
49535 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
49536 | # on some systems where configure will not decide to define it. | |
49537 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 49538 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
49539 | _ACEOF |
49540 | ||
49541 | # Break up conftest.defines because some shells have a limit on the size | |
49542 | # of here documents, and old seds have small limits too (100 cmds). | |
49543 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 49544 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
49545 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
49546 | echo ' :' >>$CONFIG_STATUS | |
49547 | rm -f conftest.tail | |
49548 | while grep . conftest.defines >/dev/null | |
49549 | do | |
49550 | # Write a limited-size here document to $tmp/defines.sed. | |
49551 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
49552 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 49553 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49554 | # Work around the forget-to-reset-the-flag bug. |
49555 | echo 't clr' >>$CONFIG_STATUS | |
49556 | echo ': clr' >>$CONFIG_STATUS | |
49557 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
49558 | echo 'CEOF | |
49559 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
49560 | rm -f $tmp/in | |
49561 | mv $tmp/out $tmp/in | |
49562 | ' >>$CONFIG_STATUS | |
49563 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
49564 | rm -f conftest.defines | |
49565 | mv conftest.tail conftest.defines | |
49566 | done | |
49567 | rm -f conftest.defines | |
49568 | echo ' fi # grep' >>$CONFIG_STATUS | |
49569 | echo >>$CONFIG_STATUS | |
49570 | ||
49571 | # Break up conftest.undefs because some shells have a limit on the size | |
49572 | # of here documents, and old seds have small limits too (100 cmds). | |
49573 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
49574 | rm -f conftest.tail | |
49575 | while grep . conftest.undefs >/dev/null | |
49576 | do | |
49577 | # Write a limited-size here document to $tmp/undefs.sed. | |
49578 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
49579 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 49580 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49581 | # Work around the forget-to-reset-the-flag bug. |
49582 | echo 't clr' >>$CONFIG_STATUS | |
49583 | echo ': clr' >>$CONFIG_STATUS | |
49584 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
49585 | echo 'CEOF | |
49586 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
49587 | rm -f $tmp/in | |
49588 | mv $tmp/out $tmp/in | |
49589 | ' >>$CONFIG_STATUS | |
49590 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
49591 | rm -f conftest.undefs | |
49592 | mv conftest.tail conftest.undefs | |
49593 | done | |
49594 | rm -f conftest.undefs | |
49595 | ||
49596 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49597 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
49598 | # use $as_me), people would be surprised to read: | |
49599 | # /* config.h. Generated by config.status. */ | |
49600 | if test x"$ac_file" = x-; then | |
49601 | echo "/* Generated by configure. */" >$tmp/config.h | |
49602 | else | |
49603 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
49604 | fi | |
49605 | cat $tmp/in >>$tmp/config.h | |
49606 | rm -f $tmp/in | |
49607 | if test x"$ac_file" != x-; then | |
49608 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
49609 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
49610 | echo "$as_me: $ac_file is unchanged" >&6;} | |
49611 | else | |
49612 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49613 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49614 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49615 | X"$ac_file" : 'X\(//\)$' \| \ | |
49616 | X"$ac_file" : 'X\(/\)' \| \ | |
49617 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49618 | echo X"$ac_file" | |
49619 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49620 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49621 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49622 | /^X\(\/\).*/{ s//\1/; q; } | |
49623 | s/.*/./; q'` | |
49624 | { if $as_mkdir_p; then | |
49625 | mkdir -p "$ac_dir" | |
49626 | else | |
49627 | as_dir="$ac_dir" | |
49628 | as_dirs= | |
49629 | while test ! -d "$as_dir"; do | |
49630 | as_dirs="$as_dir $as_dirs" | |
49631 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49632 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49633 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49634 | X"$as_dir" : 'X\(//\)$' \| \ | |
49635 | X"$as_dir" : 'X\(/\)' \| \ | |
49636 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49637 | echo X"$as_dir" | |
49638 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49639 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49640 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49641 | /^X\(\/\).*/{ s//\1/; q; } | |
49642 | s/.*/./; q'` | |
49643 | done | |
49644 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49645 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49646 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49647 | { (exit 1); exit 1; }; }; } | |
49648 | ||
49649 | rm -f $ac_file | |
49650 | mv $tmp/config.h $ac_file | |
49651 | fi | |
49652 | else | |
49653 | cat $tmp/config.h | |
49654 | rm -f $tmp/config.h | |
49655 | fi | |
49656 | done | |
49657 | _ACEOF | |
49658 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49659 | ||
49660 | # | |
49661 | # CONFIG_COMMANDS section. | |
49662 | # | |
49663 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
49664 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
49665 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49666 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
49667 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49668 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
49669 | X"$ac_dest" : 'X\(//\)$' \| \ | |
49670 | X"$ac_dest" : 'X\(/\)' \| \ | |
49671 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49672 | echo X"$ac_dest" | |
49673 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49674 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49675 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49676 | /^X\(\/\).*/{ s//\1/; q; } | |
49677 | s/.*/./; q'` | |
ac1cb8d3 VS |
49678 | { if $as_mkdir_p; then |
49679 | mkdir -p "$ac_dir" | |
49680 | else | |
49681 | as_dir="$ac_dir" | |
49682 | as_dirs= | |
49683 | while test ! -d "$as_dir"; do | |
49684 | as_dirs="$as_dir $as_dirs" | |
49685 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49686 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
49687 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
49688 | X"$as_dir" : 'X\(//\)$' \| \ | |
49689 | X"$as_dir" : 'X\(/\)' \| \ | |
49690 | . : '\(.\)' 2>/dev/null || | |
49691 | echo X"$as_dir" | | |
49692 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49693 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49694 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49695 | /^X\(\/\).*/{ s//\1/; q; } | |
49696 | s/.*/./; q'` | |
49697 | done | |
49698 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49699 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49700 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49701 | { (exit 1); exit 1; }; }; } | |
49702 | ||
a848cd7e SC |
49703 | ac_builddir=. |
49704 | ||
49705 | if test "$ac_dir" != .; then | |
49706 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49707 | # A "../" for each directory in $ac_dir_suffix. | |
49708 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49709 | else | |
49710 | ac_dir_suffix= ac_top_builddir= | |
49711 | fi | |
49712 | ||
49713 | case $srcdir in | |
49714 | .) # No --srcdir option. We are building in place. | |
49715 | ac_srcdir=. | |
49716 | if test -z "$ac_top_builddir"; then | |
49717 | ac_top_srcdir=. | |
49718 | else | |
49719 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49720 | fi ;; | |
49721 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49722 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49723 | ac_top_srcdir=$srcdir ;; | |
49724 | *) # Relative path. | |
49725 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49726 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49727 | esac | |
ac1cb8d3 VS |
49728 | |
49729 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49730 | # the directories may not exist. | |
49731 | case `pwd` in | |
49732 | .) ac_abs_builddir="$ac_dir";; | |
49733 | *) | |
49734 | case "$ac_dir" in | |
49735 | .) ac_abs_builddir=`pwd`;; | |
49736 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49737 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49738 | esac;; | |
49739 | esac | |
49740 | case $ac_abs_builddir in | |
49741 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49742 | *) | |
49743 | case ${ac_top_builddir}. in | |
49744 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49745 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49746 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49747 | esac;; | |
49748 | esac | |
49749 | case $ac_abs_builddir in | |
49750 | .) ac_abs_srcdir=$ac_srcdir;; | |
49751 | *) | |
49752 | case $ac_srcdir in | |
49753 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49754 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49755 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49756 | esac;; | |
49757 | esac | |
49758 | case $ac_abs_builddir in | |
49759 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49760 | *) | |
49761 | case $ac_top_srcdir in | |
49762 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49763 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49764 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49765 | esac;; | |
49766 | esac | |
a848cd7e SC |
49767 | |
49768 | ||
49769 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
49770 | echo "$as_me: executing $ac_dest commands" >&6;} | |
49771 | case $ac_dest in | |
5c60e845 MW |
49772 | rcdefs.h ) |
49773 | mkdir -p $outdir && | |
49774 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
49775 | ;; | |
ceec2216 RL |
49776 | wx-config ) rm -f wx-config |
49777 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
49778 | ;; | |
a848cd7e SC |
49779 | esac |
49780 | done | |
49781 | _ACEOF | |
49782 | ||
49783 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49784 | ||
49785 | { (exit 0); exit 0; } | |
49786 | _ACEOF | |
49787 | chmod +x $CONFIG_STATUS | |
49788 | ac_clean_files=$ac_clean_files_save | |
49789 | ||
49790 | ||
49791 | # configure is writing to config.log, and then calls config.status. | |
49792 | # config.status does its own redirection, appending to config.log. | |
49793 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
49794 | # by configure, so config.status won't be able to write to it; its | |
49795 | # output is simply discarded. So we exec the FD to /dev/null, | |
49796 | # effectively closing config.log, so it can be properly (re)opened and | |
49797 | # appended to by config.status. When coming back to configure, we | |
49798 | # need to make the FD available again. | |
49799 | if test "$no_create" != yes; then | |
49800 | ac_cs_success=: | |
49801 | ac_config_status_args= | |
49802 | test "$silent" = yes && | |
49803 | ac_config_status_args="$ac_config_status_args --quiet" | |
49804 | exec 5>/dev/null | |
49805 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
49806 | exec 5>>config.log | |
49807 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
49808 | # would make configure fail if this is the last instruction. | |
49809 | $ac_cs_success || { (exit 1); exit 1; } | |
49810 | fi | |
49811 | ||
49812 | # | |
49813 | # CONFIG_SUBDIRS section. | |
49814 | # | |
49815 | if test "$no_recursion" != yes; then | |
49816 | ||
49817 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
49818 | ac_sub_configure_args= | |
49819 | ac_prev= | |
49820 | for ac_arg in $ac_configure_args; do | |
49821 | if test -n "$ac_prev"; then | |
49822 | ac_prev= | |
49823 | continue | |
49824 | fi | |
49825 | case $ac_arg in | |
49826 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
49827 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
49828 | ac_prev=cache_file ;; | |
49829 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
49830 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
49831 | | --c=*) | |
49832 | ;; | |
49833 | --config-cache | -C) | |
49834 | ;; | |
49835 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
49836 | ac_prev=srcdir ;; | |
49837 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
49838 | ;; | |
49839 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
49840 | ac_prev=prefix ;; | |
49841 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
49842 | ;; | |
49843 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
49844 | esac | |
49845 | done | |
49846 | ||
49847 | # Always prepend --prefix to ensure using the same prefix | |
49848 | # in subdir configurations. | |
49849 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
49850 | ||
49851 | ac_popdir=`pwd` | |
49852 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
49853 | ||
49854 | # Do not complain, so a configure script can configure whichever | |
49855 | # parts of a large source tree are present. | |
49856 | test -d $srcdir/$ac_dir || continue | |
49857 | ||
49858 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
49859 | echo "$as_me: configuring in $ac_dir" >&6;} | |
49860 | { if $as_mkdir_p; then | |
49861 | mkdir -p "$ac_dir" | |
49862 | else | |
49863 | as_dir="$ac_dir" | |
49864 | as_dirs= | |
49865 | while test ! -d "$as_dir"; do | |
49866 | as_dirs="$as_dir $as_dirs" | |
49867 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49868 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49869 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49870 | X"$as_dir" : 'X\(//\)$' \| \ | |
49871 | X"$as_dir" : 'X\(/\)' \| \ | |
49872 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49873 | echo X"$as_dir" | |
49874 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49875 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49876 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49877 | /^X\(\/\).*/{ s//\1/; q; } | |
49878 | s/.*/./; q'` | |
49879 | done | |
49880 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49881 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49882 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49883 | { (exit 1); exit 1; }; }; } | |
49884 | ||
49885 | ac_builddir=. | |
49886 | ||
49887 | if test "$ac_dir" != .; then | |
49888 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49889 | # A "../" for each directory in $ac_dir_suffix. | |
49890 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49891 | else | |
49892 | ac_dir_suffix= ac_top_builddir= | |
49893 | fi | |
49894 | ||
49895 | case $srcdir in | |
49896 | .) # No --srcdir option. We are building in place. | |
49897 | ac_srcdir=. | |
49898 | if test -z "$ac_top_builddir"; then | |
49899 | ac_top_srcdir=. | |
49900 | else | |
49901 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49902 | fi ;; | |
49903 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49904 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49905 | ac_top_srcdir=$srcdir ;; | |
49906 | *) # Relative path. | |
49907 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49908 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49909 | esac | |
ac1cb8d3 VS |
49910 | |
49911 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49912 | # the directories may not exist. | |
49913 | case `pwd` in | |
49914 | .) ac_abs_builddir="$ac_dir";; | |
49915 | *) | |
49916 | case "$ac_dir" in | |
49917 | .) ac_abs_builddir=`pwd`;; | |
49918 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49919 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49920 | esac;; | |
49921 | esac | |
49922 | case $ac_abs_builddir in | |
49923 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49924 | *) | |
49925 | case ${ac_top_builddir}. in | |
49926 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49927 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49928 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49929 | esac;; | |
49930 | esac | |
49931 | case $ac_abs_builddir in | |
49932 | .) ac_abs_srcdir=$ac_srcdir;; | |
49933 | *) | |
49934 | case $ac_srcdir in | |
49935 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49936 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49937 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49938 | esac;; | |
49939 | esac | |
49940 | case $ac_abs_builddir in | |
49941 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49942 | *) | |
49943 | case $ac_top_srcdir in | |
49944 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49945 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49946 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49947 | esac;; | |
49948 | esac | |
a848cd7e SC |
49949 | |
49950 | ||
49951 | cd $ac_dir | |
49952 | ||
49953 | # Check for guested configure; otherwise get Cygnus style configure. | |
49954 | if test -f $ac_srcdir/configure.gnu; then | |
49955 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
49956 | elif test -f $ac_srcdir/configure; then | |
49957 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
49958 | elif test -f $ac_srcdir/configure.in; then | |
49959 | ac_sub_configure=$ac_configure | |
49960 | else | |
49961 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
49962 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
49963 | ac_sub_configure= | |
49964 | fi | |
49965 | ||
49966 | # The recursion is here. | |
49967 | if test -n "$ac_sub_configure"; then | |
49968 | # Make the cache file name correct relative to the subdirectory. | |
49969 | case $cache_file in | |
49970 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
49971 | *) # Relative path. | |
ac1cb8d3 | 49972 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
49973 | esac |
49974 | ||
49975 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
49976 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
49977 | # The eval makes quoting arguments work. | |
49978 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
49979 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
49980 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
49981 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
49982 | { (exit 1); exit 1; }; } | |
49983 | fi | |
49984 | ||
5d7b7554 | 49985 | cd "$ac_popdir" |
a848cd7e SC |
49986 | done |
49987 | fi | |
49988 | ||
49989 | ||
49990 | echo | |
77ffb593 | 49991 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 49992 | echo "" |
4d4ff94c | 49993 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 49994 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 49995 | |
77ffb593 JS |
49996 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
49997 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
49998 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 49999 | |
77ffb593 | 50000 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
50001 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
50002 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 50003 | |
77ffb593 | 50004 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
50005 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
50006 | echo " png ${wxUSE_LIBPNG-none}" | |
50007 | echo " regex ${wxUSE_REGEX}" | |
50008 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
50009 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
50010 | echo " xpm ${wxUSE_LIBXPM-none}" | |
50011 | fi | |
50012 | echo " zlib ${wxUSE_ZLIB}" | |
50013 | echo " odbc ${wxUSE_ODBC}" | |
50014 | echo " expat ${wxUSE_EXPAT}" | |
50015 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
50016 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 50017 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
2b850ae1 | 50018 | echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}" |
3565d135 | 50019 | echo " hildon ${wxUSE_LIBHILDON-none}" |
a848cd7e SC |
50020 | |
50021 | echo "" | |
50022 |