]>
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" | |
b3c86150 | 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 ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
3ecd9f92 MW |
789 | ac_env_PKG_CONFIG_set=${PKG_CONFIG+set} |
790 | ac_env_PKG_CONFIG_value=$PKG_CONFIG | |
791 | ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} | |
792 | ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG | |
b3c86150 VS |
793 | ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set} |
794 | ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS | |
795 | ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set} | |
796 | ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS | |
797 | ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set} | |
798 | ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS | |
799 | ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set} | |
800 | ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS | |
3ecd9f92 MW |
801 | ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set} |
802 | ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS | |
803 | ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set} | |
804 | ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS | |
805 | ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set} | |
806 | ac_env_PANGOX_LIBS_value=$PANGOX_LIBS | |
807 | ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set} | |
808 | ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS | |
809 | ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set} | |
810 | ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS | |
811 | ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set} | |
812 | ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS | |
813 | ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set} | |
814 | ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS | |
815 | ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set} | |
816 | ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS | |
817 | ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set} | |
818 | ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS | |
819 | ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set} | |
820 | ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS | |
821 | ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set} | |
822 | ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS | |
823 | ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set} | |
824 | ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS | |
825 | ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set} | |
826 | ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS | |
827 | ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set} | |
828 | ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS | |
829 | ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set} | |
830 | ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS | |
831 | ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set} | |
832 | ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS | |
833 | ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set} | |
834 | ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS | |
835 | ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set} | |
836 | ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS | |
837 | ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set} | |
838 | ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS | |
839 | ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set} | |
840 | ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS | |
841 | ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set} | |
842 | ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS | |
843 | ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set} | |
844 | ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS | |
845 | ac_env_HILDON_LIBS_set=${HILDON_LIBS+set} | |
846 | ac_env_HILDON_LIBS_value=$HILDON_LIBS | |
847 | ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set} | |
848 | ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS | |
849 | ac_env_GST_CFLAGS_set=${GST_CFLAGS+set} | |
850 | ac_env_GST_CFLAGS_value=$GST_CFLAGS | |
851 | ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set} | |
852 | ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS | |
853 | ac_env_GST_LIBS_set=${GST_LIBS+set} | |
854 | ac_env_GST_LIBS_value=$GST_LIBS | |
855 | ac_cv_env_GST_LIBS_set=${GST_LIBS+set} | |
856 | ac_cv_env_GST_LIBS_value=$GST_LIBS | |
a848cd7e SC |
857 | |
858 | # | |
859 | # Report the --help message. | |
860 | # | |
861 | if test "$ac_init_help" = "long"; then | |
862 | # Omit some internal or obsolete options to make the list less imposing. | |
863 | # This message is too long to be a string in the A/UX 3.1 sh. | |
864 | cat <<_ACEOF | |
dd8df4fc | 865 | \`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems. |
a848cd7e SC |
866 | |
867 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
868 | ||
869 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
870 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
871 | ||
872 | Defaults for the options are specified in brackets. | |
873 | ||
874 | Configuration: | |
875 | -h, --help display this help and exit | |
876 | --help=short display options specific to this package | |
877 | --help=recursive display the short help of all the included packages | |
878 | -V, --version display version information and exit | |
879 | -q, --quiet, --silent do not print \`checking...' messages | |
880 | --cache-file=FILE cache test results in FILE [disabled] | |
881 | -C, --config-cache alias for \`--cache-file=config.cache' | |
882 | -n, --no-create do not create output files | |
883 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
884 | ||
885 | _ACEOF | |
886 | ||
887 | cat <<_ACEOF | |
888 | Installation directories: | |
889 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 890 | [$ac_default_prefix] |
a848cd7e | 891 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 892 | [PREFIX] |
a848cd7e SC |
893 | |
894 | By default, \`make install' will install all the files in | |
895 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
896 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
897 | for instance \`--prefix=\$HOME'. | |
898 | ||
899 | For better control, use the options below. | |
900 | ||
901 | Fine tuning of the installation directories: | |
902 | --bindir=DIR user executables [EPREFIX/bin] | |
903 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
904 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
905 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
906 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
907 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
908 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
909 | --libdir=DIR object code libraries [EPREFIX/lib] | |
910 | --includedir=DIR C header files [PREFIX/include] | |
911 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
912 | --infodir=DIR info documentation [PREFIX/info] | |
913 | --mandir=DIR man documentation [PREFIX/man] | |
914 | _ACEOF | |
915 | ||
916 | cat <<\_ACEOF | |
917 | ||
918 | X features: | |
919 | --x-includes=DIR X include files are in DIR | |
920 | --x-libraries=DIR X library files are in DIR | |
921 | ||
922 | System types: | |
923 | --build=BUILD configure for building on BUILD [guessed] | |
924 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
925 | --target=TARGET configure for building compilers for TARGET [HOST] | |
926 | _ACEOF | |
927 | fi | |
928 | ||
929 | if test -n "$ac_init_help"; then | |
930 | case $ac_init_help in | |
dd8df4fc | 931 | short | recursive ) echo "Configuration of wxWidgets 2.7.0:";; |
a848cd7e SC |
932 | esac |
933 | cat <<\_ACEOF | |
934 | ||
935 | Optional Features: | |
936 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
937 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
938 | --enable-gui use GUI classes | |
77ffb593 JS |
939 | --enable-monolithic build wxWidgets as single library |
940 | --enable-plugins build parts of wxWidgets as loadable components | |
941 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 942 | --enable-nanox use NanoX |
f34ca037 | 943 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
944 | --enable-gpe use GNOME PDA Environment features if possible |
945 | --enable-shared create shared library code | |
946 | --enable-optimise create optimised code | |
947 | --enable-debug same as debug_flag and debug_info | |
948 | --enable-stl use STL for containers | |
949 | --enable-omf use OMF object format | |
950 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
951 | --enable-debug_info create code with debugging information | |
952 | --enable-debug_gdb create code with extra GDB debugging information | |
953 | --enable-debug_cntxt use wxDebugContext | |
954 | --enable-mem_tracing create code with memory tracing | |
955 | --enable-profile create code with profiling information | |
956 | --enable-no_rtti create code without RTTI information | |
957 | --enable-no_exceptions create code without C++ exceptions handling | |
958 | --enable-permissive compile code disregarding strict ANSI | |
959 | --enable-no_deps create code without dependency information | |
95768535 | 960 | --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working) |
dee1a63f MB |
961 | --enable-compat24 enable wxWidgets 2.4 compatibility |
962 | --disable-compat26 disable wxWidgets 2.6 compatibility | |
ffa0583f | 963 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
964 | --enable-intl use internationalization system |
965 | --enable-config use wxConfig (and derived) classes | |
966 | --enable-protocols use wxProtocol and derived classes | |
967 | --enable-ftp use wxFTP (requires wxProtocol | |
968 | --enable-http use wxHTTP (requires wxProtocol | |
969 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
970 | --enable-sockets use socket/network classes | |
971 | --enable-ole use OLE classes (Win32 only) | |
972 | --enable-dataobj use data object classes | |
973 | --enable-ipc use interprocess communication (wxSocket etc.) | |
974 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 975 | --enable-arcstream use wxArchive streams |
eaff0f0d | 976 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 977 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
978 | --enable-cmdline use wxCmdLineParser class |
979 | --enable-datetime use wxDateTime class | |
36b6448c | 980 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
981 | --enable-dialupman use dialup network classes |
982 | --enable-dynlib use wxLibrary class for DLL loading | |
983 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
984 | --enable-exceptions build exception-safe library | |
985 | --enable-ffile use wxFFile class | |
986 | --enable-file use wxFile class | |
987 | --enable-filesystem use virtual file systems classes | |
988 | --enable-fontmap use font encodings conversion classes | |
989 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
990 | --enable-fs_zip use virtual ZIP filesystems | |
991 | --enable-geometry use geometry class | |
992 | --enable-log use logging system | |
993 | --enable-longlong use wxLongLong class | |
994 | --enable-mimetype use wxMimeTypesManager | |
995 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
996 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 997 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 998 | --enable-std_string use standard C++ string classes |
07158944 | 999 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 1000 | --enable-stopwatch use wxStopWatch class |
07158944 | 1001 | --enable-streams use wxStream etc classes |
a848cd7e SC |
1002 | --enable-sysoptions use wxSystemOptions |
1003 | --enable-textbuf use wxTextBuffer class | |
1004 | --enable-textfile use wxTextFile class | |
1005 | --enable-timer use wxTimer class | |
1006 | --enable-unicode compile wxString with Unicode support | |
1007 | --enable-sound use wxSound class | |
3b57de8b | 1008 | --enable-mediactrl use wxMediaCtrl class |
15291213 | 1009 | --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix |
8b6682b9 | 1010 | --enable-printfposparam use wxVsnprintf() which supports positional parameters |
81f90336 | 1011 | --enable-zipstream use wxZip streams |
a848cd7e | 1012 | --enable-url use wxURL class |
ca5c6ac3 | 1013 | --enable-variant use wxVariant class |
a848cd7e SC |
1014 | --enable-protocol use wxProtocol class |
1015 | --enable-protocol-http HTTP support in wxProtocol | |
1016 | --enable-protocol-ftp FTP support in wxProtocol | |
1017 | --enable-protocol-file FILE support in wxProtocol | |
1018 | --enable-threads use threads | |
1019 | --enable-docview use document view architecture | |
1020 | --enable-help use help subsystem | |
1021 | --enable-mshtmlhelp use MS HTML Help (win32) | |
1022 | --enable-html use wxHTML sub-library | |
1023 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 1024 | --enable-xrc use XRC resources sub-library |
3f60522a | 1025 | --enable-aui use AUI docking library |
a848cd7e SC |
1026 | --enable-constraints use layout-constraints system |
1027 | --enable-printarch use printing architecture | |
1028 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 1029 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
1030 | --enable-loggui use standard GUI logger |
1031 | --enable-logwin use wxLogWindow | |
1032 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 1033 | --enable-webkit use wxWebKitCtrl (Mac) |
91dea314 | 1034 | --enable-richtext use wxRichTextCtrl |
f43426c1 | 1035 | --enable-graphics_ctx use graphics context 2D drawing API |
a848cd7e SC |
1036 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
1037 | --enable-prologio not available; see contrib | |
1038 | --enable-resources not available; see contrib | |
1039 | --enable-clipboard use wxClipboard class | |
1040 | --enable-dnd use Drag'n'Drop classes | |
1041 | --enable-metafile use win32 metafiles | |
1042 | --enable-controls use all usual controls | |
1043 | --enable-accel use accelerators | |
1044 | --enable-button use wxButton class | |
1045 | --enable-bmpbutton use wxBitmapButton class | |
95a46303 | 1046 | --enable-bmpcombobox use wxBitmapComboBox class |
a848cd7e SC |
1047 | --enable-calendar use wxCalendarCtrl class |
1048 | --enable-caret use wxCaret class | |
1049 | --enable-checkbox use wxCheckBox class | |
1050 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
1051 | --enable-choice use wxChoice class | |
92bbdbcd | 1052 | --enable-choicebook use wxChoicebook class |
e9263684 | 1053 | --enable-colourpicker use wxColourPickerCtrl class |
a848cd7e | 1054 | --enable-combobox use wxComboBox class |
a57d600f | 1055 | --enable-comboctrl use wxComboCtrl class |
da98e9be | 1056 | --enable-datepick use wxDatePickerCtrl class |
e9263684 | 1057 | --enable-dirpicker use wxDirPickerCtrl class |
a848cd7e | 1058 | --enable-display use wxDisplay class |
e9263684 VZ |
1059 | --enable-filepicker use wxFilePickerCtrl class |
1060 | --enable-fontpicker use wxFontPickerCtrl class | |
a848cd7e SC |
1061 | --enable-gauge use wxGauge class |
1062 | --enable-grid use wxGrid class | |
20e34ecc | 1063 | --enable-dataviewctrl, use wxDataViewCtrl class |
6954625c | 1064 | --enable-hyperlink use wxHyperlinkCtrl class |
a848cd7e SC |
1065 | --enable-imaglist use wxImageList class |
1066 | --enable-listbook use wxListbook class | |
1067 | --enable-listbox use wxListBox class | |
1068 | --enable-listctrl use wxListCtrl class | |
1069 | --enable-notebook use wxNotebook class | |
a57d600f | 1070 | --enable-odcombobox use wxOwnerDrawnComboBox class |
a848cd7e SC |
1071 | --enable-radiobox use wxRadioBox class |
1072 | --enable-radiobtn use wxRadioButton class | |
1073 | --enable-sash use wxSashWindow class | |
1074 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
1075 | --enable-slider use wxSlider class | |
1076 | --enable-spinbtn use wxSpinButton class | |
1077 | --enable-spinctrl use wxSpinCtrl class | |
1078 | --enable-splitter use wxSplitterWindow class | |
1079 | --enable-statbmp use wxStaticBitmap class | |
1080 | --enable-statbox use wxStaticBox class | |
1081 | --enable-statline use wxStaticLine class | |
1082 | --enable-stattext use wxStaticText class | |
1083 | --enable-statusbar use wxStatusBar class | |
1084 | --enable-tabdialog use wxTabControl class | |
1085 | --enable-textctrl use wxTextCtrl class | |
1086 | --enable-togglebtn use wxToggleButton class | |
1087 | --enable-toolbar use wxToolBar class | |
1088 | --enable-tbarnative use native wxToolBar class | |
0093c2fc | 1089 | --enable-treebook use wxTreebook class |
5ec3bc43 | 1090 | --enable-toolbook use wxToolbook class |
a848cd7e SC |
1091 | --enable-treectrl use wxTreeCtrl class |
1092 | --enable-tipwindow use wxTipWindow class | |
1093 | --enable-popupwin use wxPopUpWindow class | |
1094 | --enable-commondlg use all common dialogs | |
1095 | --enable-choicedlg use wxChoiceDialog | |
1096 | --enable-coldlg use wxColourDialog | |
1097 | --enable-filedlg use wxFileDialog | |
1098 | --enable-finddlg use wxFindReplaceDialog | |
1099 | --enable-fontdlg use wxFontDialog | |
1100 | --enable-dirdlg use wxDirDialog | |
1101 | --enable-msgdlg use wxMessageDialog | |
1102 | --enable-numberdlg use wxNumberEntryDialog | |
1103 | --enable-splash use wxSplashScreen | |
1104 | --enable-textdlg use wxTextDialog | |
1105 | --enable-tipdlg use startup tips | |
1106 | --enable-progressdlg use wxProgressDialog | |
1107 | --enable-wizarddlg use wxWizard | |
1108 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1109 | --enable-miniframe use wxMiniFrame class | |
1110 | --enable-tooltips use wxToolTip class | |
1111 | --enable-splines use spline drawing code | |
fbe2ca43 | 1112 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1113 | --enable-validators use wxValidator and derived classes |
1114 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1115 | --enable-joystick use wxJoystick |
38b4a946 | 1116 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1117 | --enable-dragimage use wxDragImage |
1118 | --enable-accessibility enable accessibility support | |
38b4a946 | 1119 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1120 | --enable-palette use wxPalette class |
1121 | --enable-image use wxImage class | |
1122 | --enable-gif use gif images (GIF file format) | |
1123 | --enable-pcx use pcx images (PCX file format) | |
1124 | --enable-iff use iff images (IFF file format) | |
1125 | --enable-pnm use pnm images (PNM file format) | |
1126 | --enable-xpm use xpm images (XPM file format) | |
1127 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1128 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1129 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1130 | --disable-largefile omit support for large files | |
1131 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1132 | --disable-gtktest Do not try to compile and run a test GTK program | |
1133 | --disable-sdltest Do not try to compile and run a test SDL program | |
1134 | --enable-omf use OMF object format (OS/2) | |
f10e38c4 VZ |
1135 | --disable-dependency-tracking |
1136 | don't use dependency tracking even if the compiler | |
1137 | can | |
ebee3cd0 VS |
1138 | --disable-precomp-headers |
1139 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1140 | |
1141 | Optional Packages: | |
1142 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1143 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1144 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1145 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1146 | --with-motif use Motif/Lesstif |
1147 | --with-mac use Mac OS X | |
1148 | --with-cocoa use Cocoa | |
1149 | --with-wine use Wine | |
1150 | --with-msw use MS-Windows | |
1151 | --with-pm use OS/2 Presentation Manager | |
1152 | --with-mgl use SciTech MGL | |
b3c86150 | 1153 | --with-directfb use DirectFB |
a848cd7e SC |
1154 | --with-microwin use MicroWindows |
1155 | --with-x11 use X11 | |
1156 | --with-libpng use libpng (PNG image format) | |
1157 | --with-libjpeg use libjpeg (JPEG file format) | |
1158 | --with-libtiff use libtiff (TIFF file format) | |
1159 | --with-libxpm use libxpm (XPM file format) | |
1160 | --with-libmspack use libmspack (CHM help files loading) | |
1161 | --with-sdl use SDL for audio on Unix | |
2b850ae1 RR |
1162 | --with-gnomeprint use GNOME print for printing under GNOME |
1163 | --with-gnomevfs use GNOME VFS for associating MIME types | |
3565d135 | 1164 | --with-hildon use Hildon framework for Nokia 770 |
a848cd7e | 1165 | --with-opengl use OpenGL (or Mesa) |
4353a8df | 1166 | --with-themes=all|list use only the specified comma-separated list of wxUniversal themes |
a848cd7e SC |
1167 | --with-dmalloc use dmalloc library (http://dmalloc.com/) |
1168 | --with-regex enable support for wxRegEx class | |
1169 | --with-zlib use zlib for LZW compression | |
1170 | --with-odbc use the IODBC and wxODBC classes | |
1171 | --with-expat enable XML support using expat parser | |
ceec2216 | 1172 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1173 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1174 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1175 | --with-x use the X Window System | |
1176 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1177 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1178 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1179 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1180 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1181 | ||
1182 | Some influential environment variables: | |
dcc1b6ad VS |
1183 | CC C compiler command |
1184 | CFLAGS C compiler flags | |
1185 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1186 | nonstandard directory <lib dir> | |
1187 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1188 | headers in a nonstandard directory <include dir> | |
1189 | CPP C preprocessor | |
1190 | CXX C++ compiler command | |
1191 | CXXFLAGS C++ compiler flags | |
1192 | CXXCPP C++ preprocessor | |
3ecd9f92 | 1193 | PKG_CONFIG path to pkg-config utility |
b3c86150 VS |
1194 | DIRECTFB_CFLAGS |
1195 | C compiler flags for DIRECTFB, overriding pkg-config | |
1196 | DIRECTFB_LIBS | |
1197 | linker flags for DIRECTFB, overriding pkg-config | |
3ecd9f92 MW |
1198 | PANGOX_CFLAGS |
1199 | C compiler flags for PANGOX, overriding pkg-config | |
1200 | PANGOX_LIBS linker flags for PANGOX, overriding pkg-config | |
1201 | PANGOFT2_CFLAGS | |
1202 | C compiler flags for PANGOFT2, overriding pkg-config | |
1203 | PANGOFT2_LIBS | |
1204 | linker flags for PANGOFT2, overriding pkg-config | |
1205 | PANGOXFT_CFLAGS | |
1206 | C compiler flags for PANGOXFT, overriding pkg-config | |
1207 | PANGOXFT_LIBS | |
1208 | linker flags for PANGOXFT, overriding pkg-config | |
1209 | LIBGNOMEPRINTUI_CFLAGS | |
1210 | C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config | |
1211 | LIBGNOMEPRINTUI_LIBS | |
1212 | linker flags for LIBGNOMEPRINTUI, overriding pkg-config | |
1213 | GNOMEVFS_CFLAGS | |
1214 | C compiler flags for GNOMEVFS, overriding pkg-config | |
1215 | GNOMEVFS_LIBS | |
1216 | linker flags for GNOMEVFS, overriding pkg-config | |
1217 | HILDON_CFLAGS | |
1218 | C compiler flags for HILDON, overriding pkg-config | |
1219 | HILDON_LIBS linker flags for HILDON, overriding pkg-config | |
1220 | GST_CFLAGS C compiler flags for GST, overriding pkg-config | |
1221 | GST_LIBS linker flags for GST, overriding pkg-config | |
a848cd7e SC |
1222 | |
1223 | Use these variables to override the choices made by `configure' or to help | |
1224 | it to find libraries and programs with nonstandard names/locations. | |
1225 | ||
77ffb593 | 1226 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1227 | _ACEOF |
1228 | fi | |
1229 | ||
1230 | if test "$ac_init_help" = "recursive"; then | |
1231 | # If there are subdirs, report their specific --help. | |
1232 | ac_popdir=`pwd` | |
1233 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1234 | test -d $ac_dir || continue | |
1235 | ac_builddir=. | |
1236 | ||
1237 | if test "$ac_dir" != .; then | |
1238 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1239 | # A "../" for each directory in $ac_dir_suffix. | |
1240 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1241 | else | |
1242 | ac_dir_suffix= ac_top_builddir= | |
1243 | fi | |
1244 | ||
1245 | case $srcdir in | |
1246 | .) # No --srcdir option. We are building in place. | |
1247 | ac_srcdir=. | |
1248 | if test -z "$ac_top_builddir"; then | |
1249 | ac_top_srcdir=. | |
1250 | else | |
1251 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1252 | fi ;; | |
1253 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1254 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1255 | ac_top_srcdir=$srcdir ;; | |
1256 | *) # Relative path. | |
1257 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1258 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1259 | esac | |
ac1cb8d3 VS |
1260 | |
1261 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1262 | # the directories may not exist. | |
1263 | case `pwd` in | |
1264 | .) ac_abs_builddir="$ac_dir";; | |
1265 | *) | |
1266 | case "$ac_dir" in | |
1267 | .) ac_abs_builddir=`pwd`;; | |
1268 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1269 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1270 | esac;; | |
1271 | esac | |
1272 | case $ac_abs_builddir in | |
1273 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1274 | *) | |
1275 | case ${ac_top_builddir}. in | |
1276 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1277 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1278 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1279 | esac;; | |
1280 | esac | |
1281 | case $ac_abs_builddir in | |
1282 | .) ac_abs_srcdir=$ac_srcdir;; | |
1283 | *) | |
1284 | case $ac_srcdir in | |
1285 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1286 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1287 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1288 | esac;; | |
1289 | esac | |
1290 | case $ac_abs_builddir in | |
1291 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1292 | *) | |
1293 | case $ac_top_srcdir in | |
1294 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1295 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1296 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1297 | esac;; | |
1298 | esac | |
a848cd7e SC |
1299 | |
1300 | cd $ac_dir | |
1301 | # Check for guested configure; otherwise get Cygnus style configure. | |
1302 | if test -f $ac_srcdir/configure.gnu; then | |
1303 | echo | |
1304 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1305 | elif test -f $ac_srcdir/configure; then | |
1306 | echo | |
1307 | $SHELL $ac_srcdir/configure --help=recursive | |
1308 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1309 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1310 | echo |
1311 | $ac_configure --help | |
1312 | else | |
1313 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1314 | fi | |
ca5c6ac3 | 1315 | cd "$ac_popdir" |
a848cd7e SC |
1316 | done |
1317 | fi | |
1318 | ||
1319 | test -n "$ac_init_help" && exit 0 | |
1320 | if $ac_init_version; then | |
1321 | cat <<\_ACEOF | |
dd8df4fc | 1322 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1323 | generated by GNU Autoconf 2.59 |
a848cd7e | 1324 | |
ac1cb8d3 | 1325 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1326 | This configure script is free software; the Free Software Foundation |
1327 | gives unlimited permission to copy, distribute and modify it. | |
1328 | _ACEOF | |
1329 | exit 0 | |
1330 | fi | |
1331 | exec 5>config.log | |
1332 | cat >&5 <<_ACEOF | |
1333 | This file contains any messages produced by compilers while | |
1334 | running configure, to aid debugging if configure makes a mistake. | |
1335 | ||
dd8df4fc | 1336 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1337 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1338 | |
1339 | $ $0 $@ | |
1340 | ||
1341 | _ACEOF | |
1342 | { | |
1343 | cat <<_ASUNAME | |
1344 | ## --------- ## | |
1345 | ## Platform. ## | |
1346 | ## --------- ## | |
1347 | ||
1348 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1349 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1350 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1351 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1352 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1353 | ||
1354 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1355 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1356 | ||
1357 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1358 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1359 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1360 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1361 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1362 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1363 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1364 | ||
1365 | _ASUNAME | |
1366 | ||
1367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1368 | for as_dir in $PATH | |
1369 | do | |
1370 | IFS=$as_save_IFS | |
1371 | test -z "$as_dir" && as_dir=. | |
1372 | echo "PATH: $as_dir" | |
1373 | done | |
1374 | ||
1375 | } >&5 | |
1376 | ||
1377 | cat >&5 <<_ACEOF | |
1378 | ||
1379 | ||
1380 | ## ----------- ## | |
1381 | ## Core tests. ## | |
1382 | ## ----------- ## | |
1383 | ||
1384 | _ACEOF | |
1385 | ||
1386 | ||
1387 | # Keep a trace of the command line. | |
1388 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1389 | # Strip out --silent because we don't want to record it for future runs. | |
1390 | # Also quote any args containing shell meta-characters. | |
1391 | # Make two passes to allow for proper duplicate-argument suppression. | |
1392 | ac_configure_args= | |
1393 | ac_configure_args0= | |
1394 | ac_configure_args1= | |
1395 | ac_sep= | |
1396 | ac_must_keep_next=false | |
1397 | for ac_pass in 1 2 | |
1398 | do | |
1399 | for ac_arg | |
1400 | do | |
1401 | case $ac_arg in | |
1402 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1403 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1404 | | -silent | --silent | --silen | --sile | --sil) | |
1405 | continue ;; | |
1406 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1407 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1408 | esac | |
1409 | case $ac_pass in | |
1410 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1411 | 2) | |
1412 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1413 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1414 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1415 | else |
ac1cb8d3 VS |
1416 | case $ac_arg in |
1417 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1418 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1419 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1420 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1421 | case "$ac_configure_args0 " in | |
1422 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1423 | esac | |
1424 | ;; | |
1425 | -* ) ac_must_keep_next=true ;; | |
1426 | esac | |
a848cd7e SC |
1427 | fi |
1428 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1429 | # Get rid of the leading space. | |
1430 | ac_sep=" " | |
1431 | ;; | |
1432 | esac | |
1433 | done | |
1434 | done | |
1435 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1436 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1437 | ||
1438 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1439 | # config.log. We remove comments because anyway the quotes in there | |
1440 | # would cause problems or look ugly. | |
1441 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1442 | # such as our DU 5.0 friend, will then `close' the trap. | |
1443 | trap 'exit_status=$? | |
1444 | # Save into config.log some information that might help in debugging. | |
1445 | { | |
1446 | echo | |
1447 | ||
1448 | cat <<\_ASBOX | |
1449 | ## ---------------- ## | |
1450 | ## Cache variables. ## | |
1451 | ## ---------------- ## | |
1452 | _ASBOX | |
1453 | echo | |
1454 | # The following way of writing the cache mishandles newlines in values, | |
1455 | { | |
1456 | (set) 2>&1 | | |
1457 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1458 | *ac_space=\ *) | |
1459 | sed -n \ | |
ac1cb8d3 VS |
1460 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1461 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1462 | ;; |
1463 | *) | |
1464 | sed -n \ | |
ac1cb8d3 | 1465 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1466 | ;; |
1467 | esac; | |
1468 | } | |
1469 | echo | |
1470 | ||
1471 | cat <<\_ASBOX | |
1472 | ## ----------------- ## | |
1473 | ## Output variables. ## | |
1474 | ## ----------------- ## | |
1475 | _ASBOX | |
1476 | echo | |
1477 | for ac_var in $ac_subst_vars | |
1478 | do | |
1479 | eval ac_val=$`echo $ac_var` | |
1480 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1481 | done | sort | |
1482 | echo | |
1483 | ||
1484 | if test -n "$ac_subst_files"; then | |
1485 | cat <<\_ASBOX | |
1486 | ## ------------- ## | |
1487 | ## Output files. ## | |
1488 | ## ------------- ## | |
1489 | _ASBOX | |
1490 | echo | |
1491 | for ac_var in $ac_subst_files | |
1492 | do | |
1493 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1494 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1495 | done | sort |
1496 | echo | |
1497 | fi | |
1498 | ||
1499 | if test -s confdefs.h; then | |
1500 | cat <<\_ASBOX | |
1501 | ## ----------- ## | |
1502 | ## confdefs.h. ## | |
1503 | ## ----------- ## | |
1504 | _ASBOX | |
1505 | echo | |
1506 | sed "/^$/d" confdefs.h | sort | |
1507 | echo | |
1508 | fi | |
1509 | test "$ac_signal" != 0 && | |
1510 | echo "$as_me: caught signal $ac_signal" | |
1511 | echo "$as_me: exit $exit_status" | |
1512 | } >&5 | |
ac1cb8d3 | 1513 | rm -f core *.core && |
a848cd7e SC |
1514 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1515 | exit $exit_status | |
1516 | ' 0 | |
1517 | for ac_signal in 1 2 13 15; do | |
1518 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1519 | done | |
1520 | ac_signal=0 | |
1521 | ||
1522 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1523 | rm -rf conftest* confdefs.h | |
1524 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1525 | echo >confdefs.h | |
1526 | ||
1527 | # Predefined preprocessor variables. | |
1528 | ||
1529 | cat >>confdefs.h <<_ACEOF | |
1530 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1531 | _ACEOF | |
1532 | ||
1533 | ||
1534 | cat >>confdefs.h <<_ACEOF | |
1535 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1536 | _ACEOF | |
1537 | ||
1538 | ||
1539 | cat >>confdefs.h <<_ACEOF | |
1540 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1541 | _ACEOF | |
1542 | ||
1543 | ||
1544 | cat >>confdefs.h <<_ACEOF | |
1545 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1546 | _ACEOF | |
1547 | ||
1548 | ||
1549 | cat >>confdefs.h <<_ACEOF | |
1550 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1551 | _ACEOF | |
1552 | ||
1553 | ||
1554 | # Let the site file select an alternate cache file if it wants to. | |
1555 | # Prefer explicitly selected file to automatically selected ones. | |
1556 | if test -z "$CONFIG_SITE"; then | |
1557 | if test "x$prefix" != xNONE; then | |
1558 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1559 | else | |
1560 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1561 | fi | |
1562 | fi | |
1563 | for ac_site_file in $CONFIG_SITE; do | |
1564 | if test -r "$ac_site_file"; then | |
1565 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1566 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1567 | sed 's/^/| /' "$ac_site_file" >&5 | |
1568 | . "$ac_site_file" | |
1569 | fi | |
1570 | done | |
1571 | ||
1572 | if test -r "$cache_file"; then | |
1573 | # Some versions of bash will fail to source /dev/null (special | |
1574 | # files actually), so we avoid doing that. | |
1575 | if test -f "$cache_file"; then | |
1576 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1577 | echo "$as_me: loading cache $cache_file" >&6;} | |
1578 | case $cache_file in | |
1579 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1580 | *) . ./$cache_file;; | |
1581 | esac | |
1582 | fi | |
1583 | else | |
1584 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1585 | echo "$as_me: creating cache $cache_file" >&6;} | |
1586 | >$cache_file | |
1587 | fi | |
1588 | ||
1589 | # Check that the precious variables saved in the cache have kept the same | |
1590 | # value. | |
1591 | ac_cache_corrupted=false | |
1592 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1593 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1594 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1595 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1596 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1597 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1598 | case $ac_old_set,$ac_new_set in | |
1599 | set,) | |
1600 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1601 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1602 | ac_cache_corrupted=: ;; | |
1603 | ,set) | |
1604 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1605 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1606 | ac_cache_corrupted=: ;; | |
1607 | ,);; | |
1608 | *) | |
1609 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1610 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1611 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1612 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1613 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1614 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1615 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1616 | ac_cache_corrupted=: |
a848cd7e SC |
1617 | fi;; |
1618 | esac | |
1619 | # Pass precious variables to config.status. | |
1620 | if test "$ac_new_set" = set; then | |
1621 | case $ac_new_val in | |
1622 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1623 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1624 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1625 | esac | |
1626 | case " $ac_configure_args " in | |
1627 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1628 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1629 | esac | |
1630 | fi | |
1631 | done | |
1632 | if $ac_cache_corrupted; then | |
1633 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1634 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1635 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1636 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1637 | { (exit 1); exit 1; }; } | |
1638 | fi | |
1639 | ||
1640 | ac_ext=c | |
1641 | ac_cpp='$CPP $CPPFLAGS' | |
1642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1645 | ||
1646 | ||
1647 | ||
1648 | ||
1649 | ||
1650 | ||
1651 | ||
1652 | ||
1653 | ||
1654 | ||
1655 | ||
1656 | ||
1657 | ||
1658 | ||
1659 | ||
1660 | ||
1661 | ||
1662 | ||
1663 | ||
1664 | ||
1665 | ||
1666 | ||
1667 | ||
1668 | ||
1669 | ||
1670 | ||
1671 | ||
1672 | ||
1673 | ||
1674 | ||
1675 | ac_aux_dir= | |
1676 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1677 | if test -f $ac_dir/install-sh; then | |
1678 | ac_aux_dir=$ac_dir | |
1679 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1680 | break | |
1681 | elif test -f $ac_dir/install.sh; then | |
1682 | ac_aux_dir=$ac_dir | |
1683 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1684 | break | |
1685 | elif test -f $ac_dir/shtool; then | |
1686 | ac_aux_dir=$ac_dir | |
1687 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1688 | break | |
1689 | fi | |
1690 | done | |
1691 | if test -z "$ac_aux_dir"; then | |
1692 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1693 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1694 | { (exit 1); exit 1; }; } | |
1695 | fi | |
1696 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1697 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1698 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1699 | ||
1700 | # Make sure we can run config.sub. | |
1701 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1702 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1703 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1704 | { (exit 1); exit 1; }; } | |
1705 | ||
1706 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1707 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1708 | if test "${ac_cv_build+set}" = set; then | |
1709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1710 | else | |
1711 | ac_cv_build_alias=$build_alias | |
1712 | test -z "$ac_cv_build_alias" && | |
1713 | ac_cv_build_alias=`$ac_config_guess` | |
1714 | test -z "$ac_cv_build_alias" && | |
1715 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1716 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1717 | { (exit 1); exit 1; }; } | |
1718 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1719 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1720 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1721 | { (exit 1); exit 1; }; } | |
1722 | ||
1723 | fi | |
1724 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1725 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1726 | build=$ac_cv_build | |
1727 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1728 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1729 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1730 | ||
1731 | ||
1732 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1733 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1734 | if test "${ac_cv_host+set}" = set; then | |
1735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1736 | else | |
1737 | ac_cv_host_alias=$host_alias | |
1738 | test -z "$ac_cv_host_alias" && | |
1739 | ac_cv_host_alias=$ac_cv_build_alias | |
1740 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1741 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1742 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1743 | { (exit 1); exit 1; }; } | |
1744 | ||
1745 | fi | |
1746 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1747 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1748 | host=$ac_cv_host | |
1749 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1750 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1751 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1752 | ||
1753 | ||
1754 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1755 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1756 | if test "${ac_cv_target+set}" = set; then | |
1757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1758 | else | |
1759 | ac_cv_target_alias=$target_alias | |
1760 | test "x$ac_cv_target_alias" = "x" && | |
1761 | ac_cv_target_alias=$ac_cv_host_alias | |
1762 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1763 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1764 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1765 | { (exit 1); exit 1; }; } | |
1766 | ||
1767 | fi | |
1768 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1769 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1770 | target=$ac_cv_target | |
1771 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1772 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1773 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1774 | ||
1775 | ||
1776 | # The aliases save the names the user supplied, while $host etc. | |
1777 | # will get canonicalized. | |
1778 | test -n "$target_alias" && | |
1779 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1780 | NONENONEs,x,x, && | |
1781 | program_prefix=${target_alias}- | |
1782 | ||
1783 | ||
1784 | ||
ceec2216 | 1785 | wx_major_version_number=2 |
dd8df4fc VZ |
1786 | wx_minor_version_number=7 |
1787 | wx_release_number=0 | |
5b5d4ef2 | 1788 | wx_subrelease_number=1 |
a848cd7e | 1789 | |
ceec2216 RL |
1790 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1791 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1792 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1793 | |
ceec2216 | 1794 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1795 | |
a848cd7e SC |
1796 | |
1797 | ||
1798 | ||
1799 | USE_UNIX=1 | |
1800 | USE_OS2=0 | |
1801 | USE_WIN32=0 | |
1802 | USE_DOS=0 | |
1803 | USE_BEOS=0 | |
1804 | USE_MAC=0 | |
1805 | ||
1806 | USE_AIX= | |
1807 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1808 | USE_GNU= USE_HPUX= | |
1809 | USE_LINUX= | |
1810 | USE_NETBSD= | |
1811 | USE_OPENBSD= | |
1812 | USE_OSF= USE_SGI= | |
1813 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1814 | USE_ULTRIX= | |
1815 | USE_UNIXWARE= | |
1816 | ||
1817 | USE_ALPHA= | |
1818 | ||
1819 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1820 | ||
b3c86150 | 1821 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB" |
a848cd7e SC |
1822 | |
1823 | DEFAULT_wxUSE_COCOA=0 | |
1824 | DEFAULT_wxUSE_GTK=0 | |
1825 | DEFAULT_wxUSE_MAC=0 | |
1826 | DEFAULT_wxUSE_MGL=0 | |
1827 | DEFAULT_wxUSE_MICROWIN=0 | |
1828 | DEFAULT_wxUSE_MOTIF=0 | |
1829 | DEFAULT_wxUSE_MSW=0 | |
1830 | DEFAULT_wxUSE_PM=0 | |
1831 | DEFAULT_wxUSE_X11=0 | |
b3c86150 | 1832 | DEFAULT_wxUSE_DFB=0 |
a848cd7e SC |
1833 | |
1834 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1835 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1836 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1837 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1838 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1839 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1840 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1841 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1842 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
b3c86150 | 1843 | DEFAULT_DEFAULT_wxUSE_DFB=0 |
a848cd7e SC |
1844 | |
1845 | PROGRAM_EXT= | |
1846 | SO_SUFFIX=so | |
1847 | SAMPLES_RPATH_FLAG= | |
1848 | SAMPLES_RPATH_POSTLINK= | |
1849 | ||
a03b8b04 RD |
1850 | DEFAULT_STD_FLAG=yes |
1851 | ||
a848cd7e SC |
1852 | case "${host}" in |
1853 | *-hp-hpux* ) | |
1854 | USE_HPUX=1 | |
1855 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1856 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1857 | SO_SUFFIX=sl | |
1858 | cat >>confdefs.h <<\_ACEOF | |
1859 | #define __HPUX__ 1 | |
1860 | _ACEOF | |
1861 | ||
2eef8513 | 1862 | |
c92ad099 | 1863 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
1864 | ;; |
1865 | *-*-linux* ) | |
1866 | USE_LINUX=1 | |
1867 | cat >>confdefs.h <<\_ACEOF | |
1868 | #define __LINUX__ 1 | |
1869 | _ACEOF | |
1870 | ||
1871 | TMP=`uname -m` | |
1872 | if test "x$TMP" = "xalpha"; then | |
1873 | USE_ALPHA=1 | |
1874 | cat >>confdefs.h <<\_ACEOF | |
1875 | #define __ALPHA__ 1 | |
1876 | _ACEOF | |
1877 | ||
1878 | fi | |
1879 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1880 | ;; | |
1881 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1882 | USE_GNU=1 | |
1883 | TMP=`uname -m` | |
1884 | if test "x$TMP" = "xalpha"; then | |
1885 | USE_ALPHA=1 | |
1886 | cat >>confdefs.h <<\_ACEOF | |
1887 | #define __ALPHA__ 1 | |
1888 | _ACEOF | |
1889 | ||
1890 | fi | |
1891 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1892 | ;; | |
1893 | *-*-irix5* | *-*-irix6* ) | |
1894 | USE_SGI=1 | |
1895 | USE_SVR4=1 | |
1896 | cat >>confdefs.h <<\_ACEOF | |
1897 | #define __SGI__ 1 | |
1898 | _ACEOF | |
1899 | ||
1900 | cat >>confdefs.h <<\_ACEOF | |
1901 | #define __SVR4__ 1 | |
1902 | _ACEOF | |
1903 | ||
1904 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1905 | ;; | |
1906 | *-*-solaris2* ) | |
1907 | USE_SUN=1 | |
1908 | USE_SOLARIS=1 | |
1909 | USE_SVR4=1 | |
1910 | cat >>confdefs.h <<\_ACEOF | |
1911 | #define __SUN__ 1 | |
1912 | _ACEOF | |
1913 | ||
1914 | cat >>confdefs.h <<\_ACEOF | |
1915 | #define __SOLARIS__ 1 | |
1916 | _ACEOF | |
1917 | ||
1918 | cat >>confdefs.h <<\_ACEOF | |
1919 | #define __SVR4__ 1 | |
1920 | _ACEOF | |
1921 | ||
1922 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1923 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1924 | ;; | |
1925 | *-*-sunos4* ) | |
1926 | USE_SUN=1 | |
1927 | USE_SUNOS=1 | |
1928 | USE_BSD=1 | |
1929 | cat >>confdefs.h <<\_ACEOF | |
1930 | #define __SUN__ 1 | |
1931 | _ACEOF | |
1932 | ||
1933 | cat >>confdefs.h <<\_ACEOF | |
1934 | #define __SUNOS__ 1 | |
1935 | _ACEOF | |
1936 | ||
1937 | cat >>confdefs.h <<\_ACEOF | |
1938 | #define __BSD__ 1 | |
1939 | _ACEOF | |
1940 | ||
1941 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1942 | ;; | |
1943 | *-*-freebsd*) | |
1944 | USE_BSD=1 | |
1945 | USE_FREEBSD=1 | |
1946 | cat >>confdefs.h <<\_ACEOF | |
1947 | #define __FREEBSD__ 1 | |
1948 | _ACEOF | |
1949 | ||
1950 | cat >>confdefs.h <<\_ACEOF | |
1951 | #define __BSD__ 1 | |
1952 | _ACEOF | |
1953 | ||
1954 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1955 | ;; | |
c9a66001 | 1956 | *-*-openbsd*|*-*-mirbsd*) |
a848cd7e SC |
1957 | USE_BSD=1 |
1958 | USE_OPENBSD=1 | |
1959 | cat >>confdefs.h <<\_ACEOF | |
1960 | #define __OPENBSD__ 1 | |
1961 | _ACEOF | |
1962 | ||
1963 | cat >>confdefs.h <<\_ACEOF | |
1964 | #define __BSD__ 1 | |
1965 | _ACEOF | |
1966 | ||
1967 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1968 | ;; | |
1969 | *-*-netbsd*) | |
1970 | USE_BSD=1 | |
1971 | USE_NETBSD=1 | |
1972 | cat >>confdefs.h <<\_ACEOF | |
1973 | #define __NETBSD__ 1 | |
1974 | _ACEOF | |
1975 | ||
1976 | cat >>confdefs.h <<\_ACEOF | |
1977 | #define __BSD__ 1 | |
1978 | _ACEOF | |
1979 | ||
1980 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
728258f4 | 1981 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
def7c04a | 1982 | |
def7c04a | 1983 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" |
a848cd7e SC |
1984 | ;; |
1985 | *-*-osf* ) | |
1986 | USE_ALPHA=1 | |
1987 | USE_OSF=1 | |
1988 | cat >>confdefs.h <<\_ACEOF | |
1989 | #define __ALPHA__ 1 | |
1990 | _ACEOF | |
1991 | ||
1992 | cat >>confdefs.h <<\_ACEOF | |
1993 | #define __OSF__ 1 | |
1994 | _ACEOF | |
1995 | ||
1996 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1997 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1998 | ;; | |
1999 | *-*-dgux5* ) | |
2000 | USE_ALPHA=1 | |
2001 | USE_SVR4=1 | |
2002 | cat >>confdefs.h <<\_ACEOF | |
2003 | #define __ALPHA__ 1 | |
2004 | _ACEOF | |
2005 | ||
2006 | cat >>confdefs.h <<\_ACEOF | |
2007 | #define __SVR4__ 1 | |
2008 | _ACEOF | |
2009 | ||
2010 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2011 | ;; | |
2012 | *-*-sysv5* ) | |
2013 | USE_SYSV=1 | |
2014 | USE_SVR4=1 | |
2015 | cat >>confdefs.h <<\_ACEOF | |
2016 | #define __SYSV__ 1 | |
2017 | _ACEOF | |
2018 | ||
2019 | cat >>confdefs.h <<\_ACEOF | |
2020 | #define __SVR4__ 1 | |
2021 | _ACEOF | |
2022 | ||
2023 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2024 | ;; | |
2025 | *-*-aix* ) | |
2026 | USE_AIX=1 | |
2027 | USE_SYSV=1 | |
2028 | USE_SVR4=1 | |
2029 | SO_SUFFIX=a | |
2030 | cat >>confdefs.h <<\_ACEOF | |
2031 | #define __AIX__ 1 | |
2032 | _ACEOF | |
2033 | ||
2034 | cat >>confdefs.h <<\_ACEOF | |
2035 | #define __SYSV__ 1 | |
2036 | _ACEOF | |
2037 | ||
2038 | cat >>confdefs.h <<\_ACEOF | |
2039 | #define __SVR4__ 1 | |
2040 | _ACEOF | |
2041 | ||
2042 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
2043 | ;; | |
2044 | ||
2045 | *-*-*UnixWare*) | |
2046 | USE_SYSV=1 | |
2047 | USE_SVR4=1 | |
2048 | USE_UNIXWARE=1 | |
2049 | cat >>confdefs.h <<\_ACEOF | |
2050 | #define __UNIXWARE__ 1 | |
2051 | _ACEOF | |
2052 | ||
2053 | ;; | |
2054 | ||
2055 | *-*-cygwin* | *-*-mingw32* ) | |
2056 | SO_SUFFIX=dll | |
2057 | PROGRAM_EXT=".exe" | |
a848cd7e | 2058 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 2059 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
2060 | ;; |
2061 | ||
2062 | *-pc-msdosdjgpp ) | |
2063 | USE_UNIX=0 | |
2064 | USE_DOS=1 | |
2065 | cat >>confdefs.h <<\_ACEOF | |
2066 | #define __DOS__ 1 | |
2067 | _ACEOF | |
2068 | ||
2069 | PROGRAM_EXT=".exe" | |
2070 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
2071 | ;; |
2072 | ||
2073 | *-pc-os2_emx | *-pc-os2-emx ) | |
2074 | cat >>confdefs.h <<\_ACEOF | |
2075 | #define __EMX__ 1 | |
2076 | _ACEOF | |
2077 | ||
2078 | USE_OS2=1 | |
2079 | cat >>confdefs.h <<\_ACEOF | |
2080 | #define __OS2__ 1 | |
2081 | _ACEOF | |
2082 | ||
2083 | PROGRAM_EXT=".exe" | |
2084 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
2085 | CXX=gcc | |
2086 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
2087 | ac_executable_extensions=".exe" | |
2088 | export ac_executable_extensions | |
2089 | ac_save_IFS="$IFS" | |
2090 | IFS='\\' | |
2091 | ac_TEMP_PATH= | |
2092 | for ac_dir in $PATH; do | |
2093 | IFS=$ac_save_IFS | |
2094 | if test -z "$ac_TEMP_PATH"; then | |
2095 | ac_TEMP_PATH="$ac_dir" | |
2096 | else | |
2097 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
2098 | fi | |
2099 | done | |
2100 | export PATH="$ac_TEMP_PATH" | |
2101 | unset ac_TEMP_PATH | |
a03b8b04 | 2102 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
2103 | ;; |
2104 | ||
cfda0ea8 | 2105 | *-*-darwin* ) |
a848cd7e SC |
2106 | USE_BSD=1 |
2107 | USE_DARWIN=1 | |
2108 | SO_SUFFIX=dylib | |
2109 | cat >>confdefs.h <<\_ACEOF | |
2110 | #define __BSD__ 1 | |
2111 | _ACEOF | |
2112 | ||
2113 | cat >>confdefs.h <<\_ACEOF | |
2114 | #define __DARWIN__ 1 | |
a848cd7e SC |
2115 | _ACEOF |
2116 | ||
2117 | cat >>confdefs.h <<\_ACEOF | |
2118 | #define TARGET_CARBON 1 | |
2119 | _ACEOF | |
2120 | ||
2121 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2122 | DEFAULT_STD_FLAG=no |
a848cd7e | 2123 | ;; |
1e9e8aba DE |
2124 | powerpc-apple-macos* ) |
2125 | USE_UNIX=0 | |
2126 | ac_cv_c_bigendian=yes | |
2127 | SO_SUFFIX=shlib | |
2128 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2129 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2130 | ;; |
a848cd7e SC |
2131 | |
2132 | *-*-beos* ) | |
2133 | USE_BEOS=1 | |
2134 | cat >>confdefs.h <<\_ACEOF | |
2135 | #define __BEOS__ 1 | |
2136 | _ACEOF | |
2137 | ||
2138 | ;; | |
2139 | ||
2140 | *) | |
c9a66001 VZ |
2141 | { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5 |
2142 | echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;} | |
2143 | { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5 | |
2144 | echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;} | |
5acfd58d MW |
2145 | |
2146 | DEFAULT_DEFAULT_wxUSE_X11=1 | |
2147 | DEFAULT_wxUSE_SHARED=no | |
a848cd7e SC |
2148 | esac |
2149 | ||
2150 | ||
2151 | ||
2152 | ||
2153 | wx_arg_cache_file="configarg.cache" | |
2154 | echo "loading argument cache $wx_arg_cache_file" | |
2155 | rm -f ${wx_arg_cache_file}.tmp | |
2156 | touch ${wx_arg_cache_file}.tmp | |
2157 | touch ${wx_arg_cache_file} | |
2158 | ||
2159 | ||
2160 | DEBUG_CONFIGURE=0 | |
2161 | if test $DEBUG_CONFIGURE = 1; then | |
2162 | DEFAULT_wxUSE_UNIVERSAL=no | |
2163 | DEFAULT_wxUSE_STL=no | |
2164 | ||
2165 | DEFAULT_wxUSE_NANOX=no | |
2166 | ||
2167 | DEFAULT_wxUSE_THREADS=yes | |
2168 | ||
5acfd58d | 2169 | DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes} |
a848cd7e SC |
2170 | DEFAULT_wxUSE_OPTIMISE=no |
2171 | DEFAULT_wxUSE_PROFILE=no | |
2172 | DEFAULT_wxUSE_NO_DEPS=no | |
2173 | DEFAULT_wxUSE_NO_RTTI=no | |
2174 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2175 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2176 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2177 | DEFAULT_wxUSE_PERMISSIVE=no |
2178 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2179 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2180 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2181 | DEFAULT_wxUSE_MEM_TRACING=no | |
2182 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2183 | DEFAULT_wxUSE_DMALLOC=no | |
2184 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2185 | ||
2186 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2187 | DEFAULT_wxUSE_LOG=yes | |
2188 | DEFAULT_wxUSE_LOGWINDOW=no | |
2189 | DEFAULT_wxUSE_LOGGUI=no | |
2190 | DEFAULT_wxUSE_LOGDIALOG=no | |
2191 | ||
2192 | DEFAULT_wxUSE_GUI=yes | |
2193 | DEFAULT_wxUSE_CONTROLS=no | |
2194 | ||
2195 | DEFAULT_wxUSE_REGEX=no | |
2196 | DEFAULT_wxUSE_XML=no | |
2197 | DEFAULT_wxUSE_EXPAT=no | |
2198 | DEFAULT_wxUSE_ZLIB=no | |
2199 | DEFAULT_wxUSE_LIBPNG=no | |
2200 | DEFAULT_wxUSE_LIBJPEG=no | |
2201 | DEFAULT_wxUSE_LIBTIFF=no | |
2202 | DEFAULT_wxUSE_LIBXPM=no | |
2203 | DEFAULT_wxUSE_LIBMSPACK=no | |
2204 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2205 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2206 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2207 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2208 | DEFAULT_wxUSE_ODBC=no |
2209 | DEFAULT_wxUSE_OPENGL=no | |
2210 | ||
2211 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2212 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2213 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2214 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2215 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2216 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2217 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2218 | DEFAULT_wxUSE_DATETIME=no | |
2219 | DEFAULT_wxUSE_TIMER=no | |
2220 | DEFAULT_wxUSE_STOPWATCH=no | |
2221 | DEFAULT_wxUSE_FILE=no | |
2222 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2223 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2224 | DEFAULT_wxUSE_TEXTBUFFER=no |
2225 | DEFAULT_wxUSE_TEXTFILE=no | |
2226 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2227 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2228 | DEFAULT_wxUSE_GSTREAMER8=no |
8f3773fd | 2229 | DEFAULT_wxUSE_PRINTF_POS_PARAMS=no |
a848cd7e SC |
2230 | DEFAULT_wxUSE_INTL=no |
2231 | DEFAULT_wxUSE_CONFIG=no | |
2232 | DEFAULT_wxUSE_FONTMAP=no | |
2233 | DEFAULT_wxUSE_STREAMS=no | |
2234 | DEFAULT_wxUSE_SOCKETS=no | |
2235 | DEFAULT_wxUSE_OLE=no | |
2236 | DEFAULT_wxUSE_DATAOBJ=no | |
2237 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2238 | DEFAULT_wxUSE_JOYSTICK=no | |
2239 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2240 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2241 | DEFAULT_wxUSE_LONGLONG=no | |
2242 | DEFAULT_wxUSE_GEOMETRY=no | |
2243 | ||
2244 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2245 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2246 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2247 | ||
2248 | DEFAULT_wxUSE_CLIPBOARD=no | |
2249 | DEFAULT_wxUSE_TOOLTIPS=no | |
2250 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2251 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2252 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2253 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2254 | |
8a7b1113 | 2255 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2256 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2257 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2258 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2259 | ||
2260 | DEFAULT_wxUSE_RESOURCES=no | |
2261 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2262 | DEFAULT_wxUSE_IPC=no | |
2263 | DEFAULT_wxUSE_HELP=no | |
2264 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2265 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2266 | DEFAULT_wxUSE_TREELAYOUT=no | |
2267 | DEFAULT_wxUSE_METAFILE=no | |
2268 | DEFAULT_wxUSE_MIMETYPE=no | |
2269 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2270 | DEFAULT_wxUSE_PROTOCOL=no | |
2271 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2272 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2273 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2274 | DEFAULT_wxUSE_URL=no | |
ca5c6ac3 | 2275 | DEFAULT_wxUSE_VARIANT=no |
a848cd7e SC |
2276 | |
2277 | DEFAULT_wxUSE_COMMONDLGS=no | |
2278 | DEFAULT_wxUSE_CHOICEDLG=no | |
2279 | DEFAULT_wxUSE_COLOURDLG=no | |
2280 | DEFAULT_wxUSE_DIRDLG=no | |
2281 | DEFAULT_wxUSE_FILEDLG=no | |
2282 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2283 | DEFAULT_wxUSE_FONTDLG=no | |
2284 | DEFAULT_wxUSE_MSGDLG=no | |
2285 | DEFAULT_wxUSE_NUMBERDLG=no | |
2286 | DEFAULT_wxUSE_TEXTDLG=no | |
2287 | DEFAULT_wxUSE_SPLASH=no | |
2288 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2289 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2290 | DEFAULT_wxUSE_WIZARDDLG=no | |
2291 | ||
2292 | DEFAULT_wxUSE_MENUS=no | |
2293 | DEFAULT_wxUSE_MINIFRAME=no | |
2294 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2295 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2296 | DEFAULT_wxUSE_XRC=no |
3f60522a | 2297 | DEFAULT_wxUSE_AUI=no |
646b6ec1 | 2298 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2299 | DEFAULT_wxUSE_FILESYSTEM=no |
2300 | DEFAULT_wxUSE_FS_INET=no | |
2301 | DEFAULT_wxUSE_FS_ZIP=no | |
2302 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2303 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2304 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2305 | DEFAULT_wxUSE_VALIDATORS=no |
2306 | ||
2307 | DEFAULT_wxUSE_ACCEL=no | |
2308 | DEFAULT_wxUSE_BUTTON=no | |
2309 | DEFAULT_wxUSE_BMPBUTTON=no | |
95a46303 | 2310 | DEFAULT_wxUSE_BITMAPCOMBOBOX=no |
a848cd7e SC |
2311 | DEFAULT_wxUSE_CALCTRL=no |
2312 | DEFAULT_wxUSE_CARET=no | |
2313 | DEFAULT_wxUSE_CHECKBOX=no | |
2314 | DEFAULT_wxUSE_CHECKLST=no | |
2315 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2316 | DEFAULT_wxUSE_CHOICEBOOK=no |
e9263684 | 2317 | DEFAULT_wxUSE_COLOURPICKERCTRL=no |
a848cd7e | 2318 | DEFAULT_wxUSE_COMBOBOX=no |
a57d600f | 2319 | DEFAULT_wxUSE_COMBOCTRL=no |
da98e9be | 2320 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e | 2321 | DEFAULT_wxUSE_DISPLAY=no |
e9263684 VZ |
2322 | DEFAULT_wxUSE_DIRPICKERCTRL=no |
2323 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
2324 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
a848cd7e | 2325 | DEFAULT_wxUSE_GAUGE=no |
f43426c1 | 2326 | DEFAULT_wxUSE_GRAPHICS_CONTEXT=no |
a848cd7e | 2327 | DEFAULT_wxUSE_GRID=no |
6954625c | 2328 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
20e34ecc | 2329 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2330 | DEFAULT_wxUSE_IMAGLIST=no |
2331 | DEFAULT_wxUSE_LISTBOOK=no | |
2332 | DEFAULT_wxUSE_LISTBOX=no | |
2333 | DEFAULT_wxUSE_LISTCTRL=no | |
2334 | DEFAULT_wxUSE_NOTEBOOK=no | |
a57d600f | 2335 | DEFAULT_wxUSE_ODCOMBOBOX=no |
a848cd7e SC |
2336 | DEFAULT_wxUSE_RADIOBOX=no |
2337 | DEFAULT_wxUSE_RADIOBTN=no | |
2338 | DEFAULT_wxUSE_SASH=no | |
2339 | DEFAULT_wxUSE_SCROLLBAR=no | |
2340 | DEFAULT_wxUSE_SLIDER=no | |
2341 | DEFAULT_wxUSE_SPINBTN=no | |
2342 | DEFAULT_wxUSE_SPINCTRL=no | |
2343 | DEFAULT_wxUSE_SPLITTER=no | |
2344 | DEFAULT_wxUSE_STATBMP=no | |
2345 | DEFAULT_wxUSE_STATBOX=no | |
2346 | DEFAULT_wxUSE_STATLINE=no | |
2347 | DEFAULT_wxUSE_STATTEXT=no | |
2348 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2349 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2350 | DEFAULT_wxUSE_TEXTCTRL=no |
2351 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2352 | DEFAULT_wxUSE_TOOLBAR=no | |
2353 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
0093c2fc | 2354 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 2355 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
2356 | DEFAULT_wxUSE_TREECTRL=no |
2357 | DEFAULT_wxUSE_POPUPWIN=no | |
2358 | DEFAULT_wxUSE_TIPWINDOW=no | |
2359 | ||
2360 | DEFAULT_wxUSE_UNICODE=no | |
2361 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2362 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2363 | ||
2364 | DEFAULT_wxUSE_PALETTE=no | |
2365 | DEFAULT_wxUSE_IMAGE=no | |
2366 | DEFAULT_wxUSE_GIF=no | |
2367 | DEFAULT_wxUSE_PCX=no | |
2368 | DEFAULT_wxUSE_PNM=no | |
2369 | DEFAULT_wxUSE_IFF=no | |
2370 | DEFAULT_wxUSE_XPM=no | |
2371 | DEFAULT_wxUSE_ICO_CUR=no | |
2372 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2373 | ||
2374 | DEFAULT_wxUSE_MONOLITHIC=no | |
2375 | DEFAULT_wxUSE_PLUGINS=no | |
2376 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2377 | else | |
2378 | DEFAULT_wxUSE_UNIVERSAL=no | |
2379 | DEFAULT_wxUSE_STL=no | |
2380 | ||
2381 | DEFAULT_wxUSE_NANOX=no | |
2382 | ||
2383 | DEFAULT_wxUSE_THREADS=yes | |
2384 | ||
5acfd58d | 2385 | DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes} |
a848cd7e SC |
2386 | DEFAULT_wxUSE_OPTIMISE=yes |
2387 | DEFAULT_wxUSE_PROFILE=no | |
2388 | DEFAULT_wxUSE_NO_DEPS=no | |
2389 | DEFAULT_wxUSE_NO_RTTI=no | |
2390 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2391 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2392 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2393 | DEFAULT_wxUSE_PERMISSIVE=no |
2394 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2395 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2396 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2397 | DEFAULT_wxUSE_MEM_TRACING=no | |
2398 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2399 | DEFAULT_wxUSE_DMALLOC=no | |
2400 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2401 | ||
2402 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2403 | DEFAULT_wxUSE_LOG=yes | |
2404 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2405 | DEFAULT_wxUSE_LOGGUI=yes | |
2406 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2407 | ||
2408 | DEFAULT_wxUSE_GUI=yes | |
2409 | ||
2410 | DEFAULT_wxUSE_REGEX=yes | |
2411 | DEFAULT_wxUSE_XML=yes | |
2412 | DEFAULT_wxUSE_EXPAT=yes | |
2413 | DEFAULT_wxUSE_ZLIB=yes | |
2414 | DEFAULT_wxUSE_LIBPNG=yes | |
2415 | DEFAULT_wxUSE_LIBJPEG=yes | |
2416 | DEFAULT_wxUSE_LIBTIFF=yes | |
2417 | DEFAULT_wxUSE_LIBXPM=yes | |
2418 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2419 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2420 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2421 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2422 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2423 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2424 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2425 | |
2426 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2427 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2428 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2429 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2430 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2431 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2432 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2433 | DEFAULT_wxUSE_DATETIME=yes | |
2434 | DEFAULT_wxUSE_TIMER=yes | |
2435 | DEFAULT_wxUSE_STOPWATCH=yes | |
2436 | DEFAULT_wxUSE_FILE=yes | |
2437 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2438 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2439 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2440 | DEFAULT_wxUSE_TEXTFILE=yes | |
2441 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2442 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2443 | DEFAULT_wxUSE_GSTREAMER8=no |
15291213 | 2444 | DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes |
a848cd7e SC |
2445 | DEFAULT_wxUSE_INTL=yes |
2446 | DEFAULT_wxUSE_CONFIG=yes | |
2447 | DEFAULT_wxUSE_FONTMAP=yes | |
2448 | DEFAULT_wxUSE_STREAMS=yes | |
2449 | DEFAULT_wxUSE_SOCKETS=yes | |
2450 | DEFAULT_wxUSE_OLE=yes | |
2451 | DEFAULT_wxUSE_DATAOBJ=yes | |
2452 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2453 | DEFAULT_wxUSE_JOYSTICK=yes | |
2454 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2455 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2456 | DEFAULT_wxUSE_LONGLONG=yes | |
2457 | DEFAULT_wxUSE_GEOMETRY=yes | |
2458 | ||
2459 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2460 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2461 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2462 | ||
2463 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2464 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2465 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2466 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2467 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2468 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2469 | |
8a7b1113 | 2470 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2471 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2472 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2473 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2474 | ||
2475 | DEFAULT_wxUSE_RESOURCES=no | |
2476 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2477 | DEFAULT_wxUSE_IPC=yes | |
2478 | DEFAULT_wxUSE_HELP=yes | |
2479 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2480 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2481 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2482 | DEFAULT_wxUSE_METAFILE=yes | |
2483 | DEFAULT_wxUSE_MIMETYPE=yes | |
2484 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2485 | DEFAULT_wxUSE_PROTOCOL=yes | |
2486 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2487 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2488 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2489 | DEFAULT_wxUSE_URL=yes | |
ca5c6ac3 | 2490 | DEFAULT_wxUSE_VARIANT=yes |
a848cd7e SC |
2491 | |
2492 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2493 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2494 | DEFAULT_wxUSE_COLOURDLG=yes | |
2495 | DEFAULT_wxUSE_DIRDLG=yes | |
2496 | DEFAULT_wxUSE_FILEDLG=yes | |
2497 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2498 | DEFAULT_wxUSE_FONTDLG=yes | |
2499 | DEFAULT_wxUSE_MSGDLG=yes | |
2500 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2501 | DEFAULT_wxUSE_TEXTDLG=yes | |
2502 | DEFAULT_wxUSE_SPLASH=yes | |
2503 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2504 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2505 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2506 | ||
2507 | DEFAULT_wxUSE_MENUS=yes | |
2508 | DEFAULT_wxUSE_MINIFRAME=yes | |
2509 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2510 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2511 | DEFAULT_wxUSE_XRC=yes |
3f60522a | 2512 | DEFAULT_wxUSE_AUI=yes |
646b6ec1 | 2513 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2514 | DEFAULT_wxUSE_FILESYSTEM=yes |
2515 | DEFAULT_wxUSE_FS_INET=yes | |
2516 | DEFAULT_wxUSE_FS_ZIP=yes | |
2517 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2518 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2519 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2520 | DEFAULT_wxUSE_VALIDATORS=yes |
2521 | ||
2522 | DEFAULT_wxUSE_ACCEL=yes | |
2523 | DEFAULT_wxUSE_BUTTON=yes | |
2524 | DEFAULT_wxUSE_BMPBUTTON=yes | |
95a46303 | 2525 | DEFAULT_wxUSE_BITMAPCOMBOBOX=yes |
a848cd7e SC |
2526 | DEFAULT_wxUSE_CALCTRL=yes |
2527 | DEFAULT_wxUSE_CARET=yes | |
2528 | DEFAULT_wxUSE_CHECKBOX=yes | |
2529 | DEFAULT_wxUSE_CHECKLST=yes | |
2530 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2531 | DEFAULT_wxUSE_CHOICEBOOK=yes |
e9263684 | 2532 | DEFAULT_wxUSE_COLOURPICKERCTRL=yes |
a848cd7e | 2533 | DEFAULT_wxUSE_COMBOBOX=yes |
a57d600f | 2534 | DEFAULT_wxUSE_COMBOCTRL=yes |
da98e9be | 2535 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e | 2536 | DEFAULT_wxUSE_DISPLAY=yes |
e9263684 VZ |
2537 | DEFAULT_wxUSE_DIRPICKERCTRL=yes |
2538 | DEFAULT_wxUSE_FILEPICKERCTRL=yes | |
2539 | DEFAULT_wxUSE_FONTPICKERCTRL=yes | |
a848cd7e SC |
2540 | DEFAULT_wxUSE_GAUGE=yes |
2541 | DEFAULT_wxUSE_GRID=yes | |
f43426c1 | 2542 | DEFAULT_wxUSE_GRAPHICS_CONTEXT=no |
6954625c | 2543 | DEFAULT_wxUSE_HYPERLINKCTRL=yes |
20e34ecc | 2544 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2545 | DEFAULT_wxUSE_IMAGLIST=yes |
2546 | DEFAULT_wxUSE_LISTBOOK=yes | |
2547 | DEFAULT_wxUSE_LISTBOX=yes | |
2548 | DEFAULT_wxUSE_LISTCTRL=yes | |
2549 | DEFAULT_wxUSE_NOTEBOOK=yes | |
a57d600f | 2550 | DEFAULT_wxUSE_ODCOMBOBOX=yes |
a848cd7e SC |
2551 | DEFAULT_wxUSE_RADIOBOX=yes |
2552 | DEFAULT_wxUSE_RADIOBTN=yes | |
2553 | DEFAULT_wxUSE_SASH=yes | |
2554 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2555 | DEFAULT_wxUSE_SLIDER=yes | |
2556 | DEFAULT_wxUSE_SPINBTN=yes | |
2557 | DEFAULT_wxUSE_SPINCTRL=yes | |
2558 | DEFAULT_wxUSE_SPLITTER=yes | |
2559 | DEFAULT_wxUSE_STATBMP=yes | |
2560 | DEFAULT_wxUSE_STATBOX=yes | |
2561 | DEFAULT_wxUSE_STATLINE=yes | |
2562 | DEFAULT_wxUSE_STATTEXT=yes | |
2563 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2564 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2565 | DEFAULT_wxUSE_TEXTCTRL=yes |
2566 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2567 | DEFAULT_wxUSE_TOOLBAR=yes | |
2568 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
0093c2fc | 2569 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 2570 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
2571 | DEFAULT_wxUSE_TREECTRL=yes |
2572 | DEFAULT_wxUSE_POPUPWIN=yes | |
2573 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2574 | ||
78de529b | 2575 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2576 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2577 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2578 | ||
2579 | DEFAULT_wxUSE_PALETTE=yes | |
2580 | DEFAULT_wxUSE_IMAGE=yes | |
2581 | DEFAULT_wxUSE_GIF=yes | |
2582 | DEFAULT_wxUSE_PCX=yes | |
2583 | DEFAULT_wxUSE_IFF=no | |
2584 | DEFAULT_wxUSE_PNM=yes | |
2585 | DEFAULT_wxUSE_XPM=yes | |
2586 | DEFAULT_wxUSE_ICO_CUR=yes | |
2587 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2588 | ||
2589 | DEFAULT_wxUSE_MONOLITHIC=no | |
2590 | DEFAULT_wxUSE_PLUGINS=no | |
2591 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2592 | |
f34ca037 | 2593 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2594 | fi |
2595 | ||
2596 | ||
2597 | ||
f34ca037 | 2598 | |
a848cd7e SC |
2599 | for toolkit in `echo $ALL_TOOLKITS`; do |
2600 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2601 | if test "x$LINE" != "x" ; then | |
2602 | has_toolkit_in_cache=1 | |
2603 | eval "DEFAULT_$LINE" | |
2604 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2605 | |
2606 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2607 | if test "x$LINE" != "x" ; then | |
2608 | eval "DEFAULT_$LINE" | |
2609 | fi | |
a848cd7e SC |
2610 | fi |
2611 | done | |
2612 | ||
2613 | ||
2614 | ||
2615 | enablestring= | |
2616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2617 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2618 | no_cache=0 | |
2619 | # Check whether --enable-gui or --disable-gui was given. | |
2620 | if test "${enable_gui+set}" = set; then | |
2621 | enableval="$enable_gui" | |
2622 | ||
2623 | if test "$enableval" = yes; then | |
2624 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2625 | else | |
2626 | ac_cv_use_gui='wxUSE_GUI=no' | |
2627 | fi | |
2628 | ||
2629 | else | |
2630 | ||
2631 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2632 | if test "x$LINE" != x ; then | |
2633 | eval "DEFAULT_$LINE" | |
2634 | else | |
2635 | no_cache=1 | |
2636 | fi | |
2637 | ||
2638 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2639 | ||
2640 | fi; | |
2641 | ||
2642 | eval "$ac_cv_use_gui" | |
2643 | if test "$no_cache" != 1; then | |
2644 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2645 | fi | |
2646 | ||
2647 | if test "$wxUSE_GUI" = yes; then | |
2648 | echo "$as_me:$LINENO: result: yes" >&5 | |
2649 | echo "${ECHO_T}yes" >&6 | |
2650 | else | |
2651 | echo "$as_me:$LINENO: result: no" >&5 | |
2652 | echo "${ECHO_T}no" >&6 | |
2653 | fi | |
2654 | ||
2655 | ||
2656 | enablestring= | |
2657 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2658 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2659 | no_cache=0 | |
2660 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2661 | if test "${enable_monolithic+set}" = set; then | |
2662 | enableval="$enable_monolithic" | |
2663 | ||
2664 | if test "$enableval" = yes; then | |
2665 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2666 | else | |
2667 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2668 | fi | |
2669 | ||
2670 | else | |
2671 | ||
2672 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2673 | if test "x$LINE" != x ; then | |
2674 | eval "DEFAULT_$LINE" | |
2675 | else | |
2676 | no_cache=1 | |
2677 | fi | |
2678 | ||
2679 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2680 | ||
2681 | fi; | |
2682 | ||
2683 | eval "$ac_cv_use_monolithic" | |
2684 | if test "$no_cache" != 1; then | |
2685 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2686 | fi | |
2687 | ||
2688 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2689 | echo "$as_me:$LINENO: result: yes" >&5 | |
2690 | echo "${ECHO_T}yes" >&6 | |
2691 | else | |
2692 | echo "$as_me:$LINENO: result: no" >&5 | |
2693 | echo "${ECHO_T}no" >&6 | |
2694 | fi | |
2695 | ||
2696 | ||
2697 | enablestring= | |
2698 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2699 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2700 | no_cache=0 | |
2701 | # Check whether --enable-plugins or --disable-plugins was given. | |
2702 | if test "${enable_plugins+set}" = set; then | |
2703 | enableval="$enable_plugins" | |
2704 | ||
2705 | if test "$enableval" = yes; then | |
2706 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2707 | else | |
2708 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2709 | fi | |
2710 | ||
2711 | else | |
2712 | ||
2713 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2714 | if test "x$LINE" != x ; then | |
2715 | eval "DEFAULT_$LINE" | |
2716 | else | |
2717 | no_cache=1 | |
2718 | fi | |
2719 | ||
2720 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2721 | ||
2722 | fi; | |
2723 | ||
2724 | eval "$ac_cv_use_plugins" | |
2725 | if test "$no_cache" != 1; then | |
2726 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2727 | fi | |
2728 | ||
2729 | if test "$wxUSE_PLUGINS" = yes; then | |
2730 | echo "$as_me:$LINENO: result: yes" >&5 | |
2731 | echo "${ECHO_T}yes" >&6 | |
2732 | else | |
2733 | echo "$as_me:$LINENO: result: no" >&5 | |
2734 | echo "${ECHO_T}no" >&6 | |
2735 | fi | |
2736 | ||
2737 | ||
1c14217d VZ |
2738 | withstring=without |
2739 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2740 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2741 | no_cache=0 | |
2742 | ||
2743 | # Check whether --with-subdirs or --without-subdirs was given. | |
2744 | if test "${with_subdirs+set}" = set; then | |
2745 | withval="$with_subdirs" | |
2746 | ||
2747 | if test "$withval" = yes; then | |
2748 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2749 | else | |
2750 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2751 | fi | |
2752 | ||
2753 | else | |
2754 | ||
2755 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2756 | if test "x$LINE" != x ; then | |
2757 | eval "DEFAULT_$LINE" | |
2758 | else | |
2759 | no_cache=1 | |
2760 | fi | |
2761 | ||
2762 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2763 | ||
2764 | fi; | |
2765 | ||
2766 | eval "$ac_cv_use_subdirs" | |
2767 | if test "$no_cache" != 1; then | |
2768 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2769 | fi | |
2770 | ||
2771 | if test "$wxWITH_SUBDIRS" = yes; then | |
2772 | echo "$as_me:$LINENO: result: yes" >&5 | |
2773 | echo "${ECHO_T}yes" >&6 | |
2774 | else | |
2775 | echo "$as_me:$LINENO: result: no" >&5 | |
2776 | echo "${ECHO_T}no" >&6 | |
2777 | fi | |
2778 | ||
2779 | ||
a848cd7e SC |
2780 | if test "$wxUSE_GUI" = "yes"; then |
2781 | ||
2782 | ||
2783 | enablestring= | |
2784 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2785 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2786 | no_cache=0 | |
2787 | # Check whether --enable-universal or --disable-universal was given. | |
2788 | if test "${enable_universal+set}" = set; then | |
2789 | enableval="$enable_universal" | |
2790 | ||
2791 | if test "$enableval" = yes; then | |
2792 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2793 | else | |
2794 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2795 | fi | |
2796 | ||
2797 | else | |
2798 | ||
2799 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2800 | if test "x$LINE" != x ; then | |
2801 | eval "DEFAULT_$LINE" | |
2802 | else | |
2803 | no_cache=1 | |
2804 | fi | |
2805 | ||
2806 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2807 | ||
2808 | fi; | |
2809 | ||
2810 | eval "$ac_cv_use_universal" | |
2811 | if test "$no_cache" != 1; then | |
2812 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2813 | fi | |
2814 | ||
2815 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2816 | echo "$as_me:$LINENO: result: yes" >&5 | |
2817 | echo "${ECHO_T}yes" >&6 | |
2818 | else | |
2819 | echo "$as_me:$LINENO: result: no" >&5 | |
2820 | echo "${ECHO_T}no" >&6 | |
2821 | fi | |
2822 | ||
2823 | ||
2824 | # Check whether --with-gtk or --without-gtk was given. | |
2825 | if test "${with_gtk+set}" = set; then | |
2826 | withval="$with_gtk" | |
2827 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2828 | fi; | |
2829 | ||
2830 | # Check whether --with-motif or --without-motif was given. | |
2831 | if test "${with_motif+set}" = set; then | |
2832 | withval="$with_motif" | |
2833 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2834 | fi; | |
2835 | ||
2836 | # Check whether --with-mac or --without-mac was given. | |
2837 | if test "${with_mac+set}" = set; then | |
2838 | withval="$with_mac" | |
c228d3a4 | 2839 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2840 | fi; |
2841 | ||
2842 | # Check whether --with-cocoa or --without-cocoa was given. | |
2843 | if test "${with_cocoa+set}" = set; then | |
2844 | withval="$with_cocoa" | |
c228d3a4 | 2845 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2846 | fi; |
2847 | ||
2848 | # Check whether --with-wine or --without-wine was given. | |
2849 | if test "${with_wine+set}" = set; then | |
2850 | withval="$with_wine" | |
2851 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2852 | fi; | |
2853 | ||
2854 | # Check whether --with-msw or --without-msw was given. | |
2855 | if test "${with_msw+set}" = set; then | |
2856 | withval="$with_msw" | |
2857 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2858 | fi; | |
2859 | ||
2860 | # Check whether --with-pm or --without-pm was given. | |
2861 | if test "${with_pm+set}" = set; then | |
2862 | withval="$with_pm" | |
2863 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2864 | fi; | |
2865 | ||
2866 | # Check whether --with-mgl or --without-mgl was given. | |
2867 | if test "${with_mgl+set}" = set; then | |
2868 | withval="$with_mgl" | |
2869 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2870 | fi; | |
2871 | ||
b3c86150 VS |
2872 | # Check whether --with-directfb or --without-directfb was given. |
2873 | if test "${with_directfb+set}" = set; then | |
2874 | withval="$with_directfb" | |
2875 | wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1 | |
2876 | fi; | |
2877 | ||
a848cd7e SC |
2878 | # Check whether --with-microwin or --without-microwin was given. |
2879 | if test "${with_microwin+set}" = set; then | |
2880 | withval="$with_microwin" | |
2881 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2882 | fi; | |
2883 | ||
2884 | # Check whether --with-x11 or --without-x11 was given. | |
2885 | if test "${with_x11+set}" = set; then | |
2886 | withval="$with_x11" | |
2887 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2888 | fi; | |
2889 | ||
2890 | enablestring= | |
2891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2892 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2893 | no_cache=0 | |
2894 | # Check whether --enable-nanox or --disable-nanox was given. | |
2895 | if test "${enable_nanox+set}" = set; then | |
2896 | enableval="$enable_nanox" | |
2897 | ||
2898 | if test "$enableval" = yes; then | |
2899 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2900 | else | |
2901 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2902 | fi | |
2903 | ||
2904 | else | |
2905 | ||
2906 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2907 | if test "x$LINE" != x ; then | |
2908 | eval "DEFAULT_$LINE" | |
2909 | else | |
2910 | no_cache=1 | |
2911 | fi | |
2912 | ||
2913 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2914 | ||
2915 | fi; | |
2916 | ||
2917 | eval "$ac_cv_use_nanox" | |
2918 | if test "$no_cache" != 1; then | |
2919 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2920 | fi | |
2921 | ||
2922 | if test "$wxUSE_NANOX" = yes; then | |
2923 | echo "$as_me:$LINENO: result: yes" >&5 | |
2924 | echo "${ECHO_T}yes" >&6 | |
2925 | else | |
2926 | echo "$as_me:$LINENO: result: no" >&5 | |
2927 | echo "${ECHO_T}no" >&6 | |
2928 | fi | |
2929 | ||
2930 | ||
f34ca037 MW |
2931 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2932 | if test "${enable_gtk2+set}" = set; then | |
2933 | enableval="$enable_gtk2" | |
2934 | wxUSE_GTK2="$enableval" | |
2935 | fi; | |
a848cd7e | 2936 | |
a848cd7e SC |
2937 | enablestring= |
2938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2939 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2940 | no_cache=0 | |
2941 | # Check whether --enable-gpe or --disable-gpe was given. | |
2942 | if test "${enable_gpe+set}" = set; then | |
2943 | enableval="$enable_gpe" | |
2944 | ||
2945 | if test "$enableval" = yes; then | |
2946 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2947 | else | |
2948 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2949 | fi | |
2950 | ||
2951 | else | |
2952 | ||
2953 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2954 | if test "x$LINE" != x ; then | |
2955 | eval "DEFAULT_$LINE" | |
2956 | else | |
2957 | no_cache=1 | |
2958 | fi | |
2959 | ||
2960 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2961 | ||
2962 | fi; | |
2963 | ||
2964 | eval "$ac_cv_use_gpe" | |
2965 | if test "$no_cache" != 1; then | |
2966 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2967 | fi | |
2968 | ||
2969 | if test "$wxUSE_GPE" = yes; then | |
2970 | echo "$as_me:$LINENO: result: yes" >&5 | |
2971 | echo "${ECHO_T}yes" >&6 | |
2972 | else | |
2973 | echo "$as_me:$LINENO: result: no" >&5 | |
2974 | echo "${ECHO_T}no" >&6 | |
2975 | fi | |
2976 | ||
2977 | ||
2978 | ||
2979 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2980 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2981 | no_cache=0 | |
2982 | ||
2983 | # Check whether --with-libpng or --without-libpng was given. | |
2984 | if test "${with_libpng+set}" = set; then | |
2985 | withval="$with_libpng" | |
2986 | ||
2987 | if test "$withval" = yes; then | |
2988 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2989 | elif test "$withval" = no; then | |
2990 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2991 | elif test "$withval" = sys; then | |
2992 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2993 | elif test "$withval" = builtin; then | |
2994 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2995 | else | |
2996 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2997 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2998 | { (exit 1); exit 1; }; } | |
2999 | fi | |
3000 | ||
3001 | else | |
3002 | ||
3003 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
3004 | if test "x$LINE" != x ; then | |
3005 | eval "DEFAULT_$LINE" | |
3006 | else | |
3007 | no_cache=1 | |
3008 | fi | |
3009 | ||
3010 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
3011 | ||
3012 | fi; | |
3013 | ||
3014 | eval "$ac_cv_use_libpng" | |
3015 | if test "$no_cache" != 1; then | |
3016 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
3017 | fi | |
3018 | ||
3019 | if test "$wxUSE_LIBPNG" = yes; then | |
3020 | echo "$as_me:$LINENO: result: yes" >&5 | |
3021 | echo "${ECHO_T}yes" >&6 | |
3022 | elif test "$wxUSE_LIBPNG" = no; then | |
3023 | echo "$as_me:$LINENO: result: no" >&5 | |
3024 | echo "${ECHO_T}no" >&6 | |
3025 | elif test "$wxUSE_LIBPNG" = sys; then | |
3026 | echo "$as_me:$LINENO: result: system version" >&5 | |
3027 | echo "${ECHO_T}system version" >&6 | |
3028 | elif test "$wxUSE_LIBPNG" = builtin; then | |
3029 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3030 | echo "${ECHO_T}builtin version" >&6 | |
3031 | else | |
3032 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
3033 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
3034 | { (exit 1); exit 1; }; } | |
3035 | fi | |
3036 | ||
3037 | ||
3038 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
3039 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
3040 | no_cache=0 | |
3041 | ||
3042 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
3043 | if test "${with_libjpeg+set}" = set; then | |
3044 | withval="$with_libjpeg" | |
3045 | ||
3046 | if test "$withval" = yes; then | |
3047 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
3048 | elif test "$withval" = no; then | |
3049 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
3050 | elif test "$withval" = sys; then | |
3051 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
3052 | elif test "$withval" = builtin; then | |
3053 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
3054 | else | |
3055 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
3056 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
3057 | { (exit 1); exit 1; }; } | |
3058 | fi | |
3059 | ||
3060 | else | |
3061 | ||
3062 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
3063 | if test "x$LINE" != x ; then | |
3064 | eval "DEFAULT_$LINE" | |
3065 | else | |
3066 | no_cache=1 | |
3067 | fi | |
3068 | ||
3069 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
3070 | ||
3071 | fi; | |
3072 | ||
3073 | eval "$ac_cv_use_libjpeg" | |
3074 | if test "$no_cache" != 1; then | |
3075 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
3076 | fi | |
3077 | ||
3078 | if test "$wxUSE_LIBJPEG" = yes; then | |
3079 | echo "$as_me:$LINENO: result: yes" >&5 | |
3080 | echo "${ECHO_T}yes" >&6 | |
3081 | elif test "$wxUSE_LIBJPEG" = no; then | |
3082 | echo "$as_me:$LINENO: result: no" >&5 | |
3083 | echo "${ECHO_T}no" >&6 | |
3084 | elif test "$wxUSE_LIBJPEG" = sys; then | |
3085 | echo "$as_me:$LINENO: result: system version" >&5 | |
3086 | echo "${ECHO_T}system version" >&6 | |
3087 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
3088 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3089 | echo "${ECHO_T}builtin version" >&6 | |
3090 | else | |
3091 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
3092 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
3093 | { (exit 1); exit 1; }; } | |
3094 | fi | |
3095 | ||
3096 | ||
3097 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
3098 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
3099 | no_cache=0 | |
3100 | ||
3101 | # Check whether --with-libtiff or --without-libtiff was given. | |
3102 | if test "${with_libtiff+set}" = set; then | |
3103 | withval="$with_libtiff" | |
3104 | ||
3105 | if test "$withval" = yes; then | |
3106 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
3107 | elif test "$withval" = no; then | |
3108 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
3109 | elif test "$withval" = sys; then | |
3110 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
3111 | elif test "$withval" = builtin; then | |
3112 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
3113 | else | |
3114 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3115 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3116 | { (exit 1); exit 1; }; } | |
3117 | fi | |
3118 | ||
3119 | else | |
3120 | ||
3121 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
3122 | if test "x$LINE" != x ; then | |
3123 | eval "DEFAULT_$LINE" | |
3124 | else | |
3125 | no_cache=1 | |
3126 | fi | |
3127 | ||
3128 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
3129 | ||
3130 | fi; | |
3131 | ||
3132 | eval "$ac_cv_use_libtiff" | |
3133 | if test "$no_cache" != 1; then | |
3134 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
3135 | fi | |
3136 | ||
3137 | if test "$wxUSE_LIBTIFF" = yes; then | |
3138 | echo "$as_me:$LINENO: result: yes" >&5 | |
3139 | echo "${ECHO_T}yes" >&6 | |
3140 | elif test "$wxUSE_LIBTIFF" = no; then | |
3141 | echo "$as_me:$LINENO: result: no" >&5 | |
3142 | echo "${ECHO_T}no" >&6 | |
3143 | elif test "$wxUSE_LIBTIFF" = sys; then | |
3144 | echo "$as_me:$LINENO: result: system version" >&5 | |
3145 | echo "${ECHO_T}system version" >&6 | |
3146 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
3147 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3148 | echo "${ECHO_T}builtin version" >&6 | |
3149 | else | |
3150 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3151 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3152 | { (exit 1); exit 1; }; } | |
3153 | fi | |
3154 | ||
3155 | ||
3156 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
3157 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
3158 | no_cache=0 | |
3159 | ||
3160 | # Check whether --with-libxpm or --without-libxpm was given. | |
3161 | if test "${with_libxpm+set}" = set; then | |
3162 | withval="$with_libxpm" | |
3163 | ||
3164 | if test "$withval" = yes; then | |
3165 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3166 | elif test "$withval" = no; then | |
3167 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3168 | elif test "$withval" = sys; then | |
3169 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3170 | elif test "$withval" = builtin; then | |
3171 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3172 | else | |
3173 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3174 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3175 | { (exit 1); exit 1; }; } | |
3176 | fi | |
3177 | ||
3178 | else | |
3179 | ||
3180 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3181 | if test "x$LINE" != x ; then | |
3182 | eval "DEFAULT_$LINE" | |
3183 | else | |
3184 | no_cache=1 | |
3185 | fi | |
3186 | ||
3187 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3188 | ||
3189 | fi; | |
3190 | ||
3191 | eval "$ac_cv_use_libxpm" | |
3192 | if test "$no_cache" != 1; then | |
3193 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3194 | fi | |
3195 | ||
3196 | if test "$wxUSE_LIBXPM" = yes; then | |
3197 | echo "$as_me:$LINENO: result: yes" >&5 | |
3198 | echo "${ECHO_T}yes" >&6 | |
3199 | elif test "$wxUSE_LIBXPM" = no; then | |
3200 | echo "$as_me:$LINENO: result: no" >&5 | |
3201 | echo "${ECHO_T}no" >&6 | |
3202 | elif test "$wxUSE_LIBXPM" = sys; then | |
3203 | echo "$as_me:$LINENO: result: system version" >&5 | |
3204 | echo "${ECHO_T}system version" >&6 | |
3205 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3206 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3207 | echo "${ECHO_T}builtin version" >&6 | |
3208 | else | |
3209 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3210 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3211 | { (exit 1); exit 1; }; } | |
3212 | fi | |
3213 | ||
3214 | ||
1c14217d VZ |
3215 | withstring= |
3216 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3217 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3218 | no_cache=0 |
3219 | ||
3220 | # Check whether --with-libmspack or --without-libmspack was given. | |
3221 | if test "${with_libmspack+set}" = set; then | |
3222 | withval="$with_libmspack" | |
3223 | ||
3224 | if test "$withval" = yes; then | |
3225 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3226 | else | |
3227 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3228 | fi | |
3229 | ||
3230 | else | |
3231 | ||
3232 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3233 | if test "x$LINE" != x ; then | |
3234 | eval "DEFAULT_$LINE" | |
3235 | else | |
3236 | no_cache=1 | |
3237 | fi | |
3238 | ||
3239 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3240 | ||
3241 | fi; | |
3242 | ||
3243 | eval "$ac_cv_use_libmspack" | |
3244 | if test "$no_cache" != 1; then | |
3245 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3246 | fi | |
3247 | ||
3248 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3249 | echo "$as_me:$LINENO: result: yes" >&5 | |
3250 | echo "${ECHO_T}yes" >&6 | |
3251 | else | |
3252 | echo "$as_me:$LINENO: result: no" >&5 | |
3253 | echo "${ECHO_T}no" >&6 | |
3254 | fi | |
3255 | ||
3256 | ||
1c14217d VZ |
3257 | withstring= |
3258 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3259 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3260 | no_cache=0 |
3261 | ||
3262 | # Check whether --with-sdl or --without-sdl was given. | |
3263 | if test "${with_sdl+set}" = set; then | |
3264 | withval="$with_sdl" | |
3265 | ||
3266 | if test "$withval" = yes; then | |
3267 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3268 | else | |
3269 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3270 | fi | |
3271 | ||
3272 | else | |
3273 | ||
3274 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3275 | if test "x$LINE" != x ; then | |
3276 | eval "DEFAULT_$LINE" | |
3277 | else | |
3278 | no_cache=1 | |
3279 | fi | |
3280 | ||
3281 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3282 | ||
3283 | fi; | |
3284 | ||
3285 | eval "$ac_cv_use_sdl" | |
3286 | if test "$no_cache" != 1; then | |
3287 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3288 | fi | |
3289 | ||
3290 | if test "$wxUSE_LIBSDL" = yes; then | |
3291 | echo "$as_me:$LINENO: result: yes" >&5 | |
3292 | echo "${ECHO_T}yes" >&6 | |
3293 | else | |
3294 | echo "$as_me:$LINENO: result: no" >&5 | |
3295 | echo "${ECHO_T}no" >&6 | |
3296 | fi | |
3297 | ||
3298 | ||
1c14217d VZ |
3299 | withstring= |
3300 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3301 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3302 | no_cache=0 |
3303 | ||
3304 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3305 | if test "${with_gnomeprint+set}" = set; then | |
3306 | withval="$with_gnomeprint" | |
3307 | ||
3308 | if test "$withval" = yes; then | |
3309 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3310 | else | |
3311 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3312 | fi | |
3313 | ||
3314 | else | |
3315 | ||
3316 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3317 | if test "x$LINE" != x ; then | |
3318 | eval "DEFAULT_$LINE" | |
3319 | else | |
3320 | no_cache=1 | |
3321 | fi | |
3322 | ||
3323 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3324 | ||
3325 | fi; | |
3326 | ||
3327 | eval "$ac_cv_use_gnomeprint" | |
3328 | if test "$no_cache" != 1; then | |
3329 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3330 | fi | |
3331 | ||
3332 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3333 | echo "$as_me:$LINENO: result: yes" >&5 | |
3334 | echo "${ECHO_T}yes" >&6 | |
3335 | else | |
3336 | echo "$as_me:$LINENO: result: no" >&5 | |
3337 | echo "${ECHO_T}no" >&6 | |
3338 | fi | |
3339 | ||
3340 | ||
2b850ae1 RR |
3341 | withstring= |
3342 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5 | |
3343 | echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6 | |
3344 | no_cache=0 | |
3345 | ||
3346 | # Check whether --with-gnomevfs or --without-gnomevfs was given. | |
3347 | if test "${with_gnomevfs+set}" = set; then | |
3348 | withval="$with_gnomevfs" | |
3349 | ||
3350 | if test "$withval" = yes; then | |
3351 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes' | |
3352 | else | |
3353 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no' | |
3354 | fi | |
3355 | ||
3356 | else | |
3357 | ||
3358 | LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}` | |
3359 | if test "x$LINE" != x ; then | |
3360 | eval "DEFAULT_$LINE" | |
3361 | else | |
3362 | no_cache=1 | |
3363 | fi | |
3364 | ||
3365 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS | |
3366 | ||
3367 | fi; | |
3368 | ||
3369 | eval "$ac_cv_use_gnomevfs" | |
3370 | if test "$no_cache" != 1; then | |
3371 | echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp | |
3372 | fi | |
3373 | ||
3374 | if test "$wxUSE_LIBGNOMEVFS" = yes; then | |
3375 | echo "$as_me:$LINENO: result: yes" >&5 | |
3376 | echo "${ECHO_T}yes" >&6 | |
3377 | else | |
3378 | echo "$as_me:$LINENO: result: no" >&5 | |
3379 | echo "${ECHO_T}no" >&6 | |
3380 | fi | |
3381 | ||
3382 | ||
3565d135 RR |
3383 | withstring= |
3384 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3385 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3386 | no_cache=0 | |
3387 | ||
3388 | # Check whether --with-hildon or --without-hildon was given. | |
3389 | if test "${with_hildon+set}" = set; then | |
3390 | withval="$with_hildon" | |
3391 | ||
3392 | if test "$withval" = yes; then | |
3393 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3394 | else | |
3395 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3396 | fi | |
3397 | ||
3398 | else | |
3399 | ||
3400 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3401 | if test "x$LINE" != x ; then | |
3402 | eval "DEFAULT_$LINE" | |
3403 | else | |
3404 | no_cache=1 | |
3405 | fi | |
3406 | ||
3407 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3408 | ||
3409 | fi; | |
3410 | ||
3411 | eval "$ac_cv_use_hildon" | |
3412 | if test "$no_cache" != 1; then | |
3413 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3414 | fi | |
3415 | ||
3416 | if test "$wxUSE_LIBHILDON" = yes; then | |
3417 | echo "$as_me:$LINENO: result: yes" >&5 | |
3418 | echo "${ECHO_T}yes" >&6 | |
3419 | else | |
3420 | echo "$as_me:$LINENO: result: no" >&5 | |
3421 | echo "${ECHO_T}no" >&6 | |
3422 | fi | |
3423 | ||
3424 | ||
1c14217d VZ |
3425 | withstring= |
3426 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3427 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3428 | no_cache=0 |
3429 | ||
3430 | # Check whether --with-opengl or --without-opengl was given. | |
3431 | if test "${with_opengl+set}" = set; then | |
3432 | withval="$with_opengl" | |
3433 | ||
3434 | if test "$withval" = yes; then | |
3435 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3436 | else | |
3437 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3438 | fi | |
3439 | ||
3440 | else | |
3441 | ||
3442 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3443 | if test "x$LINE" != x ; then | |
3444 | eval "DEFAULT_$LINE" | |
3445 | else | |
3446 | no_cache=1 | |
3447 | fi | |
3448 | ||
3449 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3450 | ||
3451 | fi; | |
3452 | ||
3453 | eval "$ac_cv_use_opengl" | |
3454 | if test "$no_cache" != 1; then | |
3455 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3456 | fi | |
3457 | ||
3458 | if test "$wxUSE_OPENGL" = yes; then | |
3459 | echo "$as_me:$LINENO: result: yes" >&5 | |
3460 | echo "${ECHO_T}yes" >&6 | |
3461 | else | |
3462 | echo "$as_me:$LINENO: result: no" >&5 | |
3463 | echo "${ECHO_T}no" >&6 | |
3464 | fi | |
3465 | ||
3466 | ||
4353a8df VZ |
3467 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
3468 | ||
3469 | # Check whether --with-themes or --without-themes was given. | |
3470 | if test "${with_themes+set}" = set; then | |
3471 | withval="$with_themes" | |
3472 | wxUNIV_THEMES="$withval" | |
3473 | fi; | |
3474 | fi | |
3475 | ||
a848cd7e SC |
3476 | fi |
3477 | ||
3478 | ||
1c14217d VZ |
3479 | withstring= |
3480 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3481 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3482 | no_cache=0 |
3483 | ||
3484 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3485 | if test "${with_dmalloc+set}" = set; then | |
3486 | withval="$with_dmalloc" | |
3487 | ||
3488 | if test "$withval" = yes; then | |
3489 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3490 | else | |
3491 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3492 | fi | |
3493 | ||
3494 | else | |
3495 | ||
3496 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3497 | if test "x$LINE" != x ; then | |
3498 | eval "DEFAULT_$LINE" | |
3499 | else | |
3500 | no_cache=1 | |
3501 | fi | |
3502 | ||
3503 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3504 | ||
3505 | fi; | |
3506 | ||
3507 | eval "$ac_cv_use_dmalloc" | |
3508 | if test "$no_cache" != 1; then | |
3509 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3510 | fi | |
3511 | ||
3512 | if test "$wxUSE_DMALLOC" = yes; then | |
3513 | echo "$as_me:$LINENO: result: yes" >&5 | |
3514 | echo "${ECHO_T}yes" >&6 | |
3515 | else | |
3516 | echo "$as_me:$LINENO: result: no" >&5 | |
3517 | echo "${ECHO_T}no" >&6 | |
3518 | fi | |
3519 | ||
3520 | ||
3521 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3522 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3523 | no_cache=0 | |
3524 | ||
3525 | # Check whether --with-regex or --without-regex was given. | |
3526 | if test "${with_regex+set}" = set; then | |
3527 | withval="$with_regex" | |
3528 | ||
3529 | if test "$withval" = yes; then | |
3530 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3531 | elif test "$withval" = no; then | |
3532 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3533 | elif test "$withval" = sys; then | |
3534 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3535 | elif test "$withval" = builtin; then | |
3536 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3537 | else | |
3538 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3539 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3540 | { (exit 1); exit 1; }; } | |
3541 | fi | |
3542 | ||
3543 | else | |
3544 | ||
3545 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3546 | if test "x$LINE" != x ; then | |
3547 | eval "DEFAULT_$LINE" | |
3548 | else | |
3549 | no_cache=1 | |
3550 | fi | |
3551 | ||
3552 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3553 | ||
3554 | fi; | |
3555 | ||
3556 | eval "$ac_cv_use_regex" | |
3557 | if test "$no_cache" != 1; then | |
3558 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3559 | fi | |
3560 | ||
3561 | if test "$wxUSE_REGEX" = yes; then | |
3562 | echo "$as_me:$LINENO: result: yes" >&5 | |
3563 | echo "${ECHO_T}yes" >&6 | |
3564 | elif test "$wxUSE_REGEX" = no; then | |
3565 | echo "$as_me:$LINENO: result: no" >&5 | |
3566 | echo "${ECHO_T}no" >&6 | |
3567 | elif test "$wxUSE_REGEX" = sys; then | |
3568 | echo "$as_me:$LINENO: result: system version" >&5 | |
3569 | echo "${ECHO_T}system version" >&6 | |
3570 | elif test "$wxUSE_REGEX" = builtin; then | |
3571 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3572 | echo "${ECHO_T}builtin version" >&6 | |
3573 | else | |
3574 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3575 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3576 | { (exit 1); exit 1; }; } | |
3577 | fi | |
3578 | ||
3579 | ||
3580 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3581 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3582 | no_cache=0 | |
3583 | ||
3584 | # Check whether --with-zlib or --without-zlib was given. | |
3585 | if test "${with_zlib+set}" = set; then | |
3586 | withval="$with_zlib" | |
3587 | ||
3588 | if test "$withval" = yes; then | |
3589 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3590 | elif test "$withval" = no; then | |
3591 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3592 | elif test "$withval" = sys; then | |
3593 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3594 | elif test "$withval" = builtin; then | |
3595 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3596 | else | |
3597 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3598 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3599 | { (exit 1); exit 1; }; } | |
3600 | fi | |
3601 | ||
3602 | else | |
3603 | ||
3604 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3605 | if test "x$LINE" != x ; then | |
3606 | eval "DEFAULT_$LINE" | |
3607 | else | |
3608 | no_cache=1 | |
3609 | fi | |
3610 | ||
3611 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3612 | ||
3613 | fi; | |
3614 | ||
3615 | eval "$ac_cv_use_zlib" | |
3616 | if test "$no_cache" != 1; then | |
3617 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3618 | fi | |
3619 | ||
3620 | if test "$wxUSE_ZLIB" = yes; then | |
3621 | echo "$as_me:$LINENO: result: yes" >&5 | |
3622 | echo "${ECHO_T}yes" >&6 | |
3623 | elif test "$wxUSE_ZLIB" = no; then | |
3624 | echo "$as_me:$LINENO: result: no" >&5 | |
3625 | echo "${ECHO_T}no" >&6 | |
3626 | elif test "$wxUSE_ZLIB" = sys; then | |
3627 | echo "$as_me:$LINENO: result: system version" >&5 | |
3628 | echo "${ECHO_T}system version" >&6 | |
3629 | elif test "$wxUSE_ZLIB" = builtin; then | |
3630 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3631 | echo "${ECHO_T}builtin version" >&6 | |
3632 | else | |
3633 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3634 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3635 | { (exit 1); exit 1; }; } | |
3636 | fi | |
3637 | ||
3638 | ||
3639 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3640 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3641 | no_cache=0 | |
3642 | ||
3643 | # Check whether --with-odbc or --without-odbc was given. | |
3644 | if test "${with_odbc+set}" = set; then | |
3645 | withval="$with_odbc" | |
3646 | ||
3647 | if test "$withval" = yes; then | |
3648 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3649 | elif test "$withval" = no; then | |
3650 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3651 | elif test "$withval" = sys; then | |
3652 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3653 | elif test "$withval" = builtin; then | |
3654 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3655 | else | |
3656 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3657 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3658 | { (exit 1); exit 1; }; } | |
3659 | fi | |
3660 | ||
3661 | else | |
3662 | ||
3663 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3664 | if test "x$LINE" != x ; then | |
3665 | eval "DEFAULT_$LINE" | |
3666 | else | |
3667 | no_cache=1 | |
3668 | fi | |
3669 | ||
3670 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3671 | ||
3672 | fi; | |
3673 | ||
3674 | eval "$ac_cv_use_odbc" | |
3675 | if test "$no_cache" != 1; then | |
3676 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3677 | fi | |
3678 | ||
3679 | if test "$wxUSE_ODBC" = yes; then | |
3680 | echo "$as_me:$LINENO: result: yes" >&5 | |
3681 | echo "${ECHO_T}yes" >&6 | |
3682 | elif test "$wxUSE_ODBC" = no; then | |
3683 | echo "$as_me:$LINENO: result: no" >&5 | |
3684 | echo "${ECHO_T}no" >&6 | |
3685 | elif test "$wxUSE_ODBC" = sys; then | |
3686 | echo "$as_me:$LINENO: result: system version" >&5 | |
3687 | echo "${ECHO_T}system version" >&6 | |
3688 | elif test "$wxUSE_ODBC" = builtin; then | |
3689 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3690 | echo "${ECHO_T}builtin version" >&6 | |
3691 | else | |
3692 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3693 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3694 | { (exit 1); exit 1; }; } | |
3695 | fi | |
3696 | ||
3697 | ||
3698 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3699 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3700 | no_cache=0 | |
3701 | ||
3702 | # Check whether --with-expat or --without-expat was given. | |
3703 | if test "${with_expat+set}" = set; then | |
3704 | withval="$with_expat" | |
3705 | ||
3706 | if test "$withval" = yes; then | |
3707 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3708 | elif test "$withval" = no; then | |
3709 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3710 | elif test "$withval" = sys; then | |
3711 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3712 | elif test "$withval" = builtin; then | |
3713 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3714 | else | |
3715 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3716 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3717 | { (exit 1); exit 1; }; } | |
3718 | fi | |
3719 | ||
3720 | else | |
3721 | ||
3722 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3723 | if test "x$LINE" != x ; then | |
3724 | eval "DEFAULT_$LINE" | |
3725 | else | |
3726 | no_cache=1 | |
3727 | fi | |
3728 | ||
3729 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3730 | ||
3731 | fi; | |
3732 | ||
3733 | eval "$ac_cv_use_expat" | |
3734 | if test "$no_cache" != 1; then | |
3735 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3736 | fi | |
3737 | ||
3738 | if test "$wxUSE_EXPAT" = yes; then | |
3739 | echo "$as_me:$LINENO: result: yes" >&5 | |
3740 | echo "${ECHO_T}yes" >&6 | |
3741 | elif test "$wxUSE_EXPAT" = no; then | |
3742 | echo "$as_me:$LINENO: result: no" >&5 | |
3743 | echo "${ECHO_T}no" >&6 | |
3744 | elif test "$wxUSE_EXPAT" = sys; then | |
3745 | echo "$as_me:$LINENO: result: system version" >&5 | |
3746 | echo "${ECHO_T}system version" >&6 | |
3747 | elif test "$wxUSE_EXPAT" = builtin; then | |
3748 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3749 | echo "${ECHO_T}builtin version" >&6 | |
3750 | else | |
3751 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3752 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3753 | { (exit 1); exit 1; }; } | |
3754 | fi | |
3755 | ||
3756 | ||
3757 | ||
3758 | ||
3759 | enablestring= | |
3760 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3761 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3762 | no_cache=0 | |
3763 | # Check whether --enable-shared or --disable-shared was given. | |
3764 | if test "${enable_shared+set}" = set; then | |
3765 | enableval="$enable_shared" | |
3766 | ||
3767 | if test "$enableval" = yes; then | |
3768 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3769 | else | |
3770 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3771 | fi | |
3772 | ||
3773 | else | |
3774 | ||
3775 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3776 | if test "x$LINE" != x ; then | |
3777 | eval "DEFAULT_$LINE" | |
3778 | else | |
3779 | no_cache=1 | |
3780 | fi | |
3781 | ||
3782 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3783 | ||
3784 | fi; | |
3785 | ||
3786 | eval "$ac_cv_use_shared" | |
3787 | if test "$no_cache" != 1; then | |
3788 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3789 | fi | |
3790 | ||
3791 | if test "$wxUSE_SHARED" = yes; then | |
3792 | echo "$as_me:$LINENO: result: yes" >&5 | |
3793 | echo "${ECHO_T}yes" >&6 | |
3794 | else | |
3795 | echo "$as_me:$LINENO: result: no" >&5 | |
3796 | echo "${ECHO_T}no" >&6 | |
3797 | fi | |
3798 | ||
3799 | ||
3800 | enablestring= | |
3801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3802 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3803 | no_cache=0 | |
3804 | # Check whether --enable-optimise or --disable-optimise was given. | |
3805 | if test "${enable_optimise+set}" = set; then | |
3806 | enableval="$enable_optimise" | |
3807 | ||
3808 | if test "$enableval" = yes; then | |
3809 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3810 | else | |
3811 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3812 | fi | |
3813 | ||
3814 | else | |
3815 | ||
3816 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3817 | if test "x$LINE" != x ; then | |
3818 | eval "DEFAULT_$LINE" | |
3819 | else | |
3820 | no_cache=1 | |
3821 | fi | |
3822 | ||
3823 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3824 | ||
3825 | fi; | |
3826 | ||
3827 | eval "$ac_cv_use_optimise" | |
3828 | if test "$no_cache" != 1; then | |
3829 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3830 | fi | |
3831 | ||
3832 | if test "$wxUSE_OPTIMISE" = yes; then | |
3833 | echo "$as_me:$LINENO: result: yes" >&5 | |
3834 | echo "${ECHO_T}yes" >&6 | |
3835 | else | |
3836 | echo "$as_me:$LINENO: result: no" >&5 | |
3837 | echo "${ECHO_T}no" >&6 | |
3838 | fi | |
3839 | ||
3840 | ||
3841 | enablestring= | |
3842 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3843 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3844 | no_cache=0 | |
3845 | # Check whether --enable-debug or --disable-debug was given. | |
3846 | if test "${enable_debug+set}" = set; then | |
3847 | enableval="$enable_debug" | |
3848 | ||
3849 | if test "$enableval" = yes; then | |
3850 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3851 | else | |
3852 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3853 | fi | |
3854 | ||
3855 | else | |
3856 | ||
3857 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3858 | if test "x$LINE" != x ; then | |
3859 | eval "DEFAULT_$LINE" | |
3860 | else | |
3861 | no_cache=1 | |
3862 | fi | |
3863 | ||
3864 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3865 | ||
3866 | fi; | |
3867 | ||
3868 | eval "$ac_cv_use_debug" | |
3869 | if test "$no_cache" != 1; then | |
3870 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3871 | fi | |
3872 | ||
3873 | if test "$wxUSE_DEBUG" = yes; then | |
3874 | echo "$as_me:$LINENO: result: yes" >&5 | |
3875 | echo "${ECHO_T}yes" >&6 | |
3876 | else | |
3877 | echo "$as_me:$LINENO: result: no" >&5 | |
3878 | echo "${ECHO_T}no" >&6 | |
3879 | fi | |
3880 | ||
3881 | ||
3882 | enablestring= | |
3883 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3884 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3885 | no_cache=0 | |
3886 | # Check whether --enable-stl or --disable-stl was given. | |
3887 | if test "${enable_stl+set}" = set; then | |
3888 | enableval="$enable_stl" | |
3889 | ||
3890 | if test "$enableval" = yes; then | |
3891 | ac_cv_use_stl='wxUSE_STL=yes' | |
3892 | else | |
3893 | ac_cv_use_stl='wxUSE_STL=no' | |
3894 | fi | |
3895 | ||
3896 | else | |
3897 | ||
3898 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3899 | if test "x$LINE" != x ; then | |
3900 | eval "DEFAULT_$LINE" | |
3901 | else | |
3902 | no_cache=1 | |
3903 | fi | |
3904 | ||
3905 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3906 | ||
3907 | fi; | |
3908 | ||
3909 | eval "$ac_cv_use_stl" | |
3910 | if test "$no_cache" != 1; then | |
3911 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3912 | fi | |
3913 | ||
3914 | if test "$wxUSE_STL" = yes; then | |
3915 | echo "$as_me:$LINENO: result: yes" >&5 | |
3916 | echo "${ECHO_T}yes" >&6 | |
3917 | else | |
3918 | echo "$as_me:$LINENO: result: no" >&5 | |
3919 | echo "${ECHO_T}no" >&6 | |
3920 | fi | |
3921 | ||
3922 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3923 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3924 | |
3925 | enablestring= | |
3926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3927 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3928 | no_cache=0 | |
3929 | # Check whether --enable-omf or --disable-omf was given. | |
3930 | if test "${enable_omf+set}" = set; then | |
3931 | enableval="$enable_omf" | |
3932 | ||
3933 | if test "$enableval" = yes; then | |
3934 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3935 | else | |
3936 | ac_cv_use_omf='wxUSE_OMF=no' | |
3937 | fi | |
3938 | ||
3939 | else | |
3940 | ||
3941 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3942 | if test "x$LINE" != x ; then | |
3943 | eval "DEFAULT_$LINE" | |
3944 | else | |
3945 | no_cache=1 | |
3946 | fi | |
3947 | ||
3948 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3949 | ||
3950 | fi; | |
3951 | ||
3952 | eval "$ac_cv_use_omf" | |
3953 | if test "$no_cache" != 1; then | |
3954 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3955 | fi | |
3956 | ||
3957 | if test "$wxUSE_OMF" = yes; then | |
3958 | echo "$as_me:$LINENO: result: yes" >&5 | |
3959 | echo "${ECHO_T}yes" >&6 | |
3960 | else | |
3961 | echo "$as_me:$LINENO: result: no" >&5 | |
3962 | echo "${ECHO_T}no" >&6 | |
3963 | fi | |
3964 | ||
3965 | fi | |
3966 | ||
3967 | if test "$wxUSE_DEBUG" = "yes"; then | |
3968 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3969 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3970 | BUILD=debug | |
3971 | elif test "$wxUSE_DEBUG" = "no"; then | |
3972 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3973 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3974 | BUILD=release | |
3975 | fi | |
3976 | ||
3977 | ||
3978 | enablestring= | |
3979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3980 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3981 | no_cache=0 | |
3982 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3983 | if test "${enable_debug_flag+set}" = set; then | |
3984 | enableval="$enable_debug_flag" | |
3985 | ||
3986 | if test "$enableval" = yes; then | |
3987 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3988 | else | |
3989 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3990 | fi | |
3991 | ||
3992 | else | |
3993 | ||
3994 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3995 | if test "x$LINE" != x ; then | |
3996 | eval "DEFAULT_$LINE" | |
3997 | else | |
3998 | no_cache=1 | |
3999 | fi | |
4000 | ||
4001 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
4002 | ||
4003 | fi; | |
4004 | ||
4005 | eval "$ac_cv_use_debug_flag" | |
4006 | if test "$no_cache" != 1; then | |
4007 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
4008 | fi | |
4009 | ||
4010 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
4011 | echo "$as_me:$LINENO: result: yes" >&5 | |
4012 | echo "${ECHO_T}yes" >&6 | |
4013 | else | |
4014 | echo "$as_me:$LINENO: result: no" >&5 | |
4015 | echo "${ECHO_T}no" >&6 | |
4016 | fi | |
4017 | ||
4018 | ||
4019 | enablestring= | |
4020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
4021 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
4022 | no_cache=0 | |
4023 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
4024 | if test "${enable_debug_info+set}" = set; then | |
4025 | enableval="$enable_debug_info" | |
4026 | ||
4027 | if test "$enableval" = yes; then | |
4028 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
4029 | else | |
4030 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
4031 | fi | |
4032 | ||
4033 | else | |
4034 | ||
4035 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
4036 | if test "x$LINE" != x ; then | |
4037 | eval "DEFAULT_$LINE" | |
4038 | else | |
4039 | no_cache=1 | |
4040 | fi | |
4041 | ||
4042 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
4043 | ||
4044 | fi; | |
4045 | ||
4046 | eval "$ac_cv_use_debug_info" | |
4047 | if test "$no_cache" != 1; then | |
4048 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
4049 | fi | |
4050 | ||
4051 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
4052 | echo "$as_me:$LINENO: result: yes" >&5 | |
4053 | echo "${ECHO_T}yes" >&6 | |
4054 | else | |
4055 | echo "$as_me:$LINENO: result: no" >&5 | |
4056 | echo "${ECHO_T}no" >&6 | |
4057 | fi | |
4058 | ||
4059 | ||
4060 | enablestring= | |
4061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
4062 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
4063 | no_cache=0 | |
4064 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
4065 | if test "${enable_debug_gdb+set}" = set; then | |
4066 | enableval="$enable_debug_gdb" | |
4067 | ||
4068 | if test "$enableval" = yes; then | |
4069 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
4070 | else | |
4071 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
4072 | fi | |
4073 | ||
4074 | else | |
4075 | ||
4076 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
4077 | if test "x$LINE" != x ; then | |
4078 | eval "DEFAULT_$LINE" | |
4079 | else | |
4080 | no_cache=1 | |
4081 | fi | |
4082 | ||
4083 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
4084 | ||
4085 | fi; | |
4086 | ||
4087 | eval "$ac_cv_use_debug_gdb" | |
4088 | if test "$no_cache" != 1; then | |
4089 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
4090 | fi | |
4091 | ||
4092 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
4093 | echo "$as_me:$LINENO: result: yes" >&5 | |
4094 | echo "${ECHO_T}yes" >&6 | |
4095 | else | |
4096 | echo "$as_me:$LINENO: result: no" >&5 | |
4097 | echo "${ECHO_T}no" >&6 | |
4098 | fi | |
4099 | ||
4100 | ||
4101 | enablestring= | |
4102 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
4103 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
4104 | no_cache=0 | |
4105 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
4106 | if test "${enable_debug_cntxt+set}" = set; then | |
4107 | enableval="$enable_debug_cntxt" | |
4108 | ||
4109 | if test "$enableval" = yes; then | |
4110 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
4111 | else | |
4112 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
4113 | fi | |
4114 | ||
4115 | else | |
4116 | ||
4117 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
4118 | if test "x$LINE" != x ; then | |
4119 | eval "DEFAULT_$LINE" | |
4120 | else | |
4121 | no_cache=1 | |
4122 | fi | |
4123 | ||
4124 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
4125 | ||
4126 | fi; | |
4127 | ||
4128 | eval "$ac_cv_use_debug_cntxt" | |
4129 | if test "$no_cache" != 1; then | |
4130 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
4131 | fi | |
4132 | ||
4133 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
4134 | echo "$as_me:$LINENO: result: yes" >&5 | |
4135 | echo "${ECHO_T}yes" >&6 | |
4136 | else | |
4137 | echo "$as_me:$LINENO: result: no" >&5 | |
4138 | echo "${ECHO_T}no" >&6 | |
4139 | fi | |
4140 | ||
4141 | ||
4142 | enablestring= | |
4143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
4144 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
4145 | no_cache=0 | |
4146 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
4147 | if test "${enable_mem_tracing+set}" = set; then | |
4148 | enableval="$enable_mem_tracing" | |
4149 | ||
4150 | if test "$enableval" = yes; then | |
4151 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
4152 | else | |
4153 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
4154 | fi | |
4155 | ||
4156 | else | |
4157 | ||
4158 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
4159 | if test "x$LINE" != x ; then | |
4160 | eval "DEFAULT_$LINE" | |
4161 | else | |
4162 | no_cache=1 | |
4163 | fi | |
4164 | ||
4165 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
4166 | ||
4167 | fi; | |
4168 | ||
4169 | eval "$ac_cv_use_mem_tracing" | |
4170 | if test "$no_cache" != 1; then | |
4171 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
4172 | fi | |
4173 | ||
4174 | if test "$wxUSE_MEM_TRACING" = yes; then | |
4175 | echo "$as_me:$LINENO: result: yes" >&5 | |
4176 | echo "${ECHO_T}yes" >&6 | |
4177 | else | |
4178 | echo "$as_me:$LINENO: result: no" >&5 | |
4179 | echo "${ECHO_T}no" >&6 | |
4180 | fi | |
4181 | ||
4182 | ||
4183 | enablestring= | |
4184 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
4185 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
4186 | no_cache=0 | |
4187 | # Check whether --enable-profile or --disable-profile was given. | |
4188 | if test "${enable_profile+set}" = set; then | |
4189 | enableval="$enable_profile" | |
4190 | ||
4191 | if test "$enableval" = yes; then | |
4192 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
4193 | else | |
4194 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
4195 | fi | |
4196 | ||
4197 | else | |
4198 | ||
4199 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
4200 | if test "x$LINE" != x ; then | |
4201 | eval "DEFAULT_$LINE" | |
4202 | else | |
4203 | no_cache=1 | |
4204 | fi | |
4205 | ||
4206 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
4207 | ||
4208 | fi; | |
4209 | ||
4210 | eval "$ac_cv_use_profile" | |
4211 | if test "$no_cache" != 1; then | |
4212 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4213 | fi | |
4214 | ||
4215 | if test "$wxUSE_PROFILE" = yes; then | |
4216 | echo "$as_me:$LINENO: result: yes" >&5 | |
4217 | echo "${ECHO_T}yes" >&6 | |
4218 | else | |
4219 | echo "$as_me:$LINENO: result: no" >&5 | |
4220 | echo "${ECHO_T}no" >&6 | |
4221 | fi | |
4222 | ||
4223 | ||
4224 | enablestring= | |
4225 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4226 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4227 | no_cache=0 | |
4228 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4229 | if test "${enable_no_rtti+set}" = set; then | |
4230 | enableval="$enable_no_rtti" | |
4231 | ||
4232 | if test "$enableval" = yes; then | |
4233 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4234 | else | |
4235 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4236 | fi | |
4237 | ||
4238 | else | |
4239 | ||
4240 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4241 | if test "x$LINE" != x ; then | |
4242 | eval "DEFAULT_$LINE" | |
4243 | else | |
4244 | no_cache=1 | |
4245 | fi | |
4246 | ||
4247 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4248 | ||
4249 | fi; | |
4250 | ||
4251 | eval "$ac_cv_use_no_rtti" | |
4252 | if test "$no_cache" != 1; then | |
4253 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4254 | fi | |
4255 | ||
4256 | if test "$wxUSE_NO_RTTI" = yes; then | |
4257 | echo "$as_me:$LINENO: result: yes" >&5 | |
4258 | echo "${ECHO_T}yes" >&6 | |
4259 | else | |
4260 | echo "$as_me:$LINENO: result: no" >&5 | |
4261 | echo "${ECHO_T}no" >&6 | |
4262 | fi | |
4263 | ||
4264 | ||
4265 | enablestring= | |
4266 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4267 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4268 | no_cache=0 | |
4269 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4270 | if test "${enable_no_exceptions+set}" = set; then | |
4271 | enableval="$enable_no_exceptions" | |
4272 | ||
4273 | if test "$enableval" = yes; then | |
4274 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4275 | else | |
4276 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4277 | fi | |
4278 | ||
4279 | else | |
4280 | ||
4281 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4282 | if test "x$LINE" != x ; then | |
4283 | eval "DEFAULT_$LINE" | |
4284 | else | |
4285 | no_cache=1 | |
4286 | fi | |
4287 | ||
4288 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4289 | ||
4290 | fi; | |
4291 | ||
4292 | eval "$ac_cv_use_no_exceptions" | |
4293 | if test "$no_cache" != 1; then | |
4294 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4295 | fi | |
4296 | ||
4297 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4298 | echo "$as_me:$LINENO: result: yes" >&5 | |
4299 | echo "${ECHO_T}yes" >&6 | |
4300 | else | |
4301 | echo "$as_me:$LINENO: result: no" >&5 | |
4302 | echo "${ECHO_T}no" >&6 | |
4303 | fi | |
4304 | ||
4305 | ||
4306 | enablestring= | |
4307 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4308 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4309 | no_cache=0 | |
4310 | # Check whether --enable-permissive or --disable-permissive was given. | |
4311 | if test "${enable_permissive+set}" = set; then | |
4312 | enableval="$enable_permissive" | |
4313 | ||
4314 | if test "$enableval" = yes; then | |
4315 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4316 | else | |
4317 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4318 | fi | |
4319 | ||
4320 | else | |
4321 | ||
4322 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4323 | if test "x$LINE" != x ; then | |
4324 | eval "DEFAULT_$LINE" | |
4325 | else | |
4326 | no_cache=1 | |
4327 | fi | |
4328 | ||
4329 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4330 | ||
4331 | fi; | |
4332 | ||
4333 | eval "$ac_cv_use_permissive" | |
4334 | if test "$no_cache" != 1; then | |
4335 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4336 | fi | |
4337 | ||
4338 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4339 | echo "$as_me:$LINENO: result: yes" >&5 | |
4340 | echo "${ECHO_T}yes" >&6 | |
4341 | else | |
4342 | echo "$as_me:$LINENO: result: no" >&5 | |
4343 | echo "${ECHO_T}no" >&6 | |
4344 | fi | |
4345 | ||
4346 | ||
4347 | enablestring= | |
4348 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4349 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4350 | no_cache=0 | |
4351 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4352 | if test "${enable_no_deps+set}" = set; then | |
4353 | enableval="$enable_no_deps" | |
4354 | ||
4355 | if test "$enableval" = yes; then | |
4356 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4357 | else | |
4358 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4359 | fi | |
4360 | ||
4361 | else | |
4362 | ||
4363 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4364 | if test "x$LINE" != x ; then | |
4365 | eval "DEFAULT_$LINE" | |
4366 | else | |
4367 | no_cache=1 | |
4368 | fi | |
4369 | ||
4370 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4371 | ||
4372 | fi; | |
4373 | ||
4374 | eval "$ac_cv_use_no_deps" | |
4375 | if test "$no_cache" != 1; then | |
4376 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4377 | fi | |
4378 | ||
4379 | if test "$wxUSE_NO_DEPS" = yes; then | |
4380 | echo "$as_me:$LINENO: result: yes" >&5 | |
4381 | echo "${ECHO_T}yes" >&6 | |
4382 | else | |
4383 | echo "$as_me:$LINENO: result: no" >&5 | |
4384 | echo "${ECHO_T}no" >&6 | |
4385 | fi | |
4386 | ||
4387 | ||
95768535 | 4388 | enablestring= |
7afc46ab KO |
4389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5 |
4390 | echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6 | |
4391 | no_cache=0 | |
4392 | # Check whether --enable-universal_binary or --disable-universal_binary was given. | |
4393 | if test "${enable_universal_binary+set}" = set; then | |
4394 | enableval="$enable_universal_binary" | |
4395 | ||
95768535 | 4396 | wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'" |
7afc46ab KO |
4397 | |
4398 | else | |
4399 | ||
4400 | LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}` | |
4401 | if test "x$LINE" != x ; then | |
4402 | eval "DEFAULT_$LINE" | |
95768535 | 4403 | wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY |
7afc46ab KO |
4404 | else |
4405 | no_cache=1 | |
95768535 | 4406 | wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no" |
7afc46ab KO |
4407 | fi |
4408 | ||
7afc46ab KO |
4409 | fi; |
4410 | ||
95768535 | 4411 | eval "$wx_cv_use_universal_binary" |
7afc46ab | 4412 | if test "$no_cache" != 1; then |
95768535 | 4413 | echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp |
7afc46ab KO |
4414 | fi |
4415 | ||
95768535 MW |
4416 | echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5 |
4417 | echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6 | |
7afc46ab KO |
4418 | |
4419 | ||
a848cd7e | 4420 | |
dee1a63f MB |
4421 | enablestring=enable |
4422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4423 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4424 | no_cache=0 |
dee1a63f MB |
4425 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4426 | if test "${enable_compat24+set}" = set; then | |
4427 | enableval="$enable_compat24" | |
a848cd7e SC |
4428 | |
4429 | if test "$enableval" = yes; then | |
dee1a63f | 4430 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4431 | else |
dee1a63f | 4432 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4433 | fi |
4434 | ||
4435 | else | |
4436 | ||
dee1a63f | 4437 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4438 | if test "x$LINE" != x ; then |
4439 | eval "DEFAULT_$LINE" | |
4440 | else | |
4441 | no_cache=1 | |
4442 | fi | |
4443 | ||
dee1a63f | 4444 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4445 | |
4446 | fi; | |
4447 | ||
dee1a63f | 4448 | eval "$ac_cv_use_compat24" |
a848cd7e | 4449 | if test "$no_cache" != 1; then |
dee1a63f | 4450 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4451 | fi |
4452 | ||
dee1a63f | 4453 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4454 | echo "$as_me:$LINENO: result: yes" >&5 |
4455 | echo "${ECHO_T}yes" >&6 | |
4456 | else | |
4457 | echo "$as_me:$LINENO: result: no" >&5 | |
4458 | echo "${ECHO_T}no" >&6 | |
4459 | fi | |
4460 | ||
4461 | ||
4462 | enablestring=disable | |
dee1a63f MB |
4463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4464 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4465 | no_cache=0 |
dee1a63f MB |
4466 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4467 | if test "${enable_compat26+set}" = set; then | |
4468 | enableval="$enable_compat26" | |
a848cd7e SC |
4469 | |
4470 | if test "$enableval" = yes; then | |
dee1a63f | 4471 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4472 | else |
dee1a63f | 4473 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4474 | fi |
4475 | ||
4476 | else | |
4477 | ||
dee1a63f | 4478 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4479 | if test "x$LINE" != x ; then |
4480 | eval "DEFAULT_$LINE" | |
4481 | else | |
4482 | no_cache=1 | |
4483 | fi | |
4484 | ||
dee1a63f | 4485 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4486 | |
4487 | fi; | |
4488 | ||
dee1a63f | 4489 | eval "$ac_cv_use_compat26" |
a848cd7e | 4490 | if test "$no_cache" != 1; then |
dee1a63f | 4491 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4492 | fi |
4493 | ||
dee1a63f | 4494 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4495 | echo "$as_me:$LINENO: result: yes" >&5 |
4496 | echo "${ECHO_T}yes" >&6 | |
4497 | else | |
4498 | echo "$as_me:$LINENO: result: no" >&5 | |
4499 | echo "${ECHO_T}no" >&6 | |
4500 | fi | |
4501 | ||
4502 | ||
ffa0583f RL |
4503 | |
4504 | enablestring= | |
4505 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4506 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4507 | no_cache=0 | |
4508 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4509 | if test "${enable_rpath+set}" = set; then |
4510 | enableval="$enable_rpath" | |
ffa0583f RL |
4511 | |
4512 | if test "$enableval" = yes; then | |
4513 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4514 | else | |
4515 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4516 | fi | |
4517 | ||
4518 | else | |
4519 | ||
4520 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4521 | if test "x$LINE" != x ; then | |
4522 | eval "DEFAULT_$LINE" | |
4523 | else | |
4524 | no_cache=1 | |
4525 | fi | |
4526 | ||
4527 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4528 | ||
a848cd7e SC |
4529 | fi; |
4530 | ||
ffa0583f RL |
4531 | eval "$ac_cv_use_rpath" |
4532 | if test "$no_cache" != 1; then | |
4533 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4534 | fi | |
4535 | ||
4536 | if test "$wxUSE_RPATH" = yes; then | |
4537 | echo "$as_me:$LINENO: result: yes" >&5 | |
4538 | echo "${ECHO_T}yes" >&6 | |
4539 | else | |
4540 | echo "$as_me:$LINENO: result: no" >&5 | |
4541 | echo "${ECHO_T}no" >&6 | |
4542 | fi | |
4543 | ||
a848cd7e SC |
4544 | |
4545 | ||
4546 | ||
4547 | ||
4548 | enablestring= | |
4549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4550 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4551 | no_cache=0 | |
4552 | # Check whether --enable-intl or --disable-intl was given. | |
4553 | if test "${enable_intl+set}" = set; then | |
4554 | enableval="$enable_intl" | |
4555 | ||
4556 | if test "$enableval" = yes; then | |
4557 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4558 | else | |
4559 | ac_cv_use_intl='wxUSE_INTL=no' | |
4560 | fi | |
4561 | ||
4562 | else | |
4563 | ||
4564 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4565 | if test "x$LINE" != x ; then | |
4566 | eval "DEFAULT_$LINE" | |
4567 | else | |
4568 | no_cache=1 | |
4569 | fi | |
4570 | ||
4571 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4572 | ||
4573 | fi; | |
4574 | ||
4575 | eval "$ac_cv_use_intl" | |
4576 | if test "$no_cache" != 1; then | |
4577 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4578 | fi | |
4579 | ||
4580 | if test "$wxUSE_INTL" = yes; then | |
4581 | echo "$as_me:$LINENO: result: yes" >&5 | |
4582 | echo "${ECHO_T}yes" >&6 | |
4583 | else | |
4584 | echo "$as_me:$LINENO: result: no" >&5 | |
4585 | echo "${ECHO_T}no" >&6 | |
4586 | fi | |
4587 | ||
4588 | ||
4589 | enablestring= | |
4590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4591 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4592 | no_cache=0 | |
4593 | # Check whether --enable-config or --disable-config was given. | |
4594 | if test "${enable_config+set}" = set; then | |
4595 | enableval="$enable_config" | |
4596 | ||
4597 | if test "$enableval" = yes; then | |
4598 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4599 | else | |
4600 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4601 | fi | |
4602 | ||
4603 | else | |
4604 | ||
4605 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4606 | if test "x$LINE" != x ; then | |
4607 | eval "DEFAULT_$LINE" | |
4608 | else | |
4609 | no_cache=1 | |
4610 | fi | |
4611 | ||
4612 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4613 | ||
4614 | fi; | |
4615 | ||
4616 | eval "$ac_cv_use_config" | |
4617 | if test "$no_cache" != 1; then | |
4618 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4619 | fi | |
4620 | ||
4621 | if test "$wxUSE_CONFIG" = yes; then | |
4622 | echo "$as_me:$LINENO: result: yes" >&5 | |
4623 | echo "${ECHO_T}yes" >&6 | |
4624 | else | |
4625 | echo "$as_me:$LINENO: result: no" >&5 | |
4626 | echo "${ECHO_T}no" >&6 | |
4627 | fi | |
4628 | ||
4629 | ||
4630 | ||
4631 | enablestring= | |
4632 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4633 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4634 | no_cache=0 | |
4635 | # Check whether --enable-protocols or --disable-protocols was given. | |
4636 | if test "${enable_protocols+set}" = set; then | |
4637 | enableval="$enable_protocols" | |
4638 | ||
4639 | if test "$enableval" = yes; then | |
4640 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4641 | else | |
4642 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4643 | fi | |
4644 | ||
4645 | else | |
4646 | ||
4647 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4648 | if test "x$LINE" != x ; then | |
4649 | eval "DEFAULT_$LINE" | |
4650 | else | |
4651 | no_cache=1 | |
4652 | fi | |
4653 | ||
4654 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4655 | ||
4656 | fi; | |
4657 | ||
4658 | eval "$ac_cv_use_protocols" | |
4659 | if test "$no_cache" != 1; then | |
4660 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4661 | fi | |
4662 | ||
4663 | if test "$wxUSE_PROTOCOL" = yes; then | |
4664 | echo "$as_me:$LINENO: result: yes" >&5 | |
4665 | echo "${ECHO_T}yes" >&6 | |
4666 | else | |
4667 | echo "$as_me:$LINENO: result: no" >&5 | |
4668 | echo "${ECHO_T}no" >&6 | |
4669 | fi | |
4670 | ||
4671 | ||
4672 | enablestring= | |
4673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4674 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4675 | no_cache=0 | |
4676 | # Check whether --enable-ftp or --disable-ftp was given. | |
4677 | if test "${enable_ftp+set}" = set; then | |
4678 | enableval="$enable_ftp" | |
4679 | ||
4680 | if test "$enableval" = yes; then | |
4681 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4682 | else | |
4683 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4684 | fi | |
4685 | ||
4686 | else | |
4687 | ||
4688 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4689 | if test "x$LINE" != x ; then | |
4690 | eval "DEFAULT_$LINE" | |
4691 | else | |
4692 | no_cache=1 | |
4693 | fi | |
4694 | ||
4695 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4696 | ||
4697 | fi; | |
4698 | ||
4699 | eval "$ac_cv_use_ftp" | |
4700 | if test "$no_cache" != 1; then | |
4701 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4702 | fi | |
4703 | ||
4704 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4705 | echo "$as_me:$LINENO: result: yes" >&5 | |
4706 | echo "${ECHO_T}yes" >&6 | |
4707 | else | |
4708 | echo "$as_me:$LINENO: result: no" >&5 | |
4709 | echo "${ECHO_T}no" >&6 | |
4710 | fi | |
4711 | ||
4712 | ||
4713 | enablestring= | |
4714 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4715 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4716 | no_cache=0 | |
4717 | # Check whether --enable-http or --disable-http was given. | |
4718 | if test "${enable_http+set}" = set; then | |
4719 | enableval="$enable_http" | |
4720 | ||
4721 | if test "$enableval" = yes; then | |
4722 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4723 | else | |
4724 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4725 | fi | |
4726 | ||
4727 | else | |
4728 | ||
4729 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4730 | if test "x$LINE" != x ; then | |
4731 | eval "DEFAULT_$LINE" | |
4732 | else | |
4733 | no_cache=1 | |
4734 | fi | |
4735 | ||
4736 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4737 | ||
4738 | fi; | |
4739 | ||
4740 | eval "$ac_cv_use_http" | |
4741 | if test "$no_cache" != 1; then | |
4742 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4743 | fi | |
4744 | ||
4745 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4746 | echo "$as_me:$LINENO: result: yes" >&5 | |
4747 | echo "${ECHO_T}yes" >&6 | |
4748 | else | |
4749 | echo "$as_me:$LINENO: result: no" >&5 | |
4750 | echo "${ECHO_T}no" >&6 | |
4751 | fi | |
4752 | ||
4753 | ||
4754 | enablestring= | |
4755 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4756 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4757 | no_cache=0 | |
4758 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4759 | if test "${enable_fileproto+set}" = set; then | |
4760 | enableval="$enable_fileproto" | |
4761 | ||
4762 | if test "$enableval" = yes; then | |
4763 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4764 | else | |
4765 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4766 | fi | |
4767 | ||
4768 | else | |
4769 | ||
4770 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4771 | if test "x$LINE" != x ; then | |
4772 | eval "DEFAULT_$LINE" | |
4773 | else | |
4774 | no_cache=1 | |
4775 | fi | |
4776 | ||
4777 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4778 | ||
4779 | fi; | |
4780 | ||
4781 | eval "$ac_cv_use_fileproto" | |
4782 | if test "$no_cache" != 1; then | |
4783 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4784 | fi | |
4785 | ||
4786 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4787 | echo "$as_me:$LINENO: result: yes" >&5 | |
4788 | echo "${ECHO_T}yes" >&6 | |
4789 | else | |
4790 | echo "$as_me:$LINENO: result: no" >&5 | |
4791 | echo "${ECHO_T}no" >&6 | |
4792 | fi | |
4793 | ||
4794 | ||
4795 | enablestring= | |
4796 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4797 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4798 | no_cache=0 | |
4799 | # Check whether --enable-sockets or --disable-sockets was given. | |
4800 | if test "${enable_sockets+set}" = set; then | |
4801 | enableval="$enable_sockets" | |
4802 | ||
4803 | if test "$enableval" = yes; then | |
4804 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4805 | else | |
4806 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4807 | fi | |
4808 | ||
4809 | else | |
4810 | ||
4811 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4812 | if test "x$LINE" != x ; then | |
4813 | eval "DEFAULT_$LINE" | |
4814 | else | |
4815 | no_cache=1 | |
4816 | fi | |
4817 | ||
4818 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4819 | ||
4820 | fi; | |
4821 | ||
4822 | eval "$ac_cv_use_sockets" | |
4823 | if test "$no_cache" != 1; then | |
4824 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4825 | fi | |
4826 | ||
4827 | if test "$wxUSE_SOCKETS" = yes; then | |
4828 | echo "$as_me:$LINENO: result: yes" >&5 | |
4829 | echo "${ECHO_T}yes" >&6 | |
4830 | else | |
4831 | echo "$as_me:$LINENO: result: no" >&5 | |
4832 | echo "${ECHO_T}no" >&6 | |
4833 | fi | |
4834 | ||
4835 | ||
4836 | enablestring= | |
4837 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4838 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4839 | no_cache=0 | |
4840 | # Check whether --enable-ole or --disable-ole was given. | |
4841 | if test "${enable_ole+set}" = set; then | |
4842 | enableval="$enable_ole" | |
4843 | ||
4844 | if test "$enableval" = yes; then | |
4845 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4846 | else | |
4847 | ac_cv_use_ole='wxUSE_OLE=no' | |
4848 | fi | |
4849 | ||
4850 | else | |
4851 | ||
4852 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4853 | if test "x$LINE" != x ; then | |
4854 | eval "DEFAULT_$LINE" | |
4855 | else | |
4856 | no_cache=1 | |
4857 | fi | |
4858 | ||
4859 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4860 | ||
4861 | fi; | |
4862 | ||
4863 | eval "$ac_cv_use_ole" | |
4864 | if test "$no_cache" != 1; then | |
4865 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4866 | fi | |
4867 | ||
4868 | if test "$wxUSE_OLE" = yes; then | |
4869 | echo "$as_me:$LINENO: result: yes" >&5 | |
4870 | echo "${ECHO_T}yes" >&6 | |
4871 | else | |
4872 | echo "$as_me:$LINENO: result: no" >&5 | |
4873 | echo "${ECHO_T}no" >&6 | |
4874 | fi | |
4875 | ||
4876 | ||
4877 | enablestring= | |
4878 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4879 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4880 | no_cache=0 | |
4881 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4882 | if test "${enable_dataobj+set}" = set; then | |
4883 | enableval="$enable_dataobj" | |
4884 | ||
4885 | if test "$enableval" = yes; then | |
4886 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4887 | else | |
4888 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4889 | fi | |
4890 | ||
4891 | else | |
4892 | ||
4893 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4894 | if test "x$LINE" != x ; then | |
4895 | eval "DEFAULT_$LINE" | |
4896 | else | |
4897 | no_cache=1 | |
4898 | fi | |
4899 | ||
4900 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4901 | ||
4902 | fi; | |
4903 | ||
4904 | eval "$ac_cv_use_dataobj" | |
4905 | if test "$no_cache" != 1; then | |
4906 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4907 | fi | |
4908 | ||
4909 | if test "$wxUSE_DATAOBJ" = yes; then | |
4910 | echo "$as_me:$LINENO: result: yes" >&5 | |
4911 | echo "${ECHO_T}yes" >&6 | |
4912 | else | |
4913 | echo "$as_me:$LINENO: result: no" >&5 | |
4914 | echo "${ECHO_T}no" >&6 | |
4915 | fi | |
4916 | ||
4917 | ||
4918 | ||
4919 | enablestring= | |
4920 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4921 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4922 | no_cache=0 | |
4923 | # Check whether --enable-ipc or --disable-ipc was given. | |
4924 | if test "${enable_ipc+set}" = set; then | |
4925 | enableval="$enable_ipc" | |
4926 | ||
4927 | if test "$enableval" = yes; then | |
4928 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4929 | else | |
4930 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4931 | fi | |
4932 | ||
4933 | else | |
4934 | ||
4935 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4936 | if test "x$LINE" != x ; then | |
4937 | eval "DEFAULT_$LINE" | |
4938 | else | |
4939 | no_cache=1 | |
4940 | fi | |
4941 | ||
4942 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4943 | ||
4944 | fi; | |
4945 | ||
4946 | eval "$ac_cv_use_ipc" | |
4947 | if test "$no_cache" != 1; then | |
4948 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4949 | fi | |
4950 | ||
4951 | if test "$wxUSE_IPC" = yes; then | |
4952 | echo "$as_me:$LINENO: result: yes" >&5 | |
4953 | echo "${ECHO_T}yes" >&6 | |
4954 | else | |
4955 | echo "$as_me:$LINENO: result: no" >&5 | |
4956 | echo "${ECHO_T}no" >&6 | |
4957 | fi | |
4958 | ||
4959 | ||
4960 | ||
4961 | enablestring= | |
4962 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4963 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4964 | no_cache=0 | |
4965 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4966 | if test "${enable_apple_ieee+set}" = set; then | |
4967 | enableval="$enable_apple_ieee" | |
4968 | ||
4969 | if test "$enableval" = yes; then | |
4970 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4971 | else | |
4972 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4973 | fi | |
4974 | ||
4975 | else | |
4976 | ||
4977 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4978 | if test "x$LINE" != x ; then | |
4979 | eval "DEFAULT_$LINE" | |
4980 | else | |
4981 | no_cache=1 | |
4982 | fi | |
4983 | ||
4984 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4985 | ||
4986 | fi; | |
4987 | ||
4988 | eval "$ac_cv_use_apple_ieee" | |
4989 | if test "$no_cache" != 1; then | |
4990 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4991 | fi | |
4992 | ||
4993 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4994 | echo "$as_me:$LINENO: result: yes" >&5 | |
4995 | echo "${ECHO_T}yes" >&6 | |
4996 | else | |
4997 | echo "$as_me:$LINENO: result: no" >&5 | |
4998 | echo "${ECHO_T}no" >&6 | |
4999 | fi | |
5000 | ||
5001 | ||
81f90336 MW |
5002 | enablestring= |
5003 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
5004 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
5005 | no_cache=0 | |
5006 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
5007 | if test "${enable_arcstream+set}" = set; then | |
5008 | enableval="$enable_arcstream" | |
5009 | ||
5010 | if test "$enableval" = yes; then | |
9e8e867f | 5011 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 5012 | else |
9e8e867f | 5013 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
5014 | fi |
5015 | ||
5016 | else | |
5017 | ||
9e8e867f | 5018 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
5019 | if test "x$LINE" != x ; then |
5020 | eval "DEFAULT_$LINE" | |
5021 | else | |
5022 | no_cache=1 | |
5023 | fi | |
5024 | ||
9e8e867f | 5025 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
5026 | |
5027 | fi; | |
5028 | ||
5029 | eval "$ac_cv_use_arcstream" | |
5030 | if test "$no_cache" != 1; then | |
5031 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
5032 | fi | |
5033 | ||
9e8e867f | 5034 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
5035 | echo "$as_me:$LINENO: result: yes" >&5 |
5036 | echo "${ECHO_T}yes" >&6 | |
5037 | else | |
5038 | echo "$as_me:$LINENO: result: no" >&5 | |
5039 | echo "${ECHO_T}no" >&6 | |
5040 | fi | |
5041 | ||
5042 | ||
a848cd7e | 5043 | enablestring= |
36b6448c VZ |
5044 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
5045 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 5046 | no_cache=0 |
36b6448c VZ |
5047 | # Check whether --enable-backtrace or --disable-backtrace was given. |
5048 | if test "${enable_backtrace+set}" = set; then | |
5049 | enableval="$enable_backtrace" | |
a848cd7e SC |
5050 | |
5051 | if test "$enableval" = yes; then | |
36b6448c | 5052 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 5053 | else |
36b6448c | 5054 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
5055 | fi |
5056 | ||
5057 | else | |
5058 | ||
36b6448c | 5059 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
5060 | if test "x$LINE" != x ; then |
5061 | eval "DEFAULT_$LINE" | |
5062 | else | |
5063 | no_cache=1 | |
5064 | fi | |
5065 | ||
36b6448c | 5066 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
5067 | |
5068 | fi; | |
5069 | ||
36b6448c | 5070 | eval "$ac_cv_use_backtrace" |
a848cd7e | 5071 | if test "$no_cache" != 1; then |
36b6448c | 5072 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5073 | fi |
5074 | ||
36b6448c | 5075 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
5076 | echo "$as_me:$LINENO: result: yes" >&5 |
5077 | echo "${ECHO_T}yes" >&6 | |
5078 | else | |
5079 | echo "$as_me:$LINENO: result: no" >&5 | |
5080 | echo "${ECHO_T}no" >&6 | |
5081 | fi | |
5082 | ||
5083 | ||
eaff0f0d | 5084 | enablestring= |
36b6448c VZ |
5085 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5086 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 5087 | no_cache=0 |
36b6448c VZ |
5088 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
5089 | if test "${enable_catch_segvs+set}" = set; then | |
5090 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
5091 | |
5092 | if test "$enableval" = yes; then | |
36b6448c | 5093 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 5094 | else |
36b6448c | 5095 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
5096 | fi |
5097 | ||
5098 | else | |
5099 | ||
36b6448c | 5100 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
5101 | if test "x$LINE" != x ; then |
5102 | eval "DEFAULT_$LINE" | |
5103 | else | |
5104 | no_cache=1 | |
5105 | fi | |
5106 | ||
36b6448c | 5107 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
5108 | |
5109 | fi; | |
5110 | ||
36b6448c | 5111 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 5112 | if test "$no_cache" != 1; then |
36b6448c | 5113 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
5114 | fi |
5115 | ||
36b6448c | 5116 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
5117 | echo "$as_me:$LINENO: result: yes" >&5 |
5118 | echo "${ECHO_T}yes" >&6 | |
5119 | else | |
5120 | echo "$as_me:$LINENO: result: no" >&5 | |
5121 | echo "${ECHO_T}no" >&6 | |
5122 | fi | |
5123 | ||
5124 | ||
a848cd7e SC |
5125 | enablestring= |
5126 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
5127 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
5128 | no_cache=0 | |
5129 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
5130 | if test "${enable_cmdline+set}" = set; then | |
5131 | enableval="$enable_cmdline" | |
5132 | ||
5133 | if test "$enableval" = yes; then | |
5134 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
5135 | else | |
5136 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
5137 | fi | |
5138 | ||
5139 | else | |
5140 | ||
5141 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
5142 | if test "x$LINE" != x ; then | |
5143 | eval "DEFAULT_$LINE" | |
5144 | else | |
5145 | no_cache=1 | |
5146 | fi | |
5147 | ||
5148 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
5149 | ||
5150 | fi; | |
5151 | ||
5152 | eval "$ac_cv_use_cmdline" | |
5153 | if test "$no_cache" != 1; then | |
5154 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
5155 | fi | |
5156 | ||
5157 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
5158 | echo "$as_me:$LINENO: result: yes" >&5 | |
5159 | echo "${ECHO_T}yes" >&6 | |
5160 | else | |
5161 | echo "$as_me:$LINENO: result: no" >&5 | |
5162 | echo "${ECHO_T}no" >&6 | |
5163 | fi | |
5164 | ||
5165 | ||
5166 | enablestring= | |
5167 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
5168 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
5169 | no_cache=0 | |
5170 | # Check whether --enable-datetime or --disable-datetime was given. | |
5171 | if test "${enable_datetime+set}" = set; then | |
5172 | enableval="$enable_datetime" | |
5173 | ||
5174 | if test "$enableval" = yes; then | |
5175 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
5176 | else | |
5177 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
5178 | fi | |
5179 | ||
5180 | else | |
5181 | ||
5182 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
5183 | if test "x$LINE" != x ; then | |
5184 | eval "DEFAULT_$LINE" | |
5185 | else | |
5186 | no_cache=1 | |
5187 | fi | |
5188 | ||
5189 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
5190 | ||
5191 | fi; | |
5192 | ||
5193 | eval "$ac_cv_use_datetime" | |
5194 | if test "$no_cache" != 1; then | |
5195 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
5196 | fi | |
5197 | ||
5198 | if test "$wxUSE_DATETIME" = yes; then | |
5199 | echo "$as_me:$LINENO: result: yes" >&5 | |
5200 | echo "${ECHO_T}yes" >&6 | |
5201 | else | |
5202 | echo "$as_me:$LINENO: result: no" >&5 | |
5203 | echo "${ECHO_T}no" >&6 | |
5204 | fi | |
5205 | ||
5206 | ||
36b6448c VZ |
5207 | enablestring= |
5208 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
5209 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
5210 | no_cache=0 | |
5211 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
5212 | if test "${enable_debugreport+set}" = set; then | |
5213 | enableval="$enable_debugreport" | |
5214 | ||
5215 | if test "$enableval" = yes; then | |
5216 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
5217 | else | |
5218 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
5219 | fi | |
5220 | ||
5221 | else | |
5222 | ||
5223 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
5224 | if test "x$LINE" != x ; then | |
5225 | eval "DEFAULT_$LINE" | |
5226 | else | |
5227 | no_cache=1 | |
5228 | fi | |
5229 | ||
5230 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
5231 | ||
5232 | fi; | |
5233 | ||
5234 | eval "$ac_cv_use_debugreport" | |
5235 | if test "$no_cache" != 1; then | |
5236 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
5237 | fi | |
5238 | ||
5239 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
5240 | echo "$as_me:$LINENO: result: yes" >&5 | |
5241 | echo "${ECHO_T}yes" >&6 | |
5242 | else | |
5243 | echo "$as_me:$LINENO: result: no" >&5 | |
5244 | echo "${ECHO_T}no" >&6 | |
5245 | fi | |
5246 | ||
5247 | ||
a848cd7e SC |
5248 | enablestring= |
5249 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5250 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5251 | no_cache=0 | |
5252 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5253 | if test "${enable_dialupman+set}" = set; then | |
5254 | enableval="$enable_dialupman" | |
5255 | ||
5256 | if test "$enableval" = yes; then | |
5257 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5258 | else | |
5259 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5260 | fi | |
5261 | ||
5262 | else | |
5263 | ||
5264 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5265 | if test "x$LINE" != x ; then | |
5266 | eval "DEFAULT_$LINE" | |
5267 | else | |
5268 | no_cache=1 | |
5269 | fi | |
5270 | ||
5271 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5272 | ||
5273 | fi; | |
5274 | ||
5275 | eval "$ac_cv_use_dialupman" | |
5276 | if test "$no_cache" != 1; then | |
5277 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5278 | fi | |
5279 | ||
5280 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5281 | echo "$as_me:$LINENO: result: yes" >&5 | |
5282 | echo "${ECHO_T}yes" >&6 | |
5283 | else | |
5284 | echo "$as_me:$LINENO: result: no" >&5 | |
5285 | echo "${ECHO_T}no" >&6 | |
5286 | fi | |
5287 | ||
5288 | ||
5289 | enablestring= | |
5290 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5291 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5292 | no_cache=0 | |
5293 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5294 | if test "${enable_dynlib+set}" = set; then | |
5295 | enableval="$enable_dynlib" | |
5296 | ||
5297 | if test "$enableval" = yes; then | |
5298 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5299 | else | |
5300 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5301 | fi | |
5302 | ||
5303 | else | |
5304 | ||
5305 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5306 | if test "x$LINE" != x ; then | |
5307 | eval "DEFAULT_$LINE" | |
5308 | else | |
5309 | no_cache=1 | |
5310 | fi | |
5311 | ||
5312 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5313 | ||
5314 | fi; | |
5315 | ||
5316 | eval "$ac_cv_use_dynlib" | |
5317 | if test "$no_cache" != 1; then | |
5318 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5319 | fi | |
5320 | ||
5321 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5322 | echo "$as_me:$LINENO: result: yes" >&5 | |
5323 | echo "${ECHO_T}yes" >&6 | |
5324 | else | |
5325 | echo "$as_me:$LINENO: result: no" >&5 | |
5326 | echo "${ECHO_T}no" >&6 | |
5327 | fi | |
5328 | ||
5329 | ||
5330 | enablestring= | |
5331 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5332 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5333 | no_cache=0 | |
5334 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5335 | if test "${enable_dynamicloader+set}" = set; then | |
5336 | enableval="$enable_dynamicloader" | |
5337 | ||
5338 | if test "$enableval" = yes; then | |
5339 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5340 | else | |
5341 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5342 | fi | |
5343 | ||
5344 | else | |
5345 | ||
5346 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5347 | if test "x$LINE" != x ; then | |
5348 | eval "DEFAULT_$LINE" | |
5349 | else | |
5350 | no_cache=1 | |
5351 | fi | |
5352 | ||
5353 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5354 | ||
5355 | fi; | |
5356 | ||
5357 | eval "$ac_cv_use_dynamicloader" | |
5358 | if test "$no_cache" != 1; then | |
5359 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5360 | fi | |
5361 | ||
5362 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5363 | echo "$as_me:$LINENO: result: yes" >&5 | |
5364 | echo "${ECHO_T}yes" >&6 | |
5365 | else | |
5366 | echo "$as_me:$LINENO: result: no" >&5 | |
5367 | echo "${ECHO_T}no" >&6 | |
5368 | fi | |
5369 | ||
5370 | ||
5371 | enablestring= | |
5372 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5373 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5374 | no_cache=0 | |
5375 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5376 | if test "${enable_exceptions+set}" = set; then | |
5377 | enableval="$enable_exceptions" | |
5378 | ||
5379 | if test "$enableval" = yes; then | |
5380 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5381 | else | |
5382 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5383 | fi | |
5384 | ||
5385 | else | |
5386 | ||
5387 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5388 | if test "x$LINE" != x ; then | |
5389 | eval "DEFAULT_$LINE" | |
5390 | else | |
5391 | no_cache=1 | |
5392 | fi | |
5393 | ||
5394 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5395 | ||
5396 | fi; | |
5397 | ||
5398 | eval "$ac_cv_use_exceptions" | |
5399 | if test "$no_cache" != 1; then | |
5400 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5401 | fi | |
5402 | ||
5403 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5404 | echo "$as_me:$LINENO: result: yes" >&5 | |
5405 | echo "${ECHO_T}yes" >&6 | |
5406 | else | |
5407 | echo "$as_me:$LINENO: result: no" >&5 | |
5408 | echo "${ECHO_T}no" >&6 | |
5409 | fi | |
5410 | ||
5411 | ||
5412 | enablestring= | |
5413 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5414 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5415 | no_cache=0 | |
5416 | # Check whether --enable-ffile or --disable-ffile was given. | |
5417 | if test "${enable_ffile+set}" = set; then | |
5418 | enableval="$enable_ffile" | |
5419 | ||
5420 | if test "$enableval" = yes; then | |
5421 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5422 | else | |
5423 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5424 | fi | |
5425 | ||
5426 | else | |
5427 | ||
5428 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5429 | if test "x$LINE" != x ; then | |
5430 | eval "DEFAULT_$LINE" | |
5431 | else | |
5432 | no_cache=1 | |
5433 | fi | |
5434 | ||
5435 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5436 | ||
5437 | fi; | |
5438 | ||
5439 | eval "$ac_cv_use_ffile" | |
5440 | if test "$no_cache" != 1; then | |
5441 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5442 | fi | |
5443 | ||
5444 | if test "$wxUSE_FFILE" = yes; then | |
5445 | echo "$as_me:$LINENO: result: yes" >&5 | |
5446 | echo "${ECHO_T}yes" >&6 | |
5447 | else | |
5448 | echo "$as_me:$LINENO: result: no" >&5 | |
5449 | echo "${ECHO_T}no" >&6 | |
5450 | fi | |
5451 | ||
5452 | ||
5453 | enablestring= | |
5454 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5455 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5456 | no_cache=0 | |
5457 | # Check whether --enable-file or --disable-file was given. | |
5458 | if test "${enable_file+set}" = set; then | |
5459 | enableval="$enable_file" | |
5460 | ||
5461 | if test "$enableval" = yes; then | |
5462 | ac_cv_use_file='wxUSE_FILE=yes' | |
5463 | else | |
5464 | ac_cv_use_file='wxUSE_FILE=no' | |
5465 | fi | |
5466 | ||
5467 | else | |
5468 | ||
5469 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5470 | if test "x$LINE" != x ; then | |
5471 | eval "DEFAULT_$LINE" | |
5472 | else | |
5473 | no_cache=1 | |
5474 | fi | |
5475 | ||
5476 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5477 | ||
5478 | fi; | |
5479 | ||
5480 | eval "$ac_cv_use_file" | |
5481 | if test "$no_cache" != 1; then | |
5482 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5483 | fi | |
5484 | ||
5485 | if test "$wxUSE_FILE" = yes; then | |
5486 | echo "$as_me:$LINENO: result: yes" >&5 | |
5487 | echo "${ECHO_T}yes" >&6 | |
5488 | else | |
5489 | echo "$as_me:$LINENO: result: no" >&5 | |
5490 | echo "${ECHO_T}no" >&6 | |
5491 | fi | |
5492 | ||
5493 | ||
5494 | enablestring= | |
5495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5496 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5497 | no_cache=0 | |
5498 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5499 | if test "${enable_filesystem+set}" = set; then | |
5500 | enableval="$enable_filesystem" | |
5501 | ||
5502 | if test "$enableval" = yes; then | |
5503 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5504 | else | |
5505 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5506 | fi | |
5507 | ||
5508 | else | |
5509 | ||
5510 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5511 | if test "x$LINE" != x ; then | |
5512 | eval "DEFAULT_$LINE" | |
5513 | else | |
5514 | no_cache=1 | |
5515 | fi | |
5516 | ||
5517 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5518 | ||
5519 | fi; | |
5520 | ||
5521 | eval "$ac_cv_use_filesystem" | |
5522 | if test "$no_cache" != 1; then | |
5523 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5524 | fi | |
5525 | ||
5526 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5527 | echo "$as_me:$LINENO: result: yes" >&5 | |
5528 | echo "${ECHO_T}yes" >&6 | |
5529 | else | |
5530 | echo "$as_me:$LINENO: result: no" >&5 | |
5531 | echo "${ECHO_T}no" >&6 | |
5532 | fi | |
5533 | ||
5534 | ||
5535 | enablestring= | |
5536 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5537 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5538 | no_cache=0 | |
5539 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5540 | if test "${enable_fontmap+set}" = set; then | |
5541 | enableval="$enable_fontmap" | |
5542 | ||
5543 | if test "$enableval" = yes; then | |
5544 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5545 | else | |
5546 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5547 | fi | |
5548 | ||
5549 | else | |
5550 | ||
5551 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5552 | if test "x$LINE" != x ; then | |
5553 | eval "DEFAULT_$LINE" | |
5554 | else | |
5555 | no_cache=1 | |
5556 | fi | |
5557 | ||
5558 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5559 | ||
5560 | fi; | |
5561 | ||
5562 | eval "$ac_cv_use_fontmap" | |
5563 | if test "$no_cache" != 1; then | |
5564 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5565 | fi | |
5566 | ||
5567 | if test "$wxUSE_FONTMAP" = yes; then | |
5568 | echo "$as_me:$LINENO: result: yes" >&5 | |
5569 | echo "${ECHO_T}yes" >&6 | |
5570 | else | |
5571 | echo "$as_me:$LINENO: result: no" >&5 | |
5572 | echo "${ECHO_T}no" >&6 | |
5573 | fi | |
5574 | ||
5575 | ||
5576 | enablestring= | |
5577 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5578 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5579 | no_cache=0 | |
5580 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5581 | if test "${enable_fs_inet+set}" = set; then | |
5582 | enableval="$enable_fs_inet" | |
5583 | ||
5584 | if test "$enableval" = yes; then | |
5585 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5586 | else | |
5587 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5588 | fi | |
5589 | ||
5590 | else | |
5591 | ||
5592 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5593 | if test "x$LINE" != x ; then | |
5594 | eval "DEFAULT_$LINE" | |
5595 | else | |
5596 | no_cache=1 | |
5597 | fi | |
5598 | ||
5599 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5600 | ||
5601 | fi; | |
5602 | ||
5603 | eval "$ac_cv_use_fs_inet" | |
5604 | if test "$no_cache" != 1; then | |
5605 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5606 | fi | |
5607 | ||
5608 | if test "$wxUSE_FS_INET" = yes; then | |
5609 | echo "$as_me:$LINENO: result: yes" >&5 | |
5610 | echo "${ECHO_T}yes" >&6 | |
5611 | else | |
5612 | echo "$as_me:$LINENO: result: no" >&5 | |
5613 | echo "${ECHO_T}no" >&6 | |
5614 | fi | |
5615 | ||
5616 | ||
5617 | enablestring= | |
5618 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5619 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5620 | no_cache=0 | |
5621 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5622 | if test "${enable_fs_zip+set}" = set; then | |
5623 | enableval="$enable_fs_zip" | |
5624 | ||
5625 | if test "$enableval" = yes; then | |
5626 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5627 | else | |
5628 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5629 | fi | |
5630 | ||
5631 | else | |
5632 | ||
5633 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5634 | if test "x$LINE" != x ; then | |
5635 | eval "DEFAULT_$LINE" | |
5636 | else | |
5637 | no_cache=1 | |
5638 | fi | |
5639 | ||
5640 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5641 | ||
5642 | fi; | |
5643 | ||
5644 | eval "$ac_cv_use_fs_zip" | |
5645 | if test "$no_cache" != 1; then | |
5646 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5647 | fi | |
5648 | ||
5649 | if test "$wxUSE_FS_ZIP" = yes; then | |
5650 | echo "$as_me:$LINENO: result: yes" >&5 | |
5651 | echo "${ECHO_T}yes" >&6 | |
5652 | else | |
5653 | echo "$as_me:$LINENO: result: no" >&5 | |
5654 | echo "${ECHO_T}no" >&6 | |
5655 | fi | |
5656 | ||
5657 | ||
5658 | enablestring= | |
5659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5660 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5661 | no_cache=0 | |
5662 | # Check whether --enable-geometry or --disable-geometry was given. | |
5663 | if test "${enable_geometry+set}" = set; then | |
5664 | enableval="$enable_geometry" | |
5665 | ||
5666 | if test "$enableval" = yes; then | |
5667 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5668 | else | |
5669 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5670 | fi | |
5671 | ||
5672 | else | |
5673 | ||
5674 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5675 | if test "x$LINE" != x ; then | |
5676 | eval "DEFAULT_$LINE" | |
5677 | else | |
5678 | no_cache=1 | |
5679 | fi | |
5680 | ||
5681 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5682 | ||
5683 | fi; | |
5684 | ||
5685 | eval "$ac_cv_use_geometry" | |
5686 | if test "$no_cache" != 1; then | |
5687 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5688 | fi | |
5689 | ||
5690 | if test "$wxUSE_GEOMETRY" = yes; then | |
5691 | echo "$as_me:$LINENO: result: yes" >&5 | |
5692 | echo "${ECHO_T}yes" >&6 | |
5693 | else | |
5694 | echo "$as_me:$LINENO: result: no" >&5 | |
5695 | echo "${ECHO_T}no" >&6 | |
5696 | fi | |
5697 | ||
5698 | ||
5699 | enablestring= | |
5700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5701 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5702 | no_cache=0 | |
5703 | # Check whether --enable-log or --disable-log was given. | |
5704 | if test "${enable_log+set}" = set; then | |
5705 | enableval="$enable_log" | |
5706 | ||
5707 | if test "$enableval" = yes; then | |
5708 | ac_cv_use_log='wxUSE_LOG=yes' | |
5709 | else | |
5710 | ac_cv_use_log='wxUSE_LOG=no' | |
5711 | fi | |
5712 | ||
5713 | else | |
5714 | ||
5715 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5716 | if test "x$LINE" != x ; then | |
5717 | eval "DEFAULT_$LINE" | |
5718 | else | |
5719 | no_cache=1 | |
5720 | fi | |
5721 | ||
5722 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5723 | ||
5724 | fi; | |
5725 | ||
5726 | eval "$ac_cv_use_log" | |
5727 | if test "$no_cache" != 1; then | |
5728 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5729 | fi | |
5730 | ||
5731 | if test "$wxUSE_LOG" = yes; then | |
5732 | echo "$as_me:$LINENO: result: yes" >&5 | |
5733 | echo "${ECHO_T}yes" >&6 | |
5734 | else | |
5735 | echo "$as_me:$LINENO: result: no" >&5 | |
5736 | echo "${ECHO_T}no" >&6 | |
5737 | fi | |
5738 | ||
5739 | ||
5740 | enablestring= | |
5741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5742 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5743 | no_cache=0 | |
5744 | # Check whether --enable-longlong or --disable-longlong was given. | |
5745 | if test "${enable_longlong+set}" = set; then | |
5746 | enableval="$enable_longlong" | |
5747 | ||
5748 | if test "$enableval" = yes; then | |
5749 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5750 | else | |
5751 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5752 | fi | |
5753 | ||
5754 | else | |
5755 | ||
5756 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5757 | if test "x$LINE" != x ; then | |
5758 | eval "DEFAULT_$LINE" | |
5759 | else | |
5760 | no_cache=1 | |
5761 | fi | |
5762 | ||
5763 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5764 | ||
5765 | fi; | |
5766 | ||
5767 | eval "$ac_cv_use_longlong" | |
5768 | if test "$no_cache" != 1; then | |
5769 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5770 | fi | |
5771 | ||
5772 | if test "$wxUSE_LONGLONG" = yes; then | |
5773 | echo "$as_me:$LINENO: result: yes" >&5 | |
5774 | echo "${ECHO_T}yes" >&6 | |
5775 | else | |
5776 | echo "$as_me:$LINENO: result: no" >&5 | |
5777 | echo "${ECHO_T}no" >&6 | |
5778 | fi | |
5779 | ||
5780 | ||
5781 | enablestring= | |
5782 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5783 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5784 | no_cache=0 | |
5785 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5786 | if test "${enable_mimetype+set}" = set; then | |
5787 | enableval="$enable_mimetype" | |
5788 | ||
5789 | if test "$enableval" = yes; then | |
5790 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5791 | else | |
5792 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5793 | fi | |
5794 | ||
5795 | else | |
5796 | ||
5797 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5798 | if test "x$LINE" != x ; then | |
5799 | eval "DEFAULT_$LINE" | |
5800 | else | |
5801 | no_cache=1 | |
5802 | fi | |
5803 | ||
5804 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5805 | ||
5806 | fi; | |
5807 | ||
5808 | eval "$ac_cv_use_mimetype" | |
5809 | if test "$no_cache" != 1; then | |
5810 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5811 | fi | |
5812 | ||
5813 | if test "$wxUSE_MIMETYPE" = yes; then | |
5814 | echo "$as_me:$LINENO: result: yes" >&5 | |
5815 | echo "${ECHO_T}yes" >&6 | |
5816 | else | |
5817 | echo "$as_me:$LINENO: result: no" >&5 | |
5818 | echo "${ECHO_T}no" >&6 | |
5819 | fi | |
5820 | ||
5821 | ||
5822 | enablestring= | |
5823 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5824 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5825 | no_cache=0 | |
5826 | # Check whether --enable-mslu or --disable-mslu was given. | |
5827 | if test "${enable_mslu+set}" = set; then | |
5828 | enableval="$enable_mslu" | |
5829 | ||
5830 | if test "$enableval" = yes; then | |
5831 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5832 | else | |
5833 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5834 | fi | |
5835 | ||
5836 | else | |
5837 | ||
5838 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5839 | if test "x$LINE" != x ; then | |
5840 | eval "DEFAULT_$LINE" | |
5841 | else | |
5842 | no_cache=1 | |
5843 | fi | |
5844 | ||
5845 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5846 | ||
5847 | fi; | |
5848 | ||
5849 | eval "$ac_cv_use_mslu" | |
5850 | if test "$no_cache" != 1; then | |
5851 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5852 | fi | |
5853 | ||
5854 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5855 | echo "$as_me:$LINENO: result: yes" >&5 | |
5856 | echo "${ECHO_T}yes" >&6 | |
5857 | else | |
5858 | echo "$as_me:$LINENO: result: no" >&5 | |
5859 | echo "${ECHO_T}no" >&6 | |
5860 | fi | |
5861 | ||
5862 | ||
5863 | enablestring= | |
5864 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5865 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5866 | no_cache=0 | |
5867 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5868 | if test "${enable_snglinst+set}" = set; then | |
5869 | enableval="$enable_snglinst" | |
5870 | ||
5871 | if test "$enableval" = yes; then | |
5872 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5873 | else | |
5874 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5875 | fi | |
5876 | ||
5877 | else | |
5878 | ||
5879 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5880 | if test "x$LINE" != x ; then | |
5881 | eval "DEFAULT_$LINE" | |
5882 | else | |
5883 | no_cache=1 | |
5884 | fi | |
5885 | ||
5886 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5887 | ||
5888 | fi; | |
5889 | ||
5890 | eval "$ac_cv_use_snglinst" | |
5891 | if test "$no_cache" != 1; then | |
5892 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5893 | fi | |
5894 | ||
5895 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5896 | echo "$as_me:$LINENO: result: yes" >&5 | |
5897 | echo "${ECHO_T}yes" >&6 | |
5898 | else | |
5899 | echo "$as_me:$LINENO: result: no" >&5 | |
5900 | echo "${ECHO_T}no" >&6 | |
5901 | fi | |
5902 | ||
5903 | ||
5904 | enablestring= | |
07158944 VZ |
5905 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5906 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5907 | no_cache=0 |
07158944 VZ |
5908 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5909 | if test "${enable_std_iostreams+set}" = set; then | |
5910 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5911 | |
5912 | if test "$enableval" = yes; then | |
07158944 | 5913 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5914 | else |
07158944 | 5915 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5916 | fi |
5917 | ||
5918 | else | |
5919 | ||
07158944 | 5920 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5921 | if test "x$LINE" != x ; then |
5922 | eval "DEFAULT_$LINE" | |
5923 | else | |
5924 | no_cache=1 | |
5925 | fi | |
5926 | ||
07158944 | 5927 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5928 | |
5929 | fi; | |
5930 | ||
07158944 | 5931 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5932 | if test "$no_cache" != 1; then |
07158944 | 5933 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5934 | fi |
5935 | ||
07158944 | 5936 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5937 | echo "$as_me:$LINENO: result: yes" >&5 |
5938 | echo "${ECHO_T}yes" >&6 | |
5939 | else | |
5940 | echo "$as_me:$LINENO: result: no" >&5 | |
5941 | echo "${ECHO_T}no" >&6 | |
5942 | fi | |
5943 | ||
5944 | ||
59746b65 MW |
5945 | enablestring= |
5946 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5947 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5948 | no_cache=0 | |
5949 | # Check whether --enable-std_string or --disable-std_string was given. | |
5950 | if test "${enable_std_string+set}" = set; then | |
5951 | enableval="$enable_std_string" | |
5952 | ||
5953 | if test "$enableval" = yes; then | |
5954 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5955 | else | |
5956 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5957 | fi | |
5958 | ||
5959 | else | |
5960 | ||
5961 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5962 | if test "x$LINE" != x ; then | |
5963 | eval "DEFAULT_$LINE" | |
5964 | else | |
5965 | no_cache=1 | |
5966 | fi | |
5967 | ||
5968 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5969 | ||
5970 | fi; | |
5971 | ||
5972 | eval "$ac_cv_use_std_string" | |
5973 | if test "$no_cache" != 1; then | |
5974 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5975 | fi | |
5976 | ||
5977 | if test "$wxUSE_STD_STRING" = yes; then | |
5978 | echo "$as_me:$LINENO: result: yes" >&5 | |
5979 | echo "${ECHO_T}yes" >&6 | |
5980 | else | |
5981 | echo "$as_me:$LINENO: result: no" >&5 | |
5982 | echo "${ECHO_T}no" >&6 | |
5983 | fi | |
5984 | ||
5985 | ||
a848cd7e | 5986 | enablestring= |
07158944 VZ |
5987 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5988 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5989 | no_cache=0 |
07158944 VZ |
5990 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5991 | if test "${enable_stdpaths+set}" = set; then | |
5992 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5993 | |
5994 | if test "$enableval" = yes; then | |
07158944 | 5995 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5996 | else |
07158944 | 5997 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5998 | fi |
5999 | ||
6000 | else | |
6001 | ||
07158944 | 6002 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
6003 | if test "x$LINE" != x ; then |
6004 | eval "DEFAULT_$LINE" | |
6005 | else | |
6006 | no_cache=1 | |
6007 | fi | |
6008 | ||
07158944 | 6009 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
6010 | |
6011 | fi; | |
6012 | ||
07158944 | 6013 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 6014 | if test "$no_cache" != 1; then |
07158944 | 6015 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
6016 | fi |
6017 | ||
07158944 | 6018 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
6019 | echo "$as_me:$LINENO: result: yes" >&5 |
6020 | echo "${ECHO_T}yes" >&6 | |
6021 | else | |
6022 | echo "$as_me:$LINENO: result: no" >&5 | |
6023 | echo "${ECHO_T}no" >&6 | |
6024 | fi | |
6025 | ||
6026 | ||
6027 | enablestring= | |
6028 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
6029 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
6030 | no_cache=0 | |
6031 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
6032 | if test "${enable_stopwatch+set}" = set; then | |
6033 | enableval="$enable_stopwatch" | |
6034 | ||
6035 | if test "$enableval" = yes; then | |
6036 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
6037 | else | |
6038 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
6039 | fi | |
6040 | ||
6041 | else | |
6042 | ||
6043 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
6044 | if test "x$LINE" != x ; then | |
6045 | eval "DEFAULT_$LINE" | |
6046 | else | |
6047 | no_cache=1 | |
6048 | fi | |
6049 | ||
6050 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
6051 | ||
6052 | fi; | |
6053 | ||
6054 | eval "$ac_cv_use_stopwatch" | |
6055 | if test "$no_cache" != 1; then | |
6056 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
6057 | fi | |
6058 | ||
6059 | if test "$wxUSE_STOPWATCH" = yes; then | |
6060 | echo "$as_me:$LINENO: result: yes" >&5 | |
6061 | echo "${ECHO_T}yes" >&6 | |
6062 | else | |
6063 | echo "$as_me:$LINENO: result: no" >&5 | |
6064 | echo "${ECHO_T}no" >&6 | |
6065 | fi | |
6066 | ||
6067 | ||
07158944 VZ |
6068 | enablestring= |
6069 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
6070 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
6071 | no_cache=0 | |
6072 | # Check whether --enable-streams or --disable-streams was given. | |
6073 | if test "${enable_streams+set}" = set; then | |
6074 | enableval="$enable_streams" | |
6075 | ||
6076 | if test "$enableval" = yes; then | |
6077 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
6078 | else | |
6079 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
6080 | fi | |
6081 | ||
6082 | else | |
6083 | ||
6084 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
6085 | if test "x$LINE" != x ; then | |
6086 | eval "DEFAULT_$LINE" | |
6087 | else | |
6088 | no_cache=1 | |
6089 | fi | |
6090 | ||
6091 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
6092 | ||
6093 | fi; | |
6094 | ||
6095 | eval "$ac_cv_use_streams" | |
6096 | if test "$no_cache" != 1; then | |
6097 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
6098 | fi | |
6099 | ||
6100 | if test "$wxUSE_STREAMS" = yes; then | |
6101 | echo "$as_me:$LINENO: result: yes" >&5 | |
6102 | echo "${ECHO_T}yes" >&6 | |
6103 | else | |
6104 | echo "$as_me:$LINENO: result: no" >&5 | |
6105 | echo "${ECHO_T}no" >&6 | |
6106 | fi | |
6107 | ||
6108 | ||
a848cd7e SC |
6109 | enablestring= |
6110 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
6111 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
6112 | no_cache=0 | |
6113 | # Check whether --enable-system_options or --disable-system_options was given. | |
6114 | if test "${enable_system_options+set}" = set; then | |
6115 | enableval="$enable_system_options" | |
6116 | ||
6117 | if test "$enableval" = yes; then | |
6118 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
6119 | else | |
6120 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
6121 | fi | |
6122 | ||
6123 | else | |
6124 | ||
6125 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
6126 | if test "x$LINE" != x ; then | |
6127 | eval "DEFAULT_$LINE" | |
6128 | else | |
6129 | no_cache=1 | |
6130 | fi | |
6131 | ||
6132 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
6133 | ||
6134 | fi; | |
6135 | ||
6136 | eval "$ac_cv_use_system_options" | |
6137 | if test "$no_cache" != 1; then | |
6138 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
6139 | fi | |
6140 | ||
6141 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
6142 | echo "$as_me:$LINENO: result: yes" >&5 | |
6143 | echo "${ECHO_T}yes" >&6 | |
6144 | else | |
6145 | echo "$as_me:$LINENO: result: no" >&5 | |
6146 | echo "${ECHO_T}no" >&6 | |
6147 | fi | |
6148 | ||
6149 | ||
6150 | enablestring= | |
6151 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
6152 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
6153 | no_cache=0 | |
6154 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
6155 | if test "${enable_textbuf+set}" = set; then | |
6156 | enableval="$enable_textbuf" | |
6157 | ||
6158 | if test "$enableval" = yes; then | |
6159 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
6160 | else | |
6161 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
6162 | fi | |
6163 | ||
6164 | else | |
6165 | ||
6166 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
6167 | if test "x$LINE" != x ; then | |
6168 | eval "DEFAULT_$LINE" | |
6169 | else | |
6170 | no_cache=1 | |
6171 | fi | |
6172 | ||
6173 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
6174 | ||
6175 | fi; | |
6176 | ||
6177 | eval "$ac_cv_use_textbuf" | |
6178 | if test "$no_cache" != 1; then | |
6179 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
6180 | fi | |
6181 | ||
6182 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
6183 | echo "$as_me:$LINENO: result: yes" >&5 | |
6184 | echo "${ECHO_T}yes" >&6 | |
6185 | else | |
6186 | echo "$as_me:$LINENO: result: no" >&5 | |
6187 | echo "${ECHO_T}no" >&6 | |
6188 | fi | |
6189 | ||
6190 | ||
6191 | enablestring= | |
6192 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
6193 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
6194 | no_cache=0 | |
6195 | # Check whether --enable-textfile or --disable-textfile was given. | |
6196 | if test "${enable_textfile+set}" = set; then | |
6197 | enableval="$enable_textfile" | |
6198 | ||
6199 | if test "$enableval" = yes; then | |
6200 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
6201 | else | |
6202 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
6203 | fi | |
6204 | ||
6205 | else | |
6206 | ||
6207 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
6208 | if test "x$LINE" != x ; then | |
6209 | eval "DEFAULT_$LINE" | |
6210 | else | |
6211 | no_cache=1 | |
6212 | fi | |
6213 | ||
6214 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
6215 | ||
6216 | fi; | |
6217 | ||
6218 | eval "$ac_cv_use_textfile" | |
6219 | if test "$no_cache" != 1; then | |
6220 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
6221 | fi | |
6222 | ||
6223 | if test "$wxUSE_TEXTFILE" = yes; then | |
6224 | echo "$as_me:$LINENO: result: yes" >&5 | |
6225 | echo "${ECHO_T}yes" >&6 | |
6226 | else | |
6227 | echo "$as_me:$LINENO: result: no" >&5 | |
6228 | echo "${ECHO_T}no" >&6 | |
6229 | fi | |
6230 | ||
6231 | ||
6232 | enablestring= | |
6233 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
6234 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
6235 | no_cache=0 | |
6236 | # Check whether --enable-timer or --disable-timer was given. | |
6237 | if test "${enable_timer+set}" = set; then | |
6238 | enableval="$enable_timer" | |
6239 | ||
6240 | if test "$enableval" = yes; then | |
6241 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
6242 | else | |
6243 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6244 | fi | |
6245 | ||
6246 | else | |
6247 | ||
6248 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6249 | if test "x$LINE" != x ; then | |
6250 | eval "DEFAULT_$LINE" | |
6251 | else | |
6252 | no_cache=1 | |
6253 | fi | |
6254 | ||
6255 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6256 | ||
6257 | fi; | |
6258 | ||
6259 | eval "$ac_cv_use_timer" | |
6260 | if test "$no_cache" != 1; then | |
6261 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6262 | fi | |
6263 | ||
6264 | if test "$wxUSE_TIMER" = yes; then | |
6265 | echo "$as_me:$LINENO: result: yes" >&5 | |
6266 | echo "${ECHO_T}yes" >&6 | |
6267 | else | |
6268 | echo "$as_me:$LINENO: result: no" >&5 | |
6269 | echo "${ECHO_T}no" >&6 | |
6270 | fi | |
6271 | ||
6272 | ||
6273 | enablestring= | |
6274 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6275 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6276 | no_cache=0 | |
6277 | # Check whether --enable-unicode or --disable-unicode was given. | |
6278 | if test "${enable_unicode+set}" = set; then | |
6279 | enableval="$enable_unicode" | |
6280 | ||
6281 | if test "$enableval" = yes; then | |
6282 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6283 | else | |
6284 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6285 | fi | |
6286 | ||
6287 | else | |
6288 | ||
6289 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6290 | if test "x$LINE" != x ; then | |
6291 | eval "DEFAULT_$LINE" | |
6292 | else | |
6293 | no_cache=1 | |
6294 | fi | |
6295 | ||
6296 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6297 | ||
6298 | fi; | |
6299 | ||
6300 | eval "$ac_cv_use_unicode" | |
6301 | if test "$no_cache" != 1; then | |
6302 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6303 | fi | |
6304 | ||
6305 | if test "$wxUSE_UNICODE" = yes; then | |
6306 | echo "$as_me:$LINENO: result: yes" >&5 | |
6307 | echo "${ECHO_T}yes" >&6 | |
6308 | else | |
6309 | echo "$as_me:$LINENO: result: no" >&5 | |
6310 | echo "${ECHO_T}no" >&6 | |
6311 | fi | |
6312 | ||
6313 | ||
6314 | enablestring= | |
6315 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6316 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6317 | no_cache=0 | |
6318 | # Check whether --enable-sound or --disable-sound was given. | |
6319 | if test "${enable_sound+set}" = set; then | |
6320 | enableval="$enable_sound" | |
6321 | ||
6322 | if test "$enableval" = yes; then | |
6323 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6324 | else | |
6325 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6326 | fi | |
6327 | ||
6328 | else | |
6329 | ||
6330 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6331 | if test "x$LINE" != x ; then | |
6332 | eval "DEFAULT_$LINE" | |
6333 | else | |
6334 | no_cache=1 | |
6335 | fi | |
6336 | ||
6337 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6338 | ||
6339 | fi; | |
6340 | ||
6341 | eval "$ac_cv_use_sound" | |
6342 | if test "$no_cache" != 1; then | |
6343 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6344 | fi | |
6345 | ||
6346 | if test "$wxUSE_SOUND" = yes; then | |
6347 | echo "$as_me:$LINENO: result: yes" >&5 | |
6348 | echo "${ECHO_T}yes" >&6 | |
6349 | else | |
6350 | echo "$as_me:$LINENO: result: no" >&5 | |
6351 | echo "${ECHO_T}no" >&6 | |
6352 | fi | |
6353 | ||
6354 | ||
3b57de8b RL |
6355 | enablestring= |
6356 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6357 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6358 | no_cache=0 | |
6359 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6360 | if test "${enable_mediactrl+set}" = set; then | |
6361 | enableval="$enable_mediactrl" | |
6362 | ||
6363 | if test "$enableval" = yes; then | |
6364 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6365 | else | |
6366 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6367 | fi | |
6368 | ||
6369 | else | |
6370 | ||
6371 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6372 | if test "x$LINE" != x ; then | |
6373 | eval "DEFAULT_$LINE" | |
6374 | else | |
6375 | no_cache=1 | |
6376 | fi | |
6377 | ||
6378 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6379 | ||
6380 | fi; | |
6381 | ||
6382 | eval "$ac_cv_use_mediactrl" | |
6383 | if test "$no_cache" != 1; then | |
6384 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6385 | fi | |
6386 | ||
6387 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6388 | echo "$as_me:$LINENO: result: yes" >&5 | |
6389 | echo "${ECHO_T}yes" >&6 | |
6390 | else | |
6391 | echo "$as_me:$LINENO: result: no" >&5 | |
6392 | echo "${ECHO_T}no" >&6 | |
6393 | fi | |
6394 | ||
6395 | ||
f10e38c4 VZ |
6396 | enablestring= |
6397 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5 | |
6398 | echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6 | |
6399 | no_cache=0 | |
6400 | # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given. | |
6401 | if test "${enable_gstreamer8+set}" = set; then | |
6402 | enableval="$enable_gstreamer8" | |
6403 | ||
6404 | if test "$enableval" = yes; then | |
6405 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes' | |
6406 | else | |
6407 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no' | |
6408 | fi | |
6409 | ||
6410 | else | |
6411 | ||
6412 | LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}` | |
6413 | if test "x$LINE" != x ; then | |
6414 | eval "DEFAULT_$LINE" | |
6415 | else | |
6416 | no_cache=1 | |
6417 | fi | |
6418 | ||
6419 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8 | |
6420 | ||
6421 | fi; | |
6422 | ||
6423 | eval "$ac_cv_use_gstreamer8" | |
6424 | if test "$no_cache" != 1; then | |
6425 | echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp | |
6426 | fi | |
6427 | ||
6428 | if test "$wxUSE_GSTREAMER8" = yes; then | |
6429 | echo "$as_me:$LINENO: result: yes" >&5 | |
6430 | echo "${ECHO_T}yes" >&6 | |
6431 | else | |
6432 | echo "$as_me:$LINENO: result: no" >&5 | |
6433 | echo "${ECHO_T}no" >&6 | |
6434 | fi | |
6435 | ||
6436 | ||
a848cd7e | 6437 | enablestring= |
8b6682b9 JS |
6438 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5 |
6439 | echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6 | |
a848cd7e | 6440 | no_cache=0 |
8b6682b9 JS |
6441 | # Check whether --enable-printfposparam or --disable-printfposparam was given. |
6442 | if test "${enable_printfposparam+set}" = set; then | |
6443 | enableval="$enable_printfposparam" | |
a848cd7e SC |
6444 | |
6445 | if test "$enableval" = yes; then | |
8b6682b9 | 6446 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes' |
a848cd7e | 6447 | else |
8b6682b9 | 6448 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no' |
a848cd7e SC |
6449 | fi |
6450 | ||
6451 | else | |
6452 | ||
8b6682b9 | 6453 | LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}` |
a848cd7e SC |
6454 | if test "x$LINE" != x ; then |
6455 | eval "DEFAULT_$LINE" | |
6456 | else | |
6457 | no_cache=1 | |
6458 | fi | |
6459 | ||
8b6682b9 | 6460 | ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS |
a848cd7e SC |
6461 | |
6462 | fi; | |
6463 | ||
8b6682b9 | 6464 | eval "$ac_cv_use_printfposparam" |
a848cd7e | 6465 | if test "$no_cache" != 1; then |
8b6682b9 | 6466 | echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
6467 | fi |
6468 | ||
8b6682b9 | 6469 | if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then |
a848cd7e SC |
6470 | echo "$as_me:$LINENO: result: yes" >&5 |
6471 | echo "${ECHO_T}yes" >&6 | |
6472 | else | |
6473 | echo "$as_me:$LINENO: result: no" >&5 | |
6474 | echo "${ECHO_T}no" >&6 | |
6475 | fi | |
6476 | ||
6477 | ||
6478 | enablestring= | |
6479 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6480 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6481 | no_cache=0 | |
6482 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6483 | if test "${enable_zipstream+set}" = set; then | |
6484 | enableval="$enable_zipstream" | |
6485 | ||
6486 | if test "$enableval" = yes; then | |
6487 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6488 | else | |
6489 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6490 | fi | |
6491 | ||
6492 | else | |
6493 | ||
6494 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6495 | if test "x$LINE" != x ; then | |
6496 | eval "DEFAULT_$LINE" | |
6497 | else | |
6498 | no_cache=1 | |
6499 | fi | |
6500 | ||
6501 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6502 | ||
6503 | fi; | |
6504 | ||
6505 | eval "$ac_cv_use_zipstream" | |
6506 | if test "$no_cache" != 1; then | |
6507 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6508 | fi | |
6509 | ||
6510 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6511 | echo "$as_me:$LINENO: result: yes" >&5 | |
6512 | echo "${ECHO_T}yes" >&6 | |
6513 | else | |
6514 | echo "$as_me:$LINENO: result: no" >&5 | |
6515 | echo "${ECHO_T}no" >&6 | |
6516 | fi | |
6517 | ||
6518 | ||
a848cd7e SC |
6519 | |
6520 | enablestring= | |
6521 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6522 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6523 | no_cache=0 | |
6524 | # Check whether --enable-url or --disable-url was given. | |
6525 | if test "${enable_url+set}" = set; then | |
6526 | enableval="$enable_url" | |
6527 | ||
6528 | if test "$enableval" = yes; then | |
6529 | ac_cv_use_url='wxUSE_URL=yes' | |
6530 | else | |
6531 | ac_cv_use_url='wxUSE_URL=no' | |
6532 | fi | |
6533 | ||
6534 | else | |
6535 | ||
6536 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6537 | if test "x$LINE" != x ; then | |
6538 | eval "DEFAULT_$LINE" | |
6539 | else | |
6540 | no_cache=1 | |
6541 | fi | |
6542 | ||
6543 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6544 | ||
6545 | fi; | |
6546 | ||
6547 | eval "$ac_cv_use_url" | |
6548 | if test "$no_cache" != 1; then | |
6549 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6550 | fi | |
6551 | ||
6552 | if test "$wxUSE_URL" = yes; then | |
6553 | echo "$as_me:$LINENO: result: yes" >&5 | |
6554 | echo "${ECHO_T}yes" >&6 | |
6555 | else | |
6556 | echo "$as_me:$LINENO: result: no" >&5 | |
6557 | echo "${ECHO_T}no" >&6 | |
6558 | fi | |
6559 | ||
6560 | ||
ca5c6ac3 VZ |
6561 | enablestring= |
6562 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5 | |
6563 | echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6 | |
6564 | no_cache=0 | |
6565 | # Check whether --enable-variant or --disable-variant was given. | |
6566 | if test "${enable_variant+set}" = set; then | |
6567 | enableval="$enable_variant" | |
6568 | ||
6569 | if test "$enableval" = yes; then | |
6570 | ac_cv_use_variant='wxUSE_VARIANT=yes' | |
6571 | else | |
6572 | ac_cv_use_variant='wxUSE_VARIANT=no' | |
6573 | fi | |
6574 | ||
6575 | else | |
6576 | ||
6577 | LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}` | |
6578 | if test "x$LINE" != x ; then | |
6579 | eval "DEFAULT_$LINE" | |
6580 | else | |
6581 | no_cache=1 | |
6582 | fi | |
6583 | ||
6584 | ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT | |
6585 | ||
6586 | fi; | |
6587 | ||
6588 | eval "$ac_cv_use_variant" | |
6589 | if test "$no_cache" != 1; then | |
6590 | echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp | |
6591 | fi | |
6592 | ||
6593 | if test "$wxUSE_VARIANT" = yes; then | |
6594 | echo "$as_me:$LINENO: result: yes" >&5 | |
6595 | echo "${ECHO_T}yes" >&6 | |
6596 | else | |
6597 | echo "$as_me:$LINENO: result: no" >&5 | |
6598 | echo "${ECHO_T}no" >&6 | |
6599 | fi | |
6600 | ||
6601 | ||
a848cd7e SC |
6602 | enablestring= |
6603 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6604 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6605 | no_cache=0 | |
6606 | # Check whether --enable-protocol or --disable-protocol was given. | |
6607 | if test "${enable_protocol+set}" = set; then | |
6608 | enableval="$enable_protocol" | |
6609 | ||
6610 | if test "$enableval" = yes; then | |
6611 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6612 | else | |
6613 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6614 | fi | |
6615 | ||
6616 | else | |
6617 | ||
6618 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6619 | if test "x$LINE" != x ; then | |
6620 | eval "DEFAULT_$LINE" | |
6621 | else | |
6622 | no_cache=1 | |
6623 | fi | |
6624 | ||
6625 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6626 | ||
6627 | fi; | |
6628 | ||
6629 | eval "$ac_cv_use_protocol" | |
6630 | if test "$no_cache" != 1; then | |
6631 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6632 | fi | |
6633 | ||
6634 | if test "$wxUSE_PROTOCOL" = yes; then | |
6635 | echo "$as_me:$LINENO: result: yes" >&5 | |
6636 | echo "${ECHO_T}yes" >&6 | |
6637 | else | |
6638 | echo "$as_me:$LINENO: result: no" >&5 | |
6639 | echo "${ECHO_T}no" >&6 | |
6640 | fi | |
6641 | ||
6642 | ||
6643 | enablestring= | |
6644 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6645 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6646 | no_cache=0 | |
6647 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6648 | if test "${enable_protocol_http+set}" = set; then | |
6649 | enableval="$enable_protocol_http" | |
6650 | ||
6651 | if test "$enableval" = yes; then | |
6652 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6653 | else | |
6654 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6655 | fi | |
6656 | ||
6657 | else | |
6658 | ||
6659 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6660 | if test "x$LINE" != x ; then | |
6661 | eval "DEFAULT_$LINE" | |
6662 | else | |
6663 | no_cache=1 | |
6664 | fi | |
6665 | ||
6666 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6667 | ||
6668 | fi; | |
6669 | ||
6670 | eval "$ac_cv_use_protocol_http" | |
6671 | if test "$no_cache" != 1; then | |
6672 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6673 | fi | |
6674 | ||
6675 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6676 | echo "$as_me:$LINENO: result: yes" >&5 | |
6677 | echo "${ECHO_T}yes" >&6 | |
6678 | else | |
6679 | echo "$as_me:$LINENO: result: no" >&5 | |
6680 | echo "${ECHO_T}no" >&6 | |
6681 | fi | |
6682 | ||
6683 | ||
6684 | enablestring= | |
6685 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6686 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6687 | no_cache=0 | |
6688 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6689 | if test "${enable_protocol_ftp+set}" = set; then | |
6690 | enableval="$enable_protocol_ftp" | |
6691 | ||
6692 | if test "$enableval" = yes; then | |
6693 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6694 | else | |
6695 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6696 | fi | |
6697 | ||
6698 | else | |
6699 | ||
6700 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6701 | if test "x$LINE" != x ; then | |
6702 | eval "DEFAULT_$LINE" | |
6703 | else | |
6704 | no_cache=1 | |
6705 | fi | |
6706 | ||
6707 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6708 | ||
6709 | fi; | |
6710 | ||
6711 | eval "$ac_cv_use_protocol_ftp" | |
6712 | if test "$no_cache" != 1; then | |
6713 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6714 | fi | |
6715 | ||
6716 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6717 | echo "$as_me:$LINENO: result: yes" >&5 | |
6718 | echo "${ECHO_T}yes" >&6 | |
6719 | else | |
6720 | echo "$as_me:$LINENO: result: no" >&5 | |
6721 | echo "${ECHO_T}no" >&6 | |
6722 | fi | |
6723 | ||
6724 | ||
6725 | enablestring= | |
6726 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6727 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6728 | no_cache=0 | |
6729 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6730 | if test "${enable_protocol_file+set}" = set; then | |
6731 | enableval="$enable_protocol_file" | |
6732 | ||
6733 | if test "$enableval" = yes; then | |
6734 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6735 | else | |
6736 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6737 | fi | |
6738 | ||
6739 | else | |
6740 | ||
6741 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6742 | if test "x$LINE" != x ; then | |
6743 | eval "DEFAULT_$LINE" | |
6744 | else | |
6745 | no_cache=1 | |
6746 | fi | |
6747 | ||
6748 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6749 | ||
6750 | fi; | |
6751 | ||
6752 | eval "$ac_cv_use_protocol_file" | |
6753 | if test "$no_cache" != 1; then | |
6754 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6755 | fi | |
6756 | ||
6757 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6758 | echo "$as_me:$LINENO: result: yes" >&5 | |
6759 | echo "${ECHO_T}yes" >&6 | |
6760 | else | |
6761 | echo "$as_me:$LINENO: result: no" >&5 | |
6762 | echo "${ECHO_T}no" >&6 | |
6763 | fi | |
6764 | ||
6765 | ||
6766 | ||
6767 | ||
6768 | ||
6769 | enablestring= | |
6770 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6771 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6772 | no_cache=0 | |
6773 | # Check whether --enable-threads or --disable-threads was given. | |
6774 | if test "${enable_threads+set}" = set; then | |
6775 | enableval="$enable_threads" | |
6776 | ||
6777 | if test "$enableval" = yes; then | |
6778 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6779 | else | |
6780 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6781 | fi | |
6782 | ||
6783 | else | |
6784 | ||
6785 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6786 | if test "x$LINE" != x ; then | |
6787 | eval "DEFAULT_$LINE" | |
6788 | else | |
6789 | no_cache=1 | |
6790 | fi | |
6791 | ||
6792 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6793 | ||
6794 | fi; | |
6795 | ||
6796 | eval "$ac_cv_use_threads" | |
6797 | if test "$no_cache" != 1; then | |
6798 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6799 | fi | |
6800 | ||
6801 | if test "$wxUSE_THREADS" = yes; then | |
6802 | echo "$as_me:$LINENO: result: yes" >&5 | |
6803 | echo "${ECHO_T}yes" >&6 | |
6804 | else | |
6805 | echo "$as_me:$LINENO: result: no" >&5 | |
6806 | echo "${ECHO_T}no" >&6 | |
6807 | fi | |
6808 | ||
6809 | ||
6810 | if test "$wxUSE_GUI" = "yes"; then | |
6811 | ||
6812 | ||
6813 | ||
6814 | enablestring= | |
6815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6816 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6817 | no_cache=0 | |
6818 | # Check whether --enable-docview or --disable-docview was given. | |
6819 | if test "${enable_docview+set}" = set; then | |
6820 | enableval="$enable_docview" | |
6821 | ||
6822 | if test "$enableval" = yes; then | |
6823 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6824 | else | |
6825 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6826 | fi | |
6827 | ||
6828 | else | |
6829 | ||
6830 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6831 | if test "x$LINE" != x ; then | |
6832 | eval "DEFAULT_$LINE" | |
6833 | else | |
6834 | no_cache=1 | |
6835 | fi | |
6836 | ||
6837 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6838 | ||
6839 | fi; | |
6840 | ||
6841 | eval "$ac_cv_use_docview" | |
6842 | if test "$no_cache" != 1; then | |
6843 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6844 | fi | |
6845 | ||
6846 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6847 | echo "$as_me:$LINENO: result: yes" >&5 | |
6848 | echo "${ECHO_T}yes" >&6 | |
6849 | else | |
6850 | echo "$as_me:$LINENO: result: no" >&5 | |
6851 | echo "${ECHO_T}no" >&6 | |
6852 | fi | |
6853 | ||
6854 | ||
6855 | enablestring= | |
6856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6857 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6858 | no_cache=0 | |
6859 | # Check whether --enable-help or --disable-help was given. | |
6860 | if test "${enable_help+set}" = set; then | |
6861 | enableval="$enable_help" | |
6862 | ||
6863 | if test "$enableval" = yes; then | |
6864 | ac_cv_use_help='wxUSE_HELP=yes' | |
6865 | else | |
6866 | ac_cv_use_help='wxUSE_HELP=no' | |
6867 | fi | |
6868 | ||
6869 | else | |
6870 | ||
6871 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6872 | if test "x$LINE" != x ; then | |
6873 | eval "DEFAULT_$LINE" | |
6874 | else | |
6875 | no_cache=1 | |
6876 | fi | |
6877 | ||
6878 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6879 | ||
6880 | fi; | |
6881 | ||
6882 | eval "$ac_cv_use_help" | |
6883 | if test "$no_cache" != 1; then | |
6884 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6885 | fi | |
6886 | ||
6887 | if test "$wxUSE_HELP" = yes; then | |
6888 | echo "$as_me:$LINENO: result: yes" >&5 | |
6889 | echo "${ECHO_T}yes" >&6 | |
6890 | else | |
6891 | echo "$as_me:$LINENO: result: no" >&5 | |
6892 | echo "${ECHO_T}no" >&6 | |
6893 | fi | |
6894 | ||
6895 | ||
6896 | enablestring= | |
6897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6898 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6899 | no_cache=0 | |
6900 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6901 | if test "${enable_mshtmlhelp+set}" = set; then | |
6902 | enableval="$enable_mshtmlhelp" | |
6903 | ||
6904 | if test "$enableval" = yes; then | |
6905 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6906 | else | |
6907 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6908 | fi | |
6909 | ||
6910 | else | |
6911 | ||
6912 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6913 | if test "x$LINE" != x ; then | |
6914 | eval "DEFAULT_$LINE" | |
6915 | else | |
6916 | no_cache=1 | |
6917 | fi | |
6918 | ||
6919 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6920 | ||
6921 | fi; | |
6922 | ||
6923 | eval "$ac_cv_use_mshtmlhelp" | |
6924 | if test "$no_cache" != 1; then | |
6925 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6926 | fi | |
6927 | ||
6928 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6929 | echo "$as_me:$LINENO: result: yes" >&5 | |
6930 | echo "${ECHO_T}yes" >&6 | |
6931 | else | |
6932 | echo "$as_me:$LINENO: result: no" >&5 | |
6933 | echo "${ECHO_T}no" >&6 | |
6934 | fi | |
6935 | ||
6936 | ||
6937 | enablestring= | |
6938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6939 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6940 | no_cache=0 | |
6941 | # Check whether --enable-html or --disable-html was given. | |
6942 | if test "${enable_html+set}" = set; then | |
6943 | enableval="$enable_html" | |
6944 | ||
6945 | if test "$enableval" = yes; then | |
6946 | ac_cv_use_html='wxUSE_HTML=yes' | |
6947 | else | |
6948 | ac_cv_use_html='wxUSE_HTML=no' | |
6949 | fi | |
6950 | ||
6951 | else | |
6952 | ||
6953 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6954 | if test "x$LINE" != x ; then | |
6955 | eval "DEFAULT_$LINE" | |
6956 | else | |
6957 | no_cache=1 | |
6958 | fi | |
6959 | ||
6960 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6961 | ||
6962 | fi; | |
6963 | ||
6964 | eval "$ac_cv_use_html" | |
6965 | if test "$no_cache" != 1; then | |
6966 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6967 | fi | |
6968 | ||
6969 | if test "$wxUSE_HTML" = yes; then | |
6970 | echo "$as_me:$LINENO: result: yes" >&5 | |
6971 | echo "${ECHO_T}yes" >&6 | |
6972 | else | |
6973 | echo "$as_me:$LINENO: result: no" >&5 | |
6974 | echo "${ECHO_T}no" >&6 | |
6975 | fi | |
6976 | ||
6977 | ||
6978 | enablestring= | |
6979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6980 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6981 | no_cache=0 | |
6982 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6983 | if test "${enable_htmlhelp+set}" = set; then | |
6984 | enableval="$enable_htmlhelp" | |
6985 | ||
6986 | if test "$enableval" = yes; then | |
6987 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6988 | else | |
6989 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6990 | fi | |
6991 | ||
6992 | else | |
6993 | ||
6994 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6995 | if test "x$LINE" != x ; then | |
6996 | eval "DEFAULT_$LINE" | |
6997 | else | |
6998 | no_cache=1 | |
6999 | fi | |
7000 | ||
7001 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
7002 | ||
7003 | fi; | |
7004 | ||
7005 | eval "$ac_cv_use_htmlhelp" | |
7006 | if test "$no_cache" != 1; then | |
7007 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
7008 | fi | |
7009 | ||
7010 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
7011 | echo "$as_me:$LINENO: result: yes" >&5 | |
7012 | echo "${ECHO_T}yes" >&6 | |
7013 | else | |
7014 | echo "$as_me:$LINENO: result: no" >&5 | |
7015 | echo "${ECHO_T}no" >&6 | |
7016 | fi | |
7017 | ||
7018 | ||
9a8f0513 VS |
7019 | enablestring= |
7020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
7021 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
7022 | no_cache=0 | |
7023 | # Check whether --enable-xrc or --disable-xrc was given. | |
7024 | if test "${enable_xrc+set}" = set; then | |
7025 | enableval="$enable_xrc" | |
7026 | ||
7027 | if test "$enableval" = yes; then | |
7028 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
7029 | else | |
7030 | ac_cv_use_xrc='wxUSE_XRC=no' | |
7031 | fi | |
7032 | ||
7033 | else | |
7034 | ||
7035 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
7036 | if test "x$LINE" != x ; then | |
7037 | eval "DEFAULT_$LINE" | |
7038 | else | |
7039 | no_cache=1 | |
7040 | fi | |
7041 | ||
7042 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
7043 | ||
7044 | fi; | |
7045 | ||
7046 | eval "$ac_cv_use_xrc" | |
7047 | if test "$no_cache" != 1; then | |
7048 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
7049 | fi | |
7050 | ||
7051 | if test "$wxUSE_XRC" = yes; then | |
7052 | echo "$as_me:$LINENO: result: yes" >&5 | |
7053 | echo "${ECHO_T}yes" >&6 | |
7054 | else | |
7055 | echo "$as_me:$LINENO: result: no" >&5 | |
7056 | echo "${ECHO_T}no" >&6 | |
7057 | fi | |
7058 | ||
7059 | ||
3f60522a JS |
7060 | enablestring= |
7061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5 | |
7062 | echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6 | |
7063 | no_cache=0 | |
7064 | # Check whether --enable-aui or --disable-aui was given. | |
7065 | if test "${enable_aui+set}" = set; then | |
7066 | enableval="$enable_aui" | |
7067 | ||
7068 | if test "$enableval" = yes; then | |
7069 | ac_cv_use_aui='wxUSE_AUI=yes' | |
7070 | else | |
7071 | ac_cv_use_aui='wxUSE_AUI=no' | |
7072 | fi | |
7073 | ||
7074 | else | |
7075 | ||
7076 | LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}` | |
7077 | if test "x$LINE" != x ; then | |
7078 | eval "DEFAULT_$LINE" | |
7079 | else | |
7080 | no_cache=1 | |
7081 | fi | |
7082 | ||
7083 | ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI | |
7084 | ||
7085 | fi; | |
7086 | ||
7087 | eval "$ac_cv_use_aui" | |
7088 | if test "$no_cache" != 1; then | |
7089 | echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp | |
7090 | fi | |
7091 | ||
7092 | if test "$wxUSE_AUI" = yes; then | |
7093 | echo "$as_me:$LINENO: result: yes" >&5 | |
7094 | echo "${ECHO_T}yes" >&6 | |
7095 | else | |
7096 | echo "$as_me:$LINENO: result: no" >&5 | |
7097 | echo "${ECHO_T}no" >&6 | |
7098 | fi | |
7099 | ||
7100 | ||
a848cd7e SC |
7101 | enablestring= |
7102 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
7103 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
7104 | no_cache=0 | |
7105 | # Check whether --enable-constraints or --disable-constraints was given. | |
7106 | if test "${enable_constraints+set}" = set; then | |
7107 | enableval="$enable_constraints" | |
7108 | ||
7109 | if test "$enableval" = yes; then | |
7110 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
7111 | else | |
7112 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
7113 | fi | |
7114 | ||
7115 | else | |
7116 | ||
7117 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
7118 | if test "x$LINE" != x ; then | |
7119 | eval "DEFAULT_$LINE" | |
7120 | else | |
7121 | no_cache=1 | |
7122 | fi | |
7123 | ||
7124 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
7125 | ||
7126 | fi; | |
7127 | ||
7128 | eval "$ac_cv_use_constraints" | |
7129 | if test "$no_cache" != 1; then | |
7130 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
7131 | fi | |
7132 | ||
7133 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
7134 | echo "$as_me:$LINENO: result: yes" >&5 | |
7135 | echo "${ECHO_T}yes" >&6 | |
7136 | else | |
7137 | echo "$as_me:$LINENO: result: no" >&5 | |
7138 | echo "${ECHO_T}no" >&6 | |
7139 | fi | |
7140 | ||
7141 | ||
7142 | enablestring= | |
7143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
7144 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
7145 | no_cache=0 | |
7146 | # Check whether --enable-printarch or --disable-printarch was given. | |
7147 | if test "${enable_printarch+set}" = set; then | |
7148 | enableval="$enable_printarch" | |
7149 | ||
7150 | if test "$enableval" = yes; then | |
7151 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
7152 | else | |
7153 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
7154 | fi | |
7155 | ||
7156 | else | |
7157 | ||
7158 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
7159 | if test "x$LINE" != x ; then | |
7160 | eval "DEFAULT_$LINE" | |
7161 | else | |
7162 | no_cache=1 | |
7163 | fi | |
7164 | ||
7165 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
7166 | ||
7167 | fi; | |
7168 | ||
7169 | eval "$ac_cv_use_printarch" | |
7170 | if test "$no_cache" != 1; then | |
7171 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
7172 | fi | |
7173 | ||
7174 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
7175 | echo "$as_me:$LINENO: result: yes" >&5 | |
7176 | echo "${ECHO_T}yes" >&6 | |
7177 | else | |
7178 | echo "$as_me:$LINENO: result: no" >&5 | |
7179 | echo "${ECHO_T}no" >&6 | |
7180 | fi | |
7181 | ||
7182 | ||
7183 | enablestring= | |
7184 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
7185 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
7186 | no_cache=0 | |
7187 | # Check whether --enable-mdi or --disable-mdi was given. | |
7188 | if test "${enable_mdi+set}" = set; then | |
7189 | enableval="$enable_mdi" | |
7190 | ||
7191 | if test "$enableval" = yes; then | |
8a7b1113 | 7192 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 7193 | else |
8a7b1113 | 7194 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
7195 | fi |
7196 | ||
7197 | else | |
7198 | ||
8a7b1113 | 7199 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
7200 | if test "x$LINE" != x ; then |
7201 | eval "DEFAULT_$LINE" | |
7202 | else | |
7203 | no_cache=1 | |
7204 | fi | |
7205 | ||
8a7b1113 | 7206 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
7207 | |
7208 | fi; | |
7209 | ||
7210 | eval "$ac_cv_use_mdi" | |
7211 | if test "$no_cache" != 1; then | |
7212 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
7213 | fi | |
7214 | ||
8a7b1113 VZ |
7215 | if test "$wxUSE_MDI" = yes; then |
7216 | echo "$as_me:$LINENO: result: yes" >&5 | |
7217 | echo "${ECHO_T}yes" >&6 | |
7218 | else | |
7219 | echo "$as_me:$LINENO: result: no" >&5 | |
7220 | echo "${ECHO_T}no" >&6 | |
7221 | fi | |
7222 | ||
7223 | ||
7224 | enablestring= | |
7225 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
7226 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
7227 | no_cache=0 | |
7228 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
7229 | if test "${enable_mdidoc+set}" = set; then | |
7230 | enableval="$enable_mdidoc" | |
7231 | ||
7232 | if test "$enableval" = yes; then | |
7233 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
7234 | else | |
7235 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
7236 | fi | |
7237 | ||
7238 | else | |
7239 | ||
7240 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
7241 | if test "x$LINE" != x ; then | |
7242 | eval "DEFAULT_$LINE" | |
7243 | else | |
7244 | no_cache=1 | |
7245 | fi | |
7246 | ||
7247 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
7248 | ||
7249 | fi; | |
7250 | ||
7251 | eval "$ac_cv_use_mdidoc" | |
7252 | if test "$no_cache" != 1; then | |
7253 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
7254 | fi | |
7255 | ||
a848cd7e SC |
7256 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
7257 | echo "$as_me:$LINENO: result: yes" >&5 | |
7258 | echo "${ECHO_T}yes" >&6 | |
7259 | else | |
7260 | echo "$as_me:$LINENO: result: no" >&5 | |
7261 | echo "${ECHO_T}no" >&6 | |
7262 | fi | |
7263 | ||
7264 | ||
7265 | enablestring= | |
7266 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
7267 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
7268 | no_cache=0 | |
7269 | # Check whether --enable-loggui or --disable-loggui was given. | |
7270 | if test "${enable_loggui+set}" = set; then | |
7271 | enableval="$enable_loggui" | |
7272 | ||
7273 | if test "$enableval" = yes; then | |
7274 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
7275 | else | |
7276 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
7277 | fi | |
7278 | ||
7279 | else | |
7280 | ||
7281 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
7282 | if test "x$LINE" != x ; then | |
7283 | eval "DEFAULT_$LINE" | |
7284 | else | |
7285 | no_cache=1 | |
7286 | fi | |
7287 | ||
7288 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
7289 | ||
7290 | fi; | |
7291 | ||
7292 | eval "$ac_cv_use_loggui" | |
7293 | if test "$no_cache" != 1; then | |
7294 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
7295 | fi | |
7296 | ||
7297 | if test "$wxUSE_LOGGUI" = yes; then | |
7298 | echo "$as_me:$LINENO: result: yes" >&5 | |
7299 | echo "${ECHO_T}yes" >&6 | |
7300 | else | |
7301 | echo "$as_me:$LINENO: result: no" >&5 | |
7302 | echo "${ECHO_T}no" >&6 | |
7303 | fi | |
7304 | ||
7305 | ||
7306 | enablestring= | |
7307 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
7308 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
7309 | no_cache=0 | |
7310 | # Check whether --enable-logwin or --disable-logwin was given. | |
7311 | if test "${enable_logwin+set}" = set; then | |
7312 | enableval="$enable_logwin" | |
7313 | ||
7314 | if test "$enableval" = yes; then | |
7315 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
7316 | else | |
7317 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
7318 | fi | |
7319 | ||
7320 | else | |
7321 | ||
7322 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
7323 | if test "x$LINE" != x ; then | |
7324 | eval "DEFAULT_$LINE" | |
7325 | else | |
7326 | no_cache=1 | |
7327 | fi | |
7328 | ||
7329 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
7330 | ||
7331 | fi; | |
7332 | ||
7333 | eval "$ac_cv_use_logwin" | |
7334 | if test "$no_cache" != 1; then | |
7335 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
7336 | fi | |
7337 | ||
7338 | if test "$wxUSE_LOGWINDOW" = yes; then | |
7339 | echo "$as_me:$LINENO: result: yes" >&5 | |
7340 | echo "${ECHO_T}yes" >&6 | |
7341 | else | |
7342 | echo "$as_me:$LINENO: result: no" >&5 | |
7343 | echo "${ECHO_T}no" >&6 | |
7344 | fi | |
7345 | ||
7346 | ||
7347 | enablestring= | |
7348 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
7349 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
7350 | no_cache=0 | |
7351 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
7352 | if test "${enable_logdialog+set}" = set; then | |
7353 | enableval="$enable_logdialog" | |
7354 | ||
7355 | if test "$enableval" = yes; then | |
7356 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
7357 | else | |
7358 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
7359 | fi | |
7360 | ||
7361 | else | |
7362 | ||
7363 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
7364 | if test "x$LINE" != x ; then | |
7365 | eval "DEFAULT_$LINE" | |
7366 | else | |
7367 | no_cache=1 | |
7368 | fi | |
7369 | ||
7370 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7371 | ||
7372 | fi; | |
7373 | ||
7374 | eval "$ac_cv_use_logdialog" | |
7375 | if test "$no_cache" != 1; then | |
7376 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7377 | fi | |
7378 | ||
7379 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7380 | echo "$as_me:$LINENO: result: yes" >&5 | |
7381 | echo "${ECHO_T}yes" >&6 | |
7382 | else | |
7383 | echo "$as_me:$LINENO: result: no" >&5 | |
7384 | echo "${ECHO_T}no" >&6 | |
7385 | fi | |
7386 | ||
7387 | ||
646b6ec1 VS |
7388 | enablestring= |
7389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7390 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7391 | no_cache=0 | |
7392 | # Check whether --enable-webkit or --disable-webkit was given. | |
7393 | if test "${enable_webkit+set}" = set; then | |
7394 | enableval="$enable_webkit" | |
7395 | ||
7396 | if test "$enableval" = yes; then | |
7397 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7398 | else | |
7399 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7400 | fi | |
7401 | ||
7402 | else | |
7403 | ||
7404 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7405 | if test "x$LINE" != x ; then | |
7406 | eval "DEFAULT_$LINE" | |
7407 | else | |
7408 | no_cache=1 | |
7409 | fi | |
7410 | ||
7411 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7412 | ||
7413 | fi; | |
7414 | ||
7415 | eval "$ac_cv_use_webkit" | |
7416 | if test "$no_cache" != 1; then | |
7417 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7418 | fi | |
7419 | ||
7420 | if test "$wxUSE_WEBKIT" = yes; then | |
7421 | echo "$as_me:$LINENO: result: yes" >&5 | |
7422 | echo "${ECHO_T}yes" >&6 | |
7423 | else | |
7424 | echo "$as_me:$LINENO: result: no" >&5 | |
7425 | echo "${ECHO_T}no" >&6 | |
7426 | fi | |
7427 | ||
7428 | ||
91dea314 MW |
7429 | enablestring= |
7430 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7431 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7432 | no_cache=0 | |
7433 | # Check whether --enable-html or --disable-html was given. | |
7434 | if test "${enable_html+set}" = set; then | |
7435 | enableval="$enable_html" | |
7436 | ||
7437 | if test "$enableval" = yes; then | |
7438 | ac_cv_use_html='wxUSE_RICHTEXT=yes' | |
7439 | else | |
7440 | ac_cv_use_html='wxUSE_RICHTEXT=no' | |
7441 | fi | |
7442 | ||
7443 | else | |
7444 | ||
7445 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7446 | if test "x$LINE" != x ; then | |
7447 | eval "DEFAULT_$LINE" | |
7448 | else | |
7449 | no_cache=1 | |
7450 | fi | |
7451 | ||
7452 | ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT | |
7453 | ||
7454 | fi; | |
7455 | ||
7456 | eval "$ac_cv_use_html" | |
7457 | if test "$no_cache" != 1; then | |
7458 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7459 | fi | |
7460 | ||
7461 | if test "$wxUSE_RICHTEXT" = yes; then | |
7462 | echo "$as_me:$LINENO: result: yes" >&5 | |
7463 | echo "${ECHO_T}yes" >&6 | |
7464 | else | |
7465 | echo "$as_me:$LINENO: result: no" >&5 | |
7466 | echo "${ECHO_T}no" >&6 | |
7467 | fi | |
7468 | ||
7469 | ||
f43426c1 RD |
7470 | enablestring= |
7471 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5 | |
7472 | echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6 | |
7473 | no_cache=0 | |
7474 | # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given. | |
7475 | if test "${enable_graphics_ctx+set}" = set; then | |
7476 | enableval="$enable_graphics_ctx" | |
7477 | ||
7478 | if test "$enableval" = yes; then | |
7479 | ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes' | |
7480 | else | |
7481 | ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no' | |
7482 | fi | |
7483 | ||
7484 | else | |
7485 | ||
7486 | LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}` | |
7487 | if test "x$LINE" != x ; then | |
7488 | eval "DEFAULT_$LINE" | |
7489 | else | |
7490 | no_cache=1 | |
7491 | fi | |
7492 | ||
7493 | ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT | |
7494 | ||
7495 | fi; | |
7496 | ||
7497 | eval "$ac_cv_use_graphics_ctx" | |
7498 | if test "$no_cache" != 1; then | |
7499 | echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp | |
7500 | fi | |
7501 | ||
7502 | if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then | |
7503 | echo "$as_me:$LINENO: result: yes" >&5 | |
7504 | echo "${ECHO_T}yes" >&6 | |
7505 | else | |
7506 | echo "$as_me:$LINENO: result: no" >&5 | |
7507 | echo "${ECHO_T}no" >&6 | |
7508 | fi | |
7509 | ||
7510 | ||
a848cd7e SC |
7511 | |
7512 | enablestring= | |
7513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7514 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7515 | no_cache=0 | |
7516 | # Check whether --enable-postscript or --disable-postscript was given. | |
7517 | if test "${enable_postscript+set}" = set; then | |
7518 | enableval="$enable_postscript" | |
7519 | ||
7520 | if test "$enableval" = yes; then | |
7521 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7522 | else | |
7523 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7524 | fi | |
7525 | ||
7526 | else | |
7527 | ||
7528 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7529 | if test "x$LINE" != x ; then | |
7530 | eval "DEFAULT_$LINE" | |
7531 | else | |
7532 | no_cache=1 | |
7533 | fi | |
7534 | ||
7535 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7536 | ||
7537 | fi; | |
7538 | ||
7539 | eval "$ac_cv_use_postscript" | |
7540 | if test "$no_cache" != 1; then | |
7541 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7542 | fi | |
7543 | ||
7544 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7545 | echo "$as_me:$LINENO: result: yes" >&5 | |
7546 | echo "${ECHO_T}yes" >&6 | |
7547 | else | |
7548 | echo "$as_me:$LINENO: result: no" >&5 | |
7549 | echo "${ECHO_T}no" >&6 | |
7550 | fi | |
7551 | ||
7552 | ||
7553 | ||
7554 | ||
7555 | ||
7556 | enablestring= | |
7557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7558 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7559 | no_cache=0 | |
7560 | # Check whether --enable-prologio or --disable-prologio was given. | |
7561 | if test "${enable_prologio+set}" = set; then | |
7562 | enableval="$enable_prologio" | |
7563 | ||
7564 | if test "$enableval" = yes; then | |
7565 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7566 | else | |
7567 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7568 | fi | |
7569 | ||
7570 | else | |
7571 | ||
7572 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7573 | if test "x$LINE" != x ; then | |
7574 | eval "DEFAULT_$LINE" | |
7575 | else | |
7576 | no_cache=1 | |
7577 | fi | |
7578 | ||
7579 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7580 | ||
7581 | fi; | |
7582 | ||
7583 | eval "$ac_cv_use_prologio" | |
7584 | if test "$no_cache" != 1; then | |
7585 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7586 | fi | |
7587 | ||
7588 | if test "$wxUSE_PROLOGIO" = yes; then | |
7589 | echo "$as_me:$LINENO: result: yes" >&5 | |
7590 | echo "${ECHO_T}yes" >&6 | |
7591 | else | |
7592 | echo "$as_me:$LINENO: result: no" >&5 | |
7593 | echo "${ECHO_T}no" >&6 | |
7594 | fi | |
7595 | ||
7596 | ||
7597 | enablestring= | |
7598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7599 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7600 | no_cache=0 | |
7601 | # Check whether --enable-resources or --disable-resources was given. | |
7602 | if test "${enable_resources+set}" = set; then | |
7603 | enableval="$enable_resources" | |
7604 | ||
7605 | if test "$enableval" = yes; then | |
7606 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7607 | else | |
7608 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7609 | fi | |
7610 | ||
7611 | else | |
7612 | ||
7613 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7614 | if test "x$LINE" != x ; then | |
7615 | eval "DEFAULT_$LINE" | |
7616 | else | |
7617 | no_cache=1 | |
7618 | fi | |
7619 | ||
7620 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7621 | ||
7622 | fi; | |
7623 | ||
7624 | eval "$ac_cv_use_resources" | |
7625 | if test "$no_cache" != 1; then | |
7626 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7627 | fi | |
7628 | ||
7629 | if test "$wxUSE_RESOURCES" = yes; then | |
7630 | echo "$as_me:$LINENO: result: yes" >&5 | |
7631 | echo "${ECHO_T}yes" >&6 | |
7632 | else | |
7633 | echo "$as_me:$LINENO: result: no" >&5 | |
7634 | echo "${ECHO_T}no" >&6 | |
7635 | fi | |
7636 | ||
7637 | ||
7638 | ||
7639 | ||
7640 | enablestring= | |
7641 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7642 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7643 | no_cache=0 | |
7644 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7645 | if test "${enable_clipboard+set}" = set; then | |
7646 | enableval="$enable_clipboard" | |
7647 | ||
7648 | if test "$enableval" = yes; then | |
7649 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7650 | else | |
7651 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7652 | fi | |
7653 | ||
7654 | else | |
7655 | ||
7656 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7657 | if test "x$LINE" != x ; then | |
7658 | eval "DEFAULT_$LINE" | |
7659 | else | |
7660 | no_cache=1 | |
7661 | fi | |
7662 | ||
7663 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7664 | ||
7665 | fi; | |
7666 | ||
7667 | eval "$ac_cv_use_clipboard" | |
7668 | if test "$no_cache" != 1; then | |
7669 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7670 | fi | |
7671 | ||
7672 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7673 | echo "$as_me:$LINENO: result: yes" >&5 | |
7674 | echo "${ECHO_T}yes" >&6 | |
7675 | else | |
7676 | echo "$as_me:$LINENO: result: no" >&5 | |
7677 | echo "${ECHO_T}no" >&6 | |
7678 | fi | |
7679 | ||
7680 | ||
7681 | enablestring= | |
7682 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7683 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7684 | no_cache=0 | |
7685 | # Check whether --enable-dnd or --disable-dnd was given. | |
7686 | if test "${enable_dnd+set}" = set; then | |
7687 | enableval="$enable_dnd" | |
7688 | ||
7689 | if test "$enableval" = yes; then | |
7690 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7691 | else | |
7692 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7693 | fi | |
7694 | ||
7695 | else | |
7696 | ||
7697 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7698 | if test "x$LINE" != x ; then | |
7699 | eval "DEFAULT_$LINE" | |
7700 | else | |
7701 | no_cache=1 | |
7702 | fi | |
7703 | ||
7704 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7705 | ||
7706 | fi; | |
7707 | ||
7708 | eval "$ac_cv_use_dnd" | |
7709 | if test "$no_cache" != 1; then | |
7710 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7711 | fi | |
7712 | ||
7713 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7714 | echo "$as_me:$LINENO: result: yes" >&5 | |
7715 | echo "${ECHO_T}yes" >&6 | |
7716 | else | |
7717 | echo "$as_me:$LINENO: result: no" >&5 | |
7718 | echo "${ECHO_T}no" >&6 | |
7719 | fi | |
7720 | ||
7721 | ||
7722 | enablestring= | |
7723 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7724 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7725 | no_cache=0 | |
7726 | # Check whether --enable-metafile or --disable-metafile was given. | |
7727 | if test "${enable_metafile+set}" = set; then | |
7728 | enableval="$enable_metafile" | |
7729 | ||
7730 | if test "$enableval" = yes; then | |
7731 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7732 | else | |
7733 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7734 | fi | |
7735 | ||
7736 | else | |
7737 | ||
7738 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7739 | if test "x$LINE" != x ; then | |
7740 | eval "DEFAULT_$LINE" | |
7741 | else | |
7742 | no_cache=1 | |
7743 | fi | |
7744 | ||
7745 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7746 | ||
7747 | fi; | |
7748 | ||
7749 | eval "$ac_cv_use_metafile" | |
7750 | if test "$no_cache" != 1; then | |
7751 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7752 | fi | |
7753 | ||
7754 | if test "$wxUSE_METAFILE" = yes; then | |
7755 | echo "$as_me:$LINENO: result: yes" >&5 | |
7756 | echo "${ECHO_T}yes" >&6 | |
7757 | else | |
7758 | echo "$as_me:$LINENO: result: no" >&5 | |
7759 | echo "${ECHO_T}no" >&6 | |
7760 | fi | |
7761 | ||
7762 | ||
7763 | ||
7764 | ||
7765 | ||
7766 | enablestring= | |
7767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7768 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7769 | no_cache=0 | |
7770 | # Check whether --enable-controls or --disable-controls was given. | |
7771 | if test "${enable_controls+set}" = set; then | |
7772 | enableval="$enable_controls" | |
7773 | ||
7774 | if test "$enableval" = yes; then | |
7775 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7776 | else | |
7777 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7778 | fi | |
7779 | ||
7780 | else | |
7781 | ||
7782 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7783 | if test "x$LINE" != x ; then | |
7784 | eval "DEFAULT_$LINE" | |
7785 | else | |
7786 | no_cache=1 | |
7787 | fi | |
7788 | ||
7789 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7790 | ||
7791 | fi; | |
7792 | ||
7793 | eval "$ac_cv_use_controls" | |
7794 | if test "$no_cache" != 1; then | |
7795 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7796 | fi | |
7797 | ||
7798 | if test "$wxUSE_CONTROLS" = yes; then | |
7799 | echo "$as_me:$LINENO: result: yes" >&5 | |
7800 | echo "${ECHO_T}yes" >&6 | |
7801 | else | |
7802 | echo "$as_me:$LINENO: result: no" >&5 | |
7803 | echo "${ECHO_T}no" >&6 | |
7804 | fi | |
7805 | ||
7806 | ||
7807 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7808 | DEFAULT_wxUSE_ACCEL=yes | |
7809 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7810 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7811 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7812 | DEFAULT_wxUSE_CARET=yes |
7813 | DEFAULT_wxUSE_COMBOBOX=yes | |
7814 | DEFAULT_wxUSE_CHECKBOX=yes | |
7815 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7816 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7817 | DEFAULT_wxUSE_CHOICEBOOK=yes |
e9263684 VZ |
7818 | DEFAULT_wxUSE_COLOURPICKERCTRL=yes |
7819 | DEFAULT_wxUSE_COMBOBOX=yes | |
da98e9be | 7820 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
e9263684 VZ |
7821 | DEFAULT_wxUSE_DISPLAY=yes |
7822 | DEFAULT_wxUSE_DIRPICKERCTRL=yes | |
7823 | DEFAULT_wxUSE_FILEPICKERCTRL=yes | |
7824 | DEFAULT_wxUSE_FONTPICKERCTRL=yes | |
a848cd7e SC |
7825 | DEFAULT_wxUSE_GAUGE=yes |
7826 | DEFAULT_wxUSE_GRID=yes | |
6954625c | 7827 | DEFAULT_wxUSE_HYPERLINKCTRL=yes |
20e34ecc | 7828 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7829 | DEFAULT_wxUSE_IMAGLIST=yes |
7830 | DEFAULT_wxUSE_LISTBOOK=yes | |
7831 | DEFAULT_wxUSE_LISTBOX=yes | |
7832 | DEFAULT_wxUSE_LISTCTRL=yes | |
7833 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7834 | DEFAULT_wxUSE_RADIOBOX=yes | |
7835 | DEFAULT_wxUSE_RADIOBTN=yes | |
7836 | DEFAULT_wxUSE_SASH=yes | |
7837 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7838 | DEFAULT_wxUSE_SLIDER=yes | |
7839 | DEFAULT_wxUSE_SPINBTN=yes | |
7840 | DEFAULT_wxUSE_SPINCTRL=yes | |
7841 | DEFAULT_wxUSE_SPLITTER=yes | |
7842 | DEFAULT_wxUSE_STATBMP=yes | |
7843 | DEFAULT_wxUSE_STATBOX=yes | |
7844 | DEFAULT_wxUSE_STATLINE=yes | |
7845 | DEFAULT_wxUSE_STATUSBAR=yes | |
7846 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7847 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7848 | DEFAULT_wxUSE_TOOLBAR=yes | |
7849 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
a848cd7e | 7850 | DEFAULT_wxUSE_TOOLTIPS=yes |
0093c2fc | 7851 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 7852 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
7853 | DEFAULT_wxUSE_TREECTRL=yes |
7854 | DEFAULT_wxUSE_POPUPWIN=yes | |
7855 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7856 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7857 | DEFAULT_wxUSE_ACCEL=no | |
7858 | DEFAULT_wxUSE_BMPBUTTON=no | |
7859 | DEFAULT_wxUSE_BUTTON=no | |
7860 | DEFAULT_wxUSE_CALCTRL=no | |
7861 | DEFAULT_wxUSE_CARET=no | |
7862 | DEFAULT_wxUSE_COMBOBOX=no | |
7863 | DEFAULT_wxUSE_CHECKBOX=no | |
7864 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7865 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7866 | DEFAULT_wxUSE_CHOICEBOOK=no |
e9263684 VZ |
7867 | DEFAULT_wxUSE_COLOURPICKERCTRL=no |
7868 | DEFAULT_wxUSE_COMBOBOX=no | |
da98e9be | 7869 | DEFAULT_wxUSE_DATEPICKCTRL=no |
e9263684 VZ |
7870 | DEFAULT_wxUSE_DISPLAY=no |
7871 | DEFAULT_wxUSE_DIRPICKERCTRL=no | |
7872 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
7873 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
a848cd7e SC |
7874 | DEFAULT_wxUSE_GAUGE=no |
7875 | DEFAULT_wxUSE_GRID=no | |
6954625c | 7876 | DEFAULT_wxUSE_HYPERLINKCTRL=no |
20e34ecc | 7877 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7878 | DEFAULT_wxUSE_IMAGLIST=no |
7879 | DEFAULT_wxUSE_LISTBOOK=no | |
7880 | DEFAULT_wxUSE_LISTBOX=no | |
7881 | DEFAULT_wxUSE_LISTCTRL=no | |
7882 | DEFAULT_wxUSE_NOTEBOOK=no | |
7883 | DEFAULT_wxUSE_RADIOBOX=no | |
7884 | DEFAULT_wxUSE_RADIOBTN=no | |
7885 | DEFAULT_wxUSE_SASH=no | |
7886 | DEFAULT_wxUSE_SCROLLBAR=no | |
7887 | DEFAULT_wxUSE_SLIDER=no | |
7888 | DEFAULT_wxUSE_SPINBTN=no | |
7889 | DEFAULT_wxUSE_SPINCTRL=no | |
7890 | DEFAULT_wxUSE_SPLITTER=no | |
7891 | DEFAULT_wxUSE_STATBMP=no | |
7892 | DEFAULT_wxUSE_STATBOX=no | |
7893 | DEFAULT_wxUSE_STATLINE=no | |
7894 | DEFAULT_wxUSE_STATUSBAR=no | |
7895 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7896 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7897 | DEFAULT_wxUSE_TOOLBAR=no | |
7898 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
a848cd7e | 7899 | DEFAULT_wxUSE_TOOLTIPS=no |
0093c2fc | 7900 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 7901 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
7902 | DEFAULT_wxUSE_TREECTRL=no |
7903 | DEFAULT_wxUSE_POPUPWIN=no | |
7904 | DEFAULT_wxUSE_TIPWINDOW=no | |
7905 | fi | |
7906 | ||
a848cd7e SC |
7907 | |
7908 | enablestring= | |
7909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7910 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7911 | no_cache=0 | |
7912 | # Check whether --enable-accel or --disable-accel was given. | |
7913 | if test "${enable_accel+set}" = set; then | |
7914 | enableval="$enable_accel" | |
7915 | ||
7916 | if test "$enableval" = yes; then | |
7917 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7918 | else | |
7919 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7920 | fi | |
7921 | ||
7922 | else | |
7923 | ||
7924 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7925 | if test "x$LINE" != x ; then | |
7926 | eval "DEFAULT_$LINE" | |
7927 | else | |
7928 | no_cache=1 | |
7929 | fi | |
7930 | ||
7931 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7932 | ||
7933 | fi; | |
7934 | ||
7935 | eval "$ac_cv_use_accel" | |
7936 | if test "$no_cache" != 1; then | |
7937 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7938 | fi | |
7939 | ||
7940 | if test "$wxUSE_ACCEL" = yes; then | |
7941 | echo "$as_me:$LINENO: result: yes" >&5 | |
7942 | echo "${ECHO_T}yes" >&6 | |
7943 | else | |
7944 | echo "$as_me:$LINENO: result: no" >&5 | |
7945 | echo "${ECHO_T}no" >&6 | |
7946 | fi | |
7947 | ||
7948 | ||
7949 | enablestring= | |
7950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7951 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7952 | no_cache=0 | |
7953 | # Check whether --enable-button or --disable-button was given. | |
7954 | if test "${enable_button+set}" = set; then | |
7955 | enableval="$enable_button" | |
7956 | ||
7957 | if test "$enableval" = yes; then | |
7958 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7959 | else | |
7960 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7961 | fi | |
7962 | ||
7963 | else | |
7964 | ||
7965 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7966 | if test "x$LINE" != x ; then | |
7967 | eval "DEFAULT_$LINE" | |
7968 | else | |
7969 | no_cache=1 | |
7970 | fi | |
7971 | ||
7972 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7973 | ||
7974 | fi; | |
7975 | ||
7976 | eval "$ac_cv_use_button" | |
7977 | if test "$no_cache" != 1; then | |
7978 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7979 | fi | |
7980 | ||
7981 | if test "$wxUSE_BUTTON" = yes; then | |
7982 | echo "$as_me:$LINENO: result: yes" >&5 | |
7983 | echo "${ECHO_T}yes" >&6 | |
7984 | else | |
7985 | echo "$as_me:$LINENO: result: no" >&5 | |
7986 | echo "${ECHO_T}no" >&6 | |
7987 | fi | |
7988 | ||
7989 | ||
7990 | enablestring= | |
7991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7992 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7993 | no_cache=0 | |
7994 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7995 | if test "${enable_bmpbutton+set}" = set; then | |
7996 | enableval="$enable_bmpbutton" | |
7997 | ||
7998 | if test "$enableval" = yes; then | |
7999 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
8000 | else | |
8001 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
8002 | fi | |
8003 | ||
8004 | else | |
8005 | ||
8006 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
8007 | if test "x$LINE" != x ; then | |
8008 | eval "DEFAULT_$LINE" | |
8009 | else | |
8010 | no_cache=1 | |
8011 | fi | |
8012 | ||
8013 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
8014 | ||
8015 | fi; | |
8016 | ||
8017 | eval "$ac_cv_use_bmpbutton" | |
8018 | if test "$no_cache" != 1; then | |
8019 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
8020 | fi | |
8021 | ||
8022 | if test "$wxUSE_BMPBUTTON" = yes; then | |
8023 | echo "$as_me:$LINENO: result: yes" >&5 | |
8024 | echo "${ECHO_T}yes" >&6 | |
8025 | else | |
8026 | echo "$as_me:$LINENO: result: no" >&5 | |
8027 | echo "${ECHO_T}no" >&6 | |
8028 | fi | |
8029 | ||
8030 | ||
95a46303 RR |
8031 | enablestring= |
8032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5 | |
8033 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6 | |
8034 | no_cache=0 | |
8035 | # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given. | |
8036 | if test "${enable_bmpcombobox+set}" = set; then | |
8037 | enableval="$enable_bmpcombobox" | |
8038 | ||
8039 | if test "$enableval" = yes; then | |
8040 | ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes' | |
8041 | else | |
8042 | ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no' | |
8043 | fi | |
8044 | ||
8045 | else | |
8046 | ||
8047 | LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}` | |
8048 | if test "x$LINE" != x ; then | |
8049 | eval "DEFAULT_$LINE" | |
8050 | else | |
8051 | no_cache=1 | |
8052 | fi | |
8053 | ||
8054 | ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX | |
8055 | ||
8056 | fi; | |
8057 | ||
8058 | eval "$ac_cv_use_bmpcombobox" | |
8059 | if test "$no_cache" != 1; then | |
8060 | echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp | |
8061 | fi | |
8062 | ||
8063 | if test "$wxUSE_BITMAPCOMBOBOX" = yes; then | |
8064 | echo "$as_me:$LINENO: result: yes" >&5 | |
8065 | echo "${ECHO_T}yes" >&6 | |
8066 | else | |
8067 | echo "$as_me:$LINENO: result: no" >&5 | |
8068 | echo "${ECHO_T}no" >&6 | |
8069 | fi | |
8070 | ||
8071 | ||
a848cd7e SC |
8072 | enablestring= |
8073 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
8074 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
8075 | no_cache=0 | |
8076 | # Check whether --enable-calendar or --disable-calendar was given. | |
8077 | if test "${enable_calendar+set}" = set; then | |
8078 | enableval="$enable_calendar" | |
8079 | ||
8080 | if test "$enableval" = yes; then | |
8081 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
8082 | else | |
8083 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
8084 | fi | |
8085 | ||
8086 | else | |
8087 | ||
8088 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
8089 | if test "x$LINE" != x ; then | |
8090 | eval "DEFAULT_$LINE" | |
8091 | else | |
8092 | no_cache=1 | |
8093 | fi | |
8094 | ||
8095 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
8096 | ||
8097 | fi; | |
8098 | ||
8099 | eval "$ac_cv_use_calendar" | |
8100 | if test "$no_cache" != 1; then | |
8101 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
8102 | fi | |
8103 | ||
8104 | if test "$wxUSE_CALCTRL" = yes; then | |
8105 | echo "$as_me:$LINENO: result: yes" >&5 | |
8106 | echo "${ECHO_T}yes" >&6 | |
8107 | else | |
8108 | echo "$as_me:$LINENO: result: no" >&5 | |
8109 | echo "${ECHO_T}no" >&6 | |
8110 | fi | |
8111 | ||
8112 | ||
8113 | enablestring= | |
8114 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
8115 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
8116 | no_cache=0 | |
8117 | # Check whether --enable-caret or --disable-caret was given. | |
8118 | if test "${enable_caret+set}" = set; then | |
8119 | enableval="$enable_caret" | |
8120 | ||
8121 | if test "$enableval" = yes; then | |
8122 | ac_cv_use_caret='wxUSE_CARET=yes' | |
8123 | else | |
8124 | ac_cv_use_caret='wxUSE_CARET=no' | |
8125 | fi | |
8126 | ||
8127 | else | |
8128 | ||
8129 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
8130 | if test "x$LINE" != x ; then | |
8131 | eval "DEFAULT_$LINE" | |
8132 | else | |
8133 | no_cache=1 | |
8134 | fi | |
8135 | ||
8136 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
8137 | ||
8138 | fi; | |
8139 | ||
8140 | eval "$ac_cv_use_caret" | |
8141 | if test "$no_cache" != 1; then | |
8142 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
8143 | fi | |
8144 | ||
8145 | if test "$wxUSE_CARET" = yes; then | |
8146 | echo "$as_me:$LINENO: result: yes" >&5 | |
8147 | echo "${ECHO_T}yes" >&6 | |
8148 | else | |
8149 | echo "$as_me:$LINENO: result: no" >&5 | |
8150 | echo "${ECHO_T}no" >&6 | |
8151 | fi | |
8152 | ||
8153 | ||
8154 | enablestring= | |
8155 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
8156 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
8157 | no_cache=0 | |
8158 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
8159 | if test "${enable_checkbox+set}" = set; then | |
8160 | enableval="$enable_checkbox" | |
8161 | ||
8162 | if test "$enableval" = yes; then | |
8163 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
8164 | else | |
8165 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
8166 | fi | |
8167 | ||
8168 | else | |
8169 | ||
8170 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
8171 | if test "x$LINE" != x ; then | |
8172 | eval "DEFAULT_$LINE" | |
8173 | else | |
8174 | no_cache=1 | |
8175 | fi | |
8176 | ||
8177 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
8178 | ||
8179 | fi; | |
8180 | ||
8181 | eval "$ac_cv_use_checkbox" | |
8182 | if test "$no_cache" != 1; then | |
8183 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
8184 | fi | |
8185 | ||
8186 | if test "$wxUSE_CHECKBOX" = yes; then | |
8187 | echo "$as_me:$LINENO: result: yes" >&5 | |
8188 | echo "${ECHO_T}yes" >&6 | |
8189 | else | |
8190 | echo "$as_me:$LINENO: result: no" >&5 | |
8191 | echo "${ECHO_T}no" >&6 | |
8192 | fi | |
8193 | ||
8194 | ||
8195 | enablestring= | |
8196 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
8197 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
8198 | no_cache=0 | |
8199 | # Check whether --enable-checklst or --disable-checklst was given. | |
8200 | if test "${enable_checklst+set}" = set; then | |
8201 | enableval="$enable_checklst" | |
8202 | ||
8203 | if test "$enableval" = yes; then | |
8204 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
8205 | else | |
8206 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
8207 | fi | |
8208 | ||
8209 | else | |
8210 | ||
8211 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
8212 | if test "x$LINE" != x ; then | |
8213 | eval "DEFAULT_$LINE" | |
8214 | else | |
8215 | no_cache=1 | |
8216 | fi | |
8217 | ||
8218 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
8219 | ||
8220 | fi; | |
8221 | ||
8222 | eval "$ac_cv_use_checklst" | |
8223 | if test "$no_cache" != 1; then | |
8224 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
8225 | fi | |
8226 | ||
8227 | if test "$wxUSE_CHECKLST" = yes; then | |
8228 | echo "$as_me:$LINENO: result: yes" >&5 | |
8229 | echo "${ECHO_T}yes" >&6 | |
8230 | else | |
8231 | echo "$as_me:$LINENO: result: no" >&5 | |
8232 | echo "${ECHO_T}no" >&6 | |
8233 | fi | |
8234 | ||
8235 | ||
8236 | enablestring= | |
8237 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
8238 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
8239 | no_cache=0 | |
8240 | # Check whether --enable-choice or --disable-choice was given. | |
8241 | if test "${enable_choice+set}" = set; then | |
8242 | enableval="$enable_choice" | |
8243 | ||
8244 | if test "$enableval" = yes; then | |
8245 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
8246 | else | |
8247 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
8248 | fi | |
8249 | ||
8250 | else | |
8251 | ||
8252 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
8253 | if test "x$LINE" != x ; then | |
8254 | eval "DEFAULT_$LINE" | |
8255 | else | |
8256 | no_cache=1 | |
8257 | fi | |
8258 | ||
8259 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
8260 | ||
8261 | fi; | |
8262 | ||
8263 | eval "$ac_cv_use_choice" | |
8264 | if test "$no_cache" != 1; then | |
8265 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
8266 | fi | |
8267 | ||
8268 | if test "$wxUSE_CHOICE" = yes; then | |
8269 | echo "$as_me:$LINENO: result: yes" >&5 | |
8270 | echo "${ECHO_T}yes" >&6 | |
8271 | else | |
8272 | echo "$as_me:$LINENO: result: no" >&5 | |
8273 | echo "${ECHO_T}no" >&6 | |
8274 | fi | |
8275 | ||
8276 | ||
92bbdbcd WS |
8277 | enablestring= |
8278 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
8279 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
8280 | no_cache=0 | |
8281 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
8282 | if test "${enable_choicebook+set}" = set; then | |
8283 | enableval="$enable_choicebook" | |
8284 | ||
8285 | if test "$enableval" = yes; then | |
8286 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
8287 | else | |
8288 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
8289 | fi | |
8290 | ||
8291 | else | |
8292 | ||
8293 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
8294 | if test "x$LINE" != x ; then | |
8295 | eval "DEFAULT_$LINE" | |
8296 | else | |
8297 | no_cache=1 | |
8298 | fi | |
8299 | ||
8300 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
8301 | ||
8302 | fi; | |
8303 | ||
8304 | eval "$ac_cv_use_choicebook" | |
8305 | if test "$no_cache" != 1; then | |
8306 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
8307 | fi | |
8308 | ||
8309 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
8310 | echo "$as_me:$LINENO: result: yes" >&5 | |
8311 | echo "${ECHO_T}yes" >&6 | |
8312 | else | |
8313 | echo "$as_me:$LINENO: result: no" >&5 | |
8314 | echo "${ECHO_T}no" >&6 | |
8315 | fi | |
8316 | ||
8317 | ||
e9263684 VZ |
8318 | enablestring= |
8319 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5 | |
8320 | echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6 | |
8321 | no_cache=0 | |
8322 | # Check whether --enable-colourpicker or --disable-colourpicker was given. | |
8323 | if test "${enable_colourpicker+set}" = set; then | |
8324 | enableval="$enable_colourpicker" | |
8325 | ||
8326 | if test "$enableval" = yes; then | |
8327 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes' | |
8328 | else | |
8329 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no' | |
8330 | fi | |
8331 | ||
8332 | else | |
8333 | ||
8334 | LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}` | |
8335 | if test "x$LINE" != x ; then | |
8336 | eval "DEFAULT_$LINE" | |
8337 | else | |
8338 | no_cache=1 | |
8339 | fi | |
8340 | ||
8341 | ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL | |
8342 | ||
8343 | fi; | |
8344 | ||
8345 | eval "$ac_cv_use_colourpicker" | |
8346 | if test "$no_cache" != 1; then | |
8347 | echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp | |
8348 | fi | |
8349 | ||
8350 | if test "$wxUSE_COLOURPICKERCTRL" = yes; then | |
8351 | echo "$as_me:$LINENO: result: yes" >&5 | |
8352 | echo "${ECHO_T}yes" >&6 | |
8353 | else | |
8354 | echo "$as_me:$LINENO: result: no" >&5 | |
8355 | echo "${ECHO_T}no" >&6 | |
8356 | fi | |
8357 | ||
8358 | ||
a848cd7e SC |
8359 | enablestring= |
8360 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
8361 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
8362 | no_cache=0 | |
8363 | # Check whether --enable-combobox or --disable-combobox was given. | |
8364 | if test "${enable_combobox+set}" = set; then | |
8365 | enableval="$enable_combobox" | |
8366 | ||
8367 | if test "$enableval" = yes; then | |
8368 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
8369 | else | |
8370 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
8371 | fi | |
8372 | ||
8373 | else | |
8374 | ||
8375 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
8376 | if test "x$LINE" != x ; then | |
8377 | eval "DEFAULT_$LINE" | |
8378 | else | |
8379 | no_cache=1 | |
8380 | fi | |
8381 | ||
8382 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
8383 | ||
8384 | fi; | |
8385 | ||
8386 | eval "$ac_cv_use_combobox" | |
8387 | if test "$no_cache" != 1; then | |
8388 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
8389 | fi | |
8390 | ||
8391 | if test "$wxUSE_COMBOBOX" = yes; then | |
8392 | echo "$as_me:$LINENO: result: yes" >&5 | |
8393 | echo "${ECHO_T}yes" >&6 | |
8394 | else | |
8395 | echo "$as_me:$LINENO: result: no" >&5 | |
8396 | echo "${ECHO_T}no" >&6 | |
8397 | fi | |
8398 | ||
8399 | ||
642bcba9 | 8400 | enablestring= |
a57d600f VZ |
8401 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5 |
8402 | echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6 | |
642bcba9 | 8403 | no_cache=0 |
a57d600f VZ |
8404 | # Check whether --enable-comboctrl or --disable-comboctrl was given. |
8405 | if test "${enable_comboctrl+set}" = set; then | |
8406 | enableval="$enable_comboctrl" | |
642bcba9 VZ |
8407 | |
8408 | if test "$enableval" = yes; then | |
a57d600f | 8409 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes' |
642bcba9 | 8410 | else |
a57d600f | 8411 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no' |
642bcba9 VZ |
8412 | fi |
8413 | ||
8414 | else | |
8415 | ||
a57d600f | 8416 | LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}` |
642bcba9 VZ |
8417 | if test "x$LINE" != x ; then |
8418 | eval "DEFAULT_$LINE" | |
8419 | else | |
8420 | no_cache=1 | |
8421 | fi | |
8422 | ||
a57d600f | 8423 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL |
642bcba9 VZ |
8424 | |
8425 | fi; | |
8426 | ||
a57d600f | 8427 | eval "$ac_cv_use_comboctrl" |
642bcba9 | 8428 | if test "$no_cache" != 1; then |
a57d600f | 8429 | echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
8430 | fi |
8431 | ||
a57d600f | 8432 | if test "$wxUSE_COMBOCTRL" = yes; then |
642bcba9 VZ |
8433 | echo "$as_me:$LINENO: result: yes" >&5 |
8434 | echo "${ECHO_T}yes" >&6 | |
8435 | else | |
8436 | echo "$as_me:$LINENO: result: no" >&5 | |
8437 | echo "${ECHO_T}no" >&6 | |
8438 | fi | |
8439 | ||
8440 | ||
da98e9be VZ |
8441 | enablestring= |
8442 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
8443 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
8444 | no_cache=0 | |
8445 | # Check whether --enable-datepick or --disable-datepick was given. | |
8446 | if test "${enable_datepick+set}" = set; then | |
8447 | enableval="$enable_datepick" | |
8448 | ||
8449 | if test "$enableval" = yes; then | |
8450 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
8451 | else | |
8452 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
8453 | fi | |
8454 | ||
8455 | else | |
8456 | ||
8457 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
8458 | if test "x$LINE" != x ; then | |
8459 | eval "DEFAULT_$LINE" | |
8460 | else | |
8461 | no_cache=1 | |
8462 | fi | |
8463 | ||
8464 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
8465 | ||
8466 | fi; | |
8467 | ||
8468 | eval "$ac_cv_use_datepick" | |
8469 | if test "$no_cache" != 1; then | |
8470 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
8471 | fi | |
8472 | ||
8473 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
8474 | echo "$as_me:$LINENO: result: yes" >&5 | |
8475 | echo "${ECHO_T}yes" >&6 | |
8476 | else | |
8477 | echo "$as_me:$LINENO: result: no" >&5 | |
8478 | echo "${ECHO_T}no" >&6 | |
8479 | fi | |
8480 | ||
8481 | ||
e9263684 VZ |
8482 | enablestring= |
8483 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5 | |
8484 | echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6 | |
8485 | no_cache=0 | |
8486 | # Check whether --enable-dirpicker or --disable-dirpicker was given. | |
8487 | if test "${enable_dirpicker+set}" = set; then | |
8488 | enableval="$enable_dirpicker" | |
8489 | ||
8490 | if test "$enableval" = yes; then | |
8491 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes' | |
8492 | else | |
8493 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no' | |
8494 | fi | |
8495 | ||
8496 | else | |
8497 | ||
8498 | LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}` | |
8499 | if test "x$LINE" != x ; then | |
8500 | eval "DEFAULT_$LINE" | |
8501 | else | |
8502 | no_cache=1 | |
8503 | fi | |
8504 | ||
8505 | ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL | |
8506 | ||
8507 | fi; | |
8508 | ||
8509 | eval "$ac_cv_use_dirpicker" | |
8510 | if test "$no_cache" != 1; then | |
8511 | echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp | |
8512 | fi | |
8513 | ||
8514 | if test "$wxUSE_DIRPICKERCTRL" = yes; then | |
8515 | echo "$as_me:$LINENO: result: yes" >&5 | |
8516 | echo "${ECHO_T}yes" >&6 | |
8517 | else | |
8518 | echo "$as_me:$LINENO: result: no" >&5 | |
8519 | echo "${ECHO_T}no" >&6 | |
8520 | fi | |
8521 | ||
8522 | ||
a848cd7e SC |
8523 | enablestring= |
8524 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
8525 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
8526 | no_cache=0 | |
8527 | # Check whether --enable-display or --disable-display was given. | |
8528 | if test "${enable_display+set}" = set; then | |
8529 | enableval="$enable_display" | |
8530 | ||
8531 | if test "$enableval" = yes; then | |
8532 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
8533 | else | |
8534 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
8535 | fi | |
8536 | ||
8537 | else | |
8538 | ||
8539 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
8540 | if test "x$LINE" != x ; then | |
8541 | eval "DEFAULT_$LINE" | |
8542 | else | |
8543 | no_cache=1 | |
8544 | fi | |
8545 | ||
8546 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
8547 | ||
8548 | fi; | |
8549 | ||
8550 | eval "$ac_cv_use_display" | |
8551 | if test "$no_cache" != 1; then | |
8552 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
8553 | fi | |
8554 | ||
8555 | if test "$wxUSE_DISPLAY" = yes; then | |
8556 | echo "$as_me:$LINENO: result: yes" >&5 | |
8557 | echo "${ECHO_T}yes" >&6 | |
8558 | else | |
8559 | echo "$as_me:$LINENO: result: no" >&5 | |
8560 | echo "${ECHO_T}no" >&6 | |
8561 | fi | |
8562 | ||
8563 | ||
e9263684 VZ |
8564 | enablestring= |
8565 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5 | |
8566 | echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6 | |
8567 | no_cache=0 | |
8568 | # Check whether --enable-filepicker or --disable-filepicker was given. | |
8569 | if test "${enable_filepicker+set}" = set; then | |
8570 | enableval="$enable_filepicker" | |
8571 | ||
8572 | if test "$enableval" = yes; then | |
8573 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes' | |
8574 | else | |
8575 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no' | |
8576 | fi | |
8577 | ||
8578 | else | |
8579 | ||
8580 | LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}` | |
8581 | if test "x$LINE" != x ; then | |
8582 | eval "DEFAULT_$LINE" | |
8583 | else | |
8584 | no_cache=1 | |
8585 | fi | |
8586 | ||
8587 | ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL | |
8588 | ||
8589 | fi; | |
8590 | ||
8591 | eval "$ac_cv_use_filepicker" | |
8592 | if test "$no_cache" != 1; then | |
8593 | echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp | |
8594 | fi | |
8595 | ||
8596 | if test "$wxUSE_FILEPICKERCTRL" = yes; then | |
8597 | echo "$as_me:$LINENO: result: yes" >&5 | |
8598 | echo "${ECHO_T}yes" >&6 | |
8599 | else | |
8600 | echo "$as_me:$LINENO: result: no" >&5 | |
8601 | echo "${ECHO_T}no" >&6 | |
8602 | fi | |
8603 | ||
8604 | ||
8605 | enablestring= | |
8606 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5 | |
8607 | echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6 | |
8608 | no_cache=0 | |
8609 | # Check whether --enable-fontpicker or --disable-fontpicker was given. | |
8610 | if test "${enable_fontpicker+set}" = set; then | |
8611 | enableval="$enable_fontpicker" | |
8612 | ||
8613 | if test "$enableval" = yes; then | |
8614 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes' | |
8615 | else | |
8616 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no' | |
8617 | fi | |
8618 | ||
8619 | else | |
8620 | ||
8621 | LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}` | |
8622 | if test "x$LINE" != x ; then | |
8623 | eval "DEFAULT_$LINE" | |
8624 | else | |
8625 | no_cache=1 | |
8626 | fi | |
8627 | ||
8628 | ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL | |
8629 | ||
8630 | fi; | |
8631 | ||
8632 | eval "$ac_cv_use_fontpicker" | |
8633 | if test "$no_cache" != 1; then | |
8634 | echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp | |
8635 | fi | |
8636 | ||
8637 | if test "$wxUSE_FONTPICKERCTRL" = yes; then | |
8638 | echo "$as_me:$LINENO: result: yes" >&5 | |
8639 | echo "${ECHO_T}yes" >&6 | |
8640 | else | |
8641 | echo "$as_me:$LINENO: result: no" >&5 | |
8642 | echo "${ECHO_T}no" >&6 | |
8643 | fi | |
8644 | ||
8645 | ||
a848cd7e SC |
8646 | enablestring= |
8647 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
8648 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
8649 | no_cache=0 | |
8650 | # Check whether --enable-gauge or --disable-gauge was given. | |
8651 | if test "${enable_gauge+set}" = set; then | |
8652 | enableval="$enable_gauge" | |
8653 | ||
8654 | if test "$enableval" = yes; then | |
8655 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
8656 | else | |
8657 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
8658 | fi | |
8659 | ||
8660 | else | |
8661 | ||
8662 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
8663 | if test "x$LINE" != x ; then | |
8664 | eval "DEFAULT_$LINE" | |
8665 | else | |
8666 | no_cache=1 | |
8667 | fi | |
8668 | ||
8669 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8670 | ||
8671 | fi; | |
8672 | ||
8673 | eval "$ac_cv_use_gauge" | |
8674 | if test "$no_cache" != 1; then | |
8675 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8676 | fi | |
8677 | ||
8678 | if test "$wxUSE_GAUGE" = yes; then | |
8679 | echo "$as_me:$LINENO: result: yes" >&5 | |
8680 | echo "${ECHO_T}yes" >&6 | |
8681 | else | |
8682 | echo "$as_me:$LINENO: result: no" >&5 | |
8683 | echo "${ECHO_T}no" >&6 | |
8684 | fi | |
8685 | ||
8686 | ||
8687 | enablestring= | |
8688 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8689 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8690 | no_cache=0 | |
8691 | # Check whether --enable-grid or --disable-grid was given. | |
8692 | if test "${enable_grid+set}" = set; then | |
8693 | enableval="$enable_grid" | |
8694 | ||
8695 | if test "$enableval" = yes; then | |
8696 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8697 | else | |
8698 | ac_cv_use_grid='wxUSE_GRID=no' | |
8699 | fi | |
8700 | ||
8701 | else | |
8702 | ||
8703 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8704 | if test "x$LINE" != x ; then | |
8705 | eval "DEFAULT_$LINE" | |
8706 | else | |
8707 | no_cache=1 | |
8708 | fi | |
8709 | ||
8710 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8711 | ||
8712 | fi; | |
8713 | ||
8714 | eval "$ac_cv_use_grid" | |
8715 | if test "$no_cache" != 1; then | |
8716 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8717 | fi | |
8718 | ||
8719 | if test "$wxUSE_GRID" = yes; then | |
8720 | echo "$as_me:$LINENO: result: yes" >&5 | |
8721 | echo "${ECHO_T}yes" >&6 | |
8722 | else | |
8723 | echo "$as_me:$LINENO: result: no" >&5 | |
8724 | echo "${ECHO_T}no" >&6 | |
8725 | fi | |
8726 | ||
8727 | ||
20e34ecc RR |
8728 | enablestring= |
8729 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8730 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8731 | no_cache=0 | |
8732 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8733 | if test "${enable_dataviewctrl+set}" = set; then | |
8734 | enableval="$enable_dataviewctrl" | |
8735 | ||
8736 | if test "$enableval" = yes; then | |
8737 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8738 | else | |
8739 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8740 | fi | |
8741 | ||
8742 | else | |
8743 | ||
8744 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8745 | if test "x$LINE" != x ; then | |
8746 | eval "DEFAULT_$LINE" | |
8747 | else | |
8748 | no_cache=1 | |
8749 | fi | |
8750 | ||
8751 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8752 | ||
8753 | fi; | |
8754 | ||
8755 | eval "$ac_cv_use_dataviewctrl" | |
8756 | if test "$no_cache" != 1; then | |
8757 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
8758 | fi | |
8759 | ||
8760 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
8761 | echo "$as_me:$LINENO: result: yes" >&5 | |
8762 | echo "${ECHO_T}yes" >&6 | |
8763 | else | |
8764 | echo "$as_me:$LINENO: result: no" >&5 | |
8765 | echo "${ECHO_T}no" >&6 | |
8766 | fi | |
8767 | ||
8768 | ||
6954625c VZ |
8769 | enablestring= |
8770 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5 | |
8771 | echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6 | |
8772 | no_cache=0 | |
8773 | # Check whether --enable-hyperlink or --disable-hyperlink was given. | |
8774 | if test "${enable_hyperlink+set}" = set; then | |
8775 | enableval="$enable_hyperlink" | |
8776 | ||
8777 | if test "$enableval" = yes; then | |
8778 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes' | |
8779 | else | |
8780 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no' | |
8781 | fi | |
8782 | ||
8783 | else | |
8784 | ||
8785 | LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}` | |
8786 | if test "x$LINE" != x ; then | |
8787 | eval "DEFAULT_$LINE" | |
8788 | else | |
8789 | no_cache=1 | |
8790 | fi | |
8791 | ||
8792 | ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL | |
8793 | ||
8794 | fi; | |
8795 | ||
8796 | eval "$ac_cv_use_hyperlink" | |
8797 | if test "$no_cache" != 1; then | |
8798 | echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp | |
8799 | fi | |
8800 | ||
8801 | if test "$wxUSE_HYPERLINKCTRL" = yes; then | |
8802 | echo "$as_me:$LINENO: result: yes" >&5 | |
8803 | echo "${ECHO_T}yes" >&6 | |
8804 | else | |
8805 | echo "$as_me:$LINENO: result: no" >&5 | |
8806 | echo "${ECHO_T}no" >&6 | |
8807 | fi | |
8808 | ||
8809 | ||
a848cd7e SC |
8810 | enablestring= |
8811 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
8812 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
8813 | no_cache=0 | |
8814 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
8815 | if test "${enable_imaglist+set}" = set; then | |
8816 | enableval="$enable_imaglist" | |
8817 | ||
8818 | if test "$enableval" = yes; then | |
8819 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
8820 | else | |
8821 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
8822 | fi | |
8823 | ||
8824 | else | |
8825 | ||
8826 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
8827 | if test "x$LINE" != x ; then | |
8828 | eval "DEFAULT_$LINE" | |
8829 | else | |
8830 | no_cache=1 | |
8831 | fi | |
8832 | ||
8833 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8834 | ||
8835 | fi; | |
8836 | ||
8837 | eval "$ac_cv_use_imaglist" | |
8838 | if test "$no_cache" != 1; then | |
8839 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
8840 | fi | |
8841 | ||
8842 | if test "$wxUSE_IMAGLIST" = yes; then | |
8843 | echo "$as_me:$LINENO: result: yes" >&5 | |
8844 | echo "${ECHO_T}yes" >&6 | |
8845 | else | |
8846 | echo "$as_me:$LINENO: result: no" >&5 | |
8847 | echo "${ECHO_T}no" >&6 | |
8848 | fi | |
8849 | ||
8850 | ||
8851 | enablestring= | |
8852 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8853 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8854 | no_cache=0 | |
8855 | # Check whether --enable-listbook or --disable-listbook was given. | |
8856 | if test "${enable_listbook+set}" = set; then | |
8857 | enableval="$enable_listbook" | |
8858 | ||
8859 | if test "$enableval" = yes; then | |
8860 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8861 | else | |
8862 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8863 | fi | |
8864 | ||
8865 | else | |
8866 | ||
8867 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8868 | if test "x$LINE" != x ; then | |
8869 | eval "DEFAULT_$LINE" | |
8870 | else | |
8871 | no_cache=1 | |
8872 | fi | |
8873 | ||
8874 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8875 | ||
8876 | fi; | |
8877 | ||
8878 | eval "$ac_cv_use_listbook" | |
8879 | if test "$no_cache" != 1; then | |
8880 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8881 | fi | |
8882 | ||
8883 | if test "$wxUSE_LISTBOOK" = yes; then | |
8884 | echo "$as_me:$LINENO: result: yes" >&5 | |
8885 | echo "${ECHO_T}yes" >&6 | |
8886 | else | |
8887 | echo "$as_me:$LINENO: result: no" >&5 | |
8888 | echo "${ECHO_T}no" >&6 | |
8889 | fi | |
8890 | ||
8891 | ||
8892 | enablestring= | |
8893 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8894 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8895 | no_cache=0 | |
8896 | # Check whether --enable-listbox or --disable-listbox was given. | |
8897 | if test "${enable_listbox+set}" = set; then | |
8898 | enableval="$enable_listbox" | |
8899 | ||
8900 | if test "$enableval" = yes; then | |
8901 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8902 | else | |
8903 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8904 | fi | |
8905 | ||
8906 | else | |
8907 | ||
8908 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8909 | if test "x$LINE" != x ; then | |
8910 | eval "DEFAULT_$LINE" | |
8911 | else | |
8912 | no_cache=1 | |
8913 | fi | |
8914 | ||
8915 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8916 | ||
8917 | fi; | |
8918 | ||
8919 | eval "$ac_cv_use_listbox" | |
8920 | if test "$no_cache" != 1; then | |
8921 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8922 | fi | |
8923 | ||
8924 | if test "$wxUSE_LISTBOX" = yes; then | |
8925 | echo "$as_me:$LINENO: result: yes" >&5 | |
8926 | echo "${ECHO_T}yes" >&6 | |
8927 | else | |
8928 | echo "$as_me:$LINENO: result: no" >&5 | |
8929 | echo "${ECHO_T}no" >&6 | |
8930 | fi | |
8931 | ||
8932 | ||
8933 | enablestring= | |
8934 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8935 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8936 | no_cache=0 | |
8937 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8938 | if test "${enable_listctrl+set}" = set; then | |
8939 | enableval="$enable_listctrl" | |
8940 | ||
8941 | if test "$enableval" = yes; then | |
8942 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8943 | else | |
8944 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8945 | fi | |
8946 | ||
8947 | else | |
8948 | ||
8949 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8950 | if test "x$LINE" != x ; then | |
8951 | eval "DEFAULT_$LINE" | |
8952 | else | |
8953 | no_cache=1 | |
8954 | fi | |
8955 | ||
8956 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8957 | ||
8958 | fi; | |
8959 | ||
8960 | eval "$ac_cv_use_listctrl" | |
8961 | if test "$no_cache" != 1; then | |
8962 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8963 | fi | |
8964 | ||
8965 | if test "$wxUSE_LISTCTRL" = yes; then | |
8966 | echo "$as_me:$LINENO: result: yes" >&5 | |
8967 | echo "${ECHO_T}yes" >&6 | |
8968 | else | |
8969 | echo "$as_me:$LINENO: result: no" >&5 | |
8970 | echo "${ECHO_T}no" >&6 | |
8971 | fi | |
8972 | ||
8973 | ||
8974 | enablestring= | |
8975 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8976 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8977 | no_cache=0 | |
8978 | # Check whether --enable-notebook or --disable-notebook was given. | |
8979 | if test "${enable_notebook+set}" = set; then | |
8980 | enableval="$enable_notebook" | |
8981 | ||
8982 | if test "$enableval" = yes; then | |
8983 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8984 | else | |
8985 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8986 | fi | |
8987 | ||
8988 | else | |
8989 | ||
8990 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8991 | if test "x$LINE" != x ; then | |
8992 | eval "DEFAULT_$LINE" | |
8993 | else | |
8994 | no_cache=1 | |
8995 | fi | |
8996 | ||
8997 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8998 | ||
8999 | fi; | |
9000 | ||
9001 | eval "$ac_cv_use_notebook" | |
9002 | if test "$no_cache" != 1; then | |
9003 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
9004 | fi | |
9005 | ||
9006 | if test "$wxUSE_NOTEBOOK" = yes; then | |
9007 | echo "$as_me:$LINENO: result: yes" >&5 | |
9008 | echo "${ECHO_T}yes" >&6 | |
9009 | else | |
9010 | echo "$as_me:$LINENO: result: no" >&5 | |
9011 | echo "${ECHO_T}no" >&6 | |
9012 | fi | |
9013 | ||
9014 | ||
642bcba9 | 9015 | enablestring= |
a57d600f VZ |
9016 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5 |
9017 | echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6 | |
642bcba9 | 9018 | no_cache=0 |
a57d600f VZ |
9019 | # Check whether --enable-odcombobox or --disable-odcombobox was given. |
9020 | if test "${enable_odcombobox+set}" = set; then | |
9021 | enableval="$enable_odcombobox" | |
642bcba9 VZ |
9022 | |
9023 | if test "$enableval" = yes; then | |
a57d600f | 9024 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes' |
642bcba9 | 9025 | else |
a57d600f | 9026 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no' |
642bcba9 VZ |
9027 | fi |
9028 | ||
9029 | else | |
9030 | ||
a57d600f | 9031 | LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}` |
642bcba9 VZ |
9032 | if test "x$LINE" != x ; then |
9033 | eval "DEFAULT_$LINE" | |
9034 | else | |
9035 | no_cache=1 | |
9036 | fi | |
9037 | ||
a57d600f | 9038 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX |
642bcba9 VZ |
9039 | |
9040 | fi; | |
9041 | ||
a57d600f | 9042 | eval "$ac_cv_use_odcombobox" |
642bcba9 | 9043 | if test "$no_cache" != 1; then |
a57d600f | 9044 | echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
9045 | fi |
9046 | ||
a57d600f | 9047 | if test "$wxUSE_ODCOMBOBOX" = yes; then |
642bcba9 VZ |
9048 | echo "$as_me:$LINENO: result: yes" >&5 |
9049 | echo "${ECHO_T}yes" >&6 | |
9050 | else | |
9051 | echo "$as_me:$LINENO: result: no" >&5 | |
9052 | echo "${ECHO_T}no" >&6 | |
9053 | fi | |
9054 | ||
9055 | ||
a848cd7e SC |
9056 | enablestring= |
9057 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
9058 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
9059 | no_cache=0 | |
9060 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
9061 | if test "${enable_radiobox+set}" = set; then | |
9062 | enableval="$enable_radiobox" | |
9063 | ||
9064 | if test "$enableval" = yes; then | |
9065 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
9066 | else | |
9067 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
9068 | fi | |
9069 | ||
9070 | else | |
9071 | ||
9072 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
9073 | if test "x$LINE" != x ; then | |
9074 | eval "DEFAULT_$LINE" | |
9075 | else | |
9076 | no_cache=1 | |
9077 | fi | |
9078 | ||
9079 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
9080 | ||
9081 | fi; | |
9082 | ||
9083 | eval "$ac_cv_use_radiobox" | |
9084 | if test "$no_cache" != 1; then | |
9085 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
9086 | fi | |
9087 | ||
9088 | if test "$wxUSE_RADIOBOX" = yes; then | |
9089 | echo "$as_me:$LINENO: result: yes" >&5 | |
9090 | echo "${ECHO_T}yes" >&6 | |
9091 | else | |
9092 | echo "$as_me:$LINENO: result: no" >&5 | |
9093 | echo "${ECHO_T}no" >&6 | |
9094 | fi | |
9095 | ||
9096 | ||
9097 | enablestring= | |
9098 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
9099 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
9100 | no_cache=0 | |
9101 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
9102 | if test "${enable_radiobtn+set}" = set; then | |
9103 | enableval="$enable_radiobtn" | |
9104 | ||
9105 | if test "$enableval" = yes; then | |
9106 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
9107 | else | |
9108 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
9109 | fi | |
9110 | ||
9111 | else | |
9112 | ||
9113 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
9114 | if test "x$LINE" != x ; then | |
9115 | eval "DEFAULT_$LINE" | |
9116 | else | |
9117 | no_cache=1 | |
9118 | fi | |
9119 | ||
9120 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
9121 | ||
9122 | fi; | |
9123 | ||
9124 | eval "$ac_cv_use_radiobtn" | |
9125 | if test "$no_cache" != 1; then | |
9126 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
9127 | fi | |
9128 | ||
9129 | if test "$wxUSE_RADIOBTN" = yes; then | |
9130 | echo "$as_me:$LINENO: result: yes" >&5 | |
9131 | echo "${ECHO_T}yes" >&6 | |
9132 | else | |
9133 | echo "$as_me:$LINENO: result: no" >&5 | |
9134 | echo "${ECHO_T}no" >&6 | |
9135 | fi | |
9136 | ||
9137 | ||
9138 | enablestring= | |
9139 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
9140 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
9141 | no_cache=0 | |
9142 | # Check whether --enable-sash or --disable-sash was given. | |
9143 | if test "${enable_sash+set}" = set; then | |
9144 | enableval="$enable_sash" | |
9145 | ||
9146 | if test "$enableval" = yes; then | |
9147 | ac_cv_use_sash='wxUSE_SASH=yes' | |
9148 | else | |
9149 | ac_cv_use_sash='wxUSE_SASH=no' | |
9150 | fi | |
9151 | ||
9152 | else | |
9153 | ||
9154 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
9155 | if test "x$LINE" != x ; then | |
9156 | eval "DEFAULT_$LINE" | |
9157 | else | |
9158 | no_cache=1 | |
9159 | fi | |
9160 | ||
9161 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
9162 | ||
9163 | fi; | |
9164 | ||
9165 | eval "$ac_cv_use_sash" | |
9166 | if test "$no_cache" != 1; then | |
9167 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
9168 | fi | |
9169 | ||
9170 | if test "$wxUSE_SASH" = yes; then | |
9171 | echo "$as_me:$LINENO: result: yes" >&5 | |
9172 | echo "${ECHO_T}yes" >&6 | |
9173 | else | |
9174 | echo "$as_me:$LINENO: result: no" >&5 | |
9175 | echo "${ECHO_T}no" >&6 | |
9176 | fi | |
9177 | ||
9178 | ||
9179 | enablestring= | |
9180 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
9181 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
9182 | no_cache=0 | |
9183 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
9184 | if test "${enable_scrollbar+set}" = set; then | |
9185 | enableval="$enable_scrollbar" | |
9186 | ||
9187 | if test "$enableval" = yes; then | |
9188 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
9189 | else | |
9190 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
9191 | fi | |
9192 | ||
9193 | else | |
9194 | ||
9195 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
9196 | if test "x$LINE" != x ; then | |
9197 | eval "DEFAULT_$LINE" | |
9198 | else | |
9199 | no_cache=1 | |
9200 | fi | |
9201 | ||
9202 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
9203 | ||
9204 | fi; | |
9205 | ||
9206 | eval "$ac_cv_use_scrollbar" | |
9207 | if test "$no_cache" != 1; then | |
9208 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
9209 | fi | |
9210 | ||
9211 | if test "$wxUSE_SCROLLBAR" = yes; then | |
9212 | echo "$as_me:$LINENO: result: yes" >&5 | |
9213 | echo "${ECHO_T}yes" >&6 | |
9214 | else | |
9215 | echo "$as_me:$LINENO: result: no" >&5 | |
9216 | echo "${ECHO_T}no" >&6 | |
9217 | fi | |
9218 | ||
9219 | ||
9220 | enablestring= | |
9221 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
9222 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
9223 | no_cache=0 | |
9224 | # Check whether --enable-slider or --disable-slider was given. | |
9225 | if test "${enable_slider+set}" = set; then | |
9226 | enableval="$enable_slider" | |
9227 | ||
9228 | if test "$enableval" = yes; then | |
9229 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
9230 | else | |
9231 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
9232 | fi | |
9233 | ||
9234 | else | |
9235 | ||
9236 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
9237 | if test "x$LINE" != x ; then | |
9238 | eval "DEFAULT_$LINE" | |
9239 | else | |
9240 | no_cache=1 | |
9241 | fi | |
9242 | ||
9243 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
9244 | ||
9245 | fi; | |
9246 | ||
9247 | eval "$ac_cv_use_slider" | |
9248 | if test "$no_cache" != 1; then | |
9249 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
9250 | fi | |
9251 | ||
9252 | if test "$wxUSE_SLIDER" = yes; then | |
9253 | echo "$as_me:$LINENO: result: yes" >&5 | |
9254 | echo "${ECHO_T}yes" >&6 | |
9255 | else | |
9256 | echo "$as_me:$LINENO: result: no" >&5 | |
9257 | echo "${ECHO_T}no" >&6 | |
9258 | fi | |
9259 | ||
9260 | ||
9261 | enablestring= | |
9262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
9263 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
9264 | no_cache=0 | |
9265 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
9266 | if test "${enable_spinbtn+set}" = set; then | |
9267 | enableval="$enable_spinbtn" | |
9268 | ||
9269 | if test "$enableval" = yes; then | |
9270 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
9271 | else | |
9272 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
9273 | fi | |
9274 | ||
9275 | else | |
9276 | ||
9277 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
9278 | if test "x$LINE" != x ; then | |
9279 | eval "DEFAULT_$LINE" | |
9280 | else | |
9281 | no_cache=1 | |
9282 | fi | |
9283 | ||
9284 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
9285 | ||
9286 | fi; | |
9287 | ||
9288 | eval "$ac_cv_use_spinbtn" | |
9289 | if test "$no_cache" != 1; then | |
9290 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
9291 | fi | |
9292 | ||
9293 | if test "$wxUSE_SPINBTN" = yes; then | |
9294 | echo "$as_me:$LINENO: result: yes" >&5 | |
9295 | echo "${ECHO_T}yes" >&6 | |
9296 | else | |
9297 | echo "$as_me:$LINENO: result: no" >&5 | |
9298 | echo "${ECHO_T}no" >&6 | |
9299 | fi | |
9300 | ||
9301 | ||
9302 | enablestring= | |
9303 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
9304 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
9305 | no_cache=0 | |
9306 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
9307 | if test "${enable_spinctrl+set}" = set; then | |
9308 | enableval="$enable_spinctrl" | |
9309 | ||
9310 | if test "$enableval" = yes; then | |
9311 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
9312 | else | |
9313 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
9314 | fi | |
9315 | ||
9316 | else | |
9317 | ||
9318 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
9319 | if test "x$LINE" != x ; then | |
9320 | eval "DEFAULT_$LINE" | |
9321 | else | |
9322 | no_cache=1 | |
9323 | fi | |
9324 | ||
9325 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
9326 | ||
9327 | fi; | |
9328 | ||
9329 | eval "$ac_cv_use_spinctrl" | |
9330 | if test "$no_cache" != 1; then | |
9331 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
9332 | fi | |
9333 | ||
9334 | if test "$wxUSE_SPINCTRL" = yes; then | |
9335 | echo "$as_me:$LINENO: result: yes" >&5 | |
9336 | echo "${ECHO_T}yes" >&6 | |
9337 | else | |
9338 | echo "$as_me:$LINENO: result: no" >&5 | |
9339 | echo "${ECHO_T}no" >&6 | |
9340 | fi | |
9341 | ||
9342 | ||
9343 | enablestring= | |
9344 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
9345 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
9346 | no_cache=0 | |
9347 | # Check whether --enable-splitter or --disable-splitter was given. | |
9348 | if test "${enable_splitter+set}" = set; then | |
9349 | enableval="$enable_splitter" | |
9350 | ||
9351 | if test "$enableval" = yes; then | |
9352 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
9353 | else | |
9354 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
9355 | fi | |
9356 | ||
9357 | else | |
9358 | ||
9359 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
9360 | if test "x$LINE" != x ; then | |
9361 | eval "DEFAULT_$LINE" | |
9362 | else | |
9363 | no_cache=1 | |
9364 | fi | |
9365 | ||
9366 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
9367 | ||
9368 | fi; | |
9369 | ||
9370 | eval "$ac_cv_use_splitter" | |
9371 | if test "$no_cache" != 1; then | |
9372 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
9373 | fi | |
9374 | ||
9375 | if test "$wxUSE_SPLITTER" = yes; then | |
9376 | echo "$as_me:$LINENO: result: yes" >&5 | |
9377 | echo "${ECHO_T}yes" >&6 | |
9378 | else | |
9379 | echo "$as_me:$LINENO: result: no" >&5 | |
9380 | echo "${ECHO_T}no" >&6 | |
9381 | fi | |
9382 | ||
9383 | ||
9384 | enablestring= | |
9385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
9386 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
9387 | no_cache=0 | |
9388 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
9389 | if test "${enable_statbmp+set}" = set; then | |
9390 | enableval="$enable_statbmp" | |
9391 | ||
9392 | if test "$enableval" = yes; then | |
9393 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
9394 | else | |
9395 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
9396 | fi | |
9397 | ||
9398 | else | |
9399 | ||
9400 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
9401 | if test "x$LINE" != x ; then | |
9402 | eval "DEFAULT_$LINE" | |
9403 | else | |
9404 | no_cache=1 | |
9405 | fi | |
9406 | ||
9407 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
9408 | ||
9409 | fi; | |
9410 | ||
9411 | eval "$ac_cv_use_statbmp" | |
9412 | if test "$no_cache" != 1; then | |
9413 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
9414 | fi | |
9415 | ||
9416 | if test "$wxUSE_STATBMP" = yes; then | |
9417 | echo "$as_me:$LINENO: result: yes" >&5 | |
9418 | echo "${ECHO_T}yes" >&6 | |
9419 | else | |
9420 | echo "$as_me:$LINENO: result: no" >&5 | |
9421 | echo "${ECHO_T}no" >&6 | |
9422 | fi | |
9423 | ||
9424 | ||
9425 | enablestring= | |
9426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
9427 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
9428 | no_cache=0 | |
9429 | # Check whether --enable-statbox or --disable-statbox was given. | |
9430 | if test "${enable_statbox+set}" = set; then | |
9431 | enableval="$enable_statbox" | |
9432 | ||
9433 | if test "$enableval" = yes; then | |
9434 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
9435 | else | |
9436 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
9437 | fi | |
9438 | ||
9439 | else | |
9440 | ||
9441 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
9442 | if test "x$LINE" != x ; then | |
9443 | eval "DEFAULT_$LINE" | |
9444 | else | |
9445 | no_cache=1 | |
9446 | fi | |
9447 | ||
9448 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
9449 | ||
9450 | fi; | |
9451 | ||
9452 | eval "$ac_cv_use_statbox" | |
9453 | if test "$no_cache" != 1; then | |
9454 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
9455 | fi | |
9456 | ||
9457 | if test "$wxUSE_STATBOX" = yes; then | |
9458 | echo "$as_me:$LINENO: result: yes" >&5 | |
9459 | echo "${ECHO_T}yes" >&6 | |
9460 | else | |
9461 | echo "$as_me:$LINENO: result: no" >&5 | |
9462 | echo "${ECHO_T}no" >&6 | |
9463 | fi | |
9464 | ||
9465 | ||
9466 | enablestring= | |
9467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
9468 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
9469 | no_cache=0 | |
9470 | # Check whether --enable-statline or --disable-statline was given. | |
9471 | if test "${enable_statline+set}" = set; then | |
9472 | enableval="$enable_statline" | |
9473 | ||
9474 | if test "$enableval" = yes; then | |
9475 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
9476 | else | |
9477 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
9478 | fi | |
9479 | ||
9480 | else | |
9481 | ||
9482 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
9483 | if test "x$LINE" != x ; then | |
9484 | eval "DEFAULT_$LINE" | |
9485 | else | |
9486 | no_cache=1 | |
9487 | fi | |
9488 | ||
9489 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
9490 | ||
9491 | fi; | |
9492 | ||
9493 | eval "$ac_cv_use_statline" | |
9494 | if test "$no_cache" != 1; then | |
9495 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
9496 | fi | |
9497 | ||
9498 | if test "$wxUSE_STATLINE" = yes; then | |
9499 | echo "$as_me:$LINENO: result: yes" >&5 | |
9500 | echo "${ECHO_T}yes" >&6 | |
9501 | else | |
9502 | echo "$as_me:$LINENO: result: no" >&5 | |
9503 | echo "${ECHO_T}no" >&6 | |
9504 | fi | |
9505 | ||
9506 | ||
9507 | enablestring= | |
9508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
9509 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
9510 | no_cache=0 | |
9511 | # Check whether --enable-stattext or --disable-stattext was given. | |
9512 | if test "${enable_stattext+set}" = set; then | |
9513 | enableval="$enable_stattext" | |
9514 | ||
9515 | if test "$enableval" = yes; then | |
9516 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
9517 | else | |
9518 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
9519 | fi | |
9520 | ||
9521 | else | |
9522 | ||
9523 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
9524 | if test "x$LINE" != x ; then | |
9525 | eval "DEFAULT_$LINE" | |
9526 | else | |
9527 | no_cache=1 | |
9528 | fi | |
9529 | ||
9530 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
9531 | ||
9532 | fi; | |
9533 | ||
9534 | eval "$ac_cv_use_stattext" | |
9535 | if test "$no_cache" != 1; then | |
9536 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
9537 | fi | |
9538 | ||
9539 | if test "$wxUSE_STATTEXT" = yes; then | |
9540 | echo "$as_me:$LINENO: result: yes" >&5 | |
9541 | echo "${ECHO_T}yes" >&6 | |
9542 | else | |
9543 | echo "$as_me:$LINENO: result: no" >&5 | |
9544 | echo "${ECHO_T}no" >&6 | |
9545 | fi | |
9546 | ||
9547 | ||
9548 | enablestring= | |
9549 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
9550 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
9551 | no_cache=0 | |
9552 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
9553 | if test "${enable_statusbar+set}" = set; then | |
9554 | enableval="$enable_statusbar" | |
9555 | ||
9556 | if test "$enableval" = yes; then | |
9557 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
9558 | else | |
9559 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
9560 | fi | |
9561 | ||
9562 | else | |
9563 | ||
9564 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
9565 | if test "x$LINE" != x ; then | |
9566 | eval "DEFAULT_$LINE" | |
9567 | else | |
9568 | no_cache=1 | |
9569 | fi | |
9570 | ||
9571 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
9572 | ||
9573 | fi; | |
9574 | ||
9575 | eval "$ac_cv_use_statusbar" | |
9576 | if test "$no_cache" != 1; then | |
9577 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
9578 | fi | |
9579 | ||
9580 | if test "$wxUSE_STATUSBAR" = yes; then | |
9581 | echo "$as_me:$LINENO: result: yes" >&5 | |
9582 | echo "${ECHO_T}yes" >&6 | |
9583 | else | |
9584 | echo "$as_me:$LINENO: result: no" >&5 | |
9585 | echo "${ECHO_T}no" >&6 | |
9586 | fi | |
9587 | ||
9588 | ||
9589 | enablestring= | |
9590 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
9591 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
9592 | no_cache=0 | |
9593 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
9594 | if test "${enable_tabdialog+set}" = set; then | |
9595 | enableval="$enable_tabdialog" | |
9596 | ||
9597 | if test "$enableval" = yes; then | |
f10e38c4 | 9598 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes' |
a848cd7e | 9599 | else |
f10e38c4 | 9600 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no' |
a848cd7e SC |
9601 | fi |
9602 | ||
9603 | else | |
9604 | ||
f10e38c4 | 9605 | LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}` |
a848cd7e SC |
9606 | if test "x$LINE" != x ; then |
9607 | eval "DEFAULT_$LINE" | |
9608 | else | |
9609 | no_cache=1 | |
9610 | fi | |
9611 | ||
f10e38c4 | 9612 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG |
a848cd7e SC |
9613 | |
9614 | fi; | |
9615 | ||
9616 | eval "$ac_cv_use_tabdialog" | |
9617 | if test "$no_cache" != 1; then | |
9618 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
9619 | fi | |
9620 | ||
f10e38c4 | 9621 | if test "$wxUSE_TAB_DIALOG" = yes; then |
a848cd7e SC |
9622 | echo "$as_me:$LINENO: result: yes" >&5 |
9623 | echo "${ECHO_T}yes" >&6 | |
9624 | else | |
9625 | echo "$as_me:$LINENO: result: no" >&5 | |
9626 | echo "${ECHO_T}no" >&6 | |
9627 | fi | |
9628 | ||
9629 | ||
9630 | enablestring= | |
9631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
9632 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
9633 | no_cache=0 | |
9634 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
9635 | if test "${enable_textctrl+set}" = set; then | |
9636 | enableval="$enable_textctrl" | |
9637 | ||
9638 | if test "$enableval" = yes; then | |
9639 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
9640 | else | |
9641 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
9642 | fi | |
9643 | ||
9644 | else | |
9645 | ||
9646 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
9647 | if test "x$LINE" != x ; then | |
9648 | eval "DEFAULT_$LINE" | |
9649 | else | |
9650 | no_cache=1 | |
9651 | fi | |
9652 | ||
9653 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
9654 | ||
9655 | fi; | |
9656 | ||
9657 | eval "$ac_cv_use_textctrl" | |
9658 | if test "$no_cache" != 1; then | |
9659 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
9660 | fi | |
9661 | ||
9662 | if test "$wxUSE_TEXTCTRL" = yes; then | |
9663 | echo "$as_me:$LINENO: result: yes" >&5 | |
9664 | echo "${ECHO_T}yes" >&6 | |
9665 | else | |
9666 | echo "$as_me:$LINENO: result: no" >&5 | |
9667 | echo "${ECHO_T}no" >&6 | |
9668 | fi | |
9669 | ||
9670 | ||
9671 | enablestring= | |
9672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
9673 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
9674 | no_cache=0 | |
9675 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
9676 | if test "${enable_togglebtn+set}" = set; then | |
9677 | enableval="$enable_togglebtn" | |
9678 | ||
9679 | if test "$enableval" = yes; then | |
9680 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
9681 | else | |
9682 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
9683 | fi | |
9684 | ||
9685 | else | |
9686 | ||
9687 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
9688 | if test "x$LINE" != x ; then | |
9689 | eval "DEFAULT_$LINE" | |
9690 | else | |
9691 | no_cache=1 | |
9692 | fi | |
9693 | ||
9694 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
9695 | ||
9696 | fi; | |
9697 | ||
9698 | eval "$ac_cv_use_togglebtn" | |
9699 | if test "$no_cache" != 1; then | |
9700 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
9701 | fi | |
9702 | ||
9703 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
9704 | echo "$as_me:$LINENO: result: yes" >&5 | |
9705 | echo "${ECHO_T}yes" >&6 | |
9706 | else | |
9707 | echo "$as_me:$LINENO: result: no" >&5 | |
9708 | echo "${ECHO_T}no" >&6 | |
9709 | fi | |
9710 | ||
9711 | ||
9712 | enablestring= | |
9713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
9714 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
9715 | no_cache=0 | |
9716 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
9717 | if test "${enable_toolbar+set}" = set; then | |
9718 | enableval="$enable_toolbar" | |
9719 | ||
9720 | if test "$enableval" = yes; then | |
9721 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
9722 | else | |
9723 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
9724 | fi | |
9725 | ||
9726 | else | |
9727 | ||
9728 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
9729 | if test "x$LINE" != x ; then | |
9730 | eval "DEFAULT_$LINE" | |
9731 | else | |
9732 | no_cache=1 | |
9733 | fi | |
9734 | ||
9735 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
9736 | ||
9737 | fi; | |
9738 | ||
9739 | eval "$ac_cv_use_toolbar" | |
9740 | if test "$no_cache" != 1; then | |
9741 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
9742 | fi | |
9743 | ||
9744 | if test "$wxUSE_TOOLBAR" = yes; then | |
9745 | echo "$as_me:$LINENO: result: yes" >&5 | |
9746 | echo "${ECHO_T}yes" >&6 | |
9747 | else | |
9748 | echo "$as_me:$LINENO: result: no" >&5 | |
9749 | echo "${ECHO_T}no" >&6 | |
9750 | fi | |
9751 | ||
9752 | ||
9753 | enablestring= | |
9754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9755 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
9756 | no_cache=0 | |
9757 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
9758 | if test "${enable_tbarnative+set}" = set; then | |
9759 | enableval="$enable_tbarnative" | |
9760 | ||
9761 | if test "$enableval" = yes; then | |
9762 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
9763 | else | |
9764 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
9765 | fi | |
9766 | ||
9767 | else | |
9768 | ||
9769 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
9770 | if test "x$LINE" != x ; then | |
9771 | eval "DEFAULT_$LINE" | |
9772 | else | |
9773 | no_cache=1 | |
9774 | fi | |
9775 | ||
9776 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
9777 | ||
9778 | fi; | |
9779 | ||
9780 | eval "$ac_cv_use_tbarnative" | |
9781 | if test "$no_cache" != 1; then | |
9782 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
9783 | fi | |
9784 | ||
9785 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
9786 | echo "$as_me:$LINENO: result: yes" >&5 | |
9787 | echo "${ECHO_T}yes" >&6 | |
9788 | else | |
9789 | echo "$as_me:$LINENO: result: no" >&5 | |
9790 | echo "${ECHO_T}no" >&6 | |
9791 | fi | |
9792 | ||
9793 | ||
0093c2fc VZ |
9794 | enablestring= |
9795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
9796 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
9797 | no_cache=0 | |
9798 | # Check whether --enable-treebook or --disable-treebook was given. | |
9799 | if test "${enable_treebook+set}" = set; then | |
9800 | enableval="$enable_treebook" | |
9801 | ||
9802 | if test "$enableval" = yes; then | |
9803 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
9804 | else | |
9805 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
9806 | fi | |
9807 | ||
9808 | else | |
9809 | ||
9810 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
9811 | if test "x$LINE" != x ; then | |
9812 | eval "DEFAULT_$LINE" | |
9813 | else | |
9814 | no_cache=1 | |
9815 | fi | |
9816 | ||
9817 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
9818 | ||
9819 | fi; | |
9820 | ||
9821 | eval "$ac_cv_use_treebook" | |
9822 | if test "$no_cache" != 1; then | |
9823 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
9824 | fi | |
9825 | ||
9826 | if test "$wxUSE_TREEBOOK" = yes; then | |
9827 | echo "$as_me:$LINENO: result: yes" >&5 | |
9828 | echo "${ECHO_T}yes" >&6 | |
9829 | else | |
9830 | echo "$as_me:$LINENO: result: no" >&5 | |
9831 | echo "${ECHO_T}no" >&6 | |
9832 | fi | |
9833 | ||
9834 | ||
5ec3bc43 JS |
9835 | enablestring= |
9836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5 | |
9837 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6 | |
9838 | no_cache=0 | |
9839 | # Check whether --enable-toolbook or --disable-toolbook was given. | |
9840 | if test "${enable_toolbook+set}" = set; then | |
9841 | enableval="$enable_toolbook" | |
9842 | ||
9843 | if test "$enableval" = yes; then | |
9844 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes' | |
9845 | else | |
9846 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=no' | |
9847 | fi | |
9848 | ||
9849 | else | |
9850 | ||
9851 | LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}` | |
9852 | if test "x$LINE" != x ; then | |
9853 | eval "DEFAULT_$LINE" | |
9854 | else | |
9855 | no_cache=1 | |
9856 | fi | |
9857 | ||
9858 | ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK | |
9859 | ||
9860 | fi; | |
9861 | ||
9862 | eval "$ac_cv_use_toolbook" | |
9863 | if test "$no_cache" != 1; then | |
9864 | echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp | |
9865 | fi | |
9866 | ||
9867 | if test "$wxUSE_TOOLBOOK" = yes; then | |
9868 | echo "$as_me:$LINENO: result: yes" >&5 | |
9869 | echo "${ECHO_T}yes" >&6 | |
9870 | else | |
9871 | echo "$as_me:$LINENO: result: no" >&5 | |
9872 | echo "${ECHO_T}no" >&6 | |
9873 | fi | |
9874 | ||
9875 | ||
a848cd7e SC |
9876 | enablestring= |
9877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
9878 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
9879 | no_cache=0 | |
9880 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
9881 | if test "${enable_treectrl+set}" = set; then | |
9882 | enableval="$enable_treectrl" | |
9883 | ||
9884 | if test "$enableval" = yes; then | |
9885 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9886 | else | |
9887 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9888 | fi | |
9889 | ||
9890 | else | |
9891 | ||
9892 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9893 | if test "x$LINE" != x ; then | |
9894 | eval "DEFAULT_$LINE" | |
9895 | else | |
9896 | no_cache=1 | |
9897 | fi | |
9898 | ||
9899 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9900 | ||
9901 | fi; | |
9902 | ||
9903 | eval "$ac_cv_use_treectrl" | |
9904 | if test "$no_cache" != 1; then | |
9905 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9906 | fi | |
9907 | ||
9908 | if test "$wxUSE_TREECTRL" = yes; then | |
9909 | echo "$as_me:$LINENO: result: yes" >&5 | |
9910 | echo "${ECHO_T}yes" >&6 | |
9911 | else | |
9912 | echo "$as_me:$LINENO: result: no" >&5 | |
9913 | echo "${ECHO_T}no" >&6 | |
9914 | fi | |
9915 | ||
9916 | ||
9917 | enablestring= | |
9918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9919 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9920 | no_cache=0 | |
9921 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9922 | if test "${enable_tipwindow+set}" = set; then | |
9923 | enableval="$enable_tipwindow" | |
9924 | ||
9925 | if test "$enableval" = yes; then | |
9926 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9927 | else | |
9928 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9929 | fi | |
9930 | ||
9931 | else | |
9932 | ||
9933 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9934 | if test "x$LINE" != x ; then | |
9935 | eval "DEFAULT_$LINE" | |
9936 | else | |
9937 | no_cache=1 | |
9938 | fi | |
9939 | ||
9940 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9941 | ||
9942 | fi; | |
9943 | ||
9944 | eval "$ac_cv_use_tipwindow" | |
9945 | if test "$no_cache" != 1; then | |
9946 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9947 | fi | |
9948 | ||
9949 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9950 | echo "$as_me:$LINENO: result: yes" >&5 | |
9951 | echo "${ECHO_T}yes" >&6 | |
9952 | else | |
9953 | echo "$as_me:$LINENO: result: no" >&5 | |
9954 | echo "${ECHO_T}no" >&6 | |
9955 | fi | |
9956 | ||
9957 | ||
9958 | enablestring= | |
9959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9960 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9961 | no_cache=0 | |
9962 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9963 | if test "${enable_popupwin+set}" = set; then | |
9964 | enableval="$enable_popupwin" | |
9965 | ||
9966 | if test "$enableval" = yes; then | |
9967 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9968 | else | |
9969 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9970 | fi | |
9971 | ||
9972 | else | |
9973 | ||
9974 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9975 | if test "x$LINE" != x ; then | |
9976 | eval "DEFAULT_$LINE" | |
9977 | else | |
9978 | no_cache=1 | |
9979 | fi | |
9980 | ||
9981 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9982 | ||
9983 | fi; | |
9984 | ||
9985 | eval "$ac_cv_use_popupwin" | |
9986 | if test "$no_cache" != 1; then | |
9987 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9988 | fi | |
9989 | ||
9990 | if test "$wxUSE_POPUPWIN" = yes; then | |
9991 | echo "$as_me:$LINENO: result: yes" >&5 | |
9992 | echo "${ECHO_T}yes" >&6 | |
9993 | else | |
9994 | echo "$as_me:$LINENO: result: no" >&5 | |
9995 | echo "${ECHO_T}no" >&6 | |
9996 | fi | |
9997 | ||
9998 | ||
9999 | ||
10000 | ||
10001 | enablestring= | |
10002 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
10003 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
10004 | no_cache=0 | |
10005 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
10006 | if test "${enable_commondlg+set}" = set; then | |
10007 | enableval="$enable_commondlg" | |
10008 | ||
10009 | if test "$enableval" = yes; then | |
10010 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
10011 | else | |
10012 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
10013 | fi | |
10014 | ||
10015 | else | |
10016 | ||
10017 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
10018 | if test "x$LINE" != x ; then | |
10019 | eval "DEFAULT_$LINE" | |
10020 | else | |
10021 | no_cache=1 | |
10022 | fi | |
10023 | ||
10024 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
10025 | ||
10026 | fi; | |
10027 | ||
10028 | eval "$ac_cv_use_commondlg" | |
10029 | if test "$no_cache" != 1; then | |
10030 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
10031 | fi | |
10032 | ||
10033 | if test "$wxUSE_COMMONDLGS" = yes; then | |
10034 | echo "$as_me:$LINENO: result: yes" >&5 | |
10035 | echo "${ECHO_T}yes" >&6 | |
10036 | else | |
10037 | echo "$as_me:$LINENO: result: no" >&5 | |
10038 | echo "${ECHO_T}no" >&6 | |
10039 | fi | |
10040 | ||
10041 | ||
10042 | enablestring= | |
10043 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
10044 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
10045 | no_cache=0 | |
10046 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
10047 | if test "${enable_choicedlg+set}" = set; then | |
10048 | enableval="$enable_choicedlg" | |
10049 | ||
10050 | if test "$enableval" = yes; then | |
10051 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
10052 | else | |
10053 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
10054 | fi | |
10055 | ||
10056 | else | |
10057 | ||
10058 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
10059 | if test "x$LINE" != x ; then | |
10060 | eval "DEFAULT_$LINE" | |
10061 | else | |
10062 | no_cache=1 | |
10063 | fi | |
10064 | ||
10065 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
10066 | ||
10067 | fi; | |
10068 | ||
10069 | eval "$ac_cv_use_choicedlg" | |
10070 | if test "$no_cache" != 1; then | |
10071 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
10072 | fi | |
10073 | ||
10074 | if test "$wxUSE_CHOICEDLG" = yes; then | |
10075 | echo "$as_me:$LINENO: result: yes" >&5 | |
10076 | echo "${ECHO_T}yes" >&6 | |
10077 | else | |
10078 | echo "$as_me:$LINENO: result: no" >&5 | |
10079 | echo "${ECHO_T}no" >&6 | |
10080 | fi | |
10081 | ||
10082 | ||
10083 | enablestring= | |
10084 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
10085 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
10086 | no_cache=0 | |
10087 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
10088 | if test "${enable_coldlg+set}" = set; then | |
10089 | enableval="$enable_coldlg" | |
10090 | ||
10091 | if test "$enableval" = yes; then | |
10092 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
10093 | else | |
10094 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
10095 | fi | |
10096 | ||
10097 | else | |
10098 | ||
10099 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
10100 | if test "x$LINE" != x ; then | |
10101 | eval "DEFAULT_$LINE" | |
10102 | else | |
10103 | no_cache=1 | |
10104 | fi | |
10105 | ||
10106 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
10107 | ||
10108 | fi; | |
10109 | ||
10110 | eval "$ac_cv_use_coldlg" | |
10111 | if test "$no_cache" != 1; then | |
10112 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
10113 | fi | |
10114 | ||
10115 | if test "$wxUSE_COLOURDLG" = yes; then | |
10116 | echo "$as_me:$LINENO: result: yes" >&5 | |
10117 | echo "${ECHO_T}yes" >&6 | |
10118 | else | |
10119 | echo "$as_me:$LINENO: result: no" >&5 | |
10120 | echo "${ECHO_T}no" >&6 | |
10121 | fi | |
10122 | ||
10123 | ||
10124 | enablestring= | |
10125 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
10126 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
10127 | no_cache=0 | |
10128 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
10129 | if test "${enable_filedlg+set}" = set; then | |
10130 | enableval="$enable_filedlg" | |
10131 | ||
10132 | if test "$enableval" = yes; then | |
10133 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
10134 | else | |
10135 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
10136 | fi | |
10137 | ||
10138 | else | |
10139 | ||
10140 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
10141 | if test "x$LINE" != x ; then | |
10142 | eval "DEFAULT_$LINE" | |
10143 | else | |
10144 | no_cache=1 | |
10145 | fi | |
10146 | ||
10147 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
10148 | ||
10149 | fi; | |
10150 | ||
10151 | eval "$ac_cv_use_filedlg" | |
10152 | if test "$no_cache" != 1; then | |
10153 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
10154 | fi | |
10155 | ||
10156 | if test "$wxUSE_FILEDLG" = yes; then | |
10157 | echo "$as_me:$LINENO: result: yes" >&5 | |
10158 | echo "${ECHO_T}yes" >&6 | |
10159 | else | |
10160 | echo "$as_me:$LINENO: result: no" >&5 | |
10161 | echo "${ECHO_T}no" >&6 | |
10162 | fi | |
10163 | ||
10164 | ||
10165 | enablestring= | |
10166 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
10167 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
10168 | no_cache=0 | |
10169 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
10170 | if test "${enable_finddlg+set}" = set; then | |
10171 | enableval="$enable_finddlg" | |
10172 | ||
10173 | if test "$enableval" = yes; then | |
10174 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
10175 | else | |
10176 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
10177 | fi | |
10178 | ||
10179 | else | |
10180 | ||
10181 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
10182 | if test "x$LINE" != x ; then | |
10183 | eval "DEFAULT_$LINE" | |
10184 | else | |
10185 | no_cache=1 | |
10186 | fi | |
10187 | ||
10188 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
10189 | ||
10190 | fi; | |
10191 | ||
10192 | eval "$ac_cv_use_finddlg" | |
10193 | if test "$no_cache" != 1; then | |
10194 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
10195 | fi | |
10196 | ||
10197 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
10198 | echo "$as_me:$LINENO: result: yes" >&5 | |
10199 | echo "${ECHO_T}yes" >&6 | |
10200 | else | |
10201 | echo "$as_me:$LINENO: result: no" >&5 | |
10202 | echo "${ECHO_T}no" >&6 | |
10203 | fi | |
10204 | ||
10205 | ||
10206 | enablestring= | |
10207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
10208 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
10209 | no_cache=0 | |
10210 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
10211 | if test "${enable_fontdlg+set}" = set; then | |
10212 | enableval="$enable_fontdlg" | |
10213 | ||
10214 | if test "$enableval" = yes; then | |
10215 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
10216 | else | |
10217 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
10218 | fi | |
10219 | ||
10220 | else | |
10221 | ||
10222 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
10223 | if test "x$LINE" != x ; then | |
10224 | eval "DEFAULT_$LINE" | |
10225 | else | |
10226 | no_cache=1 | |
10227 | fi | |
10228 | ||
10229 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
10230 | ||
10231 | fi; | |
10232 | ||
10233 | eval "$ac_cv_use_fontdlg" | |
10234 | if test "$no_cache" != 1; then | |
10235 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
10236 | fi | |
10237 | ||
10238 | if test "$wxUSE_FONTDLG" = yes; then | |
10239 | echo "$as_me:$LINENO: result: yes" >&5 | |
10240 | echo "${ECHO_T}yes" >&6 | |
10241 | else | |
10242 | echo "$as_me:$LINENO: result: no" >&5 | |
10243 | echo "${ECHO_T}no" >&6 | |
10244 | fi | |
10245 | ||
10246 | ||
10247 | enablestring= | |
10248 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
10249 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
10250 | no_cache=0 | |
10251 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
10252 | if test "${enable_dirdlg+set}" = set; then | |
10253 | enableval="$enable_dirdlg" | |
10254 | ||
10255 | if test "$enableval" = yes; then | |
10256 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
10257 | else | |
10258 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
10259 | fi | |
10260 | ||
10261 | else | |
10262 | ||
10263 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
10264 | if test "x$LINE" != x ; then | |
10265 | eval "DEFAULT_$LINE" | |
10266 | else | |
10267 | no_cache=1 | |
10268 | fi | |
10269 | ||
10270 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
10271 | ||
10272 | fi; | |
10273 | ||
10274 | eval "$ac_cv_use_dirdlg" | |
10275 | if test "$no_cache" != 1; then | |
10276 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
10277 | fi | |
10278 | ||
10279 | if test "$wxUSE_DIRDLG" = yes; then | |
10280 | echo "$as_me:$LINENO: result: yes" >&5 | |
10281 | echo "${ECHO_T}yes" >&6 | |
10282 | else | |
10283 | echo "$as_me:$LINENO: result: no" >&5 | |
10284 | echo "${ECHO_T}no" >&6 | |
10285 | fi | |
10286 | ||
10287 | ||
10288 | enablestring= | |
10289 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
10290 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10291 | no_cache=0 | |
10292 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
10293 | if test "${enable_msgdlg+set}" = set; then | |
10294 | enableval="$enable_msgdlg" | |
10295 | ||
10296 | if test "$enableval" = yes; then | |
10297 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
10298 | else | |
10299 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
10300 | fi | |
10301 | ||
10302 | else | |
10303 | ||
10304 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
10305 | if test "x$LINE" != x ; then | |
10306 | eval "DEFAULT_$LINE" | |
10307 | else | |
10308 | no_cache=1 | |
10309 | fi | |
10310 | ||
10311 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
10312 | ||
10313 | fi; | |
10314 | ||
10315 | eval "$ac_cv_use_msgdlg" | |
10316 | if test "$no_cache" != 1; then | |
10317 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
10318 | fi | |
10319 | ||
10320 | if test "$wxUSE_MSGDLG" = yes; then | |
10321 | echo "$as_me:$LINENO: result: yes" >&5 | |
10322 | echo "${ECHO_T}yes" >&6 | |
10323 | else | |
10324 | echo "$as_me:$LINENO: result: no" >&5 | |
10325 | echo "${ECHO_T}no" >&6 | |
10326 | fi | |
10327 | ||
10328 | ||
10329 | enablestring= | |
10330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
10331 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10332 | no_cache=0 | |
10333 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
10334 | if test "${enable_numberdlg+set}" = set; then | |
10335 | enableval="$enable_numberdlg" | |
10336 | ||
10337 | if test "$enableval" = yes; then | |
10338 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
10339 | else | |
10340 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
10341 | fi | |
10342 | ||
10343 | else | |
10344 | ||
10345 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
10346 | if test "x$LINE" != x ; then | |
10347 | eval "DEFAULT_$LINE" | |
10348 | else | |
10349 | no_cache=1 | |
10350 | fi | |
10351 | ||
10352 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
10353 | ||
10354 | fi; | |
10355 | ||
10356 | eval "$ac_cv_use_numberdlg" | |
10357 | if test "$no_cache" != 1; then | |
10358 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
10359 | fi | |
10360 | ||
10361 | if test "$wxUSE_NUMBERDLG" = yes; then | |
10362 | echo "$as_me:$LINENO: result: yes" >&5 | |
10363 | echo "${ECHO_T}yes" >&6 | |
10364 | else | |
10365 | echo "$as_me:$LINENO: result: no" >&5 | |
10366 | echo "${ECHO_T}no" >&6 | |
10367 | fi | |
10368 | ||
10369 | ||
10370 | enablestring= | |
10371 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
10372 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
10373 | no_cache=0 | |
10374 | # Check whether --enable-splash or --disable-splash was given. | |
10375 | if test "${enable_splash+set}" = set; then | |
10376 | enableval="$enable_splash" | |
10377 | ||
10378 | if test "$enableval" = yes; then | |
10379 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
10380 | else | |
10381 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
10382 | fi | |
10383 | ||
10384 | else | |
10385 | ||
10386 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
10387 | if test "x$LINE" != x ; then | |
10388 | eval "DEFAULT_$LINE" | |
10389 | else | |
10390 | no_cache=1 | |
10391 | fi | |
10392 | ||
10393 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
10394 | ||
10395 | fi; | |
10396 | ||
10397 | eval "$ac_cv_use_splash" | |
10398 | if test "$no_cache" != 1; then | |
10399 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
10400 | fi | |
10401 | ||
10402 | if test "$wxUSE_SPLASH" = yes; then | |
10403 | echo "$as_me:$LINENO: result: yes" >&5 | |
10404 | echo "${ECHO_T}yes" >&6 | |
10405 | else | |
10406 | echo "$as_me:$LINENO: result: no" >&5 | |
10407 | echo "${ECHO_T}no" >&6 | |
10408 | fi | |
10409 | ||
10410 | ||
10411 | enablestring= | |
10412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
10413 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10414 | no_cache=0 | |
10415 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
10416 | if test "${enable_textdlg+set}" = set; then | |
10417 | enableval="$enable_textdlg" | |
10418 | ||
10419 | if test "$enableval" = yes; then | |
10420 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
10421 | else | |
10422 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
10423 | fi | |
10424 | ||
10425 | else | |
10426 | ||
10427 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
10428 | if test "x$LINE" != x ; then | |
10429 | eval "DEFAULT_$LINE" | |
10430 | else | |
10431 | no_cache=1 | |
10432 | fi | |
10433 | ||
10434 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10435 | ||
10436 | fi; | |
10437 | ||
10438 | eval "$ac_cv_use_textdlg" | |
10439 | if test "$no_cache" != 1; then | |
10440 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
10441 | fi | |
10442 | ||
10443 | if test "$wxUSE_TEXTDLG" = yes; then | |
10444 | echo "$as_me:$LINENO: result: yes" >&5 | |
10445 | echo "${ECHO_T}yes" >&6 | |
10446 | else | |
10447 | echo "$as_me:$LINENO: result: no" >&5 | |
10448 | echo "${ECHO_T}no" >&6 | |
10449 | fi | |
10450 | ||
10451 | ||
10452 | enablestring= | |
10453 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
10454 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10455 | no_cache=0 | |
10456 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
10457 | if test "${enable_tipdlg+set}" = set; then | |
10458 | enableval="$enable_tipdlg" | |
10459 | ||
10460 | if test "$enableval" = yes; then | |
10461 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
10462 | else | |
10463 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
10464 | fi | |
10465 | ||
10466 | else | |
10467 | ||
10468 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
10469 | if test "x$LINE" != x ; then | |
10470 | eval "DEFAULT_$LINE" | |
10471 | else | |
10472 | no_cache=1 | |
10473 | fi | |
10474 | ||
10475 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10476 | ||
10477 | fi; | |
10478 | ||
10479 | eval "$ac_cv_use_tipdlg" | |
10480 | if test "$no_cache" != 1; then | |
10481 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
10482 | fi | |
10483 | ||
10484 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
10485 | echo "$as_me:$LINENO: result: yes" >&5 | |
10486 | echo "${ECHO_T}yes" >&6 | |
10487 | else | |
10488 | echo "$as_me:$LINENO: result: no" >&5 | |
10489 | echo "${ECHO_T}no" >&6 | |
10490 | fi | |
10491 | ||
10492 | ||
10493 | enablestring= | |
10494 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
10495 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10496 | no_cache=0 | |
10497 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
10498 | if test "${enable_progressdlg+set}" = set; then | |
10499 | enableval="$enable_progressdlg" | |
10500 | ||
10501 | if test "$enableval" = yes; then | |
10502 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
10503 | else | |
10504 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
10505 | fi | |
10506 | ||
10507 | else | |
10508 | ||
10509 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
10510 | if test "x$LINE" != x ; then | |
10511 | eval "DEFAULT_$LINE" | |
10512 | else | |
10513 | no_cache=1 | |
10514 | fi | |
10515 | ||
10516 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10517 | ||
10518 | fi; | |
10519 | ||
10520 | eval "$ac_cv_use_progressdlg" | |
10521 | if test "$no_cache" != 1; then | |
10522 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
10523 | fi | |
10524 | ||
10525 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
10526 | echo "$as_me:$LINENO: result: yes" >&5 | |
10527 | echo "${ECHO_T}yes" >&6 | |
10528 | else | |
10529 | echo "$as_me:$LINENO: result: no" >&5 | |
10530 | echo "${ECHO_T}no" >&6 | |
10531 | fi | |
10532 | ||
10533 | ||
10534 | enablestring= | |
10535 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
10536 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
10537 | no_cache=0 | |
10538 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
10539 | if test "${enable_wizarddlg+set}" = set; then | |
10540 | enableval="$enable_wizarddlg" | |
10541 | ||
10542 | if test "$enableval" = yes; then | |
10543 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
10544 | else | |
10545 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
10546 | fi | |
10547 | ||
10548 | else | |
10549 | ||
10550 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
10551 | if test "x$LINE" != x ; then | |
10552 | eval "DEFAULT_$LINE" | |
10553 | else | |
10554 | no_cache=1 | |
10555 | fi | |
10556 | ||
10557 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
10558 | ||
10559 | fi; | |
10560 | ||
10561 | eval "$ac_cv_use_wizarddlg" | |
10562 | if test "$no_cache" != 1; then | |
10563 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
10564 | fi | |
10565 | ||
10566 | if test "$wxUSE_WIZARDDLG" = yes; then | |
10567 | echo "$as_me:$LINENO: result: yes" >&5 | |
10568 | echo "${ECHO_T}yes" >&6 | |
10569 | else | |
10570 | echo "$as_me:$LINENO: result: no" >&5 | |
10571 | echo "${ECHO_T}no" >&6 | |
10572 | fi | |
10573 | ||
10574 | ||
10575 | ||
10576 | ||
10577 | enablestring= | |
10578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
10579 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
10580 | no_cache=0 | |
10581 | # Check whether --enable-menus or --disable-menus was given. | |
10582 | if test "${enable_menus+set}" = set; then | |
10583 | enableval="$enable_menus" | |
10584 | ||
10585 | if test "$enableval" = yes; then | |
10586 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
10587 | else | |
10588 | ac_cv_use_menus='wxUSE_MENUS=no' | |
10589 | fi | |
10590 | ||
10591 | else | |
10592 | ||
10593 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
10594 | if test "x$LINE" != x ; then | |
10595 | eval "DEFAULT_$LINE" | |
10596 | else | |
10597 | no_cache=1 | |
10598 | fi | |
10599 | ||
10600 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
10601 | ||
10602 | fi; | |
10603 | ||
10604 | eval "$ac_cv_use_menus" | |
10605 | if test "$no_cache" != 1; then | |
10606 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
10607 | fi | |
10608 | ||
10609 | if test "$wxUSE_MENUS" = yes; then | |
10610 | echo "$as_me:$LINENO: result: yes" >&5 | |
10611 | echo "${ECHO_T}yes" >&6 | |
10612 | else | |
10613 | echo "$as_me:$LINENO: result: no" >&5 | |
10614 | echo "${ECHO_T}no" >&6 | |
10615 | fi | |
10616 | ||
10617 | ||
10618 | enablestring= | |
10619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
10620 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10621 | no_cache=0 | |
10622 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
10623 | if test "${enable_miniframe+set}" = set; then | |
10624 | enableval="$enable_miniframe" | |
10625 | ||
10626 | if test "$enableval" = yes; then | |
10627 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
10628 | else | |
10629 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
10630 | fi | |
10631 | ||
10632 | else | |
10633 | ||
10634 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
10635 | if test "x$LINE" != x ; then | |
10636 | eval "DEFAULT_$LINE" | |
10637 | else | |
10638 | no_cache=1 | |
10639 | fi | |
10640 | ||
10641 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10642 | ||
10643 | fi; | |
10644 | ||
10645 | eval "$ac_cv_use_miniframe" | |
10646 | if test "$no_cache" != 1; then | |
10647 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
10648 | fi | |
10649 | ||
10650 | if test "$wxUSE_MINIFRAME" = yes; then | |
10651 | echo "$as_me:$LINENO: result: yes" >&5 | |
10652 | echo "${ECHO_T}yes" >&6 | |
10653 | else | |
10654 | echo "$as_me:$LINENO: result: no" >&5 | |
10655 | echo "${ECHO_T}no" >&6 | |
10656 | fi | |
10657 | ||
10658 | ||
10659 | enablestring= | |
10660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
10661 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10662 | no_cache=0 | |
10663 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
10664 | if test "${enable_tooltips+set}" = set; then | |
10665 | enableval="$enable_tooltips" | |
10666 | ||
10667 | if test "$enableval" = yes; then | |
10668 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
10669 | else | |
10670 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
10671 | fi | |
10672 | ||
10673 | else | |
10674 | ||
10675 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
10676 | if test "x$LINE" != x ; then | |
10677 | eval "DEFAULT_$LINE" | |
10678 | else | |
10679 | no_cache=1 | |
10680 | fi | |
10681 | ||
10682 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10683 | ||
10684 | fi; | |
10685 | ||
10686 | eval "$ac_cv_use_tooltips" | |
10687 | if test "$no_cache" != 1; then | |
10688 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
10689 | fi | |
10690 | ||
10691 | if test "$wxUSE_TOOLTIPS" = yes; then | |
10692 | echo "$as_me:$LINENO: result: yes" >&5 | |
10693 | echo "${ECHO_T}yes" >&6 | |
10694 | else | |
10695 | echo "$as_me:$LINENO: result: no" >&5 | |
10696 | echo "${ECHO_T}no" >&6 | |
10697 | fi | |
10698 | ||
10699 | ||
10700 | enablestring= | |
10701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
10702 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10703 | no_cache=0 | |
10704 | # Check whether --enable-splines or --disable-splines was given. | |
10705 | if test "${enable_splines+set}" = set; then | |
10706 | enableval="$enable_splines" | |
10707 | ||
10708 | if test "$enableval" = yes; then | |
10709 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
10710 | else | |
10711 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
10712 | fi | |
10713 | ||
10714 | else | |
10715 | ||
10716 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
10717 | if test "x$LINE" != x ; then | |
10718 | eval "DEFAULT_$LINE" | |
10719 | else | |
10720 | no_cache=1 | |
10721 | fi | |
10722 | ||
10723 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10724 | ||
10725 | fi; | |
10726 | ||
10727 | eval "$ac_cv_use_splines" | |
10728 | if test "$no_cache" != 1; then | |
10729 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
10730 | fi | |
10731 | ||
10732 | if test "$wxUSE_SPLINES" = yes; then | |
10733 | echo "$as_me:$LINENO: result: yes" >&5 | |
10734 | echo "${ECHO_T}yes" >&6 | |
10735 | else | |
10736 | echo "$as_me:$LINENO: result: no" >&5 | |
10737 | echo "${ECHO_T}no" >&6 | |
10738 | fi | |
10739 | ||
10740 | ||
fbe2ca43 SN |
10741 | enablestring= |
10742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
10743 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
10744 | no_cache=0 | |
10745 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
10746 | if test "${enable_mousewheel+set}" = set; then | |
10747 | enableval="$enable_mousewheel" | |
10748 | ||
10749 | if test "$enableval" = yes; then | |
10750 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
10751 | else | |
10752 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
10753 | fi | |
10754 | ||
10755 | else | |
10756 | ||
10757 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
10758 | if test "x$LINE" != x ; then | |
10759 | eval "DEFAULT_$LINE" | |
10760 | else | |
10761 | no_cache=1 | |
10762 | fi | |
10763 | ||
10764 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
10765 | ||
10766 | fi; | |
10767 | ||
10768 | eval "$ac_cv_use_mousewheel" | |
10769 | if test "$no_cache" != 1; then | |
10770 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
10771 | fi | |
10772 | ||
10773 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
10774 | echo "$as_me:$LINENO: result: yes" >&5 | |
10775 | echo "${ECHO_T}yes" >&6 | |
10776 | else | |
10777 | echo "$as_me:$LINENO: result: no" >&5 | |
10778 | echo "${ECHO_T}no" >&6 | |
10779 | fi | |
10780 | ||
10781 | ||
a848cd7e SC |
10782 | enablestring= |
10783 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
10784 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10785 | no_cache=0 | |
10786 | # Check whether --enable-validators or --disable-validators was given. | |
10787 | if test "${enable_validators+set}" = set; then | |
10788 | enableval="$enable_validators" | |
10789 | ||
10790 | if test "$enableval" = yes; then | |
10791 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
10792 | else | |
10793 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
10794 | fi | |
10795 | ||
10796 | else | |
10797 | ||
10798 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
10799 | if test "x$LINE" != x ; then | |
10800 | eval "DEFAULT_$LINE" | |
10801 | else | |
10802 | no_cache=1 | |
10803 | fi | |
10804 | ||
10805 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10806 | ||
10807 | fi; | |
10808 | ||
10809 | eval "$ac_cv_use_validators" | |
10810 | if test "$no_cache" != 1; then | |
10811 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
10812 | fi | |
10813 | ||
10814 | if test "$wxUSE_VALIDATORS" = yes; then | |
10815 | echo "$as_me:$LINENO: result: yes" >&5 | |
10816 | echo "${ECHO_T}yes" >&6 | |
10817 | else | |
10818 | echo "$as_me:$LINENO: result: no" >&5 | |
10819 | echo "${ECHO_T}no" >&6 | |
10820 | fi | |
10821 | ||
10822 | ||
10823 | enablestring= | |
10824 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10825 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10826 | no_cache=0 | |
10827 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
10828 | if test "${enable_busyinfo+set}" = set; then | |
10829 | enableval="$enable_busyinfo" | |
10830 | ||
10831 | if test "$enableval" = yes; then | |
10832 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
10833 | else | |
10834 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
10835 | fi | |
10836 | ||
10837 | else | |
10838 | ||
10839 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
10840 | if test "x$LINE" != x ; then | |
10841 | eval "DEFAULT_$LINE" | |
10842 | else | |
10843 | no_cache=1 | |
10844 | fi | |
10845 | ||
10846 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10847 | ||
10848 | fi; | |
10849 | ||
10850 | eval "$ac_cv_use_busyinfo" | |
10851 | if test "$no_cache" != 1; then | |
10852 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
10853 | fi | |
10854 | ||
10855 | if test "$wxUSE_BUSYINFO" = yes; then | |
10856 | echo "$as_me:$LINENO: result: yes" >&5 | |
10857 | echo "${ECHO_T}yes" >&6 | |
10858 | else | |
10859 | echo "$as_me:$LINENO: result: no" >&5 | |
10860 | echo "${ECHO_T}no" >&6 | |
10861 | fi | |
10862 | ||
10863 | ||
10864 | enablestring= | |
10865 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
10866 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
10867 | no_cache=0 | |
10868 | # Check whether --enable-joystick or --disable-joystick was given. | |
10869 | if test "${enable_joystick+set}" = set; then | |
10870 | enableval="$enable_joystick" | |
10871 | ||
10872 | if test "$enableval" = yes; then | |
10873 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
10874 | else | |
10875 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
10876 | fi | |
10877 | ||
10878 | else | |
10879 | ||
10880 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
10881 | if test "x$LINE" != x ; then | |
10882 | eval "DEFAULT_$LINE" | |
10883 | else | |
10884 | no_cache=1 | |
10885 | fi | |
10886 | ||
10887 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10888 | ||
10889 | fi; | |
10890 | ||
10891 | eval "$ac_cv_use_joystick" | |
10892 | if test "$no_cache" != 1; then | |
10893 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10894 | fi | |
10895 | ||
10896 | if test "$wxUSE_JOYSTICK" = yes; then | |
10897 | echo "$as_me:$LINENO: result: yes" >&5 | |
10898 | echo "${ECHO_T}yes" >&6 | |
10899 | else | |
10900 | echo "$as_me:$LINENO: result: no" >&5 | |
10901 | echo "${ECHO_T}no" >&6 | |
10902 | fi | |
10903 | ||
10904 | ||
10905 | enablestring= | |
10906 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10907 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10908 | no_cache=0 | |
10909 | # Check whether --enable-metafile or --disable-metafile was given. | |
10910 | if test "${enable_metafile+set}" = set; then | |
10911 | enableval="$enable_metafile" | |
10912 | ||
10913 | if test "$enableval" = yes; then | |
10914 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10915 | else | |
10916 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10917 | fi | |
10918 | ||
10919 | else | |
10920 | ||
10921 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10922 | if test "x$LINE" != x ; then | |
10923 | eval "DEFAULT_$LINE" | |
10924 | else | |
10925 | no_cache=1 | |
10926 | fi | |
10927 | ||
10928 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10929 | ||
10930 | fi; | |
10931 | ||
10932 | eval "$ac_cv_use_metafile" | |
10933 | if test "$no_cache" != 1; then | |
10934 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10935 | fi | |
10936 | ||
10937 | if test "$wxUSE_METAFILE" = yes; then | |
10938 | echo "$as_me:$LINENO: result: yes" >&5 | |
10939 | echo "${ECHO_T}yes" >&6 | |
10940 | else | |
10941 | echo "$as_me:$LINENO: result: no" >&5 | |
10942 | echo "${ECHO_T}no" >&6 | |
10943 | fi | |
10944 | ||
10945 | ||
10946 | enablestring= | |
10947 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10948 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10949 | no_cache=0 | |
10950 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10951 | if test "${enable_dragimage+set}" = set; then | |
10952 | enableval="$enable_dragimage" | |
10953 | ||
10954 | if test "$enableval" = yes; then | |
10955 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10956 | else | |
10957 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10958 | fi | |
10959 | ||
10960 | else | |
10961 | ||
10962 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10963 | if test "x$LINE" != x ; then | |
10964 | eval "DEFAULT_$LINE" | |
10965 | else | |
10966 | no_cache=1 | |
10967 | fi | |
10968 | ||
10969 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10970 | ||
10971 | fi; | |
10972 | ||
10973 | eval "$ac_cv_use_dragimage" | |
10974 | if test "$no_cache" != 1; then | |
10975 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10976 | fi | |
10977 | ||
10978 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10979 | echo "$as_me:$LINENO: result: yes" >&5 | |
10980 | echo "${ECHO_T}yes" >&6 | |
10981 | else | |
10982 | echo "$as_me:$LINENO: result: no" >&5 | |
10983 | echo "${ECHO_T}no" >&6 | |
10984 | fi | |
10985 | ||
10986 | ||
10987 | enablestring= | |
10988 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10989 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10990 | no_cache=0 | |
10991 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10992 | if test "${enable_accessibility+set}" = set; then | |
10993 | enableval="$enable_accessibility" | |
10994 | ||
10995 | if test "$enableval" = yes; then | |
10996 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10997 | else | |
10998 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10999 | fi | |
11000 | ||
11001 | else | |
11002 | ||
11003 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
11004 | if test "x$LINE" != x ; then | |
11005 | eval "DEFAULT_$LINE" | |
11006 | else | |
11007 | no_cache=1 | |
11008 | fi | |
11009 | ||
11010 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
11011 | ||
11012 | fi; | |
11013 | ||
11014 | eval "$ac_cv_use_accessibility" | |
11015 | if test "$no_cache" != 1; then | |
11016 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
11017 | fi | |
11018 | ||
11019 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
11020 | echo "$as_me:$LINENO: result: yes" >&5 | |
11021 | echo "${ECHO_T}yes" >&6 | |
11022 | else | |
11023 | echo "$as_me:$LINENO: result: no" >&5 | |
11024 | echo "${ECHO_T}no" >&6 | |
11025 | fi | |
11026 | ||
11027 | ||
38b4a946 VZ |
11028 | if test "$wxUSE_MSW" = "1"; then |
11029 | ||
11030 | enablestring= | |
11031 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
11032 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
11033 | no_cache=0 | |
11034 | # Check whether --enable-dccache or --disable-dccache was given. | |
11035 | if test "${enable_dccache+set}" = set; then | |
11036 | enableval="$enable_dccache" | |
11037 | ||
11038 | if test "$enableval" = yes; then | |
11039 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
11040 | else | |
11041 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
11042 | fi | |
11043 | ||
11044 | else | |
11045 | ||
11046 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
11047 | if test "x$LINE" != x ; then | |
11048 | eval "DEFAULT_$LINE" | |
11049 | else | |
11050 | no_cache=1 | |
11051 | fi | |
11052 | ||
11053 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
11054 | ||
11055 | fi; | |
11056 | ||
11057 | eval "$ac_cv_use_dccache" | |
11058 | if test "$no_cache" != 1; then | |
11059 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
11060 | fi | |
11061 | ||
11062 | if test "$wxUSE_DC_CACHEING" = yes; then | |
11063 | echo "$as_me:$LINENO: result: yes" >&5 | |
11064 | echo "${ECHO_T}yes" >&6 | |
11065 | else | |
11066 | echo "$as_me:$LINENO: result: no" >&5 | |
11067 | echo "${ECHO_T}no" >&6 | |
11068 | fi | |
11069 | ||
11070 | fi | |
11071 | ||
a848cd7e SC |
11072 | |
11073 | ||
11074 | enablestring= | |
11075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
11076 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
11077 | no_cache=0 | |
11078 | # Check whether --enable-palette or --disable-palette was given. | |
11079 | if test "${enable_palette+set}" = set; then | |
11080 | enableval="$enable_palette" | |
11081 | ||
11082 | if test "$enableval" = yes; then | |
11083 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
11084 | else | |
11085 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
11086 | fi | |
11087 | ||
11088 | else | |
11089 | ||
11090 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
11091 | if test "x$LINE" != x ; then | |
11092 | eval "DEFAULT_$LINE" | |
11093 | else | |
11094 | no_cache=1 | |
11095 | fi | |
11096 | ||
11097 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
11098 | ||
11099 | fi; | |
11100 | ||
11101 | eval "$ac_cv_use_palette" | |
11102 | if test "$no_cache" != 1; then | |
11103 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
11104 | fi | |
11105 | ||
11106 | if test "$wxUSE_PALETTE" = yes; then | |
11107 | echo "$as_me:$LINENO: result: yes" >&5 | |
11108 | echo "${ECHO_T}yes" >&6 | |
11109 | else | |
11110 | echo "$as_me:$LINENO: result: no" >&5 | |
11111 | echo "${ECHO_T}no" >&6 | |
11112 | fi | |
11113 | ||
11114 | ||
11115 | enablestring= | |
11116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
11117 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
11118 | no_cache=0 | |
11119 | # Check whether --enable-image or --disable-image was given. | |
11120 | if test "${enable_image+set}" = set; then | |
11121 | enableval="$enable_image" | |
11122 | ||
11123 | if test "$enableval" = yes; then | |
11124 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
11125 | else | |
11126 | ac_cv_use_image='wxUSE_IMAGE=no' | |
11127 | fi | |
11128 | ||
11129 | else | |
11130 | ||
11131 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
11132 | if test "x$LINE" != x ; then | |
11133 | eval "DEFAULT_$LINE" | |
11134 | else | |
11135 | no_cache=1 | |
11136 | fi | |
11137 | ||
11138 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
11139 | ||
11140 | fi; | |
11141 | ||
11142 | eval "$ac_cv_use_image" | |
11143 | if test "$no_cache" != 1; then | |
11144 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
11145 | fi | |
11146 | ||
11147 | if test "$wxUSE_IMAGE" = yes; then | |
11148 | echo "$as_me:$LINENO: result: yes" >&5 | |
11149 | echo "${ECHO_T}yes" >&6 | |
11150 | else | |
11151 | echo "$as_me:$LINENO: result: no" >&5 | |
11152 | echo "${ECHO_T}no" >&6 | |
11153 | fi | |
11154 | ||
11155 | ||
11156 | enablestring= | |
11157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
11158 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
11159 | no_cache=0 | |
11160 | # Check whether --enable-gif or --disable-gif was given. | |
11161 | if test "${enable_gif+set}" = set; then | |
11162 | enableval="$enable_gif" | |
11163 | ||
11164 | if test "$enableval" = yes; then | |
11165 | ac_cv_use_gif='wxUSE_GIF=yes' | |
11166 | else | |
11167 | ac_cv_use_gif='wxUSE_GIF=no' | |
11168 | fi | |
11169 | ||
11170 | else | |
11171 | ||
11172 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
11173 | if test "x$LINE" != x ; then | |
11174 | eval "DEFAULT_$LINE" | |
11175 | else | |
11176 | no_cache=1 | |
11177 | fi | |
11178 | ||
11179 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
11180 | ||
11181 | fi; | |
11182 | ||
11183 | eval "$ac_cv_use_gif" | |
11184 | if test "$no_cache" != 1; then | |
11185 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
11186 | fi | |
11187 | ||
11188 | if test "$wxUSE_GIF" = yes; then | |
11189 | echo "$as_me:$LINENO: result: yes" >&5 | |
11190 | echo "${ECHO_T}yes" >&6 | |
11191 | else | |
11192 | echo "$as_me:$LINENO: result: no" >&5 | |
11193 | echo "${ECHO_T}no" >&6 | |
11194 | fi | |
11195 | ||
11196 | ||
11197 | enablestring= | |
11198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
11199 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
11200 | no_cache=0 | |
11201 | # Check whether --enable-pcx or --disable-pcx was given. | |
11202 | if test "${enable_pcx+set}" = set; then | |
11203 | enableval="$enable_pcx" | |
11204 | ||
11205 | if test "$enableval" = yes; then | |
11206 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
11207 | else | |
11208 | ac_cv_use_pcx='wxUSE_PCX=no' | |
11209 | fi | |
11210 | ||
11211 | else | |
11212 | ||
11213 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
11214 | if test "x$LINE" != x ; then | |
11215 | eval "DEFAULT_$LINE" | |
11216 | else | |
11217 | no_cache=1 | |
11218 | fi | |
11219 | ||
11220 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
11221 | ||
11222 | fi; | |
11223 | ||
11224 | eval "$ac_cv_use_pcx" | |
11225 | if test "$no_cache" != 1; then | |
11226 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
11227 | fi | |
11228 | ||
11229 | if test "$wxUSE_PCX" = yes; then | |
11230 | echo "$as_me:$LINENO: result: yes" >&5 | |
11231 | echo "${ECHO_T}yes" >&6 | |
11232 | else | |
11233 | echo "$as_me:$LINENO: result: no" >&5 | |
11234 | echo "${ECHO_T}no" >&6 | |
11235 | fi | |
11236 | ||
11237 | ||
11238 | enablestring= | |
11239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
11240 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
11241 | no_cache=0 | |
11242 | # Check whether --enable-iff or --disable-iff was given. | |
11243 | if test "${enable_iff+set}" = set; then | |
11244 | enableval="$enable_iff" | |
11245 | ||
11246 | if test "$enableval" = yes; then | |
11247 | ac_cv_use_iff='wxUSE_IFF=yes' | |
11248 | else | |
11249 | ac_cv_use_iff='wxUSE_IFF=no' | |
11250 | fi | |
11251 | ||
11252 | else | |
11253 | ||
11254 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
11255 | if test "x$LINE" != x ; then | |
11256 | eval "DEFAULT_$LINE" | |
11257 | else | |
11258 | no_cache=1 | |
11259 | fi | |
11260 | ||
11261 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
11262 | ||
11263 | fi; | |
11264 | ||
11265 | eval "$ac_cv_use_iff" | |
11266 | if test "$no_cache" != 1; then | |
11267 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
11268 | fi | |
11269 | ||
11270 | if test "$wxUSE_IFF" = yes; then | |
11271 | echo "$as_me:$LINENO: result: yes" >&5 | |
11272 | echo "${ECHO_T}yes" >&6 | |
11273 | else | |
11274 | echo "$as_me:$LINENO: result: no" >&5 | |
11275 | echo "${ECHO_T}no" >&6 | |
11276 | fi | |
11277 | ||
11278 | ||
11279 | enablestring= | |
11280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
11281 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
11282 | no_cache=0 | |
11283 | # Check whether --enable-pnm or --disable-pnm was given. | |
11284 | if test "${enable_pnm+set}" = set; then | |
11285 | enableval="$enable_pnm" | |
11286 | ||
11287 | if test "$enableval" = yes; then | |
11288 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
11289 | else | |
11290 | ac_cv_use_pnm='wxUSE_PNM=no' | |
11291 | fi | |
11292 | ||
11293 | else | |
11294 | ||
11295 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
11296 | if test "x$LINE" != x ; then | |
11297 | eval "DEFAULT_$LINE" | |
11298 | else | |
11299 | no_cache=1 | |
11300 | fi | |
11301 | ||
11302 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
11303 | ||
11304 | fi; | |
11305 | ||
11306 | eval "$ac_cv_use_pnm" | |
11307 | if test "$no_cache" != 1; then | |
11308 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
11309 | fi | |
11310 | ||
11311 | if test "$wxUSE_PNM" = yes; then | |
11312 | echo "$as_me:$LINENO: result: yes" >&5 | |
11313 | echo "${ECHO_T}yes" >&6 | |
11314 | else | |
11315 | echo "$as_me:$LINENO: result: no" >&5 | |
11316 | echo "${ECHO_T}no" >&6 | |
11317 | fi | |
11318 | ||
11319 | ||
11320 | enablestring= | |
11321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
11322 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
11323 | no_cache=0 | |
11324 | # Check whether --enable-xpm or --disable-xpm was given. | |
11325 | if test "${enable_xpm+set}" = set; then | |
11326 | enableval="$enable_xpm" | |
11327 | ||
11328 | if test "$enableval" = yes; then | |
11329 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
11330 | else | |
11331 | ac_cv_use_xpm='wxUSE_XPM=no' | |
11332 | fi | |
11333 | ||
11334 | else | |
11335 | ||
11336 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
11337 | if test "x$LINE" != x ; then | |
11338 | eval "DEFAULT_$LINE" | |
11339 | else | |
11340 | no_cache=1 | |
11341 | fi | |
11342 | ||
11343 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
11344 | ||
11345 | fi; | |
11346 | ||
11347 | eval "$ac_cv_use_xpm" | |
11348 | if test "$no_cache" != 1; then | |
11349 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
11350 | fi | |
11351 | ||
11352 | if test "$wxUSE_XPM" = yes; then | |
11353 | echo "$as_me:$LINENO: result: yes" >&5 | |
11354 | echo "${ECHO_T}yes" >&6 | |
11355 | else | |
11356 | echo "$as_me:$LINENO: result: no" >&5 | |
11357 | echo "${ECHO_T}no" >&6 | |
11358 | fi | |
11359 | ||
11360 | ||
11361 | enablestring= | |
11362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
11363 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
11364 | no_cache=0 | |
11365 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
11366 | if test "${enable_ico_cur+set}" = set; then | |
11367 | enableval="$enable_ico_cur" | |
11368 | ||
11369 | if test "$enableval" = yes; then | |
11370 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
11371 | else | |
11372 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
11373 | fi | |
11374 | ||
11375 | else | |
11376 | ||
11377 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
11378 | if test "x$LINE" != x ; then | |
11379 | eval "DEFAULT_$LINE" | |
11380 | else | |
11381 | no_cache=1 | |
11382 | fi | |
11383 | ||
11384 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
11385 | ||
11386 | fi; | |
11387 | ||
11388 | eval "$ac_cv_use_ico_cur" | |
11389 | if test "$no_cache" != 1; then | |
11390 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
11391 | fi | |
11392 | ||
11393 | if test "$wxUSE_ICO_CUR" = yes; then | |
11394 | echo "$as_me:$LINENO: result: yes" >&5 | |
11395 | echo "${ECHO_T}yes" >&6 | |
11396 | else | |
11397 | echo "$as_me:$LINENO: result: no" >&5 | |
11398 | echo "${ECHO_T}no" >&6 | |
11399 | fi | |
11400 | ||
11401 | ||
11402 | fi | |
11403 | ||
11404 | ||
11405 | ||
ceec2216 RL |
11406 | # Check whether --with-flavour or --without-flavour was given. |
11407 | if test "${with_flavour+set}" = set; then | |
11408 | withval="$with_flavour" | |
11409 | WX_FLAVOUR="$withval" | |
11410 | fi; | |
11411 | ||
11412 | ||
11413 | ||
a848cd7e SC |
11414 | enablestring= |
11415 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
11416 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
11417 | no_cache=0 | |
11418 | # Check whether --enable-official_build or --disable-official_build was given. | |
11419 | if test "${enable_official_build+set}" = set; then | |
11420 | enableval="$enable_official_build" | |
11421 | ||
11422 | if test "$enableval" = yes; then | |
11423 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
11424 | else | |
11425 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
11426 | fi | |
11427 | ||
11428 | else | |
11429 | ||
11430 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
11431 | if test "x$LINE" != x ; then | |
11432 | eval "DEFAULT_$LINE" | |
11433 | else | |
11434 | no_cache=1 | |
11435 | fi | |
11436 | ||
11437 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
11438 | ||
11439 | fi; | |
11440 | ||
11441 | eval "$ac_cv_use_official_build" | |
11442 | if test "$no_cache" != 1; then | |
11443 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
11444 | fi | |
11445 | ||
11446 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
11447 | echo "$as_me:$LINENO: result: yes" >&5 | |
11448 | echo "${ECHO_T}yes" >&6 | |
11449 | else | |
11450 | echo "$as_me:$LINENO: result: no" >&5 | |
11451 | echo "${ECHO_T}no" >&6 | |
11452 | fi | |
11453 | ||
11454 | # Check whether --enable-vendor or --disable-vendor was given. | |
11455 | if test "${enable_vendor+set}" = set; then | |
11456 | enableval="$enable_vendor" | |
11457 | VENDOR="$enableval" | |
11458 | fi; | |
11459 | if test "x$VENDOR" = "x"; then | |
11460 | VENDOR="custom" | |
11461 | fi | |
11462 | ||
a848cd7e SC |
11463 | |
11464 | ||
11465 | ||
11466 | echo "saving argument cache $wx_arg_cache_file" | |
11467 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
11468 | ||
11469 | ||
11470 | ||
11471 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
11472 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
11473 | ||
11474 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
11475 | if test "$wxUSE_WINE" = "yes"; then | |
11476 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
11477 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
11478 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
11479 | wxUSE_SHARED=no | |
11480 | fi | |
11481 | ||
f597b41c | 11482 | |
a848cd7e SC |
11483 | if test "$wxUSE_GUI" = "yes"; then |
11484 | ||
11485 | if test "$USE_BEOS" = 1; then | |
11486 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
11487 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
11488 | { (exit 1); exit 1; }; } | |
11489 | fi | |
11490 | ||
11491 | if test "$TOOLKIT_GIVEN" = 1; then | |
11492 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11493 | var=wxUSE_$toolkit | |
11494 | eval "value=\$${var}" | |
f34ca037 MW |
11495 | if test "x$value" = "xno"; then |
11496 | eval "$var=0" | |
11497 | elif test "x$value" != "x"; then | |
11498 | eval "$var=1" | |
11499 | fi | |
11500 | ||
11501 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
11502 | eval "wx${toolkit}_VERSION=$value" | |
11503 | fi | |
a848cd7e SC |
11504 | done |
11505 | else | |
11506 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11507 | if test "$has_toolkit_in_cache" != 1; then | |
11508 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
11509 | else | |
11510 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
11511 | |
11512 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
11513 | if test "x$version" != "x"; then | |
11514 | eval "wx${toolkit}_VERSION=$version" | |
11515 | fi | |
a848cd7e SC |
11516 | fi |
11517 | eval "wxUSE_$toolkit=\$${var}" | |
11518 | done | |
11519 | fi | |
11520 | ||
11521 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
b3c86150 | 11522 | + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \ |
a848cd7e SC |
11523 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` |
11524 | ||
11525 | case "${host}" in | |
11526 | *-pc-os2_emx | *-pc-os2-emx ) | |
11527 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
11528 | esac | |
11529 | ||
11530 | case "$NUM_TOOLKITS" in | |
11531 | 1) | |
11532 | ;; | |
11533 | 0) | |
11534 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
11535 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
11536 | { (exit 1); exit 1; }; } | |
11537 | ;; | |
11538 | *) | |
11539 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
11540 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
11541 | { (exit 1); exit 1; }; } | |
11542 | esac | |
11543 | ||
f34ca037 MW |
11544 | # to be removed when --disable-gtk2 isn't needed |
11545 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11546 | wxGTK_VERSION=2 | |
11547 | elif test "x$wxUSE_GTK2" = "xno"; then | |
11548 | wxGTK_VERSION=1 | |
11549 | fi | |
11550 | ||
a848cd7e SC |
11551 | for toolkit in `echo $ALL_TOOLKITS`; do |
11552 | var=wxUSE_$toolkit | |
11553 | eval "value=\$${var}" | |
11554 | if test "x$value" != x; then | |
11555 | cache_var=CACHE_$toolkit | |
11556 | eval "cache=\$${cache_var}" | |
11557 | if test "$cache" = 1; then | |
11558 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
11559 | eval "version=\$wx${toolkit}_VERSION" |
11560 | if test "x$version" != "x"; then | |
11561 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
11562 | fi | |
a848cd7e SC |
11563 | fi |
11564 | if test "$value" = 1; then | |
11565 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
11566 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
11567 | echo "${ECHO_T}$toolkit_echo" >&6 | |
11568 | fi | |
11569 | fi | |
11570 | done | |
11571 | else | |
11572 | if test "x$host_alias" != "x"; then | |
11573 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
11574 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
11575 | else | |
11576 | echo "$as_me:$LINENO: result: base only" >&5 | |
11577 | echo "${ECHO_T}base only" >&6 | |
11578 | fi | |
11579 | fi | |
11580 | ||
11581 | wants_win32=0 | |
11582 | doesnt_want_win32=0 | |
11583 | case "${host}" in | |
11584 | *-*-cygwin*) | |
11585 | if test "$wxUSE_MSW" = 1 ; then | |
11586 | wants_win32=1 | |
7275146d | 11587 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
11588 | else |
11589 | doesnt_want_win32=1 | |
11590 | fi | |
11591 | ;; | |
11592 | *-*-mingw*) | |
11593 | wants_win32=1 | |
11594 | ;; | |
11595 | esac | |
11596 | ||
11597 | if test "$wxUSE_WINE" = "yes"; then | |
11598 | wants_win32=1 | |
11599 | CC=winegcc | |
11600 | CXX=wineg++ | |
a848cd7e SC |
11601 | LDFLAGS_GUI="-mwindows" |
11602 | fi | |
11603 | ||
11604 | if test "$wants_win32" = 1 ; then | |
11605 | USE_UNIX=0 | |
11606 | USE_WIN32=1 | |
11607 | cat >>confdefs.h <<\_ACEOF | |
11608 | #define __WIN32__ 1 | |
11609 | _ACEOF | |
11610 | ||
11611 | cat >>confdefs.h <<\_ACEOF | |
11612 | #define __WIN95__ 1 | |
11613 | _ACEOF | |
11614 | ||
11615 | cat >>confdefs.h <<\_ACEOF | |
11616 | #define __WINDOWS__ 1 | |
11617 | _ACEOF | |
11618 | ||
11619 | cat >>confdefs.h <<\_ACEOF | |
11620 | #define __GNUWIN32__ 1 | |
11621 | _ACEOF | |
11622 | ||
11623 | cat >>confdefs.h <<\_ACEOF | |
11624 | #define STRICT 1 | |
11625 | _ACEOF | |
11626 | ||
11627 | cat >>confdefs.h <<\_ACEOF | |
11628 | #define WINVER 0x0400 | |
11629 | _ACEOF | |
11630 | ||
11631 | fi | |
11632 | if test "$doesnt_want_win32" = 1 ; then | |
11633 | USE_UNIX=1 | |
11634 | USE_WIN32=0 | |
11635 | fi | |
11636 | ||
11637 | if test "$USE_UNIX" = 1 ; then | |
11638 | wxUSE_UNIX=yes | |
11639 | cat >>confdefs.h <<\_ACEOF | |
11640 | #define __UNIX__ 1 | |
11641 | _ACEOF | |
11642 | ||
11643 | fi | |
11644 | ||
11645 | ||
11646 | cat >confcache <<\_ACEOF | |
11647 | # This file is a shell script that caches the results of configure | |
11648 | # tests run on this system so they can be shared between configure | |
11649 | # scripts and configure runs, see configure's option --config-cache. | |
11650 | # It is not useful on other systems. If it contains results you don't | |
11651 | # want to keep, you may remove or edit it. | |
11652 | # | |
11653 | # config.status only pays attention to the cache file if you give it | |
11654 | # the --recheck option to rerun configure. | |
11655 | # | |
11656 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11657 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11658 | # following values. | |
11659 | ||
11660 | _ACEOF | |
11661 | ||
11662 | # The following way of writing the cache mishandles newlines in values, | |
11663 | # but we know of no workaround that is simple, portable, and efficient. | |
11664 | # So, don't put newlines in cache variables' values. | |
11665 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11666 | # and sets the high bit in the cache file unless we assign to the vars. | |
11667 | { | |
11668 | (set) 2>&1 | | |
11669 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11670 | *ac_space=\ *) | |
11671 | # `set' does not quote correctly, so add quotes (double-quote | |
11672 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11673 | sed -n \ | |
ac1cb8d3 VS |
11674 | "s/'/'\\\\''/g; |
11675 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
11676 | ;; |
11677 | *) | |
11678 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11679 | sed -n \ | |
ac1cb8d3 | 11680 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
11681 | ;; |
11682 | esac; | |
11683 | } | | |
11684 | sed ' | |
11685 | t clear | |
11686 | : clear | |
11687 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11688 | t end | |
11689 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11690 | : end' >>confcache | |
11691 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11692 | if test -w $cache_file; then | |
11693 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11694 | cat confcache >$cache_file | |
11695 | else | |
11696 | echo "not updating unwritable cache $cache_file" | |
11697 | fi | |
11698 | fi | |
11699 | rm -f confcache | |
11700 | ||
a848cd7e | 11701 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
11702 | |
11703 | ||
3006edc0 | 11704 | |
6dcfc289 | 11705 | ac_ext=c |
a848cd7e SC |
11706 | ac_cpp='$CPP $CPPFLAGS' |
11707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11710 | if test -n "$ac_tool_prefix"; then | |
11711 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
11712 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
11713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11715 | if test "${ac_cv_prog_CC+set}" = set; then | |
11716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11717 | else | |
11718 | if test -n "$CC"; then | |
11719 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11720 | else | |
11721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11722 | for as_dir in $PATH | |
11723 | do | |
11724 | IFS=$as_save_IFS | |
11725 | test -z "$as_dir" && as_dir=. | |
11726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11727 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11728 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
11729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11730 | break 2 | |
11731 | fi | |
11732 | done | |
11733 | done | |
11734 | ||
11735 | fi | |
11736 | fi | |
11737 | CC=$ac_cv_prog_CC | |
11738 | if test -n "$CC"; then | |
11739 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11740 | echo "${ECHO_T}$CC" >&6 | |
11741 | else | |
11742 | echo "$as_me:$LINENO: result: no" >&5 | |
11743 | echo "${ECHO_T}no" >&6 | |
11744 | fi | |
11745 | ||
11746 | fi | |
11747 | if test -z "$ac_cv_prog_CC"; then | |
11748 | ac_ct_CC=$CC | |
11749 | # Extract the first word of "gcc", so it can be a program name with args. | |
11750 | set dummy gcc; ac_word=$2 | |
11751 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11752 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11753 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11755 | else | |
11756 | if test -n "$ac_ct_CC"; then | |
11757 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11758 | else | |
11759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11760 | for as_dir in $PATH | |
11761 | do | |
11762 | IFS=$as_save_IFS | |
11763 | test -z "$as_dir" && as_dir=. | |
11764 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11765 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11766 | ac_cv_prog_ac_ct_CC="gcc" | |
11767 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11768 | break 2 | |
11769 | fi | |
11770 | done | |
11771 | done | |
11772 | ||
11773 | fi | |
11774 | fi | |
11775 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11776 | if test -n "$ac_ct_CC"; then | |
11777 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11778 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11779 | else | |
11780 | echo "$as_me:$LINENO: result: no" >&5 | |
11781 | echo "${ECHO_T}no" >&6 | |
11782 | fi | |
11783 | ||
11784 | CC=$ac_ct_CC | |
11785 | else | |
11786 | CC="$ac_cv_prog_CC" | |
11787 | fi | |
11788 | ||
11789 | if test -z "$CC"; then | |
11790 | if test -n "$ac_tool_prefix"; then | |
11791 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
11792 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
11793 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11794 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11795 | if test "${ac_cv_prog_CC+set}" = set; then | |
11796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11797 | else | |
11798 | if test -n "$CC"; then | |
11799 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11800 | else | |
11801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11802 | for as_dir in $PATH | |
11803 | do | |
11804 | IFS=$as_save_IFS | |
11805 | test -z "$as_dir" && as_dir=. | |
11806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11807 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11808 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
11809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11810 | break 2 | |
11811 | fi | |
11812 | done | |
11813 | done | |
11814 | ||
11815 | fi | |
11816 | fi | |
11817 | CC=$ac_cv_prog_CC | |
11818 | if test -n "$CC"; then | |
11819 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11820 | echo "${ECHO_T}$CC" >&6 | |
11821 | else | |
11822 | echo "$as_me:$LINENO: result: no" >&5 | |
11823 | echo "${ECHO_T}no" >&6 | |
11824 | fi | |
11825 | ||
11826 | fi | |
11827 | if test -z "$ac_cv_prog_CC"; then | |
11828 | ac_ct_CC=$CC | |
11829 | # Extract the first word of "cc", so it can be a program name with args. | |
11830 | set dummy cc; ac_word=$2 | |
11831 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11833 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11835 | else | |
11836 | if test -n "$ac_ct_CC"; then | |
11837 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11838 | else | |
11839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11840 | for as_dir in $PATH | |
11841 | do | |
11842 | IFS=$as_save_IFS | |
11843 | test -z "$as_dir" && as_dir=. | |
11844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11845 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11846 | ac_cv_prog_ac_ct_CC="cc" | |
11847 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11848 | break 2 | |
11849 | fi | |
11850 | done | |
11851 | done | |
11852 | ||
11853 | fi | |
11854 | fi | |
11855 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11856 | if test -n "$ac_ct_CC"; then | |
11857 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11858 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11859 | else | |
11860 | echo "$as_me:$LINENO: result: no" >&5 | |
11861 | echo "${ECHO_T}no" >&6 | |
11862 | fi | |
11863 | ||
11864 | CC=$ac_ct_CC | |
11865 | else | |
11866 | CC="$ac_cv_prog_CC" | |
11867 | fi | |
11868 | ||
11869 | fi | |
11870 | if test -z "$CC"; then | |
11871 | # Extract the first word of "cc", so it can be a program name with args. | |
11872 | set dummy cc; ac_word=$2 | |
11873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11875 | if test "${ac_cv_prog_CC+set}" = set; then | |
11876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11877 | else | |
11878 | if test -n "$CC"; then | |
11879 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11880 | else | |
11881 | ac_prog_rejected=no | |
11882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11883 | for as_dir in $PATH | |
11884 | do | |
11885 | IFS=$as_save_IFS | |
11886 | test -z "$as_dir" && as_dir=. | |
11887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11888 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11889 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11890 | ac_prog_rejected=yes | |
11891 | continue | |
11892 | fi | |
11893 | ac_cv_prog_CC="cc" | |
11894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11895 | break 2 | |
11896 | fi | |
11897 | done | |
11898 | done | |
11899 | ||
11900 | if test $ac_prog_rejected = yes; then | |
11901 | # We found a bogon in the path, so make sure we never use it. | |
11902 | set dummy $ac_cv_prog_CC | |
11903 | shift | |
11904 | if test $# != 0; then | |
11905 | # We chose a different compiler from the bogus one. | |
11906 | # However, it has the same basename, so the bogon will be chosen | |
11907 | # first if we set CC to just the basename; use the full file name. | |
11908 | shift | |
11909 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11910 | fi | |
11911 | fi | |
11912 | fi | |
11913 | fi | |
11914 | CC=$ac_cv_prog_CC | |
11915 | if test -n "$CC"; then | |
11916 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11917 | echo "${ECHO_T}$CC" >&6 | |
11918 | else | |
11919 | echo "$as_me:$LINENO: result: no" >&5 | |
11920 | echo "${ECHO_T}no" >&6 | |
11921 | fi | |
11922 | ||
11923 | fi | |
11924 | if test -z "$CC"; then | |
11925 | if test -n "$ac_tool_prefix"; then | |
11926 | for ac_prog in cl | |
11927 | do | |
11928 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11929 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11930 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11932 | if test "${ac_cv_prog_CC+set}" = set; then | |
11933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11934 | else | |
11935 | if test -n "$CC"; then | |
11936 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11937 | else | |
11938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11939 | for as_dir in $PATH | |
11940 | do | |
11941 | IFS=$as_save_IFS | |
11942 | test -z "$as_dir" && as_dir=. | |
11943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11944 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11945 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11947 | break 2 | |
11948 | fi | |
11949 | done | |
11950 | done | |
11951 | ||
11952 | fi | |
11953 | fi | |
11954 | CC=$ac_cv_prog_CC | |
11955 | if test -n "$CC"; then | |
11956 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11957 | echo "${ECHO_T}$CC" >&6 | |
11958 | else | |
11959 | echo "$as_me:$LINENO: result: no" >&5 | |
11960 | echo "${ECHO_T}no" >&6 | |
11961 | fi | |
11962 | ||
11963 | test -n "$CC" && break | |
11964 | done | |
11965 | fi | |
11966 | if test -z "$CC"; then | |
11967 | ac_ct_CC=$CC | |
11968 | for ac_prog in cl | |
11969 | do | |
11970 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11971 | set dummy $ac_prog; ac_word=$2 | |
11972 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11974 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11976 | else | |
11977 | if test -n "$ac_ct_CC"; then | |
11978 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11979 | else | |
11980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11981 | for as_dir in $PATH | |
11982 | do | |
11983 | IFS=$as_save_IFS | |
11984 | test -z "$as_dir" && as_dir=. | |
11985 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11986 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11987 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11989 | break 2 | |
11990 | fi | |
11991 | done | |
11992 | done | |
11993 | ||
11994 | fi | |
11995 | fi | |
11996 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11997 | if test -n "$ac_ct_CC"; then | |
11998 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11999 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
12000 | else | |
12001 | echo "$as_me:$LINENO: result: no" >&5 | |
12002 | echo "${ECHO_T}no" >&6 | |
12003 | fi | |
12004 | ||
12005 | test -n "$ac_ct_CC" && break | |
12006 | done | |
12007 | ||
12008 | CC=$ac_ct_CC | |
12009 | fi | |
12010 | ||
12011 | fi | |
12012 | ||
12013 | ||
12014 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
12015 | See \`config.log' for more details." >&5 | |
12016 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
12017 | See \`config.log' for more details." >&2;} | |
12018 | { (exit 1); exit 1; }; } | |
12019 | ||
12020 | # Provide some information about the compiler. | |
12021 | echo "$as_me:$LINENO:" \ | |
12022 | "checking for C compiler version" >&5 | |
12023 | ac_compiler=`set X $ac_compile; echo $2` | |
12024 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12025 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12026 | ac_status=$? | |
12027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12028 | (exit $ac_status); } | |
12029 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12030 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12031 | ac_status=$? | |
12032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12033 | (exit $ac_status); } | |
12034 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12035 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12036 | ac_status=$? | |
12037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12038 | (exit $ac_status); } | |
12039 | ||
12040 | cat >conftest.$ac_ext <<_ACEOF | |
12041 | /* confdefs.h. */ | |
12042 | _ACEOF | |
12043 | cat confdefs.h >>conftest.$ac_ext | |
12044 | cat >>conftest.$ac_ext <<_ACEOF | |
12045 | /* end confdefs.h. */ | |
12046 | ||
12047 | int | |
12048 | main () | |
12049 | { | |
12050 | ||
12051 | ; | |
12052 | return 0; | |
12053 | } | |
12054 | _ACEOF | |
12055 | ac_clean_files_save=$ac_clean_files | |
12056 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
12057 | # Try to create an executable without -o first, disregard a.out. | |
12058 | # It will help us diagnose broken compilers, and finding out an intuition | |
12059 | # of exeext. | |
ac1cb8d3 VS |
12060 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
12061 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
12062 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
12063 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
12064 | (eval $ac_link_default) 2>&5 | |
12065 | ac_status=$? | |
12066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12067 | (exit $ac_status); }; then | |
12068 | # Find the output, starting from the most likely. This scheme is | |
12069 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
12070 | # resort. | |
12071 | ||
12072 | # Be careful to initialize this variable, since it used to be cached. | |
12073 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
12074 | ac_cv_exeext= | |
12075 | # b.out is created by i960 compilers. | |
12076 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
12077 | do | |
12078 | test -f "$ac_file" || continue | |
12079 | case $ac_file in | |
12080 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 12081 | ;; |
a848cd7e | 12082 | conftest.$ac_ext ) |
ac1cb8d3 VS |
12083 | # This is the source file. |
12084 | ;; | |
a848cd7e | 12085 | [ab].out ) |
ac1cb8d3 VS |
12086 | # We found the default executable, but exeext='' is most |
12087 | # certainly right. | |
12088 | break;; | |
a848cd7e | 12089 | *.* ) |
ac1cb8d3 VS |
12090 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
12091 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
12092 | # but it would be cool to find out if it's true. Does anybody | |
12093 | # maintain Libtool? --akim. | |
12094 | export ac_cv_exeext | |
12095 | break;; | |
a848cd7e | 12096 | * ) |
ac1cb8d3 | 12097 | break;; |
a848cd7e SC |
12098 | esac |
12099 | done | |
12100 | else | |
12101 | echo "$as_me: failed program was:" >&5 | |
12102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12103 | ||
12104 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
12105 | See \`config.log' for more details." >&5 | |
12106 | echo "$as_me: error: C compiler cannot create executables | |
12107 | See \`config.log' for more details." >&2;} | |
12108 | { (exit 77); exit 77; }; } | |
12109 | fi | |
12110 | ||
12111 | ac_exeext=$ac_cv_exeext | |
12112 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
12113 | echo "${ECHO_T}$ac_file" >&6 | |
12114 | ||
12115 | # Check the compiler produces executables we can run. If not, either | |
12116 | # the compiler is broken, or we cross compile. | |
12117 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
12118 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
12119 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
12120 | # If not cross compiling, check that we can run a simple program. | |
12121 | if test "$cross_compiling" != yes; then | |
12122 | if { ac_try='./$ac_file' | |
12123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12124 | (eval $ac_try) 2>&5 | |
12125 | ac_status=$? | |
12126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12127 | (exit $ac_status); }; }; then | |
12128 | cross_compiling=no | |
12129 | else | |
12130 | if test "$cross_compiling" = maybe; then | |
12131 | cross_compiling=yes | |
12132 | else | |
12133 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
12134 | If you meant to cross compile, use \`--host'. | |
12135 | See \`config.log' for more details." >&5 | |
12136 | echo "$as_me: error: cannot run C compiled programs. | |
12137 | If you meant to cross compile, use \`--host'. | |
12138 | See \`config.log' for more details." >&2;} | |
12139 | { (exit 1); exit 1; }; } | |
12140 | fi | |
12141 | fi | |
12142 | fi | |
12143 | echo "$as_me:$LINENO: result: yes" >&5 | |
12144 | echo "${ECHO_T}yes" >&6 | |
12145 | ||
12146 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
12147 | ac_clean_files=$ac_clean_files_save | |
12148 | # Check the compiler produces executables we can run. If not, either | |
12149 | # the compiler is broken, or we cross compile. | |
12150 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
12151 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
12152 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
12153 | echo "${ECHO_T}$cross_compiling" >&6 | |
12154 | ||
12155 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
12156 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
12157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12158 | (eval $ac_link) 2>&5 | |
12159 | ac_status=$? | |
12160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12161 | (exit $ac_status); }; then | |
12162 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
12163 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
12164 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
12165 | # `rm'. | |
12166 | for ac_file in conftest.exe conftest conftest.*; do | |
12167 | test -f "$ac_file" || continue | |
12168 | case $ac_file in | |
12169 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
12170 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
12171 | export ac_cv_exeext |
12172 | break;; | |
a848cd7e SC |
12173 | * ) break;; |
12174 | esac | |
12175 | done | |
12176 | else | |
12177 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
12178 | See \`config.log' for more details." >&5 | |
12179 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
12180 | See \`config.log' for more details." >&2;} | |
12181 | { (exit 1); exit 1; }; } | |
12182 | fi | |
12183 | ||
12184 | rm -f conftest$ac_cv_exeext | |
12185 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
12186 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
12187 | ||
12188 | rm -f conftest.$ac_ext | |
12189 | EXEEXT=$ac_cv_exeext | |
12190 | ac_exeext=$EXEEXT | |
12191 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
12192 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
12193 | if test "${ac_cv_objext+set}" = set; then | |
12194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12195 | else | |
12196 | cat >conftest.$ac_ext <<_ACEOF | |
12197 | /* confdefs.h. */ | |
12198 | _ACEOF | |
12199 | cat confdefs.h >>conftest.$ac_ext | |
12200 | cat >>conftest.$ac_ext <<_ACEOF | |
12201 | /* end confdefs.h. */ | |
12202 | ||
12203 | int | |
12204 | main () | |
12205 | { | |
12206 | ||
12207 | ; | |
12208 | return 0; | |
12209 | } | |
12210 | _ACEOF | |
12211 | rm -f conftest.o conftest.obj | |
12212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12213 | (eval $ac_compile) 2>&5 | |
12214 | ac_status=$? | |
12215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12216 | (exit $ac_status); }; then | |
12217 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
12218 | case $ac_file in | |
12219 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
12220 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
12221 | break;; | |
12222 | esac | |
12223 | done | |
12224 | else | |
12225 | echo "$as_me: failed program was:" >&5 | |
12226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12227 | ||
12228 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
12229 | See \`config.log' for more details." >&5 | |
12230 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
12231 | See \`config.log' for more details." >&2;} | |
12232 | { (exit 1); exit 1; }; } | |
12233 | fi | |
12234 | ||
12235 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
12236 | fi | |
12237 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
12238 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
12239 | OBJEXT=$ac_cv_objext | |
12240 | ac_objext=$OBJEXT | |
12241 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
12242 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
12243 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
12244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12245 | else | |
12246 | cat >conftest.$ac_ext <<_ACEOF | |
12247 | /* confdefs.h. */ | |
12248 | _ACEOF | |
12249 | cat confdefs.h >>conftest.$ac_ext | |
12250 | cat >>conftest.$ac_ext <<_ACEOF | |
12251 | /* end confdefs.h. */ | |
12252 | ||
12253 | int | |
12254 | main () | |
12255 | { | |
12256 | #ifndef __GNUC__ | |
12257 | choke me | |
12258 | #endif | |
12259 | ||
12260 | ; | |
12261 | return 0; | |
12262 | } | |
12263 | _ACEOF | |
12264 | rm -f conftest.$ac_objext | |
12265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12266 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12267 | ac_status=$? |
ac1cb8d3 VS |
12268 | grep -v '^ *+' conftest.er1 >conftest.err |
12269 | rm -f conftest.er1 | |
12270 | cat conftest.err >&5 | |
a848cd7e SC |
12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12272 | (exit $ac_status); } && | |
ca5c6ac3 | 12273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12275 | (eval $ac_try) 2>&5 | |
12276 | ac_status=$? | |
12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12278 | (exit $ac_status); }; } && | |
12279 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12281 | (eval $ac_try) 2>&5 | |
12282 | ac_status=$? | |
12283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12284 | (exit $ac_status); }; }; then | |
12285 | ac_compiler_gnu=yes | |
12286 | else | |
12287 | echo "$as_me: failed program was:" >&5 | |
12288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12289 | ||
12290 | ac_compiler_gnu=no | |
12291 | fi | |
ac1cb8d3 | 12292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12293 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
12294 | ||
12295 | fi | |
12296 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
12297 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
12298 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
12299 | ac_test_CFLAGS=${CFLAGS+set} | |
12300 | ac_save_CFLAGS=$CFLAGS | |
15291213 | 12301 | CFLAGS="-g" |
a848cd7e SC |
12302 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12303 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12304 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12306 | else | |
12307 | cat >conftest.$ac_ext <<_ACEOF | |
12308 | /* confdefs.h. */ | |
12309 | _ACEOF | |
12310 | cat confdefs.h >>conftest.$ac_ext | |
12311 | cat >>conftest.$ac_ext <<_ACEOF | |
12312 | /* end confdefs.h. */ | |
12313 | ||
12314 | int | |
12315 | main () | |
12316 | { | |
12317 | ||
12318 | ; | |
12319 | return 0; | |
12320 | } | |
12321 | _ACEOF | |
12322 | rm -f conftest.$ac_objext | |
12323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12324 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12325 | ac_status=$? |
ac1cb8d3 VS |
12326 | grep -v '^ *+' conftest.er1 >conftest.err |
12327 | rm -f conftest.er1 | |
12328 | cat conftest.err >&5 | |
a848cd7e SC |
12329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12330 | (exit $ac_status); } && | |
ca5c6ac3 | 12331 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12333 | (eval $ac_try) 2>&5 | |
12334 | ac_status=$? | |
12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12336 | (exit $ac_status); }; } && | |
12337 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12339 | (eval $ac_try) 2>&5 | |
12340 | ac_status=$? | |
12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12342 | (exit $ac_status); }; }; then | |
12343 | ac_cv_prog_cc_g=yes | |
12344 | else | |
12345 | echo "$as_me: failed program was:" >&5 | |
12346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12347 | ||
12348 | ac_cv_prog_cc_g=no | |
12349 | fi | |
ac1cb8d3 | 12350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12351 | fi |
12352 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12353 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12354 | if test "$ac_test_CFLAGS" = set; then | |
12355 | CFLAGS=$ac_save_CFLAGS | |
12356 | elif test $ac_cv_prog_cc_g = yes; then | |
12357 | if test "$GCC" = yes; then | |
12358 | CFLAGS="-g -O2" | |
12359 | else | |
12360 | CFLAGS="-g" | |
12361 | fi | |
12362 | else | |
12363 | if test "$GCC" = yes; then | |
12364 | CFLAGS="-O2" | |
12365 | else | |
12366 | CFLAGS= | |
12367 | fi | |
12368 | fi | |
12369 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
12370 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
12371 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
12372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12373 | else | |
12374 | ac_cv_prog_cc_stdc=no | |
12375 | ac_save_CC=$CC | |
12376 | cat >conftest.$ac_ext <<_ACEOF | |
12377 | /* confdefs.h. */ | |
12378 | _ACEOF | |
12379 | cat confdefs.h >>conftest.$ac_ext | |
12380 | cat >>conftest.$ac_ext <<_ACEOF | |
12381 | /* end confdefs.h. */ | |
12382 | #include <stdarg.h> | |
12383 | #include <stdio.h> | |
12384 | #include <sys/types.h> | |
12385 | #include <sys/stat.h> | |
12386 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
12387 | struct buf { int x; }; | |
12388 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
12389 | static char *e (p, i) | |
12390 | char **p; | |
12391 | int i; | |
12392 | { | |
12393 | return p[i]; | |
12394 | } | |
12395 | static char *f (char * (*g) (char **, int), char **p, ...) | |
12396 | { | |
12397 | char *s; | |
12398 | va_list v; | |
12399 | va_start (v,p); | |
12400 | s = g (p, va_arg (v,int)); | |
12401 | va_end (v); | |
12402 | return s; | |
12403 | } | |
ac1cb8d3 VS |
12404 | |
12405 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
12406 | function prototypes and stuff, but not '\xHH' hex character constants. | |
12407 | These don't provoke an error unfortunately, instead are silently treated | |
12408 | as 'x'. The following induces an error, until -std1 is added to get | |
12409 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
12410 | array size at least. It's necessary to write '\x00'==0 to get something | |
12411 | that's true only with -std1. */ | |
12412 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
12413 | ||
a848cd7e SC |
12414 | int test (int i, double x); |
12415 | struct s1 {int (*f) (int a);}; | |
12416 | struct s2 {int (*f) (double a);}; | |
12417 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
12418 | int argc; | |
12419 | char **argv; | |
12420 | int | |
12421 | main () | |
12422 | { | |
12423 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
12424 | ; | |
12425 | return 0; | |
12426 | } | |
12427 | _ACEOF | |
12428 | # Don't try gcc -ansi; that turns off useful extensions and | |
12429 | # breaks some systems' header files. | |
12430 | # AIX -qlanglvl=ansi | |
12431 | # Ultrix and OSF/1 -std1 | |
12432 | # HP-UX 10.20 and later -Ae | |
12433 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
12434 | # SVR4 -Xc -D__EXTENSIONS__ | |
12435 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
12436 | do | |
12437 | CC="$ac_save_CC $ac_arg" | |
12438 | rm -f conftest.$ac_objext | |
12439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12440 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12441 | ac_status=$? |
ac1cb8d3 VS |
12442 | grep -v '^ *+' conftest.er1 >conftest.err |
12443 | rm -f conftest.er1 | |
12444 | cat conftest.err >&5 | |
a848cd7e SC |
12445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12446 | (exit $ac_status); } && | |
ca5c6ac3 | 12447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12449 | (eval $ac_try) 2>&5 | |
12450 | ac_status=$? | |
12451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12452 | (exit $ac_status); }; } && | |
12453 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12455 | (eval $ac_try) 2>&5 | |
12456 | ac_status=$? | |
12457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12458 | (exit $ac_status); }; }; then | |
12459 | ac_cv_prog_cc_stdc=$ac_arg | |
12460 | break | |
12461 | else | |
12462 | echo "$as_me: failed program was:" >&5 | |
12463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12464 | ||
12465 | fi | |
ac1cb8d3 | 12466 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
12467 | done |
12468 | rm -f conftest.$ac_ext conftest.$ac_objext | |
12469 | CC=$ac_save_CC | |
12470 | ||
12471 | fi | |
12472 | ||
12473 | case "x$ac_cv_prog_cc_stdc" in | |
12474 | x|xno) | |
12475 | echo "$as_me:$LINENO: result: none needed" >&5 | |
12476 | echo "${ECHO_T}none needed" >&6 ;; | |
12477 | *) | |
12478 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
12479 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
12480 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
12481 | esac | |
12482 | ||
12483 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
12484 | # in C++ we need to declare it. In case someone uses the same compiler | |
12485 | # for both compiling C and C++ we need to have the C++ compiler decide | |
12486 | # the declaration of exit, since it's the most demanding environment. | |
12487 | cat >conftest.$ac_ext <<_ACEOF | |
12488 | #ifndef __cplusplus | |
12489 | choke me | |
12490 | #endif | |
12491 | _ACEOF | |
12492 | rm -f conftest.$ac_objext | |
12493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12494 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12495 | ac_status=$? |
ac1cb8d3 VS |
12496 | grep -v '^ *+' conftest.er1 >conftest.err |
12497 | rm -f conftest.er1 | |
12498 | cat conftest.err >&5 | |
a848cd7e SC |
12499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12500 | (exit $ac_status); } && | |
ca5c6ac3 | 12501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12503 | (eval $ac_try) 2>&5 | |
12504 | ac_status=$? | |
12505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12506 | (exit $ac_status); }; } && | |
12507 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12509 | (eval $ac_try) 2>&5 | |
12510 | ac_status=$? | |
12511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12512 | (exit $ac_status); }; }; then | |
12513 | for ac_declaration in \ | |
ac1cb8d3 | 12514 | '' \ |
a848cd7e SC |
12515 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12516 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12517 | 'extern "C" void exit (int) throw ();' \ | |
12518 | 'extern "C" void exit (int);' \ | |
12519 | 'void exit (int);' | |
12520 | do | |
12521 | cat >conftest.$ac_ext <<_ACEOF | |
12522 | /* confdefs.h. */ | |
12523 | _ACEOF | |
12524 | cat confdefs.h >>conftest.$ac_ext | |
12525 | cat >>conftest.$ac_ext <<_ACEOF | |
12526 | /* end confdefs.h. */ | |
de59c161 | 12527 | $ac_declaration |
ac1cb8d3 | 12528 | #include <stdlib.h> |
a848cd7e SC |
12529 | int |
12530 | main () | |
12531 | { | |
12532 | exit (42); | |
12533 | ; | |
12534 | return 0; | |
12535 | } | |
12536 | _ACEOF | |
12537 | rm -f conftest.$ac_objext | |
12538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12539 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12540 | ac_status=$? |
ac1cb8d3 VS |
12541 | grep -v '^ *+' conftest.er1 >conftest.err |
12542 | rm -f conftest.er1 | |
12543 | cat conftest.err >&5 | |
a848cd7e SC |
12544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12545 | (exit $ac_status); } && | |
ca5c6ac3 | 12546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12548 | (eval $ac_try) 2>&5 | |
12549 | ac_status=$? | |
12550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12551 | (exit $ac_status); }; } && | |
12552 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12554 | (eval $ac_try) 2>&5 | |
12555 | ac_status=$? | |
12556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12557 | (exit $ac_status); }; }; then | |
12558 | : | |
12559 | else | |
12560 | echo "$as_me: failed program was:" >&5 | |
12561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12562 | ||
12563 | continue | |
12564 | fi | |
ac1cb8d3 | 12565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12566 | cat >conftest.$ac_ext <<_ACEOF |
12567 | /* confdefs.h. */ | |
12568 | _ACEOF | |
12569 | cat confdefs.h >>conftest.$ac_ext | |
12570 | cat >>conftest.$ac_ext <<_ACEOF | |
12571 | /* end confdefs.h. */ | |
12572 | $ac_declaration | |
12573 | int | |
12574 | main () | |
12575 | { | |
12576 | exit (42); | |
12577 | ; | |
12578 | return 0; | |
12579 | } | |
12580 | _ACEOF | |
12581 | rm -f conftest.$ac_objext | |
12582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12583 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12584 | ac_status=$? |
ac1cb8d3 VS |
12585 | grep -v '^ *+' conftest.er1 >conftest.err |
12586 | rm -f conftest.er1 | |
12587 | cat conftest.err >&5 | |
a848cd7e SC |
12588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12589 | (exit $ac_status); } && | |
ca5c6ac3 | 12590 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12592 | (eval $ac_try) 2>&5 | |
12593 | ac_status=$? | |
12594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12595 | (exit $ac_status); }; } && | |
12596 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12598 | (eval $ac_try) 2>&5 | |
12599 | ac_status=$? | |
12600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12601 | (exit $ac_status); }; }; then | |
12602 | break | |
12603 | else | |
12604 | echo "$as_me: failed program was:" >&5 | |
12605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12606 | ||
12607 | fi | |
ac1cb8d3 | 12608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12609 | done |
12610 | rm -f conftest* | |
12611 | if test -n "$ac_declaration"; then | |
12612 | echo '#ifdef __cplusplus' >>confdefs.h | |
12613 | echo $ac_declaration >>confdefs.h | |
12614 | echo '#endif' >>confdefs.h | |
12615 | fi | |
12616 | ||
12617 | else | |
12618 | echo "$as_me: failed program was:" >&5 | |
12619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12620 | ||
12621 | fi | |
ac1cb8d3 | 12622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12623 | ac_ext=c |
12624 | ac_cpp='$CPP $CPPFLAGS' | |
12625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12628 | ||
ab0ad5f1 VZ |
12629 | |
12630 | ||
12631 | ac_ext=c | |
12632 | ac_cpp='$CPP $CPPFLAGS' | |
12633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12636 | ||
12637 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
12638 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
12639 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
12640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12641 | else | |
12642 | cat >conftest.$ac_ext <<_ACEOF | |
12643 | /* confdefs.h. */ | |
12644 | _ACEOF | |
12645 | cat confdefs.h >>conftest.$ac_ext | |
12646 | cat >>conftest.$ac_ext <<_ACEOF | |
12647 | /* end confdefs.h. */ | |
12648 | ||
12649 | int | |
12650 | main () | |
12651 | { | |
12652 | ||
12653 | #ifndef __INTEL_COMPILER | |
12654 | choke me | |
12655 | #endif | |
12656 | ||
12657 | ; | |
12658 | return 0; | |
12659 | } | |
12660 | _ACEOF | |
12661 | rm -f conftest.$ac_objext | |
12662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12663 | (eval $ac_compile) 2>conftest.er1 | |
12664 | ac_status=$? | |
12665 | grep -v '^ *+' conftest.er1 >conftest.err | |
12666 | rm -f conftest.er1 | |
12667 | cat conftest.err >&5 | |
12668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12669 | (exit $ac_status); } && | |
ca5c6ac3 | 12670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
12671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12672 | (eval $ac_try) 2>&5 | |
12673 | ac_status=$? | |
12674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12675 | (exit $ac_status); }; } && | |
12676 | { ac_try='test -s conftest.$ac_objext' | |
12677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12678 | (eval $ac_try) 2>&5 | |
12679 | ac_status=$? | |
12680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12681 | (exit $ac_status); }; }; then | |
12682 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
12683 | else | |
12684 | echo "$as_me: failed program was:" >&5 | |
12685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12686 | ||
12687 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
12688 | ||
12689 | fi | |
12690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12691 | ||
12692 | ||
12693 | fi | |
12694 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
12695 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
12696 | ac_ext=c | |
12697 | ac_cpp='$CPP $CPPFLAGS' | |
12698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12701 | ||
12702 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
12703 | :; INTELCC=yes | |
12704 | else | |
12705 | :; | |
12706 | fi | |
12707 | ||
12708 | ||
12709 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
12710 | if test "xCC" = "xC"; then |
12711 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 12712 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 12713 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
12714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12715 | else | |
12716 | cat >conftest.$ac_ext <<_ACEOF | |
12717 | /* confdefs.h. */ | |
12718 | _ACEOF | |
12719 | cat confdefs.h >>conftest.$ac_ext | |
12720 | cat >>conftest.$ac_ext <<_ACEOF | |
12721 | /* end confdefs.h. */ | |
12722 | ||
12723 | int | |
12724 | main () | |
12725 | { | |
12726 | ||
12727 | ; | |
12728 | return 0; | |
12729 | } | |
12730 | _ACEOF | |
12731 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12733 | (eval $ac_compile) 2>&5 | |
12734 | ac_status=$? | |
12735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12736 | (exit $ac_status); }; then | |
12737 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12738 | case $ac_file in | |
12739 | conftest.$ac_ext.o) | |
0093c2fc | 12740 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
12741 | ;; |
12742 | *) | |
12743 | ;; | |
12744 | esac | |
12745 | done | |
12746 | else | |
12747 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12748 | See \`config.log' for more details." >&5 | |
12749 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12750 | See \`config.log' for more details." >&2;} | |
12751 | { (exit 1); exit 1; }; } | |
12752 | ||
12753 | fi | |
12754 | ||
12755 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12756 | ||
12757 | fi | |
0093c2fc VZ |
12758 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12759 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12760 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12761 | if test "c" = "c"; then |
0093c2fc | 12762 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12763 | fi |
12764 | if test "c" = "cxx"; then | |
0093c2fc | 12765 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12766 | fi |
12767 | fi | |
12768 | ||
0093c2fc | 12769 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12770 | unset ac_cv_prog_cc_g |
12771 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12772 | ac_save_CFLAGS=$CFLAGS |
15291213 | 12773 | CFLAGS="-g" |
480ccd21 DE |
12774 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12775 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12776 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12778 | else | |
12779 | cat >conftest.$ac_ext <<_ACEOF | |
12780 | /* confdefs.h. */ | |
12781 | _ACEOF | |
12782 | cat confdefs.h >>conftest.$ac_ext | |
12783 | cat >>conftest.$ac_ext <<_ACEOF | |
12784 | /* end confdefs.h. */ | |
12785 | ||
12786 | int | |
12787 | main () | |
12788 | { | |
12789 | ||
12790 | ; | |
12791 | return 0; | |
12792 | } | |
12793 | _ACEOF | |
12794 | rm -f conftest.$ac_objext | |
12795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12796 | (eval $ac_compile) 2>conftest.er1 | |
12797 | ac_status=$? | |
12798 | grep -v '^ *+' conftest.er1 >conftest.err | |
12799 | rm -f conftest.er1 | |
12800 | cat conftest.err >&5 | |
12801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12802 | (exit $ac_status); } && | |
ca5c6ac3 | 12803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12805 | (eval $ac_try) 2>&5 | |
12806 | ac_status=$? | |
12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12808 | (exit $ac_status); }; } && | |
12809 | { ac_try='test -s conftest.$ac_objext' | |
12810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12811 | (eval $ac_try) 2>&5 | |
12812 | ac_status=$? | |
12813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12814 | (exit $ac_status); }; }; then | |
12815 | ac_cv_prog_cc_g=yes | |
12816 | else | |
12817 | echo "$as_me: failed program was:" >&5 | |
12818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12819 | ||
12820 | ac_cv_prog_cc_g=no | |
12821 | fi | |
12822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12823 | fi | |
12824 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12825 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12826 | if test "$ac_test_CFLAGS" = set; then | |
12827 | CFLAGS=$ac_save_CFLAGS | |
12828 | elif test $ac_cv_prog_cc_g = yes; then | |
12829 | if test "$GCC" = yes; then | |
12830 | CFLAGS="-g -O2" | |
12831 | else | |
12832 | CFLAGS="-g" | |
12833 | fi | |
12834 | else | |
12835 | if test "$GCC" = yes; then | |
12836 | CFLAGS="-O2" | |
12837 | else | |
12838 | CFLAGS= | |
12839 | fi | |
12840 | fi | |
3006edc0 | 12841 | fi |
ab0ad5f1 | 12842 | fi |
3006edc0 VZ |
12843 | |
12844 | case `uname -s` in | |
12845 | AIX*) | |
12846 | ac_ext=c | |
12847 | ac_cpp='$CPP $CPPFLAGS' | |
12848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12851 | ||
12852 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12853 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12854 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12856 | else | |
12857 | cat >conftest.$ac_ext <<_ACEOF | |
12858 | /* confdefs.h. */ | |
12859 | _ACEOF | |
12860 | cat confdefs.h >>conftest.$ac_ext | |
12861 | cat >>conftest.$ac_ext <<_ACEOF | |
12862 | /* end confdefs.h. */ | |
12863 | ||
12864 | int | |
12865 | main () | |
12866 | { | |
12867 | #ifndef __xlC__ | |
12868 | choke me | |
12869 | #endif | |
12870 | ||
12871 | ; | |
12872 | return 0; | |
12873 | } | |
12874 | _ACEOF | |
12875 | rm -f conftest.$ac_objext | |
12876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12877 | (eval $ac_compile) 2>conftest.er1 | |
12878 | ac_status=$? | |
12879 | grep -v '^ *+' conftest.er1 >conftest.err | |
12880 | rm -f conftest.er1 | |
12881 | cat conftest.err >&5 | |
12882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12883 | (exit $ac_status); } && | |
ca5c6ac3 | 12884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12886 | (eval $ac_try) 2>&5 | |
12887 | ac_status=$? | |
12888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12889 | (exit $ac_status); }; } && | |
12890 | { ac_try='test -s conftest.$ac_objext' | |
12891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12892 | (eval $ac_try) 2>&5 | |
12893 | ac_status=$? | |
12894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12895 | (exit $ac_status); }; }; then | |
0093c2fc | 12896 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12897 | else |
12898 | echo "$as_me: failed program was:" >&5 | |
12899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12900 | ||
0093c2fc | 12901 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12902 | fi |
12903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12904 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12905 | |
12906 | fi | |
0093c2fc VZ |
12907 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12908 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12909 | |
0093c2fc | 12910 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12911 | ac_ext=c |
12912 | ac_cpp='$CPP $CPPFLAGS' | |
12913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12916 | ||
12917 | ||
12918 | ;; | |
12919 | ||
12920 | Darwin) | |
12921 | ac_ext=c | |
95986553 DE |
12922 | ac_cpp='$CPP $CPPFLAGS' |
12923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12926 | ||
12927 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12928 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12929 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12931 | else | |
12932 | cat >conftest.$ac_ext <<_ACEOF | |
12933 | /* confdefs.h. */ | |
12934 | _ACEOF | |
12935 | cat confdefs.h >>conftest.$ac_ext | |
12936 | cat >>conftest.$ac_ext <<_ACEOF | |
12937 | /* end confdefs.h. */ | |
12938 | ||
12939 | int | |
12940 | main () | |
12941 | { | |
12942 | #ifndef __MWERKS__ | |
12943 | choke me | |
12944 | #endif | |
12945 | ||
12946 | ; | |
12947 | return 0; | |
12948 | } | |
12949 | _ACEOF | |
12950 | rm -f conftest.$ac_objext | |
12951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12952 | (eval $ac_compile) 2>conftest.er1 | |
12953 | ac_status=$? | |
12954 | grep -v '^ *+' conftest.er1 >conftest.err | |
12955 | rm -f conftest.er1 | |
12956 | cat conftest.err >&5 | |
12957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12958 | (exit $ac_status); } && | |
ca5c6ac3 | 12959 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12961 | (eval $ac_try) 2>&5 | |
12962 | ac_status=$? | |
12963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12964 | (exit $ac_status); }; } && | |
12965 | { ac_try='test -s conftest.$ac_objext' | |
12966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12967 | (eval $ac_try) 2>&5 | |
12968 | ac_status=$? | |
12969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12970 | (exit $ac_status); }; }; then | |
12971 | bakefile_compiler_mwerks=yes | |
12972 | else | |
12973 | echo "$as_me: failed program was:" >&5 | |
12974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12975 | ||
12976 | bakefile_compiler_mwerks=no | |
12977 | fi | |
12978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12979 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12980 | ||
12981 | fi | |
12982 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12983 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12984 | ||
0e6fa1d9 | 12985 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12986 | ac_ext=c |
12987 | ac_cpp='$CPP $CPPFLAGS' | |
12988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12991 | ||
12992 | ||
3006edc0 | 12993 | ac_ext=c |
9273ffba DE |
12994 | ac_cpp='$CPP $CPPFLAGS' |
12995 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12996 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12997 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12998 | ||
12999 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
13000 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 13001 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
13002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13003 | else | |
13004 | cat >conftest.$ac_ext <<_ACEOF | |
13005 | /* confdefs.h. */ | |
13006 | _ACEOF | |
13007 | cat confdefs.h >>conftest.$ac_ext | |
13008 | cat >>conftest.$ac_ext <<_ACEOF | |
13009 | /* end confdefs.h. */ | |
13010 | ||
13011 | int | |
13012 | main () | |
13013 | { | |
13014 | #ifndef __xlC__ | |
13015 | choke me | |
13016 | #endif | |
13017 | ||
13018 | ; | |
13019 | return 0; | |
13020 | } | |
13021 | _ACEOF | |
13022 | rm -f conftest.$ac_objext | |
13023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13024 | (eval $ac_compile) 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); } && | |
ca5c6ac3 | 13031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
13032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13033 | (eval $ac_try) 2>&5 | |
13034 | ac_status=$? | |
13035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13036 | (exit $ac_status); }; } && | |
13037 | { ac_try='test -s conftest.$ac_objext' | |
13038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13039 | (eval $ac_try) 2>&5 | |
13040 | ac_status=$? | |
13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13042 | (exit $ac_status); }; }; then | |
0093c2fc | 13043 | bakefile_compiler_xlc=yes |
9273ffba DE |
13044 | else |
13045 | echo "$as_me: failed program was:" >&5 | |
13046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13047 | ||
0093c2fc | 13048 | bakefile_compiler_xlc=no |
9273ffba DE |
13049 | fi |
13050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13051 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
13052 | |
13053 | fi | |
0093c2fc VZ |
13054 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
13055 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 13056 | |
0093c2fc | 13057 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
13058 | ac_ext=c |
13059 | ac_cpp='$CPP $CPPFLAGS' | |
13060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13063 | ||
13064 | ||
3006edc0 VZ |
13065 | ;; |
13066 | ||
13067 | IRIX*) | |
a848cd7e | 13068 | |
6dcfc289 | 13069 | |
0ad5d837 VZ |
13070 | ac_ext=c |
13071 | ac_cpp='$CPP $CPPFLAGS' | |
13072 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13073 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13074 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13075 | ||
13076 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
13077 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
13078 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13080 | else | |
13081 | cat >conftest.$ac_ext <<_ACEOF | |
13082 | /* confdefs.h. */ | |
13083 | _ACEOF | |
13084 | cat confdefs.h >>conftest.$ac_ext | |
13085 | cat >>conftest.$ac_ext <<_ACEOF | |
13086 | /* end confdefs.h. */ | |
13087 | ||
13088 | int | |
13089 | main () | |
13090 | { | |
13091 | ||
13092 | #ifndef _SGI_COMPILER_VERSION | |
13093 | choke me | |
13094 | #endif | |
13095 | ||
13096 | ; | |
13097 | return 0; | |
13098 | } | |
13099 | _ACEOF | |
13100 | rm -f conftest.$ac_objext | |
13101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13102 | (eval $ac_compile) 2>conftest.er1 | |
13103 | ac_status=$? | |
13104 | grep -v '^ *+' conftest.er1 >conftest.err | |
13105 | rm -f conftest.er1 | |
13106 | cat conftest.err >&5 | |
13107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13108 | (exit $ac_status); } && | |
ca5c6ac3 | 13109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
13110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13111 | (eval $ac_try) 2>&5 | |
13112 | ac_status=$? | |
13113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13114 | (exit $ac_status); }; } && | |
13115 | { ac_try='test -s conftest.$ac_objext' | |
13116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13117 | (eval $ac_try) 2>&5 | |
13118 | ac_status=$? | |
13119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13120 | (exit $ac_status); }; }; then | |
13121 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
13122 | else | |
13123 | echo "$as_me: failed program was:" >&5 | |
13124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13125 | ||
13126 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
13127 | ||
13128 | fi | |
13129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13130 | ||
13131 | ||
13132 | fi | |
13133 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
13134 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
13135 | ac_ext=c | |
13136 | ac_cpp='$CPP $CPPFLAGS' | |
13137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13140 | ||
13141 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13142 | :; SGICC=yes | |
13143 | else | |
13144 | :; | |
13145 | fi | |
13146 | ||
13147 | ||
3006edc0 VZ |
13148 | ;; |
13149 | ||
0093c2fc | 13150 | HP-UX*) |
3006edc0 VZ |
13151 | |
13152 | ||
13153 | ac_ext=c | |
13154 | ac_cpp='$CPP $CPPFLAGS' | |
13155 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13156 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13157 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13158 | ||
0093c2fc VZ |
13159 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
13160 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
13161 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
13162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13163 | else | |
13164 | cat >conftest.$ac_ext <<_ACEOF | |
13165 | /* confdefs.h. */ | |
13166 | _ACEOF | |
13167 | cat confdefs.h >>conftest.$ac_ext | |
13168 | cat >>conftest.$ac_ext <<_ACEOF | |
13169 | /* end confdefs.h. */ | |
13170 | ||
13171 | int | |
13172 | main () | |
13173 | { | |
13174 | ||
0093c2fc | 13175 | #ifndef __HP_cc |
3006edc0 VZ |
13176 | choke me |
13177 | #endif | |
13178 | ||
13179 | ; | |
13180 | return 0; | |
13181 | } | |
13182 | _ACEOF | |
13183 | rm -f conftest.$ac_objext | |
13184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13185 | (eval $ac_compile) 2>conftest.er1 | |
13186 | ac_status=$? | |
13187 | grep -v '^ *+' conftest.er1 >conftest.err | |
13188 | rm -f conftest.er1 | |
13189 | cat conftest.err >&5 | |
13190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13191 | (exit $ac_status); } && | |
ca5c6ac3 | 13192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
13193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13194 | (eval $ac_try) 2>&5 | |
13195 | ac_status=$? | |
13196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13197 | (exit $ac_status); }; } && | |
13198 | { ac_try='test -s conftest.$ac_objext' | |
13199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13200 | (eval $ac_try) 2>&5 | |
13201 | ac_status=$? | |
13202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13203 | (exit $ac_status); }; }; then | |
0093c2fc | 13204 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
13205 | else |
13206 | echo "$as_me: failed program was:" >&5 | |
13207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13208 | ||
0093c2fc | 13209 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
13210 | |
13211 | fi | |
13212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13213 | ||
13214 | ||
13215 | fi | |
0093c2fc VZ |
13216 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
13217 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
13218 | ac_ext=c |
13219 | ac_cpp='$CPP $CPPFLAGS' | |
13220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13223 | ||
0093c2fc VZ |
13224 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
13225 | :; HPCC=yes | |
a1aa0349 VZ |
13226 | else |
13227 | :; | |
13228 | fi | |
13229 | ||
13230 | ||
13231 | ;; | |
13232 | ||
0093c2fc | 13233 | OSF1) |
a1aa0349 VZ |
13234 | |
13235 | ||
13236 | ac_ext=c | |
13237 | ac_cpp='$CPP $CPPFLAGS' | |
13238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13241 | ||
0093c2fc VZ |
13242 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
13243 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
13244 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
13245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13246 | else | |
13247 | cat >conftest.$ac_ext <<_ACEOF | |
13248 | /* confdefs.h. */ | |
13249 | _ACEOF | |
13250 | cat confdefs.h >>conftest.$ac_ext | |
13251 | cat >>conftest.$ac_ext <<_ACEOF | |
13252 | /* end confdefs.h. */ | |
13253 | ||
13254 | int | |
13255 | main () | |
13256 | { | |
13257 | ||
0093c2fc | 13258 | #ifndef __DECC |
a1aa0349 VZ |
13259 | choke me |
13260 | #endif | |
13261 | ||
13262 | ; | |
13263 | return 0; | |
13264 | } | |
13265 | _ACEOF | |
13266 | rm -f conftest.$ac_objext | |
13267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13268 | (eval $ac_compile) 2>conftest.er1 | |
13269 | ac_status=$? | |
13270 | grep -v '^ *+' conftest.er1 >conftest.err | |
13271 | rm -f conftest.er1 | |
13272 | cat conftest.err >&5 | |
13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13274 | (exit $ac_status); } && | |
ca5c6ac3 | 13275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
13276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13277 | (eval $ac_try) 2>&5 | |
13278 | ac_status=$? | |
13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13280 | (exit $ac_status); }; } && | |
13281 | { ac_try='test -s conftest.$ac_objext' | |
13282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13283 | (eval $ac_try) 2>&5 | |
13284 | ac_status=$? | |
13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13286 | (exit $ac_status); }; }; then | |
0093c2fc | 13287 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
13288 | else |
13289 | echo "$as_me: failed program was:" >&5 | |
13290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13291 | ||
0093c2fc | 13292 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
13293 | |
13294 | fi | |
13295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13296 | ||
13297 | ||
13298 | fi | |
0093c2fc VZ |
13299 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
13300 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
13301 | ac_ext=c |
13302 | ac_cpp='$CPP $CPPFLAGS' | |
13303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13306 | ||
0093c2fc VZ |
13307 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
13308 | :; COMPAQCC=yes | |
13309 | else | |
13310 | :; | |
13311 | fi | |
13312 | ||
13313 | ||
13314 | ;; | |
13315 | ||
13316 | SunOS) | |
13317 | ||
13318 | ||
13319 | ac_ext=c | |
13320 | ac_cpp='$CPP $CPPFLAGS' | |
13321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13324 | ||
13325 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
13326 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
13327 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
13328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13329 | else | |
13330 | cat >conftest.$ac_ext <<_ACEOF | |
13331 | /* confdefs.h. */ | |
13332 | _ACEOF | |
13333 | cat confdefs.h >>conftest.$ac_ext | |
13334 | cat >>conftest.$ac_ext <<_ACEOF | |
13335 | /* end confdefs.h. */ | |
13336 | ||
13337 | int | |
13338 | main () | |
13339 | { | |
13340 | ||
13341 | #ifndef __SUNPRO_C | |
13342 | choke me | |
13343 | #endif | |
13344 | ||
13345 | ; | |
13346 | return 0; | |
13347 | } | |
13348 | _ACEOF | |
13349 | rm -f conftest.$ac_objext | |
13350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13351 | (eval $ac_compile) 2>conftest.er1 | |
13352 | ac_status=$? | |
13353 | grep -v '^ *+' conftest.er1 >conftest.err | |
13354 | rm -f conftest.er1 | |
13355 | cat conftest.err >&5 | |
13356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13357 | (exit $ac_status); } && | |
ca5c6ac3 | 13358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
13359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13360 | (eval $ac_try) 2>&5 | |
13361 | ac_status=$? | |
13362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13363 | (exit $ac_status); }; } && | |
13364 | { ac_try='test -s conftest.$ac_objext' | |
13365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13366 | (eval $ac_try) 2>&5 | |
13367 | ac_status=$? | |
13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13369 | (exit $ac_status); }; }; then | |
13370 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
13371 | else | |
13372 | echo "$as_me: failed program was:" >&5 | |
13373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13374 | ||
13375 | bakefile_cv_c_compiler___SUNPRO_C=no | |
13376 | ||
13377 | fi | |
13378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13379 | ||
13380 | ||
13381 | fi | |
13382 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
13383 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
13384 | ac_ext=c | |
13385 | ac_cpp='$CPP $CPPFLAGS' | |
13386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13389 | ||
13390 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
13391 | :; SUNCC=yes | |
3006edc0 VZ |
13392 | else |
13393 | :; | |
13394 | fi | |
13395 | ||
13396 | ||
13397 | ;; | |
13398 | esac | |
ab0ad5f1 | 13399 | fi |
a9e5b1f0 MW |
13400 | |
13401 | ||
3006edc0 | 13402 | |
a848cd7e SC |
13403 | ac_ext=c |
13404 | ac_cpp='$CPP $CPPFLAGS' | |
13405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13408 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
13409 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
13410 | # On Suns, sometimes $CPP names a directory. | |
13411 | if test -n "$CPP" && test -d "$CPP"; then | |
13412 | CPP= | |
13413 | fi | |
13414 | if test -z "$CPP"; then | |
13415 | if test "${ac_cv_prog_CPP+set}" = set; then | |
13416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13417 | else | |
13418 | # Double quotes because CPP needs to be expanded | |
13419 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
13420 | do | |
13421 | ac_preproc_ok=false | |
13422 | for ac_c_preproc_warn_flag in '' yes | |
13423 | do | |
13424 | # Use a header file that comes with gcc, so configuring glibc | |
13425 | # with a fresh cross-compiler works. | |
13426 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13427 | # <limits.h> exists even on freestanding compilers. | |
13428 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13429 | # not just through cpp. "Syntax error" is here to catch this case. | |
13430 | cat >conftest.$ac_ext <<_ACEOF | |
13431 | /* confdefs.h. */ | |
13432 | _ACEOF | |
13433 | cat confdefs.h >>conftest.$ac_ext | |
13434 | cat >>conftest.$ac_ext <<_ACEOF | |
13435 | /* end confdefs.h. */ | |
13436 | #ifdef __STDC__ | |
13437 | # include <limits.h> | |
13438 | #else | |
13439 | # include <assert.h> | |
13440 | #endif | |
ac1cb8d3 | 13441 | Syntax error |
a848cd7e SC |
13442 | _ACEOF |
13443 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13444 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13445 | ac_status=$? | |
13446 | grep -v '^ *+' conftest.er1 >conftest.err | |
13447 | rm -f conftest.er1 | |
13448 | cat conftest.err >&5 | |
13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13450 | (exit $ac_status); } >/dev/null; then | |
13451 | if test -s conftest.err; then | |
13452 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13453 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13454 | else |
13455 | ac_cpp_err= | |
13456 | fi | |
13457 | else | |
13458 | ac_cpp_err=yes | |
13459 | fi | |
13460 | if test -z "$ac_cpp_err"; then | |
13461 | : | |
13462 | else | |
13463 | echo "$as_me: failed program was:" >&5 | |
13464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13465 | ||
13466 | # Broken: fails on valid input. | |
13467 | continue | |
13468 | fi | |
13469 | rm -f conftest.err conftest.$ac_ext | |
13470 | ||
13471 | # OK, works on sane cases. Now check whether non-existent headers | |
13472 | # can be detected and how. | |
13473 | cat >conftest.$ac_ext <<_ACEOF | |
13474 | /* confdefs.h. */ | |
13475 | _ACEOF | |
13476 | cat confdefs.h >>conftest.$ac_ext | |
13477 | cat >>conftest.$ac_ext <<_ACEOF | |
13478 | /* end confdefs.h. */ | |
13479 | #include <ac_nonexistent.h> | |
13480 | _ACEOF | |
13481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13483 | ac_status=$? | |
13484 | grep -v '^ *+' conftest.er1 >conftest.err | |
13485 | rm -f conftest.er1 | |
13486 | cat conftest.err >&5 | |
13487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13488 | (exit $ac_status); } >/dev/null; then | |
13489 | if test -s conftest.err; then | |
13490 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13491 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13492 | else |
13493 | ac_cpp_err= | |
13494 | fi | |
13495 | else | |
13496 | ac_cpp_err=yes | |
13497 | fi | |
13498 | if test -z "$ac_cpp_err"; then | |
13499 | # Broken: success on invalid input. | |
13500 | continue | |
13501 | else | |
13502 | echo "$as_me: failed program was:" >&5 | |
13503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13504 | ||
13505 | # Passes both tests. | |
13506 | ac_preproc_ok=: | |
13507 | break | |
13508 | fi | |
13509 | rm -f conftest.err conftest.$ac_ext | |
13510 | ||
13511 | done | |
13512 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13513 | rm -f conftest.err conftest.$ac_ext | |
13514 | if $ac_preproc_ok; then | |
13515 | break | |
13516 | fi | |
13517 | ||
13518 | done | |
13519 | ac_cv_prog_CPP=$CPP | |
13520 | ||
13521 | fi | |
13522 | CPP=$ac_cv_prog_CPP | |
13523 | else | |
13524 | ac_cv_prog_CPP=$CPP | |
13525 | fi | |
13526 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
13527 | echo "${ECHO_T}$CPP" >&6 | |
13528 | ac_preproc_ok=false | |
13529 | for ac_c_preproc_warn_flag in '' yes | |
13530 | do | |
13531 | # Use a header file that comes with gcc, so configuring glibc | |
13532 | # with a fresh cross-compiler works. | |
13533 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13534 | # <limits.h> exists even on freestanding compilers. | |
13535 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13536 | # not just through cpp. "Syntax error" is here to catch this case. | |
13537 | cat >conftest.$ac_ext <<_ACEOF | |
13538 | /* confdefs.h. */ | |
13539 | _ACEOF | |
13540 | cat confdefs.h >>conftest.$ac_ext | |
13541 | cat >>conftest.$ac_ext <<_ACEOF | |
13542 | /* end confdefs.h. */ | |
13543 | #ifdef __STDC__ | |
13544 | # include <limits.h> | |
13545 | #else | |
13546 | # include <assert.h> | |
13547 | #endif | |
ac1cb8d3 | 13548 | Syntax error |
a848cd7e SC |
13549 | _ACEOF |
13550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13552 | ac_status=$? | |
13553 | grep -v '^ *+' conftest.er1 >conftest.err | |
13554 | rm -f conftest.er1 | |
13555 | cat conftest.err >&5 | |
13556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13557 | (exit $ac_status); } >/dev/null; then | |
13558 | if test -s conftest.err; then | |
13559 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13561 | else |
13562 | ac_cpp_err= | |
13563 | fi | |
13564 | else | |
13565 | ac_cpp_err=yes | |
13566 | fi | |
13567 | if test -z "$ac_cpp_err"; then | |
13568 | : | |
13569 | else | |
13570 | echo "$as_me: failed program was:" >&5 | |
13571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13572 | ||
13573 | # Broken: fails on valid input. | |
13574 | continue | |
13575 | fi | |
13576 | rm -f conftest.err conftest.$ac_ext | |
13577 | ||
13578 | # OK, works on sane cases. Now check whether non-existent headers | |
13579 | # can be detected and how. | |
13580 | cat >conftest.$ac_ext <<_ACEOF | |
13581 | /* confdefs.h. */ | |
13582 | _ACEOF | |
13583 | cat confdefs.h >>conftest.$ac_ext | |
13584 | cat >>conftest.$ac_ext <<_ACEOF | |
13585 | /* end confdefs.h. */ | |
13586 | #include <ac_nonexistent.h> | |
13587 | _ACEOF | |
13588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13590 | ac_status=$? | |
13591 | grep -v '^ *+' conftest.er1 >conftest.err | |
13592 | rm -f conftest.er1 | |
13593 | cat conftest.err >&5 | |
13594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13595 | (exit $ac_status); } >/dev/null; then | |
13596 | if test -s conftest.err; then | |
13597 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13598 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13599 | else |
13600 | ac_cpp_err= | |
13601 | fi | |
13602 | else | |
13603 | ac_cpp_err=yes | |
13604 | fi | |
13605 | if test -z "$ac_cpp_err"; then | |
13606 | # Broken: success on invalid input. | |
13607 | continue | |
13608 | else | |
13609 | echo "$as_me: failed program was:" >&5 | |
13610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13611 | ||
13612 | # Passes both tests. | |
13613 | ac_preproc_ok=: | |
13614 | break | |
13615 | fi | |
13616 | rm -f conftest.err conftest.$ac_ext | |
13617 | ||
13618 | done | |
13619 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13620 | rm -f conftest.err conftest.$ac_ext | |
13621 | if $ac_preproc_ok; then | |
13622 | : | |
13623 | else | |
13624 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
13625 | See \`config.log' for more details." >&5 | |
13626 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
13627 | See \`config.log' for more details." >&2;} | |
13628 | { (exit 1); exit 1; }; } | |
13629 | fi | |
13630 | ||
13631 | ac_ext=c | |
13632 | ac_cpp='$CPP $CPPFLAGS' | |
13633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13636 | ||
13637 | ||
13638 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
13639 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
13640 | if test "${ac_cv_prog_egrep+set}" = set; then | |
13641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13642 | else | |
13643 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
13644 | then ac_cv_prog_egrep='grep -E' | |
13645 | else ac_cv_prog_egrep='egrep' | |
13646 | fi | |
13647 | fi | |
13648 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
13649 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
13650 | EGREP=$ac_cv_prog_egrep | |
13651 | ||
13652 | ||
13653 | if test $ac_cv_c_compiler_gnu = yes; then | |
13654 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
13655 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
13656 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
13657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13658 | else | |
13659 | ac_pattern="Autoconf.*'x'" | |
13660 | cat >conftest.$ac_ext <<_ACEOF | |
13661 | /* confdefs.h. */ | |
13662 | _ACEOF | |
13663 | cat confdefs.h >>conftest.$ac_ext | |
13664 | cat >>conftest.$ac_ext <<_ACEOF | |
13665 | /* end confdefs.h. */ | |
13666 | #include <sgtty.h> | |
13667 | Autoconf TIOCGETP | |
13668 | _ACEOF | |
13669 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13670 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13671 | ac_cv_prog_gcc_traditional=yes | |
13672 | else | |
13673 | ac_cv_prog_gcc_traditional=no | |
13674 | fi | |
13675 | rm -f conftest* | |
13676 | ||
13677 | ||
13678 | if test $ac_cv_prog_gcc_traditional = no; then | |
13679 | cat >conftest.$ac_ext <<_ACEOF | |
13680 | /* confdefs.h. */ | |
13681 | _ACEOF | |
13682 | cat confdefs.h >>conftest.$ac_ext | |
13683 | cat >>conftest.$ac_ext <<_ACEOF | |
13684 | /* end confdefs.h. */ | |
13685 | #include <termio.h> | |
13686 | Autoconf TCGETA | |
13687 | _ACEOF | |
13688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13689 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13690 | ac_cv_prog_gcc_traditional=yes | |
13691 | fi | |
13692 | rm -f conftest* | |
13693 | ||
13694 | fi | |
13695 | fi | |
13696 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
13697 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
13698 | if test $ac_cv_prog_gcc_traditional = yes; then | |
13699 | CC="$CC -traditional" | |
13700 | fi | |
13701 | fi | |
13702 | ||
13703 | ||
a848cd7e SC |
13704 | ac_ext=cc |
13705 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13706 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13707 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13708 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13709 | ||
13710 | ||
13711 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
13712 | |
13713 | ||
3006edc0 | 13714 | |
6dcfc289 | 13715 | ac_ext=cc |
a848cd7e SC |
13716 | ac_cpp='$CXXCPP $CPPFLAGS' |
13717 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13718 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13719 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13720 | if test -n "$ac_tool_prefix"; then | |
13721 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13722 | do | |
13723 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13724 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13727 | if test "${ac_cv_prog_CXX+set}" = set; then | |
13728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13729 | else | |
13730 | if test -n "$CXX"; then | |
13731 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13732 | else | |
13733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13734 | for as_dir in $PATH | |
13735 | do | |
13736 | IFS=$as_save_IFS | |
13737 | test -z "$as_dir" && as_dir=. | |
13738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13740 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13742 | break 2 | |
13743 | fi | |
13744 | done | |
13745 | done | |
13746 | ||
13747 | fi | |
13748 | fi | |
13749 | CXX=$ac_cv_prog_CXX | |
13750 | if test -n "$CXX"; then | |
13751 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13752 | echo "${ECHO_T}$CXX" >&6 | |
13753 | else | |
13754 | echo "$as_me:$LINENO: result: no" >&5 | |
13755 | echo "${ECHO_T}no" >&6 | |
13756 | fi | |
13757 | ||
13758 | test -n "$CXX" && break | |
13759 | done | |
13760 | fi | |
13761 | if test -z "$CXX"; then | |
13762 | ac_ct_CXX=$CXX | |
13763 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13764 | do | |
13765 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13766 | set dummy $ac_prog; ac_word=$2 | |
13767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13769 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13771 | else | |
13772 | if test -n "$ac_ct_CXX"; then | |
13773 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13774 | else | |
13775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13776 | for as_dir in $PATH | |
13777 | do | |
13778 | IFS=$as_save_IFS | |
13779 | test -z "$as_dir" && as_dir=. | |
13780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13782 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13784 | break 2 | |
13785 | fi | |
13786 | done | |
13787 | done | |
13788 | ||
13789 | fi | |
13790 | fi | |
13791 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13792 | if test -n "$ac_ct_CXX"; then | |
13793 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13794 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13795 | else | |
13796 | echo "$as_me:$LINENO: result: no" >&5 | |
13797 | echo "${ECHO_T}no" >&6 | |
13798 | fi | |
13799 | ||
13800 | test -n "$ac_ct_CXX" && break | |
13801 | done | |
13802 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13803 | ||
13804 | CXX=$ac_ct_CXX | |
13805 | fi | |
13806 | ||
13807 | ||
13808 | # Provide some information about the compiler. | |
13809 | echo "$as_me:$LINENO:" \ | |
13810 | "checking for C++ compiler version" >&5 | |
13811 | ac_compiler=`set X $ac_compile; echo $2` | |
13812 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13813 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13814 | ac_status=$? | |
13815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13816 | (exit $ac_status); } | |
13817 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13818 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13819 | ac_status=$? | |
13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13821 | (exit $ac_status); } | |
13822 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13823 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13824 | ac_status=$? | |
13825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13826 | (exit $ac_status); } | |
13827 | ||
13828 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13829 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13830 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
13831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13832 | else | |
13833 | cat >conftest.$ac_ext <<_ACEOF | |
13834 | /* confdefs.h. */ | |
13835 | _ACEOF | |
13836 | cat confdefs.h >>conftest.$ac_ext | |
13837 | cat >>conftest.$ac_ext <<_ACEOF | |
13838 | /* end confdefs.h. */ | |
13839 | ||
13840 | int | |
13841 | main () | |
13842 | { | |
13843 | #ifndef __GNUC__ | |
13844 | choke me | |
13845 | #endif | |
13846 | ||
13847 | ; | |
13848 | return 0; | |
13849 | } | |
13850 | _ACEOF | |
13851 | rm -f conftest.$ac_objext | |
13852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13853 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13854 | ac_status=$? |
ac1cb8d3 VS |
13855 | grep -v '^ *+' conftest.er1 >conftest.err |
13856 | rm -f conftest.er1 | |
13857 | cat conftest.err >&5 | |
a848cd7e SC |
13858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13859 | (exit $ac_status); } && | |
ca5c6ac3 | 13860 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13862 | (eval $ac_try) 2>&5 | |
13863 | ac_status=$? | |
13864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13865 | (exit $ac_status); }; } && | |
13866 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13868 | (eval $ac_try) 2>&5 | |
13869 | ac_status=$? | |
13870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13871 | (exit $ac_status); }; }; then | |
13872 | ac_compiler_gnu=yes | |
13873 | else | |
13874 | echo "$as_me: failed program was:" >&5 | |
13875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13876 | ||
13877 | ac_compiler_gnu=no | |
13878 | fi | |
ac1cb8d3 | 13879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13880 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13881 | ||
13882 | fi | |
13883 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13884 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13885 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13886 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13887 | ac_save_CXXFLAGS=$CXXFLAGS | |
13888 | CXXFLAGS="-g" | |
13889 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13890 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13891 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13893 | else | |
13894 | cat >conftest.$ac_ext <<_ACEOF | |
13895 | /* confdefs.h. */ | |
13896 | _ACEOF | |
13897 | cat confdefs.h >>conftest.$ac_ext | |
13898 | cat >>conftest.$ac_ext <<_ACEOF | |
13899 | /* end confdefs.h. */ | |
13900 | ||
13901 | int | |
13902 | main () | |
13903 | { | |
13904 | ||
13905 | ; | |
13906 | return 0; | |
13907 | } | |
13908 | _ACEOF | |
13909 | rm -f conftest.$ac_objext | |
13910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13911 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13912 | ac_status=$? |
ac1cb8d3 VS |
13913 | grep -v '^ *+' conftest.er1 >conftest.err |
13914 | rm -f conftest.er1 | |
13915 | cat conftest.err >&5 | |
a848cd7e SC |
13916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13917 | (exit $ac_status); } && | |
ca5c6ac3 | 13918 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13920 | (eval $ac_try) 2>&5 | |
13921 | ac_status=$? | |
13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13923 | (exit $ac_status); }; } && | |
13924 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13926 | (eval $ac_try) 2>&5 | |
13927 | ac_status=$? | |
13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13929 | (exit $ac_status); }; }; then | |
13930 | ac_cv_prog_cxx_g=yes | |
13931 | else | |
13932 | echo "$as_me: failed program was:" >&5 | |
13933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13934 | ||
13935 | ac_cv_prog_cxx_g=no | |
13936 | fi | |
ac1cb8d3 | 13937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13938 | fi |
13939 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13940 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13941 | if test "$ac_test_CXXFLAGS" = set; then | |
13942 | CXXFLAGS=$ac_save_CXXFLAGS | |
13943 | elif test $ac_cv_prog_cxx_g = yes; then | |
13944 | if test "$GXX" = yes; then | |
15291213 | 13945 | CXXFLAGS="-g -O2" |
a848cd7e | 13946 | else |
15291213 | 13947 | CXXFLAGS="-g" |
a848cd7e SC |
13948 | fi |
13949 | else | |
13950 | if test "$GXX" = yes; then | |
13951 | CXXFLAGS="-O2" | |
13952 | else | |
13953 | CXXFLAGS= | |
13954 | fi | |
13955 | fi | |
13956 | for ac_declaration in \ | |
ac1cb8d3 | 13957 | '' \ |
a848cd7e SC |
13958 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13959 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13960 | 'extern "C" void exit (int) throw ();' \ | |
13961 | 'extern "C" void exit (int);' \ | |
13962 | 'void exit (int);' | |
13963 | do | |
13964 | cat >conftest.$ac_ext <<_ACEOF | |
13965 | /* confdefs.h. */ | |
13966 | _ACEOF | |
13967 | cat confdefs.h >>conftest.$ac_ext | |
13968 | cat >>conftest.$ac_ext <<_ACEOF | |
13969 | /* end confdefs.h. */ | |
de59c161 | 13970 | $ac_declaration |
ac1cb8d3 | 13971 | #include <stdlib.h> |
a848cd7e SC |
13972 | int |
13973 | main () | |
13974 | { | |
13975 | exit (42); | |
13976 | ; | |
13977 | return 0; | |
13978 | } | |
13979 | _ACEOF | |
13980 | rm -f conftest.$ac_objext | |
13981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13982 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13983 | ac_status=$? |
ac1cb8d3 VS |
13984 | grep -v '^ *+' conftest.er1 >conftest.err |
13985 | rm -f conftest.er1 | |
13986 | cat conftest.err >&5 | |
a848cd7e SC |
13987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13988 | (exit $ac_status); } && | |
ca5c6ac3 | 13989 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13991 | (eval $ac_try) 2>&5 | |
13992 | ac_status=$? | |
13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13994 | (exit $ac_status); }; } && | |
13995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13997 | (eval $ac_try) 2>&5 | |
13998 | ac_status=$? | |
13999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14000 | (exit $ac_status); }; }; then | |
14001 | : | |
14002 | else | |
14003 | echo "$as_me: failed program was:" >&5 | |
14004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14005 | ||
14006 | continue | |
14007 | fi | |
ac1cb8d3 | 14008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14009 | cat >conftest.$ac_ext <<_ACEOF |
14010 | /* confdefs.h. */ | |
14011 | _ACEOF | |
14012 | cat confdefs.h >>conftest.$ac_ext | |
14013 | cat >>conftest.$ac_ext <<_ACEOF | |
14014 | /* end confdefs.h. */ | |
14015 | $ac_declaration | |
14016 | int | |
14017 | main () | |
14018 | { | |
14019 | exit (42); | |
14020 | ; | |
14021 | return 0; | |
14022 | } | |
14023 | _ACEOF | |
14024 | rm -f conftest.$ac_objext | |
14025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14026 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14027 | ac_status=$? |
ac1cb8d3 VS |
14028 | grep -v '^ *+' conftest.er1 >conftest.err |
14029 | rm -f conftest.er1 | |
14030 | cat conftest.err >&5 | |
a848cd7e SC |
14031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14032 | (exit $ac_status); } && | |
ca5c6ac3 | 14033 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14035 | (eval $ac_try) 2>&5 | |
14036 | ac_status=$? | |
14037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14038 | (exit $ac_status); }; } && | |
14039 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14041 | (eval $ac_try) 2>&5 | |
14042 | ac_status=$? | |
14043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14044 | (exit $ac_status); }; }; then | |
14045 | break | |
14046 | else | |
14047 | echo "$as_me: failed program was:" >&5 | |
14048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14049 | ||
14050 | fi | |
ac1cb8d3 | 14051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14052 | done |
14053 | rm -f conftest* | |
14054 | if test -n "$ac_declaration"; then | |
14055 | echo '#ifdef __cplusplus' >>confdefs.h | |
14056 | echo $ac_declaration >>confdefs.h | |
14057 | echo '#endif' >>confdefs.h | |
14058 | fi | |
14059 | ||
14060 | ac_ext=cc | |
14061 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14062 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14063 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14064 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14065 | ||
ab0ad5f1 VZ |
14066 | |
14067 | ||
14068 | ac_ext=cc | |
14069 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14070 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14071 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14072 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14073 | ||
14074 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
14075 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
14076 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
14077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14078 | else | |
14079 | cat >conftest.$ac_ext <<_ACEOF | |
14080 | /* confdefs.h. */ | |
14081 | _ACEOF | |
14082 | cat confdefs.h >>conftest.$ac_ext | |
14083 | cat >>conftest.$ac_ext <<_ACEOF | |
14084 | /* end confdefs.h. */ | |
14085 | ||
14086 | int | |
14087 | main () | |
14088 | { | |
14089 | ||
14090 | #ifndef __INTEL_COMPILER | |
14091 | choke me | |
14092 | #endif | |
14093 | ||
14094 | ; | |
14095 | return 0; | |
14096 | } | |
14097 | _ACEOF | |
14098 | rm -f conftest.$ac_objext | |
14099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14100 | (eval $ac_compile) 2>conftest.er1 | |
14101 | ac_status=$? | |
14102 | grep -v '^ *+' conftest.er1 >conftest.err | |
14103 | rm -f conftest.er1 | |
14104 | cat conftest.err >&5 | |
14105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14106 | (exit $ac_status); } && | |
ca5c6ac3 | 14107 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
14108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14109 | (eval $ac_try) 2>&5 | |
14110 | ac_status=$? | |
14111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14112 | (exit $ac_status); }; } && | |
14113 | { ac_try='test -s conftest.$ac_objext' | |
14114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14115 | (eval $ac_try) 2>&5 | |
14116 | ac_status=$? | |
14117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14118 | (exit $ac_status); }; }; then | |
14119 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
14120 | else | |
14121 | echo "$as_me: failed program was:" >&5 | |
14122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14123 | ||
14124 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
14125 | ||
14126 | fi | |
14127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14128 | ||
14129 | ||
14130 | fi | |
14131 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
14132 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
14133 | ac_ext=cc | |
14134 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14135 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14136 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14137 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14138 | ||
14139 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
14140 | :; INTELCXX=yes | |
14141 | else | |
14142 | :; | |
14143 | fi | |
14144 | ||
14145 | ||
3006edc0 VZ |
14146 | if test "x$GCXX" != "xyes"; then |
14147 | if test "xCXX" = "xC"; then | |
14148 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 14149 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 14150 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
14151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14152 | else | |
14153 | cat >conftest.$ac_ext <<_ACEOF | |
14154 | /* confdefs.h. */ | |
14155 | _ACEOF | |
14156 | cat confdefs.h >>conftest.$ac_ext | |
14157 | cat >>conftest.$ac_ext <<_ACEOF | |
14158 | /* end confdefs.h. */ | |
14159 | ||
14160 | int | |
14161 | main () | |
14162 | { | |
14163 | ||
14164 | ; | |
14165 | return 0; | |
14166 | } | |
14167 | _ACEOF | |
14168 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
14169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14170 | (eval $ac_compile) 2>&5 | |
14171 | ac_status=$? | |
14172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14173 | (exit $ac_status); }; then | |
14174 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
14175 | case $ac_file in | |
14176 | conftest.$ac_ext.o) | |
0093c2fc | 14177 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
14178 | ;; |
14179 | *) | |
14180 | ;; | |
14181 | esac | |
14182 | done | |
14183 | else | |
14184 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
14185 | See \`config.log' for more details." >&5 | |
14186 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
14187 | See \`config.log' for more details." >&2;} | |
14188 | { (exit 1); exit 1; }; } | |
14189 | ||
14190 | fi | |
14191 | ||
14192 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
14193 | ||
14194 | fi | |
0093c2fc VZ |
14195 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
14196 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
14197 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 14198 | if test "cxx" = "c"; then |
0093c2fc | 14199 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
14200 | fi |
14201 | if test "cxx" = "cxx"; then | |
0093c2fc | 14202 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
14203 | fi |
14204 | fi | |
14205 | ||
0093c2fc | 14206 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
14207 | unset ac_cv_prog_cc_g |
14208 | ac_test_CFLAGS=${CFLAGS+set} | |
14209 | ac_save_CFLAGS=$CFLAGS | |
15291213 | 14210 | CFLAGS="-g" |
3006edc0 VZ |
14211 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
14212 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
14213 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
14214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14215 | else | |
14216 | cat >conftest.$ac_ext <<_ACEOF | |
14217 | /* confdefs.h. */ | |
14218 | _ACEOF | |
14219 | cat confdefs.h >>conftest.$ac_ext | |
14220 | cat >>conftest.$ac_ext <<_ACEOF | |
14221 | /* end confdefs.h. */ | |
14222 | ||
14223 | int | |
14224 | main () | |
14225 | { | |
14226 | ||
14227 | ; | |
14228 | return 0; | |
14229 | } | |
14230 | _ACEOF | |
14231 | rm -f conftest.$ac_objext | |
14232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14233 | (eval $ac_compile) 2>conftest.er1 | |
14234 | ac_status=$? | |
14235 | grep -v '^ *+' conftest.er1 >conftest.err | |
14236 | rm -f conftest.er1 | |
14237 | cat conftest.err >&5 | |
14238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14239 | (exit $ac_status); } && | |
ca5c6ac3 | 14240 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
14241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14242 | (eval $ac_try) 2>&5 | |
14243 | ac_status=$? | |
14244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14245 | (exit $ac_status); }; } && | |
14246 | { ac_try='test -s conftest.$ac_objext' | |
14247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14248 | (eval $ac_try) 2>&5 | |
14249 | ac_status=$? | |
14250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14251 | (exit $ac_status); }; }; then | |
3006edc0 | 14252 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
14253 | else |
14254 | echo "$as_me: failed program was:" >&5 | |
14255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14256 | ||
3006edc0 | 14257 | ac_cv_prog_cc_g=no |
480ccd21 DE |
14258 | fi |
14259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14260 | fi | |
3006edc0 VZ |
14261 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
14262 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
14263 | if test "$ac_test_CFLAGS" = set; then | |
14264 | CFLAGS=$ac_save_CFLAGS | |
14265 | elif test $ac_cv_prog_cc_g = yes; then | |
14266 | if test "$GCC" = yes; then | |
14267 | CFLAGS="-g -O2" | |
480ccd21 | 14268 | else |
3006edc0 | 14269 | CFLAGS="-g" |
480ccd21 DE |
14270 | fi |
14271 | else | |
3006edc0 VZ |
14272 | if test "$GCC" = yes; then |
14273 | CFLAGS="-O2" | |
480ccd21 | 14274 | else |
3006edc0 | 14275 | CFLAGS= |
480ccd21 DE |
14276 | fi |
14277 | fi | |
3006edc0 | 14278 | fi |
ab0ad5f1 | 14279 | fi |
3006edc0 VZ |
14280 | |
14281 | case `uname -s` in | |
14282 | AIX*) | |
14283 | ac_ext=cc | |
14284 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14285 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14286 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14287 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14288 | ||
14289 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
14290 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 14291 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
14292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14293 | else | |
14294 | cat >conftest.$ac_ext <<_ACEOF | |
14295 | /* confdefs.h. */ | |
14296 | _ACEOF | |
14297 | cat confdefs.h >>conftest.$ac_ext | |
14298 | cat >>conftest.$ac_ext <<_ACEOF | |
14299 | /* end confdefs.h. */ | |
14300 | ||
14301 | int | |
14302 | main () | |
14303 | { | |
14304 | #ifndef __xlC__ | |
14305 | choke me | |
14306 | #endif | |
14307 | ||
14308 | ; | |
14309 | return 0; | |
14310 | } | |
14311 | _ACEOF | |
14312 | rm -f conftest.$ac_objext | |
14313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14314 | (eval $ac_compile) 2>conftest.er1 | |
14315 | ac_status=$? | |
14316 | grep -v '^ *+' conftest.er1 >conftest.err | |
14317 | rm -f conftest.er1 | |
14318 | cat conftest.err >&5 | |
14319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14320 | (exit $ac_status); } && | |
ca5c6ac3 | 14321 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14323 | (eval $ac_try) 2>&5 | |
14324 | ac_status=$? | |
14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14326 | (exit $ac_status); }; } && | |
14327 | { ac_try='test -s conftest.$ac_objext' | |
14328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14329 | (eval $ac_try) 2>&5 | |
14330 | ac_status=$? | |
14331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14332 | (exit $ac_status); }; }; then | |
0093c2fc | 14333 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
14334 | else |
14335 | echo "$as_me: failed program was:" >&5 | |
14336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14337 | ||
0093c2fc | 14338 | bakefile_compiler_xlc=no |
3006edc0 VZ |
14339 | fi |
14340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14341 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
14342 | |
14343 | fi | |
0093c2fc VZ |
14344 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14345 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 14346 | |
0093c2fc | 14347 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
14348 | ac_ext=cc |
14349 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14350 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14351 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14352 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14353 | ||
14354 | ||
14355 | ;; | |
14356 | ||
14357 | Darwin) | |
14358 | ac_ext=cc | |
95986553 DE |
14359 | ac_cpp='$CXXCPP $CPPFLAGS' |
14360 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14361 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14362 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14363 | ||
14364 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
14365 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
14366 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
14367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14368 | else | |
14369 | cat >conftest.$ac_ext <<_ACEOF | |
14370 | /* confdefs.h. */ | |
14371 | _ACEOF | |
14372 | cat confdefs.h >>conftest.$ac_ext | |
14373 | cat >>conftest.$ac_ext <<_ACEOF | |
14374 | /* end confdefs.h. */ | |
14375 | ||
14376 | int | |
14377 | main () | |
14378 | { | |
14379 | #ifndef __MWERKS__ | |
14380 | choke me | |
14381 | #endif | |
14382 | ||
14383 | ; | |
14384 | return 0; | |
14385 | } | |
14386 | _ACEOF | |
14387 | rm -f conftest.$ac_objext | |
14388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14389 | (eval $ac_compile) 2>conftest.er1 | |
14390 | ac_status=$? | |
14391 | grep -v '^ *+' conftest.er1 >conftest.err | |
14392 | rm -f conftest.er1 | |
14393 | cat conftest.err >&5 | |
14394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14395 | (exit $ac_status); } && | |
ca5c6ac3 | 14396 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
14397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14398 | (eval $ac_try) 2>&5 | |
14399 | ac_status=$? | |
14400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14401 | (exit $ac_status); }; } && | |
14402 | { ac_try='test -s conftest.$ac_objext' | |
14403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14404 | (eval $ac_try) 2>&5 | |
14405 | ac_status=$? | |
14406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14407 | (exit $ac_status); }; }; then | |
14408 | bakefile_compiler_mwerks=yes | |
14409 | else | |
14410 | echo "$as_me: failed program was:" >&5 | |
14411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14412 | ||
14413 | bakefile_compiler_mwerks=no | |
14414 | fi | |
14415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14416 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
14417 | ||
14418 | fi | |
14419 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
14420 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
14421 | ||
0e6fa1d9 | 14422 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
14423 | ac_ext=cc |
14424 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14425 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14426 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14427 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14428 | ||
14429 | ||
3006edc0 | 14430 | ac_ext=cc |
9273ffba DE |
14431 | ac_cpp='$CXXCPP $CPPFLAGS' |
14432 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14433 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14434 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14435 | ||
14436 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
14437 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 14438 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
14439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14440 | else | |
14441 | cat >conftest.$ac_ext <<_ACEOF | |
14442 | /* confdefs.h. */ | |
14443 | _ACEOF | |
14444 | cat confdefs.h >>conftest.$ac_ext | |
14445 | cat >>conftest.$ac_ext <<_ACEOF | |
14446 | /* end confdefs.h. */ | |
14447 | ||
14448 | int | |
14449 | main () | |
14450 | { | |
14451 | #ifndef __xlC__ | |
14452 | choke me | |
14453 | #endif | |
14454 | ||
14455 | ; | |
14456 | return 0; | |
14457 | } | |
14458 | _ACEOF | |
14459 | rm -f conftest.$ac_objext | |
14460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14461 | (eval $ac_compile) 2>conftest.er1 | |
14462 | ac_status=$? | |
14463 | grep -v '^ *+' conftest.er1 >conftest.err | |
14464 | rm -f conftest.er1 | |
14465 | cat conftest.err >&5 | |
14466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14467 | (exit $ac_status); } && | |
ca5c6ac3 | 14468 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
14469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14470 | (eval $ac_try) 2>&5 | |
14471 | ac_status=$? | |
14472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14473 | (exit $ac_status); }; } && | |
14474 | { ac_try='test -s conftest.$ac_objext' | |
14475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14476 | (eval $ac_try) 2>&5 | |
14477 | ac_status=$? | |
14478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14479 | (exit $ac_status); }; }; then | |
0093c2fc | 14480 | bakefile_compiler_xlc=yes |
9273ffba DE |
14481 | else |
14482 | echo "$as_me: failed program was:" >&5 | |
14483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14484 | ||
0093c2fc | 14485 | bakefile_compiler_xlc=no |
9273ffba DE |
14486 | fi |
14487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14488 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
14489 | |
14490 | fi | |
0093c2fc VZ |
14491 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14492 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 14493 | |
0093c2fc | 14494 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
14495 | ac_ext=cc |
14496 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14497 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14498 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14499 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14500 | ||
14501 | ||
3006edc0 VZ |
14502 | ;; |
14503 | ||
14504 | IRIX*) | |
95986553 | 14505 | |
6dcfc289 | 14506 | |
0ad5d837 VZ |
14507 | ac_ext=cc |
14508 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14509 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14510 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14511 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14512 | ||
14513 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
14514 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
14515 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
14516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14517 | else | |
14518 | cat >conftest.$ac_ext <<_ACEOF | |
14519 | /* confdefs.h. */ | |
14520 | _ACEOF | |
14521 | cat confdefs.h >>conftest.$ac_ext | |
14522 | cat >>conftest.$ac_ext <<_ACEOF | |
14523 | /* end confdefs.h. */ | |
14524 | ||
14525 | int | |
14526 | main () | |
14527 | { | |
14528 | ||
14529 | #ifndef _SGI_COMPILER_VERSION | |
14530 | choke me | |
14531 | #endif | |
14532 | ||
14533 | ; | |
14534 | return 0; | |
14535 | } | |
14536 | _ACEOF | |
14537 | rm -f conftest.$ac_objext | |
14538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14539 | (eval $ac_compile) 2>conftest.er1 | |
14540 | ac_status=$? | |
14541 | grep -v '^ *+' conftest.er1 >conftest.err | |
14542 | rm -f conftest.er1 | |
14543 | cat conftest.err >&5 | |
14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14545 | (exit $ac_status); } && | |
ca5c6ac3 | 14546 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
14547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14548 | (eval $ac_try) 2>&5 | |
14549 | ac_status=$? | |
14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14551 | (exit $ac_status); }; } && | |
14552 | { ac_try='test -s conftest.$ac_objext' | |
14553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14554 | (eval $ac_try) 2>&5 | |
14555 | ac_status=$? | |
14556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14557 | (exit $ac_status); }; }; then | |
14558 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
14559 | else | |
14560 | echo "$as_me: failed program was:" >&5 | |
14561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14562 | ||
14563 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
14564 | ||
14565 | fi | |
14566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14567 | ||
14568 | ||
14569 | fi | |
14570 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
14571 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
14572 | ac_ext=cc | |
14573 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14574 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14575 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14576 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14577 | ||
14578 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
14579 | :; SGICXX=yes | |
14580 | else | |
14581 | :; | |
14582 | fi | |
14583 | ||
14584 | ||
3006edc0 VZ |
14585 | ;; |
14586 | ||
0093c2fc | 14587 | HP-UX*) |
3006edc0 VZ |
14588 | |
14589 | ||
14590 | ac_ext=cc | |
14591 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14592 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14593 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14594 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14595 | ||
0093c2fc VZ |
14596 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
14597 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
14598 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
14599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14600 | else | |
14601 | cat >conftest.$ac_ext <<_ACEOF | |
14602 | /* confdefs.h. */ | |
14603 | _ACEOF | |
14604 | cat confdefs.h >>conftest.$ac_ext | |
14605 | cat >>conftest.$ac_ext <<_ACEOF | |
14606 | /* end confdefs.h. */ | |
14607 | ||
14608 | int | |
14609 | main () | |
14610 | { | |
14611 | ||
0093c2fc | 14612 | #ifndef __HP_aCC |
3006edc0 VZ |
14613 | choke me |
14614 | #endif | |
14615 | ||
14616 | ; | |
14617 | return 0; | |
14618 | } | |
14619 | _ACEOF | |
14620 | rm -f conftest.$ac_objext | |
14621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14622 | (eval $ac_compile) 2>conftest.er1 | |
14623 | ac_status=$? | |
14624 | grep -v '^ *+' conftest.er1 >conftest.err | |
14625 | rm -f conftest.er1 | |
14626 | cat conftest.err >&5 | |
14627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14628 | (exit $ac_status); } && | |
ca5c6ac3 | 14629 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14631 | (eval $ac_try) 2>&5 | |
14632 | ac_status=$? | |
14633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14634 | (exit $ac_status); }; } && | |
14635 | { ac_try='test -s conftest.$ac_objext' | |
14636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14637 | (eval $ac_try) 2>&5 | |
14638 | ac_status=$? | |
14639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14640 | (exit $ac_status); }; }; then | |
0093c2fc | 14641 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
14642 | else |
14643 | echo "$as_me: failed program was:" >&5 | |
14644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14645 | ||
0093c2fc | 14646 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
14647 | |
14648 | fi | |
14649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14650 | ||
14651 | ||
14652 | fi | |
0093c2fc VZ |
14653 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
14654 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
14655 | ac_ext=cc |
14656 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14657 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14658 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14659 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14660 | ||
0093c2fc VZ |
14661 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
14662 | :; HPCXX=yes | |
a1aa0349 VZ |
14663 | else |
14664 | :; | |
14665 | fi | |
14666 | ||
14667 | ||
14668 | ;; | |
14669 | ||
0093c2fc | 14670 | OSF1) |
a1aa0349 VZ |
14671 | |
14672 | ||
14673 | ac_ext=cc | |
14674 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14675 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14676 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14677 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14678 | ||
0093c2fc VZ |
14679 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
14680 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
14681 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
14682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14683 | else | |
14684 | cat >conftest.$ac_ext <<_ACEOF | |
14685 | /* confdefs.h. */ | |
14686 | _ACEOF | |
14687 | cat confdefs.h >>conftest.$ac_ext | |
14688 | cat >>conftest.$ac_ext <<_ACEOF | |
14689 | /* end confdefs.h. */ | |
14690 | ||
14691 | int | |
14692 | main () | |
14693 | { | |
14694 | ||
0093c2fc | 14695 | #ifndef __DECCXX |
a1aa0349 VZ |
14696 | choke me |
14697 | #endif | |
14698 | ||
14699 | ; | |
14700 | return 0; | |
14701 | } | |
14702 | _ACEOF | |
14703 | rm -f conftest.$ac_objext | |
14704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14705 | (eval $ac_compile) 2>conftest.er1 | |
14706 | ac_status=$? | |
14707 | grep -v '^ *+' conftest.er1 >conftest.err | |
14708 | rm -f conftest.er1 | |
14709 | cat conftest.err >&5 | |
14710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14711 | (exit $ac_status); } && | |
ca5c6ac3 | 14712 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
14713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14714 | (eval $ac_try) 2>&5 | |
14715 | ac_status=$? | |
14716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14717 | (exit $ac_status); }; } && | |
14718 | { ac_try='test -s conftest.$ac_objext' | |
14719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14720 | (eval $ac_try) 2>&5 | |
14721 | ac_status=$? | |
14722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14723 | (exit $ac_status); }; }; then | |
0093c2fc | 14724 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14725 | else |
14726 | echo "$as_me: failed program was:" >&5 | |
14727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14728 | ||
0093c2fc | 14729 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14730 | |
14731 | fi | |
14732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14733 | ||
14734 | ||
14735 | fi | |
0093c2fc VZ |
14736 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14737 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14738 | ac_ext=cc |
14739 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14740 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14741 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14742 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14743 | ||
0093c2fc VZ |
14744 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14745 | :; COMPAQCXX=yes | |
14746 | else | |
14747 | :; | |
14748 | fi | |
14749 | ||
14750 | ||
14751 | ;; | |
14752 | ||
14753 | SunOS) | |
14754 | ||
14755 | ||
14756 | ac_ext=cc | |
14757 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14758 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14759 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14760 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14761 | ||
14762 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14763 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14764 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14766 | else | |
14767 | cat >conftest.$ac_ext <<_ACEOF | |
14768 | /* confdefs.h. */ | |
14769 | _ACEOF | |
14770 | cat confdefs.h >>conftest.$ac_ext | |
14771 | cat >>conftest.$ac_ext <<_ACEOF | |
14772 | /* end confdefs.h. */ | |
14773 | ||
14774 | int | |
14775 | main () | |
14776 | { | |
14777 | ||
14778 | #ifndef __SUNPRO_CC | |
14779 | choke me | |
14780 | #endif | |
14781 | ||
14782 | ; | |
14783 | return 0; | |
14784 | } | |
14785 | _ACEOF | |
14786 | rm -f conftest.$ac_objext | |
14787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14788 | (eval $ac_compile) 2>conftest.er1 | |
14789 | ac_status=$? | |
14790 | grep -v '^ *+' conftest.er1 >conftest.err | |
14791 | rm -f conftest.er1 | |
14792 | cat conftest.err >&5 | |
14793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14794 | (exit $ac_status); } && | |
ca5c6ac3 | 14795 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
14796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14797 | (eval $ac_try) 2>&5 | |
14798 | ac_status=$? | |
14799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14800 | (exit $ac_status); }; } && | |
14801 | { ac_try='test -s conftest.$ac_objext' | |
14802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14803 | (eval $ac_try) 2>&5 | |
14804 | ac_status=$? | |
14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14806 | (exit $ac_status); }; }; then | |
14807 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14808 | else | |
14809 | echo "$as_me: failed program was:" >&5 | |
14810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14811 | ||
14812 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14813 | ||
14814 | fi | |
14815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14816 | ||
14817 | ||
14818 | fi | |
14819 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14820 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14821 | ac_ext=cc | |
14822 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14823 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14824 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14825 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14826 | ||
14827 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14828 | :; SUNCXX=yes | |
3006edc0 VZ |
14829 | else |
14830 | :; | |
ab0ad5f1 | 14831 | fi |
a9e5b1f0 MW |
14832 | |
14833 | ||
3006edc0 VZ |
14834 | ;; |
14835 | esac | |
14836 | fi | |
14837 | ||
14838 | ||
14839 | ||
a848cd7e SC |
14840 | if test -n "$ac_tool_prefix"; then |
14841 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14842 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14845 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14847 | else | |
14848 | if test -n "$RANLIB"; then | |
14849 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14850 | else | |
14851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14852 | for as_dir in $PATH | |
14853 | do | |
14854 | IFS=$as_save_IFS | |
14855 | test -z "$as_dir" && as_dir=. | |
14856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14857 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14858 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14860 | break 2 | |
14861 | fi | |
14862 | done | |
14863 | done | |
14864 | ||
14865 | fi | |
14866 | fi | |
14867 | RANLIB=$ac_cv_prog_RANLIB | |
14868 | if test -n "$RANLIB"; then | |
14869 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14870 | echo "${ECHO_T}$RANLIB" >&6 | |
14871 | else | |
14872 | echo "$as_me:$LINENO: result: no" >&5 | |
14873 | echo "${ECHO_T}no" >&6 | |
14874 | fi | |
14875 | ||
14876 | fi | |
14877 | if test -z "$ac_cv_prog_RANLIB"; then | |
14878 | ac_ct_RANLIB=$RANLIB | |
14879 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14880 | set dummy ranlib; ac_word=$2 | |
14881 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14883 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14885 | else | |
14886 | if test -n "$ac_ct_RANLIB"; then | |
14887 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14888 | else | |
14889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14890 | for as_dir in $PATH | |
14891 | do | |
14892 | IFS=$as_save_IFS | |
14893 | test -z "$as_dir" && as_dir=. | |
14894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14895 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14896 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14897 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14898 | break 2 | |
14899 | fi | |
14900 | done | |
14901 | done | |
14902 | ||
14903 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14904 | fi | |
14905 | fi | |
14906 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14907 | if test -n "$ac_ct_RANLIB"; then | |
14908 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14909 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14910 | else | |
14911 | echo "$as_me:$LINENO: result: no" >&5 | |
14912 | echo "${ECHO_T}no" >&6 | |
14913 | fi | |
14914 | ||
14915 | RANLIB=$ac_ct_RANLIB | |
14916 | else | |
14917 | RANLIB="$ac_cv_prog_RANLIB" | |
14918 | fi | |
14919 | ||
14920 | ||
8c80d384 DE |
14921 | if test -n "$ac_tool_prefix"; then |
14922 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14923 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14924 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14926 | if test "${ac_cv_prog_AR+set}" = set; then | |
14927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14928 | else | |
14929 | if test -n "$AR"; then | |
14930 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14931 | else | |
14932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14933 | for as_dir in $PATH | |
14934 | do | |
14935 | IFS=$as_save_IFS | |
14936 | test -z "$as_dir" && as_dir=. | |
14937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14938 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14939 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14941 | break 2 | |
14942 | fi | |
14943 | done | |
14944 | done | |
14945 | ||
14946 | fi | |
14947 | fi | |
14948 | AR=$ac_cv_prog_AR | |
14949 | if test -n "$AR"; then | |
14950 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14951 | echo "${ECHO_T}$AR" >&6 | |
14952 | else | |
14953 | echo "$as_me:$LINENO: result: no" >&5 | |
14954 | echo "${ECHO_T}no" >&6 | |
14955 | fi | |
14956 | ||
8c80d384 DE |
14957 | fi |
14958 | if test -z "$ac_cv_prog_AR"; then | |
14959 | ac_ct_AR=$AR | |
14960 | # Extract the first word of "ar", so it can be a program name with args. | |
14961 | set dummy ar; ac_word=$2 | |
14962 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14964 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14966 | else | |
14967 | if test -n "$ac_ct_AR"; then | |
14968 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14969 | else | |
14970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14971 | for as_dir in $PATH | |
14972 | do | |
14973 | IFS=$as_save_IFS | |
14974 | test -z "$as_dir" && as_dir=. | |
14975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14976 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14977 | ac_cv_prog_ac_ct_AR="ar" | |
14978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14979 | break 2 | |
14980 | fi | |
14981 | done | |
14982 | done | |
14983 | ||
14984 | fi | |
14985 | fi | |
14986 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14987 | if test -n "$ac_ct_AR"; then | |
14988 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14989 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14990 | else | |
14991 | echo "$as_me:$LINENO: result: no" >&5 | |
14992 | echo "${ECHO_T}no" >&6 | |
14993 | fi | |
14994 | ||
14995 | AR=$ac_ct_AR | |
14996 | else | |
14997 | AR="$ac_cv_prog_AR" | |
14998 | fi | |
14999 | ||
a848cd7e | 15000 | if test "x$AR" = "x" ; then |
77ffb593 JS |
15001 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
15002 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
15003 | { (exit 1); exit 1; }; } |
15004 | fi | |
15005 | ||
15006 | # Find a good install program. We prefer a C program (faster), | |
15007 | # so one script is as good as another. But avoid the broken or | |
15008 | # incompatible versions: | |
15009 | # SysV /etc/install, /usr/sbin/install | |
15010 | # SunOS /usr/etc/install | |
15011 | # IRIX /sbin/install | |
15012 | # AIX /bin/install | |
15013 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
15014 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
15015 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
15016 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 15017 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
15018 | # ./install, which can be erroneously created by make from ./install.sh. |
15019 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
15020 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
15021 | if test -z "$INSTALL"; then | |
15022 | if test "${ac_cv_path_install+set}" = set; then | |
15023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15024 | else | |
15025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15026 | for as_dir in $PATH | |
15027 | do | |
15028 | IFS=$as_save_IFS | |
15029 | test -z "$as_dir" && as_dir=. | |
15030 | # Account for people who put trailing slashes in PATH elements. | |
15031 | case $as_dir/ in | |
15032 | ./ | .// | /cC/* | \ | |
15033 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 15034 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
15035 | /usr/ucb/* ) ;; |
15036 | *) | |
15037 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
15038 | # Don't use installbsd from OSF since it installs stuff as root | |
15039 | # by default. | |
15040 | for ac_prog in ginstall scoinst install; do | |
15041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
15042 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
15043 | if test $ac_prog = install && | |
15044 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
15045 | # AIX install. It has an incompatible calling convention. | |
15046 | : | |
15047 | elif test $ac_prog = install && | |
15048 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
15049 | # program-specific install script used by HP pwplus--don't use. | |
15050 | : | |
15051 | else | |
15052 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
15053 | break 3 | |
15054 | fi | |
15055 | fi | |
a848cd7e SC |
15056 | done |
15057 | done | |
15058 | ;; | |
15059 | esac | |
15060 | done | |
15061 | ||
15062 | ||
15063 | fi | |
15064 | if test "${ac_cv_path_install+set}" = set; then | |
15065 | INSTALL=$ac_cv_path_install | |
15066 | else | |
15067 | # As a last resort, use the slow shell script. We don't cache a | |
15068 | # path for INSTALL within a source directory, because that will | |
15069 | # break other packages using the cache if that directory is | |
15070 | # removed, or if the path is relative. | |
15071 | INSTALL=$ac_install_sh | |
15072 | fi | |
15073 | fi | |
15074 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
15075 | echo "${ECHO_T}$INSTALL" >&6 | |
15076 | ||
15077 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
15078 | # It thinks the first close brace ends the variable substitution. | |
15079 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
15080 | ||
15081 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
15082 | ||
15083 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
15084 | ||
15085 | ||
15086 | case ${INSTALL} in | |
15087 | /* ) # Absolute | |
15088 | ;; | |
15089 | ?:* ) # Drive letter, considered as absolute. | |
15090 | ;; | |
15091 | *) | |
15092 | INSTALL=`pwd`/${INSTALL} ;; | |
15093 | esac | |
15094 | ||
a848cd7e SC |
15095 | |
15096 | case "${host}" in | |
15097 | ||
cfda0ea8 | 15098 | *-*-darwin* ) |
a848cd7e SC |
15099 | INSTALL_PROGRAM="cp -fp" |
15100 | INSTALL_DATA="cp -fp" | |
15101 | ;; | |
15102 | *) | |
15103 | ;; | |
15104 | esac | |
15105 | ||
8c80d384 DE |
15106 | if test -n "$ac_tool_prefix"; then |
15107 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
15108 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
15109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15111 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
15112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15113 | else | |
15114 | if test -n "$STRIP"; then | |
15115 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
15116 | else | |
15117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15118 | for as_dir in $PATH | |
15119 | do | |
15120 | IFS=$as_save_IFS | |
15121 | test -z "$as_dir" && as_dir=. | |
15122 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15123 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 15124 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
15125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15126 | break 2 | |
15127 | fi | |
15128 | done | |
15129 | done | |
15130 | ||
a848cd7e SC |
15131 | fi |
15132 | fi | |
15133 | STRIP=$ac_cv_prog_STRIP | |
15134 | if test -n "$STRIP"; then | |
15135 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
15136 | echo "${ECHO_T}$STRIP" >&6 | |
15137 | else | |
15138 | echo "$as_me:$LINENO: result: no" >&5 | |
15139 | echo "${ECHO_T}no" >&6 | |
15140 | fi | |
15141 | ||
8c80d384 DE |
15142 | fi |
15143 | if test -z "$ac_cv_prog_STRIP"; then | |
15144 | ac_ct_STRIP=$STRIP | |
15145 | # Extract the first word of "strip", so it can be a program name with args. | |
15146 | set dummy strip; ac_word=$2 | |
15147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15149 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
15150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15151 | else | |
15152 | if test -n "$ac_ct_STRIP"; then | |
15153 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
15154 | else | |
15155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15156 | for as_dir in $PATH | |
15157 | do | |
15158 | IFS=$as_save_IFS | |
15159 | test -z "$as_dir" && as_dir=. | |
15160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15162 | ac_cv_prog_ac_ct_STRIP="strip" | |
15163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15164 | break 2 | |
15165 | fi | |
15166 | done | |
15167 | done | |
15168 | ||
15169 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
15170 | fi | |
15171 | fi | |
15172 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
15173 | if test -n "$ac_ct_STRIP"; then | |
15174 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
15175 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
15176 | else | |
15177 | echo "$as_me:$LINENO: result: no" >&5 | |
15178 | echo "${ECHO_T}no" >&6 | |
15179 | fi | |
15180 | ||
15181 | STRIP=$ac_ct_STRIP | |
15182 | else | |
15183 | STRIP="$ac_cv_prog_STRIP" | |
15184 | fi | |
15185 | ||
15186 | ||
15187 | if test "$wxUSE_WINE" = "yes"; then | |
15188 | if test -n "$ac_tool_prefix"; then | |
15189 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
15190 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
15191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 15193 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
15194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15195 | else | |
8ced02f6 DE |
15196 | if test -n "$WINDRES"; then |
15197 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
15198 | else |
15199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15200 | for as_dir in $PATH | |
15201 | do | |
15202 | IFS=$as_save_IFS | |
15203 | test -z "$as_dir" && as_dir=. | |
15204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 15206 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
15207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15208 | break 2 | |
15209 | fi | |
15210 | done | |
15211 | done | |
15212 | ||
15213 | fi | |
15214 | fi | |
8ced02f6 DE |
15215 | WINDRES=$ac_cv_prog_WINDRES |
15216 | if test -n "$WINDRES"; then | |
15217 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
15218 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
15219 | else |
15220 | echo "$as_me:$LINENO: result: no" >&5 | |
15221 | echo "${ECHO_T}no" >&6 | |
15222 | fi | |
15223 | ||
15224 | fi | |
8ced02f6 DE |
15225 | if test -z "$ac_cv_prog_WINDRES"; then |
15226 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
15227 | # Extract the first word of "wrc", so it can be a program name with args. |
15228 | set dummy wrc; ac_word=$2 | |
15229 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15230 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 15231 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
15232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15233 | else | |
8ced02f6 DE |
15234 | if test -n "$ac_ct_WINDRES"; then |
15235 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
15236 | else |
15237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15238 | for as_dir in $PATH | |
15239 | do | |
15240 | IFS=$as_save_IFS | |
15241 | test -z "$as_dir" && as_dir=. | |
15242 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15243 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 15244 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
15245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
15246 | break 2 | |
15247 | fi | |
15248 | done | |
15249 | done | |
15250 | ||
15251 | fi | |
15252 | fi | |
8ced02f6 DE |
15253 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
15254 | if test -n "$ac_ct_WINDRES"; then | |
15255 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
15256 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
15257 | else |
15258 | echo "$as_me:$LINENO: result: no" >&5 | |
15259 | echo "${ECHO_T}no" >&6 | |
15260 | fi | |
15261 | ||
8ced02f6 | 15262 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 15263 | else |
8ced02f6 | 15264 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
15265 | fi |
15266 | ||
004ee6da | 15267 | RESCOMP="$WINDRES" |
8c80d384 DE |
15268 | else |
15269 | case "${host}" in | |
15270 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
15271 | if test -n "$ac_tool_prefix"; then |
15272 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
15273 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
15274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15276 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
15277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15278 | else | |
15279 | if test -n "$WINDRES"; then | |
15280 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
15281 | else | |
15282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15283 | for as_dir in $PATH | |
15284 | do | |
15285 | IFS=$as_save_IFS | |
15286 | test -z "$as_dir" && as_dir=. | |
15287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15289 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
15290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15291 | break 2 | |
15292 | fi | |
15293 | done | |
15294 | done | |
15295 | ||
15296 | fi | |
15297 | fi | |
15298 | WINDRES=$ac_cv_prog_WINDRES | |
15299 | if test -n "$WINDRES"; then | |
15300 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
15301 | echo "${ECHO_T}$WINDRES" >&6 | |
15302 | else | |
15303 | echo "$as_me:$LINENO: result: no" >&5 | |
15304 | echo "${ECHO_T}no" >&6 | |
15305 | fi | |
15306 | ||
15307 | fi | |
15308 | if test -z "$ac_cv_prog_WINDRES"; then | |
15309 | ac_ct_WINDRES=$WINDRES | |
15310 | # Extract the first word of "windres", so it can be a program name with args. | |
15311 | set dummy windres; ac_word=$2 | |
15312 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15314 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
15315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15316 | else | |
15317 | if test -n "$ac_ct_WINDRES"; then | |
15318 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
15319 | else | |
15320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15321 | for as_dir in $PATH | |
15322 | do | |
15323 | IFS=$as_save_IFS | |
15324 | test -z "$as_dir" && as_dir=. | |
15325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15326 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15327 | ac_cv_prog_ac_ct_WINDRES="windres" | |
15328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15329 | break 2 | |
15330 | fi | |
15331 | done | |
15332 | done | |
15333 | ||
15334 | fi | |
15335 | fi | |
15336 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
15337 | if test -n "$ac_ct_WINDRES"; then | |
15338 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
15339 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
15340 | else | |
15341 | echo "$as_me:$LINENO: result: no" >&5 | |
15342 | echo "${ECHO_T}no" >&6 | |
15343 | fi | |
15344 | ||
15345 | WINDRES=$ac_ct_WINDRES | |
15346 | else | |
15347 | WINDRES="$ac_cv_prog_WINDRES" | |
15348 | fi | |
15349 | ||
15350 | RESCOMP="$WINDRES" | |
15351 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
15352 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
15353 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
15354 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15356 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
15357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15358 | else | |
15359 | if test -n "$DLLTOOL"; then | |
15360 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
15361 | else | |
15362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15363 | for as_dir in $PATH | |
15364 | do | |
15365 | IFS=$as_save_IFS | |
15366 | test -z "$as_dir" && as_dir=. | |
15367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15368 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15369 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
15370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15371 | break 2 | |
15372 | fi | |
15373 | done | |
15374 | done | |
15375 | ||
15376 | fi | |
15377 | fi | |
15378 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
15379 | if test -n "$DLLTOOL"; then | |
15380 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
15381 | echo "${ECHO_T}$DLLTOOL" >&6 | |
15382 | else | |
15383 | echo "$as_me:$LINENO: result: no" >&5 | |
15384 | echo "${ECHO_T}no" >&6 | |
15385 | fi | |
15386 | ||
15387 | fi | |
15388 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
15389 | ac_ct_DLLTOOL=$DLLTOOL | |
15390 | # Extract the first word of "dlltool", so it can be a program name with args. | |
15391 | set dummy dlltool; ac_word=$2 | |
15392 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
15393 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
15394 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
15395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15396 | else | |
15397 | if test -n "$ac_ct_DLLTOOL"; then | |
15398 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
15399 | else | |
15400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15401 | for as_dir in $PATH | |
15402 | do | |
15403 | IFS=$as_save_IFS | |
15404 | test -z "$as_dir" && as_dir=. | |
15405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15406 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15407 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
15408 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15409 | break 2 | |
15410 | fi | |
15411 | done | |
15412 | done | |
15413 | ||
15414 | fi | |
15415 | fi | |
15416 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
15417 | if test -n "$ac_ct_DLLTOOL"; then | |
15418 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
15419 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
15420 | else | |
15421 | echo "$as_me:$LINENO: result: no" >&5 | |
15422 | echo "${ECHO_T}no" >&6 | |
15423 | fi | |
15424 | ||
15425 | DLLTOOL=$ac_ct_DLLTOOL | |
15426 | else | |
15427 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
15428 | fi | |
15429 | ||
15430 | ;; | |
15431 | esac | |
15432 | fi | |
a848cd7e SC |
15433 | |
15434 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
15435 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
15436 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
15437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15438 | else | |
15439 | ||
15440 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
15441 | egrep -s GNU > /dev/null); then | |
15442 | wx_cv_prog_makeisgnu="yes" | |
15443 | else | |
15444 | wx_cv_prog_makeisgnu="no" | |
15445 | fi | |
15446 | ||
15447 | fi | |
15448 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
15449 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
15450 | ||
15451 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
15452 | IF_GNU_MAKE="" | |
15453 | else | |
15454 | IF_GNU_MAKE="#" | |
15455 | fi | |
15456 | ||
15457 | ||
15458 | ||
15459 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
15460 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
15461 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
15462 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
15463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15464 | else | |
15465 | ||
15466 | cat - << EOF > confMake | |
15467 | check : file | |
15468 | cp \$? \$@ | |
15469 | cp \$? final_file | |
15470 | EOF | |
15471 | ||
15472 | if test ! -d sub ; then | |
15473 | mkdir sub | |
15474 | fi | |
15475 | echo dummy > sub/file | |
15476 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
15477 | RESULT=$? | |
15478 | rm -f sub/file check final_file confMake | |
15479 | rmdir sub | |
15480 | if test "$RESULT" = 0; then | |
15481 | wx_cv_prog_makevpath="yes" | |
15482 | else | |
15483 | wx_cv_prog_makevpath="no" | |
15484 | fi | |
15485 | ||
15486 | fi | |
15487 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
15488 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
15489 | ||
15490 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
15491 | { { echo "$as_me:$LINENO: error: | |
15492 | You need a make-utility that is able to use the variable | |
15493 | VPATH correctly. | |
15494 | If your version of make does not support VPATH correctly, | |
15495 | please install GNU-make (possibly as gmake), and start | |
15496 | configure with the following command: | |
15497 | export MAKE=gmake; ./configure for sh-type shells | |
15498 | setenv MAKE gmake; ./configure for csh-type shells | |
15499 | Also please do remember to use gmake in this case every time | |
15500 | you are trying to compile. | |
15501 | " >&5 | |
15502 | echo "$as_me: error: | |
15503 | You need a make-utility that is able to use the variable | |
15504 | VPATH correctly. | |
15505 | If your version of make does not support VPATH correctly, | |
15506 | please install GNU-make (possibly as gmake), and start | |
15507 | configure with the following command: | |
15508 | export MAKE=gmake; ./configure for sh-type shells | |
15509 | setenv MAKE gmake; ./configure for csh-type shells | |
15510 | Also please do remember to use gmake in this case every time | |
15511 | you are trying to compile. | |
15512 | " >&2;} | |
15513 | { (exit 1); exit 1; }; } | |
15514 | fi fi | |
15515 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
15516 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
15517 | LN_S=$as_ln_s | |
15518 | if test "$LN_S" = "ln -s"; then | |
15519 | echo "$as_me:$LINENO: result: yes" >&5 | |
15520 | echo "${ECHO_T}yes" >&6 | |
15521 | else | |
15522 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
15523 | echo "${ECHO_T}no, using $LN_S" >&6 | |
15524 | fi | |
15525 | ||
15526 | ||
bcaab0f9 | 15527 | |
a848cd7e | 15528 | |
2113bc77 | 15529 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 15530 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
15531 | fi |
15532 | ||
4d7ec9f1 DE |
15533 | case "${host}" in |
15534 | powerpc-*-darwin* ) | |
15535 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
15536 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
15537 | cat >conftest.$ac_ext <<_ACEOF | |
15538 | /* confdefs.h. */ | |
15539 | _ACEOF | |
15540 | cat confdefs.h >>conftest.$ac_ext | |
15541 | cat >>conftest.$ac_ext <<_ACEOF | |
15542 | /* end confdefs.h. */ | |
15543 | ||
15544 | int | |
15545 | main () | |
15546 | { | |
15547 | #ifndef __POWERPC__ | |
15548 | choke me for lack of PowerPC | |
15549 | #endif | |
15550 | ||
15551 | ; | |
15552 | return 0; | |
15553 | } | |
15554 | _ACEOF | |
15555 | rm -f conftest.$ac_objext | |
15556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15557 | (eval $ac_compile) 2>conftest.er1 | |
15558 | ac_status=$? | |
15559 | grep -v '^ *+' conftest.er1 >conftest.err | |
15560 | rm -f conftest.er1 | |
15561 | cat conftest.err >&5 | |
15562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15563 | (exit $ac_status); } && | |
ca5c6ac3 | 15564 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15566 | (eval $ac_try) 2>&5 | |
15567 | ac_status=$? | |
15568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15569 | (exit $ac_status); }; } && | |
15570 | { ac_try='test -s conftest.$ac_objext' | |
15571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15572 | (eval $ac_try) 2>&5 | |
15573 | ac_status=$? | |
15574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15575 | (exit $ac_status); }; }; then | |
15576 | echo "$as_me:$LINENO: result: yes" >&5 | |
15577 | echo "${ECHO_T}yes" >&6 | |
15578 | else | |
15579 | echo "$as_me: failed program was:" >&5 | |
15580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15581 | ||
15582 | echo "$as_me:$LINENO: result: no" >&5 | |
15583 | echo "${ECHO_T}no" >&6 | |
15584 | cat >>confdefs.h <<\_ACEOF | |
15585 | #define __POWERPC__ 1 | |
15586 | _ACEOF | |
15587 | ||
15588 | ||
15589 | fi | |
15590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
15591 | ;; |
15592 | esac | |
15593 | ||
15594 | case "${host}" in | |
15595 | *-*-darwin* ) | |
4d7ec9f1 DE |
15596 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
15597 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
15598 | cat >conftest.$ac_ext <<_ACEOF | |
15599 | /* confdefs.h. */ | |
15600 | _ACEOF | |
15601 | cat confdefs.h >>conftest.$ac_ext | |
15602 | cat >>conftest.$ac_ext <<_ACEOF | |
15603 | /* end confdefs.h. */ | |
15604 | #include <CoreFoundation/CFBase.h> | |
15605 | ||
15606 | int | |
15607 | main () | |
15608 | { | |
15609 | ||
15610 | ; | |
15611 | return 0; | |
15612 | } | |
15613 | _ACEOF | |
15614 | rm -f conftest.$ac_objext | |
15615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15616 | (eval $ac_compile) 2>conftest.er1 | |
15617 | ac_status=$? | |
15618 | grep -v '^ *+' conftest.er1 >conftest.err | |
15619 | rm -f conftest.er1 | |
15620 | cat conftest.err >&5 | |
15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15622 | (exit $ac_status); } && | |
ca5c6ac3 | 15623 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15625 | (eval $ac_try) 2>&5 | |
15626 | ac_status=$? | |
15627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15628 | (exit $ac_status); }; } && | |
15629 | { ac_try='test -s conftest.$ac_objext' | |
15630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15631 | (eval $ac_try) 2>&5 | |
15632 | ac_status=$? | |
15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15634 | (exit $ac_status); }; }; then | |
15635 | echo "$as_me:$LINENO: result: yes" >&5 | |
15636 | echo "${ECHO_T}yes" >&6 | |
15637 | else | |
15638 | echo "$as_me: failed program was:" >&5 | |
15639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15640 | ||
15641 | echo "$as_me:$LINENO: result: no" >&5 | |
15642 | echo "${ECHO_T}no" >&6 | |
15643 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
15644 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
15645 | cat >conftest.$ac_ext <<_ACEOF | |
15646 | /* confdefs.h. */ | |
15647 | _ACEOF | |
15648 | cat confdefs.h >>conftest.$ac_ext | |
15649 | cat >>conftest.$ac_ext <<_ACEOF | |
15650 | /* end confdefs.h. */ | |
15651 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
15652 | #include <CoreFoundation/CFBase.h> | |
15653 | ||
15654 | int | |
15655 | main () | |
15656 | { | |
15657 | ||
15658 | ; | |
15659 | return 0; | |
15660 | } | |
15661 | _ACEOF | |
15662 | rm -f conftest.$ac_objext | |
15663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15664 | (eval $ac_compile) 2>conftest.er1 | |
15665 | ac_status=$? | |
15666 | grep -v '^ *+' conftest.er1 >conftest.err | |
15667 | rm -f conftest.er1 | |
15668 | cat conftest.err >&5 | |
15669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15670 | (exit $ac_status); } && | |
ca5c6ac3 | 15671 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15673 | (eval $ac_try) 2>&5 | |
15674 | ac_status=$? | |
15675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15676 | (exit $ac_status); }; } && | |
15677 | { ac_try='test -s conftest.$ac_objext' | |
15678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15679 | (eval $ac_try) 2>&5 | |
15680 | ac_status=$? | |
15681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15682 | (exit $ac_status); }; }; then | |
15683 | echo "$as_me:$LINENO: result: yes" >&5 | |
15684 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15685 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15686 | else |
15687 | echo "$as_me: failed program was:" >&5 | |
15688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15689 | ||
15690 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15691 | See \`config.log' for more details." >&5 | |
15692 | echo "$as_me: error: no. CoreFoundation not available. | |
15693 | See \`config.log' for more details." >&2;} | |
15694 | { (exit 1); exit 1; }; } | |
15695 | ||
15696 | fi | |
15697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15698 | ||
15699 | ||
15700 | fi | |
15701 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15702 | ;; | |
15703 | esac | |
15704 | ||
a848cd7e SC |
15705 | case "${host}" in |
15706 | *-pc-os2_emx | *-pc-os2-emx ) | |
6ba87b06 SN |
15707 | ac_ext=c |
15708 | ac_cpp='$CPP $CPPFLAGS' | |
15709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15712 | ||
15713 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
a848cd7e SC |
15714 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
15715 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15716 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15718 | else | |
15719 | ac_check_lib_save_LIBS=$LIBS | |
15720 | LIBS="-lcExt $LIBS" | |
15721 | cat >conftest.$ac_ext <<_ACEOF | |
15722 | /* confdefs.h. */ | |
15723 | _ACEOF | |
15724 | cat confdefs.h >>conftest.$ac_ext | |
15725 | cat >>conftest.$ac_ext <<_ACEOF | |
15726 | /* end confdefs.h. */ | |
15727 | ||
15728 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15729 | #ifdef __cplusplus | |
15730 | extern "C" | |
15731 | #endif | |
15732 | /* We use char because int might match the return type of a gcc2 | |
15733 | builtin and then its argument prototype would still apply. */ | |
15734 | char drand48 (); | |
15735 | int | |
15736 | main () | |
15737 | { | |
15738 | drand48 (); | |
15739 | ; | |
15740 | return 0; | |
15741 | } | |
15742 | _ACEOF | |
15743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15745 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15746 | ac_status=$? |
ac1cb8d3 VS |
15747 | grep -v '^ *+' conftest.er1 >conftest.err |
15748 | rm -f conftest.er1 | |
15749 | cat conftest.err >&5 | |
a848cd7e SC |
15750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15751 | (exit $ac_status); } && | |
ca5c6ac3 | 15752 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15754 | (eval $ac_try) 2>&5 | |
15755 | ac_status=$? | |
15756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15757 | (exit $ac_status); }; } && | |
15758 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15760 | (eval $ac_try) 2>&5 | |
15761 | ac_status=$? | |
15762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15763 | (exit $ac_status); }; }; then | |
15764 | ac_cv_lib_cExt_drand48=yes | |
15765 | else | |
15766 | echo "$as_me: failed program was:" >&5 | |
15767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15768 | ||
15769 | ac_cv_lib_cExt_drand48=no | |
15770 | fi | |
ac1cb8d3 VS |
15771 | rm -f conftest.err conftest.$ac_objext \ |
15772 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15773 | LIBS=$ac_check_lib_save_LIBS |
15774 | fi | |
15775 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15776 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15777 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15778 | LIBS="$LIBS -lcExt" | |
15779 | fi | |
15780 | ||
15781 | else | |
15782 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15783 | fi | |
69120ee4 VZ |
15784 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15785 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15786 | if test "${wx_cv_gccversion+set}" = set; then |
15787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15788 | else | |
15789 | ||
391a765e VS |
15790 | if test "$cross_compiling" = yes; then |
15791 | wx_cv_gccversion="EMX2" | |
15792 | ||
15793 | else | |
15794 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15795 | /* confdefs.h. */ |
15796 | _ACEOF | |
15797 | cat confdefs.h >>conftest.$ac_ext | |
15798 | cat >>conftest.$ac_ext <<_ACEOF | |
15799 | /* end confdefs.h. */ | |
15800 | ||
391a765e | 15801 | #include <stdio.h> |
a848cd7e | 15802 | |
391a765e VS |
15803 | int main() |
15804 | { | |
15805 | FILE *f=fopen("conftestval", "w"); | |
15806 | if (!f) exit(1); | |
15807 | fprintf(f, | |
a848cd7e | 15808 | #if (__GNUC__ < 3) |
391a765e VS |
15809 | "EMX2" |
15810 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15811 | "EMX3" | |
15812 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15813 | "Innotek5" | |
15814 | #else | |
15815 | "Innotek6" | |
a848cd7e | 15816 | #endif |
5039a2df | 15817 | ); |
391a765e VS |
15818 | exit(0); |
15819 | } | |
a848cd7e | 15820 | |
a848cd7e | 15821 | _ACEOF |
391a765e VS |
15822 | rm -f conftest$ac_exeext |
15823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15824 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15825 | ac_status=$? |
15826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15827 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15829 | (eval $ac_try) 2>&5 | |
15830 | ac_status=$? | |
15831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15832 | (exit $ac_status); }; }; then | |
391a765e | 15833 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15834 | else |
391a765e VS |
15835 | echo "$as_me: program exited with status $ac_status" >&5 |
15836 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15837 | sed 's/^/| /' conftest.$ac_ext >&5 |
15838 | ||
391a765e VS |
15839 | ( exit $ac_status ) |
15840 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15841 | fi |
391a765e | 15842 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15843 | fi |
a848cd7e SC |
15844 | |
15845 | fi | |
15846 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15847 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
6ba87b06 SN |
15848 | ac_ext=cc |
15849 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15850 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15851 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15852 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15853 | ||
391a765e | 15854 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15855 | LIBS="$LIBS -lstdcpp" |
15856 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15857 | else | |
391a765e | 15858 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15859 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15860 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15861 | else | |
15862 | LIBS="$LIBS -lstdc++" | |
15863 | fi | |
15864 | fi | |
94acd38e DE |
15865 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15866 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15867 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15868 | wxUSE_OMF=yes | |
2da0c077 | 15869 | enable_omf=yes |
a848cd7e SC |
15870 | fi |
15871 | ;; | |
15872 | *) | |
15873 | ||
95986553 | 15874 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15875 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15876 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15878 | else | |
15879 | ||
15880 | cat >conftest.$ac_ext <<_ACEOF | |
15881 | /* confdefs.h. */ | |
15882 | _ACEOF | |
15883 | cat confdefs.h >>conftest.$ac_ext | |
15884 | cat >>conftest.$ac_ext <<_ACEOF | |
15885 | /* end confdefs.h. */ | |
15886 | ||
15887 | #include <string.h> | |
15888 | ||
15889 | int | |
15890 | main () | |
15891 | { | |
15892 | ||
15893 | strcasecmp("foo", "bar"); | |
15894 | ||
15895 | ; | |
15896 | return 0; | |
15897 | } | |
15898 | _ACEOF | |
15899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15901 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15902 | ac_status=$? |
ac1cb8d3 VS |
15903 | grep -v '^ *+' conftest.er1 >conftest.err |
15904 | rm -f conftest.er1 | |
15905 | cat conftest.err >&5 | |
a848cd7e SC |
15906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15907 | (exit $ac_status); } && | |
ca5c6ac3 | 15908 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15910 | (eval $ac_try) 2>&5 | |
15911 | ac_status=$? | |
15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15913 | (exit $ac_status); }; } && | |
15914 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15916 | (eval $ac_try) 2>&5 | |
15917 | ac_status=$? | |
15918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15919 | (exit $ac_status); }; }; then | |
15920 | ac_cv_string_strcasecmp=yes | |
15921 | else | |
15922 | echo "$as_me: failed program was:" >&5 | |
15923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15924 | ||
15925 | ac_cv_string_strcasecmp=no | |
15926 | ||
15927 | fi | |
ac1cb8d3 VS |
15928 | rm -f conftest.err conftest.$ac_objext \ |
15929 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15930 | |
15931 | fi | |
15932 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15933 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15934 | ||
15935 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15936 | cat >>confdefs.h <<\_ACEOF | |
15937 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15938 | _ACEOF | |
15939 | ||
15940 | else | |
15941 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15942 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15943 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15945 | else | |
15946 | ||
15947 | cat >conftest.$ac_ext <<_ACEOF | |
15948 | /* confdefs.h. */ | |
15949 | _ACEOF | |
15950 | cat confdefs.h >>conftest.$ac_ext | |
15951 | cat >>conftest.$ac_ext <<_ACEOF | |
15952 | /* end confdefs.h. */ | |
15953 | ||
15954 | #include <strings.h> | |
15955 | ||
15956 | int | |
15957 | main () | |
15958 | { | |
15959 | ||
15960 | strcasecmp("foo", "bar"); | |
15961 | ||
15962 | ; | |
15963 | return 0; | |
15964 | } | |
15965 | _ACEOF | |
15966 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15968 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15969 | ac_status=$? |
ac1cb8d3 VS |
15970 | grep -v '^ *+' conftest.er1 >conftest.err |
15971 | rm -f conftest.er1 | |
15972 | cat conftest.err >&5 | |
a848cd7e SC |
15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15974 | (exit $ac_status); } && | |
ca5c6ac3 | 15975 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15977 | (eval $ac_try) 2>&5 | |
15978 | ac_status=$? | |
15979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15980 | (exit $ac_status); }; } && | |
15981 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15983 | (eval $ac_try) 2>&5 | |
15984 | ac_status=$? | |
15985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15986 | (exit $ac_status); }; }; then | |
15987 | ac_cv_strings_strcasecmp=yes | |
15988 | else | |
15989 | echo "$as_me: failed program was:" >&5 | |
15990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15991 | ||
15992 | ac_cv_strings_strcasecmp=no | |
15993 | ||
15994 | fi | |
ac1cb8d3 VS |
15995 | rm -f conftest.err conftest.$ac_objext \ |
15996 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15997 | |
15998 | fi | |
15999 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
16000 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
16001 | ||
0c3c69fc | 16002 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
16003 | cat >>confdefs.h <<\_ACEOF |
16004 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
16005 | _ACEOF | |
16006 | ||
16007 | else | |
16008 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
16009 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
16010 | { (exit 1); exit 1; }; } | |
16011 | fi | |
16012 | fi | |
16013 | ||
a848cd7e SC |
16014 | ;; |
16015 | esac | |
16016 | ||
16017 | ||
5d7b7554 VZ |
16018 | ac_ext=cc |
16019 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16020 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16021 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16022 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16023 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
16024 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
16025 | if test -z "$CXXCPP"; then | |
16026 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
16027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16028 | else | |
16029 | # Double quotes because CXXCPP needs to be expanded | |
16030 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
16031 | do | |
16032 | ac_preproc_ok=false | |
16033 | for ac_cxx_preproc_warn_flag in '' yes | |
16034 | do | |
16035 | # Use a header file that comes with gcc, so configuring glibc | |
16036 | # with a fresh cross-compiler works. | |
16037 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16038 | # <limits.h> exists even on freestanding compilers. | |
16039 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16040 | # not just through cpp. "Syntax error" is here to catch this case. | |
16041 | cat >conftest.$ac_ext <<_ACEOF | |
16042 | /* confdefs.h. */ | |
16043 | _ACEOF | |
16044 | cat confdefs.h >>conftest.$ac_ext | |
16045 | cat >>conftest.$ac_ext <<_ACEOF | |
16046 | /* end confdefs.h. */ | |
16047 | #ifdef __STDC__ | |
16048 | # include <limits.h> | |
16049 | #else | |
16050 | # include <assert.h> | |
16051 | #endif | |
16052 | Syntax error | |
16053 | _ACEOF | |
16054 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16055 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16056 | ac_status=$? | |
16057 | grep -v '^ *+' conftest.er1 >conftest.err | |
16058 | rm -f conftest.er1 | |
16059 | cat conftest.err >&5 | |
16060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16061 | (exit $ac_status); } >/dev/null; then | |
16062 | if test -s conftest.err; then | |
16063 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16064 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16065 | else | |
16066 | ac_cpp_err= | |
16067 | fi | |
16068 | else | |
16069 | ac_cpp_err=yes | |
16070 | fi | |
16071 | if test -z "$ac_cpp_err"; then | |
16072 | : | |
16073 | else | |
16074 | echo "$as_me: failed program was:" >&5 | |
16075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16076 | ||
16077 | # Broken: fails on valid input. | |
16078 | continue | |
16079 | fi | |
16080 | rm -f conftest.err conftest.$ac_ext | |
16081 | ||
16082 | # OK, works on sane cases. Now check whether non-existent headers | |
16083 | # can be detected and how. | |
16084 | cat >conftest.$ac_ext <<_ACEOF | |
16085 | /* confdefs.h. */ | |
16086 | _ACEOF | |
16087 | cat confdefs.h >>conftest.$ac_ext | |
16088 | cat >>conftest.$ac_ext <<_ACEOF | |
16089 | /* end confdefs.h. */ | |
16090 | #include <ac_nonexistent.h> | |
16091 | _ACEOF | |
16092 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16093 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16094 | ac_status=$? | |
16095 | grep -v '^ *+' conftest.er1 >conftest.err | |
16096 | rm -f conftest.er1 | |
16097 | cat conftest.err >&5 | |
16098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16099 | (exit $ac_status); } >/dev/null; then | |
16100 | if test -s conftest.err; then | |
16101 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16102 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16103 | else | |
16104 | ac_cpp_err= | |
16105 | fi | |
16106 | else | |
16107 | ac_cpp_err=yes | |
16108 | fi | |
16109 | if test -z "$ac_cpp_err"; then | |
16110 | # Broken: success on invalid input. | |
16111 | continue | |
16112 | else | |
16113 | echo "$as_me: failed program was:" >&5 | |
16114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16115 | ||
16116 | # Passes both tests. | |
16117 | ac_preproc_ok=: | |
16118 | break | |
16119 | fi | |
16120 | rm -f conftest.err conftest.$ac_ext | |
16121 | ||
16122 | done | |
16123 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16124 | rm -f conftest.err conftest.$ac_ext | |
16125 | if $ac_preproc_ok; then | |
16126 | break | |
16127 | fi | |
16128 | ||
16129 | done | |
16130 | ac_cv_prog_CXXCPP=$CXXCPP | |
16131 | ||
16132 | fi | |
16133 | CXXCPP=$ac_cv_prog_CXXCPP | |
16134 | else | |
16135 | ac_cv_prog_CXXCPP=$CXXCPP | |
16136 | fi | |
16137 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
16138 | echo "${ECHO_T}$CXXCPP" >&6 | |
16139 | ac_preproc_ok=false | |
16140 | for ac_cxx_preproc_warn_flag in '' yes | |
16141 | do | |
16142 | # Use a header file that comes with gcc, so configuring glibc | |
16143 | # with a fresh cross-compiler works. | |
16144 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16145 | # <limits.h> exists even on freestanding compilers. | |
16146 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16147 | # not just through cpp. "Syntax error" is here to catch this case. | |
16148 | cat >conftest.$ac_ext <<_ACEOF | |
16149 | /* confdefs.h. */ | |
16150 | _ACEOF | |
16151 | cat confdefs.h >>conftest.$ac_ext | |
16152 | cat >>conftest.$ac_ext <<_ACEOF | |
16153 | /* end confdefs.h. */ | |
16154 | #ifdef __STDC__ | |
16155 | # include <limits.h> | |
16156 | #else | |
16157 | # include <assert.h> | |
16158 | #endif | |
16159 | Syntax error | |
16160 | _ACEOF | |
16161 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16162 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16163 | ac_status=$? | |
16164 | grep -v '^ *+' conftest.er1 >conftest.err | |
16165 | rm -f conftest.er1 | |
16166 | cat conftest.err >&5 | |
16167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16168 | (exit $ac_status); } >/dev/null; then | |
16169 | if test -s conftest.err; then | |
16170 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16171 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16172 | else | |
16173 | ac_cpp_err= | |
16174 | fi | |
16175 | else | |
16176 | ac_cpp_err=yes | |
16177 | fi | |
16178 | if test -z "$ac_cpp_err"; then | |
16179 | : | |
16180 | else | |
16181 | echo "$as_me: failed program was:" >&5 | |
16182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16183 | ||
16184 | # Broken: fails on valid input. | |
16185 | continue | |
16186 | fi | |
16187 | rm -f conftest.err conftest.$ac_ext | |
16188 | ||
16189 | # OK, works on sane cases. Now check whether non-existent headers | |
16190 | # can be detected and how. | |
16191 | cat >conftest.$ac_ext <<_ACEOF | |
16192 | /* confdefs.h. */ | |
16193 | _ACEOF | |
16194 | cat confdefs.h >>conftest.$ac_ext | |
16195 | cat >>conftest.$ac_ext <<_ACEOF | |
16196 | /* end confdefs.h. */ | |
16197 | #include <ac_nonexistent.h> | |
16198 | _ACEOF | |
16199 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16200 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16201 | ac_status=$? | |
16202 | grep -v '^ *+' conftest.er1 >conftest.err | |
16203 | rm -f conftest.er1 | |
16204 | cat conftest.err >&5 | |
16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16206 | (exit $ac_status); } >/dev/null; then | |
16207 | if test -s conftest.err; then | |
16208 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16209 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
16210 | else | |
16211 | ac_cpp_err= | |
16212 | fi | |
16213 | else | |
16214 | ac_cpp_err=yes | |
16215 | fi | |
16216 | if test -z "$ac_cpp_err"; then | |
16217 | # Broken: success on invalid input. | |
16218 | continue | |
16219 | else | |
16220 | echo "$as_me: failed program was:" >&5 | |
16221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16222 | ||
16223 | # Passes both tests. | |
16224 | ac_preproc_ok=: | |
16225 | break | |
16226 | fi | |
16227 | rm -f conftest.err conftest.$ac_ext | |
16228 | ||
16229 | done | |
16230 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16231 | rm -f conftest.err conftest.$ac_ext | |
16232 | if $ac_preproc_ok; then | |
16233 | : | |
16234 | else | |
16235 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16236 | See \`config.log' for more details." >&5 | |
16237 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
16238 | See \`config.log' for more details." >&2;} | |
16239 | { (exit 1); exit 1; }; } | |
16240 | fi | |
16241 | ||
16242 | ac_ext=cc | |
16243 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16244 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16245 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16246 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16247 | ||
16248 | ||
a848cd7e SC |
16249 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
16250 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
16251 | if test "${ac_cv_header_stdc+set}" = set; then | |
16252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16253 | else | |
16254 | cat >conftest.$ac_ext <<_ACEOF | |
16255 | /* confdefs.h. */ | |
16256 | _ACEOF | |
16257 | cat confdefs.h >>conftest.$ac_ext | |
16258 | cat >>conftest.$ac_ext <<_ACEOF | |
16259 | /* end confdefs.h. */ | |
16260 | #include <stdlib.h> | |
16261 | #include <stdarg.h> | |
16262 | #include <string.h> | |
16263 | #include <float.h> | |
16264 | ||
16265 | int | |
16266 | main () | |
16267 | { | |
16268 | ||
16269 | ; | |
16270 | return 0; | |
16271 | } | |
16272 | _ACEOF | |
16273 | rm -f conftest.$ac_objext | |
16274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16275 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16276 | ac_status=$? |
ac1cb8d3 VS |
16277 | grep -v '^ *+' conftest.er1 >conftest.err |
16278 | rm -f conftest.er1 | |
16279 | cat conftest.err >&5 | |
a848cd7e SC |
16280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16281 | (exit $ac_status); } && | |
ca5c6ac3 | 16282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16284 | (eval $ac_try) 2>&5 | |
16285 | ac_status=$? | |
16286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16287 | (exit $ac_status); }; } && | |
16288 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16290 | (eval $ac_try) 2>&5 | |
16291 | ac_status=$? | |
16292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16293 | (exit $ac_status); }; }; then | |
16294 | ac_cv_header_stdc=yes | |
16295 | else | |
16296 | echo "$as_me: failed program was:" >&5 | |
16297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16298 | ||
16299 | ac_cv_header_stdc=no | |
16300 | fi | |
ac1cb8d3 | 16301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16302 | |
16303 | if test $ac_cv_header_stdc = yes; then | |
16304 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16305 | cat >conftest.$ac_ext <<_ACEOF | |
16306 | /* confdefs.h. */ | |
16307 | _ACEOF | |
16308 | cat confdefs.h >>conftest.$ac_ext | |
16309 | cat >>conftest.$ac_ext <<_ACEOF | |
16310 | /* end confdefs.h. */ | |
16311 | #include <string.h> | |
16312 | ||
16313 | _ACEOF | |
16314 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16315 | $EGREP "memchr" >/dev/null 2>&1; then | |
16316 | : | |
16317 | else | |
16318 | ac_cv_header_stdc=no | |
16319 | fi | |
16320 | rm -f conftest* | |
16321 | ||
16322 | fi | |
16323 | ||
16324 | if test $ac_cv_header_stdc = yes; then | |
16325 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16326 | cat >conftest.$ac_ext <<_ACEOF | |
16327 | /* confdefs.h. */ | |
16328 | _ACEOF | |
16329 | cat confdefs.h >>conftest.$ac_ext | |
16330 | cat >>conftest.$ac_ext <<_ACEOF | |
16331 | /* end confdefs.h. */ | |
16332 | #include <stdlib.h> | |
16333 | ||
16334 | _ACEOF | |
16335 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16336 | $EGREP "free" >/dev/null 2>&1; then | |
16337 | : | |
16338 | else | |
16339 | ac_cv_header_stdc=no | |
16340 | fi | |
16341 | rm -f conftest* | |
16342 | ||
16343 | fi | |
16344 | ||
16345 | if test $ac_cv_header_stdc = yes; then | |
16346 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16347 | if test "$cross_compiling" = yes; then | |
16348 | : | |
16349 | else | |
16350 | cat >conftest.$ac_ext <<_ACEOF | |
16351 | /* confdefs.h. */ | |
16352 | _ACEOF | |
16353 | cat confdefs.h >>conftest.$ac_ext | |
16354 | cat >>conftest.$ac_ext <<_ACEOF | |
16355 | /* end confdefs.h. */ | |
16356 | #include <ctype.h> | |
16357 | #if ((' ' & 0x0FF) == 0x020) | |
16358 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16359 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16360 | #else | |
16361 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
16362 | (('a' <= (c) && (c) <= 'i') \ |
16363 | || ('j' <= (c) && (c) <= 'r') \ | |
16364 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
16365 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
16366 | #endif | |
16367 | ||
16368 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16369 | int | |
16370 | main () | |
16371 | { | |
16372 | int i; | |
16373 | for (i = 0; i < 256; i++) | |
16374 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 16375 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
16376 | exit(2); |
16377 | exit (0); | |
16378 | } | |
16379 | _ACEOF | |
16380 | rm -f conftest$ac_exeext | |
16381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16382 | (eval $ac_link) 2>&5 | |
16383 | ac_status=$? | |
16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16385 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16387 | (eval $ac_try) 2>&5 | |
16388 | ac_status=$? | |
16389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16390 | (exit $ac_status); }; }; then | |
16391 | : | |
16392 | else | |
16393 | echo "$as_me: program exited with status $ac_status" >&5 | |
16394 | echo "$as_me: failed program was:" >&5 | |
16395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16396 | ||
16397 | ( exit $ac_status ) | |
16398 | ac_cv_header_stdc=no | |
16399 | fi | |
ac1cb8d3 | 16400 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16401 | fi |
16402 | fi | |
16403 | fi | |
16404 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
16405 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
16406 | if test $ac_cv_header_stdc = yes; then | |
16407 | ||
16408 | cat >>confdefs.h <<\_ACEOF | |
16409 | #define STDC_HEADERS 1 | |
16410 | _ACEOF | |
16411 | ||
16412 | fi | |
16413 | ||
16414 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
16415 | ||
16416 | ||
16417 | ||
16418 | ||
16419 | ||
16420 | ||
16421 | ||
16422 | ||
16423 | ||
16424 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 16425 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
16426 | do |
16427 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16428 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16429 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16430 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16432 | else | |
16433 | cat >conftest.$ac_ext <<_ACEOF | |
16434 | /* confdefs.h. */ | |
16435 | _ACEOF | |
16436 | cat confdefs.h >>conftest.$ac_ext | |
16437 | cat >>conftest.$ac_ext <<_ACEOF | |
16438 | /* end confdefs.h. */ | |
16439 | $ac_includes_default | |
16440 | ||
16441 | #include <$ac_header> | |
16442 | _ACEOF | |
16443 | rm -f conftest.$ac_objext | |
16444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16445 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16446 | ac_status=$? |
ac1cb8d3 VS |
16447 | grep -v '^ *+' conftest.er1 >conftest.err |
16448 | rm -f conftest.er1 | |
16449 | cat conftest.err >&5 | |
a848cd7e SC |
16450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16451 | (exit $ac_status); } && | |
ca5c6ac3 | 16452 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16454 | (eval $ac_try) 2>&5 | |
16455 | ac_status=$? | |
16456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16457 | (exit $ac_status); }; } && | |
16458 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16460 | (eval $ac_try) 2>&5 | |
16461 | ac_status=$? | |
16462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16463 | (exit $ac_status); }; }; then | |
16464 | eval "$as_ac_Header=yes" | |
16465 | else | |
16466 | echo "$as_me: failed program was:" >&5 | |
16467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16468 | ||
16469 | eval "$as_ac_Header=no" | |
16470 | fi | |
ac1cb8d3 | 16471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16472 | fi |
16473 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16474 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16475 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16476 | cat >>confdefs.h <<_ACEOF | |
16477 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16478 | _ACEOF | |
16479 | ||
16480 | fi | |
16481 | ||
16482 | done | |
16483 | ||
16484 | ||
16485 | ||
16486 | for ac_header in stdlib.h | |
16487 | do | |
16488 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16489 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16490 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16491 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16494 | fi | |
16495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16496 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16497 | else | |
16498 | # Is the header compilable? | |
16499 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16500 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16501 | cat >conftest.$ac_ext <<_ACEOF | |
16502 | /* confdefs.h. */ | |
16503 | _ACEOF | |
16504 | cat confdefs.h >>conftest.$ac_ext | |
16505 | cat >>conftest.$ac_ext <<_ACEOF | |
16506 | /* end confdefs.h. */ | |
16507 | $ac_includes_default | |
16508 | #include <$ac_header> | |
16509 | _ACEOF | |
16510 | rm -f conftest.$ac_objext | |
16511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16512 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16513 | ac_status=$? |
ac1cb8d3 VS |
16514 | grep -v '^ *+' conftest.er1 >conftest.err |
16515 | rm -f conftest.er1 | |
16516 | cat conftest.err >&5 | |
a848cd7e SC |
16517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16518 | (exit $ac_status); } && | |
ca5c6ac3 | 16519 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16521 | (eval $ac_try) 2>&5 | |
16522 | ac_status=$? | |
16523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16524 | (exit $ac_status); }; } && | |
16525 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16527 | (eval $ac_try) 2>&5 | |
16528 | ac_status=$? | |
16529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16530 | (exit $ac_status); }; }; then | |
16531 | ac_header_compiler=yes | |
16532 | else | |
16533 | echo "$as_me: failed program was:" >&5 | |
16534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16535 | ||
16536 | ac_header_compiler=no | |
16537 | fi | |
ac1cb8d3 | 16538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16539 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16540 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16541 | ||
16542 | # Is the header present? | |
16543 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16544 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16545 | cat >conftest.$ac_ext <<_ACEOF | |
16546 | /* confdefs.h. */ | |
16547 | _ACEOF | |
16548 | cat confdefs.h >>conftest.$ac_ext | |
16549 | cat >>conftest.$ac_ext <<_ACEOF | |
16550 | /* end confdefs.h. */ | |
16551 | #include <$ac_header> | |
16552 | _ACEOF | |
16553 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16554 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16555 | ac_status=$? | |
16556 | grep -v '^ *+' conftest.er1 >conftest.err | |
16557 | rm -f conftest.er1 | |
16558 | cat conftest.err >&5 | |
16559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16560 | (exit $ac_status); } >/dev/null; then | |
16561 | if test -s conftest.err; then | |
5d7b7554 VZ |
16562 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16563 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16564 | else |
16565 | ac_cpp_err= | |
16566 | fi | |
16567 | else | |
16568 | ac_cpp_err=yes | |
16569 | fi | |
16570 | if test -z "$ac_cpp_err"; then | |
16571 | ac_header_preproc=yes | |
16572 | else | |
16573 | echo "$as_me: failed program was:" >&5 | |
16574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16575 | ||
16576 | ac_header_preproc=no | |
16577 | fi | |
16578 | rm -f conftest.err conftest.$ac_ext | |
16579 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16580 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16581 | ||
16582 | # So? What about this header? | |
5d7b7554 | 16583 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16584 | yes:no: ) |
a848cd7e SC |
16585 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16586 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16588 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16589 | ac_header_preproc=yes | |
a848cd7e | 16590 | ;; |
ac1cb8d3 | 16591 | no:yes:* ) |
a848cd7e SC |
16592 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16593 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16594 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16595 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16596 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16597 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16598 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16599 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16600 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16601 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16602 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16603 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16604 | ( |
16605 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16606 | ## ----------------------------------------- ## |
16607 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16608 | ## ----------------------------------------- ## | |
a848cd7e SC |
16609 | _ASBOX |
16610 | ) | | |
16611 | sed "s/^/$as_me: WARNING: /" >&2 | |
16612 | ;; | |
16613 | esac | |
16614 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16618 | else | |
ac1cb8d3 | 16619 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16620 | fi |
16621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16622 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16623 | ||
16624 | fi | |
16625 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16626 | cat >>confdefs.h <<_ACEOF | |
16627 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16628 | _ACEOF | |
16629 | ||
16630 | fi | |
16631 | ||
16632 | done | |
16633 | ||
16634 | ||
16635 | for ac_header in malloc.h | |
16636 | do | |
16637 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16638 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16639 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16643 | fi | |
16644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16645 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16646 | else | |
16647 | # Is the header compilable? | |
16648 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16649 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16650 | cat >conftest.$ac_ext <<_ACEOF | |
16651 | /* confdefs.h. */ | |
16652 | _ACEOF | |
16653 | cat confdefs.h >>conftest.$ac_ext | |
16654 | cat >>conftest.$ac_ext <<_ACEOF | |
16655 | /* end confdefs.h. */ | |
16656 | $ac_includes_default | |
16657 | #include <$ac_header> | |
16658 | _ACEOF | |
16659 | rm -f conftest.$ac_objext | |
16660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16661 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16662 | ac_status=$? |
ac1cb8d3 VS |
16663 | grep -v '^ *+' conftest.er1 >conftest.err |
16664 | rm -f conftest.er1 | |
16665 | cat conftest.err >&5 | |
a848cd7e SC |
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16667 | (exit $ac_status); } && | |
ca5c6ac3 | 16668 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16670 | (eval $ac_try) 2>&5 | |
16671 | ac_status=$? | |
16672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16673 | (exit $ac_status); }; } && | |
16674 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16676 | (eval $ac_try) 2>&5 | |
16677 | ac_status=$? | |
16678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16679 | (exit $ac_status); }; }; then | |
16680 | ac_header_compiler=yes | |
16681 | else | |
16682 | echo "$as_me: failed program was:" >&5 | |
16683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16684 | ||
16685 | ac_header_compiler=no | |
16686 | fi | |
ac1cb8d3 | 16687 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16688 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16689 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16690 | ||
16691 | # Is the header present? | |
16692 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16693 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16694 | cat >conftest.$ac_ext <<_ACEOF | |
16695 | /* confdefs.h. */ | |
16696 | _ACEOF | |
16697 | cat confdefs.h >>conftest.$ac_ext | |
16698 | cat >>conftest.$ac_ext <<_ACEOF | |
16699 | /* end confdefs.h. */ | |
16700 | #include <$ac_header> | |
16701 | _ACEOF | |
16702 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16703 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16704 | ac_status=$? | |
16705 | grep -v '^ *+' conftest.er1 >conftest.err | |
16706 | rm -f conftest.er1 | |
16707 | cat conftest.err >&5 | |
16708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16709 | (exit $ac_status); } >/dev/null; then | |
16710 | if test -s conftest.err; then | |
5d7b7554 VZ |
16711 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16712 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16713 | else |
16714 | ac_cpp_err= | |
16715 | fi | |
16716 | else | |
16717 | ac_cpp_err=yes | |
16718 | fi | |
16719 | if test -z "$ac_cpp_err"; then | |
16720 | ac_header_preproc=yes | |
16721 | else | |
16722 | echo "$as_me: failed program was:" >&5 | |
16723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16724 | ||
16725 | ac_header_preproc=no | |
16726 | fi | |
16727 | rm -f conftest.err conftest.$ac_ext | |
16728 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16729 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16730 | ||
16731 | # So? What about this header? | |
5d7b7554 | 16732 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16733 | yes:no: ) |
a848cd7e SC |
16734 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16735 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16736 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16737 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16738 | ac_header_preproc=yes | |
a848cd7e | 16739 | ;; |
ac1cb8d3 | 16740 | no:yes:* ) |
a848cd7e SC |
16741 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16742 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16743 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16744 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16745 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16746 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16747 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16748 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16749 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16750 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16751 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16752 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16753 | ( |
16754 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16755 | ## ----------------------------------------- ## |
16756 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16757 | ## ----------------------------------------- ## | |
a848cd7e SC |
16758 | _ASBOX |
16759 | ) | | |
16760 | sed "s/^/$as_me: WARNING: /" >&2 | |
16761 | ;; | |
16762 | esac | |
16763 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16764 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16765 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16767 | else | |
ac1cb8d3 | 16768 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16769 | fi |
16770 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16771 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16772 | ||
16773 | fi | |
16774 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16775 | cat >>confdefs.h <<_ACEOF | |
16776 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16777 | _ACEOF | |
16778 | ||
16779 | fi | |
16780 | ||
16781 | done | |
16782 | ||
16783 | ||
16784 | for ac_header in unistd.h | |
16785 | do | |
16786 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16788 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16789 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16790 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16792 | fi | |
16793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16795 | else | |
16796 | # Is the header compilable? | |
16797 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16798 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16799 | cat >conftest.$ac_ext <<_ACEOF | |
16800 | /* confdefs.h. */ | |
16801 | _ACEOF | |
16802 | cat confdefs.h >>conftest.$ac_ext | |
16803 | cat >>conftest.$ac_ext <<_ACEOF | |
16804 | /* end confdefs.h. */ | |
16805 | $ac_includes_default | |
16806 | #include <$ac_header> | |
16807 | _ACEOF | |
16808 | rm -f conftest.$ac_objext | |
16809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16810 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16811 | ac_status=$? |
ac1cb8d3 VS |
16812 | grep -v '^ *+' conftest.er1 >conftest.err |
16813 | rm -f conftest.er1 | |
16814 | cat conftest.err >&5 | |
a848cd7e SC |
16815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16816 | (exit $ac_status); } && | |
ca5c6ac3 | 16817 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16819 | (eval $ac_try) 2>&5 | |
16820 | ac_status=$? | |
16821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16822 | (exit $ac_status); }; } && | |
16823 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16825 | (eval $ac_try) 2>&5 | |
16826 | ac_status=$? | |
16827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16828 | (exit $ac_status); }; }; then | |
16829 | ac_header_compiler=yes | |
16830 | else | |
16831 | echo "$as_me: failed program was:" >&5 | |
16832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16833 | ||
16834 | ac_header_compiler=no | |
16835 | fi | |
ac1cb8d3 | 16836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16837 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16838 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16839 | ||
16840 | # Is the header present? | |
16841 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16842 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16843 | cat >conftest.$ac_ext <<_ACEOF | |
16844 | /* confdefs.h. */ | |
16845 | _ACEOF | |
16846 | cat confdefs.h >>conftest.$ac_ext | |
16847 | cat >>conftest.$ac_ext <<_ACEOF | |
16848 | /* end confdefs.h. */ | |
16849 | #include <$ac_header> | |
16850 | _ACEOF | |
16851 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16852 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16853 | ac_status=$? | |
16854 | grep -v '^ *+' conftest.er1 >conftest.err | |
16855 | rm -f conftest.er1 | |
16856 | cat conftest.err >&5 | |
16857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16858 | (exit $ac_status); } >/dev/null; then | |
16859 | if test -s conftest.err; then | |
5d7b7554 VZ |
16860 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16861 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16862 | else |
16863 | ac_cpp_err= | |
16864 | fi | |
16865 | else | |
16866 | ac_cpp_err=yes | |
16867 | fi | |
16868 | if test -z "$ac_cpp_err"; then | |
16869 | ac_header_preproc=yes | |
16870 | else | |
16871 | echo "$as_me: failed program was:" >&5 | |
16872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16873 | ||
16874 | ac_header_preproc=no | |
16875 | fi | |
16876 | rm -f conftest.err conftest.$ac_ext | |
16877 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16878 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16879 | ||
16880 | # So? What about this header? | |
5d7b7554 | 16881 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16882 | yes:no: ) |
a848cd7e SC |
16883 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16884 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16885 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16886 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16887 | ac_header_preproc=yes | |
a848cd7e | 16888 | ;; |
ac1cb8d3 | 16889 | no:yes:* ) |
a848cd7e SC |
16890 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16891 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16892 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16893 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16894 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16895 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16896 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16897 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16899 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16900 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16901 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16902 | ( |
16903 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16904 | ## ----------------------------------------- ## |
16905 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16906 | ## ----------------------------------------- ## | |
a848cd7e SC |
16907 | _ASBOX |
16908 | ) | | |
16909 | sed "s/^/$as_me: WARNING: /" >&2 | |
16910 | ;; | |
16911 | esac | |
16912 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16913 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16916 | else | |
ac1cb8d3 | 16917 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16918 | fi |
16919 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16920 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16921 | ||
16922 | fi | |
16923 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16924 | cat >>confdefs.h <<_ACEOF | |
16925 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16926 | _ACEOF | |
16927 | ||
16928 | fi | |
16929 | ||
16930 | done | |
16931 | ||
16932 | ||
16933 | for ac_header in wchar.h | |
16934 | do | |
16935 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16936 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16937 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16938 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16941 | fi | |
16942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16943 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16944 | else | |
16945 | # Is the header compilable? | |
16946 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16947 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16948 | cat >conftest.$ac_ext <<_ACEOF | |
16949 | /* confdefs.h. */ | |
16950 | _ACEOF | |
16951 | cat confdefs.h >>conftest.$ac_ext | |
16952 | cat >>conftest.$ac_ext <<_ACEOF | |
16953 | /* end confdefs.h. */ | |
16954 | $ac_includes_default | |
16955 | #include <$ac_header> | |
16956 | _ACEOF | |
16957 | rm -f conftest.$ac_objext | |
16958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16959 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16960 | ac_status=$? |
ac1cb8d3 VS |
16961 | grep -v '^ *+' conftest.er1 >conftest.err |
16962 | rm -f conftest.er1 | |
16963 | cat conftest.err >&5 | |
a848cd7e SC |
16964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16965 | (exit $ac_status); } && | |
ca5c6ac3 | 16966 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16968 | (eval $ac_try) 2>&5 | |
16969 | ac_status=$? | |
16970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16971 | (exit $ac_status); }; } && | |
16972 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16974 | (eval $ac_try) 2>&5 | |
16975 | ac_status=$? | |
16976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16977 | (exit $ac_status); }; }; then | |
16978 | ac_header_compiler=yes | |
16979 | else | |
16980 | echo "$as_me: failed program was:" >&5 | |
16981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16982 | ||
16983 | ac_header_compiler=no | |
16984 | fi | |
ac1cb8d3 | 16985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16986 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16987 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16988 | ||
16989 | # Is the header present? | |
16990 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16991 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16992 | cat >conftest.$ac_ext <<_ACEOF | |
16993 | /* confdefs.h. */ | |
16994 | _ACEOF | |
16995 | cat confdefs.h >>conftest.$ac_ext | |
16996 | cat >>conftest.$ac_ext <<_ACEOF | |
16997 | /* end confdefs.h. */ | |
16998 | #include <$ac_header> | |
16999 | _ACEOF | |
17000 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17002 | ac_status=$? | |
17003 | grep -v '^ *+' conftest.er1 >conftest.err | |
17004 | rm -f conftest.er1 | |
17005 | cat conftest.err >&5 | |
17006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17007 | (exit $ac_status); } >/dev/null; then | |
17008 | if test -s conftest.err; then | |
5d7b7554 VZ |
17009 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17010 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17011 | else |
17012 | ac_cpp_err= | |
17013 | fi | |
17014 | else | |
17015 | ac_cpp_err=yes | |
17016 | fi | |
17017 | if test -z "$ac_cpp_err"; then | |
17018 | ac_header_preproc=yes | |
17019 | else | |
17020 | echo "$as_me: failed program was:" >&5 | |
17021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17022 | ||
17023 | ac_header_preproc=no | |
17024 | fi | |
17025 | rm -f conftest.err conftest.$ac_ext | |
17026 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17027 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17028 | ||
17029 | # So? What about this header? | |
5d7b7554 | 17030 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17031 | yes:no: ) |
a848cd7e SC |
17032 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17033 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17035 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17036 | ac_header_preproc=yes | |
a848cd7e | 17037 | ;; |
ac1cb8d3 | 17038 | no:yes:* ) |
a848cd7e SC |
17039 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17040 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17041 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17042 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17043 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17044 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17045 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17046 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17049 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17050 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17051 | ( |
17052 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17053 | ## ----------------------------------------- ## |
17054 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17055 | ## ----------------------------------------- ## | |
a848cd7e SC |
17056 | _ASBOX |
17057 | ) | | |
17058 | sed "s/^/$as_me: WARNING: /" >&2 | |
17059 | ;; | |
17060 | esac | |
17061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17065 | else | |
ac1cb8d3 | 17066 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17067 | fi |
17068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17070 | ||
17071 | fi | |
17072 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17073 | cat >>confdefs.h <<_ACEOF | |
17074 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17075 | _ACEOF | |
17076 | ||
17077 | fi | |
17078 | ||
17079 | done | |
17080 | ||
17081 | ||
17082 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
17083 | ||
17084 | for ac_header in wcstr.h | |
17085 | do | |
17086 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17088 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17090 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17092 | fi | |
17093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17094 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17095 | else | |
17096 | # Is the header compilable? | |
17097 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17098 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17099 | cat >conftest.$ac_ext <<_ACEOF | |
17100 | /* confdefs.h. */ | |
17101 | _ACEOF | |
17102 | cat confdefs.h >>conftest.$ac_ext | |
17103 | cat >>conftest.$ac_ext <<_ACEOF | |
17104 | /* end confdefs.h. */ | |
17105 | $ac_includes_default | |
17106 | #include <$ac_header> | |
17107 | _ACEOF | |
17108 | rm -f conftest.$ac_objext | |
17109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17110 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17111 | ac_status=$? |
ac1cb8d3 VS |
17112 | grep -v '^ *+' conftest.er1 >conftest.err |
17113 | rm -f conftest.er1 | |
17114 | cat conftest.err >&5 | |
a848cd7e SC |
17115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17116 | (exit $ac_status); } && | |
ca5c6ac3 | 17117 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17119 | (eval $ac_try) 2>&5 | |
17120 | ac_status=$? | |
17121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17122 | (exit $ac_status); }; } && | |
17123 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17125 | (eval $ac_try) 2>&5 | |
17126 | ac_status=$? | |
17127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17128 | (exit $ac_status); }; }; then | |
17129 | ac_header_compiler=yes | |
17130 | else | |
17131 | echo "$as_me: failed program was:" >&5 | |
17132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17133 | ||
17134 | ac_header_compiler=no | |
17135 | fi | |
ac1cb8d3 | 17136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17137 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17138 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17139 | ||
17140 | # Is the header present? | |
17141 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17142 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17143 | cat >conftest.$ac_ext <<_ACEOF | |
17144 | /* confdefs.h. */ | |
17145 | _ACEOF | |
17146 | cat confdefs.h >>conftest.$ac_ext | |
17147 | cat >>conftest.$ac_ext <<_ACEOF | |
17148 | /* end confdefs.h. */ | |
17149 | #include <$ac_header> | |
17150 | _ACEOF | |
17151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17153 | ac_status=$? | |
17154 | grep -v '^ *+' conftest.er1 >conftest.err | |
17155 | rm -f conftest.er1 | |
17156 | cat conftest.err >&5 | |
17157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17158 | (exit $ac_status); } >/dev/null; then | |
17159 | if test -s conftest.err; then | |
5d7b7554 VZ |
17160 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17161 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17162 | else |
17163 | ac_cpp_err= | |
17164 | fi | |
17165 | else | |
17166 | ac_cpp_err=yes | |
17167 | fi | |
17168 | if test -z "$ac_cpp_err"; then | |
17169 | ac_header_preproc=yes | |
17170 | else | |
17171 | echo "$as_me: failed program was:" >&5 | |
17172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17173 | ||
17174 | ac_header_preproc=no | |
17175 | fi | |
17176 | rm -f conftest.err conftest.$ac_ext | |
17177 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17178 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17179 | ||
17180 | # So? What about this header? | |
5d7b7554 | 17181 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17182 | yes:no: ) |
a848cd7e SC |
17183 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17184 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17185 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17186 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17187 | ac_header_preproc=yes | |
a848cd7e | 17188 | ;; |
ac1cb8d3 | 17189 | no:yes:* ) |
a848cd7e SC |
17190 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17191 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17192 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17193 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17194 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17195 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17196 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17197 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17198 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17199 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17200 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17201 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17202 | ( |
17203 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17204 | ## ----------------------------------------- ## |
17205 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17206 | ## ----------------------------------------- ## | |
a848cd7e SC |
17207 | _ASBOX |
17208 | ) | | |
17209 | sed "s/^/$as_me: WARNING: /" >&2 | |
17210 | ;; | |
17211 | esac | |
17212 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17216 | else | |
ac1cb8d3 | 17217 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17218 | fi |
17219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17220 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17221 | ||
17222 | fi | |
17223 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17224 | cat >>confdefs.h <<_ACEOF | |
17225 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17226 | _ACEOF | |
17227 | ||
17228 | fi | |
17229 | ||
17230 | done | |
17231 | ||
17232 | fi | |
17233 | ||
17234 | ||
17235 | for ac_header in fnmatch.h | |
17236 | do | |
17237 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17238 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17239 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17240 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17241 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17243 | fi | |
17244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17245 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17246 | else | |
17247 | # Is the header compilable? | |
17248 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17249 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17250 | cat >conftest.$ac_ext <<_ACEOF | |
17251 | /* confdefs.h. */ | |
17252 | _ACEOF | |
17253 | cat confdefs.h >>conftest.$ac_ext | |
17254 | cat >>conftest.$ac_ext <<_ACEOF | |
17255 | /* end confdefs.h. */ | |
17256 | $ac_includes_default | |
17257 | #include <$ac_header> | |
17258 | _ACEOF | |
17259 | rm -f conftest.$ac_objext | |
17260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17261 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17262 | ac_status=$? |
ac1cb8d3 VS |
17263 | grep -v '^ *+' conftest.er1 >conftest.err |
17264 | rm -f conftest.er1 | |
17265 | cat conftest.err >&5 | |
a848cd7e SC |
17266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17267 | (exit $ac_status); } && | |
ca5c6ac3 | 17268 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17270 | (eval $ac_try) 2>&5 | |
17271 | ac_status=$? | |
17272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17273 | (exit $ac_status); }; } && | |
17274 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17276 | (eval $ac_try) 2>&5 | |
17277 | ac_status=$? | |
17278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17279 | (exit $ac_status); }; }; then | |
17280 | ac_header_compiler=yes | |
17281 | else | |
17282 | echo "$as_me: failed program was:" >&5 | |
17283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17284 | ||
17285 | ac_header_compiler=no | |
17286 | fi | |
ac1cb8d3 | 17287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17288 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17289 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17290 | ||
17291 | # Is the header present? | |
17292 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17293 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17294 | cat >conftest.$ac_ext <<_ACEOF | |
17295 | /* confdefs.h. */ | |
17296 | _ACEOF | |
17297 | cat confdefs.h >>conftest.$ac_ext | |
17298 | cat >>conftest.$ac_ext <<_ACEOF | |
17299 | /* end confdefs.h. */ | |
17300 | #include <$ac_header> | |
17301 | _ACEOF | |
17302 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17303 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17304 | ac_status=$? | |
17305 | grep -v '^ *+' conftest.er1 >conftest.err | |
17306 | rm -f conftest.er1 | |
17307 | cat conftest.err >&5 | |
17308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17309 | (exit $ac_status); } >/dev/null; then | |
17310 | if test -s conftest.err; then | |
5d7b7554 VZ |
17311 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17312 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17313 | else |
17314 | ac_cpp_err= | |
17315 | fi | |
17316 | else | |
17317 | ac_cpp_err=yes | |
17318 | fi | |
17319 | if test -z "$ac_cpp_err"; then | |
17320 | ac_header_preproc=yes | |
17321 | else | |
17322 | echo "$as_me: failed program was:" >&5 | |
17323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17324 | ||
17325 | ac_header_preproc=no | |
17326 | fi | |
17327 | rm -f conftest.err conftest.$ac_ext | |
17328 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17329 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17330 | ||
17331 | # So? What about this header? | |
5d7b7554 | 17332 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17333 | yes:no: ) |
a848cd7e SC |
17334 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17335 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17336 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17337 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17338 | ac_header_preproc=yes | |
a848cd7e | 17339 | ;; |
ac1cb8d3 | 17340 | no:yes:* ) |
a848cd7e SC |
17341 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17342 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17343 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17344 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17345 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17346 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17347 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17348 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17350 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17351 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17352 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17353 | ( |
17354 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17355 | ## ----------------------------------------- ## |
17356 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17357 | ## ----------------------------------------- ## | |
a848cd7e SC |
17358 | _ASBOX |
17359 | ) | | |
17360 | sed "s/^/$as_me: WARNING: /" >&2 | |
17361 | ;; | |
17362 | esac | |
17363 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17364 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17367 | else | |
ac1cb8d3 | 17368 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17369 | fi |
17370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17371 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17372 | ||
17373 | fi | |
17374 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17375 | cat >>confdefs.h <<_ACEOF | |
17376 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17377 | _ACEOF | |
17378 | ||
17379 | fi | |
17380 | ||
17381 | done | |
17382 | ||
17383 | ||
a848cd7e SC |
17384 | |
17385 | for ac_header in langinfo.h | |
17386 | do | |
17387 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17388 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17389 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17390 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17391 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17393 | fi | |
17394 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17395 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17396 | else | |
17397 | # Is the header compilable? | |
17398 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17399 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17400 | cat >conftest.$ac_ext <<_ACEOF | |
17401 | /* confdefs.h. */ | |
17402 | _ACEOF | |
17403 | cat confdefs.h >>conftest.$ac_ext | |
17404 | cat >>conftest.$ac_ext <<_ACEOF | |
17405 | /* end confdefs.h. */ | |
17406 | $ac_includes_default | |
17407 | #include <$ac_header> | |
17408 | _ACEOF | |
17409 | rm -f conftest.$ac_objext | |
17410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17411 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17412 | ac_status=$? |
ac1cb8d3 VS |
17413 | grep -v '^ *+' conftest.er1 >conftest.err |
17414 | rm -f conftest.er1 | |
17415 | cat conftest.err >&5 | |
a848cd7e SC |
17416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17417 | (exit $ac_status); } && | |
ca5c6ac3 | 17418 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17420 | (eval $ac_try) 2>&5 | |
17421 | ac_status=$? | |
17422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17423 | (exit $ac_status); }; } && | |
17424 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17426 | (eval $ac_try) 2>&5 | |
17427 | ac_status=$? | |
17428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17429 | (exit $ac_status); }; }; then | |
17430 | ac_header_compiler=yes | |
17431 | else | |
17432 | echo "$as_me: failed program was:" >&5 | |
17433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17434 | ||
17435 | ac_header_compiler=no | |
17436 | fi | |
ac1cb8d3 | 17437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17438 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17439 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17440 | ||
17441 | # Is the header present? | |
17442 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17443 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17444 | cat >conftest.$ac_ext <<_ACEOF | |
17445 | /* confdefs.h. */ | |
17446 | _ACEOF | |
17447 | cat confdefs.h >>conftest.$ac_ext | |
17448 | cat >>conftest.$ac_ext <<_ACEOF | |
17449 | /* end confdefs.h. */ | |
17450 | #include <$ac_header> | |
17451 | _ACEOF | |
17452 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17453 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17454 | ac_status=$? | |
17455 | grep -v '^ *+' conftest.er1 >conftest.err | |
17456 | rm -f conftest.er1 | |
17457 | cat conftest.err >&5 | |
17458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17459 | (exit $ac_status); } >/dev/null; then | |
17460 | if test -s conftest.err; then | |
5d7b7554 VZ |
17461 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17462 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17463 | else |
17464 | ac_cpp_err= | |
17465 | fi | |
17466 | else | |
17467 | ac_cpp_err=yes | |
17468 | fi | |
17469 | if test -z "$ac_cpp_err"; then | |
17470 | ac_header_preproc=yes | |
17471 | else | |
17472 | echo "$as_me: failed program was:" >&5 | |
17473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17474 | ||
17475 | ac_header_preproc=no | |
17476 | fi | |
17477 | rm -f conftest.err conftest.$ac_ext | |
17478 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17479 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17480 | ||
17481 | # So? What about this header? | |
5d7b7554 | 17482 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17483 | yes:no: ) |
a848cd7e SC |
17484 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17485 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17486 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17487 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17488 | ac_header_preproc=yes | |
a848cd7e | 17489 | ;; |
ac1cb8d3 | 17490 | no:yes:* ) |
a848cd7e SC |
17491 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17492 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17493 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17494 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17495 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17496 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17497 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17498 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17500 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17501 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17502 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17503 | ( |
17504 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17505 | ## ----------------------------------------- ## |
17506 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17507 | ## ----------------------------------------- ## | |
a848cd7e SC |
17508 | _ASBOX |
17509 | ) | | |
17510 | sed "s/^/$as_me: WARNING: /" >&2 | |
17511 | ;; | |
17512 | esac | |
17513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17517 | else | |
ac1cb8d3 | 17518 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17519 | fi |
17520 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17521 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17522 | ||
17523 | fi | |
17524 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17525 | cat >>confdefs.h <<_ACEOF | |
17526 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17527 | _ACEOF | |
17528 | ||
17529 | fi | |
17530 | ||
17531 | done | |
17532 | ||
17533 | ||
17534 | case "${host}" in | |
17535 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
17536 | if test $ac_cv_header_langinfo_h = "yes" \ |
17537 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
17538 | -o "$wx_cv_gccversion" = "EMX3" \ | |
17539 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
17540 | LIBS="$LIBS -lintl" |
17541 | fi | |
17542 | ;; | |
17543 | esac | |
17544 | ||
bc023abb MW |
17545 | if test "$USE_UNIX" = 1 ; then |
17546 | ||
17547 | for ac_header in sys/select.h | |
17548 | do | |
17549 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17550 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17551 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17552 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17553 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17555 | fi | |
17556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17557 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17558 | else | |
17559 | # Is the header compilable? | |
17560 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17561 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17562 | cat >conftest.$ac_ext <<_ACEOF | |
17563 | /* confdefs.h. */ | |
17564 | _ACEOF | |
17565 | cat confdefs.h >>conftest.$ac_ext | |
17566 | cat >>conftest.$ac_ext <<_ACEOF | |
17567 | /* end confdefs.h. */ | |
17568 | $ac_includes_default | |
17569 | #include <$ac_header> | |
17570 | _ACEOF | |
17571 | rm -f conftest.$ac_objext | |
17572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17573 | (eval $ac_compile) 2>conftest.er1 | |
17574 | ac_status=$? | |
17575 | grep -v '^ *+' conftest.er1 >conftest.err | |
17576 | rm -f conftest.er1 | |
17577 | cat conftest.err >&5 | |
17578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17579 | (exit $ac_status); } && | |
ca5c6ac3 | 17580 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
bc023abb MW |
17581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17582 | (eval $ac_try) 2>&5 | |
17583 | ac_status=$? | |
17584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17585 | (exit $ac_status); }; } && | |
17586 | { ac_try='test -s conftest.$ac_objext' | |
17587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17588 | (eval $ac_try) 2>&5 | |
17589 | ac_status=$? | |
17590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17591 | (exit $ac_status); }; }; then | |
17592 | ac_header_compiler=yes | |
17593 | else | |
17594 | echo "$as_me: failed program was:" >&5 | |
17595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17596 | ||
17597 | ac_header_compiler=no | |
17598 | fi | |
17599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17600 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17601 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17602 | ||
17603 | # Is the header present? | |
17604 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17605 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17606 | cat >conftest.$ac_ext <<_ACEOF | |
17607 | /* confdefs.h. */ | |
17608 | _ACEOF | |
17609 | cat confdefs.h >>conftest.$ac_ext | |
17610 | cat >>conftest.$ac_ext <<_ACEOF | |
17611 | /* end confdefs.h. */ | |
17612 | #include <$ac_header> | |
17613 | _ACEOF | |
17614 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17615 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17616 | ac_status=$? | |
17617 | grep -v '^ *+' conftest.er1 >conftest.err | |
17618 | rm -f conftest.er1 | |
17619 | cat conftest.err >&5 | |
17620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17621 | (exit $ac_status); } >/dev/null; then | |
17622 | if test -s conftest.err; then | |
17623 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17624 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
17625 | else | |
17626 | ac_cpp_err= | |
17627 | fi | |
17628 | else | |
17629 | ac_cpp_err=yes | |
17630 | fi | |
17631 | if test -z "$ac_cpp_err"; then | |
17632 | ac_header_preproc=yes | |
17633 | else | |
17634 | echo "$as_me: failed program was:" >&5 | |
17635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17636 | ||
17637 | ac_header_preproc=no | |
17638 | fi | |
17639 | rm -f conftest.err conftest.$ac_ext | |
17640 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17641 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17642 | ||
17643 | # So? What about this header? | |
17644 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
17645 | yes:no: ) | |
17646 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17647 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17648 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17649 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17650 | ac_header_preproc=yes | |
17651 | ;; | |
17652 | no:yes:* ) | |
17653 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17654 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17655 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17656 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17657 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17658 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17659 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17660 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17661 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17662 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17663 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17664 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17665 | ( | |
17666 | cat <<\_ASBOX | |
17667 | ## ----------------------------------------- ## | |
17668 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17669 | ## ----------------------------------------- ## | |
17670 | _ASBOX | |
17671 | ) | | |
17672 | sed "s/^/$as_me: WARNING: /" >&2 | |
17673 | ;; | |
17674 | esac | |
17675 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17676 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17677 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17679 | else | |
17680 | eval "$as_ac_Header=\$ac_header_preproc" | |
17681 | fi | |
17682 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17683 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17684 | ||
17685 | fi | |
17686 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17687 | cat >>confdefs.h <<_ACEOF | |
17688 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17689 | _ACEOF | |
17690 | ||
17691 | fi | |
17692 | ||
17693 | done | |
17694 | ||
17695 | fi | |
17696 | ||
a848cd7e SC |
17697 | |
17698 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
17699 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
17700 | if test "${ac_cv_c_const+set}" = set; then | |
17701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17702 | else | |
17703 | cat >conftest.$ac_ext <<_ACEOF | |
17704 | /* confdefs.h. */ | |
17705 | _ACEOF | |
17706 | cat confdefs.h >>conftest.$ac_ext | |
17707 | cat >>conftest.$ac_ext <<_ACEOF | |
17708 | /* end confdefs.h. */ | |
17709 | ||
17710 | int | |
17711 | main () | |
17712 | { | |
17713 | /* FIXME: Include the comments suggested by Paul. */ | |
17714 | #ifndef __cplusplus | |
17715 | /* Ultrix mips cc rejects this. */ | |
17716 | typedef int charset[2]; | |
17717 | const charset x; | |
17718 | /* SunOS 4.1.1 cc rejects this. */ | |
17719 | char const *const *ccp; | |
17720 | char **p; | |
17721 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
17722 | struct point {int x, y;}; | |
17723 | static struct point const zero = {0,0}; | |
17724 | /* AIX XL C 1.02.0.0 rejects this. | |
17725 | It does not let you subtract one const X* pointer from another in | |
17726 | an arm of an if-expression whose if-part is not a constant | |
17727 | expression */ | |
17728 | const char *g = "string"; | |
17729 | ccp = &g + (g ? g-g : 0); | |
17730 | /* HPUX 7.0 cc rejects these. */ | |
17731 | ++ccp; | |
17732 | p = (char**) ccp; | |
17733 | ccp = (char const *const *) p; | |
17734 | { /* SCO 3.2v4 cc rejects this. */ | |
17735 | char *t; | |
17736 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
17737 | ||
17738 | *t++ = 0; | |
17739 | } | |
17740 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
17741 | int x[] = {25, 17}; | |
17742 | const int *foo = &x[0]; | |
17743 | ++foo; | |
17744 | } | |
17745 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
17746 | typedef const int *iptr; | |
17747 | iptr p = 0; | |
17748 | ++p; | |
17749 | } | |
17750 | { /* AIX XL C 1.02.0.0 rejects this saying | |
17751 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
17752 | struct s { int j; const int *ap[3]; }; | |
17753 | struct s *b; b->j = 5; | |
17754 | } | |
17755 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
17756 | const int foo = 10; | |
17757 | } | |
17758 | #endif | |
17759 | ||
17760 | ; | |
17761 | return 0; | |
17762 | } | |
17763 | _ACEOF | |
17764 | rm -f conftest.$ac_objext | |
17765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17766 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17767 | ac_status=$? |
ac1cb8d3 VS |
17768 | grep -v '^ *+' conftest.er1 >conftest.err |
17769 | rm -f conftest.er1 | |
17770 | cat conftest.err >&5 | |
a848cd7e SC |
17771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17772 | (exit $ac_status); } && | |
ca5c6ac3 | 17773 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17775 | (eval $ac_try) 2>&5 | |
17776 | ac_status=$? | |
17777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17778 | (exit $ac_status); }; } && | |
17779 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17781 | (eval $ac_try) 2>&5 | |
17782 | ac_status=$? | |
17783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17784 | (exit $ac_status); }; }; then | |
17785 | ac_cv_c_const=yes | |
17786 | else | |
17787 | echo "$as_me: failed program was:" >&5 | |
17788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17789 | ||
17790 | ac_cv_c_const=no | |
17791 | fi | |
ac1cb8d3 | 17792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17793 | fi |
17794 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
17795 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
17796 | if test $ac_cv_c_const = no; then | |
17797 | ||
17798 | cat >>confdefs.h <<\_ACEOF | |
17799 | #define const | |
17800 | _ACEOF | |
17801 | ||
17802 | fi | |
17803 | ||
17804 | echo "$as_me:$LINENO: checking for inline" >&5 | |
17805 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
17806 | if test "${ac_cv_c_inline+set}" = set; then | |
17807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17808 | else | |
17809 | ac_cv_c_inline=no | |
17810 | for ac_kw in inline __inline__ __inline; do | |
17811 | cat >conftest.$ac_ext <<_ACEOF | |
17812 | /* confdefs.h. */ | |
17813 | _ACEOF | |
17814 | cat confdefs.h >>conftest.$ac_ext | |
17815 | cat >>conftest.$ac_ext <<_ACEOF | |
17816 | /* end confdefs.h. */ | |
17817 | #ifndef __cplusplus | |
17818 | typedef int foo_t; | |
17819 | static $ac_kw foo_t static_foo () {return 0; } | |
17820 | $ac_kw foo_t foo () {return 0; } | |
17821 | #endif | |
17822 | ||
17823 | _ACEOF | |
17824 | rm -f conftest.$ac_objext | |
17825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17826 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17827 | ac_status=$? |
ac1cb8d3 VS |
17828 | grep -v '^ *+' conftest.er1 >conftest.err |
17829 | rm -f conftest.er1 | |
17830 | cat conftest.err >&5 | |
a848cd7e SC |
17831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17832 | (exit $ac_status); } && | |
ca5c6ac3 | 17833 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17835 | (eval $ac_try) 2>&5 | |
17836 | ac_status=$? | |
17837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17838 | (exit $ac_status); }; } && | |
17839 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17841 | (eval $ac_try) 2>&5 | |
17842 | ac_status=$? | |
17843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17844 | (exit $ac_status); }; }; then | |
17845 | ac_cv_c_inline=$ac_kw; break | |
17846 | else | |
17847 | echo "$as_me: failed program was:" >&5 | |
17848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17849 | ||
17850 | fi | |
ac1cb8d3 | 17851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17852 | done |
17853 | ||
17854 | fi | |
17855 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
17856 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
17857 | |
17858 | ||
a848cd7e SC |
17859 | case $ac_cv_c_inline in |
17860 | inline | yes) ;; | |
ac1cb8d3 VS |
17861 | *) |
17862 | case $ac_cv_c_inline in | |
17863 | no) ac_val=;; | |
17864 | *) ac_val=$ac_cv_c_inline;; | |
17865 | esac | |
17866 | cat >>confdefs.h <<_ACEOF | |
17867 | #ifndef __cplusplus | |
17868 | #define inline $ac_val | |
17869 | #endif | |
de59c161 | 17870 | _ACEOF |
ac1cb8d3 | 17871 | ;; |
a848cd7e SC |
17872 | esac |
17873 | ||
17874 | ||
17875 | echo "$as_me:$LINENO: checking for char" >&5 | |
17876 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
17877 | if test "${ac_cv_type_char+set}" = set; then | |
17878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17879 | else | |
17880 | cat >conftest.$ac_ext <<_ACEOF | |
17881 | /* confdefs.h. */ | |
17882 | _ACEOF | |
17883 | cat confdefs.h >>conftest.$ac_ext | |
17884 | cat >>conftest.$ac_ext <<_ACEOF | |
17885 | /* end confdefs.h. */ | |
17886 | $ac_includes_default | |
17887 | int | |
17888 | main () | |
17889 | { | |
17890 | if ((char *) 0) | |
17891 | return 0; | |
17892 | if (sizeof (char)) | |
17893 | return 0; | |
17894 | ; | |
17895 | return 0; | |
17896 | } | |
17897 | _ACEOF | |
17898 | rm -f conftest.$ac_objext | |
17899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17901 | ac_status=$? |
ac1cb8d3 VS |
17902 | grep -v '^ *+' conftest.er1 >conftest.err |
17903 | rm -f conftest.er1 | |
17904 | cat conftest.err >&5 | |
a848cd7e SC |
17905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17906 | (exit $ac_status); } && | |
ca5c6ac3 | 17907 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17909 | (eval $ac_try) 2>&5 | |
17910 | ac_status=$? | |
17911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17912 | (exit $ac_status); }; } && | |
17913 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17915 | (eval $ac_try) 2>&5 | |
17916 | ac_status=$? | |
17917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17918 | (exit $ac_status); }; }; then | |
17919 | ac_cv_type_char=yes | |
17920 | else | |
17921 | echo "$as_me: failed program was:" >&5 | |
17922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17923 | ||
17924 | ac_cv_type_char=no | |
17925 | fi | |
ac1cb8d3 | 17926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17927 | fi |
17928 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
17929 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
17930 | ||
17931 | echo "$as_me:$LINENO: checking size of char" >&5 | |
17932 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
17933 | if test "${ac_cv_sizeof_char+set}" = set; then | |
17934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17935 | else | |
17936 | if test "$ac_cv_type_char" = yes; then | |
17937 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17938 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17939 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17940 | # This bug is HP SR number 8606223364. | |
17941 | if test "$cross_compiling" = yes; then | |
17942 | # Depending upon the size, compute the lo and hi bounds. | |
17943 | cat >conftest.$ac_ext <<_ACEOF | |
17944 | /* confdefs.h. */ | |
17945 | _ACEOF | |
17946 | cat confdefs.h >>conftest.$ac_ext | |
17947 | cat >>conftest.$ac_ext <<_ACEOF | |
17948 | /* end confdefs.h. */ | |
17949 | $ac_includes_default | |
17950 | int | |
17951 | main () | |
17952 | { | |
17953 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
17954 | test_array [0] = 0 | |
17955 | ||
17956 | ; | |
17957 | return 0; | |
17958 | } | |
17959 | _ACEOF | |
17960 | rm -f conftest.$ac_objext | |
17961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17962 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17963 | ac_status=$? |
ac1cb8d3 VS |
17964 | grep -v '^ *+' conftest.er1 >conftest.err |
17965 | rm -f conftest.er1 | |
17966 | cat conftest.err >&5 | |
a848cd7e SC |
17967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17968 | (exit $ac_status); } && | |
ca5c6ac3 | 17969 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17971 | (eval $ac_try) 2>&5 | |
17972 | ac_status=$? | |
17973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17974 | (exit $ac_status); }; } && | |
17975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17977 | (eval $ac_try) 2>&5 | |
17978 | ac_status=$? | |
17979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17980 | (exit $ac_status); }; }; then | |
17981 | ac_lo=0 ac_mid=0 | |
17982 | while :; do | |
17983 | cat >conftest.$ac_ext <<_ACEOF | |
17984 | /* confdefs.h. */ | |
17985 | _ACEOF | |
17986 | cat confdefs.h >>conftest.$ac_ext | |
17987 | cat >>conftest.$ac_ext <<_ACEOF | |
17988 | /* end confdefs.h. */ | |
17989 | $ac_includes_default | |
17990 | int | |
17991 | main () | |
17992 | { | |
17993 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17994 | test_array [0] = 0 | |
17995 | ||
17996 | ; | |
17997 | return 0; | |
17998 | } | |
17999 | _ACEOF | |
18000 | rm -f conftest.$ac_objext | |
18001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18002 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18003 | ac_status=$? |
ac1cb8d3 VS |
18004 | grep -v '^ *+' conftest.er1 >conftest.err |
18005 | rm -f conftest.er1 | |
18006 | cat conftest.err >&5 | |
a848cd7e SC |
18007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18008 | (exit $ac_status); } && | |
ca5c6ac3 | 18009 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18011 | (eval $ac_try) 2>&5 | |
18012 | ac_status=$? | |
18013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18014 | (exit $ac_status); }; } && | |
18015 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18017 | (eval $ac_try) 2>&5 | |
18018 | ac_status=$? | |
18019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18020 | (exit $ac_status); }; }; then | |
18021 | ac_hi=$ac_mid; break | |
18022 | else | |
18023 | echo "$as_me: failed program was:" >&5 | |
18024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18025 | ||
18026 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18027 | if test $ac_lo -le $ac_mid; then |
18028 | ac_lo= ac_hi= | |
18029 | break | |
18030 | fi | |
18031 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18032 | fi |
ac1cb8d3 | 18033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18034 | done |
18035 | else | |
18036 | echo "$as_me: failed program was:" >&5 | |
18037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18038 | ||
18039 | cat >conftest.$ac_ext <<_ACEOF | |
18040 | /* confdefs.h. */ | |
18041 | _ACEOF | |
18042 | cat confdefs.h >>conftest.$ac_ext | |
18043 | cat >>conftest.$ac_ext <<_ACEOF | |
18044 | /* end confdefs.h. */ | |
18045 | $ac_includes_default | |
18046 | int | |
18047 | main () | |
18048 | { | |
18049 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
18050 | test_array [0] = 0 | |
18051 | ||
18052 | ; | |
18053 | return 0; | |
18054 | } | |
18055 | _ACEOF | |
18056 | rm -f conftest.$ac_objext | |
18057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18058 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18059 | ac_status=$? |
ac1cb8d3 VS |
18060 | grep -v '^ *+' conftest.er1 >conftest.err |
18061 | rm -f conftest.er1 | |
18062 | cat conftest.err >&5 | |
a848cd7e SC |
18063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18064 | (exit $ac_status); } && | |
ca5c6ac3 | 18065 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18067 | (eval $ac_try) 2>&5 | |
18068 | ac_status=$? | |
18069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18070 | (exit $ac_status); }; } && | |
18071 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18073 | (eval $ac_try) 2>&5 | |
18074 | ac_status=$? | |
18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18076 | (exit $ac_status); }; }; then | |
18077 | ac_hi=-1 ac_mid=-1 | |
18078 | while :; do | |
18079 | cat >conftest.$ac_ext <<_ACEOF | |
18080 | /* confdefs.h. */ | |
18081 | _ACEOF | |
18082 | cat confdefs.h >>conftest.$ac_ext | |
18083 | cat >>conftest.$ac_ext <<_ACEOF | |
18084 | /* end confdefs.h. */ | |
18085 | $ac_includes_default | |
18086 | int | |
18087 | main () | |
18088 | { | |
18089 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
18090 | test_array [0] = 0 | |
18091 | ||
18092 | ; | |
18093 | return 0; | |
18094 | } | |
18095 | _ACEOF | |
18096 | rm -f conftest.$ac_objext | |
18097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18098 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18099 | ac_status=$? |
ac1cb8d3 VS |
18100 | grep -v '^ *+' conftest.er1 >conftest.err |
18101 | rm -f conftest.er1 | |
18102 | cat conftest.err >&5 | |
a848cd7e SC |
18103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18104 | (exit $ac_status); } && | |
ca5c6ac3 | 18105 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18107 | (eval $ac_try) 2>&5 | |
18108 | ac_status=$? | |
18109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18110 | (exit $ac_status); }; } && | |
18111 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18113 | (eval $ac_try) 2>&5 | |
18114 | ac_status=$? | |
18115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18116 | (exit $ac_status); }; }; then | |
18117 | ac_lo=$ac_mid; break | |
18118 | else | |
18119 | echo "$as_me: failed program was:" >&5 | |
18120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18121 | ||
18122 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18123 | if test $ac_mid -le $ac_hi; then |
18124 | ac_lo= ac_hi= | |
18125 | break | |
18126 | fi | |
18127 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18128 | fi |
ac1cb8d3 | 18129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18130 | done |
18131 | else | |
18132 | echo "$as_me: failed program was:" >&5 | |
18133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18134 | ||
18135 | ac_lo= ac_hi= | |
18136 | fi | |
ac1cb8d3 | 18137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18138 | fi |
ac1cb8d3 | 18139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18140 | # Binary search between lo and hi bounds. |
18141 | while test "x$ac_lo" != "x$ac_hi"; do | |
18142 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18143 | cat >conftest.$ac_ext <<_ACEOF | |
18144 | /* confdefs.h. */ | |
18145 | _ACEOF | |
18146 | cat confdefs.h >>conftest.$ac_ext | |
18147 | cat >>conftest.$ac_ext <<_ACEOF | |
18148 | /* end confdefs.h. */ | |
18149 | $ac_includes_default | |
18150 | int | |
18151 | main () | |
18152 | { | |
18153 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
18154 | test_array [0] = 0 | |
18155 | ||
18156 | ; | |
18157 | return 0; | |
18158 | } | |
18159 | _ACEOF | |
18160 | rm -f conftest.$ac_objext | |
18161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18162 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18163 | ac_status=$? |
ac1cb8d3 VS |
18164 | grep -v '^ *+' conftest.er1 >conftest.err |
18165 | rm -f conftest.er1 | |
18166 | cat conftest.err >&5 | |
a848cd7e SC |
18167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18168 | (exit $ac_status); } && | |
ca5c6ac3 | 18169 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18171 | (eval $ac_try) 2>&5 | |
18172 | ac_status=$? | |
18173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18174 | (exit $ac_status); }; } && | |
18175 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18177 | (eval $ac_try) 2>&5 | |
18178 | ac_status=$? | |
18179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18180 | (exit $ac_status); }; }; then | |
18181 | ac_hi=$ac_mid | |
18182 | else | |
18183 | echo "$as_me: failed program was:" >&5 | |
18184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18185 | ||
18186 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18187 | fi | |
ac1cb8d3 | 18188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18189 | done |
18190 | case $ac_lo in | |
18191 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
18192 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
18193 | See \`config.log' for more details." >&5 | |
18194 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
18195 | See \`config.log' for more details." >&2;} | |
18196 | { (exit 1); exit 1; }; } ;; | |
18197 | esac | |
18198 | else | |
18199 | if test "$cross_compiling" = yes; then | |
ca5c6ac3 VZ |
18200 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18201 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18202 | { (exit 1); exit 1; }; } |
18203 | else | |
18204 | cat >conftest.$ac_ext <<_ACEOF | |
18205 | /* confdefs.h. */ | |
18206 | _ACEOF | |
18207 | cat confdefs.h >>conftest.$ac_ext | |
18208 | cat >>conftest.$ac_ext <<_ACEOF | |
18209 | /* end confdefs.h. */ | |
18210 | $ac_includes_default | |
18211 | long longval () { return (long) (sizeof (char)); } | |
18212 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
18213 | #include <stdio.h> | |
18214 | #include <stdlib.h> | |
18215 | int | |
18216 | main () | |
18217 | { | |
18218 | ||
18219 | FILE *f = fopen ("conftest.val", "w"); | |
18220 | if (! f) | |
18221 | exit (1); | |
18222 | if (((long) (sizeof (char))) < 0) | |
18223 | { | |
18224 | long i = longval (); | |
18225 | if (i != ((long) (sizeof (char)))) | |
18226 | exit (1); | |
18227 | fprintf (f, "%ld\n", i); | |
18228 | } | |
18229 | else | |
18230 | { | |
18231 | unsigned long i = ulongval (); | |
18232 | if (i != ((long) (sizeof (char)))) | |
18233 | exit (1); | |
18234 | fprintf (f, "%lu\n", i); | |
18235 | } | |
18236 | exit (ferror (f) || fclose (f) != 0); | |
18237 | ||
18238 | ; | |
18239 | return 0; | |
18240 | } | |
18241 | _ACEOF | |
18242 | rm -f conftest$ac_exeext | |
18243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18244 | (eval $ac_link) 2>&5 | |
18245 | ac_status=$? | |
18246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18249 | (eval $ac_try) 2>&5 | |
18250 | ac_status=$? | |
18251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18252 | (exit $ac_status); }; }; then | |
18253 | ac_cv_sizeof_char=`cat conftest.val` | |
18254 | else | |
18255 | echo "$as_me: program exited with status $ac_status" >&5 | |
18256 | echo "$as_me: failed program was:" >&5 | |
18257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18258 | ||
18259 | ( exit $ac_status ) | |
18260 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
18261 | See \`config.log' for more details." >&5 | |
18262 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
18263 | See \`config.log' for more details." >&2;} | |
18264 | { (exit 1); exit 1; }; } | |
18265 | fi | |
ac1cb8d3 | 18266 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18267 | fi |
18268 | fi | |
18269 | rm -f conftest.val | |
18270 | else | |
18271 | ac_cv_sizeof_char=0 | |
18272 | fi | |
18273 | fi | |
18274 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
18275 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
18276 | cat >>confdefs.h <<_ACEOF | |
18277 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
18278 | _ACEOF | |
18279 | ||
18280 | ||
18281 | echo "$as_me:$LINENO: checking for short" >&5 | |
18282 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
18283 | if test "${ac_cv_type_short+set}" = set; then | |
18284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18285 | else | |
18286 | cat >conftest.$ac_ext <<_ACEOF | |
18287 | /* confdefs.h. */ | |
18288 | _ACEOF | |
18289 | cat confdefs.h >>conftest.$ac_ext | |
18290 | cat >>conftest.$ac_ext <<_ACEOF | |
18291 | /* end confdefs.h. */ | |
18292 | $ac_includes_default | |
18293 | int | |
18294 | main () | |
18295 | { | |
18296 | if ((short *) 0) | |
18297 | return 0; | |
18298 | if (sizeof (short)) | |
18299 | return 0; | |
18300 | ; | |
18301 | return 0; | |
18302 | } | |
18303 | _ACEOF | |
18304 | rm -f conftest.$ac_objext | |
18305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18306 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18307 | ac_status=$? |
ac1cb8d3 VS |
18308 | grep -v '^ *+' conftest.er1 >conftest.err |
18309 | rm -f conftest.er1 | |
18310 | cat conftest.err >&5 | |
a848cd7e SC |
18311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18312 | (exit $ac_status); } && | |
ca5c6ac3 | 18313 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18315 | (eval $ac_try) 2>&5 | |
18316 | ac_status=$? | |
18317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18318 | (exit $ac_status); }; } && | |
18319 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18321 | (eval $ac_try) 2>&5 | |
18322 | ac_status=$? | |
18323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18324 | (exit $ac_status); }; }; then | |
18325 | ac_cv_type_short=yes | |
18326 | else | |
18327 | echo "$as_me: failed program was:" >&5 | |
18328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18329 | ||
18330 | ac_cv_type_short=no | |
18331 | fi | |
ac1cb8d3 | 18332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18333 | fi |
18334 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
18335 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
18336 | ||
18337 | echo "$as_me:$LINENO: checking size of short" >&5 | |
18338 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
18339 | if test "${ac_cv_sizeof_short+set}" = set; then | |
18340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18341 | else | |
18342 | if test "$ac_cv_type_short" = yes; then | |
18343 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18344 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18345 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18346 | # This bug is HP SR number 8606223364. | |
18347 | if test "$cross_compiling" = yes; then | |
18348 | # Depending upon the size, compute the lo and hi bounds. | |
18349 | cat >conftest.$ac_ext <<_ACEOF | |
18350 | /* confdefs.h. */ | |
18351 | _ACEOF | |
18352 | cat confdefs.h >>conftest.$ac_ext | |
18353 | cat >>conftest.$ac_ext <<_ACEOF | |
18354 | /* end confdefs.h. */ | |
18355 | $ac_includes_default | |
18356 | int | |
18357 | main () | |
18358 | { | |
18359 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
18360 | test_array [0] = 0 | |
18361 | ||
18362 | ; | |
18363 | return 0; | |
18364 | } | |
18365 | _ACEOF | |
18366 | rm -f conftest.$ac_objext | |
18367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18368 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18369 | ac_status=$? |
ac1cb8d3 VS |
18370 | grep -v '^ *+' conftest.er1 >conftest.err |
18371 | rm -f conftest.er1 | |
18372 | cat conftest.err >&5 | |
a848cd7e SC |
18373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18374 | (exit $ac_status); } && | |
ca5c6ac3 | 18375 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18377 | (eval $ac_try) 2>&5 | |
18378 | ac_status=$? | |
18379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18380 | (exit $ac_status); }; } && | |
18381 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18383 | (eval $ac_try) 2>&5 | |
18384 | ac_status=$? | |
18385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18386 | (exit $ac_status); }; }; then | |
18387 | ac_lo=0 ac_mid=0 | |
18388 | while :; do | |
18389 | cat >conftest.$ac_ext <<_ACEOF | |
18390 | /* confdefs.h. */ | |
18391 | _ACEOF | |
18392 | cat confdefs.h >>conftest.$ac_ext | |
18393 | cat >>conftest.$ac_ext <<_ACEOF | |
18394 | /* end confdefs.h. */ | |
18395 | $ac_includes_default | |
18396 | int | |
18397 | main () | |
18398 | { | |
18399 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
18400 | test_array [0] = 0 | |
18401 | ||
18402 | ; | |
18403 | return 0; | |
18404 | } | |
18405 | _ACEOF | |
18406 | rm -f conftest.$ac_objext | |
18407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18408 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18409 | ac_status=$? |
ac1cb8d3 VS |
18410 | grep -v '^ *+' conftest.er1 >conftest.err |
18411 | rm -f conftest.er1 | |
18412 | cat conftest.err >&5 | |
a848cd7e SC |
18413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18414 | (exit $ac_status); } && | |
ca5c6ac3 | 18415 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18417 | (eval $ac_try) 2>&5 | |
18418 | ac_status=$? | |
18419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18420 | (exit $ac_status); }; } && | |
18421 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18423 | (eval $ac_try) 2>&5 | |
18424 | ac_status=$? | |
18425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18426 | (exit $ac_status); }; }; then | |
18427 | ac_hi=$ac_mid; break | |
18428 | else | |
18429 | echo "$as_me: failed program was:" >&5 | |
18430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18431 | ||
18432 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18433 | if test $ac_lo -le $ac_mid; then |
18434 | ac_lo= ac_hi= | |
18435 | break | |
18436 | fi | |
18437 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18438 | fi |
ac1cb8d3 | 18439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18440 | done |
18441 | else | |
18442 | echo "$as_me: failed program was:" >&5 | |
18443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18444 | ||
18445 | cat >conftest.$ac_ext <<_ACEOF | |
18446 | /* confdefs.h. */ | |
18447 | _ACEOF | |
18448 | cat confdefs.h >>conftest.$ac_ext | |
18449 | cat >>conftest.$ac_ext <<_ACEOF | |
18450 | /* end confdefs.h. */ | |
18451 | $ac_includes_default | |
18452 | int | |
18453 | main () | |
18454 | { | |
18455 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
18456 | test_array [0] = 0 | |
18457 | ||
18458 | ; | |
18459 | return 0; | |
18460 | } | |
18461 | _ACEOF | |
18462 | rm -f conftest.$ac_objext | |
18463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18464 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18465 | ac_status=$? |
ac1cb8d3 VS |
18466 | grep -v '^ *+' conftest.er1 >conftest.err |
18467 | rm -f conftest.er1 | |
18468 | cat conftest.err >&5 | |
a848cd7e SC |
18469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18470 | (exit $ac_status); } && | |
ca5c6ac3 | 18471 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18473 | (eval $ac_try) 2>&5 | |
18474 | ac_status=$? | |
18475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18476 | (exit $ac_status); }; } && | |
18477 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18479 | (eval $ac_try) 2>&5 | |
18480 | ac_status=$? | |
18481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18482 | (exit $ac_status); }; }; then | |
18483 | ac_hi=-1 ac_mid=-1 | |
18484 | while :; do | |
18485 | cat >conftest.$ac_ext <<_ACEOF | |
18486 | /* confdefs.h. */ | |
18487 | _ACEOF | |
18488 | cat confdefs.h >>conftest.$ac_ext | |
18489 | cat >>conftest.$ac_ext <<_ACEOF | |
18490 | /* end confdefs.h. */ | |
18491 | $ac_includes_default | |
18492 | int | |
18493 | main () | |
18494 | { | |
18495 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
18496 | test_array [0] = 0 | |
18497 | ||
18498 | ; | |
18499 | return 0; | |
18500 | } | |
18501 | _ACEOF | |
18502 | rm -f conftest.$ac_objext | |
18503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18504 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18505 | ac_status=$? |
ac1cb8d3 VS |
18506 | grep -v '^ *+' conftest.er1 >conftest.err |
18507 | rm -f conftest.er1 | |
18508 | cat conftest.err >&5 | |
a848cd7e SC |
18509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18510 | (exit $ac_status); } && | |
ca5c6ac3 | 18511 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18513 | (eval $ac_try) 2>&5 | |
18514 | ac_status=$? | |
18515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18516 | (exit $ac_status); }; } && | |
18517 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18519 | (eval $ac_try) 2>&5 | |
18520 | ac_status=$? | |
18521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18522 | (exit $ac_status); }; }; then | |
18523 | ac_lo=$ac_mid; break | |
18524 | else | |
18525 | echo "$as_me: failed program was:" >&5 | |
18526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18527 | ||
18528 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18529 | if test $ac_mid -le $ac_hi; then |
18530 | ac_lo= ac_hi= | |
18531 | break | |
18532 | fi | |
18533 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18534 | fi |
ac1cb8d3 | 18535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18536 | done |
18537 | else | |
18538 | echo "$as_me: failed program was:" >&5 | |
18539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18540 | ||
18541 | ac_lo= ac_hi= | |
18542 | fi | |
ac1cb8d3 | 18543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18544 | fi |
ac1cb8d3 | 18545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18546 | # Binary search between lo and hi bounds. |
18547 | while test "x$ac_lo" != "x$ac_hi"; do | |
18548 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18549 | cat >conftest.$ac_ext <<_ACEOF | |
18550 | /* confdefs.h. */ | |
18551 | _ACEOF | |
18552 | cat confdefs.h >>conftest.$ac_ext | |
18553 | cat >>conftest.$ac_ext <<_ACEOF | |
18554 | /* end confdefs.h. */ | |
18555 | $ac_includes_default | |
18556 | int | |
18557 | main () | |
18558 | { | |
18559 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
18560 | test_array [0] = 0 | |
18561 | ||
18562 | ; | |
18563 | return 0; | |
18564 | } | |
18565 | _ACEOF | |
18566 | rm -f conftest.$ac_objext | |
18567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18568 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18569 | ac_status=$? |
ac1cb8d3 VS |
18570 | grep -v '^ *+' conftest.er1 >conftest.err |
18571 | rm -f conftest.er1 | |
18572 | cat conftest.err >&5 | |
a848cd7e SC |
18573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18574 | (exit $ac_status); } && | |
ca5c6ac3 | 18575 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18577 | (eval $ac_try) 2>&5 | |
18578 | ac_status=$? | |
18579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18580 | (exit $ac_status); }; } && | |
18581 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18583 | (eval $ac_try) 2>&5 | |
18584 | ac_status=$? | |
18585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18586 | (exit $ac_status); }; }; then | |
18587 | ac_hi=$ac_mid | |
18588 | else | |
18589 | echo "$as_me: failed program was:" >&5 | |
18590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18591 | ||
18592 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18593 | fi | |
ac1cb8d3 | 18594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18595 | done |
18596 | case $ac_lo in | |
18597 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
18598 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18599 | See \`config.log' for more details." >&5 | |
18600 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18601 | See \`config.log' for more details." >&2;} | |
18602 | { (exit 1); exit 1; }; } ;; | |
18603 | esac | |
18604 | else | |
18605 | if test "$cross_compiling" = yes; then | |
ca5c6ac3 VZ |
18606 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18607 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18608 | { (exit 1); exit 1; }; } |
18609 | else | |
18610 | cat >conftest.$ac_ext <<_ACEOF | |
18611 | /* confdefs.h. */ | |
18612 | _ACEOF | |
18613 | cat confdefs.h >>conftest.$ac_ext | |
18614 | cat >>conftest.$ac_ext <<_ACEOF | |
18615 | /* end confdefs.h. */ | |
18616 | $ac_includes_default | |
18617 | long longval () { return (long) (sizeof (short)); } | |
18618 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
18619 | #include <stdio.h> | |
18620 | #include <stdlib.h> | |
18621 | int | |
18622 | main () | |
18623 | { | |
18624 | ||
18625 | FILE *f = fopen ("conftest.val", "w"); | |
18626 | if (! f) | |
18627 | exit (1); | |
18628 | if (((long) (sizeof (short))) < 0) | |
18629 | { | |
18630 | long i = longval (); | |
18631 | if (i != ((long) (sizeof (short)))) | |
18632 | exit (1); | |
18633 | fprintf (f, "%ld\n", i); | |
18634 | } | |
18635 | else | |
18636 | { | |
18637 | unsigned long i = ulongval (); | |
18638 | if (i != ((long) (sizeof (short)))) | |
18639 | exit (1); | |
18640 | fprintf (f, "%lu\n", i); | |
18641 | } | |
18642 | exit (ferror (f) || fclose (f) != 0); | |
18643 | ||
18644 | ; | |
18645 | return 0; | |
18646 | } | |
18647 | _ACEOF | |
18648 | rm -f conftest$ac_exeext | |
18649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18650 | (eval $ac_link) 2>&5 | |
18651 | ac_status=$? | |
18652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18653 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18655 | (eval $ac_try) 2>&5 | |
18656 | ac_status=$? | |
18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18658 | (exit $ac_status); }; }; then | |
18659 | ac_cv_sizeof_short=`cat conftest.val` | |
18660 | else | |
18661 | echo "$as_me: program exited with status $ac_status" >&5 | |
18662 | echo "$as_me: failed program was:" >&5 | |
18663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18664 | ||
18665 | ( exit $ac_status ) | |
18666 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18667 | See \`config.log' for more details." >&5 | |
18668 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18669 | See \`config.log' for more details." >&2;} | |
18670 | { (exit 1); exit 1; }; } | |
18671 | fi | |
ac1cb8d3 | 18672 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18673 | fi |
18674 | fi | |
18675 | rm -f conftest.val | |
18676 | else | |
18677 | ac_cv_sizeof_short=0 | |
18678 | fi | |
18679 | fi | |
18680 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
18681 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
18682 | cat >>confdefs.h <<_ACEOF | |
18683 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
18684 | _ACEOF | |
18685 | ||
18686 | ||
18687 | echo "$as_me:$LINENO: checking for void *" >&5 | |
18688 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
18689 | if test "${ac_cv_type_void_p+set}" = set; then | |
18690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18691 | else | |
18692 | cat >conftest.$ac_ext <<_ACEOF | |
18693 | /* confdefs.h. */ | |
18694 | _ACEOF | |
18695 | cat confdefs.h >>conftest.$ac_ext | |
18696 | cat >>conftest.$ac_ext <<_ACEOF | |
18697 | /* end confdefs.h. */ | |
18698 | $ac_includes_default | |
18699 | int | |
18700 | main () | |
18701 | { | |
18702 | if ((void * *) 0) | |
18703 | return 0; | |
18704 | if (sizeof (void *)) | |
18705 | return 0; | |
18706 | ; | |
18707 | return 0; | |
18708 | } | |
18709 | _ACEOF | |
18710 | rm -f conftest.$ac_objext | |
18711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18712 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18713 | ac_status=$? |
ac1cb8d3 VS |
18714 | grep -v '^ *+' conftest.er1 >conftest.err |
18715 | rm -f conftest.er1 | |
18716 | cat conftest.err >&5 | |
a848cd7e SC |
18717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18718 | (exit $ac_status); } && | |
ca5c6ac3 | 18719 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18721 | (eval $ac_try) 2>&5 | |
18722 | ac_status=$? | |
18723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18724 | (exit $ac_status); }; } && | |
18725 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18727 | (eval $ac_try) 2>&5 | |
18728 | ac_status=$? | |
18729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18730 | (exit $ac_status); }; }; then | |
18731 | ac_cv_type_void_p=yes | |
18732 | else | |
18733 | echo "$as_me: failed program was:" >&5 | |
18734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18735 | ||
18736 | ac_cv_type_void_p=no | |
18737 | fi | |
ac1cb8d3 | 18738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18739 | fi |
18740 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
18741 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
18742 | ||
18743 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
18744 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
18745 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
18746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18747 | else | |
18748 | if test "$ac_cv_type_void_p" = yes; then | |
18749 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18750 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18751 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18752 | # This bug is HP SR number 8606223364. | |
18753 | if test "$cross_compiling" = yes; then | |
18754 | # Depending upon the size, compute the lo and hi bounds. | |
18755 | cat >conftest.$ac_ext <<_ACEOF | |
18756 | /* confdefs.h. */ | |
18757 | _ACEOF | |
18758 | cat confdefs.h >>conftest.$ac_ext | |
18759 | cat >>conftest.$ac_ext <<_ACEOF | |
18760 | /* end confdefs.h. */ | |
18761 | $ac_includes_default | |
18762 | int | |
18763 | main () | |
18764 | { | |
18765 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
18766 | test_array [0] = 0 | |
18767 | ||
18768 | ; | |
18769 | return 0; | |
18770 | } | |
18771 | _ACEOF | |
18772 | rm -f conftest.$ac_objext | |
18773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18774 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18775 | ac_status=$? |
ac1cb8d3 VS |
18776 | grep -v '^ *+' conftest.er1 >conftest.err |
18777 | rm -f conftest.er1 | |
18778 | cat conftest.err >&5 | |
a848cd7e SC |
18779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18780 | (exit $ac_status); } && | |
ca5c6ac3 | 18781 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18783 | (eval $ac_try) 2>&5 | |
18784 | ac_status=$? | |
18785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18786 | (exit $ac_status); }; } && | |
18787 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18789 | (eval $ac_try) 2>&5 | |
18790 | ac_status=$? | |
18791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18792 | (exit $ac_status); }; }; then | |
18793 | ac_lo=0 ac_mid=0 | |
18794 | while :; do | |
18795 | cat >conftest.$ac_ext <<_ACEOF | |
18796 | /* confdefs.h. */ | |
18797 | _ACEOF | |
18798 | cat confdefs.h >>conftest.$ac_ext | |
18799 | cat >>conftest.$ac_ext <<_ACEOF | |
18800 | /* end confdefs.h. */ | |
18801 | $ac_includes_default | |
18802 | int | |
18803 | main () | |
18804 | { | |
18805 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18806 | test_array [0] = 0 | |
18807 | ||
18808 | ; | |
18809 | return 0; | |
18810 | } | |
18811 | _ACEOF | |
18812 | rm -f conftest.$ac_objext | |
18813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18814 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18815 | ac_status=$? |
ac1cb8d3 VS |
18816 | grep -v '^ *+' conftest.er1 >conftest.err |
18817 | rm -f conftest.er1 | |
18818 | cat conftest.err >&5 | |
a848cd7e SC |
18819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18820 | (exit $ac_status); } && | |
ca5c6ac3 | 18821 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18823 | (eval $ac_try) 2>&5 | |
18824 | ac_status=$? | |
18825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18826 | (exit $ac_status); }; } && | |
18827 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18829 | (eval $ac_try) 2>&5 | |
18830 | ac_status=$? | |
18831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18832 | (exit $ac_status); }; }; then | |
18833 | ac_hi=$ac_mid; break | |
18834 | else | |
18835 | echo "$as_me: failed program was:" >&5 | |
18836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18837 | ||
18838 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18839 | if test $ac_lo -le $ac_mid; then |
18840 | ac_lo= ac_hi= | |
18841 | break | |
18842 | fi | |
18843 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18844 | fi |
ac1cb8d3 | 18845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18846 | done |
18847 | else | |
18848 | echo "$as_me: failed program was:" >&5 | |
18849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18850 | ||
18851 | cat >conftest.$ac_ext <<_ACEOF | |
18852 | /* confdefs.h. */ | |
18853 | _ACEOF | |
18854 | cat confdefs.h >>conftest.$ac_ext | |
18855 | cat >>conftest.$ac_ext <<_ACEOF | |
18856 | /* end confdefs.h. */ | |
18857 | $ac_includes_default | |
18858 | int | |
18859 | main () | |
18860 | { | |
18861 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
18862 | test_array [0] = 0 | |
18863 | ||
18864 | ; | |
18865 | return 0; | |
18866 | } | |
18867 | _ACEOF | |
18868 | rm -f conftest.$ac_objext | |
18869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18870 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18871 | ac_status=$? |
ac1cb8d3 VS |
18872 | grep -v '^ *+' conftest.er1 >conftest.err |
18873 | rm -f conftest.er1 | |
18874 | cat conftest.err >&5 | |
a848cd7e SC |
18875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18876 | (exit $ac_status); } && | |
ca5c6ac3 | 18877 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18879 | (eval $ac_try) 2>&5 | |
18880 | ac_status=$? | |
18881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18882 | (exit $ac_status); }; } && | |
18883 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18885 | (eval $ac_try) 2>&5 | |
18886 | ac_status=$? | |
18887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18888 | (exit $ac_status); }; }; then | |
18889 | ac_hi=-1 ac_mid=-1 | |
18890 | while :; do | |
18891 | cat >conftest.$ac_ext <<_ACEOF | |
18892 | /* confdefs.h. */ | |
18893 | _ACEOF | |
18894 | cat confdefs.h >>conftest.$ac_ext | |
18895 | cat >>conftest.$ac_ext <<_ACEOF | |
18896 | /* end confdefs.h. */ | |
18897 | $ac_includes_default | |
18898 | int | |
18899 | main () | |
18900 | { | |
18901 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
18902 | test_array [0] = 0 | |
18903 | ||
18904 | ; | |
18905 | return 0; | |
18906 | } | |
18907 | _ACEOF | |
18908 | rm -f conftest.$ac_objext | |
18909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18910 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18911 | ac_status=$? |
ac1cb8d3 VS |
18912 | grep -v '^ *+' conftest.er1 >conftest.err |
18913 | rm -f conftest.er1 | |
18914 | cat conftest.err >&5 | |
a848cd7e SC |
18915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18916 | (exit $ac_status); } && | |
ca5c6ac3 | 18917 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18919 | (eval $ac_try) 2>&5 | |
18920 | ac_status=$? | |
18921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18922 | (exit $ac_status); }; } && | |
18923 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18925 | (eval $ac_try) 2>&5 | |
18926 | ac_status=$? | |
18927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18928 | (exit $ac_status); }; }; then | |
18929 | ac_lo=$ac_mid; break | |
18930 | else | |
18931 | echo "$as_me: failed program was:" >&5 | |
18932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18933 | ||
18934 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18935 | if test $ac_mid -le $ac_hi; then |
18936 | ac_lo= ac_hi= | |
18937 | break | |
18938 | fi | |
18939 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18940 | fi |
ac1cb8d3 | 18941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18942 | done |
18943 | else | |
18944 | echo "$as_me: failed program was:" >&5 | |
18945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18946 | ||
18947 | ac_lo= ac_hi= | |
18948 | fi | |
ac1cb8d3 | 18949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18950 | fi |
ac1cb8d3 | 18951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18952 | # Binary search between lo and hi bounds. |
18953 | while test "x$ac_lo" != "x$ac_hi"; do | |
18954 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18955 | cat >conftest.$ac_ext <<_ACEOF | |
18956 | /* confdefs.h. */ | |
18957 | _ACEOF | |
18958 | cat confdefs.h >>conftest.$ac_ext | |
18959 | cat >>conftest.$ac_ext <<_ACEOF | |
18960 | /* end confdefs.h. */ | |
18961 | $ac_includes_default | |
18962 | int | |
18963 | main () | |
18964 | { | |
18965 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18966 | test_array [0] = 0 | |
18967 | ||
18968 | ; | |
18969 | return 0; | |
18970 | } | |
18971 | _ACEOF | |
18972 | rm -f conftest.$ac_objext | |
18973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18974 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18975 | ac_status=$? |
ac1cb8d3 VS |
18976 | grep -v '^ *+' conftest.er1 >conftest.err |
18977 | rm -f conftest.er1 | |
18978 | cat conftest.err >&5 | |
a848cd7e SC |
18979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18980 | (exit $ac_status); } && | |
ca5c6ac3 | 18981 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18983 | (eval $ac_try) 2>&5 | |
18984 | ac_status=$? | |
18985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18986 | (exit $ac_status); }; } && | |
18987 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18989 | (eval $ac_try) 2>&5 | |
18990 | ac_status=$? | |
18991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18992 | (exit $ac_status); }; }; then | |
18993 | ac_hi=$ac_mid | |
18994 | else | |
18995 | echo "$as_me: failed program was:" >&5 | |
18996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18997 | ||
18998 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18999 | fi | |
ac1cb8d3 | 19000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19001 | done |
19002 | case $ac_lo in | |
19003 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
19004 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
19005 | See \`config.log' for more details." >&5 | |
19006 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
19007 | See \`config.log' for more details." >&2;} | |
19008 | { (exit 1); exit 1; }; } ;; | |
19009 | esac | |
19010 | else | |
19011 | if test "$cross_compiling" = yes; then | |
ca5c6ac3 VZ |
19012 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19013 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19014 | { (exit 1); exit 1; }; } |
19015 | else | |
19016 | cat >conftest.$ac_ext <<_ACEOF | |
19017 | /* confdefs.h. */ | |
19018 | _ACEOF | |
19019 | cat confdefs.h >>conftest.$ac_ext | |
19020 | cat >>conftest.$ac_ext <<_ACEOF | |
19021 | /* end confdefs.h. */ | |
19022 | $ac_includes_default | |
19023 | long longval () { return (long) (sizeof (void *)); } | |
19024 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
19025 | #include <stdio.h> | |
19026 | #include <stdlib.h> | |
19027 | int | |
19028 | main () | |
19029 | { | |
19030 | ||
19031 | FILE *f = fopen ("conftest.val", "w"); | |
19032 | if (! f) | |
19033 | exit (1); | |
19034 | if (((long) (sizeof (void *))) < 0) | |
19035 | { | |
19036 | long i = longval (); | |
19037 | if (i != ((long) (sizeof (void *)))) | |
19038 | exit (1); | |
19039 | fprintf (f, "%ld\n", i); | |
19040 | } | |
19041 | else | |
19042 | { | |
19043 | unsigned long i = ulongval (); | |
19044 | if (i != ((long) (sizeof (void *)))) | |
19045 | exit (1); | |
19046 | fprintf (f, "%lu\n", i); | |
19047 | } | |
19048 | exit (ferror (f) || fclose (f) != 0); | |
19049 | ||
19050 | ; | |
19051 | return 0; | |
19052 | } | |
19053 | _ACEOF | |
19054 | rm -f conftest$ac_exeext | |
19055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19056 | (eval $ac_link) 2>&5 | |
19057 | ac_status=$? | |
19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19059 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19061 | (eval $ac_try) 2>&5 | |
19062 | ac_status=$? | |
19063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19064 | (exit $ac_status); }; }; then | |
19065 | ac_cv_sizeof_void_p=`cat conftest.val` | |
19066 | else | |
19067 | echo "$as_me: program exited with status $ac_status" >&5 | |
19068 | echo "$as_me: failed program was:" >&5 | |
19069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19070 | ||
19071 | ( exit $ac_status ) | |
19072 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
19073 | See \`config.log' for more details." >&5 | |
19074 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
19075 | See \`config.log' for more details." >&2;} | |
19076 | { (exit 1); exit 1; }; } | |
19077 | fi | |
ac1cb8d3 | 19078 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19079 | fi |
19080 | fi | |
19081 | rm -f conftest.val | |
19082 | else | |
19083 | ac_cv_sizeof_void_p=0 | |
19084 | fi | |
19085 | fi | |
19086 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
19087 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
19088 | cat >>confdefs.h <<_ACEOF | |
19089 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
19090 | _ACEOF | |
19091 | ||
19092 | ||
19093 | echo "$as_me:$LINENO: checking for int" >&5 | |
19094 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
19095 | if test "${ac_cv_type_int+set}" = set; then | |
19096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19097 | else | |
19098 | cat >conftest.$ac_ext <<_ACEOF | |
19099 | /* confdefs.h. */ | |
19100 | _ACEOF | |
19101 | cat confdefs.h >>conftest.$ac_ext | |
19102 | cat >>conftest.$ac_ext <<_ACEOF | |
19103 | /* end confdefs.h. */ | |
19104 | $ac_includes_default | |
19105 | int | |
19106 | main () | |
19107 | { | |
19108 | if ((int *) 0) | |
19109 | return 0; | |
19110 | if (sizeof (int)) | |
19111 | return 0; | |
19112 | ; | |
19113 | return 0; | |
19114 | } | |
19115 | _ACEOF | |
19116 | rm -f conftest.$ac_objext | |
19117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19118 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19119 | ac_status=$? |
ac1cb8d3 VS |
19120 | grep -v '^ *+' conftest.er1 >conftest.err |
19121 | rm -f conftest.er1 | |
19122 | cat conftest.err >&5 | |
a848cd7e SC |
19123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19124 | (exit $ac_status); } && | |
ca5c6ac3 | 19125 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19127 | (eval $ac_try) 2>&5 | |
19128 | ac_status=$? | |
19129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19130 | (exit $ac_status); }; } && | |
19131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19133 | (eval $ac_try) 2>&5 | |
19134 | ac_status=$? | |
19135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19136 | (exit $ac_status); }; }; then | |
19137 | ac_cv_type_int=yes | |
19138 | else | |
19139 | echo "$as_me: failed program was:" >&5 | |
19140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19141 | ||
19142 | ac_cv_type_int=no | |
19143 | fi | |
ac1cb8d3 | 19144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19145 | fi |
19146 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
19147 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
19148 | ||
19149 | echo "$as_me:$LINENO: checking size of int" >&5 | |
19150 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
19151 | if test "${ac_cv_sizeof_int+set}" = set; then | |
19152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19153 | else | |
19154 | if test "$ac_cv_type_int" = yes; then | |
19155 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19156 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19157 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19158 | # This bug is HP SR number 8606223364. | |
19159 | if test "$cross_compiling" = yes; then | |
19160 | # Depending upon the size, compute the lo and hi bounds. | |
19161 | cat >conftest.$ac_ext <<_ACEOF | |
19162 | /* confdefs.h. */ | |
19163 | _ACEOF | |
19164 | cat confdefs.h >>conftest.$ac_ext | |
19165 | cat >>conftest.$ac_ext <<_ACEOF | |
19166 | /* end confdefs.h. */ | |
19167 | $ac_includes_default | |
19168 | int | |
19169 | main () | |
19170 | { | |
19171 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
19172 | test_array [0] = 0 | |
19173 | ||
19174 | ; | |
19175 | return 0; | |
19176 | } | |
19177 | _ACEOF | |
19178 | rm -f conftest.$ac_objext | |
19179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19180 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19181 | ac_status=$? |
ac1cb8d3 VS |
19182 | grep -v '^ *+' conftest.er1 >conftest.err |
19183 | rm -f conftest.er1 | |
19184 | cat conftest.err >&5 | |
a848cd7e SC |
19185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19186 | (exit $ac_status); } && | |
ca5c6ac3 | 19187 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19189 | (eval $ac_try) 2>&5 | |
19190 | ac_status=$? | |
19191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19192 | (exit $ac_status); }; } && | |
19193 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19195 | (eval $ac_try) 2>&5 | |
19196 | ac_status=$? | |
19197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19198 | (exit $ac_status); }; }; then | |
19199 | ac_lo=0 ac_mid=0 | |
19200 | while :; do | |
19201 | cat >conftest.$ac_ext <<_ACEOF | |
19202 | /* confdefs.h. */ | |
19203 | _ACEOF | |
19204 | cat confdefs.h >>conftest.$ac_ext | |
19205 | cat >>conftest.$ac_ext <<_ACEOF | |
19206 | /* end confdefs.h. */ | |
19207 | $ac_includes_default | |
19208 | int | |
19209 | main () | |
19210 | { | |
19211 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
19212 | test_array [0] = 0 | |
19213 | ||
19214 | ; | |
19215 | return 0; | |
19216 | } | |
19217 | _ACEOF | |
19218 | rm -f conftest.$ac_objext | |
19219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19220 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19221 | ac_status=$? |
ac1cb8d3 VS |
19222 | grep -v '^ *+' conftest.er1 >conftest.err |
19223 | rm -f conftest.er1 | |
19224 | cat conftest.err >&5 | |
a848cd7e SC |
19225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19226 | (exit $ac_status); } && | |
ca5c6ac3 | 19227 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19229 | (eval $ac_try) 2>&5 | |
19230 | ac_status=$? | |
19231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19232 | (exit $ac_status); }; } && | |
19233 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19235 | (eval $ac_try) 2>&5 | |
19236 | ac_status=$? | |
19237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19238 | (exit $ac_status); }; }; then | |
19239 | ac_hi=$ac_mid; break | |
19240 | else | |
19241 | echo "$as_me: failed program was:" >&5 | |
19242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19243 | ||
19244 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19245 | if test $ac_lo -le $ac_mid; then |
19246 | ac_lo= ac_hi= | |
19247 | break | |
19248 | fi | |
19249 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19250 | fi |
ac1cb8d3 | 19251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19252 | done |
19253 | else | |
19254 | echo "$as_me: failed program was:" >&5 | |
19255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19256 | ||
19257 | cat >conftest.$ac_ext <<_ACEOF | |
19258 | /* confdefs.h. */ | |
19259 | _ACEOF | |
19260 | cat confdefs.h >>conftest.$ac_ext | |
19261 | cat >>conftest.$ac_ext <<_ACEOF | |
19262 | /* end confdefs.h. */ | |
19263 | $ac_includes_default | |
19264 | int | |
19265 | main () | |
19266 | { | |
19267 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
19268 | test_array [0] = 0 | |
19269 | ||
19270 | ; | |
19271 | return 0; | |
19272 | } | |
19273 | _ACEOF | |
19274 | rm -f conftest.$ac_objext | |
19275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19276 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19277 | ac_status=$? |
ac1cb8d3 VS |
19278 | grep -v '^ *+' conftest.er1 >conftest.err |
19279 | rm -f conftest.er1 | |
19280 | cat conftest.err >&5 | |
a848cd7e SC |
19281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19282 | (exit $ac_status); } && | |
ca5c6ac3 | 19283 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19285 | (eval $ac_try) 2>&5 | |
19286 | ac_status=$? | |
19287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19288 | (exit $ac_status); }; } && | |
19289 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19291 | (eval $ac_try) 2>&5 | |
19292 | ac_status=$? | |
19293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19294 | (exit $ac_status); }; }; then | |
19295 | ac_hi=-1 ac_mid=-1 | |
19296 | while :; do | |
19297 | cat >conftest.$ac_ext <<_ACEOF | |
19298 | /* confdefs.h. */ | |
19299 | _ACEOF | |
19300 | cat confdefs.h >>conftest.$ac_ext | |
19301 | cat >>conftest.$ac_ext <<_ACEOF | |
19302 | /* end confdefs.h. */ | |
19303 | $ac_includes_default | |
19304 | int | |
19305 | main () | |
19306 | { | |
19307 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
19308 | test_array [0] = 0 | |
19309 | ||
19310 | ; | |
19311 | return 0; | |
19312 | } | |
19313 | _ACEOF | |
19314 | rm -f conftest.$ac_objext | |
19315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19316 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19317 | ac_status=$? |
ac1cb8d3 VS |
19318 | grep -v '^ *+' conftest.er1 >conftest.err |
19319 | rm -f conftest.er1 | |
19320 | cat conftest.err >&5 | |
a848cd7e SC |
19321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19322 | (exit $ac_status); } && | |
ca5c6ac3 | 19323 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19325 | (eval $ac_try) 2>&5 | |
19326 | ac_status=$? | |
19327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19328 | (exit $ac_status); }; } && | |
19329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19331 | (eval $ac_try) 2>&5 | |
19332 | ac_status=$? | |
19333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19334 | (exit $ac_status); }; }; then | |
19335 | ac_lo=$ac_mid; break | |
19336 | else | |
19337 | echo "$as_me: failed program was:" >&5 | |
19338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19339 | ||
19340 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19341 | if test $ac_mid -le $ac_hi; then |
19342 | ac_lo= ac_hi= | |
19343 | break | |
19344 | fi | |
19345 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19346 | fi |
ac1cb8d3 | 19347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19348 | done |
19349 | else | |
19350 | echo "$as_me: failed program was:" >&5 | |
19351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19352 | ||
19353 | ac_lo= ac_hi= | |
19354 | fi | |
ac1cb8d3 | 19355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19356 | fi |
ac1cb8d3 | 19357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19358 | # Binary search between lo and hi bounds. |
19359 | while test "x$ac_lo" != "x$ac_hi"; do | |
19360 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19361 | cat >conftest.$ac_ext <<_ACEOF | |
19362 | /* confdefs.h. */ | |
19363 | _ACEOF | |
19364 | cat confdefs.h >>conftest.$ac_ext | |
19365 | cat >>conftest.$ac_ext <<_ACEOF | |
19366 | /* end confdefs.h. */ | |
19367 | $ac_includes_default | |
19368 | int | |
19369 | main () | |
19370 | { | |
19371 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
19372 | test_array [0] = 0 | |
19373 | ||
19374 | ; | |
19375 | return 0; | |
19376 | } | |
19377 | _ACEOF | |
19378 | rm -f conftest.$ac_objext | |
19379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19380 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19381 | ac_status=$? |
ac1cb8d3 VS |
19382 | grep -v '^ *+' conftest.er1 >conftest.err |
19383 | rm -f conftest.er1 | |
19384 | cat conftest.err >&5 | |
a848cd7e SC |
19385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19386 | (exit $ac_status); } && | |
ca5c6ac3 | 19387 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19389 | (eval $ac_try) 2>&5 | |
19390 | ac_status=$? | |
19391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19392 | (exit $ac_status); }; } && | |
19393 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19395 | (eval $ac_try) 2>&5 | |
19396 | ac_status=$? | |
19397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19398 | (exit $ac_status); }; }; then | |
19399 | ac_hi=$ac_mid | |
19400 | else | |
19401 | echo "$as_me: failed program was:" >&5 | |
19402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19403 | ||
19404 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19405 | fi | |
ac1cb8d3 | 19406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19407 | done |
19408 | case $ac_lo in | |
19409 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
19410 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
19411 | See \`config.log' for more details." >&5 | |
19412 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
19413 | See \`config.log' for more details." >&2;} | |
19414 | { (exit 1); exit 1; }; } ;; | |
19415 | esac | |
19416 | else | |
19417 | if test "$cross_compiling" = yes; then | |
ca5c6ac3 VZ |
19418 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19419 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19420 | { (exit 1); exit 1; }; } |
19421 | else | |
19422 | cat >conftest.$ac_ext <<_ACEOF | |
19423 | /* confdefs.h. */ | |
19424 | _ACEOF | |
19425 | cat confdefs.h >>conftest.$ac_ext | |
19426 | cat >>conftest.$ac_ext <<_ACEOF | |
19427 | /* end confdefs.h. */ | |
19428 | $ac_includes_default | |
19429 | long longval () { return (long) (sizeof (int)); } | |
19430 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
19431 | #include <stdio.h> | |
19432 | #include <stdlib.h> | |
19433 | int | |
19434 | main () | |
19435 | { | |
19436 | ||
19437 | FILE *f = fopen ("conftest.val", "w"); | |
19438 | if (! f) | |
19439 | exit (1); | |
19440 | if (((long) (sizeof (int))) < 0) | |
19441 | { | |
19442 | long i = longval (); | |
19443 | if (i != ((long) (sizeof (int)))) | |
19444 | exit (1); | |
19445 | fprintf (f, "%ld\n", i); | |
19446 | } | |
19447 | else | |
19448 | { | |
19449 | unsigned long i = ulongval (); | |
19450 | if (i != ((long) (sizeof (int)))) | |
19451 | exit (1); | |
19452 | fprintf (f, "%lu\n", i); | |
19453 | } | |
19454 | exit (ferror (f) || fclose (f) != 0); | |
19455 | ||
19456 | ; | |
19457 | return 0; | |
19458 | } | |
19459 | _ACEOF | |
19460 | rm -f conftest$ac_exeext | |
19461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19462 | (eval $ac_link) 2>&5 | |
19463 | ac_status=$? | |
19464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19465 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19467 | (eval $ac_try) 2>&5 | |
19468 | ac_status=$? | |
19469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19470 | (exit $ac_status); }; }; then | |
19471 | ac_cv_sizeof_int=`cat conftest.val` | |
19472 | else | |
19473 | echo "$as_me: program exited with status $ac_status" >&5 | |
19474 | echo "$as_me: failed program was:" >&5 | |
19475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19476 | ||
19477 | ( exit $ac_status ) | |
19478 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
19479 | See \`config.log' for more details." >&5 | |
19480 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
19481 | See \`config.log' for more details." >&2;} | |
19482 | { (exit 1); exit 1; }; } | |
19483 | fi | |
ac1cb8d3 | 19484 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19485 | fi |
19486 | fi | |
19487 | rm -f conftest.val | |
19488 | else | |
19489 | ac_cv_sizeof_int=0 | |
19490 | fi | |
19491 | fi | |
19492 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
19493 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
19494 | cat >>confdefs.h <<_ACEOF | |
19495 | #define SIZEOF_INT $ac_cv_sizeof_int | |
19496 | _ACEOF | |
19497 | ||
19498 | ||
19499 | echo "$as_me:$LINENO: checking for long" >&5 | |
19500 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
19501 | if test "${ac_cv_type_long+set}" = set; then | |
19502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19503 | else | |
19504 | cat >conftest.$ac_ext <<_ACEOF | |
19505 | /* confdefs.h. */ | |
19506 | _ACEOF | |
19507 | cat confdefs.h >>conftest.$ac_ext | |
19508 | cat >>conftest.$ac_ext <<_ACEOF | |
19509 | /* end confdefs.h. */ | |
19510 | $ac_includes_default | |
19511 | int | |
19512 | main () | |
19513 | { | |
19514 | if ((long *) 0) | |
19515 | return 0; | |
19516 | if (sizeof (long)) | |
19517 | return 0; | |
19518 | ; | |
19519 | return 0; | |
19520 | } | |
19521 | _ACEOF | |
19522 | rm -f conftest.$ac_objext | |
19523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19524 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19525 | ac_status=$? |
ac1cb8d3 VS |
19526 | grep -v '^ *+' conftest.er1 >conftest.err |
19527 | rm -f conftest.er1 | |
19528 | cat conftest.err >&5 | |
a848cd7e SC |
19529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19530 | (exit $ac_status); } && | |
ca5c6ac3 | 19531 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19533 | (eval $ac_try) 2>&5 | |
19534 | ac_status=$? | |
19535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19536 | (exit $ac_status); }; } && | |
19537 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19539 | (eval $ac_try) 2>&5 | |
19540 | ac_status=$? | |
19541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19542 | (exit $ac_status); }; }; then | |
19543 | ac_cv_type_long=yes | |
19544 | else | |
19545 | echo "$as_me: failed program was:" >&5 | |
19546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19547 | ||
19548 | ac_cv_type_long=no | |
19549 | fi | |
ac1cb8d3 | 19550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19551 | fi |
19552 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
19553 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
19554 | ||
19555 | echo "$as_me:$LINENO: checking size of long" >&5 | |
19556 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
19557 | if test "${ac_cv_sizeof_long+set}" = set; then | |
19558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19559 | else | |
19560 | if test "$ac_cv_type_long" = yes; then | |
19561 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19562 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19563 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19564 | # This bug is HP SR number 8606223364. | |
19565 | if test "$cross_compiling" = yes; then | |
19566 | # Depending upon the size, compute the lo and hi bounds. | |
19567 | cat >conftest.$ac_ext <<_ACEOF | |
19568 | /* confdefs.h. */ | |
19569 | _ACEOF | |
19570 | cat confdefs.h >>conftest.$ac_ext | |
19571 | cat >>conftest.$ac_ext <<_ACEOF | |
19572 | /* end confdefs.h. */ | |
19573 | $ac_includes_default | |
19574 | int | |
19575 | main () | |
19576 | { | |
19577 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
19578 | test_array [0] = 0 | |
19579 | ||
19580 | ; | |
19581 | return 0; | |
19582 | } | |
19583 | _ACEOF | |
19584 | rm -f conftest.$ac_objext | |
19585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19586 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19587 | ac_status=$? |
ac1cb8d3 VS |
19588 | grep -v '^ *+' conftest.er1 >conftest.err |
19589 | rm -f conftest.er1 | |
19590 | cat conftest.err >&5 | |
a848cd7e SC |
19591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19592 | (exit $ac_status); } && | |
ca5c6ac3 | 19593 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19595 | (eval $ac_try) 2>&5 | |
19596 | ac_status=$? | |
19597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19598 | (exit $ac_status); }; } && | |
19599 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19601 | (eval $ac_try) 2>&5 | |
19602 | ac_status=$? | |
19603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19604 | (exit $ac_status); }; }; then | |
19605 | ac_lo=0 ac_mid=0 | |
19606 | while :; do | |
19607 | cat >conftest.$ac_ext <<_ACEOF | |
19608 | /* confdefs.h. */ | |
19609 | _ACEOF | |
19610 | cat confdefs.h >>conftest.$ac_ext | |
19611 | cat >>conftest.$ac_ext <<_ACEOF | |
19612 | /* end confdefs.h. */ | |
19613 | $ac_includes_default | |
19614 | int | |
19615 | main () | |
19616 | { | |
19617 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19618 | test_array [0] = 0 | |
19619 | ||
19620 | ; | |
19621 | return 0; | |
19622 | } | |
19623 | _ACEOF | |
19624 | rm -f conftest.$ac_objext | |
19625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19626 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19627 | ac_status=$? |
ac1cb8d3 VS |
19628 | grep -v '^ *+' conftest.er1 >conftest.err |
19629 | rm -f conftest.er1 | |
19630 | cat conftest.err >&5 | |
a848cd7e SC |
19631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19632 | (exit $ac_status); } && | |
ca5c6ac3 | 19633 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19635 | (eval $ac_try) 2>&5 | |
19636 | ac_status=$? | |
19637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19638 | (exit $ac_status); }; } && | |
19639 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19641 | (eval $ac_try) 2>&5 | |
19642 | ac_status=$? | |
19643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19644 | (exit $ac_status); }; }; then | |
19645 | ac_hi=$ac_mid; break | |
19646 | else | |
19647 | echo "$as_me: failed program was:" >&5 | |
19648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19649 | ||
19650 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19651 | if test $ac_lo -le $ac_mid; then |
19652 | ac_lo= ac_hi= | |
19653 | break | |
19654 | fi | |
19655 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19656 | fi |
ac1cb8d3 | 19657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19658 | done |
19659 | else | |
19660 | echo "$as_me: failed program was:" >&5 | |
19661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19662 | ||
19663 | cat >conftest.$ac_ext <<_ACEOF | |
19664 | /* confdefs.h. */ | |
19665 | _ACEOF | |
19666 | cat confdefs.h >>conftest.$ac_ext | |
19667 | cat >>conftest.$ac_ext <<_ACEOF | |
19668 | /* end confdefs.h. */ | |
19669 | $ac_includes_default | |
19670 | int | |
19671 | main () | |
19672 | { | |
19673 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
19674 | test_array [0] = 0 | |
19675 | ||
19676 | ; | |
19677 | return 0; | |
19678 | } | |
19679 | _ACEOF | |
19680 | rm -f conftest.$ac_objext | |
19681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19682 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19683 | ac_status=$? |
ac1cb8d3 VS |
19684 | grep -v '^ *+' conftest.er1 >conftest.err |
19685 | rm -f conftest.er1 | |
19686 | cat conftest.err >&5 | |
a848cd7e SC |
19687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19688 | (exit $ac_status); } && | |
ca5c6ac3 | 19689 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19691 | (eval $ac_try) 2>&5 | |
19692 | ac_status=$? | |
19693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19694 | (exit $ac_status); }; } && | |
19695 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19697 | (eval $ac_try) 2>&5 | |
19698 | ac_status=$? | |
19699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19700 | (exit $ac_status); }; }; then | |
19701 | ac_hi=-1 ac_mid=-1 | |
19702 | while :; do | |
19703 | cat >conftest.$ac_ext <<_ACEOF | |
19704 | /* confdefs.h. */ | |
19705 | _ACEOF | |
19706 | cat confdefs.h >>conftest.$ac_ext | |
19707 | cat >>conftest.$ac_ext <<_ACEOF | |
19708 | /* end confdefs.h. */ | |
19709 | $ac_includes_default | |
19710 | int | |
19711 | main () | |
19712 | { | |
19713 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
19714 | test_array [0] = 0 | |
19715 | ||
19716 | ; | |
19717 | return 0; | |
19718 | } | |
19719 | _ACEOF | |
19720 | rm -f conftest.$ac_objext | |
19721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19722 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19723 | ac_status=$? |
ac1cb8d3 VS |
19724 | grep -v '^ *+' conftest.er1 >conftest.err |
19725 | rm -f conftest.er1 | |
19726 | cat conftest.err >&5 | |
a848cd7e SC |
19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19728 | (exit $ac_status); } && | |
ca5c6ac3 | 19729 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19731 | (eval $ac_try) 2>&5 | |
19732 | ac_status=$? | |
19733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19734 | (exit $ac_status); }; } && | |
19735 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19737 | (eval $ac_try) 2>&5 | |
19738 | ac_status=$? | |
19739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19740 | (exit $ac_status); }; }; then | |
19741 | ac_lo=$ac_mid; break | |
19742 | else | |
19743 | echo "$as_me: failed program was:" >&5 | |
19744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19745 | ||
19746 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19747 | if test $ac_mid -le $ac_hi; then |
19748 | ac_lo= ac_hi= | |
19749 | break | |
19750 | fi | |
19751 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19752 | fi |
ac1cb8d3 | 19753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19754 | done |
19755 | else | |
19756 | echo "$as_me: failed program was:" >&5 | |
19757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19758 | ||
19759 | ac_lo= ac_hi= | |
19760 | fi | |
ac1cb8d3 | 19761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19762 | fi |
ac1cb8d3 | 19763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19764 | # Binary search between lo and hi bounds. |
19765 | while test "x$ac_lo" != "x$ac_hi"; do | |
19766 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19767 | cat >conftest.$ac_ext <<_ACEOF | |
19768 | /* confdefs.h. */ | |
19769 | _ACEOF | |
19770 | cat confdefs.h >>conftest.$ac_ext | |
19771 | cat >>conftest.$ac_ext <<_ACEOF | |
19772 | /* end confdefs.h. */ | |
19773 | $ac_includes_default | |
19774 | int | |
19775 | main () | |
19776 | { | |
19777 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19778 | test_array [0] = 0 | |
19779 | ||
19780 | ; | |
19781 | return 0; | |
19782 | } | |
19783 | _ACEOF | |
19784 | rm -f conftest.$ac_objext | |
19785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19786 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19787 | ac_status=$? |
ac1cb8d3 VS |
19788 | grep -v '^ *+' conftest.er1 >conftest.err |
19789 | rm -f conftest.er1 | |
19790 | cat conftest.err >&5 | |
a848cd7e SC |
19791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19792 | (exit $ac_status); } && | |
ca5c6ac3 | 19793 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
19799 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19801 | (eval $ac_try) 2>&5 | |
19802 | ac_status=$? | |
19803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19804 | (exit $ac_status); }; }; then | |
19805 | ac_hi=$ac_mid | |
19806 | else | |
19807 | echo "$as_me: failed program was:" >&5 | |
19808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19809 | ||
19810 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19811 | fi | |
ac1cb8d3 | 19812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19813 | done |
19814 | case $ac_lo in | |
19815 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
19816 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19817 | See \`config.log' for more details." >&5 | |
19818 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19819 | See \`config.log' for more details." >&2;} | |
19820 | { (exit 1); exit 1; }; } ;; | |
19821 | esac | |
19822 | else | |
19823 | if test "$cross_compiling" = yes; then | |
ca5c6ac3 VZ |
19824 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19825 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19826 | { (exit 1); exit 1; }; } |
19827 | else | |
19828 | cat >conftest.$ac_ext <<_ACEOF | |
19829 | /* confdefs.h. */ | |
19830 | _ACEOF | |
19831 | cat confdefs.h >>conftest.$ac_ext | |
19832 | cat >>conftest.$ac_ext <<_ACEOF | |
19833 | /* end confdefs.h. */ | |
19834 | $ac_includes_default | |
19835 | long longval () { return (long) (sizeof (long)); } | |
19836 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
19837 | #include <stdio.h> | |
19838 | #include <stdlib.h> | |
19839 | int | |
19840 | main () | |
19841 | { | |
19842 | ||
19843 | FILE *f = fopen ("conftest.val", "w"); | |
19844 | if (! f) | |
19845 | exit (1); | |
19846 | if (((long) (sizeof (long))) < 0) | |
19847 | { | |
19848 | long i = longval (); | |
19849 | if (i != ((long) (sizeof (long)))) | |
19850 | exit (1); | |
19851 | fprintf (f, "%ld\n", i); | |
19852 | } | |
19853 | else | |
19854 | { | |
19855 | unsigned long i = ulongval (); | |
19856 | if (i != ((long) (sizeof (long)))) | |
19857 | exit (1); | |
19858 | fprintf (f, "%lu\n", i); | |
19859 | } | |
19860 | exit (ferror (f) || fclose (f) != 0); | |
19861 | ||
19862 | ; | |
19863 | return 0; | |
19864 | } | |
19865 | _ACEOF | |
19866 | rm -f conftest$ac_exeext | |
19867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19868 | (eval $ac_link) 2>&5 | |
19869 | ac_status=$? | |
19870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19871 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19873 | (eval $ac_try) 2>&5 | |
19874 | ac_status=$? | |
19875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19876 | (exit $ac_status); }; }; then | |
19877 | ac_cv_sizeof_long=`cat conftest.val` | |
19878 | else | |
19879 | echo "$as_me: program exited with status $ac_status" >&5 | |
19880 | echo "$as_me: failed program was:" >&5 | |
19881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19882 | ||
19883 | ( exit $ac_status ) | |
19884 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19885 | See \`config.log' for more details." >&5 | |
19886 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19887 | See \`config.log' for more details." >&2;} | |
19888 | { (exit 1); exit 1; }; } | |
19889 | fi | |
ac1cb8d3 | 19890 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19891 | fi |
19892 | fi | |
19893 | rm -f conftest.val | |
19894 | else | |
19895 | ac_cv_sizeof_long=0 | |
19896 | fi | |
19897 | fi | |
19898 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
19899 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
19900 | cat >>confdefs.h <<_ACEOF | |
19901 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
19902 | _ACEOF | |
19903 | ||
19904 | ||
19905 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
19906 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
19907 | if test "${ac_cv_type_size_t+set}" = set; then | |
19908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19909 | else | |
19910 | cat >conftest.$ac_ext <<_ACEOF | |
19911 | /* confdefs.h. */ | |
19912 | _ACEOF | |
19913 | cat confdefs.h >>conftest.$ac_ext | |
19914 | cat >>conftest.$ac_ext <<_ACEOF | |
19915 | /* end confdefs.h. */ | |
19916 | $ac_includes_default | |
19917 | int | |
19918 | main () | |
19919 | { | |
19920 | if ((size_t *) 0) | |
19921 | return 0; | |
19922 | if (sizeof (size_t)) | |
19923 | return 0; | |
19924 | ; | |
19925 | return 0; | |
19926 | } | |
19927 | _ACEOF | |
19928 | rm -f conftest.$ac_objext | |
19929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19930 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19931 | ac_status=$? |
ac1cb8d3 VS |
19932 | grep -v '^ *+' conftest.er1 >conftest.err |
19933 | rm -f conftest.er1 | |
19934 | cat conftest.err >&5 | |
a848cd7e SC |
19935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19936 | (exit $ac_status); } && | |
ca5c6ac3 | 19937 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19939 | (eval $ac_try) 2>&5 | |
19940 | ac_status=$? | |
19941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19942 | (exit $ac_status); }; } && | |
19943 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19945 | (eval $ac_try) 2>&5 | |
19946 | ac_status=$? | |
19947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19948 | (exit $ac_status); }; }; then | |
19949 | ac_cv_type_size_t=yes | |
19950 | else | |
19951 | echo "$as_me: failed program was:" >&5 | |
19952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19953 | ||
19954 | ac_cv_type_size_t=no | |
19955 | fi | |
ac1cb8d3 | 19956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19957 | fi |
19958 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
19959 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
19960 | ||
19961 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
19962 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
19963 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
19964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19965 | else | |
19966 | if test "$ac_cv_type_size_t" = yes; then | |
19967 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19968 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19969 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19970 | # This bug is HP SR number 8606223364. | |
19971 | if test "$cross_compiling" = yes; then | |
19972 | # Depending upon the size, compute the lo and hi bounds. | |
19973 | cat >conftest.$ac_ext <<_ACEOF | |
19974 | /* confdefs.h. */ | |
19975 | _ACEOF | |
19976 | cat confdefs.h >>conftest.$ac_ext | |
19977 | cat >>conftest.$ac_ext <<_ACEOF | |
19978 | /* end confdefs.h. */ | |
19979 | $ac_includes_default | |
19980 | int | |
19981 | main () | |
19982 | { | |
19983 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
19984 | test_array [0] = 0 | |
19985 | ||
19986 | ; | |
19987 | return 0; | |
19988 | } | |
19989 | _ACEOF | |
19990 | rm -f conftest.$ac_objext | |
19991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19992 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19993 | ac_status=$? |
ac1cb8d3 VS |
19994 | grep -v '^ *+' conftest.er1 >conftest.err |
19995 | rm -f conftest.er1 | |
19996 | cat conftest.err >&5 | |
a848cd7e SC |
19997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19998 | (exit $ac_status); } && | |
ca5c6ac3 | 19999 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20001 | (eval $ac_try) 2>&5 | |
20002 | ac_status=$? | |
20003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20004 | (exit $ac_status); }; } && | |
20005 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20007 | (eval $ac_try) 2>&5 | |
20008 | ac_status=$? | |
20009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20010 | (exit $ac_status); }; }; then | |
20011 | ac_lo=0 ac_mid=0 | |
20012 | while :; do | |
20013 | cat >conftest.$ac_ext <<_ACEOF | |
20014 | /* confdefs.h. */ | |
20015 | _ACEOF | |
20016 | cat confdefs.h >>conftest.$ac_ext | |
20017 | cat >>conftest.$ac_ext <<_ACEOF | |
20018 | /* end confdefs.h. */ | |
20019 | $ac_includes_default | |
20020 | int | |
20021 | main () | |
20022 | { | |
20023 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
20024 | test_array [0] = 0 | |
20025 | ||
20026 | ; | |
20027 | return 0; | |
20028 | } | |
20029 | _ACEOF | |
20030 | rm -f conftest.$ac_objext | |
20031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20032 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20033 | ac_status=$? |
ac1cb8d3 VS |
20034 | grep -v '^ *+' conftest.er1 >conftest.err |
20035 | rm -f conftest.er1 | |
20036 | cat conftest.err >&5 | |
a848cd7e SC |
20037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20038 | (exit $ac_status); } && | |
ca5c6ac3 | 20039 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20041 | (eval $ac_try) 2>&5 | |
20042 | ac_status=$? | |
20043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20044 | (exit $ac_status); }; } && | |
20045 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20047 | (eval $ac_try) 2>&5 | |
20048 | ac_status=$? | |
20049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20050 | (exit $ac_status); }; }; then | |
20051 | ac_hi=$ac_mid; break | |
20052 | else | |
20053 | echo "$as_me: failed program was:" >&5 | |
20054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20055 | ||
20056 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20057 | if test $ac_lo -le $ac_mid; then |
20058 | ac_lo= ac_hi= | |
20059 | break | |
20060 | fi | |
20061 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20062 | fi |
ac1cb8d3 | 20063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20064 | done |
20065 | else | |
20066 | echo "$as_me: failed program was:" >&5 | |
20067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20068 | ||
20069 | cat >conftest.$ac_ext <<_ACEOF | |
20070 | /* confdefs.h. */ | |
20071 | _ACEOF | |
20072 | cat confdefs.h >>conftest.$ac_ext | |
20073 | cat >>conftest.$ac_ext <<_ACEOF | |
20074 | /* end confdefs.h. */ | |
20075 | $ac_includes_default | |
20076 | int | |
20077 | main () | |
20078 | { | |
20079 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
20080 | test_array [0] = 0 | |
20081 | ||
20082 | ; | |
20083 | return 0; | |
20084 | } | |
20085 | _ACEOF | |
20086 | rm -f conftest.$ac_objext | |
20087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20088 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20089 | ac_status=$? |
ac1cb8d3 VS |
20090 | grep -v '^ *+' conftest.er1 >conftest.err |
20091 | rm -f conftest.er1 | |
20092 | cat conftest.err >&5 | |
a848cd7e SC |
20093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20094 | (exit $ac_status); } && | |
ca5c6ac3 | 20095 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20097 | (eval $ac_try) 2>&5 | |
20098 | ac_status=$? | |
20099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20100 | (exit $ac_status); }; } && | |
20101 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20103 | (eval $ac_try) 2>&5 | |
20104 | ac_status=$? | |
20105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20106 | (exit $ac_status); }; }; then | |
20107 | ac_hi=-1 ac_mid=-1 | |
20108 | while :; do | |
20109 | cat >conftest.$ac_ext <<_ACEOF | |
20110 | /* confdefs.h. */ | |
20111 | _ACEOF | |
20112 | cat confdefs.h >>conftest.$ac_ext | |
20113 | cat >>conftest.$ac_ext <<_ACEOF | |
20114 | /* end confdefs.h. */ | |
20115 | $ac_includes_default | |
20116 | int | |
20117 | main () | |
20118 | { | |
20119 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
20120 | test_array [0] = 0 | |
20121 | ||
20122 | ; | |
20123 | return 0; | |
20124 | } | |
20125 | _ACEOF | |
20126 | rm -f conftest.$ac_objext | |
20127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20128 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20129 | ac_status=$? |
ac1cb8d3 VS |
20130 | grep -v '^ *+' conftest.er1 >conftest.err |
20131 | rm -f conftest.er1 | |
20132 | cat conftest.err >&5 | |
a848cd7e SC |
20133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20134 | (exit $ac_status); } && | |
ca5c6ac3 | 20135 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20137 | (eval $ac_try) 2>&5 | |
20138 | ac_status=$? | |
20139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20140 | (exit $ac_status); }; } && | |
20141 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20143 | (eval $ac_try) 2>&5 | |
20144 | ac_status=$? | |
20145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20146 | (exit $ac_status); }; }; then | |
20147 | ac_lo=$ac_mid; break | |
20148 | else | |
20149 | echo "$as_me: failed program was:" >&5 | |
20150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20151 | ||
20152 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20153 | if test $ac_mid -le $ac_hi; then |
20154 | ac_lo= ac_hi= | |
20155 | break | |
20156 | fi | |
20157 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20158 | fi |
ac1cb8d3 | 20159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20160 | done |
20161 | else | |
20162 | echo "$as_me: failed program was:" >&5 | |
20163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20164 | ||
20165 | ac_lo= ac_hi= | |
20166 | fi | |
ac1cb8d3 | 20167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20168 | fi |
ac1cb8d3 | 20169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20170 | # Binary search between lo and hi bounds. |
20171 | while test "x$ac_lo" != "x$ac_hi"; do | |
20172 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20173 | cat >conftest.$ac_ext <<_ACEOF | |
20174 | /* confdefs.h. */ | |
20175 | _ACEOF | |
20176 | cat confdefs.h >>conftest.$ac_ext | |
20177 | cat >>conftest.$ac_ext <<_ACEOF | |
20178 | /* end confdefs.h. */ | |
20179 | $ac_includes_default | |
20180 | int | |
20181 | main () | |
20182 | { | |
20183 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
20184 | test_array [0] = 0 | |
20185 | ||
20186 | ; | |
20187 | return 0; | |
20188 | } | |
20189 | _ACEOF | |
20190 | rm -f conftest.$ac_objext | |
20191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20192 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20193 | ac_status=$? |
ac1cb8d3 VS |
20194 | grep -v '^ *+' conftest.er1 >conftest.err |
20195 | rm -f conftest.er1 | |
20196 | cat conftest.err >&5 | |
a848cd7e SC |
20197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20198 | (exit $ac_status); } && | |
ca5c6ac3 | 20199 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20201 | (eval $ac_try) 2>&5 | |
20202 | ac_status=$? | |
20203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20204 | (exit $ac_status); }; } && | |
20205 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20207 | (eval $ac_try) 2>&5 | |
20208 | ac_status=$? | |
20209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20210 | (exit $ac_status); }; }; then | |
20211 | ac_hi=$ac_mid | |
20212 | else | |
20213 | echo "$as_me: failed program was:" >&5 | |
20214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20215 | ||
20216 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20217 | fi | |
ac1cb8d3 | 20218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20219 | done |
20220 | case $ac_lo in | |
20221 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
20222 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
20223 | See \`config.log' for more details." >&5 | |
20224 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
20225 | See \`config.log' for more details." >&2;} | |
20226 | { (exit 1); exit 1; }; } ;; | |
20227 | esac | |
20228 | else | |
20229 | if test "$cross_compiling" = yes; then | |
ca5c6ac3 VZ |
20230 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20231 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20232 | { (exit 1); exit 1; }; } |
20233 | else | |
20234 | cat >conftest.$ac_ext <<_ACEOF | |
20235 | /* confdefs.h. */ | |
20236 | _ACEOF | |
20237 | cat confdefs.h >>conftest.$ac_ext | |
20238 | cat >>conftest.$ac_ext <<_ACEOF | |
20239 | /* end confdefs.h. */ | |
20240 | $ac_includes_default | |
20241 | long longval () { return (long) (sizeof (size_t)); } | |
20242 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
20243 | #include <stdio.h> | |
20244 | #include <stdlib.h> | |
20245 | int | |
20246 | main () | |
20247 | { | |
20248 | ||
20249 | FILE *f = fopen ("conftest.val", "w"); | |
20250 | if (! f) | |
20251 | exit (1); | |
20252 | if (((long) (sizeof (size_t))) < 0) | |
20253 | { | |
20254 | long i = longval (); | |
20255 | if (i != ((long) (sizeof (size_t)))) | |
20256 | exit (1); | |
20257 | fprintf (f, "%ld\n", i); | |
20258 | } | |
20259 | else | |
20260 | { | |
20261 | unsigned long i = ulongval (); | |
20262 | if (i != ((long) (sizeof (size_t)))) | |
20263 | exit (1); | |
20264 | fprintf (f, "%lu\n", i); | |
20265 | } | |
20266 | exit (ferror (f) || fclose (f) != 0); | |
20267 | ||
20268 | ; | |
20269 | return 0; | |
20270 | } | |
20271 | _ACEOF | |
20272 | rm -f conftest$ac_exeext | |
20273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20274 | (eval $ac_link) 2>&5 | |
20275 | ac_status=$? | |
20276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20277 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20279 | (eval $ac_try) 2>&5 | |
20280 | ac_status=$? | |
20281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20282 | (exit $ac_status); }; }; then | |
20283 | ac_cv_sizeof_size_t=`cat conftest.val` | |
20284 | else | |
20285 | echo "$as_me: program exited with status $ac_status" >&5 | |
20286 | echo "$as_me: failed program was:" >&5 | |
20287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20288 | ||
20289 | ( exit $ac_status ) | |
20290 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
20291 | See \`config.log' for more details." >&5 | |
20292 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
20293 | See \`config.log' for more details." >&2;} | |
20294 | { (exit 1); exit 1; }; } | |
20295 | fi | |
ac1cb8d3 | 20296 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20297 | fi |
20298 | fi | |
20299 | rm -f conftest.val | |
20300 | else | |
20301 | ac_cv_sizeof_size_t=0 | |
20302 | fi | |
20303 | fi | |
20304 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
20305 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
20306 | cat >>confdefs.h <<_ACEOF | |
20307 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
20308 | _ACEOF | |
20309 | ||
20310 | ||
20311 | ||
20312 | case "${host}" in | |
20313 | arm-*-linux* ) | |
20314 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20315 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20316 | if test "${ac_cv_type_long_long+set}" = set; then | |
20317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20318 | else | |
20319 | cat >conftest.$ac_ext <<_ACEOF | |
20320 | /* confdefs.h. */ | |
20321 | _ACEOF | |
20322 | cat confdefs.h >>conftest.$ac_ext | |
20323 | cat >>conftest.$ac_ext <<_ACEOF | |
20324 | /* end confdefs.h. */ | |
20325 | $ac_includes_default | |
20326 | int | |
20327 | main () | |
20328 | { | |
20329 | if ((long long *) 0) | |
20330 | return 0; | |
20331 | if (sizeof (long long)) | |
20332 | return 0; | |
20333 | ; | |
20334 | return 0; | |
20335 | } | |
20336 | _ACEOF | |
20337 | rm -f conftest.$ac_objext | |
20338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20339 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20340 | ac_status=$? |
ac1cb8d3 VS |
20341 | grep -v '^ *+' conftest.er1 >conftest.err |
20342 | rm -f conftest.er1 | |
20343 | cat conftest.err >&5 | |
a848cd7e SC |
20344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20345 | (exit $ac_status); } && | |
ca5c6ac3 | 20346 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20348 | (eval $ac_try) 2>&5 | |
20349 | ac_status=$? | |
20350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20351 | (exit $ac_status); }; } && | |
20352 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20354 | (eval $ac_try) 2>&5 | |
20355 | ac_status=$? | |
20356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20357 | (exit $ac_status); }; }; then | |
20358 | ac_cv_type_long_long=yes | |
20359 | else | |
20360 | echo "$as_me: failed program was:" >&5 | |
20361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20362 | ||
20363 | ac_cv_type_long_long=no | |
20364 | fi | |
ac1cb8d3 | 20365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20366 | fi |
20367 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20368 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20369 | ||
20370 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20371 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20372 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20374 | else | |
20375 | if test "$ac_cv_type_long_long" = yes; then | |
20376 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20377 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20378 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20379 | # This bug is HP SR number 8606223364. | |
20380 | if test "$cross_compiling" = yes; then | |
20381 | # Depending upon the size, compute the lo and hi bounds. | |
20382 | cat >conftest.$ac_ext <<_ACEOF | |
20383 | /* confdefs.h. */ | |
20384 | _ACEOF | |
20385 | cat confdefs.h >>conftest.$ac_ext | |
20386 | cat >>conftest.$ac_ext <<_ACEOF | |
20387 | /* end confdefs.h. */ | |
20388 | $ac_includes_default | |
20389 | int | |
20390 | main () | |
20391 | { | |
20392 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20393 | test_array [0] = 0 | |
20394 | ||
20395 | ; | |
20396 | return 0; | |
20397 | } | |
20398 | _ACEOF | |
20399 | rm -f conftest.$ac_objext | |
20400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20401 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20402 | ac_status=$? |
ac1cb8d3 VS |
20403 | grep -v '^ *+' conftest.er1 >conftest.err |
20404 | rm -f conftest.er1 | |
20405 | cat conftest.err >&5 | |
a848cd7e SC |
20406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20407 | (exit $ac_status); } && | |
ca5c6ac3 | 20408 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20410 | (eval $ac_try) 2>&5 | |
20411 | ac_status=$? | |
20412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20413 | (exit $ac_status); }; } && | |
20414 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20416 | (eval $ac_try) 2>&5 | |
20417 | ac_status=$? | |
20418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20419 | (exit $ac_status); }; }; then | |
20420 | ac_lo=0 ac_mid=0 | |
20421 | while :; do | |
20422 | cat >conftest.$ac_ext <<_ACEOF | |
20423 | /* confdefs.h. */ | |
20424 | _ACEOF | |
20425 | cat confdefs.h >>conftest.$ac_ext | |
20426 | cat >>conftest.$ac_ext <<_ACEOF | |
20427 | /* end confdefs.h. */ | |
20428 | $ac_includes_default | |
20429 | int | |
20430 | main () | |
20431 | { | |
20432 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20433 | test_array [0] = 0 | |
20434 | ||
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); } && | |
ca5c6ac3 | 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_hi=$ac_mid; break | |
20461 | else | |
20462 | echo "$as_me: failed program was:" >&5 | |
20463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20464 | ||
20465 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20466 | if test $ac_lo -le $ac_mid; then |
20467 | ac_lo= ac_hi= | |
20468 | break | |
20469 | fi | |
20470 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20471 | fi |
ac1cb8d3 | 20472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20473 | done |
20474 | else | |
20475 | echo "$as_me: failed program was:" >&5 | |
20476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20477 | ||
20478 | cat >conftest.$ac_ext <<_ACEOF | |
20479 | /* confdefs.h. */ | |
20480 | _ACEOF | |
20481 | cat confdefs.h >>conftest.$ac_ext | |
20482 | cat >>conftest.$ac_ext <<_ACEOF | |
20483 | /* end confdefs.h. */ | |
20484 | $ac_includes_default | |
20485 | int | |
20486 | main () | |
20487 | { | |
20488 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20489 | test_array [0] = 0 | |
20490 | ||
20491 | ; | |
20492 | return 0; | |
20493 | } | |
20494 | _ACEOF | |
20495 | rm -f conftest.$ac_objext | |
20496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20497 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20498 | ac_status=$? |
ac1cb8d3 VS |
20499 | grep -v '^ *+' conftest.er1 >conftest.err |
20500 | rm -f conftest.er1 | |
20501 | cat conftest.err >&5 | |
a848cd7e SC |
20502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20503 | (exit $ac_status); } && | |
ca5c6ac3 | 20504 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20506 | (eval $ac_try) 2>&5 | |
20507 | ac_status=$? | |
20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20509 | (exit $ac_status); }; } && | |
20510 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20516 | ac_hi=-1 ac_mid=-1 | |
20517 | while :; do | |
20518 | cat >conftest.$ac_ext <<_ACEOF | |
20519 | /* confdefs.h. */ | |
20520 | _ACEOF | |
20521 | cat confdefs.h >>conftest.$ac_ext | |
20522 | cat >>conftest.$ac_ext <<_ACEOF | |
20523 | /* end confdefs.h. */ | |
20524 | $ac_includes_default | |
20525 | int | |
20526 | main () | |
20527 | { | |
20528 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20529 | test_array [0] = 0 | |
20530 | ||
20531 | ; | |
20532 | return 0; | |
20533 | } | |
20534 | _ACEOF | |
20535 | rm -f conftest.$ac_objext | |
20536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20537 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20538 | ac_status=$? |
ac1cb8d3 VS |
20539 | grep -v '^ *+' conftest.er1 >conftest.err |
20540 | rm -f conftest.er1 | |
20541 | cat conftest.err >&5 | |
a848cd7e SC |
20542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20543 | (exit $ac_status); } && | |
ca5c6ac3 | 20544 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20546 | (eval $ac_try) 2>&5 | |
20547 | ac_status=$? | |
20548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20549 | (exit $ac_status); }; } && | |
20550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
20556 | ac_lo=$ac_mid; break | |
20557 | else | |
20558 | echo "$as_me: failed program was:" >&5 | |
20559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20560 | ||
20561 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20562 | if test $ac_mid -le $ac_hi; then |
20563 | ac_lo= ac_hi= | |
20564 | break | |
20565 | fi | |
20566 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20567 | fi |
ac1cb8d3 | 20568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20569 | done |
20570 | else | |
20571 | echo "$as_me: failed program was:" >&5 | |
20572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20573 | ||
20574 | ac_lo= ac_hi= | |
20575 | fi | |
ac1cb8d3 | 20576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20577 | fi |
ac1cb8d3 | 20578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20579 | # Binary search between lo and hi bounds. |
20580 | while test "x$ac_lo" != "x$ac_hi"; do | |
20581 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20582 | cat >conftest.$ac_ext <<_ACEOF | |
20583 | /* confdefs.h. */ | |
20584 | _ACEOF | |
20585 | cat confdefs.h >>conftest.$ac_ext | |
20586 | cat >>conftest.$ac_ext <<_ACEOF | |
20587 | /* end confdefs.h. */ | |
20588 | $ac_includes_default | |
20589 | int | |
20590 | main () | |
20591 | { | |
20592 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20593 | test_array [0] = 0 | |
20594 | ||
20595 | ; | |
20596 | return 0; | |
20597 | } | |
20598 | _ACEOF | |
20599 | rm -f conftest.$ac_objext | |
20600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20601 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20602 | ac_status=$? |
ac1cb8d3 VS |
20603 | grep -v '^ *+' conftest.er1 >conftest.err |
20604 | rm -f conftest.er1 | |
20605 | cat conftest.err >&5 | |
a848cd7e SC |
20606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20607 | (exit $ac_status); } && | |
ca5c6ac3 | 20608 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20610 | (eval $ac_try) 2>&5 | |
20611 | ac_status=$? | |
20612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20613 | (exit $ac_status); }; } && | |
20614 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20616 | (eval $ac_try) 2>&5 | |
20617 | ac_status=$? | |
20618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20619 | (exit $ac_status); }; }; then | |
20620 | ac_hi=$ac_mid | |
20621 | else | |
20622 | echo "$as_me: failed program was:" >&5 | |
20623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20624 | ||
20625 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20626 | fi | |
ac1cb8d3 | 20627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20628 | done |
20629 | case $ac_lo in | |
20630 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20631 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20632 | See \`config.log' for more details." >&5 | |
20633 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20634 | See \`config.log' for more details." >&2;} | |
20635 | { (exit 1); exit 1; }; } ;; | |
20636 | esac | |
20637 | else | |
20638 | if test "$cross_compiling" = yes; then | |
ca5c6ac3 VZ |
20639 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20640 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20641 | { (exit 1); exit 1; }; } |
20642 | else | |
20643 | cat >conftest.$ac_ext <<_ACEOF | |
20644 | /* confdefs.h. */ | |
20645 | _ACEOF | |
20646 | cat confdefs.h >>conftest.$ac_ext | |
20647 | cat >>conftest.$ac_ext <<_ACEOF | |
20648 | /* end confdefs.h. */ | |
20649 | $ac_includes_default | |
20650 | long longval () { return (long) (sizeof (long long)); } | |
20651 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20652 | #include <stdio.h> | |
20653 | #include <stdlib.h> | |
20654 | int | |
20655 | main () | |
20656 | { | |
20657 | ||
20658 | FILE *f = fopen ("conftest.val", "w"); | |
20659 | if (! f) | |
20660 | exit (1); | |
20661 | if (((long) (sizeof (long long))) < 0) | |
20662 | { | |
20663 | long i = longval (); | |
20664 | if (i != ((long) (sizeof (long long)))) | |
20665 | exit (1); | |
20666 | fprintf (f, "%ld\n", i); | |
20667 | } | |
20668 | else | |
20669 | { | |
20670 | unsigned long i = ulongval (); | |
20671 | if (i != ((long) (sizeof (long long)))) | |
20672 | exit (1); | |
20673 | fprintf (f, "%lu\n", i); | |
20674 | } | |
20675 | exit (ferror (f) || fclose (f) != 0); | |
20676 | ||
20677 | ; | |
20678 | return 0; | |
20679 | } | |
20680 | _ACEOF | |
20681 | rm -f conftest$ac_exeext | |
20682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20683 | (eval $ac_link) 2>&5 | |
20684 | ac_status=$? | |
20685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20686 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20688 | (eval $ac_try) 2>&5 | |
20689 | ac_status=$? | |
20690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20691 | (exit $ac_status); }; }; then | |
20692 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20693 | else | |
20694 | echo "$as_me: program exited with status $ac_status" >&5 | |
20695 | echo "$as_me: failed program was:" >&5 | |
20696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20697 | ||
20698 | ( exit $ac_status ) | |
20699 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20700 | See \`config.log' for more details." >&5 | |
20701 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20702 | See \`config.log' for more details." >&2;} | |
20703 | { (exit 1); exit 1; }; } | |
20704 | fi | |
ac1cb8d3 | 20705 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20706 | fi |
20707 | fi | |
20708 | rm -f conftest.val | |
20709 | else | |
20710 | ac_cv_sizeof_long_long=0 | |
20711 | fi | |
20712 | fi | |
20713 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20714 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20715 | cat >>confdefs.h <<_ACEOF | |
20716 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20717 | _ACEOF | |
20718 | ||
20719 | ||
20720 | ;; | |
20721 | *-hp-hpux* ) | |
20722 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20723 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20724 | if test "${ac_cv_type_long_long+set}" = set; then | |
20725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20726 | else | |
20727 | cat >conftest.$ac_ext <<_ACEOF | |
20728 | /* confdefs.h. */ | |
20729 | _ACEOF | |
20730 | cat confdefs.h >>conftest.$ac_ext | |
20731 | cat >>conftest.$ac_ext <<_ACEOF | |
20732 | /* end confdefs.h. */ | |
20733 | $ac_includes_default | |
20734 | int | |
20735 | main () | |
20736 | { | |
20737 | if ((long long *) 0) | |
20738 | return 0; | |
20739 | if (sizeof (long long)) | |
20740 | return 0; | |
20741 | ; | |
20742 | return 0; | |
20743 | } | |
20744 | _ACEOF | |
20745 | rm -f conftest.$ac_objext | |
20746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20747 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20748 | ac_status=$? |
ac1cb8d3 VS |
20749 | grep -v '^ *+' conftest.er1 >conftest.err |
20750 | rm -f conftest.er1 | |
20751 | cat conftest.err >&5 | |
a848cd7e SC |
20752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20753 | (exit $ac_status); } && | |
ca5c6ac3 | 20754 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20756 | (eval $ac_try) 2>&5 | |
20757 | ac_status=$? | |
20758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20759 | (exit $ac_status); }; } && | |
20760 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20762 | (eval $ac_try) 2>&5 | |
20763 | ac_status=$? | |
20764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20765 | (exit $ac_status); }; }; then | |
20766 | ac_cv_type_long_long=yes | |
20767 | else | |
20768 | echo "$as_me: failed program was:" >&5 | |
20769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20770 | ||
20771 | ac_cv_type_long_long=no | |
20772 | fi | |
ac1cb8d3 | 20773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20774 | fi |
20775 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20776 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20777 | ||
20778 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20779 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20780 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20782 | else | |
20783 | if test "$ac_cv_type_long_long" = yes; then | |
20784 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20785 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20786 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20787 | # This bug is HP SR number 8606223364. | |
20788 | if test "$cross_compiling" = yes; then | |
20789 | # Depending upon the size, compute the lo and hi bounds. | |
20790 | cat >conftest.$ac_ext <<_ACEOF | |
20791 | /* confdefs.h. */ | |
20792 | _ACEOF | |
20793 | cat confdefs.h >>conftest.$ac_ext | |
20794 | cat >>conftest.$ac_ext <<_ACEOF | |
20795 | /* end confdefs.h. */ | |
20796 | $ac_includes_default | |
20797 | int | |
20798 | main () | |
20799 | { | |
20800 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20801 | test_array [0] = 0 | |
20802 | ||
20803 | ; | |
20804 | return 0; | |
20805 | } | |
20806 | _ACEOF | |
20807 | rm -f conftest.$ac_objext | |
20808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20809 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20810 | ac_status=$? |
ac1cb8d3 VS |
20811 | grep -v '^ *+' conftest.er1 >conftest.err |
20812 | rm -f conftest.er1 | |
20813 | cat conftest.err >&5 | |
a848cd7e SC |
20814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20815 | (exit $ac_status); } && | |
ca5c6ac3 | 20816 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20818 | (eval $ac_try) 2>&5 | |
20819 | ac_status=$? | |
20820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20821 | (exit $ac_status); }; } && | |
20822 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20824 | (eval $ac_try) 2>&5 | |
20825 | ac_status=$? | |
20826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20827 | (exit $ac_status); }; }; then | |
20828 | ac_lo=0 ac_mid=0 | |
20829 | while :; do | |
20830 | cat >conftest.$ac_ext <<_ACEOF | |
20831 | /* confdefs.h. */ | |
20832 | _ACEOF | |
20833 | cat confdefs.h >>conftest.$ac_ext | |
20834 | cat >>conftest.$ac_ext <<_ACEOF | |
20835 | /* end confdefs.h. */ | |
20836 | $ac_includes_default | |
20837 | int | |
20838 | main () | |
20839 | { | |
20840 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20841 | test_array [0] = 0 | |
20842 | ||
20843 | ; | |
20844 | return 0; | |
20845 | } | |
20846 | _ACEOF | |
20847 | rm -f conftest.$ac_objext | |
20848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20849 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20850 | ac_status=$? |
ac1cb8d3 VS |
20851 | grep -v '^ *+' conftest.er1 >conftest.err |
20852 | rm -f conftest.er1 | |
20853 | cat conftest.err >&5 | |
a848cd7e SC |
20854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20855 | (exit $ac_status); } && | |
ca5c6ac3 | 20856 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20858 | (eval $ac_try) 2>&5 | |
20859 | ac_status=$? | |
20860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20861 | (exit $ac_status); }; } && | |
20862 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20864 | (eval $ac_try) 2>&5 | |
20865 | ac_status=$? | |
20866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20867 | (exit $ac_status); }; }; then | |
20868 | ac_hi=$ac_mid; break | |
20869 | else | |
20870 | echo "$as_me: failed program was:" >&5 | |
20871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20872 | ||
20873 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20874 | if test $ac_lo -le $ac_mid; then |
20875 | ac_lo= ac_hi= | |
20876 | break | |
20877 | fi | |
20878 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20879 | fi |
ac1cb8d3 | 20880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20881 | done |
20882 | else | |
20883 | echo "$as_me: failed program was:" >&5 | |
20884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20885 | ||
20886 | cat >conftest.$ac_ext <<_ACEOF | |
20887 | /* confdefs.h. */ | |
20888 | _ACEOF | |
20889 | cat confdefs.h >>conftest.$ac_ext | |
20890 | cat >>conftest.$ac_ext <<_ACEOF | |
20891 | /* end confdefs.h. */ | |
20892 | $ac_includes_default | |
20893 | int | |
20894 | main () | |
20895 | { | |
20896 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20897 | test_array [0] = 0 | |
20898 | ||
20899 | ; | |
20900 | return 0; | |
20901 | } | |
20902 | _ACEOF | |
20903 | rm -f conftest.$ac_objext | |
20904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20905 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20906 | ac_status=$? |
ac1cb8d3 VS |
20907 | grep -v '^ *+' conftest.er1 >conftest.err |
20908 | rm -f conftest.er1 | |
20909 | cat conftest.err >&5 | |
a848cd7e SC |
20910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20911 | (exit $ac_status); } && | |
ca5c6ac3 | 20912 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20914 | (eval $ac_try) 2>&5 | |
20915 | ac_status=$? | |
20916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20917 | (exit $ac_status); }; } && | |
20918 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20920 | (eval $ac_try) 2>&5 | |
20921 | ac_status=$? | |
20922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20923 | (exit $ac_status); }; }; then | |
20924 | ac_hi=-1 ac_mid=-1 | |
20925 | while :; do | |
20926 | cat >conftest.$ac_ext <<_ACEOF | |
20927 | /* confdefs.h. */ | |
20928 | _ACEOF | |
20929 | cat confdefs.h >>conftest.$ac_ext | |
20930 | cat >>conftest.$ac_ext <<_ACEOF | |
20931 | /* end confdefs.h. */ | |
20932 | $ac_includes_default | |
20933 | int | |
20934 | main () | |
20935 | { | |
20936 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
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 | |
ac1cb8d3 | 20945 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20946 | ac_status=$? |
ac1cb8d3 VS |
20947 | grep -v '^ *+' conftest.er1 >conftest.err |
20948 | rm -f conftest.er1 | |
20949 | cat conftest.err >&5 | |
a848cd7e SC |
20950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20951 | (exit $ac_status); } && | |
ca5c6ac3 | 20952 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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' | |
a848cd7e SC |
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=$ac_mid; break | |
20965 | else | |
20966 | echo "$as_me: failed program was:" >&5 | |
20967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20968 | ||
20969 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20970 | if test $ac_mid -le $ac_hi; then |
20971 | ac_lo= ac_hi= | |
20972 | break | |
20973 | fi | |
20974 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20975 | fi |
ac1cb8d3 | 20976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20977 | done |
20978 | else | |
20979 | echo "$as_me: failed program was:" >&5 | |
20980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20981 | ||
20982 | ac_lo= ac_hi= | |
20983 | fi | |
ac1cb8d3 | 20984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20985 | fi |
ac1cb8d3 | 20986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20987 | # Binary search between lo and hi bounds. |
20988 | while test "x$ac_lo" != "x$ac_hi"; do | |
20989 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20990 | cat >conftest.$ac_ext <<_ACEOF | |
20991 | /* confdefs.h. */ | |
20992 | _ACEOF | |
20993 | cat confdefs.h >>conftest.$ac_ext | |
20994 | cat >>conftest.$ac_ext <<_ACEOF | |
20995 | /* end confdefs.h. */ | |
20996 | $ac_includes_default | |
20997 | int | |
20998 | main () | |
20999 | { | |
21000 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21001 | test_array [0] = 0 | |
21002 | ||
21003 | ; | |
21004 | return 0; | |
21005 | } | |
21006 | _ACEOF | |
21007 | rm -f conftest.$ac_objext | |
21008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21009 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21010 | ac_status=$? |
ac1cb8d3 VS |
21011 | grep -v '^ *+' conftest.er1 >conftest.err |
21012 | rm -f conftest.er1 | |
21013 | cat conftest.err >&5 | |
a848cd7e SC |
21014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21015 | (exit $ac_status); } && | |
ca5c6ac3 | 21016 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21018 | (eval $ac_try) 2>&5 | |
21019 | ac_status=$? | |
21020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21021 | (exit $ac_status); }; } && | |
21022 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21024 | (eval $ac_try) 2>&5 | |
21025 | ac_status=$? | |
21026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21027 | (exit $ac_status); }; }; then | |
21028 | ac_hi=$ac_mid | |
21029 | else | |
21030 | echo "$as_me: failed program was:" >&5 | |
21031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21032 | ||
21033 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21034 | fi | |
ac1cb8d3 | 21035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21036 | done |
21037 | case $ac_lo in | |
21038 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
21039 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21040 | See \`config.log' for more details." >&5 | |
21041 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21042 | See \`config.log' for more details." >&2;} | |
21043 | { (exit 1); exit 1; }; } ;; | |
21044 | esac | |
21045 | else | |
21046 | if test "$cross_compiling" = yes; then | |
ca5c6ac3 VZ |
21047 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21048 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
21049 | { (exit 1); exit 1; }; } |
21050 | else | |
21051 | cat >conftest.$ac_ext <<_ACEOF | |
21052 | /* confdefs.h. */ | |
21053 | _ACEOF | |
21054 | cat confdefs.h >>conftest.$ac_ext | |
21055 | cat >>conftest.$ac_ext <<_ACEOF | |
21056 | /* end confdefs.h. */ | |
21057 | $ac_includes_default | |
21058 | long longval () { return (long) (sizeof (long long)); } | |
21059 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
21060 | #include <stdio.h> | |
21061 | #include <stdlib.h> | |
21062 | int | |
21063 | main () | |
21064 | { | |
21065 | ||
21066 | FILE *f = fopen ("conftest.val", "w"); | |
21067 | if (! f) | |
21068 | exit (1); | |
21069 | if (((long) (sizeof (long long))) < 0) | |
21070 | { | |
21071 | long i = longval (); | |
21072 | if (i != ((long) (sizeof (long long)))) | |
21073 | exit (1); | |
21074 | fprintf (f, "%ld\n", i); | |
21075 | } | |
21076 | else | |
21077 | { | |
21078 | unsigned long i = ulongval (); | |
21079 | if (i != ((long) (sizeof (long long)))) | |
21080 | exit (1); | |
21081 | fprintf (f, "%lu\n", i); | |
21082 | } | |
21083 | exit (ferror (f) || fclose (f) != 0); | |
21084 | ||
21085 | ; | |
21086 | return 0; | |
21087 | } | |
21088 | _ACEOF | |
21089 | rm -f conftest$ac_exeext | |
21090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21091 | (eval $ac_link) 2>&5 | |
21092 | ac_status=$? | |
21093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21094 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21096 | (eval $ac_try) 2>&5 | |
21097 | ac_status=$? | |
21098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21099 | (exit $ac_status); }; }; then | |
21100 | ac_cv_sizeof_long_long=`cat conftest.val` | |
21101 | else | |
21102 | echo "$as_me: program exited with status $ac_status" >&5 | |
21103 | echo "$as_me: failed program was:" >&5 | |
21104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21105 | ||
21106 | ( exit $ac_status ) | |
21107 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21108 | See \`config.log' for more details." >&5 | |
21109 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21110 | See \`config.log' for more details." >&2;} | |
21111 | { (exit 1); exit 1; }; } | |
21112 | fi | |
ac1cb8d3 | 21113 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21114 | fi |
21115 | fi | |
21116 | rm -f conftest.val | |
21117 | else | |
21118 | ac_cv_sizeof_long_long=0 | |
21119 | fi | |
21120 | fi | |
21121 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21122 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21123 | cat >>confdefs.h <<_ACEOF | |
21124 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21125 | _ACEOF | |
21126 | ||
21127 | ||
21128 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 21129 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
21130 | fi |
21131 | ;; | |
21132 | * ) | |
21133 | echo "$as_me:$LINENO: checking for long long" >&5 | |
21134 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
21135 | if test "${ac_cv_type_long_long+set}" = set; then | |
21136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21137 | else | |
21138 | cat >conftest.$ac_ext <<_ACEOF | |
21139 | /* confdefs.h. */ | |
21140 | _ACEOF | |
21141 | cat confdefs.h >>conftest.$ac_ext | |
21142 | cat >>conftest.$ac_ext <<_ACEOF | |
21143 | /* end confdefs.h. */ | |
21144 | $ac_includes_default | |
21145 | int | |
21146 | main () | |
21147 | { | |
21148 | if ((long long *) 0) | |
21149 | return 0; | |
21150 | if (sizeof (long long)) | |
21151 | return 0; | |
21152 | ; | |
21153 | return 0; | |
21154 | } | |
21155 | _ACEOF | |
21156 | rm -f conftest.$ac_objext | |
21157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21158 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21159 | ac_status=$? |
ac1cb8d3 VS |
21160 | grep -v '^ *+' conftest.er1 >conftest.err |
21161 | rm -f conftest.er1 | |
21162 | cat conftest.err >&5 | |
a848cd7e SC |
21163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21164 | (exit $ac_status); } && | |
ca5c6ac3 | 21165 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21167 | (eval $ac_try) 2>&5 | |
21168 | ac_status=$? | |
21169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21170 | (exit $ac_status); }; } && | |
21171 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21173 | (eval $ac_try) 2>&5 | |
21174 | ac_status=$? | |
21175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21176 | (exit $ac_status); }; }; then | |
21177 | ac_cv_type_long_long=yes | |
21178 | else | |
21179 | echo "$as_me: failed program was:" >&5 | |
21180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21181 | ||
21182 | ac_cv_type_long_long=no | |
21183 | fi | |
ac1cb8d3 | 21184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21185 | fi |
21186 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
21187 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
21188 | ||
21189 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
21190 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
21191 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
21192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21193 | else | |
21194 | if test "$ac_cv_type_long_long" = yes; then | |
21195 | # The cast to unsigned long works around a bug in the HP C Compiler | |
21196 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21197 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21198 | # This bug is HP SR number 8606223364. | |
21199 | if test "$cross_compiling" = yes; then | |
21200 | # Depending upon the size, compute the lo and hi bounds. | |
21201 | cat >conftest.$ac_ext <<_ACEOF | |
21202 | /* confdefs.h. */ | |
21203 | _ACEOF | |
21204 | cat confdefs.h >>conftest.$ac_ext | |
21205 | cat >>conftest.$ac_ext <<_ACEOF | |
21206 | /* end confdefs.h. */ | |
21207 | $ac_includes_default | |
21208 | int | |
21209 | main () | |
21210 | { | |
21211 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
21212 | test_array [0] = 0 | |
21213 | ||
21214 | ; | |
21215 | return 0; | |
21216 | } | |
21217 | _ACEOF | |
21218 | rm -f conftest.$ac_objext | |
21219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21220 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21221 | ac_status=$? |
ac1cb8d3 VS |
21222 | grep -v '^ *+' conftest.er1 >conftest.err |
21223 | rm -f conftest.er1 | |
21224 | cat conftest.err >&5 | |
a848cd7e SC |
21225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21226 | (exit $ac_status); } && | |
ca5c6ac3 | 21227 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21229 | (eval $ac_try) 2>&5 | |
21230 | ac_status=$? | |
21231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21232 | (exit $ac_status); }; } && | |
21233 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21235 | (eval $ac_try) 2>&5 | |
21236 | ac_status=$? | |
21237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21238 | (exit $ac_status); }; }; then | |
21239 | ac_lo=0 ac_mid=0 | |
21240 | while :; do | |
21241 | cat >conftest.$ac_ext <<_ACEOF | |
21242 | /* confdefs.h. */ | |
21243 | _ACEOF | |
21244 | cat confdefs.h >>conftest.$ac_ext | |
21245 | cat >>conftest.$ac_ext <<_ACEOF | |
21246 | /* end confdefs.h. */ | |
21247 | $ac_includes_default | |
21248 | int | |
21249 | main () | |
21250 | { | |
21251 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21252 | test_array [0] = 0 | |
21253 | ||
21254 | ; | |
21255 | return 0; | |
21256 | } | |
21257 | _ACEOF | |
21258 | rm -f conftest.$ac_objext | |
21259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21261 | ac_status=$? |
ac1cb8d3 VS |
21262 | grep -v '^ *+' conftest.er1 >conftest.err |
21263 | rm -f conftest.er1 | |
21264 | cat conftest.err >&5 | |
a848cd7e SC |
21265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21266 | (exit $ac_status); } && | |
ca5c6ac3 | 21267 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21269 | (eval $ac_try) 2>&5 | |
21270 | ac_status=$? | |
21271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21272 | (exit $ac_status); }; } && | |
21273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21275 | (eval $ac_try) 2>&5 | |
21276 | ac_status=$? | |
21277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21278 | (exit $ac_status); }; }; then | |
21279 | ac_hi=$ac_mid; break | |
21280 | else | |
21281 | echo "$as_me: failed program was:" >&5 | |
21282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21283 | ||
21284 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
21285 | if test $ac_lo -le $ac_mid; then |
21286 | ac_lo= ac_hi= | |
21287 | break | |
21288 | fi | |
21289 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 21290 | fi |
ac1cb8d3 | 21291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21292 | done |
21293 | else | |
21294 | echo "$as_me: failed program was:" >&5 | |
21295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21296 | ||
21297 | cat >conftest.$ac_ext <<_ACEOF | |
21298 | /* confdefs.h. */ | |
21299 | _ACEOF | |
21300 | cat confdefs.h >>conftest.$ac_ext | |
21301 | cat >>conftest.$ac_ext <<_ACEOF | |
21302 | /* end confdefs.h. */ | |
21303 | $ac_includes_default | |
21304 | int | |
21305 | main () | |
21306 | { | |
21307 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
21308 | test_array [0] = 0 | |
21309 | ||
21310 | ; | |
21311 | return 0; | |
21312 | } | |
21313 | _ACEOF | |
21314 | rm -f conftest.$ac_objext | |
21315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21316 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21317 | ac_status=$? |
ac1cb8d3 VS |
21318 | grep -v '^ *+' conftest.er1 >conftest.err |
21319 | rm -f conftest.er1 | |
21320 | cat conftest.err >&5 | |
a848cd7e SC |
21321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21322 | (exit $ac_status); } && | |
ca5c6ac3 | 21323 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21325 | (eval $ac_try) 2>&5 | |
21326 | ac_status=$? | |
21327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21328 | (exit $ac_status); }; } && | |
21329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21331 | (eval $ac_try) 2>&5 | |
21332 | ac_status=$? | |
21333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21334 | (exit $ac_status); }; }; then | |
21335 | ac_hi=-1 ac_mid=-1 | |
21336 | while :; do | |
21337 | cat >conftest.$ac_ext <<_ACEOF | |
21338 | /* confdefs.h. */ | |
21339 | _ACEOF | |
21340 | cat confdefs.h >>conftest.$ac_ext | |
21341 | cat >>conftest.$ac_ext <<_ACEOF | |
21342 | /* end confdefs.h. */ | |
21343 | $ac_includes_default | |
21344 | int | |
21345 | main () | |
21346 | { | |
21347 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
21348 | test_array [0] = 0 | |
21349 | ||
21350 | ; | |
21351 | return 0; | |
21352 | } | |
21353 | _ACEOF | |
21354 | rm -f conftest.$ac_objext | |
21355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21356 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21357 | ac_status=$? |
ac1cb8d3 VS |
21358 | grep -v '^ *+' conftest.er1 >conftest.err |
21359 | rm -f conftest.er1 | |
21360 | cat conftest.err >&5 | |
a848cd7e SC |
21361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21362 | (exit $ac_status); } && | |
ca5c6ac3 | 21363 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21365 | (eval $ac_try) 2>&5 | |
21366 | ac_status=$? | |
21367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21368 | (exit $ac_status); }; } && | |
21369 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21371 | (eval $ac_try) 2>&5 | |
21372 | ac_status=$? | |
21373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21374 | (exit $ac_status); }; }; then | |
21375 | ac_lo=$ac_mid; break | |
21376 | else | |
21377 | echo "$as_me: failed program was:" >&5 | |
21378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21379 | ||
21380 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
21381 | if test $ac_mid -le $ac_hi; then |
21382 | ac_lo= ac_hi= | |
21383 | break | |
21384 | fi | |
21385 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 21386 | fi |
ac1cb8d3 | 21387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21388 | done |
21389 | else | |
21390 | echo "$as_me: failed program was:" >&5 | |
21391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21392 | ||
21393 | ac_lo= ac_hi= | |
21394 | fi | |
ac1cb8d3 | 21395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21396 | fi |
ac1cb8d3 | 21397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21398 | # Binary search between lo and hi bounds. |
21399 | while test "x$ac_lo" != "x$ac_hi"; do | |
21400 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21401 | cat >conftest.$ac_ext <<_ACEOF | |
21402 | /* confdefs.h. */ | |
21403 | _ACEOF | |
21404 | cat confdefs.h >>conftest.$ac_ext | |
21405 | cat >>conftest.$ac_ext <<_ACEOF | |
21406 | /* end confdefs.h. */ | |
21407 | $ac_includes_default | |
21408 | int | |
21409 | main () | |
21410 | { | |
21411 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
21412 | test_array [0] = 0 | |
21413 | ||
21414 | ; | |
21415 | return 0; | |
21416 | } | |
21417 | _ACEOF | |
21418 | rm -f conftest.$ac_objext | |
21419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21421 | ac_status=$? |
ac1cb8d3 VS |
21422 | grep -v '^ *+' conftest.er1 >conftest.err |
21423 | rm -f conftest.er1 | |
21424 | cat conftest.err >&5 | |
a848cd7e SC |
21425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21426 | (exit $ac_status); } && | |
ca5c6ac3 | 21427 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21429 | (eval $ac_try) 2>&5 | |
21430 | ac_status=$? | |
21431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21432 | (exit $ac_status); }; } && | |
21433 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21435 | (eval $ac_try) 2>&5 | |
21436 | ac_status=$? | |
21437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21438 | (exit $ac_status); }; }; then | |
21439 | ac_hi=$ac_mid | |
21440 | else | |
21441 | echo "$as_me: failed program was:" >&5 | |
21442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21443 | ||
21444 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21445 | fi | |
ac1cb8d3 | 21446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21447 | done |
21448 | case $ac_lo in | |
21449 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
21450 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21451 | See \`config.log' for more details." >&5 | |
21452 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21453 | See \`config.log' for more details." >&2;} | |
21454 | { (exit 1); exit 1; }; } ;; | |
21455 | esac | |
21456 | else | |
21457 | if test "$cross_compiling" = yes; then | |
ca5c6ac3 VZ |
21458 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21459 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
21460 | { (exit 1); exit 1; }; } |
21461 | else | |
21462 | cat >conftest.$ac_ext <<_ACEOF | |
21463 | /* confdefs.h. */ | |
21464 | _ACEOF | |
21465 | cat confdefs.h >>conftest.$ac_ext | |
21466 | cat >>conftest.$ac_ext <<_ACEOF | |
21467 | /* end confdefs.h. */ | |
21468 | $ac_includes_default | |
21469 | long longval () { return (long) (sizeof (long long)); } | |
21470 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
21471 | #include <stdio.h> | |
21472 | #include <stdlib.h> | |
21473 | int | |
21474 | main () | |
21475 | { | |
21476 | ||
21477 | FILE *f = fopen ("conftest.val", "w"); | |
21478 | if (! f) | |
21479 | exit (1); | |
21480 | if (((long) (sizeof (long long))) < 0) | |
21481 | { | |
21482 | long i = longval (); | |
21483 | if (i != ((long) (sizeof (long long)))) | |
21484 | exit (1); | |
21485 | fprintf (f, "%ld\n", i); | |
21486 | } | |
21487 | else | |
21488 | { | |
21489 | unsigned long i = ulongval (); | |
21490 | if (i != ((long) (sizeof (long long)))) | |
21491 | exit (1); | |
21492 | fprintf (f, "%lu\n", i); | |
21493 | } | |
21494 | exit (ferror (f) || fclose (f) != 0); | |
21495 | ||
21496 | ; | |
21497 | return 0; | |
21498 | } | |
21499 | _ACEOF | |
21500 | rm -f conftest$ac_exeext | |
21501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21502 | (eval $ac_link) 2>&5 | |
21503 | ac_status=$? | |
21504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21505 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21507 | (eval $ac_try) 2>&5 | |
21508 | ac_status=$? | |
21509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21510 | (exit $ac_status); }; }; then | |
21511 | ac_cv_sizeof_long_long=`cat conftest.val` | |
21512 | else | |
21513 | echo "$as_me: program exited with status $ac_status" >&5 | |
21514 | echo "$as_me: failed program was:" >&5 | |
21515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21516 | ||
21517 | ( exit $ac_status ) | |
21518 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21519 | See \`config.log' for more details." >&5 | |
21520 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21521 | See \`config.log' for more details." >&2;} | |
21522 | { (exit 1); exit 1; }; } | |
21523 | fi | |
ac1cb8d3 | 21524 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21525 | fi |
21526 | fi | |
21527 | rm -f conftest.val | |
21528 | else | |
21529 | ac_cv_sizeof_long_long=0 | |
21530 | fi | |
21531 | fi | |
21532 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21533 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21534 | cat >>confdefs.h <<_ACEOF | |
21535 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21536 | _ACEOF | |
21537 | ||
21538 | ||
21539 | esac | |
21540 | ||
238ecede MW |
21541 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
21542 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
21543 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
21544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21545 | else | |
21546 | cat >conftest.$ac_ext <<_ACEOF | |
21547 | /* confdefs.h. */ | |
21548 | _ACEOF | |
21549 | cat confdefs.h >>conftest.$ac_ext | |
21550 | cat >>conftest.$ac_ext <<_ACEOF | |
21551 | /* end confdefs.h. */ | |
21552 | ||
83d8eb47 MW |
21553 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21554 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21555 | # error "fake wchar_t" |
21556 | #endif | |
21557 | #ifdef HAVE_WCHAR_H | |
21558 | # ifdef __CYGWIN__ | |
21559 | # include <stddef.h> | |
21560 | # endif | |
21561 | # include <wchar.h> | |
21562 | #endif | |
21563 | #ifdef HAVE_STDLIB_H | |
21564 | # include <stdlib.h> | |
21565 | #endif | |
21566 | #include <stdio.h> | |
21567 | ||
21568 | ||
21569 | ||
21570 | int | |
21571 | main () | |
21572 | { | |
21573 | if ((wchar_t *) 0) | |
21574 | return 0; | |
21575 | if (sizeof (wchar_t)) | |
21576 | return 0; | |
21577 | ; | |
21578 | return 0; | |
21579 | } | |
21580 | _ACEOF | |
21581 | rm -f conftest.$ac_objext | |
21582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21583 | (eval $ac_compile) 2>conftest.er1 | |
21584 | ac_status=$? | |
21585 | grep -v '^ *+' conftest.er1 >conftest.err | |
21586 | rm -f conftest.er1 | |
21587 | cat conftest.err >&5 | |
21588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21589 | (exit $ac_status); } && | |
ca5c6ac3 | 21590 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21592 | (eval $ac_try) 2>&5 | |
21593 | ac_status=$? | |
21594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21595 | (exit $ac_status); }; } && | |
21596 | { ac_try='test -s conftest.$ac_objext' | |
21597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21598 | (eval $ac_try) 2>&5 | |
21599 | ac_status=$? | |
21600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21601 | (exit $ac_status); }; }; then | |
21602 | ac_cv_type_wchar_t=yes | |
21603 | else | |
21604 | echo "$as_me: failed program was:" >&5 | |
21605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21606 | ||
21607 | ac_cv_type_wchar_t=no | |
21608 | fi | |
21609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21610 | fi | |
21611 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
21612 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
21613 | ||
a848cd7e SC |
21614 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
21615 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 21616 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
21617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21618 | else | |
238ecede MW |
21619 | if test "$ac_cv_type_wchar_t" = yes; then |
21620 | # The cast to unsigned long works around a bug in the HP C Compiler | |
21621 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21622 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21623 | # This bug is HP SR number 8606223364. | |
21624 | if test "$cross_compiling" = yes; then | |
21625 | # Depending upon the size, compute the lo and hi bounds. | |
21626 | cat >conftest.$ac_ext <<_ACEOF | |
21627 | /* confdefs.h. */ | |
21628 | _ACEOF | |
21629 | cat confdefs.h >>conftest.$ac_ext | |
21630 | cat >>conftest.$ac_ext <<_ACEOF | |
21631 | /* end confdefs.h. */ | |
21632 | ||
83d8eb47 MW |
21633 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21634 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21635 | # error "fake wchar_t" |
21636 | #endif | |
21637 | #ifdef HAVE_WCHAR_H | |
21638 | # ifdef __CYGWIN__ | |
21639 | # include <stddef.h> | |
21640 | # endif | |
21641 | # include <wchar.h> | |
21642 | #endif | |
21643 | #ifdef HAVE_STDLIB_H | |
21644 | # include <stdlib.h> | |
21645 | #endif | |
21646 | #include <stdio.h> | |
21647 | ||
21648 | ||
21649 | ||
21650 | int | |
21651 | main () | |
21652 | { | |
21653 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
21654 | test_array [0] = 0 | |
21655 | ||
21656 | ; | |
21657 | return 0; | |
21658 | } | |
21659 | _ACEOF | |
21660 | rm -f conftest.$ac_objext | |
21661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21662 | (eval $ac_compile) 2>conftest.er1 | |
21663 | ac_status=$? | |
21664 | grep -v '^ *+' conftest.er1 >conftest.err | |
21665 | rm -f conftest.er1 | |
21666 | cat conftest.err >&5 | |
21667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21668 | (exit $ac_status); } && | |
ca5c6ac3 | 21669 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21671 | (eval $ac_try) 2>&5 | |
21672 | ac_status=$? | |
21673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21674 | (exit $ac_status); }; } && | |
21675 | { ac_try='test -s conftest.$ac_objext' | |
21676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21677 | (eval $ac_try) 2>&5 | |
21678 | ac_status=$? | |
21679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21680 | (exit $ac_status); }; }; then | |
21681 | ac_lo=0 ac_mid=0 | |
21682 | while :; do | |
21683 | cat >conftest.$ac_ext <<_ACEOF | |
21684 | /* confdefs.h. */ | |
21685 | _ACEOF | |
21686 | cat confdefs.h >>conftest.$ac_ext | |
21687 | cat >>conftest.$ac_ext <<_ACEOF | |
21688 | /* end confdefs.h. */ | |
21689 | ||
83d8eb47 MW |
21690 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21691 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21692 | # error "fake wchar_t" |
21693 | #endif | |
21694 | #ifdef HAVE_WCHAR_H | |
21695 | # ifdef __CYGWIN__ | |
21696 | # include <stddef.h> | |
21697 | # endif | |
21698 | # include <wchar.h> | |
21699 | #endif | |
21700 | #ifdef HAVE_STDLIB_H | |
21701 | # include <stdlib.h> | |
21702 | #endif | |
21703 | #include <stdio.h> | |
21704 | ||
21705 | ||
21706 | ||
21707 | int | |
21708 | main () | |
21709 | { | |
21710 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21711 | test_array [0] = 0 | |
21712 | ||
21713 | ; | |
21714 | return 0; | |
21715 | } | |
21716 | _ACEOF | |
21717 | rm -f conftest.$ac_objext | |
21718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21719 | (eval $ac_compile) 2>conftest.er1 | |
21720 | ac_status=$? | |
21721 | grep -v '^ *+' conftest.er1 >conftest.err | |
21722 | rm -f conftest.er1 | |
21723 | cat conftest.err >&5 | |
21724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21725 | (exit $ac_status); } && | |
ca5c6ac3 | 21726 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21728 | (eval $ac_try) 2>&5 | |
21729 | ac_status=$? | |
21730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21731 | (exit $ac_status); }; } && | |
21732 | { ac_try='test -s conftest.$ac_objext' | |
21733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21734 | (eval $ac_try) 2>&5 | |
21735 | ac_status=$? | |
21736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21737 | (exit $ac_status); }; }; then | |
21738 | ac_hi=$ac_mid; break | |
21739 | else | |
21740 | echo "$as_me: failed program was:" >&5 | |
21741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21742 | ||
21743 | ac_lo=`expr $ac_mid + 1` | |
21744 | if test $ac_lo -le $ac_mid; then | |
21745 | ac_lo= ac_hi= | |
21746 | break | |
21747 | fi | |
21748 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21749 | fi | |
21750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21751 | done | |
21752 | else | |
21753 | echo "$as_me: failed program was:" >&5 | |
21754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21755 | ||
21756 | cat >conftest.$ac_ext <<_ACEOF | |
21757 | /* confdefs.h. */ | |
21758 | _ACEOF | |
21759 | cat confdefs.h >>conftest.$ac_ext | |
21760 | cat >>conftest.$ac_ext <<_ACEOF | |
21761 | /* end confdefs.h. */ | |
21762 | ||
83d8eb47 MW |
21763 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21764 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21765 | # error "fake wchar_t" |
21766 | #endif | |
21767 | #ifdef HAVE_WCHAR_H | |
21768 | # ifdef __CYGWIN__ | |
21769 | # include <stddef.h> | |
21770 | # endif | |
21771 | # include <wchar.h> | |
21772 | #endif | |
21773 | #ifdef HAVE_STDLIB_H | |
21774 | # include <stdlib.h> | |
21775 | #endif | |
21776 | #include <stdio.h> | |
21777 | ||
21778 | ||
21779 | ||
21780 | int | |
21781 | main () | |
21782 | { | |
21783 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
21784 | test_array [0] = 0 | |
21785 | ||
21786 | ; | |
21787 | return 0; | |
21788 | } | |
21789 | _ACEOF | |
21790 | rm -f conftest.$ac_objext | |
21791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21792 | (eval $ac_compile) 2>conftest.er1 | |
21793 | ac_status=$? | |
21794 | grep -v '^ *+' conftest.er1 >conftest.err | |
21795 | rm -f conftest.er1 | |
21796 | cat conftest.err >&5 | |
21797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21798 | (exit $ac_status); } && | |
ca5c6ac3 | 21799 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21801 | (eval $ac_try) 2>&5 | |
21802 | ac_status=$? | |
21803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21804 | (exit $ac_status); }; } && | |
21805 | { ac_try='test -s conftest.$ac_objext' | |
21806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21807 | (eval $ac_try) 2>&5 | |
21808 | ac_status=$? | |
21809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21810 | (exit $ac_status); }; }; then | |
21811 | ac_hi=-1 ac_mid=-1 | |
21812 | while :; do | |
21813 | cat >conftest.$ac_ext <<_ACEOF | |
21814 | /* confdefs.h. */ | |
21815 | _ACEOF | |
21816 | cat confdefs.h >>conftest.$ac_ext | |
21817 | cat >>conftest.$ac_ext <<_ACEOF | |
21818 | /* end confdefs.h. */ | |
21819 | ||
83d8eb47 MW |
21820 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21821 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21822 | # error "fake wchar_t" |
21823 | #endif | |
21824 | #ifdef HAVE_WCHAR_H | |
21825 | # ifdef __CYGWIN__ | |
21826 | # include <stddef.h> | |
21827 | # endif | |
21828 | # include <wchar.h> | |
21829 | #endif | |
21830 | #ifdef HAVE_STDLIB_H | |
21831 | # include <stdlib.h> | |
21832 | #endif | |
21833 | #include <stdio.h> | |
21834 | ||
21835 | ||
21836 | ||
21837 | int | |
21838 | main () | |
21839 | { | |
21840 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
21841 | test_array [0] = 0 | |
21842 | ||
21843 | ; | |
21844 | return 0; | |
21845 | } | |
21846 | _ACEOF | |
21847 | rm -f conftest.$ac_objext | |
21848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21849 | (eval $ac_compile) 2>conftest.er1 | |
21850 | ac_status=$? | |
21851 | grep -v '^ *+' conftest.er1 >conftest.err | |
21852 | rm -f conftest.er1 | |
21853 | cat conftest.err >&5 | |
21854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21855 | (exit $ac_status); } && | |
ca5c6ac3 | 21856 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21858 | (eval $ac_try) 2>&5 | |
21859 | ac_status=$? | |
21860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21861 | (exit $ac_status); }; } && | |
21862 | { ac_try='test -s conftest.$ac_objext' | |
21863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21864 | (eval $ac_try) 2>&5 | |
21865 | ac_status=$? | |
21866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21867 | (exit $ac_status); }; }; then | |
21868 | ac_lo=$ac_mid; break | |
21869 | else | |
21870 | echo "$as_me: failed program was:" >&5 | |
21871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21872 | ||
21873 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
21874 | if test $ac_mid -le $ac_hi; then | |
21875 | ac_lo= ac_hi= | |
21876 | break | |
21877 | fi | |
21878 | ac_mid=`expr 2 '*' $ac_mid` | |
21879 | fi | |
21880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21881 | done | |
21882 | else | |
21883 | echo "$as_me: failed program was:" >&5 | |
21884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21885 | ||
21886 | ac_lo= ac_hi= | |
21887 | fi | |
21888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21889 | fi | |
21890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21891 | # Binary search between lo and hi bounds. | |
21892 | while test "x$ac_lo" != "x$ac_hi"; do | |
21893 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21894 | cat >conftest.$ac_ext <<_ACEOF | |
21895 | /* confdefs.h. */ | |
21896 | _ACEOF | |
21897 | cat confdefs.h >>conftest.$ac_ext | |
21898 | cat >>conftest.$ac_ext <<_ACEOF | |
21899 | /* end confdefs.h. */ | |
21900 | ||
83d8eb47 MW |
21901 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21902 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21903 | # error "fake wchar_t" |
21904 | #endif | |
21905 | #ifdef HAVE_WCHAR_H | |
21906 | # ifdef __CYGWIN__ | |
21907 | # include <stddef.h> | |
21908 | # endif | |
21909 | # include <wchar.h> | |
21910 | #endif | |
21911 | #ifdef HAVE_STDLIB_H | |
21912 | # include <stdlib.h> | |
21913 | #endif | |
21914 | #include <stdio.h> | |
a848cd7e | 21915 | |
a848cd7e | 21916 | |
a848cd7e | 21917 | |
238ecede MW |
21918 | int |
21919 | main () | |
21920 | { | |
21921 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21922 | test_array [0] = 0 | |
a848cd7e | 21923 | |
238ecede MW |
21924 | ; |
21925 | return 0; | |
21926 | } | |
21927 | _ACEOF | |
21928 | rm -f conftest.$ac_objext | |
21929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21930 | (eval $ac_compile) 2>conftest.er1 | |
21931 | ac_status=$? | |
21932 | grep -v '^ *+' conftest.er1 >conftest.err | |
21933 | rm -f conftest.er1 | |
21934 | cat conftest.err >&5 | |
21935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21936 | (exit $ac_status); } && | |
ca5c6ac3 | 21937 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
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); }; } && | |
21943 | { ac_try='test -s conftest.$ac_objext' | |
21944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21945 | (eval $ac_try) 2>&5 | |
21946 | ac_status=$? | |
21947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21948 | (exit $ac_status); }; }; then | |
21949 | ac_hi=$ac_mid | |
21950 | else | |
21951 | echo "$as_me: failed program was:" >&5 | |
21952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21953 | ||
21954 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21955 | fi | |
21956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21957 | done | |
21958 | case $ac_lo in | |
21959 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
21960 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
21961 | See \`config.log' for more details." >&5 | |
21962 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21963 | See \`config.log' for more details." >&2;} | |
21964 | { (exit 1); exit 1; }; } ;; | |
21965 | esac | |
21966 | else | |
21967 | if test "$cross_compiling" = yes; then | |
ca5c6ac3 VZ |
21968 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21969 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 21970 | { (exit 1); exit 1; }; } |
a848cd7e SC |
21971 | else |
21972 | cat >conftest.$ac_ext <<_ACEOF | |
21973 | /* confdefs.h. */ | |
21974 | _ACEOF | |
21975 | cat confdefs.h >>conftest.$ac_ext | |
21976 | cat >>conftest.$ac_ext <<_ACEOF | |
21977 | /* end confdefs.h. */ | |
21978 | ||
83d8eb47 MW |
21979 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21980 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21981 | # error "fake wchar_t" |
21982 | #endif | |
21983 | #ifdef HAVE_WCHAR_H | |
21984 | # ifdef __CYGWIN__ | |
21985 | # include <stddef.h> | |
21986 | # endif | |
21987 | # include <wchar.h> | |
21988 | #endif | |
21989 | #ifdef HAVE_STDLIB_H | |
21990 | # include <stdlib.h> | |
21991 | #endif | |
21992 | #include <stdio.h> | |
21993 | ||
21994 | ||
21995 | ||
21996 | long longval () { return (long) (sizeof (wchar_t)); } | |
21997 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21998 | #include <stdio.h> | |
21999 | #include <stdlib.h> | |
22000 | int | |
22001 | main () | |
22002 | { | |
a848cd7e | 22003 | |
238ecede MW |
22004 | FILE *f = fopen ("conftest.val", "w"); |
22005 | if (! f) | |
22006 | exit (1); | |
22007 | if (((long) (sizeof (wchar_t))) < 0) | |
22008 | { | |
22009 | long i = longval (); | |
22010 | if (i != ((long) (sizeof (wchar_t)))) | |
22011 | exit (1); | |
22012 | fprintf (f, "%ld\n", i); | |
22013 | } | |
22014 | else | |
22015 | { | |
22016 | unsigned long i = ulongval (); | |
22017 | if (i != ((long) (sizeof (wchar_t)))) | |
22018 | exit (1); | |
22019 | fprintf (f, "%lu\n", i); | |
22020 | } | |
22021 | exit (ferror (f) || fclose (f) != 0); | |
22022 | ||
22023 | ; | |
22024 | return 0; | |
22025 | } | |
a848cd7e SC |
22026 | _ACEOF |
22027 | rm -f conftest$ac_exeext | |
22028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22029 | (eval $ac_link) 2>&5 | |
22030 | ac_status=$? | |
22031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22032 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22034 | (eval $ac_try) 2>&5 | |
22035 | ac_status=$? | |
22036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22037 | (exit $ac_status); }; }; then | |
238ecede | 22038 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
22039 | else |
22040 | echo "$as_me: program exited with status $ac_status" >&5 | |
22041 | echo "$as_me: failed program was:" >&5 | |
22042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22043 | ||
22044 | ( exit $ac_status ) | |
238ecede MW |
22045 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
22046 | See \`config.log' for more details." >&5 | |
22047 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
22048 | See \`config.log' for more details." >&2;} | |
22049 | { (exit 1); exit 1; }; } | |
a848cd7e | 22050 | fi |
ac1cb8d3 | 22051 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22052 | fi |
a848cd7e | 22053 | fi |
238ecede MW |
22054 | rm -f conftest.val |
22055 | else | |
22056 | ac_cv_sizeof_wchar_t=0 | |
22057 | fi | |
22058 | fi | |
22059 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
22060 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 22061 | cat >>confdefs.h <<_ACEOF |
238ecede | 22062 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
22063 | _ACEOF |
22064 | ||
22065 | ||
47a7e797 MW |
22066 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
22067 | wxUSE_WCHAR_T=yes | |
22068 | else | |
22069 | wxUSE_WCHAR_T=no | |
22070 | fi | |
238ecede | 22071 | |
ba3d13e1 VZ |
22072 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
22073 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
22074 | if test "${wx_cv_func_va_copy+set}" = set; then | |
22075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22076 | else | |
22077 | ||
22078 | cat >conftest.$ac_ext <<_ACEOF | |
22079 | ||
22080 | #include <stdarg.h> | |
22081 | void foo(char *f, ...) | |
22082 | { | |
22083 | va_list ap1, ap2; | |
22084 | va_start(ap1, f); | |
22085 | va_copy(ap2, ap1); | |
22086 | va_end(ap2); | |
22087 | va_end(ap1); | |
22088 | } | |
5886b072 VZ |
22089 | int main() |
22090 | { | |
b902e639 VZ |
22091 | foo("hi", 17); |
22092 | return 0; | |
5886b072 | 22093 | } |
ba3d13e1 VZ |
22094 | _ACEOF |
22095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22097 | (eval $ac_link) 2>conftest.er1 | |
22098 | ac_status=$? | |
22099 | grep -v '^ *+' conftest.er1 >conftest.err | |
22100 | rm -f conftest.er1 | |
22101 | cat conftest.err >&5 | |
22102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22103 | (exit $ac_status); } && | |
ca5c6ac3 | 22104 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
22105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22106 | (eval $ac_try) 2>&5 | |
22107 | ac_status=$? | |
22108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22109 | (exit $ac_status); }; } && | |
22110 | { ac_try='test -s conftest$ac_exeext' | |
22111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22112 | (eval $ac_try) 2>&5 | |
22113 | ac_status=$? | |
22114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22115 | (exit $ac_status); }; }; then | |
22116 | wx_cv_func_va_copy=yes | |
22117 | else | |
22118 | echo "$as_me: failed program was:" >&5 | |
22119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22120 | ||
22121 | wx_cv_func_va_copy=no | |
22122 | ||
22123 | fi | |
22124 | rm -f conftest.err conftest.$ac_objext \ | |
22125 | conftest$ac_exeext conftest.$ac_ext | |
22126 | ||
22127 | ||
22128 | fi | |
22129 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
22130 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
22131 | ||
22132 | if test $wx_cv_func_va_copy = "yes"; then | |
22133 | cat >>confdefs.h <<\_ACEOF | |
22134 | #define HAVE_VA_COPY 1 | |
22135 | _ACEOF | |
22136 | ||
22137 | else | |
22138 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
22139 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
22140 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
22141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22142 | else | |
22143 | ||
22144 | if test "$cross_compiling" = yes; then | |
22145 | wx_cv_type_va_list_lvalue=yes | |
22146 | ||
22147 | else | |
22148 | cat >conftest.$ac_ext <<_ACEOF | |
22149 | ||
22150 | #include <stdarg.h> | |
22151 | int foo(char *f, ...) | |
22152 | { | |
22153 | va_list ap1, ap2; | |
22154 | va_start(ap1, f); | |
22155 | ap2 = ap1; | |
22156 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
22157 | return 1; | |
22158 | va_end(ap2); | |
22159 | va_end(ap1); | |
22160 | return 0; | |
22161 | } | |
22162 | int main() | |
22163 | { | |
22164 | return foo("hi", 17); | |
22165 | } | |
22166 | _ACEOF | |
22167 | rm -f conftest$ac_exeext | |
22168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22169 | (eval $ac_link) 2>&5 | |
22170 | ac_status=$? | |
22171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22172 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22174 | (eval $ac_try) 2>&5 | |
22175 | ac_status=$? | |
22176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22177 | (exit $ac_status); }; }; then | |
22178 | wx_cv_type_va_list_lvalue=yes | |
22179 | else | |
22180 | echo "$as_me: program exited with status $ac_status" >&5 | |
22181 | echo "$as_me: failed program was:" >&5 | |
22182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22183 | ||
22184 | ( exit $ac_status ) | |
22185 | wx_cv_type_va_list_lvalue=no | |
22186 | fi | |
22187 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22188 | fi | |
22189 | ||
22190 | ||
22191 | fi | |
22192 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
22193 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
22194 | ||
22195 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
22196 | cat >>confdefs.h <<\_ACEOF | |
22197 | #define VA_LIST_IS_ARRAY 1 | |
22198 | _ACEOF | |
22199 | ||
22200 | fi | |
22201 | fi | |
22202 | ||
ca766534 VS |
22203 | echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5 |
22204 | echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6 | |
22205 | if test "${wx_cv_have_variadic_macros+set}" = set; then | |
22206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22207 | else | |
22208 | ||
22209 | cat >conftest.$ac_ext <<_ACEOF | |
22210 | /* confdefs.h. */ | |
22211 | _ACEOF | |
22212 | cat confdefs.h >>conftest.$ac_ext | |
22213 | cat >>conftest.$ac_ext <<_ACEOF | |
22214 | /* end confdefs.h. */ | |
22215 | ||
22216 | #include <stdio.h> | |
22217 | #define test(fmt, ...) printf(fmt, __VA_ARGS__) | |
22218 | ||
22219 | int | |
22220 | main () | |
22221 | { | |
22222 | ||
22223 | test("%s %d %p", "test", 1, 0); | |
22224 | ||
22225 | ||
22226 | ; | |
22227 | return 0; | |
22228 | } | |
22229 | _ACEOF | |
22230 | rm -f conftest.$ac_objext | |
22231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22232 | (eval $ac_compile) 2>conftest.er1 | |
22233 | ac_status=$? | |
22234 | grep -v '^ *+' conftest.er1 >conftest.err | |
22235 | rm -f conftest.er1 | |
22236 | cat conftest.err >&5 | |
22237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22238 | (exit $ac_status); } && | |
ca5c6ac3 | 22239 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ca766534 VS |
22240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22241 | (eval $ac_try) 2>&5 | |
22242 | ac_status=$? | |
22243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22244 | (exit $ac_status); }; } && | |
22245 | { ac_try='test -s conftest.$ac_objext' | |
22246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22247 | (eval $ac_try) 2>&5 | |
22248 | ac_status=$? | |
22249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22250 | (exit $ac_status); }; }; then | |
22251 | wx_cv_have_variadic_macros=yes | |
22252 | else | |
22253 | echo "$as_me: failed program was:" >&5 | |
22254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22255 | ||
22256 | wx_cv_have_variadic_macros=no | |
22257 | ||
22258 | fi | |
22259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22260 | ||
22261 | ||
22262 | fi | |
22263 | echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5 | |
22264 | echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6 | |
22265 | ||
22266 | if test $wx_cv_have_variadic_macros = "yes"; then | |
22267 | cat >>confdefs.h <<\_ACEOF | |
22268 | #define HAVE_VARIADIC_MACROS 1 | |
22269 | _ACEOF | |
22270 | ||
22271 | fi | |
22272 | ||
a848cd7e SC |
22273 | # Check whether --enable-largefile or --disable-largefile was given. |
22274 | if test "${enable_largefile+set}" = set; then | |
22275 | enableval="$enable_largefile" | |
22276 | ||
22277 | fi; | |
22278 | if test "$enable_largefile" != no; then | |
22279 | wx_largefile=no | |
22280 | ||
22281 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
22282 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
22283 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
22284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22285 | else | |
22286 | ||
22287 | cat >conftest.$ac_ext <<_ACEOF | |
22288 | /* confdefs.h. */ | |
22289 | _ACEOF | |
22290 | cat confdefs.h >>conftest.$ac_ext | |
22291 | cat >>conftest.$ac_ext <<_ACEOF | |
22292 | /* end confdefs.h. */ | |
22293 | #define _FILE_OFFSET_BITS 64 | |
22294 | #include <sys/types.h> | |
22295 | int | |
22296 | main () | |
22297 | { | |
22298 | typedef struct { | |
22299 | unsigned int field: sizeof(off_t) == 8; | |
22300 | } wxlf; | |
22301 | ||
22302 | ; | |
22303 | return 0; | |
22304 | } | |
22305 | _ACEOF | |
22306 | rm -f conftest.$ac_objext | |
22307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22308 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22309 | ac_status=$? |
ac1cb8d3 VS |
22310 | grep -v '^ *+' conftest.er1 >conftest.err |
22311 | rm -f conftest.er1 | |
22312 | cat conftest.err >&5 | |
a848cd7e SC |
22313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22314 | (exit $ac_status); } && | |
ca5c6ac3 | 22315 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22317 | (eval $ac_try) 2>&5 | |
22318 | ac_status=$? | |
22319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22320 | (exit $ac_status); }; } && | |
22321 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22323 | (eval $ac_try) 2>&5 | |
22324 | ac_status=$? | |
22325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22326 | (exit $ac_status); }; }; then | |
22327 | ac_cv_sys_file_offset_bits=64 | |
22328 | else | |
22329 | echo "$as_me: failed program was:" >&5 | |
22330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22331 | ||
22332 | ac_cv_sys_file_offset_bits=no | |
22333 | fi | |
ac1cb8d3 | 22334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22335 | |
22336 | ||
22337 | fi | |
22338 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
22339 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
22340 | ||
22341 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
22342 | wx_largefile=yes | |
22343 | cat >>confdefs.h <<_ACEOF | |
22344 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
22345 | _ACEOF | |
22346 | ||
22347 | fi | |
22348 | ||
22349 | if test "x$wx_largefile" != "xyes"; then | |
22350 | ||
22351 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
22352 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
22353 | if test "${ac_cv_sys_large_files+set}" = set; then | |
22354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22355 | else | |
22356 | ||
22357 | cat >conftest.$ac_ext <<_ACEOF | |
22358 | /* confdefs.h. */ | |
22359 | _ACEOF | |
22360 | cat confdefs.h >>conftest.$ac_ext | |
22361 | cat >>conftest.$ac_ext <<_ACEOF | |
22362 | /* end confdefs.h. */ | |
22363 | #define _LARGE_FILES 1 | |
22364 | #include <sys/types.h> | |
22365 | int | |
22366 | main () | |
22367 | { | |
22368 | typedef struct { | |
22369 | unsigned int field: sizeof(off_t) == 8; | |
22370 | } wxlf; | |
22371 | ||
22372 | ; | |
22373 | return 0; | |
22374 | } | |
22375 | _ACEOF | |
22376 | rm -f conftest.$ac_objext | |
22377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22378 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22379 | ac_status=$? |
ac1cb8d3 VS |
22380 | grep -v '^ *+' conftest.er1 >conftest.err |
22381 | rm -f conftest.er1 | |
22382 | cat conftest.err >&5 | |
a848cd7e SC |
22383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22384 | (exit $ac_status); } && | |
ca5c6ac3 | 22385 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22387 | (eval $ac_try) 2>&5 | |
22388 | ac_status=$? | |
22389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22390 | (exit $ac_status); }; } && | |
22391 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22393 | (eval $ac_try) 2>&5 | |
22394 | ac_status=$? | |
22395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22396 | (exit $ac_status); }; }; then | |
22397 | ac_cv_sys_large_files=1 | |
22398 | else | |
22399 | echo "$as_me: failed program was:" >&5 | |
22400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22401 | ||
22402 | ac_cv_sys_large_files=no | |
22403 | fi | |
ac1cb8d3 | 22404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22405 | |
22406 | ||
22407 | fi | |
22408 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
22409 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
22410 | ||
22411 | if test "$ac_cv_sys_large_files" != no; then | |
22412 | wx_largefile=yes | |
22413 | cat >>confdefs.h <<_ACEOF | |
22414 | #define _LARGE_FILES $ac_cv_sys_large_files | |
22415 | _ACEOF | |
22416 | ||
22417 | fi | |
22418 | ||
22419 | fi | |
22420 | ||
22421 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
22422 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
22423 | if test "x$wx_largefile" = "xyes"; then | |
22424 | cat >>confdefs.h <<\_ACEOF | |
22425 | #define HAVE_LARGEFILE_SUPPORT 1 | |
22426 | _ACEOF | |
22427 | ||
22428 | fi | |
22429 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
22430 | echo "${ECHO_T}$wx_largefile" >&6 | |
22431 | fi | |
22432 | ||
5b674b9d DE |
22433 | |
22434 | if test "x$wx_largefile" = "xyes"; then | |
22435 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 22436 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
22437 | |
22438 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
22439 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
22440 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
22441 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
22442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22443 | else | |
22444 | ||
00421666 MW |
22445 | cat >conftest.$ac_ext <<_ACEOF |
22446 | /* confdefs.h. */ | |
22447 | _ACEOF | |
22448 | cat confdefs.h >>conftest.$ac_ext | |
22449 | cat >>conftest.$ac_ext <<_ACEOF | |
22450 | /* end confdefs.h. */ | |
22451 | ||
22452 | int | |
22453 | main () | |
22454 | { | |
22455 | ||
22456 | #ifndef __STDC_EXT__ | |
22457 | choke me | |
22458 | #endif | |
22459 | ||
22460 | ; | |
22461 | return 0; | |
22462 | } | |
22463 | _ACEOF | |
22464 | rm -f conftest.$ac_objext | |
22465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22466 | (eval $ac_compile) 2>conftest.er1 | |
22467 | ac_status=$? | |
22468 | grep -v '^ *+' conftest.er1 >conftest.err | |
22469 | rm -f conftest.er1 | |
22470 | cat conftest.err >&5 | |
22471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22472 | (exit $ac_status); } && | |
ca5c6ac3 | 22473 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
00421666 MW |
22474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22475 | (eval $ac_try) 2>&5 | |
22476 | ac_status=$? | |
22477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22478 | (exit $ac_status); }; } && | |
22479 | { ac_try='test -s conftest.$ac_objext' | |
22480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22481 | (eval $ac_try) 2>&5 | |
22482 | ac_status=$? | |
22483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22484 | (exit $ac_status); }; }; then | |
22485 | wx_cv_STDC_EXT_required=no | |
22486 | else | |
22487 | echo "$as_me: failed program was:" >&5 | |
22488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22489 | ||
22490 | wx_cv_STDC_EXT_required=yes | |
22491 | ||
22492 | fi | |
22493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
00421666 MW |
22494 | |
22495 | ||
22496 | fi | |
22497 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
22498 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
22499 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 22500 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
22501 | fi |
22502 | fi | |
5b674b9d | 22503 | else |
5ff751d6 | 22504 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
22505 | fi |
22506 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
22507 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
22508 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
22509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22510 | else | |
22511 | while :; do | |
22512 | ac_cv_sys_largefile_source=no | |
22513 | cat >conftest.$ac_ext <<_ACEOF | |
22514 | /* confdefs.h. */ | |
22515 | _ACEOF | |
22516 | cat confdefs.h >>conftest.$ac_ext | |
22517 | cat >>conftest.$ac_ext <<_ACEOF | |
22518 | /* end confdefs.h. */ | |
22519 | #include <stdio.h> | |
22520 | int | |
22521 | main () | |
22522 | { | |
22523 | return !fseeko; | |
22524 | ; | |
22525 | return 0; | |
22526 | } | |
22527 | _ACEOF | |
22528 | rm -f conftest.$ac_objext | |
22529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22530 | (eval $ac_compile) 2>conftest.er1 | |
22531 | ac_status=$? | |
22532 | grep -v '^ *+' conftest.er1 >conftest.err | |
22533 | rm -f conftest.er1 | |
22534 | cat conftest.err >&5 | |
22535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22536 | (exit $ac_status); } && | |
ca5c6ac3 | 22537 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
22538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22539 | (eval $ac_try) 2>&5 | |
22540 | ac_status=$? | |
22541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22542 | (exit $ac_status); }; } && | |
22543 | { ac_try='test -s conftest.$ac_objext' | |
22544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22545 | (eval $ac_try) 2>&5 | |
22546 | ac_status=$? | |
22547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22548 | (exit $ac_status); }; }; then | |
22549 | break | |
22550 | else | |
22551 | echo "$as_me: failed program was:" >&5 | |
22552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22553 | ||
22554 | fi | |
22555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22556 | cat >conftest.$ac_ext <<_ACEOF | |
22557 | /* confdefs.h. */ | |
22558 | _ACEOF | |
22559 | cat confdefs.h >>conftest.$ac_ext | |
22560 | cat >>conftest.$ac_ext <<_ACEOF | |
22561 | /* end confdefs.h. */ | |
22562 | #define _LARGEFILE_SOURCE 1 | |
22563 | #include <stdio.h> | |
22564 | int | |
22565 | main () | |
22566 | { | |
22567 | return !fseeko; | |
22568 | ; | |
22569 | return 0; | |
22570 | } | |
22571 | _ACEOF | |
22572 | rm -f conftest.$ac_objext | |
22573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22574 | (eval $ac_compile) 2>conftest.er1 | |
22575 | ac_status=$? | |
22576 | grep -v '^ *+' conftest.er1 >conftest.err | |
22577 | rm -f conftest.er1 | |
22578 | cat conftest.err >&5 | |
22579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22580 | (exit $ac_status); } && | |
ca5c6ac3 | 22581 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
22582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22583 | (eval $ac_try) 2>&5 | |
22584 | ac_status=$? | |
22585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22586 | (exit $ac_status); }; } && | |
22587 | { ac_try='test -s conftest.$ac_objext' | |
22588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22589 | (eval $ac_try) 2>&5 | |
22590 | ac_status=$? | |
22591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22592 | (exit $ac_status); }; }; then | |
22593 | ac_cv_sys_largefile_source=1; break | |
22594 | else | |
22595 | echo "$as_me: failed program was:" >&5 | |
22596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22597 | ||
22598 | fi | |
22599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22600 | break | |
22601 | done | |
22602 | fi | |
22603 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
22604 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
22605 | if test "$ac_cv_sys_largefile_source" != no; then | |
22606 | ||
22607 | cat >>confdefs.h <<_ACEOF | |
22608 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
22609 | _ACEOF | |
22610 | ||
22611 | fi | |
22612 | rm -f conftest* | |
22613 | ||
22614 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
22615 | # in glibc 2.1.3, but that breaks too many other things. | |
22616 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
22617 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
22618 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
22619 | if test "${ac_cv_func_fseeko+set}" = set; then | |
22620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22621 | else | |
22622 | cat >conftest.$ac_ext <<_ACEOF | |
22623 | /* confdefs.h. */ | |
22624 | _ACEOF | |
22625 | cat confdefs.h >>conftest.$ac_ext | |
22626 | cat >>conftest.$ac_ext <<_ACEOF | |
22627 | /* end confdefs.h. */ | |
22628 | #include <stdio.h> | |
22629 | int | |
22630 | main () | |
22631 | { | |
22632 | return fseeko && fseeko (stdin, 0, 0); | |
22633 | ; | |
22634 | return 0; | |
22635 | } | |
22636 | _ACEOF | |
22637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22639 | (eval $ac_link) 2>conftest.er1 | |
22640 | ac_status=$? | |
22641 | grep -v '^ *+' conftest.er1 >conftest.err | |
22642 | rm -f conftest.er1 | |
22643 | cat conftest.err >&5 | |
22644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22645 | (exit $ac_status); } && | |
ca5c6ac3 | 22646 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
22647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22648 | (eval $ac_try) 2>&5 | |
22649 | ac_status=$? | |
22650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22651 | (exit $ac_status); }; } && | |
22652 | { ac_try='test -s conftest$ac_exeext' | |
22653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22654 | (eval $ac_try) 2>&5 | |
22655 | ac_status=$? | |
22656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22657 | (exit $ac_status); }; }; then | |
22658 | ac_cv_func_fseeko=yes | |
22659 | else | |
22660 | echo "$as_me: failed program was:" >&5 | |
22661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22662 | ||
22663 | ac_cv_func_fseeko=no | |
22664 | fi | |
22665 | rm -f conftest.err conftest.$ac_objext \ | |
22666 | conftest$ac_exeext conftest.$ac_ext | |
22667 | fi | |
22668 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
22669 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
22670 | if test $ac_cv_func_fseeko = yes; then | |
22671 | ||
22672 | cat >>confdefs.h <<\_ACEOF | |
22673 | #define HAVE_FSEEKO 1 | |
22674 | _ACEOF | |
22675 | ||
22676 | fi | |
22677 | ||
5b674b9d | 22678 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 22679 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 22680 | fi |
a848cd7e SC |
22681 | fi |
22682 | ||
22683 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
22684 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
22685 | if test "${ac_cv_c_bigendian+set}" = set; then | |
22686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22687 | else | |
22688 | ac_cv_c_bigendian=unknown | |
22689 | # See if sys/param.h defines the BYTE_ORDER macro. | |
22690 | cat >conftest.$ac_ext <<_ACEOF | |
22691 | /* confdefs.h. */ | |
22692 | _ACEOF | |
22693 | cat confdefs.h >>conftest.$ac_ext | |
22694 | cat >>conftest.$ac_ext <<_ACEOF | |
22695 | /* end confdefs.h. */ | |
22696 | #include <sys/types.h> | |
22697 | #include <sys/param.h> | |
22698 | int | |
22699 | main () | |
22700 | { | |
22701 | ||
22702 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
22703 | bogus endian macros | |
22704 | #endif | |
22705 | ; | |
22706 | return 0; | |
22707 | } | |
22708 | _ACEOF | |
22709 | rm -f conftest.$ac_objext | |
22710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22711 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22712 | ac_status=$? |
ac1cb8d3 VS |
22713 | grep -v '^ *+' conftest.er1 >conftest.err |
22714 | rm -f conftest.er1 | |
22715 | cat conftest.err >&5 | |
a848cd7e SC |
22716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22717 | (exit $ac_status); } && | |
ca5c6ac3 | 22718 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22720 | (eval $ac_try) 2>&5 | |
22721 | ac_status=$? | |
22722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22723 | (exit $ac_status); }; } && | |
22724 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22726 | (eval $ac_try) 2>&5 | |
22727 | ac_status=$? | |
22728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22729 | (exit $ac_status); }; }; then | |
22730 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
22731 | cat >conftest.$ac_ext <<_ACEOF | |
22732 | /* confdefs.h. */ | |
22733 | _ACEOF | |
22734 | cat confdefs.h >>conftest.$ac_ext | |
22735 | cat >>conftest.$ac_ext <<_ACEOF | |
22736 | /* end confdefs.h. */ | |
22737 | #include <sys/types.h> | |
22738 | #include <sys/param.h> | |
22739 | int | |
22740 | main () | |
22741 | { | |
22742 | ||
22743 | #if BYTE_ORDER != BIG_ENDIAN | |
22744 | not big endian | |
22745 | #endif | |
22746 | ; | |
22747 | return 0; | |
22748 | } | |
22749 | _ACEOF | |
22750 | rm -f conftest.$ac_objext | |
22751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22752 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22753 | ac_status=$? |
ac1cb8d3 VS |
22754 | grep -v '^ *+' conftest.er1 >conftest.err |
22755 | rm -f conftest.er1 | |
22756 | cat conftest.err >&5 | |
a848cd7e SC |
22757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22758 | (exit $ac_status); } && | |
ca5c6ac3 | 22759 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22761 | (eval $ac_try) 2>&5 | |
22762 | ac_status=$? | |
22763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22764 | (exit $ac_status); }; } && | |
22765 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22767 | (eval $ac_try) 2>&5 | |
22768 | ac_status=$? | |
22769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22770 | (exit $ac_status); }; }; then | |
22771 | ac_cv_c_bigendian=yes | |
22772 | else | |
22773 | echo "$as_me: failed program was:" >&5 | |
22774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22775 | ||
22776 | ac_cv_c_bigendian=no | |
22777 | fi | |
ac1cb8d3 | 22778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22779 | else |
22780 | echo "$as_me: failed program was:" >&5 | |
22781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22782 | ||
22783 | fi | |
ac1cb8d3 | 22784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22785 | if test $ac_cv_c_bigendian = unknown; then |
22786 | if test "$cross_compiling" = yes; then | |
22787 | ac_cv_c_bigendian=unknown | |
22788 | else | |
22789 | cat >conftest.$ac_ext <<_ACEOF | |
22790 | /* confdefs.h. */ | |
22791 | _ACEOF | |
22792 | cat confdefs.h >>conftest.$ac_ext | |
22793 | cat >>conftest.$ac_ext <<_ACEOF | |
22794 | /* end confdefs.h. */ | |
22795 | main () { | |
22796 | /* Are we little or big endian? From Harbison&Steele. */ | |
22797 | union | |
22798 | { | |
22799 | long l; | |
22800 | char c[sizeof (long)]; | |
22801 | } u; | |
22802 | u.l = 1; | |
22803 | exit (u.c[sizeof (long) - 1] == 1); | |
22804 | } | |
22805 | _ACEOF | |
22806 | rm -f conftest$ac_exeext | |
22807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22808 | (eval $ac_link) 2>&5 | |
22809 | ac_status=$? | |
22810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22813 | (eval $ac_try) 2>&5 | |
22814 | ac_status=$? | |
22815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22816 | (exit $ac_status); }; }; then | |
22817 | ac_cv_c_bigendian=no | |
22818 | else | |
22819 | echo "$as_me: program exited with status $ac_status" >&5 | |
22820 | echo "$as_me: failed program was:" >&5 | |
22821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22822 | ||
22823 | ( exit $ac_status ) | |
22824 | ac_cv_c_bigendian=yes | |
22825 | fi | |
ac1cb8d3 | 22826 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22827 | fi |
22828 | fi | |
22829 | fi | |
22830 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
22831 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
22832 | if test $ac_cv_c_bigendian = unknown; then | |
22833 | { 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 | |
22834 | 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;} | |
22835 | fi | |
22836 | if test $ac_cv_c_bigendian = yes; then | |
22837 | cat >>confdefs.h <<\_ACEOF | |
22838 | #define WORDS_BIGENDIAN 1 | |
22839 | _ACEOF | |
22840 | ||
22841 | fi | |
22842 | ||
22843 | ||
a848cd7e SC |
22844 | |
22845 | ||
22846 | ||
22847 | ac_ext=cc | |
22848 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22849 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22850 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22851 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22852 | ||
22853 | ||
22854 | ||
22855 | for ac_header in iostream | |
22856 | do | |
22857 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22859 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22863 | fi | |
22864 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22865 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22866 | else | |
22867 | # Is the header compilable? | |
22868 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22869 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22870 | cat >conftest.$ac_ext <<_ACEOF | |
22871 | /* confdefs.h. */ | |
22872 | _ACEOF | |
22873 | cat confdefs.h >>conftest.$ac_ext | |
22874 | cat >>conftest.$ac_ext <<_ACEOF | |
22875 | /* end confdefs.h. */ | |
22876 | $ac_includes_default | |
22877 | #include <$ac_header> | |
22878 | _ACEOF | |
22879 | rm -f conftest.$ac_objext | |
22880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22881 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22882 | ac_status=$? |
ac1cb8d3 VS |
22883 | grep -v '^ *+' conftest.er1 >conftest.err |
22884 | rm -f conftest.er1 | |
22885 | cat conftest.err >&5 | |
a848cd7e SC |
22886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22887 | (exit $ac_status); } && | |
ca5c6ac3 | 22888 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22890 | (eval $ac_try) 2>&5 | |
22891 | ac_status=$? | |
22892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22893 | (exit $ac_status); }; } && | |
22894 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22896 | (eval $ac_try) 2>&5 | |
22897 | ac_status=$? | |
22898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22899 | (exit $ac_status); }; }; then | |
22900 | ac_header_compiler=yes | |
22901 | else | |
22902 | echo "$as_me: failed program was:" >&5 | |
22903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22904 | ||
22905 | ac_header_compiler=no | |
22906 | fi | |
ac1cb8d3 | 22907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22908 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22909 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22910 | ||
22911 | # Is the header present? | |
22912 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22913 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22914 | cat >conftest.$ac_ext <<_ACEOF | |
22915 | /* confdefs.h. */ | |
22916 | _ACEOF | |
22917 | cat confdefs.h >>conftest.$ac_ext | |
22918 | cat >>conftest.$ac_ext <<_ACEOF | |
22919 | /* end confdefs.h. */ | |
22920 | #include <$ac_header> | |
22921 | _ACEOF | |
22922 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22923 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22924 | ac_status=$? | |
22925 | grep -v '^ *+' conftest.er1 >conftest.err | |
22926 | rm -f conftest.er1 | |
22927 | cat conftest.err >&5 | |
22928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22929 | (exit $ac_status); } >/dev/null; then | |
22930 | if test -s conftest.err; then | |
22931 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22932 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22933 | else |
22934 | ac_cpp_err= | |
22935 | fi | |
22936 | else | |
22937 | ac_cpp_err=yes | |
22938 | fi | |
22939 | if test -z "$ac_cpp_err"; then | |
22940 | ac_header_preproc=yes | |
22941 | else | |
22942 | echo "$as_me: failed program was:" >&5 | |
22943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22944 | ||
22945 | ac_header_preproc=no | |
22946 | fi | |
22947 | rm -f conftest.err conftest.$ac_ext | |
22948 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22949 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22950 | ||
22951 | # So? What about this header? | |
ac1cb8d3 VS |
22952 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22953 | yes:no: ) | |
a848cd7e SC |
22954 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22955 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22956 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22957 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22958 | ac_header_preproc=yes | |
a848cd7e | 22959 | ;; |
ac1cb8d3 | 22960 | no:yes:* ) |
a848cd7e SC |
22961 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22962 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22963 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22964 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22965 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22966 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22967 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22968 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22969 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22970 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22971 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22972 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22973 | ( |
22974 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22975 | ## ----------------------------------------- ## |
22976 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22977 | ## ----------------------------------------- ## | |
a848cd7e SC |
22978 | _ASBOX |
22979 | ) | | |
22980 | sed "s/^/$as_me: WARNING: /" >&2 | |
22981 | ;; | |
22982 | esac | |
22983 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22984 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22985 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22987 | else | |
ac1cb8d3 | 22988 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22989 | fi |
22990 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22991 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22992 | ||
22993 | fi | |
22994 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22995 | cat >>confdefs.h <<_ACEOF | |
22996 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22997 | _ACEOF | |
22998 | ||
22999 | fi | |
23000 | ||
23001 | done | |
23002 | ||
23003 | ||
23004 | if test "$ac_cv_header_iostream" = "yes" ; then | |
23005 | : | |
23006 | else | |
23007 | cat >>confdefs.h <<\_ACEOF | |
23008 | #define wxUSE_IOSTREAMH 1 | |
23009 | _ACEOF | |
23010 | ||
23011 | fi | |
23012 | ||
5d7b7554 VZ |
23013 | ac_ext=cc |
23014 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23015 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23016 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23017 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23018 | |
23019 | ||
23020 | ||
23021 | ||
23022 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
23023 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
23024 | if test "${wx_cv_cpp_bool+set}" = set; then | |
23025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23026 | else | |
23027 | ||
23028 | ||
23029 | ||
23030 | ac_ext=cc | |
23031 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23032 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23033 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23034 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23035 | ||
23036 | ||
23037 | cat >conftest.$ac_ext <<_ACEOF | |
23038 | /* confdefs.h. */ | |
23039 | _ACEOF | |
23040 | cat confdefs.h >>conftest.$ac_ext | |
23041 | cat >>conftest.$ac_ext <<_ACEOF | |
23042 | /* end confdefs.h. */ | |
23043 | ||
23044 | ||
23045 | int | |
23046 | main () | |
23047 | { | |
23048 | ||
23049 | bool b = true; | |
23050 | ||
23051 | return 0; | |
23052 | ||
23053 | ; | |
23054 | return 0; | |
23055 | } | |
23056 | _ACEOF | |
23057 | rm -f conftest.$ac_objext | |
23058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23059 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23060 | ac_status=$? |
ac1cb8d3 VS |
23061 | grep -v '^ *+' conftest.er1 >conftest.err |
23062 | rm -f conftest.er1 | |
23063 | cat conftest.err >&5 | |
a848cd7e SC |
23064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23065 | (exit $ac_status); } && | |
ca5c6ac3 | 23066 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23068 | (eval $ac_try) 2>&5 | |
23069 | ac_status=$? | |
23070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23071 | (exit $ac_status); }; } && | |
23072 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23074 | (eval $ac_try) 2>&5 | |
23075 | ac_status=$? | |
23076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23077 | (exit $ac_status); }; }; then | |
23078 | ||
23079 | wx_cv_cpp_bool=yes | |
23080 | ||
23081 | else | |
23082 | echo "$as_me: failed program was:" >&5 | |
23083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23084 | ||
23085 | ||
23086 | wx_cv_cpp_bool=no | |
23087 | ||
23088 | ||
23089 | fi | |
ac1cb8d3 | 23090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23091 | |
5d7b7554 VZ |
23092 | ac_ext=cc |
23093 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23094 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23095 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23096 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23097 | |
23098 | ||
23099 | fi | |
23100 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
23101 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
23102 | ||
23103 | if test "$wx_cv_cpp_bool" = "yes"; then | |
23104 | cat >>confdefs.h <<\_ACEOF | |
23105 | #define HAVE_BOOL 1 | |
23106 | _ACEOF | |
23107 | ||
23108 | fi | |
23109 | ||
23110 | ||
23111 | ||
23112 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
23113 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
23114 | if test "${wx_cv_explicit+set}" = set; then | |
23115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23116 | else | |
23117 | ||
23118 | ||
23119 | ||
23120 | ac_ext=cc | |
23121 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23122 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23123 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23124 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23125 | ||
23126 | ||
23127 | cat >conftest.$ac_ext <<_ACEOF | |
23128 | /* confdefs.h. */ | |
23129 | _ACEOF | |
23130 | cat confdefs.h >>conftest.$ac_ext | |
23131 | cat >>conftest.$ac_ext <<_ACEOF | |
23132 | /* end confdefs.h. */ | |
23133 | ||
23134 | class Foo { public: explicit Foo(int) {} }; | |
23135 | ||
23136 | int | |
23137 | main () | |
23138 | { | |
23139 | ||
23140 | return 0; | |
23141 | ||
23142 | ; | |
23143 | return 0; | |
23144 | } | |
23145 | _ACEOF | |
23146 | rm -f conftest.$ac_objext | |
23147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23148 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23149 | ac_status=$? |
ac1cb8d3 VS |
23150 | grep -v '^ *+' conftest.er1 >conftest.err |
23151 | rm -f conftest.er1 | |
23152 | cat conftest.err >&5 | |
a848cd7e SC |
23153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23154 | (exit $ac_status); } && | |
ca5c6ac3 | 23155 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23157 | (eval $ac_try) 2>&5 | |
23158 | ac_status=$? | |
23159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23160 | (exit $ac_status); }; } && | |
23161 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23163 | (eval $ac_try) 2>&5 | |
23164 | ac_status=$? | |
23165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23166 | (exit $ac_status); }; }; then | |
23167 | ||
23168 | cat >conftest.$ac_ext <<_ACEOF | |
23169 | /* confdefs.h. */ | |
23170 | _ACEOF | |
23171 | cat confdefs.h >>conftest.$ac_ext | |
23172 | cat >>conftest.$ac_ext <<_ACEOF | |
23173 | /* end confdefs.h. */ | |
23174 | ||
23175 | class Foo { public: explicit Foo(int) {} }; | |
23176 | static void TakeFoo(const Foo& foo) { } | |
23177 | ||
23178 | int | |
23179 | main () | |
23180 | { | |
23181 | ||
23182 | TakeFoo(17); | |
23183 | return 0; | |
23184 | ||
23185 | ; | |
23186 | return 0; | |
23187 | } | |
23188 | _ACEOF | |
23189 | rm -f conftest.$ac_objext | |
23190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23191 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23192 | ac_status=$? |
ac1cb8d3 VS |
23193 | grep -v '^ *+' conftest.er1 >conftest.err |
23194 | rm -f conftest.er1 | |
23195 | cat conftest.err >&5 | |
a848cd7e SC |
23196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23197 | (exit $ac_status); } && | |
ca5c6ac3 | 23198 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23200 | (eval $ac_try) 2>&5 | |
23201 | ac_status=$? | |
23202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23203 | (exit $ac_status); }; } && | |
23204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23206 | (eval $ac_try) 2>&5 | |
23207 | ac_status=$? | |
23208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23209 | (exit $ac_status); }; }; then | |
23210 | wx_cv_explicit=no | |
23211 | else | |
23212 | echo "$as_me: failed program was:" >&5 | |
23213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23214 | ||
23215 | wx_cv_explicit=yes | |
23216 | ||
23217 | fi | |
ac1cb8d3 | 23218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23219 | |
23220 | else | |
23221 | echo "$as_me: failed program was:" >&5 | |
23222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23223 | ||
23224 | wx_cv_explicit=no | |
23225 | ||
23226 | fi | |
ac1cb8d3 | 23227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23228 | |
5d7b7554 VZ |
23229 | ac_ext=cc |
23230 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23231 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23232 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23233 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23234 | |
23235 | ||
23236 | fi | |
23237 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
23238 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
23239 | ||
23240 | if test "$wx_cv_explicit" = "yes"; then | |
23241 | cat >>confdefs.h <<\_ACEOF | |
23242 | #define HAVE_EXPLICIT 1 | |
23243 | _ACEOF | |
23244 | ||
23245 | fi | |
23246 | ||
23247 | ||
23248 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
23249 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
23250 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
23251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23252 | else | |
23253 | ||
23254 | ||
23255 | ac_ext=cc | |
23256 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23257 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23258 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23259 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23260 | ||
23261 | cat >conftest.$ac_ext <<_ACEOF | |
23262 | /* confdefs.h. */ | |
23263 | _ACEOF | |
23264 | cat confdefs.h >>conftest.$ac_ext | |
23265 | cat >>conftest.$ac_ext <<_ACEOF | |
23266 | /* end confdefs.h. */ | |
23267 | ||
23268 | int | |
23269 | main () | |
23270 | { | |
23271 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
23272 | ; | |
23273 | return 0; | |
23274 | } | |
23275 | _ACEOF | |
23276 | rm -f conftest.$ac_objext | |
23277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23278 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23279 | ac_status=$? |
ac1cb8d3 VS |
23280 | grep -v '^ *+' conftest.er1 >conftest.err |
23281 | rm -f conftest.er1 | |
23282 | cat conftest.err >&5 | |
a848cd7e SC |
23283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23284 | (exit $ac_status); } && | |
ca5c6ac3 | 23285 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23287 | (eval $ac_try) 2>&5 | |
23288 | ac_status=$? | |
23289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23290 | (exit $ac_status); }; } && | |
23291 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23293 | (eval $ac_try) 2>&5 | |
23294 | ac_status=$? | |
23295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23296 | (exit $ac_status); }; }; then | |
23297 | ac_cv_cxx_const_cast=yes | |
23298 | else | |
23299 | echo "$as_me: failed program was:" >&5 | |
23300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23301 | ||
23302 | ac_cv_cxx_const_cast=no | |
23303 | fi | |
ac1cb8d3 | 23304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
23305 | ac_ext=cc |
23306 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23307 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23308 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23309 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23310 | |
23311 | ||
23312 | fi | |
23313 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
23314 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
23315 | if test "$ac_cv_cxx_const_cast" = yes; then | |
23316 | ||
23317 | cat >>confdefs.h <<\_ACEOF | |
23318 | #define HAVE_CONST_CAST | |
23319 | _ACEOF | |
23320 | ||
23321 | fi | |
23322 | ||
7714864e RL |
23323 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
23324 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
23325 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
23326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23327 | else | |
23328 | ||
23329 | ||
23330 | ac_ext=cc | |
23331 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23332 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23333 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23334 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23335 | ||
23336 | cat >conftest.$ac_ext <<_ACEOF | |
23337 | /* confdefs.h. */ | |
23338 | _ACEOF | |
23339 | cat confdefs.h >>conftest.$ac_ext | |
23340 | cat >>conftest.$ac_ext <<_ACEOF | |
23341 | /* end confdefs.h. */ | |
23342 | #include <typeinfo> | |
23343 | class Base { public : Base () {} virtual void f () = 0;}; | |
23344 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
23345 | class Unrelated { public : Unrelated () {} }; | |
23346 | int g (Unrelated&) { return 0; } | |
23347 | int | |
23348 | main () | |
23349 | { | |
23350 | ||
23351 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
23352 | ; | |
23353 | return 0; | |
23354 | } | |
23355 | _ACEOF | |
23356 | rm -f conftest.$ac_objext | |
23357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23358 | (eval $ac_compile) 2>conftest.er1 | |
23359 | ac_status=$? | |
23360 | grep -v '^ *+' conftest.er1 >conftest.err | |
23361 | rm -f conftest.er1 | |
23362 | cat conftest.err >&5 | |
23363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23364 | (exit $ac_status); } && | |
ca5c6ac3 | 23365 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
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); }; } && | |
23371 | { ac_try='test -s conftest.$ac_objext' | |
23372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23373 | (eval $ac_try) 2>&5 | |
23374 | ac_status=$? | |
23375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23376 | (exit $ac_status); }; }; then | |
23377 | ac_cv_cxx_reinterpret_cast=yes | |
23378 | else | |
23379 | echo "$as_me: failed program was:" >&5 | |
23380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23381 | ||
23382 | ac_cv_cxx_reinterpret_cast=no | |
23383 | fi | |
23384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
23385 | ac_ext=cc |
23386 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23387 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23388 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23389 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7714864e RL |
23390 | |
23391 | ||
23392 | fi | |
23393 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
23394 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
23395 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
23396 | ||
23397 | cat >>confdefs.h <<\_ACEOF | |
23398 | #define HAVE_REINTERPRET_CAST | |
23399 | _ACEOF | |
23400 | ||
23401 | fi | |
23402 | ||
a848cd7e SC |
23403 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
23404 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
23405 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
23406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23407 | else | |
23408 | ||
23409 | ||
23410 | ac_ext=cc | |
23411 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23412 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23413 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23414 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23415 | ||
23416 | cat >conftest.$ac_ext <<_ACEOF | |
23417 | /* confdefs.h. */ | |
23418 | _ACEOF | |
23419 | cat confdefs.h >>conftest.$ac_ext | |
23420 | cat >>conftest.$ac_ext <<_ACEOF | |
23421 | /* end confdefs.h. */ | |
23422 | #include <typeinfo> | |
23423 | class Base { public : Base () {} virtual void f () = 0; }; | |
23424 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
23425 | int g (Derived&) { return 0; } | |
23426 | int | |
23427 | main () | |
23428 | { | |
23429 | ||
23430 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
23431 | ; | |
23432 | return 0; | |
23433 | } | |
23434 | _ACEOF | |
23435 | rm -f conftest.$ac_objext | |
23436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23437 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23438 | ac_status=$? |
ac1cb8d3 VS |
23439 | grep -v '^ *+' conftest.er1 >conftest.err |
23440 | rm -f conftest.er1 | |
23441 | cat conftest.err >&5 | |
a848cd7e SC |
23442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23443 | (exit $ac_status); } && | |
ca5c6ac3 | 23444 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23446 | (eval $ac_try) 2>&5 | |
23447 | ac_status=$? | |
23448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23449 | (exit $ac_status); }; } && | |
23450 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23452 | (eval $ac_try) 2>&5 | |
23453 | ac_status=$? | |
23454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23455 | (exit $ac_status); }; }; then | |
23456 | ac_cv_cxx_static_cast=yes | |
23457 | else | |
23458 | echo "$as_me: failed program was:" >&5 | |
23459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23460 | ||
23461 | ac_cv_cxx_static_cast=no | |
23462 | fi | |
ac1cb8d3 | 23463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
23464 | ac_ext=cc |
23465 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23466 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23467 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23468 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
23469 | |
23470 | ||
23471 | fi | |
23472 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
23473 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
23474 | if test "$ac_cv_cxx_static_cast" = yes; then | |
23475 | ||
23476 | cat >>confdefs.h <<\_ACEOF | |
23477 | #define HAVE_STATIC_CAST | |
23478 | _ACEOF | |
23479 | ||
23480 | fi | |
23481 | ||
23482 | ||
3c28b7cb | 23483 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 23484 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
23485 | fi |
23486 | ||
9122d155 | 23487 | if test "x$SUNCC" = xyes; then |
c92ad099 | 23488 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
23489 | fi |
23490 | ||
0ad5d837 | 23491 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 23492 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
23493 | fi |
23494 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 23495 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
23496 | fi |
23497 | ||
2eef8513 | 23498 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 23499 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
23500 | fi |
23501 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 23502 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
23503 | fi |
23504 | ||
23505 | if test "x$COMPAQCXX" = "xyes"; then | |
23506 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
23507 | fi | |
23508 | ||
f56c22b4 | 23509 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
f56c22b4 MW |
23510 | if test "$wxUSE_UNICODE" = "yes"; then |
23511 | std_string="std::wstring" | |
23512 | char_type="wchar_t" | |
23513 | else | |
23514 | std_string="std::string" | |
23515 | char_type="char" | |
23516 | fi | |
23517 | ||
23518 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
23519 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
23520 | cat >conftest.$ac_ext <<_ACEOF |
23521 | /* confdefs.h. */ | |
23522 | _ACEOF | |
23523 | cat confdefs.h >>conftest.$ac_ext | |
23524 | cat >>conftest.$ac_ext <<_ACEOF | |
23525 | /* end confdefs.h. */ | |
23526 | #include <string> | |
a848cd7e SC |
23527 | int |
23528 | main () | |
23529 | { | |
f56c22b4 | 23530 | $std_string foo; |
a848cd7e SC |
23531 | ; |
23532 | return 0; | |
23533 | } | |
23534 | _ACEOF | |
23535 | rm -f conftest.$ac_objext | |
23536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23537 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23538 | ac_status=$? |
ac1cb8d3 VS |
23539 | grep -v '^ *+' conftest.er1 >conftest.err |
23540 | rm -f conftest.er1 | |
23541 | cat conftest.err >&5 | |
a848cd7e SC |
23542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23543 | (exit $ac_status); } && | |
ca5c6ac3 | 23544 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23546 | (eval $ac_try) 2>&5 | |
23547 | ac_status=$? | |
23548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23549 | (exit $ac_status); }; } && | |
23550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23552 | (eval $ac_try) 2>&5 | |
23553 | ac_status=$? | |
23554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23555 | (exit $ac_status); }; }; then | |
23556 | echo "$as_me:$LINENO: result: yes" >&5 | |
23557 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
23558 | cat >>confdefs.h <<\_ACEOF |
23559 | #define HAVE_STD_WSTRING 1 | |
23560 | _ACEOF | |
23561 | ||
a848cd7e SC |
23562 | else |
23563 | echo "$as_me: failed program was:" >&5 | |
23564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23565 | ||
23566 | echo "$as_me:$LINENO: result: no" >&5 | |
23567 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
23568 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
23569 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
23570 | cat >conftest.$ac_ext <<_ACEOF |
23571 | /* confdefs.h. */ | |
23572 | _ACEOF | |
23573 | cat confdefs.h >>conftest.$ac_ext | |
23574 | cat >>conftest.$ac_ext <<_ACEOF | |
23575 | /* end confdefs.h. */ | |
23576 | ||
23577 | #ifdef HAVE_WCHAR_H | |
23578 | # ifdef __CYGWIN__ | |
23579 | # include <stddef.h> | |
23580 | # endif | |
23581 | # include <wchar.h> | |
23582 | #endif | |
23583 | #ifdef HAVE_STDLIB_H | |
23584 | # include <stdlib.h> | |
23585 | #endif | |
23586 | #include <stdio.h> | |
23587 | #include <string> | |
23588 | ||
23589 | int | |
23590 | main () | |
23591 | { | |
f56c22b4 MW |
23592 | std::basic_string<$char_type> foo; |
23593 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
23594 | ; |
23595 | return 0; | |
23596 | } | |
23597 | _ACEOF | |
23598 | rm -f conftest.$ac_objext | |
23599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23600 | (eval $ac_compile) 2>conftest.er1 | |
23601 | ac_status=$? | |
23602 | grep -v '^ *+' conftest.er1 >conftest.err | |
23603 | rm -f conftest.er1 | |
23604 | cat conftest.err >&5 | |
23605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23606 | (exit $ac_status); } && | |
ca5c6ac3 | 23607 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
23608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23609 | (eval $ac_try) 2>&5 | |
23610 | ac_status=$? | |
23611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23612 | (exit $ac_status); }; } && | |
23613 | { ac_try='test -s conftest.$ac_objext' | |
23614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23615 | (eval $ac_try) 2>&5 | |
23616 | ac_status=$? | |
23617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23618 | (exit $ac_status); }; }; then | |
23619 | echo "$as_me:$LINENO: result: yes" >&5 | |
23620 | echo "${ECHO_T}yes" >&6 | |
23621 | else | |
23622 | echo "$as_me: failed program was:" >&5 | |
23623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23624 | ||
23625 | echo "$as_me:$LINENO: result: no" >&5 | |
23626 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 23627 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
23628 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
23629 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
23630 | { (exit 1); exit 1; }; } | |
23631 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
23632 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
23633 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 23634 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
23635 | else |
23636 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
23637 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
23638 | wxUSE_STD_STRING=no | |
23639 | fi | |
23640 | ||
0a08f02a | 23641 | |
a848cd7e | 23642 | fi |
ac1cb8d3 | 23643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23644 | |
0a08f02a MB |
23645 | fi |
23646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f56c22b4 MW |
23647 | fi |
23648 | ||
23649 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
f56c22b4 MW |
23650 | echo "$as_me:$LINENO: checking for std::istream" >&5 |
23651 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
23652 | if test "${ac_cv_type_std__istream+set}" = set; then | |
23653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23654 | else | |
23655 | cat >conftest.$ac_ext <<_ACEOF | |
23656 | /* confdefs.h. */ | |
23657 | _ACEOF | |
23658 | cat confdefs.h >>conftest.$ac_ext | |
23659 | cat >>conftest.$ac_ext <<_ACEOF | |
23660 | /* end confdefs.h. */ | |
23661 | #include <iostream> | |
23662 | ||
23663 | int | |
23664 | main () | |
23665 | { | |
23666 | if ((std::istream *) 0) | |
23667 | return 0; | |
23668 | if (sizeof (std::istream)) | |
23669 | return 0; | |
23670 | ; | |
23671 | return 0; | |
23672 | } | |
23673 | _ACEOF | |
23674 | rm -f conftest.$ac_objext | |
23675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23676 | (eval $ac_compile) 2>conftest.er1 | |
23677 | ac_status=$? | |
23678 | grep -v '^ *+' conftest.er1 >conftest.err | |
23679 | rm -f conftest.er1 | |
23680 | cat conftest.err >&5 | |
23681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23682 | (exit $ac_status); } && | |
ca5c6ac3 | 23683 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
23684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23685 | (eval $ac_try) 2>&5 | |
23686 | ac_status=$? | |
23687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23688 | (exit $ac_status); }; } && | |
23689 | { ac_try='test -s conftest.$ac_objext' | |
23690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23691 | (eval $ac_try) 2>&5 | |
23692 | ac_status=$? | |
23693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23694 | (exit $ac_status); }; }; then | |
23695 | ac_cv_type_std__istream=yes | |
23696 | else | |
23697 | echo "$as_me: failed program was:" >&5 | |
23698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23699 | ||
23700 | ac_cv_type_std__istream=no | |
23701 | fi | |
23702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23703 | fi | |
23704 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
23705 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
23706 | if test $ac_cv_type_std__istream = yes; then | |
23707 | ||
23708 | cat >>confdefs.h <<_ACEOF | |
23709 | #define HAVE_STD__ISTREAM 1 | |
23710 | _ACEOF | |
23711 | ||
23712 | ||
23713 | else | |
23714 | wxUSE_STD_IOSTREAM=no | |
23715 | fi | |
23716 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
23717 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
23718 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
23719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23720 | else | |
23721 | cat >conftest.$ac_ext <<_ACEOF | |
23722 | /* confdefs.h. */ | |
23723 | _ACEOF | |
23724 | cat confdefs.h >>conftest.$ac_ext | |
23725 | cat >>conftest.$ac_ext <<_ACEOF | |
23726 | /* end confdefs.h. */ | |
23727 | #include <iostream> | |
23728 | ||
23729 | int | |
23730 | main () | |
23731 | { | |
23732 | if ((std::ostream *) 0) | |
23733 | return 0; | |
23734 | if (sizeof (std::ostream)) | |
23735 | return 0; | |
23736 | ; | |
23737 | return 0; | |
23738 | } | |
23739 | _ACEOF | |
23740 | rm -f conftest.$ac_objext | |
23741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23742 | (eval $ac_compile) 2>conftest.er1 | |
23743 | ac_status=$? | |
23744 | grep -v '^ *+' conftest.er1 >conftest.err | |
23745 | rm -f conftest.er1 | |
23746 | cat conftest.err >&5 | |
23747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23748 | (exit $ac_status); } && | |
ca5c6ac3 | 23749 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
23750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23751 | (eval $ac_try) 2>&5 | |
23752 | ac_status=$? | |
23753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23754 | (exit $ac_status); }; } && | |
23755 | { ac_try='test -s conftest.$ac_objext' | |
23756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23757 | (eval $ac_try) 2>&5 | |
23758 | ac_status=$? | |
23759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23760 | (exit $ac_status); }; }; then | |
23761 | ac_cv_type_std__ostream=yes | |
23762 | else | |
23763 | echo "$as_me: failed program was:" >&5 | |
23764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23765 | ||
23766 | ac_cv_type_std__ostream=no | |
23767 | fi | |
23768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23769 | fi | |
23770 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
23771 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
23772 | if test $ac_cv_type_std__ostream = yes; then | |
23773 | ||
23774 | cat >>confdefs.h <<_ACEOF | |
23775 | #define HAVE_STD__OSTREAM 1 | |
23776 | _ACEOF | |
23777 | ||
23778 | ||
23779 | else | |
23780 | wxUSE_STD_IOSTREAM=no | |
23781 | fi | |
23782 | ||
23783 | ||
23784 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
23785 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
23786 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
23787 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
23788 | { (exit 1); exit 1; }; } | |
23789 | else | |
23790 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23791 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23792 | fi |
f56c22b4 | 23793 | fi |
0a08f02a MB |
23794 | fi |
23795 | ||
23796 | if test "$wxUSE_STL" = "yes"; then | |
0a08f02a MB |
23797 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 |
23798 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23799 | cat >conftest.$ac_ext <<_ACEOF |
23800 | /* confdefs.h. */ | |
23801 | _ACEOF | |
23802 | cat confdefs.h >>conftest.$ac_ext | |
23803 | cat >>conftest.$ac_ext <<_ACEOF | |
23804 | /* end confdefs.h. */ | |
23805 | #include <string> | |
0a08f02a MB |
23806 | #include <functional> |
23807 | #include <algorithm> | |
23808 | #include <vector> | |
23809 | #include <list> | |
a848cd7e SC |
23810 | int |
23811 | main () | |
23812 | { | |
0a08f02a MB |
23813 | std::vector<int> moo; |
23814 | std::list<int> foo; | |
23815 | std::vector<int>::iterator it = | |
23816 | std::find_if(moo.begin(), moo.end(), | |
23817 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23818 | ; |
23819 | return 0; | |
23820 | } | |
23821 | _ACEOF | |
23822 | rm -f conftest.$ac_objext | |
23823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23824 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23825 | ac_status=$? |
ac1cb8d3 VS |
23826 | grep -v '^ *+' conftest.er1 >conftest.err |
23827 | rm -f conftest.er1 | |
23828 | cat conftest.err >&5 | |
a848cd7e SC |
23829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23830 | (exit $ac_status); } && | |
ca5c6ac3 | 23831 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23833 | (eval $ac_try) 2>&5 | |
23834 | ac_status=$? | |
23835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23836 | (exit $ac_status); }; } && | |
23837 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23839 | (eval $ac_try) 2>&5 | |
23840 | ac_status=$? | |
23841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23842 | (exit $ac_status); }; }; then | |
23843 | echo "$as_me:$LINENO: result: yes" >&5 | |
23844 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23845 | else |
23846 | echo "$as_me: failed program was:" >&5 | |
23847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23848 | ||
23849 | echo "$as_me:$LINENO: result: no" >&5 | |
23850 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23851 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23852 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23853 | { (exit 1); exit 1; }; } | |
a848cd7e | 23854 | fi |
ac1cb8d3 | 23855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23856 | |
23857 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23858 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23859 | cat >conftest.$ac_ext <<_ACEOF | |
23860 | /* confdefs.h. */ | |
23861 | _ACEOF | |
23862 | cat confdefs.h >>conftest.$ac_ext | |
23863 | cat >>conftest.$ac_ext <<_ACEOF | |
23864 | /* end confdefs.h. */ | |
23865 | #include <string> | |
23866 | int | |
23867 | main () | |
23868 | { | |
23869 | std::string foo, bar; | |
23870 | foo.compare(bar); | |
23871 | foo.compare(1, 1, bar); | |
23872 | foo.compare(1, 1, bar, 1, 1); | |
23873 | foo.compare(""); | |
23874 | foo.compare(1, 1, ""); | |
23875 | foo.compare(1, 1, "", 2); | |
23876 | ; | |
23877 | return 0; | |
23878 | } | |
23879 | _ACEOF | |
23880 | rm -f conftest.$ac_objext | |
23881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23882 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23883 | ac_status=$? |
ac1cb8d3 VS |
23884 | grep -v '^ *+' conftest.er1 >conftest.err |
23885 | rm -f conftest.er1 | |
23886 | cat conftest.err >&5 | |
a848cd7e SC |
23887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23888 | (exit $ac_status); } && | |
ca5c6ac3 | 23889 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23891 | (eval $ac_try) 2>&5 | |
23892 | ac_status=$? | |
23893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23894 | (exit $ac_status); }; } && | |
23895 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23897 | (eval $ac_try) 2>&5 | |
23898 | ac_status=$? | |
23899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23900 | (exit $ac_status); }; }; then | |
23901 | echo "$as_me:$LINENO: result: yes" >&5 | |
23902 | echo "${ECHO_T}yes" >&6 | |
23903 | cat >>confdefs.h <<\_ACEOF | |
23904 | #define HAVE_STD_STRING_COMPARE 1 | |
23905 | _ACEOF | |
23906 | ||
23907 | else | |
23908 | echo "$as_me: failed program was:" >&5 | |
23909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23910 | ||
23911 | echo "$as_me:$LINENO: result: no" >&5 | |
23912 | echo "${ECHO_T}no" >&6 | |
23913 | fi | |
ac1cb8d3 | 23914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23915 | |
23916 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23917 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23918 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23919 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23921 | fi | |
23922 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23923 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23924 | else | |
23925 | # Is the header compilable? | |
23926 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23927 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23928 | cat >conftest.$ac_ext <<_ACEOF | |
23929 | /* confdefs.h. */ | |
23930 | _ACEOF | |
23931 | cat confdefs.h >>conftest.$ac_ext | |
23932 | cat >>conftest.$ac_ext <<_ACEOF | |
23933 | /* end confdefs.h. */ | |
23934 | $ac_includes_default | |
23935 | #include <hash_map> | |
23936 | _ACEOF | |
23937 | rm -f conftest.$ac_objext | |
23938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23939 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23940 | ac_status=$? |
ac1cb8d3 VS |
23941 | grep -v '^ *+' conftest.er1 >conftest.err |
23942 | rm -f conftest.er1 | |
23943 | cat conftest.err >&5 | |
bdcade0a MB |
23944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23945 | (exit $ac_status); } && | |
ca5c6ac3 | 23946 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23948 | (eval $ac_try) 2>&5 | |
23949 | ac_status=$? | |
23950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23951 | (exit $ac_status); }; } && | |
23952 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23954 | (eval $ac_try) 2>&5 | |
23955 | ac_status=$? | |
23956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23957 | (exit $ac_status); }; }; then | |
23958 | ac_header_compiler=yes | |
23959 | else | |
23960 | echo "$as_me: failed program was:" >&5 | |
23961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23962 | ||
23963 | ac_header_compiler=no | |
23964 | fi | |
ac1cb8d3 | 23965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23966 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23967 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23968 | ||
23969 | # Is the header present? | |
23970 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23971 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23972 | cat >conftest.$ac_ext <<_ACEOF | |
23973 | /* confdefs.h. */ | |
23974 | _ACEOF | |
23975 | cat confdefs.h >>conftest.$ac_ext | |
23976 | cat >>conftest.$ac_ext <<_ACEOF | |
23977 | /* end confdefs.h. */ | |
23978 | #include <hash_map> | |
23979 | _ACEOF | |
23980 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23981 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23982 | ac_status=$? | |
23983 | grep -v '^ *+' conftest.er1 >conftest.err | |
23984 | rm -f conftest.er1 | |
23985 | cat conftest.err >&5 | |
23986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23987 | (exit $ac_status); } >/dev/null; then | |
23988 | if test -s conftest.err; then | |
23989 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23990 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23991 | else |
23992 | ac_cpp_err= | |
23993 | fi | |
23994 | else | |
23995 | ac_cpp_err=yes | |
23996 | fi | |
23997 | if test -z "$ac_cpp_err"; then | |
23998 | ac_header_preproc=yes | |
23999 | else | |
24000 | echo "$as_me: failed program was:" >&5 | |
24001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24002 | ||
24003 | ac_header_preproc=no | |
24004 | fi | |
24005 | rm -f conftest.err conftest.$ac_ext | |
24006 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24007 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24008 | ||
24009 | # So? What about this header? | |
ac1cb8d3 VS |
24010 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
24011 | yes:no: ) | |
bdcade0a MB |
24012 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
24013 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24014 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
24015 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
24016 | ac_header_preproc=yes | |
bdcade0a | 24017 | ;; |
ac1cb8d3 | 24018 | no:yes:* ) |
bdcade0a MB |
24019 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
24020 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24021 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
24022 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
24023 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
24024 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
24025 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
24026 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
24027 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
24028 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24029 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
24030 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
24031 | ( |
24032 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24033 | ## ----------------------------------------- ## |
24034 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24035 | ## ----------------------------------------- ## | |
bdcade0a MB |
24036 | _ASBOX |
24037 | ) | | |
24038 | sed "s/^/$as_me: WARNING: /" >&2 | |
24039 | ;; | |
24040 | esac | |
24041 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
24042 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
24043 | if test "${ac_cv_header_hash_map+set}" = set; then | |
24044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24045 | else | |
24046 | ac_cv_header_hash_map=$ac_header_preproc | |
24047 | fi | |
24048 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
24049 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
24050 | ||
24051 | fi | |
24052 | if test $ac_cv_header_hash_map = yes; then | |
24053 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
24054 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
24055 | cat >conftest.$ac_ext <<_ACEOF | |
24056 | /* confdefs.h. */ | |
24057 | _ACEOF | |
24058 | cat confdefs.h >>conftest.$ac_ext | |
24059 | cat >>conftest.$ac_ext <<_ACEOF | |
24060 | /* end confdefs.h. */ | |
24061 | #include <hash_map> | |
24062 | #include <hash_set> | |
24063 | int | |
24064 | main () | |
24065 | { | |
24066 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
24067 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
24068 | ; | |
24069 | return 0; | |
24070 | } | |
24071 | _ACEOF | |
24072 | rm -f conftest.$ac_objext | |
24073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24074 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 24075 | ac_status=$? |
ac1cb8d3 VS |
24076 | grep -v '^ *+' conftest.er1 >conftest.err |
24077 | rm -f conftest.er1 | |
24078 | cat conftest.err >&5 | |
bdcade0a MB |
24079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24080 | (exit $ac_status); } && | |
ca5c6ac3 | 24081 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24083 | (eval $ac_try) 2>&5 | |
24084 | ac_status=$? | |
24085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24086 | (exit $ac_status); }; } && | |
24087 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
24088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24089 | (eval $ac_try) 2>&5 | |
24090 | ac_status=$? | |
24091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24092 | (exit $ac_status); }; }; then | |
24093 | echo "$as_me:$LINENO: result: yes" >&5 | |
24094 | echo "${ECHO_T}yes" >&6 | |
24095 | cat >>confdefs.h <<\_ACEOF | |
24096 | #define HAVE_HASH_MAP 1 | |
24097 | _ACEOF | |
24098 | ||
24099 | cat >>confdefs.h <<\_ACEOF | |
24100 | #define HAVE_STD_HASH_MAP 1 | |
24101 | _ACEOF | |
24102 | ||
24103 | else | |
24104 | echo "$as_me: failed program was:" >&5 | |
24105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24106 | ||
24107 | echo "$as_me:$LINENO: result: no" >&5 | |
24108 | echo "${ECHO_T}no" >&6 | |
24109 | fi | |
ac1cb8d3 | 24110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24111 | |
24112 | fi | |
24113 | ||
24114 | ||
24115 | ||
24116 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
24117 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
24118 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
24119 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
24120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24121 | fi | |
24122 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
24123 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
24124 | else | |
24125 | # Is the header compilable? | |
24126 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
24127 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
24128 | cat >conftest.$ac_ext <<_ACEOF | |
24129 | /* confdefs.h. */ | |
24130 | _ACEOF | |
24131 | cat confdefs.h >>conftest.$ac_ext | |
24132 | cat >>conftest.$ac_ext <<_ACEOF | |
24133 | /* end confdefs.h. */ | |
24134 | $ac_includes_default | |
24135 | #include <ext/hash_map> | |
24136 | _ACEOF | |
24137 | rm -f conftest.$ac_objext | |
24138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24139 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 24140 | ac_status=$? |
ac1cb8d3 VS |
24141 | grep -v '^ *+' conftest.er1 >conftest.err |
24142 | rm -f conftest.er1 | |
24143 | cat conftest.err >&5 | |
bdcade0a MB |
24144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24145 | (exit $ac_status); } && | |
ca5c6ac3 | 24146 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24148 | (eval $ac_try) 2>&5 | |
24149 | ac_status=$? | |
24150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24151 | (exit $ac_status); }; } && | |
24152 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
24153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24154 | (eval $ac_try) 2>&5 | |
24155 | ac_status=$? | |
24156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24157 | (exit $ac_status); }; }; then | |
24158 | ac_header_compiler=yes | |
24159 | else | |
24160 | echo "$as_me: failed program was:" >&5 | |
24161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24162 | ||
24163 | ac_header_compiler=no | |
24164 | fi | |
ac1cb8d3 | 24165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24166 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24167 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24168 | ||
24169 | # Is the header present? | |
24170 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
24171 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
24172 | cat >conftest.$ac_ext <<_ACEOF | |
24173 | /* confdefs.h. */ | |
24174 | _ACEOF | |
24175 | cat confdefs.h >>conftest.$ac_ext | |
24176 | cat >>conftest.$ac_ext <<_ACEOF | |
24177 | /* end confdefs.h. */ | |
24178 | #include <ext/hash_map> | |
24179 | _ACEOF | |
24180 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24182 | ac_status=$? | |
24183 | grep -v '^ *+' conftest.er1 >conftest.err | |
24184 | rm -f conftest.er1 | |
24185 | cat conftest.err >&5 | |
24186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24187 | (exit $ac_status); } >/dev/null; then | |
24188 | if test -s conftest.err; then | |
24189 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 24190 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
24191 | else |
24192 | ac_cpp_err= | |
24193 | fi | |
24194 | else | |
24195 | ac_cpp_err=yes | |
24196 | fi | |
24197 | if test -z "$ac_cpp_err"; then | |
24198 | ac_header_preproc=yes | |
24199 | else | |
24200 | echo "$as_me: failed program was:" >&5 | |
24201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24202 | ||
24203 | ac_header_preproc=no | |
24204 | fi | |
24205 | rm -f conftest.err conftest.$ac_ext | |
24206 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24207 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24208 | ||
24209 | # So? What about this header? | |
ac1cb8d3 VS |
24210 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
24211 | yes:no: ) | |
bdcade0a MB |
24212 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
24213 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24214 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
24215 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
24216 | ac_header_preproc=yes | |
bdcade0a | 24217 | ;; |
ac1cb8d3 | 24218 | no:yes:* ) |
bdcade0a MB |
24219 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
24220 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24221 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
24222 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
24223 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
24224 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
24225 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
24226 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
24227 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
24228 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24229 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
24230 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
24231 | ( |
24232 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24233 | ## ----------------------------------------- ## |
24234 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24235 | ## ----------------------------------------- ## | |
bdcade0a MB |
24236 | _ASBOX |
24237 | ) | | |
24238 | sed "s/^/$as_me: WARNING: /" >&2 | |
24239 | ;; | |
24240 | esac | |
24241 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
24242 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
24243 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
24244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24245 | else | |
24246 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
24247 | fi | |
24248 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
24249 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
24250 | ||
24251 | fi | |
24252 | if test $ac_cv_header_ext_hash_map = yes; then | |
24253 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
24254 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
24255 | cat >conftest.$ac_ext <<_ACEOF | |
24256 | /* confdefs.h. */ | |
24257 | _ACEOF | |
24258 | cat confdefs.h >>conftest.$ac_ext | |
24259 | cat >>conftest.$ac_ext <<_ACEOF | |
24260 | /* end confdefs.h. */ | |
24261 | #include <ext/hash_map> | |
24262 | #include <ext/hash_set> | |
24263 | int | |
24264 | main () | |
24265 | { | |
24266 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
24267 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
24268 | ; | |
24269 | return 0; | |
24270 | } | |
24271 | _ACEOF | |
24272 | rm -f conftest.$ac_objext | |
24273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24274 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 24275 | ac_status=$? |
ac1cb8d3 VS |
24276 | grep -v '^ *+' conftest.er1 >conftest.err |
24277 | rm -f conftest.er1 | |
24278 | cat conftest.err >&5 | |
bdcade0a MB |
24279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24280 | (exit $ac_status); } && | |
ca5c6ac3 | 24281 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24283 | (eval $ac_try) 2>&5 | |
24284 | ac_status=$? | |
24285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24286 | (exit $ac_status); }; } && | |
24287 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
24288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24289 | (eval $ac_try) 2>&5 | |
24290 | ac_status=$? | |
24291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24292 | (exit $ac_status); }; }; then | |
24293 | echo "$as_me:$LINENO: result: yes" >&5 | |
24294 | echo "${ECHO_T}yes" >&6 | |
24295 | cat >>confdefs.h <<\_ACEOF | |
24296 | #define HAVE_EXT_HASH_MAP 1 | |
24297 | _ACEOF | |
24298 | ||
24299 | cat >>confdefs.h <<\_ACEOF | |
24300 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
24301 | _ACEOF | |
24302 | ||
24303 | else | |
24304 | echo "$as_me: failed program was:" >&5 | |
24305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24306 | ||
24307 | echo "$as_me:$LINENO: result: no" >&5 | |
24308 | echo "${ECHO_T}no" >&6 | |
24309 | fi | |
ac1cb8d3 | 24310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
24311 | |
24312 | fi | |
24313 | ||
24314 | ||
a848cd7e SC |
24315 | fi |
24316 | ||
24317 | ||
24318 | SEARCH_INCLUDE="\ | |
24319 | /usr/local/include \ | |
24320 | \ | |
24321 | /usr/Motif-2.1/include \ | |
24322 | /usr/Motif-1.2/include \ | |
24323 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
24324 | \ |
24325 | /usr/dt/include \ | |
24326 | /usr/openwin/include \ | |
24327 | \ | |
24328 | /usr/include/Xm \ | |
24329 | \ | |
24330 | /usr/X11R6/include \ | |
24331 | /usr/X11R6.4/include \ | |
24332 | /usr/X11R5/include \ | |
24333 | /usr/X11R4/include \ | |
24334 | \ | |
24335 | /usr/include/X11R6 \ | |
24336 | /usr/include/X11R5 \ | |
24337 | /usr/include/X11R4 \ | |
24338 | \ | |
24339 | /usr/local/X11R6/include \ | |
24340 | /usr/local/X11R5/include \ | |
24341 | /usr/local/X11R4/include \ | |
24342 | \ | |
24343 | /usr/local/include/X11R6 \ | |
24344 | /usr/local/include/X11R5 \ | |
24345 | /usr/local/include/X11R4 \ | |
24346 | \ | |
24347 | /usr/X11/include \ | |
24348 | /usr/include/X11 \ | |
24349 | /usr/local/X11/include \ | |
24350 | /usr/local/include/X11 \ | |
24351 | \ | |
a848cd7e | 24352 | /usr/XFree86/include/X11 \ |
e051b34e MW |
24353 | /usr/pkg/include \ |
24354 | \ | |
a848cd7e SC |
24355 | /usr/openwin/share/include" |
24356 | ||
6f9cf1e6 | 24357 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 24358 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
24359 | |
24360 | case "${host}" in | |
24361 | *-*-irix6* ) | |
24362 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
24363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24364 | else | |
24365 | ||
c687b303 VZ |
24366 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
24367 | for e in a so sl dylib dll.a; do | |
24368 | libc="$d/libc.$e" | |
24369 | if test -f $libc; then | |
24370 | save_LIBS="$LIBS" | |
24371 | LIBS="$libc" | |
24372 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
24373 | int main() { return 0; } |
24374 | _ACEOF | |
24375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24377 | (eval $ac_link) 2>conftest.er1 | |
24378 | ac_status=$? | |
24379 | grep -v '^ *+' conftest.er1 >conftest.err | |
24380 | rm -f conftest.er1 | |
24381 | cat conftest.err >&5 | |
24382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24383 | (exit $ac_status); } && | |
ca5c6ac3 | 24384 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
24385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24386 | (eval $ac_try) 2>&5 | |
24387 | ac_status=$? | |
24388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24389 | (exit $ac_status); }; } && | |
24390 | { ac_try='test -s conftest$ac_exeext' | |
24391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24392 | (eval $ac_try) 2>&5 | |
24393 | ac_status=$? | |
24394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24395 | (exit $ac_status); }; }; then | |
24396 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
24397 | else | |
24398 | echo "$as_me: failed program was:" >&5 | |
24399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24400 | ||
24401 | fi | |
24402 | rm -f conftest.err conftest.$ac_objext \ | |
24403 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
24404 | LIBS="$save_LIBS" |
24405 | if test "x$wx_cv_std_libpath" != "x"; then | |
24406 | break 2 | |
24407 | fi | |
24408 | fi | |
24409 | done | |
24410 | done | |
24411 | if test "x$wx_cv_std_libpath" = "x"; then | |
24412 | wx_cv_std_libpath="lib" | |
0ad5d837 | 24413 | fi |
0ad5d837 VZ |
24414 | |
24415 | ||
24416 | fi | |
6f9cf1e6 MW |
24417 | |
24418 | ;; | |
24419 | ||
24420 | *-*-solaris2* ) | |
24421 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
24422 | wx_cv_std_libpath="lib/64" | |
24423 | else | |
24424 | wx_cv_std_libpath="lib" | |
24425 | fi | |
24426 | ;; | |
24427 | ||
24428 | *-*-linux* ) | |
24429 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
24430 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
24431 | wx_cv_std_libpath="lib64" | |
24432 | else | |
24433 | wx_cv_std_libpath="lib" | |
24434 | fi | |
c687b303 VZ |
24435 | ;; |
24436 | ||
24437 | *) | |
24438 | wx_cv_std_libpath="lib"; | |
24439 | ;; | |
24440 | esac | |
0ad5d837 | 24441 | |
6f9cf1e6 MW |
24442 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
24443 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
24444 | ||
24445 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 24446 | |
3eca31dc MW |
24447 | if test "$build" != "$host" -a "$GCC" = yes; then |
24448 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
24449 | cross_root=`dirname $cross_root` | |
24450 | cross_root=`dirname $cross_root` | |
24451 | ||
24452 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
24453 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 24454 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
24455 | |
24456 | if test -z "$PKG_CONFIG_PATH"; then | |
24457 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
24458 | export PKG_CONFIG_PATH | |
24459 | fi | |
24460 | ||
24461 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
24462 | ||
24463 | ac_find_includes= | |
24464 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24465 | do | |
24466 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
24467 | ac_find_includes=$ac_dir | |
24468 | break | |
24469 | fi | |
24470 | done | |
24471 | ||
24472 | x_includes=$ac_find_includes | |
24473 | fi | |
24474 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
24475 | ||
0ad5d837 VZ |
24476 | ac_find_libraries= |
24477 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
24478 | do |
24479 | for ac_extension in a so sl dylib dll.a; do | |
24480 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
24481 | ac_find_libraries=$ac_dir | |
24482 | break 2 | |
24483 | fi | |
24484 | done | |
24485 | done | |
24486 | ||
24487 | x_libraries=$ac_find_libraries | |
24488 | fi | |
24489 | fi | |
24490 | fi | |
24491 | ||
a848cd7e SC |
24492 | |
24493 | cat >confcache <<\_ACEOF | |
24494 | # This file is a shell script that caches the results of configure | |
24495 | # tests run on this system so they can be shared between configure | |
24496 | # scripts and configure runs, see configure's option --config-cache. | |
24497 | # It is not useful on other systems. If it contains results you don't | |
24498 | # want to keep, you may remove or edit it. | |
24499 | # | |
24500 | # config.status only pays attention to the cache file if you give it | |
24501 | # the --recheck option to rerun configure. | |
24502 | # | |
24503 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
24504 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24505 | # following values. | |
24506 | ||
24507 | _ACEOF | |
24508 | ||
24509 | # The following way of writing the cache mishandles newlines in values, | |
24510 | # but we know of no workaround that is simple, portable, and efficient. | |
24511 | # So, don't put newlines in cache variables' values. | |
24512 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
24513 | # and sets the high bit in the cache file unless we assign to the vars. | |
24514 | { | |
24515 | (set) 2>&1 | | |
24516 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
24517 | *ac_space=\ *) | |
24518 | # `set' does not quote correctly, so add quotes (double-quote | |
24519 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24520 | sed -n \ | |
ac1cb8d3 VS |
24521 | "s/'/'\\\\''/g; |
24522 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
24523 | ;; |
24524 | *) | |
24525 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
24526 | sed -n \ | |
ac1cb8d3 | 24527 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
24528 | ;; |
24529 | esac; | |
24530 | } | | |
24531 | sed ' | |
24532 | t clear | |
24533 | : clear | |
24534 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
24535 | t end | |
24536 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
24537 | : end' >>confcache | |
24538 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
24539 | if test -w $cache_file; then | |
24540 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
24541 | cat confcache >$cache_file | |
24542 | else | |
24543 | echo "not updating unwritable cache $cache_file" | |
24544 | fi | |
24545 | fi | |
24546 | rm -f confcache | |
24547 | ||
24548 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
24549 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
24550 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
24551 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
24552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24553 | else | |
24554 | ||
24555 | cat >conftest.$ac_ext <<_ACEOF | |
24556 | /* confdefs.h. */ | |
24557 | _ACEOF | |
24558 | cat confdefs.h >>conftest.$ac_ext | |
24559 | cat >>conftest.$ac_ext <<_ACEOF | |
24560 | /* end confdefs.h. */ | |
24561 | #include <features.h> | |
24562 | int | |
24563 | main () | |
24564 | { | |
24565 | ||
24566 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 24567 | not glibc 2.1 |
a848cd7e SC |
24568 | #endif |
24569 | ||
24570 | ; | |
24571 | return 0; | |
24572 | } | |
24573 | _ACEOF | |
24574 | rm -f conftest.$ac_objext | |
24575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24576 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24577 | ac_status=$? |
ac1cb8d3 VS |
24578 | grep -v '^ *+' conftest.er1 >conftest.err |
24579 | rm -f conftest.er1 | |
24580 | cat conftest.err >&5 | |
a848cd7e SC |
24581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24582 | (exit $ac_status); } && | |
ca5c6ac3 | 24583 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24585 | (eval $ac_try) 2>&5 | |
24586 | ac_status=$? | |
24587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24588 | (exit $ac_status); }; } && | |
24589 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24591 | (eval $ac_try) 2>&5 | |
24592 | ac_status=$? | |
24593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24594 | (exit $ac_status); }; }; then | |
24595 | ||
24596 | wx_cv_lib_glibc21=yes | |
24597 | ||
24598 | else | |
24599 | echo "$as_me: failed program was:" >&5 | |
24600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24601 | ||
24602 | ||
24603 | wx_cv_lib_glibc21=no | |
24604 | ||
24605 | ||
24606 | fi | |
ac1cb8d3 | 24607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24608 | |
24609 | fi | |
24610 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
24611 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
24612 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
24613 | cat >>confdefs.h <<\_ACEOF | |
24614 | #define wxHAVE_GLIBC2 1 | |
24615 | _ACEOF | |
24616 | ||
24617 | fi | |
24618 | fi | |
24619 | ||
24620 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
24621 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
24622 | cat >>confdefs.h <<\_ACEOF | |
24623 | #define _GNU_SOURCE 1 | |
24624 | _ACEOF | |
24625 | ||
24626 | fi | |
24627 | fi | |
24628 | ||
5d7b7554 VZ |
24629 | have_cos=0 |
24630 | have_floor=0 | |
a848cd7e | 24631 | |
5d7b7554 VZ |
24632 | for ac_func in cos |
24633 | do | |
24634 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24635 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24636 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24637 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a848cd7e | 24638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 24639 | else |
5d7b7554 | 24640 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
24641 | /* confdefs.h. */ |
24642 | _ACEOF | |
24643 | cat confdefs.h >>conftest.$ac_ext | |
24644 | cat >>conftest.$ac_ext <<_ACEOF | |
24645 | /* end confdefs.h. */ | |
5d7b7554 VZ |
24646 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24647 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24648 | #define $ac_func innocuous_$ac_func | |
24649 | ||
24650 | /* System header to define __stub macros and hopefully few prototypes, | |
24651 | which can conflict with char $ac_func (); below. | |
24652 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24653 | <limits.h> exists even on freestanding compilers. */ | |
24654 | ||
24655 | #ifdef __STDC__ | |
24656 | # include <limits.h> | |
24657 | #else | |
24658 | # include <assert.h> | |
24659 | #endif | |
24660 | ||
24661 | #undef $ac_func | |
24662 | ||
24663 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24664 | #ifdef __cplusplus | |
24665 | extern "C" | |
24666 | { | |
24667 | #endif | |
24668 | /* We use char because int might match the return type of a gcc2 | |
24669 | builtin and then its argument prototype would still apply. */ | |
24670 | char $ac_func (); | |
24671 | /* The GNU C library defines this for functions which it implements | |
24672 | to always fail with ENOSYS. Some functions are actually named | |
24673 | something starting with __ and the normal name is an alias. */ | |
24674 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24675 | choke me | |
24676 | #else | |
24677 | char (*f) () = $ac_func; | |
24678 | #endif | |
24679 | #ifdef __cplusplus | |
24680 | } | |
24681 | #endif | |
24682 | ||
24683 | int | |
24684 | main () | |
24685 | { | |
24686 | return f != $ac_func; | |
24687 | ; | |
24688 | return 0; | |
24689 | } | |
a848cd7e | 24690 | _ACEOF |
5d7b7554 VZ |
24691 | rm -f conftest.$ac_objext conftest$ac_exeext |
24692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24693 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24694 | ac_status=$? |
ac1cb8d3 VS |
24695 | grep -v '^ *+' conftest.er1 >conftest.err |
24696 | rm -f conftest.er1 | |
24697 | cat conftest.err >&5 | |
a848cd7e SC |
24698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24699 | (exit $ac_status); } && | |
ca5c6ac3 | 24700 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24702 | (eval $ac_try) 2>&5 | |
24703 | ac_status=$? | |
24704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24705 | (exit $ac_status); }; } && | |
5d7b7554 | 24706 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24708 | (eval $ac_try) 2>&5 | |
24709 | ac_status=$? | |
24710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24711 | (exit $ac_status); }; }; then | |
5d7b7554 | 24712 | eval "$as_ac_var=yes" |
a848cd7e SC |
24713 | else |
24714 | echo "$as_me: failed program was:" >&5 | |
24715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24716 | ||
5d7b7554 | 24717 | eval "$as_ac_var=no" |
a848cd7e | 24718 | fi |
5d7b7554 VZ |
24719 | rm -f conftest.err conftest.$ac_objext \ |
24720 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 24721 | fi |
5d7b7554 VZ |
24722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
24723 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24724 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24725 | cat >>confdefs.h <<_ACEOF | |
24726 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24727 | _ACEOF | |
24728 | have_cos=1 | |
a848cd7e | 24729 | fi |
5d7b7554 | 24730 | done |
a848cd7e | 24731 | |
ab0f0edd | 24732 | |
5d7b7554 | 24733 | for ac_func in floor |
a848cd7e SC |
24734 | do |
24735 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24736 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24737 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24738 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24740 | else | |
24741 | cat >conftest.$ac_ext <<_ACEOF | |
24742 | /* confdefs.h. */ | |
24743 | _ACEOF | |
24744 | cat confdefs.h >>conftest.$ac_ext | |
24745 | cat >>conftest.$ac_ext <<_ACEOF | |
24746 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24747 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24748 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24749 | #define $ac_func innocuous_$ac_func | |
24750 | ||
a848cd7e SC |
24751 | /* System header to define __stub macros and hopefully few prototypes, |
24752 | which can conflict with char $ac_func (); below. | |
24753 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24754 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24755 | |
a848cd7e SC |
24756 | #ifdef __STDC__ |
24757 | # include <limits.h> | |
24758 | #else | |
24759 | # include <assert.h> | |
24760 | #endif | |
ac1cb8d3 VS |
24761 | |
24762 | #undef $ac_func | |
24763 | ||
a848cd7e SC |
24764 | /* Override any gcc2 internal prototype to avoid an error. */ |
24765 | #ifdef __cplusplus | |
24766 | extern "C" | |
24767 | { | |
24768 | #endif | |
24769 | /* We use char because int might match the return type of a gcc2 | |
24770 | builtin and then its argument prototype would still apply. */ | |
24771 | char $ac_func (); | |
24772 | /* The GNU C library defines this for functions which it implements | |
24773 | to always fail with ENOSYS. Some functions are actually named | |
24774 | something starting with __ and the normal name is an alias. */ | |
24775 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24776 | choke me | |
24777 | #else | |
24778 | char (*f) () = $ac_func; | |
24779 | #endif | |
24780 | #ifdef __cplusplus | |
24781 | } | |
24782 | #endif | |
24783 | ||
24784 | int | |
24785 | main () | |
24786 | { | |
24787 | return f != $ac_func; | |
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); } && | |
ca5c6ac3 | 24801 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
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' | |
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 | eval "$as_ac_var=yes" | |
24814 | else | |
24815 | echo "$as_me: failed program was:" >&5 | |
24816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24817 | ||
24818 | eval "$as_ac_var=no" | |
24819 | fi | |
24820 | rm -f conftest.err conftest.$ac_objext \ | |
24821 | conftest$ac_exeext conftest.$ac_ext | |
24822 | fi | |
24823 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24824 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24825 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24826 | cat >>confdefs.h <<_ACEOF | |
24827 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24828 | _ACEOF | |
24829 | have_floor=1 | |
24830 | fi | |
24831 | done | |
24832 | ||
24833 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
24834 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
24835 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
24836 | echo "$as_me:$LINENO: result: yes" >&5 | |
24837 | echo "${ECHO_T}yes" >&6 | |
24838 | else | |
24839 | echo "$as_me:$LINENO: result: no" >&5 | |
24840 | echo "${ECHO_T}no" >&6 | |
24841 | LIBS="$LIBS -lm" | |
24842 | # use different functions to avoid configure caching | |
24843 | have_sin=0 | |
24844 | have_ceil=0 | |
24845 | ||
24846 | for ac_func in sin | |
24847 | do | |
24848 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24849 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24850 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24851 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24853 | else | |
24854 | cat >conftest.$ac_ext <<_ACEOF | |
24855 | /* confdefs.h. */ | |
24856 | _ACEOF | |
24857 | cat confdefs.h >>conftest.$ac_ext | |
24858 | cat >>conftest.$ac_ext <<_ACEOF | |
24859 | /* end confdefs.h. */ | |
24860 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24861 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24862 | #define $ac_func innocuous_$ac_func | |
24863 | ||
24864 | /* System header to define __stub macros and hopefully few prototypes, | |
24865 | which can conflict with char $ac_func (); below. | |
24866 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24867 | <limits.h> exists even on freestanding compilers. */ | |
24868 | ||
24869 | #ifdef __STDC__ | |
24870 | # include <limits.h> | |
24871 | #else | |
24872 | # include <assert.h> | |
24873 | #endif | |
24874 | ||
24875 | #undef $ac_func | |
24876 | ||
24877 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24878 | #ifdef __cplusplus | |
24879 | extern "C" | |
24880 | { | |
24881 | #endif | |
24882 | /* We use char because int might match the return type of a gcc2 | |
24883 | builtin and then its argument prototype would still apply. */ | |
24884 | char $ac_func (); | |
24885 | /* The GNU C library defines this for functions which it implements | |
24886 | to always fail with ENOSYS. Some functions are actually named | |
24887 | something starting with __ and the normal name is an alias. */ | |
24888 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24889 | choke me | |
24890 | #else | |
24891 | char (*f) () = $ac_func; | |
24892 | #endif | |
24893 | #ifdef __cplusplus | |
24894 | } | |
24895 | #endif | |
24896 | ||
24897 | int | |
24898 | main () | |
24899 | { | |
24900 | return f != $ac_func; | |
24901 | ; | |
24902 | return 0; | |
24903 | } | |
24904 | _ACEOF | |
24905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24907 | (eval $ac_link) 2>conftest.er1 | |
24908 | ac_status=$? | |
24909 | grep -v '^ *+' conftest.er1 >conftest.err | |
24910 | rm -f conftest.er1 | |
24911 | cat conftest.err >&5 | |
24912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24913 | (exit $ac_status); } && | |
ca5c6ac3 | 24914 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
24915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24916 | (eval $ac_try) 2>&5 | |
24917 | ac_status=$? | |
24918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24919 | (exit $ac_status); }; } && | |
24920 | { ac_try='test -s conftest$ac_exeext' | |
24921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24922 | (eval $ac_try) 2>&5 | |
24923 | ac_status=$? | |
24924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24925 | (exit $ac_status); }; }; then | |
24926 | eval "$as_ac_var=yes" | |
24927 | else | |
24928 | echo "$as_me: failed program was:" >&5 | |
24929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24930 | ||
24931 | eval "$as_ac_var=no" | |
24932 | fi | |
24933 | rm -f conftest.err conftest.$ac_objext \ | |
24934 | conftest$ac_exeext conftest.$ac_ext | |
24935 | fi | |
24936 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24937 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24938 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24939 | cat >>confdefs.h <<_ACEOF | |
24940 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24941 | _ACEOF | |
24942 | have_sin=1 | |
24943 | fi | |
24944 | done | |
24945 | ||
24946 | ||
24947 | for ac_func in ceil | |
24948 | do | |
24949 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24950 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24951 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24952 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24954 | else | |
24955 | cat >conftest.$ac_ext <<_ACEOF | |
24956 | /* confdefs.h. */ | |
24957 | _ACEOF | |
24958 | cat confdefs.h >>conftest.$ac_ext | |
24959 | cat >>conftest.$ac_ext <<_ACEOF | |
24960 | /* end confdefs.h. */ | |
24961 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24962 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24963 | #define $ac_func innocuous_$ac_func | |
24964 | ||
24965 | /* System header to define __stub macros and hopefully few prototypes, | |
24966 | which can conflict with char $ac_func (); below. | |
24967 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24968 | <limits.h> exists even on freestanding compilers. */ | |
24969 | ||
24970 | #ifdef __STDC__ | |
24971 | # include <limits.h> | |
24972 | #else | |
24973 | # include <assert.h> | |
24974 | #endif | |
24975 | ||
24976 | #undef $ac_func | |
24977 | ||
24978 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24979 | #ifdef __cplusplus | |
24980 | extern "C" | |
24981 | { | |
24982 | #endif | |
24983 | /* We use char because int might match the return type of a gcc2 | |
24984 | builtin and then its argument prototype would still apply. */ | |
24985 | char $ac_func (); | |
24986 | /* The GNU C library defines this for functions which it implements | |
24987 | to always fail with ENOSYS. Some functions are actually named | |
24988 | something starting with __ and the normal name is an alias. */ | |
24989 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24990 | choke me | |
24991 | #else | |
24992 | char (*f) () = $ac_func; | |
24993 | #endif | |
24994 | #ifdef __cplusplus | |
24995 | } | |
24996 | #endif | |
24997 | ||
24998 | int | |
24999 | main () | |
25000 | { | |
25001 | return f != $ac_func; | |
25002 | ; | |
25003 | return 0; | |
25004 | } | |
25005 | _ACEOF | |
25006 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25008 | (eval $ac_link) 2>conftest.er1 | |
25009 | ac_status=$? | |
25010 | grep -v '^ *+' conftest.er1 >conftest.err | |
25011 | rm -f conftest.er1 | |
25012 | cat conftest.err >&5 | |
25013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25014 | (exit $ac_status); } && | |
ca5c6ac3 | 25015 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
25016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25017 | (eval $ac_try) 2>&5 | |
25018 | ac_status=$? | |
25019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25020 | (exit $ac_status); }; } && | |
25021 | { ac_try='test -s conftest$ac_exeext' | |
25022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25023 | (eval $ac_try) 2>&5 | |
25024 | ac_status=$? | |
25025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25026 | (exit $ac_status); }; }; then | |
25027 | eval "$as_ac_var=yes" | |
25028 | else | |
25029 | echo "$as_me: failed program was:" >&5 | |
25030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25031 | ||
25032 | eval "$as_ac_var=no" | |
25033 | fi | |
25034 | rm -f conftest.err conftest.$ac_objext \ | |
25035 | conftest$ac_exeext conftest.$ac_ext | |
25036 | fi | |
25037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25038 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25039 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25040 | cat >>confdefs.h <<_ACEOF | |
25041 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25042 | _ACEOF | |
25043 | have_ceil=1 | |
25044 | fi | |
25045 | done | |
25046 | ||
25047 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
25048 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
25049 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
25050 | echo "$as_me:$LINENO: result: yes" >&5 | |
25051 | echo "${ECHO_T}yes" >&6 | |
25052 | else | |
25053 | echo "$as_me:$LINENO: result: no" >&5 | |
25054 | echo "${ECHO_T}no" >&6 | |
25055 | # not sure we should warn the user, crash, etc. | |
25056 | fi | |
25057 | fi | |
25058 | ||
25059 | ||
25060 | ||
25061 | if test "$wxUSE_REGEX" != "no"; then | |
25062 | cat >>confdefs.h <<\_ACEOF | |
25063 | #define wxUSE_REGEX 1 | |
25064 | _ACEOF | |
25065 | ||
25066 | ||
25067 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
25068 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
25069 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
25070 | wxUSE_REGEX=builtin | |
25071 | fi | |
25072 | ||
25073 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
25074 | if test "${ac_cv_header_regex_h+set}" = set; then | |
25075 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
25076 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
25077 | if test "${ac_cv_header_regex_h+set}" = set; then | |
25078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25079 | fi | |
25080 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
25081 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
25082 | else | |
25083 | # Is the header compilable? | |
25084 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
25085 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
25086 | cat >conftest.$ac_ext <<_ACEOF | |
25087 | /* confdefs.h. */ | |
25088 | _ACEOF | |
25089 | cat confdefs.h >>conftest.$ac_ext | |
25090 | cat >>conftest.$ac_ext <<_ACEOF | |
25091 | /* end confdefs.h. */ | |
25092 | $ac_includes_default | |
25093 | #include <regex.h> | |
25094 | _ACEOF | |
25095 | rm -f conftest.$ac_objext | |
25096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25097 | (eval $ac_compile) 2>conftest.er1 | |
25098 | ac_status=$? | |
25099 | grep -v '^ *+' conftest.er1 >conftest.err | |
25100 | rm -f conftest.er1 | |
25101 | cat conftest.err >&5 | |
25102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25103 | (exit $ac_status); } && | |
ca5c6ac3 | 25104 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5d7b7554 VZ |
25105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25106 | (eval $ac_try) 2>&5 | |
25107 | ac_status=$? | |
25108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25109 | (exit $ac_status); }; } && | |
25110 | { ac_try='test -s conftest.$ac_objext' | |
25111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25112 | (eval $ac_try) 2>&5 | |
25113 | ac_status=$? | |
25114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25115 | (exit $ac_status); }; }; then | |
25116 | ac_header_compiler=yes | |
25117 | else | |
25118 | echo "$as_me: failed program was:" >&5 | |
25119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25120 | ||
25121 | ac_header_compiler=no | |
25122 | fi | |
25123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25124 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
25125 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25126 | ||
25127 | # Is the header present? | |
25128 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
25129 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
25130 | cat >conftest.$ac_ext <<_ACEOF | |
25131 | /* confdefs.h. */ | |
25132 | _ACEOF | |
25133 | cat confdefs.h >>conftest.$ac_ext | |
25134 | cat >>conftest.$ac_ext <<_ACEOF | |
25135 | /* end confdefs.h. */ | |
25136 | #include <regex.h> | |
25137 | _ACEOF | |
25138 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25139 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25140 | ac_status=$? | |
25141 | grep -v '^ *+' conftest.er1 >conftest.err | |
25142 | rm -f conftest.er1 | |
25143 | cat conftest.err >&5 | |
25144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25145 | (exit $ac_status); } >/dev/null; then | |
25146 | if test -s conftest.err; then | |
25147 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
25148 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
25149 | else | |
25150 | ac_cpp_err= | |
25151 | fi | |
25152 | else | |
25153 | ac_cpp_err=yes | |
25154 | fi | |
25155 | if test -z "$ac_cpp_err"; then | |
25156 | ac_header_preproc=yes | |
25157 | else | |
25158 | echo "$as_me: failed program was:" >&5 | |
25159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25160 | ||
25161 | ac_header_preproc=no | |
25162 | fi | |
25163 | rm -f conftest.err conftest.$ac_ext | |
25164 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25165 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25166 | ||
25167 | # So? What about this header? | |
25168 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
25169 | yes:no: ) | |
25170 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25171 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25172 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 | |
25173 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
25174 | ac_header_preproc=yes | |
25175 | ;; | |
25176 | no:yes:* ) | |
25177 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
25178 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
25179 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
25180 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
25181 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
25182 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
25183 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25184 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
25185 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
25186 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
25187 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 | |
25188 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
25189 | ( | |
25190 | cat <<\_ASBOX | |
25191 | ## ----------------------------------------- ## | |
25192 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25193 | ## ----------------------------------------- ## | |
25194 | _ASBOX | |
25195 | ) | | |
25196 | sed "s/^/$as_me: WARNING: /" >&2 | |
25197 | ;; | |
25198 | esac | |
25199 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
25200 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
25201 | if test "${ac_cv_header_regex_h+set}" = set; then | |
25202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25203 | else | |
25204 | ac_cv_header_regex_h=$ac_header_preproc | |
25205 | fi | |
25206 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
25207 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
25208 | ||
25209 | fi | |
25210 | if test $ac_cv_header_regex_h = yes; then | |
25211 | ||
25212 | ||
25213 | for ac_func in regcomp re_search | |
25214 | do | |
25215 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25216 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25217 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25218 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25220 | else | |
25221 | cat >conftest.$ac_ext <<_ACEOF | |
25222 | /* confdefs.h. */ | |
25223 | _ACEOF | |
25224 | cat confdefs.h >>conftest.$ac_ext | |
25225 | cat >>conftest.$ac_ext <<_ACEOF | |
25226 | /* end confdefs.h. */ | |
25227 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25228 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25229 | #define $ac_func innocuous_$ac_func | |
25230 | ||
25231 | /* System header to define __stub macros and hopefully few prototypes, | |
25232 | which can conflict with char $ac_func (); below. | |
25233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25234 | <limits.h> exists even on freestanding compilers. */ | |
25235 | ||
25236 | #ifdef __STDC__ | |
25237 | # include <limits.h> | |
25238 | #else | |
25239 | # include <assert.h> | |
25240 | #endif | |
25241 | ||
25242 | #undef $ac_func | |
25243 | ||
25244 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25245 | #ifdef __cplusplus | |
25246 | extern "C" | |
25247 | { | |
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 $ac_func (); | |
25252 | /* The GNU C library defines this for functions which it implements | |
25253 | to always fail with ENOSYS. Some functions are actually named | |
25254 | something starting with __ and the normal name is an alias. */ | |
25255 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25256 | choke me | |
25257 | #else | |
25258 | char (*f) () = $ac_func; | |
25259 | #endif | |
25260 | #ifdef __cplusplus | |
25261 | } | |
25262 | #endif | |
25263 | ||
25264 | int | |
25265 | main () | |
25266 | { | |
25267 | return f != $ac_func; | |
25268 | ; | |
25269 | return 0; | |
25270 | } | |
25271 | _ACEOF | |
25272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25274 | (eval $ac_link) 2>conftest.er1 | |
25275 | ac_status=$? | |
25276 | grep -v '^ *+' conftest.er1 >conftest.err | |
25277 | rm -f conftest.er1 | |
25278 | cat conftest.err >&5 | |
25279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25280 | (exit $ac_status); } && | |
ca5c6ac3 | 25281 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25283 | (eval $ac_try) 2>&5 | |
25284 | ac_status=$? | |
25285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25286 | (exit $ac_status); }; } && | |
25287 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25289 | (eval $ac_try) 2>&5 | |
25290 | ac_status=$? | |
25291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25292 | (exit $ac_status); }; }; then | |
25293 | eval "$as_ac_var=yes" | |
25294 | else | |
25295 | echo "$as_me: failed program was:" >&5 | |
25296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25297 | ||
25298 | eval "$as_ac_var=no" | |
25299 | fi | |
ac1cb8d3 VS |
25300 | rm -f conftest.err conftest.$ac_objext \ |
25301 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25302 | fi |
25303 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25304 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25305 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25306 | cat >>confdefs.h <<_ACEOF | |
25307 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25308 | _ACEOF | |
25309 | ||
25310 | fi | |
25311 | done | |
25312 | ||
25313 | fi | |
25314 | ||
25315 | ||
25316 | ||
25317 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
25318 | if test "$wxUSE_REGEX" = "sys" ; then | |
25319 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
25320 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
25321 | { (exit 1); exit 1; }; } | |
25322 | else | |
25323 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
25324 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
25325 | wxUSE_REGEX=builtin | |
25326 | fi | |
25327 | else | |
25328 | wxUSE_REGEX=sys | |
25329 | cat >>confdefs.h <<\_ACEOF | |
25330 | #define WX_NO_REGEX_ADVANCED 1 | |
25331 | _ACEOF | |
25332 | ||
25333 | fi | |
25334 | fi | |
25335 | fi | |
25336 | ||
25337 | ||
25338 | ZLIB_LINK= | |
25339 | if test "$wxUSE_ZLIB" != "no" ; then | |
25340 | cat >>confdefs.h <<\_ACEOF | |
25341 | #define wxUSE_ZLIB 1 | |
25342 | _ACEOF | |
25343 | ||
25344 | ||
25345 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
25346 | if test "$USE_DARWIN" = 1; then | |
25347 | system_zlib_h_ok="yes" | |
25348 | else | |
25349 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
25350 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
25351 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25353 | else | |
25354 | if test "$cross_compiling" = yes; then | |
25355 | unset ac_cv_header_zlib_h | |
25356 | ||
25357 | else | |
25358 | cat >conftest.$ac_ext <<_ACEOF | |
25359 | /* confdefs.h. */ | |
25360 | _ACEOF | |
25361 | cat confdefs.h >>conftest.$ac_ext | |
25362 | cat >>conftest.$ac_ext <<_ACEOF | |
25363 | /* end confdefs.h. */ | |
25364 | ||
25365 | #include <zlib.h> | |
25366 | #include <stdio.h> | |
25367 | ||
25368 | int main() | |
25369 | { | |
25370 | FILE *f=fopen("conftestval", "w"); | |
25371 | if (!f) exit(1); | |
25372 | fprintf(f, "%s", | |
25373 | ZLIB_VERSION[0] == '1' && | |
25374 | (ZLIB_VERSION[2] > '1' || | |
25375 | (ZLIB_VERSION[2] == '1' && | |
25376 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
25377 | exit(0); | |
25378 | } | |
25379 | ||
25380 | _ACEOF | |
25381 | rm -f conftest$ac_exeext | |
25382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25383 | (eval $ac_link) 2>&5 | |
25384 | ac_status=$? | |
25385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25388 | (eval $ac_try) 2>&5 | |
25389 | ac_status=$? | |
25390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25391 | (exit $ac_status); }; }; then | |
25392 | ac_cv_header_zlib_h=`cat conftestval` | |
25393 | else | |
25394 | echo "$as_me: program exited with status $ac_status" >&5 | |
25395 | echo "$as_me: failed program was:" >&5 | |
25396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25397 | ||
25398 | ( exit $ac_status ) | |
25399 | ac_cv_header_zlib_h=no | |
25400 | fi | |
ac1cb8d3 | 25401 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25402 | fi |
25403 | ||
25404 | fi | |
25405 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25406 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25407 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25408 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
25409 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
25410 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25412 | fi | |
25413 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25414 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25415 | else | |
25416 | # Is the header compilable? | |
25417 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
25418 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
25419 | cat >conftest.$ac_ext <<_ACEOF | |
25420 | /* confdefs.h. */ | |
25421 | _ACEOF | |
25422 | cat confdefs.h >>conftest.$ac_ext | |
25423 | cat >>conftest.$ac_ext <<_ACEOF | |
25424 | /* end confdefs.h. */ | |
25425 | $ac_includes_default | |
25426 | #include <zlib.h> | |
25427 | _ACEOF | |
25428 | rm -f conftest.$ac_objext | |
25429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25430 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25431 | ac_status=$? |
ac1cb8d3 VS |
25432 | grep -v '^ *+' conftest.er1 >conftest.err |
25433 | rm -f conftest.er1 | |
25434 | cat conftest.err >&5 | |
a848cd7e SC |
25435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25436 | (exit $ac_status); } && | |
ca5c6ac3 | 25437 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25439 | (eval $ac_try) 2>&5 | |
25440 | ac_status=$? | |
25441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25442 | (exit $ac_status); }; } && | |
25443 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25445 | (eval $ac_try) 2>&5 | |
25446 | ac_status=$? | |
25447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25448 | (exit $ac_status); }; }; then | |
25449 | ac_header_compiler=yes | |
25450 | else | |
25451 | echo "$as_me: failed program was:" >&5 | |
25452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25453 | ||
25454 | ac_header_compiler=no | |
25455 | fi | |
ac1cb8d3 | 25456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25457 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25458 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25459 | ||
25460 | # Is the header present? | |
25461 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
25462 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
25463 | cat >conftest.$ac_ext <<_ACEOF | |
25464 | /* confdefs.h. */ | |
25465 | _ACEOF | |
25466 | cat confdefs.h >>conftest.$ac_ext | |
25467 | cat >>conftest.$ac_ext <<_ACEOF | |
25468 | /* end confdefs.h. */ | |
25469 | #include <zlib.h> | |
25470 | _ACEOF | |
25471 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25472 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25473 | ac_status=$? | |
25474 | grep -v '^ *+' conftest.er1 >conftest.err | |
25475 | rm -f conftest.er1 | |
25476 | cat conftest.err >&5 | |
25477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25478 | (exit $ac_status); } >/dev/null; then | |
25479 | if test -s conftest.err; then | |
5d7b7554 VZ |
25480 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25481 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25482 | else |
25483 | ac_cpp_err= | |
25484 | fi | |
25485 | else | |
25486 | ac_cpp_err=yes | |
25487 | fi | |
25488 | if test -z "$ac_cpp_err"; then | |
25489 | ac_header_preproc=yes | |
25490 | else | |
25491 | echo "$as_me: failed program was:" >&5 | |
25492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25493 | ||
25494 | ac_header_preproc=no | |
25495 | fi | |
25496 | rm -f conftest.err conftest.$ac_ext | |
25497 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25498 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25499 | ||
25500 | # So? What about this header? | |
5d7b7554 | 25501 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25502 | yes:no: ) |
a848cd7e SC |
25503 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25504 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25505 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
25506 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
25507 | ac_header_preproc=yes | |
a848cd7e | 25508 | ;; |
ac1cb8d3 | 25509 | no:yes:* ) |
a848cd7e SC |
25510 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
25511 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25512 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
25513 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
25514 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
25515 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
25516 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25517 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25518 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
25519 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25520 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
25521 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25522 | ( |
25523 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25524 | ## ----------------------------------------- ## |
25525 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25526 | ## ----------------------------------------- ## | |
a848cd7e SC |
25527 | _ASBOX |
25528 | ) | | |
25529 | sed "s/^/$as_me: WARNING: /" >&2 | |
25530 | ;; | |
25531 | esac | |
25532 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
25533 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
25534 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
25535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25536 | else | |
25537 | ac_cv_header_zlib_h=$ac_header_preproc | |
25538 | fi | |
25539 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25540 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25541 | ||
25542 | fi | |
25543 | ||
25544 | ||
25545 | ||
25546 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
25547 | fi | |
25548 | ||
25549 | if test "$system_zlib_h_ok" = "yes"; then | |
25550 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
25551 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
25552 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
25553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25554 | else | |
25555 | ac_check_lib_save_LIBS=$LIBS | |
25556 | LIBS="-lz $LIBS" | |
25557 | cat >conftest.$ac_ext <<_ACEOF | |
25558 | /* confdefs.h. */ | |
25559 | _ACEOF | |
25560 | cat confdefs.h >>conftest.$ac_ext | |
25561 | cat >>conftest.$ac_ext <<_ACEOF | |
25562 | /* end confdefs.h. */ | |
25563 | ||
25564 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25565 | #ifdef __cplusplus | |
25566 | extern "C" | |
25567 | #endif | |
25568 | /* We use char because int might match the return type of a gcc2 | |
25569 | builtin and then its argument prototype would still apply. */ | |
25570 | char deflate (); | |
25571 | int | |
25572 | main () | |
25573 | { | |
25574 | deflate (); | |
25575 | ; | |
25576 | return 0; | |
25577 | } | |
25578 | _ACEOF | |
25579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25581 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25582 | ac_status=$? |
ac1cb8d3 VS |
25583 | grep -v '^ *+' conftest.er1 >conftest.err |
25584 | rm -f conftest.er1 | |
25585 | cat conftest.err >&5 | |
a848cd7e SC |
25586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25587 | (exit $ac_status); } && | |
ca5c6ac3 | 25588 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25590 | (eval $ac_try) 2>&5 | |
25591 | ac_status=$? | |
25592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25593 | (exit $ac_status); }; } && | |
25594 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25596 | (eval $ac_try) 2>&5 | |
25597 | ac_status=$? | |
25598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25599 | (exit $ac_status); }; }; then | |
25600 | ac_cv_lib_z_deflate=yes | |
25601 | else | |
25602 | echo "$as_me: failed program was:" >&5 | |
25603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25604 | ||
25605 | ac_cv_lib_z_deflate=no | |
25606 | fi | |
ac1cb8d3 VS |
25607 | rm -f conftest.err conftest.$ac_objext \ |
25608 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25609 | LIBS=$ac_check_lib_save_LIBS |
25610 | fi | |
25611 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
25612 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
25613 | if test $ac_cv_lib_z_deflate = yes; then | |
25614 | ZLIB_LINK=" -lz" | |
25615 | fi | |
25616 | ||
25617 | fi | |
25618 | ||
25619 | if test "x$ZLIB_LINK" = "x" ; then | |
25620 | if test "$wxUSE_ZLIB" = "sys" ; then | |
25621 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
25622 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
25623 | { (exit 1); exit 1; }; } | |
25624 | else | |
25625 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
25626 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
25627 | wxUSE_ZLIB=builtin | |
25628 | fi | |
25629 | else | |
25630 | wxUSE_ZLIB=sys | |
25631 | fi | |
25632 | fi | |
25633 | fi | |
25634 | ||
25635 | ||
25636 | PNG_LINK= | |
25637 | if test "$wxUSE_LIBPNG" != "no" ; then | |
25638 | cat >>confdefs.h <<\_ACEOF | |
25639 | #define wxUSE_LIBPNG 1 | |
25640 | _ACEOF | |
25641 | ||
25642 | ||
25643 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
25644 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
25645 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
25646 | wxUSE_LIBPNG=sys | |
25647 | fi | |
25648 | ||
25649 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
25650 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
25651 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
25652 | wxUSE_LIBPNG=builtin | |
25653 | fi | |
25654 | ||
25655 | if test "$wxUSE_MGL" != 1 ; then | |
25656 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
25657 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
25658 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
25659 | if test "${ac_cv_header_png_h+set}" = set; then | |
25660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25661 | else | |
25662 | if test "$cross_compiling" = yes; then | |
25663 | unset ac_cv_header_png_h | |
25664 | ||
25665 | else | |
25666 | cat >conftest.$ac_ext <<_ACEOF | |
25667 | /* confdefs.h. */ | |
25668 | _ACEOF | |
25669 | cat confdefs.h >>conftest.$ac_ext | |
25670 | cat >>conftest.$ac_ext <<_ACEOF | |
25671 | /* end confdefs.h. */ | |
25672 | ||
25673 | #include <png.h> | |
25674 | #include <stdio.h> | |
25675 | ||
25676 | int main() | |
25677 | { | |
25678 | FILE *f=fopen("conftestval", "w"); | |
25679 | if (!f) exit(1); | |
25680 | fprintf(f, "%s", | |
25681 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
25682 | exit(0); | |
25683 | } | |
25684 | ||
25685 | _ACEOF | |
25686 | rm -f conftest$ac_exeext | |
25687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25688 | (eval $ac_link) 2>&5 | |
25689 | ac_status=$? | |
25690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25691 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25693 | (eval $ac_try) 2>&5 | |
25694 | ac_status=$? | |
25695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25696 | (exit $ac_status); }; }; then | |
25697 | ac_cv_header_png_h=`cat conftestval` | |
25698 | else | |
25699 | echo "$as_me: program exited with status $ac_status" >&5 | |
25700 | echo "$as_me: failed program was:" >&5 | |
25701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25702 | ||
25703 | ( exit $ac_status ) | |
25704 | ac_cv_header_png_h=no | |
25705 | fi | |
ac1cb8d3 | 25706 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25707 | fi |
25708 | ||
25709 | fi | |
25710 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25711 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25712 | if test "${ac_cv_header_png_h+set}" = set; then | |
25713 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25714 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25715 | if test "${ac_cv_header_png_h+set}" = set; then | |
25716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25717 | fi | |
25718 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25719 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25720 | else | |
25721 | # Is the header compilable? | |
25722 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
25723 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
25724 | cat >conftest.$ac_ext <<_ACEOF | |
25725 | /* confdefs.h. */ | |
25726 | _ACEOF | |
25727 | cat confdefs.h >>conftest.$ac_ext | |
25728 | cat >>conftest.$ac_ext <<_ACEOF | |
25729 | /* end confdefs.h. */ | |
25730 | $ac_includes_default | |
25731 | #include <png.h> | |
25732 | _ACEOF | |
25733 | rm -f conftest.$ac_objext | |
25734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25735 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25736 | ac_status=$? |
ac1cb8d3 VS |
25737 | grep -v '^ *+' conftest.er1 >conftest.err |
25738 | rm -f conftest.er1 | |
25739 | cat conftest.err >&5 | |
a848cd7e SC |
25740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25741 | (exit $ac_status); } && | |
ca5c6ac3 | 25742 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25744 | (eval $ac_try) 2>&5 | |
25745 | ac_status=$? | |
25746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25747 | (exit $ac_status); }; } && | |
25748 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25750 | (eval $ac_try) 2>&5 | |
25751 | ac_status=$? | |
25752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25753 | (exit $ac_status); }; }; then | |
25754 | ac_header_compiler=yes | |
25755 | else | |
25756 | echo "$as_me: failed program was:" >&5 | |
25757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25758 | ||
25759 | ac_header_compiler=no | |
25760 | fi | |
ac1cb8d3 | 25761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25762 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25763 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25764 | ||
25765 | # Is the header present? | |
25766 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
25767 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
25768 | cat >conftest.$ac_ext <<_ACEOF | |
25769 | /* confdefs.h. */ | |
25770 | _ACEOF | |
25771 | cat confdefs.h >>conftest.$ac_ext | |
25772 | cat >>conftest.$ac_ext <<_ACEOF | |
25773 | /* end confdefs.h. */ | |
25774 | #include <png.h> | |
25775 | _ACEOF | |
25776 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25777 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25778 | ac_status=$? | |
25779 | grep -v '^ *+' conftest.er1 >conftest.err | |
25780 | rm -f conftest.er1 | |
25781 | cat conftest.err >&5 | |
25782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25783 | (exit $ac_status); } >/dev/null; then | |
25784 | if test -s conftest.err; then | |
5d7b7554 VZ |
25785 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25786 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25787 | else |
25788 | ac_cpp_err= | |
25789 | fi | |
25790 | else | |
25791 | ac_cpp_err=yes | |
25792 | fi | |
25793 | if test -z "$ac_cpp_err"; then | |
25794 | ac_header_preproc=yes | |
25795 | else | |
25796 | echo "$as_me: failed program was:" >&5 | |
25797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25798 | ||
25799 | ac_header_preproc=no | |
25800 | fi | |
25801 | rm -f conftest.err conftest.$ac_ext | |
25802 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25803 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25804 | ||
25805 | # So? What about this header? | |
5d7b7554 | 25806 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25807 | yes:no: ) |
a848cd7e SC |
25808 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25809 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25810 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
25811 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
25812 | ac_header_preproc=yes | |
a848cd7e | 25813 | ;; |
ac1cb8d3 | 25814 | no:yes:* ) |
a848cd7e SC |
25815 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
25816 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25817 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
25818 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
25819 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
25820 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
25821 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25822 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25823 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
25824 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25825 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
25826 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25827 | ( |
25828 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25829 | ## ----------------------------------------- ## |
25830 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25831 | ## ----------------------------------------- ## | |
a848cd7e SC |
25832 | _ASBOX |
25833 | ) | | |
25834 | sed "s/^/$as_me: WARNING: /" >&2 | |
25835 | ;; | |
25836 | esac | |
25837 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25838 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25839 | if test "${ac_cv_header_png_h+set}" = set; then | |
25840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25841 | else | |
25842 | ac_cv_header_png_h=$ac_header_preproc | |
25843 | fi | |
25844 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25845 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25846 | ||
25847 | fi | |
25848 | ||
25849 | ||
25850 | ||
25851 | if test "$ac_cv_header_png_h" = "yes"; then | |
25852 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
25853 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
25854 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
25855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25856 | else | |
25857 | ac_check_lib_save_LIBS=$LIBS | |
25858 | LIBS="-lpng -lz -lm $LIBS" | |
25859 | cat >conftest.$ac_ext <<_ACEOF | |
25860 | /* confdefs.h. */ | |
25861 | _ACEOF | |
25862 | cat confdefs.h >>conftest.$ac_ext | |
25863 | cat >>conftest.$ac_ext <<_ACEOF | |
25864 | /* end confdefs.h. */ | |
25865 | ||
25866 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25867 | #ifdef __cplusplus | |
25868 | extern "C" | |
25869 | #endif | |
25870 | /* We use char because int might match the return type of a gcc2 | |
25871 | builtin and then its argument prototype would still apply. */ | |
25872 | char png_check_sig (); | |
25873 | int | |
25874 | main () | |
25875 | { | |
25876 | png_check_sig (); | |
25877 | ; | |
25878 | return 0; | |
25879 | } | |
25880 | _ACEOF | |
25881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25883 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25884 | ac_status=$? |
ac1cb8d3 VS |
25885 | grep -v '^ *+' conftest.er1 >conftest.err |
25886 | rm -f conftest.er1 | |
25887 | cat conftest.err >&5 | |
a848cd7e SC |
25888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25889 | (exit $ac_status); } && | |
ca5c6ac3 | 25890 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25892 | (eval $ac_try) 2>&5 | |
25893 | ac_status=$? | |
25894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25895 | (exit $ac_status); }; } && | |
25896 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25898 | (eval $ac_try) 2>&5 | |
25899 | ac_status=$? | |
25900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25901 | (exit $ac_status); }; }; then | |
25902 | ac_cv_lib_png_png_check_sig=yes | |
25903 | else | |
25904 | echo "$as_me: failed program was:" >&5 | |
25905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25906 | ||
25907 | ac_cv_lib_png_png_check_sig=no | |
25908 | fi | |
ac1cb8d3 VS |
25909 | rm -f conftest.err conftest.$ac_objext \ |
25910 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25911 | LIBS=$ac_check_lib_save_LIBS |
25912 | fi | |
25913 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
25914 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
25915 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
25916 | PNG_LINK=" -lpng -lz" | |
25917 | fi | |
25918 | ||
25919 | fi | |
25920 | ||
25921 | if test "x$PNG_LINK" = "x" ; then | |
25922 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
25923 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
25924 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
25925 | { (exit 1); exit 1; }; } | |
25926 | else | |
25927 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
25928 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
25929 | wxUSE_LIBPNG=builtin | |
25930 | fi | |
25931 | else | |
25932 | wxUSE_LIBPNG=sys | |
25933 | fi | |
25934 | fi | |
25935 | fi | |
25936 | ||
25937 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
25938 | fi | |
25939 | ||
25940 | ||
25941 | JPEG_LINK= | |
25942 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
25943 | cat >>confdefs.h <<\_ACEOF | |
25944 | #define wxUSE_LIBJPEG 1 | |
25945 | _ACEOF | |
25946 | ||
25947 | ||
25948 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
25949 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
25950 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
25951 | wxUSE_LIBJPEG=sys | |
25952 | fi | |
25953 | ||
25954 | if test "$wxUSE_MGL" != 1 ; then | |
25955 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
25956 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
25957 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
25958 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
25959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25960 | else | |
25961 | cat >conftest.$ac_ext <<_ACEOF | |
25962 | /* confdefs.h. */ | |
25963 | _ACEOF | |
25964 | cat confdefs.h >>conftest.$ac_ext | |
25965 | cat >>conftest.$ac_ext <<_ACEOF | |
25966 | /* end confdefs.h. */ | |
25967 | ||
25968 | #undef HAVE_STDLIB_H | |
25969 | #include <stdio.h> | |
25970 | #include <jpeglib.h> | |
25971 | ||
25972 | int | |
25973 | main () | |
25974 | { | |
25975 | ||
25976 | ||
25977 | ; | |
25978 | return 0; | |
25979 | } | |
25980 | _ACEOF | |
25981 | rm -f conftest.$ac_objext | |
25982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25983 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25984 | ac_status=$? |
ac1cb8d3 VS |
25985 | grep -v '^ *+' conftest.er1 >conftest.err |
25986 | rm -f conftest.er1 | |
25987 | cat conftest.err >&5 | |
a848cd7e SC |
25988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25989 | (exit $ac_status); } && | |
ca5c6ac3 | 25990 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25992 | (eval $ac_try) 2>&5 | |
25993 | ac_status=$? | |
25994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25995 | (exit $ac_status); }; } && | |
25996 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25998 | (eval $ac_try) 2>&5 | |
25999 | ac_status=$? | |
26000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26001 | (exit $ac_status); }; }; then | |
26002 | ac_cv_header_jpeglib_h=yes | |
26003 | else | |
26004 | echo "$as_me: failed program was:" >&5 | |
26005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26006 | ||
26007 | ac_cv_header_jpeglib_h=no | |
26008 | ||
26009 | fi | |
ac1cb8d3 | 26010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26011 | |
26012 | fi | |
26013 | ||
26014 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
26015 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
26016 | ||
26017 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
26018 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
26019 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
26020 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
26021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26022 | else | |
26023 | ac_check_lib_save_LIBS=$LIBS | |
26024 | LIBS="-ljpeg $LIBS" | |
26025 | cat >conftest.$ac_ext <<_ACEOF | |
26026 | /* confdefs.h. */ | |
26027 | _ACEOF | |
26028 | cat confdefs.h >>conftest.$ac_ext | |
26029 | cat >>conftest.$ac_ext <<_ACEOF | |
26030 | /* end confdefs.h. */ | |
26031 | ||
26032 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26033 | #ifdef __cplusplus | |
26034 | extern "C" | |
26035 | #endif | |
26036 | /* We use char because int might match the return type of a gcc2 | |
26037 | builtin and then its argument prototype would still apply. */ | |
26038 | char jpeg_read_header (); | |
26039 | int | |
26040 | main () | |
26041 | { | |
26042 | jpeg_read_header (); | |
26043 | ; | |
26044 | return 0; | |
26045 | } | |
26046 | _ACEOF | |
26047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26049 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26050 | ac_status=$? |
ac1cb8d3 VS |
26051 | grep -v '^ *+' conftest.er1 >conftest.err |
26052 | rm -f conftest.er1 | |
26053 | cat conftest.err >&5 | |
a848cd7e SC |
26054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26055 | (exit $ac_status); } && | |
ca5c6ac3 | 26056 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26058 | (eval $ac_try) 2>&5 | |
26059 | ac_status=$? | |
26060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26061 | (exit $ac_status); }; } && | |
26062 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26064 | (eval $ac_try) 2>&5 | |
26065 | ac_status=$? | |
26066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26067 | (exit $ac_status); }; }; then | |
26068 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
26069 | else | |
26070 | echo "$as_me: failed program was:" >&5 | |
26071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26072 | ||
26073 | ac_cv_lib_jpeg_jpeg_read_header=no | |
26074 | fi | |
ac1cb8d3 VS |
26075 | rm -f conftest.err conftest.$ac_objext \ |
26076 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26077 | LIBS=$ac_check_lib_save_LIBS |
26078 | fi | |
26079 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
26080 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
26081 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
26082 | JPEG_LINK=" -ljpeg" | |
26083 | fi | |
26084 | ||
26085 | fi | |
26086 | ||
26087 | if test "x$JPEG_LINK" = "x" ; then | |
26088 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
26089 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
26090 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
26091 | { (exit 1); exit 1; }; } | |
26092 | else | |
26093 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
26094 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
26095 | wxUSE_LIBJPEG=builtin | |
26096 | fi | |
26097 | else | |
26098 | wxUSE_LIBJPEG=sys | |
26099 | fi | |
26100 | fi | |
26101 | fi | |
26102 | fi | |
26103 | ||
26104 | ||
26105 | TIFF_LINK= | |
26106 | TIFF_PREREQ_LINKS=-lm | |
26107 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
26108 | cat >>confdefs.h <<\_ACEOF | |
26109 | #define wxUSE_LIBTIFF 1 | |
26110 | _ACEOF | |
26111 | ||
26112 | ||
26113 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
26114 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
26115 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
26116 | fi | |
26117 | if test "$wxUSE_ZLIB" = "sys"; then | |
26118 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
26119 | fi | |
26120 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
26121 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
26122 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
26123 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
26124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26125 | fi | |
26126 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
26127 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
26128 | else | |
26129 | # Is the header compilable? | |
26130 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
26131 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
26132 | cat >conftest.$ac_ext <<_ACEOF | |
26133 | /* confdefs.h. */ | |
26134 | _ACEOF | |
26135 | cat confdefs.h >>conftest.$ac_ext | |
26136 | cat >>conftest.$ac_ext <<_ACEOF | |
26137 | /* end confdefs.h. */ | |
26138 | $ac_includes_default | |
26139 | #include <tiffio.h> | |
26140 | _ACEOF | |
26141 | rm -f conftest.$ac_objext | |
26142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26143 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26144 | ac_status=$? |
ac1cb8d3 VS |
26145 | grep -v '^ *+' conftest.er1 >conftest.err |
26146 | rm -f conftest.er1 | |
26147 | cat conftest.err >&5 | |
a848cd7e SC |
26148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26149 | (exit $ac_status); } && | |
ca5c6ac3 | 26150 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26152 | (eval $ac_try) 2>&5 | |
26153 | ac_status=$? | |
26154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26155 | (exit $ac_status); }; } && | |
26156 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26158 | (eval $ac_try) 2>&5 | |
26159 | ac_status=$? | |
26160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26161 | (exit $ac_status); }; }; then | |
26162 | ac_header_compiler=yes | |
26163 | else | |
26164 | echo "$as_me: failed program was:" >&5 | |
26165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26166 | ||
26167 | ac_header_compiler=no | |
26168 | fi | |
ac1cb8d3 | 26169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26170 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26171 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26172 | ||
26173 | # Is the header present? | |
26174 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
26175 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
26176 | cat >conftest.$ac_ext <<_ACEOF | |
26177 | /* confdefs.h. */ | |
26178 | _ACEOF | |
26179 | cat confdefs.h >>conftest.$ac_ext | |
26180 | cat >>conftest.$ac_ext <<_ACEOF | |
26181 | /* end confdefs.h. */ | |
26182 | #include <tiffio.h> | |
26183 | _ACEOF | |
26184 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26185 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26186 | ac_status=$? | |
26187 | grep -v '^ *+' conftest.er1 >conftest.err | |
26188 | rm -f conftest.er1 | |
26189 | cat conftest.err >&5 | |
26190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26191 | (exit $ac_status); } >/dev/null; then | |
26192 | if test -s conftest.err; then | |
5d7b7554 VZ |
26193 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26194 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26195 | else |
26196 | ac_cpp_err= | |
26197 | fi | |
26198 | else | |
26199 | ac_cpp_err=yes | |
26200 | fi | |
26201 | if test -z "$ac_cpp_err"; then | |
26202 | ac_header_preproc=yes | |
26203 | else | |
26204 | echo "$as_me: failed program was:" >&5 | |
26205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26206 | ||
26207 | ac_header_preproc=no | |
26208 | fi | |
26209 | rm -f conftest.err conftest.$ac_ext | |
26210 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26211 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26212 | ||
26213 | # So? What about this header? | |
5d7b7554 | 26214 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26215 | yes:no: ) |
a848cd7e SC |
26216 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26217 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26218 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
26219 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
26220 | ac_header_preproc=yes | |
a848cd7e | 26221 | ;; |
ac1cb8d3 | 26222 | no:yes:* ) |
a848cd7e SC |
26223 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
26224 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26225 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
26226 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
26227 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
26228 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
26229 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26230 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26231 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
26232 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26233 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
26234 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26235 | ( |
26236 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26237 | ## ----------------------------------------- ## |
26238 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26239 | ## ----------------------------------------- ## | |
a848cd7e SC |
26240 | _ASBOX |
26241 | ) | | |
26242 | sed "s/^/$as_me: WARNING: /" >&2 | |
26243 | ;; | |
26244 | esac | |
26245 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
26246 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
26247 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
26248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26249 | else | |
26250 | ac_cv_header_tiffio_h=$ac_header_preproc | |
26251 | fi | |
26252 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
26253 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
26254 | ||
26255 | fi | |
26256 | if test $ac_cv_header_tiffio_h = yes; then | |
26257 | ||
26258 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
26259 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
26260 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
26261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26262 | else | |
26263 | ac_check_lib_save_LIBS=$LIBS | |
26264 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
26265 | cat >conftest.$ac_ext <<_ACEOF | |
26266 | /* confdefs.h. */ | |
26267 | _ACEOF | |
26268 | cat confdefs.h >>conftest.$ac_ext | |
26269 | cat >>conftest.$ac_ext <<_ACEOF | |
26270 | /* end confdefs.h. */ | |
26271 | ||
26272 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26273 | #ifdef __cplusplus | |
26274 | extern "C" | |
26275 | #endif | |
26276 | /* We use char because int might match the return type of a gcc2 | |
26277 | builtin and then its argument prototype would still apply. */ | |
26278 | char TIFFError (); | |
26279 | int | |
26280 | main () | |
26281 | { | |
26282 | TIFFError (); | |
26283 | ; | |
26284 | return 0; | |
26285 | } | |
26286 | _ACEOF | |
26287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26289 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26290 | ac_status=$? |
ac1cb8d3 VS |
26291 | grep -v '^ *+' conftest.er1 >conftest.err |
26292 | rm -f conftest.er1 | |
26293 | cat conftest.err >&5 | |
a848cd7e SC |
26294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26295 | (exit $ac_status); } && | |
ca5c6ac3 | 26296 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
26302 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26304 | (eval $ac_try) 2>&5 | |
26305 | ac_status=$? | |
26306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26307 | (exit $ac_status); }; }; then | |
26308 | ac_cv_lib_tiff_TIFFError=yes | |
26309 | else | |
26310 | echo "$as_me: failed program was:" >&5 | |
26311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26312 | ||
26313 | ac_cv_lib_tiff_TIFFError=no | |
26314 | fi | |
ac1cb8d3 VS |
26315 | rm -f conftest.err conftest.$ac_objext \ |
26316 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26317 | LIBS=$ac_check_lib_save_LIBS |
26318 | fi | |
26319 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
26320 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
26321 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
26322 | TIFF_LINK=" -ltiff" | |
26323 | fi | |
26324 | ||
26325 | ||
26326 | ||
26327 | fi | |
26328 | ||
26329 | ||
26330 | ||
26331 | if test "x$TIFF_LINK" = "x" ; then | |
26332 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
26333 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
26334 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
26335 | { (exit 1); exit 1; }; } | |
26336 | else | |
26337 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
26338 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
26339 | wxUSE_LIBTIFF=builtin | |
26340 | fi | |
26341 | else | |
26342 | wxUSE_LIBTIFF=sys | |
26343 | fi | |
26344 | fi | |
26345 | fi | |
26346 | ||
26347 | ||
47a7e797 MW |
26348 | if test "$wxUSE_WCHAR_T" != "yes"; then |
26349 | if test "$wxUSE_EXPAT" != "no"; then | |
26350 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
26351 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
26352 | wxUSE_EXPAT=no | |
26353 | fi | |
26354 | if test "$wxUSE_XML" != "no"; then | |
26355 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
26356 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
26357 | wxUSE_XML=no | |
26358 | fi | |
26359 | fi | |
26360 | ||
a848cd7e SC |
26361 | if test "$wxUSE_EXPAT" != "no"; then |
26362 | wxUSE_XML=yes | |
26363 | cat >>confdefs.h <<\_ACEOF | |
26364 | #define wxUSE_EXPAT 1 | |
26365 | _ACEOF | |
26366 | ||
26367 | cat >>confdefs.h <<\_ACEOF | |
26368 | #define wxUSE_XML 1 | |
26369 | _ACEOF | |
26370 | ||
26371 | ||
26372 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
26373 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26374 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
26375 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
26376 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26378 | fi | |
26379 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
26380 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
26381 | else | |
26382 | # Is the header compilable? | |
26383 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
26384 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
26385 | cat >conftest.$ac_ext <<_ACEOF | |
26386 | /* confdefs.h. */ | |
26387 | _ACEOF | |
26388 | cat confdefs.h >>conftest.$ac_ext | |
26389 | cat >>conftest.$ac_ext <<_ACEOF | |
26390 | /* end confdefs.h. */ | |
26391 | $ac_includes_default | |
26392 | #include <expat.h> | |
26393 | _ACEOF | |
26394 | rm -f conftest.$ac_objext | |
26395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26396 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26397 | ac_status=$? |
ac1cb8d3 VS |
26398 | grep -v '^ *+' conftest.er1 >conftest.err |
26399 | rm -f conftest.er1 | |
26400 | cat conftest.err >&5 | |
a848cd7e SC |
26401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26402 | (exit $ac_status); } && | |
ca5c6ac3 | 26403 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26405 | (eval $ac_try) 2>&5 | |
26406 | ac_status=$? | |
26407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26408 | (exit $ac_status); }; } && | |
26409 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26411 | (eval $ac_try) 2>&5 | |
26412 | ac_status=$? | |
26413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26414 | (exit $ac_status); }; }; then | |
26415 | ac_header_compiler=yes | |
26416 | else | |
26417 | echo "$as_me: failed program was:" >&5 | |
26418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26419 | ||
26420 | ac_header_compiler=no | |
26421 | fi | |
ac1cb8d3 | 26422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26423 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26424 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26425 | ||
26426 | # Is the header present? | |
26427 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
26428 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
26429 | cat >conftest.$ac_ext <<_ACEOF | |
26430 | /* confdefs.h. */ | |
26431 | _ACEOF | |
26432 | cat confdefs.h >>conftest.$ac_ext | |
26433 | cat >>conftest.$ac_ext <<_ACEOF | |
26434 | /* end confdefs.h. */ | |
26435 | #include <expat.h> | |
26436 | _ACEOF | |
26437 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26438 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26439 | ac_status=$? | |
26440 | grep -v '^ *+' conftest.er1 >conftest.err | |
26441 | rm -f conftest.er1 | |
26442 | cat conftest.err >&5 | |
26443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26444 | (exit $ac_status); } >/dev/null; then | |
26445 | if test -s conftest.err; then | |
5d7b7554 VZ |
26446 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26447 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26448 | else |
26449 | ac_cpp_err= | |
26450 | fi | |
26451 | else | |
26452 | ac_cpp_err=yes | |
26453 | fi | |
26454 | if test -z "$ac_cpp_err"; then | |
26455 | ac_header_preproc=yes | |
26456 | else | |
26457 | echo "$as_me: failed program was:" >&5 | |
26458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26459 | ||
26460 | ac_header_preproc=no | |
26461 | fi | |
26462 | rm -f conftest.err conftest.$ac_ext | |
26463 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26464 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26465 | ||
26466 | # So? What about this header? | |
5d7b7554 | 26467 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26468 | yes:no: ) |
a848cd7e SC |
26469 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26470 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26471 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
26472 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
26473 | ac_header_preproc=yes | |
a848cd7e | 26474 | ;; |
ac1cb8d3 | 26475 | no:yes:* ) |
a848cd7e SC |
26476 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
26477 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26478 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
26479 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
26480 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
26481 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
26482 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26483 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26484 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
26485 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26486 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
26487 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26488 | ( |
26489 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26490 | ## ----------------------------------------- ## |
26491 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26492 | ## ----------------------------------------- ## | |
a848cd7e SC |
26493 | _ASBOX |
26494 | ) | | |
26495 | sed "s/^/$as_me: WARNING: /" >&2 | |
26496 | ;; | |
26497 | esac | |
26498 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
26499 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
26500 | if test "${ac_cv_header_expat_h+set}" = set; then | |
26501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26502 | else | |
26503 | ac_cv_header_expat_h=$ac_header_preproc | |
26504 | fi | |
26505 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
26506 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
26507 | ||
26508 | fi | |
26509 | if test $ac_cv_header_expat_h = yes; then | |
26510 | found_expat_h=1 | |
26511 | fi | |
26512 | ||
26513 | ||
26514 | if test "x$found_expat_h" = "x1"; then | |
26515 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
26516 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
26517 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
26518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26519 | else | |
26520 | ||
a848cd7e SC |
26521 | cat >conftest.$ac_ext <<_ACEOF |
26522 | /* confdefs.h. */ | |
26523 | _ACEOF | |
26524 | cat confdefs.h >>conftest.$ac_ext | |
26525 | cat >>conftest.$ac_ext <<_ACEOF | |
26526 | /* end confdefs.h. */ | |
26527 | #include <expat.h> | |
26528 | int | |
26529 | main () | |
26530 | { | |
26531 | ||
26532 | ; | |
26533 | return 0; | |
26534 | } | |
26535 | _ACEOF | |
26536 | rm -f conftest.$ac_objext | |
26537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26538 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26539 | ac_status=$? |
ac1cb8d3 VS |
26540 | grep -v '^ *+' conftest.er1 >conftest.err |
26541 | rm -f conftest.er1 | |
26542 | cat conftest.err >&5 | |
a848cd7e SC |
26543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26544 | (exit $ac_status); } && | |
ca5c6ac3 | 26545 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26547 | (eval $ac_try) 2>&5 | |
26548 | ac_status=$? | |
26549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26550 | (exit $ac_status); }; } && | |
26551 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26553 | (eval $ac_try) 2>&5 | |
26554 | ac_status=$? | |
26555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26556 | (exit $ac_status); }; }; then | |
26557 | wx_cv_expat_is_not_broken=yes | |
26558 | else | |
26559 | echo "$as_me: failed program was:" >&5 | |
26560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26561 | ||
26562 | wx_cv_expat_is_not_broken=no | |
26563 | ||
26564 | fi | |
ac1cb8d3 | 26565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26566 | |
26567 | ||
26568 | fi | |
26569 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
26570 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
26571 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
26572 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
26573 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
26574 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
26575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26576 | else | |
26577 | ac_check_lib_save_LIBS=$LIBS | |
26578 | LIBS="-lexpat $LIBS" | |
26579 | cat >conftest.$ac_ext <<_ACEOF | |
26580 | /* confdefs.h. */ | |
26581 | _ACEOF | |
26582 | cat confdefs.h >>conftest.$ac_ext | |
26583 | cat >>conftest.$ac_ext <<_ACEOF | |
26584 | /* end confdefs.h. */ | |
26585 | ||
26586 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26587 | #ifdef __cplusplus | |
26588 | extern "C" | |
26589 | #endif | |
26590 | /* We use char because int might match the return type of a gcc2 | |
26591 | builtin and then its argument prototype would still apply. */ | |
26592 | char XML_ParserCreate (); | |
26593 | int | |
26594 | main () | |
26595 | { | |
26596 | XML_ParserCreate (); | |
26597 | ; | |
26598 | return 0; | |
26599 | } | |
26600 | _ACEOF | |
26601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26603 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26604 | ac_status=$? |
ac1cb8d3 VS |
26605 | grep -v '^ *+' conftest.er1 >conftest.err |
26606 | rm -f conftest.er1 | |
26607 | cat conftest.err >&5 | |
a848cd7e SC |
26608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26609 | (exit $ac_status); } && | |
ca5c6ac3 | 26610 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26612 | (eval $ac_try) 2>&5 | |
26613 | ac_status=$? | |
26614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26615 | (exit $ac_status); }; } && | |
26616 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26618 | (eval $ac_try) 2>&5 | |
26619 | ac_status=$? | |
26620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26621 | (exit $ac_status); }; }; then | |
26622 | ac_cv_lib_expat_XML_ParserCreate=yes | |
26623 | else | |
26624 | echo "$as_me: failed program was:" >&5 | |
26625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26626 | ||
26627 | ac_cv_lib_expat_XML_ParserCreate=no | |
26628 | fi | |
ac1cb8d3 VS |
26629 | rm -f conftest.err conftest.$ac_objext \ |
26630 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26631 | LIBS=$ac_check_lib_save_LIBS |
26632 | fi | |
26633 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
26634 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
26635 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
26636 | EXPAT_LINK=" -lexpat" | |
26637 | fi | |
26638 | ||
26639 | fi | |
26640 | fi | |
26641 | if test "x$EXPAT_LINK" = "x" ; then | |
26642 | if test "$wxUSE_EXPAT" = "sys" ; then | |
26643 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
26644 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
26645 | { (exit 1); exit 1; }; } | |
26646 | else | |
26647 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
26648 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
26649 | wxUSE_EXPAT=builtin | |
26650 | fi | |
26651 | else | |
26652 | wxUSE_EXPAT=sys | |
26653 | fi | |
26654 | fi | |
26655 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
26656 | ||
26657 | ||
26658 | subdirs="$subdirs src/expat" | |
26659 | ||
26660 | fi | |
26661 | fi | |
26662 | ||
26663 | ||
26664 | ||
26665 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
26666 | if test "${ac_cv_header_mspack_h+set}" = set; then |
26667 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26668 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26669 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26671 | fi | |
26672 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26673 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26674 | else | |
26675 | # Is the header compilable? | |
26676 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
26677 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
26678 | cat >conftest.$ac_ext <<_ACEOF | |
26679 | /* confdefs.h. */ | |
26680 | _ACEOF | |
26681 | cat confdefs.h >>conftest.$ac_ext | |
26682 | cat >>conftest.$ac_ext <<_ACEOF | |
26683 | /* end confdefs.h. */ | |
26684 | $ac_includes_default | |
26685 | #include <mspack.h> | |
26686 | _ACEOF | |
26687 | rm -f conftest.$ac_objext | |
26688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26689 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26690 | ac_status=$? |
ac1cb8d3 VS |
26691 | grep -v '^ *+' conftest.er1 >conftest.err |
26692 | rm -f conftest.er1 | |
26693 | cat conftest.err >&5 | |
a848cd7e SC |
26694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26695 | (exit $ac_status); } && | |
ca5c6ac3 | 26696 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26698 | (eval $ac_try) 2>&5 | |
26699 | ac_status=$? | |
26700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26701 | (exit $ac_status); }; } && | |
26702 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26704 | (eval $ac_try) 2>&5 | |
26705 | ac_status=$? | |
26706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26707 | (exit $ac_status); }; }; then | |
26708 | ac_header_compiler=yes | |
26709 | else | |
26710 | echo "$as_me: failed program was:" >&5 | |
26711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26712 | ||
26713 | ac_header_compiler=no | |
26714 | fi | |
ac1cb8d3 | 26715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26716 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26717 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26718 | ||
26719 | # Is the header present? | |
26720 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
26721 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
26722 | cat >conftest.$ac_ext <<_ACEOF | |
26723 | /* confdefs.h. */ | |
26724 | _ACEOF | |
26725 | cat confdefs.h >>conftest.$ac_ext | |
26726 | cat >>conftest.$ac_ext <<_ACEOF | |
26727 | /* end confdefs.h. */ | |
26728 | #include <mspack.h> | |
26729 | _ACEOF | |
26730 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26731 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26732 | ac_status=$? | |
26733 | grep -v '^ *+' conftest.er1 >conftest.err | |
26734 | rm -f conftest.er1 | |
26735 | cat conftest.err >&5 | |
26736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26737 | (exit $ac_status); } >/dev/null; then | |
26738 | if test -s conftest.err; then | |
5d7b7554 VZ |
26739 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26740 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26741 | else |
26742 | ac_cpp_err= | |
26743 | fi | |
26744 | else | |
26745 | ac_cpp_err=yes | |
26746 | fi | |
26747 | if test -z "$ac_cpp_err"; then | |
26748 | ac_header_preproc=yes | |
26749 | else | |
26750 | echo "$as_me: failed program was:" >&5 | |
26751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26752 | ||
26753 | ac_header_preproc=no | |
26754 | fi | |
26755 | rm -f conftest.err conftest.$ac_ext | |
26756 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26757 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26758 | ||
26759 | # So? What about this header? | |
5d7b7554 | 26760 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26761 | yes:no: ) |
a848cd7e SC |
26762 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26763 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26764 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
26765 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
26766 | ac_header_preproc=yes | |
a848cd7e | 26767 | ;; |
ac1cb8d3 | 26768 | no:yes:* ) |
a848cd7e SC |
26769 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
26770 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26771 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
26772 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
26773 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
26774 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
26775 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26776 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26777 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
26778 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26779 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
26780 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26781 | ( |
26782 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26783 | ## ----------------------------------------- ## |
26784 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26785 | ## ----------------------------------------- ## | |
a848cd7e SC |
26786 | _ASBOX |
26787 | ) | | |
26788 | sed "s/^/$as_me: WARNING: /" >&2 | |
26789 | ;; | |
26790 | esac | |
26791 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26792 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26793 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26795 | else | |
26796 | ac_cv_header_mspack_h=$ac_header_preproc | |
26797 | fi | |
26798 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26799 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26800 | ||
26801 | fi | |
26802 | if test $ac_cv_header_mspack_h = yes; then | |
26803 | found_mspack_h=1 | |
26804 | fi | |
26805 | ||
26806 | ||
26807 | if test "x$found_mspack_h" = "x1"; then | |
26808 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
26809 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
26810 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
26811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26812 | else | |
26813 | ac_check_lib_save_LIBS=$LIBS | |
26814 | LIBS="-lmspack $LIBS" | |
26815 | cat >conftest.$ac_ext <<_ACEOF | |
26816 | /* confdefs.h. */ | |
26817 | _ACEOF | |
26818 | cat confdefs.h >>conftest.$ac_ext | |
26819 | cat >>conftest.$ac_ext <<_ACEOF | |
26820 | /* end confdefs.h. */ | |
26821 | ||
26822 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26823 | #ifdef __cplusplus | |
26824 | extern "C" | |
26825 | #endif | |
26826 | /* We use char because int might match the return type of a gcc2 | |
26827 | builtin and then its argument prototype would still apply. */ | |
26828 | char mspack_create_chm_decompressor (); | |
26829 | int | |
26830 | main () | |
26831 | { | |
26832 | mspack_create_chm_decompressor (); | |
26833 | ; | |
26834 | return 0; | |
26835 | } | |
26836 | _ACEOF | |
26837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26839 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26840 | ac_status=$? |
ac1cb8d3 VS |
26841 | grep -v '^ *+' conftest.er1 >conftest.err |
26842 | rm -f conftest.er1 | |
26843 | cat conftest.err >&5 | |
a848cd7e SC |
26844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26845 | (exit $ac_status); } && | |
ca5c6ac3 | 26846 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26848 | (eval $ac_try) 2>&5 | |
26849 | ac_status=$? | |
26850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26851 | (exit $ac_status); }; } && | |
26852 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26854 | (eval $ac_try) 2>&5 | |
26855 | ac_status=$? | |
26856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26857 | (exit $ac_status); }; }; then | |
26858 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
26859 | else | |
26860 | echo "$as_me: failed program was:" >&5 | |
26861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26862 | ||
26863 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
26864 | fi | |
ac1cb8d3 VS |
26865 | rm -f conftest.err conftest.$ac_objext \ |
26866 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26867 | LIBS=$ac_check_lib_save_LIBS |
26868 | fi | |
26869 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
26870 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
26871 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
26872 | MSPACK_LINK=" -lmspack" | |
26873 | fi | |
26874 | ||
26875 | fi | |
26876 | if test "x$MSPACK_LINK" = "x" ; then | |
26877 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
26878 | fi |
26879 | fi | |
26880 | ||
26881 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
26882 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
26883 | #define wxUSE_LIBMSPACK 1 |
26884 | _ACEOF | |
26885 | ||
a848cd7e SC |
26886 | fi |
26887 | ||
26888 | ||
26889 | ||
26890 | AFMINSTALL= | |
26891 | WIN32INSTALL= | |
26892 | ||
26893 | TOOLKIT= | |
26894 | TOOLKIT_INCLUDE= | |
26895 | WIDGET_SET= | |
26896 | ||
26897 | if test "$USE_WIN32" = 1 ; then | |
26898 | ||
26899 | for ac_header in w32api.h | |
26900 | do | |
26901 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26903 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26907 | fi | |
26908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26909 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26910 | else | |
26911 | # Is the header compilable? | |
26912 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
26913 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
26914 | cat >conftest.$ac_ext <<_ACEOF | |
26915 | /* confdefs.h. */ | |
26916 | _ACEOF | |
26917 | cat confdefs.h >>conftest.$ac_ext | |
26918 | cat >>conftest.$ac_ext <<_ACEOF | |
26919 | /* end confdefs.h. */ | |
26920 | $ac_includes_default | |
26921 | #include <$ac_header> | |
26922 | _ACEOF | |
26923 | rm -f conftest.$ac_objext | |
26924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26925 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26926 | ac_status=$? |
ac1cb8d3 VS |
26927 | grep -v '^ *+' conftest.er1 >conftest.err |
26928 | rm -f conftest.er1 | |
26929 | cat conftest.err >&5 | |
a848cd7e SC |
26930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26931 | (exit $ac_status); } && | |
ca5c6ac3 | 26932 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26934 | (eval $ac_try) 2>&5 | |
26935 | ac_status=$? | |
26936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26937 | (exit $ac_status); }; } && | |
26938 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26940 | (eval $ac_try) 2>&5 | |
26941 | ac_status=$? | |
26942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26943 | (exit $ac_status); }; }; then | |
26944 | ac_header_compiler=yes | |
26945 | else | |
26946 | echo "$as_me: failed program was:" >&5 | |
26947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26948 | ||
26949 | ac_header_compiler=no | |
26950 | fi | |
ac1cb8d3 | 26951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26952 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26953 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26954 | ||
26955 | # Is the header present? | |
26956 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
26957 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
26958 | cat >conftest.$ac_ext <<_ACEOF | |
26959 | /* confdefs.h. */ | |
26960 | _ACEOF | |
26961 | cat confdefs.h >>conftest.$ac_ext | |
26962 | cat >>conftest.$ac_ext <<_ACEOF | |
26963 | /* end confdefs.h. */ | |
26964 | #include <$ac_header> | |
26965 | _ACEOF | |
26966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26968 | ac_status=$? | |
26969 | grep -v '^ *+' conftest.er1 >conftest.err | |
26970 | rm -f conftest.er1 | |
26971 | cat conftest.err >&5 | |
26972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26973 | (exit $ac_status); } >/dev/null; then | |
26974 | if test -s conftest.err; then | |
5d7b7554 VZ |
26975 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26976 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26977 | else |
26978 | ac_cpp_err= | |
26979 | fi | |
26980 | else | |
26981 | ac_cpp_err=yes | |
26982 | fi | |
26983 | if test -z "$ac_cpp_err"; then | |
26984 | ac_header_preproc=yes | |
26985 | else | |
26986 | echo "$as_me: failed program was:" >&5 | |
26987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26988 | ||
26989 | ac_header_preproc=no | |
26990 | fi | |
26991 | rm -f conftest.err conftest.$ac_ext | |
26992 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26993 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26994 | ||
26995 | # So? What about this header? | |
5d7b7554 | 26996 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26997 | yes:no: ) |
a848cd7e SC |
26998 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
26999 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
27001 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27002 | ac_header_preproc=yes | |
a848cd7e | 27003 | ;; |
ac1cb8d3 | 27004 | no:yes:* ) |
a848cd7e SC |
27005 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27006 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27007 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27008 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27009 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27010 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27011 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27012 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27014 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27015 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27016 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27017 | ( |
27018 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27019 | ## ----------------------------------------- ## |
27020 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27021 | ## ----------------------------------------- ## | |
a848cd7e SC |
27022 | _ASBOX |
27023 | ) | | |
27024 | sed "s/^/$as_me: WARNING: /" >&2 | |
27025 | ;; | |
27026 | esac | |
27027 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27028 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27029 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27031 | else | |
ac1cb8d3 | 27032 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
27033 | fi |
27034 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27035 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27036 | ||
27037 | fi | |
27038 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27039 | cat >>confdefs.h <<_ACEOF | |
27040 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27041 | _ACEOF | |
27042 | ||
27043 | fi | |
27044 | ||
27045 | done | |
27046 | ||
27047 | if test "${ac_cv_header_windows_h+set}" = set; then | |
27048 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
27049 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
27050 | if test "${ac_cv_header_windows_h+set}" = set; then | |
27051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27052 | fi | |
27053 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
27054 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
27055 | else | |
27056 | # Is the header compilable? | |
27057 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
27058 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
27059 | cat >conftest.$ac_ext <<_ACEOF | |
27060 | /* confdefs.h. */ | |
27061 | _ACEOF | |
27062 | cat confdefs.h >>conftest.$ac_ext | |
27063 | cat >>conftest.$ac_ext <<_ACEOF | |
27064 | /* end confdefs.h. */ | |
27065 | $ac_includes_default | |
27066 | #include <windows.h> | |
27067 | _ACEOF | |
27068 | rm -f conftest.$ac_objext | |
27069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27070 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27071 | ac_status=$? |
ac1cb8d3 VS |
27072 | grep -v '^ *+' conftest.er1 >conftest.err |
27073 | rm -f conftest.er1 | |
27074 | cat conftest.err >&5 | |
a848cd7e SC |
27075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27076 | (exit $ac_status); } && | |
ca5c6ac3 | 27077 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27079 | (eval $ac_try) 2>&5 | |
27080 | ac_status=$? | |
27081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27082 | (exit $ac_status); }; } && | |
27083 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27085 | (eval $ac_try) 2>&5 | |
27086 | ac_status=$? | |
27087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27088 | (exit $ac_status); }; }; then | |
27089 | ac_header_compiler=yes | |
27090 | else | |
27091 | echo "$as_me: failed program was:" >&5 | |
27092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27093 | ||
27094 | ac_header_compiler=no | |
27095 | fi | |
ac1cb8d3 | 27096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27097 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27098 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27099 | ||
27100 | # Is the header present? | |
27101 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
27102 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
27103 | cat >conftest.$ac_ext <<_ACEOF | |
27104 | /* confdefs.h. */ | |
27105 | _ACEOF | |
27106 | cat confdefs.h >>conftest.$ac_ext | |
27107 | cat >>conftest.$ac_ext <<_ACEOF | |
27108 | /* end confdefs.h. */ | |
27109 | #include <windows.h> | |
27110 | _ACEOF | |
27111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27113 | ac_status=$? | |
27114 | grep -v '^ *+' conftest.er1 >conftest.err | |
27115 | rm -f conftest.er1 | |
27116 | cat conftest.err >&5 | |
27117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27118 | (exit $ac_status); } >/dev/null; then | |
27119 | if test -s conftest.err; then | |
5d7b7554 VZ |
27120 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
27121 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
27122 | else |
27123 | ac_cpp_err= | |
27124 | fi | |
27125 | else | |
27126 | ac_cpp_err=yes | |
27127 | fi | |
27128 | if test -z "$ac_cpp_err"; then | |
27129 | ac_header_preproc=yes | |
27130 | else | |
27131 | echo "$as_me: failed program was:" >&5 | |
27132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27133 | ||
27134 | ac_header_preproc=no | |
27135 | fi | |
27136 | rm -f conftest.err conftest.$ac_ext | |
27137 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27138 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27139 | ||
27140 | # So? What about this header? | |
5d7b7554 | 27141 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 27142 | yes:no: ) |
a848cd7e SC |
27143 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27144 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27145 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
27146 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
27147 | ac_header_preproc=yes | |
a848cd7e | 27148 | ;; |
ac1cb8d3 | 27149 | no:yes:* ) |
a848cd7e SC |
27150 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
27151 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27152 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
27153 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
27154 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
27155 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
27156 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27157 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27158 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
27159 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27160 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
27161 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27162 | ( |
27163 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27164 | ## ----------------------------------------- ## |
27165 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27166 | ## ----------------------------------------- ## | |
a848cd7e SC |
27167 | _ASBOX |
27168 | ) | | |
27169 | sed "s/^/$as_me: WARNING: /" >&2 | |
27170 | ;; | |
27171 | esac | |
27172 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
27173 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
27174 | if test "${ac_cv_header_windows_h+set}" = set; then | |
27175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27176 | else | |
27177 | ac_cv_header_windows_h=$ac_header_preproc | |
27178 | fi | |
27179 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
27180 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
27181 | ||
27182 | fi | |
27183 | if test $ac_cv_header_windows_h = yes; then | |
27184 | : | |
27185 | else | |
27186 | ||
27187 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
27188 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
27189 | { (exit 1); exit 1; }; } | |
27190 | ||
27191 | fi | |
27192 | ||
27193 | ||
27194 | ||
27195 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
27196 | ||
27197 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
27198 | LIBS="$LIBS -loleacc" | |
27199 | fi | |
27200 | ||
27201 | case "${host}" in | |
27202 | *-*-cygwin* ) | |
27203 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
27204 | esac |
27205 | ||
27206 | if test "$wxUSE_ODBC" = "sys" ; then | |
27207 | wxUSE_ODBC = "yes" | |
27208 | fi | |
27209 | if test "$wxUSE_ODBC" = "yes" ; then | |
27210 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
27211 | cat >>confdefs.h <<\_ACEOF | |
27212 | #define wxUSE_ODBC 1 | |
27213 | _ACEOF | |
27214 | ||
27215 | fi | |
27216 | ||
370d2fd7 | 27217 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
27218 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
27219 | ||
004ee6da | 27220 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 27221 | |
a848cd7e | 27222 | WIN32INSTALL=win32install |
5f41d1bf MW |
27223 | |
27224 | echo "$as_me:$LINENO: checking for boolean" >&5 | |
27225 | echo $ECHO_N "checking for boolean... $ECHO_C" >&6 | |
27226 | if test "${ac_cv_type_boolean+set}" = set; then | |
27227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27228 | else | |
27229 | cat >conftest.$ac_ext <<_ACEOF | |
27230 | /* confdefs.h. */ | |
27231 | _ACEOF | |
27232 | cat confdefs.h >>conftest.$ac_ext | |
27233 | cat >>conftest.$ac_ext <<_ACEOF | |
27234 | /* end confdefs.h. */ | |
27235 | #include <windows.h> | |
27236 | ||
27237 | int | |
27238 | main () | |
27239 | { | |
27240 | if ((boolean *) 0) | |
27241 | return 0; | |
27242 | if (sizeof (boolean)) | |
27243 | return 0; | |
27244 | ; | |
27245 | return 0; | |
27246 | } | |
27247 | _ACEOF | |
27248 | rm -f conftest.$ac_objext | |
27249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27250 | (eval $ac_compile) 2>conftest.er1 | |
27251 | ac_status=$? | |
27252 | grep -v '^ *+' conftest.er1 >conftest.err | |
27253 | rm -f conftest.er1 | |
27254 | cat conftest.err >&5 | |
27255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27256 | (exit $ac_status); } && | |
ca5c6ac3 | 27257 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5f41d1bf MW |
27258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27259 | (eval $ac_try) 2>&5 | |
27260 | ac_status=$? | |
27261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27262 | (exit $ac_status); }; } && | |
27263 | { ac_try='test -s conftest.$ac_objext' | |
27264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27265 | (eval $ac_try) 2>&5 | |
27266 | ac_status=$? | |
27267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27268 | (exit $ac_status); }; }; then | |
27269 | ac_cv_type_boolean=yes | |
27270 | else | |
27271 | echo "$as_me: failed program was:" >&5 | |
27272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27273 | ||
27274 | ac_cv_type_boolean=no | |
27275 | fi | |
27276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27277 | fi | |
27278 | echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5 | |
27279 | echo "${ECHO_T}$ac_cv_type_boolean" >&6 | |
27280 | if test $ac_cv_type_boolean = yes; then | |
27281 | ||
27282 | cat >>confdefs.h <<_ACEOF | |
27283 | #define HAVE_BOOLEAN 1 | |
27284 | _ACEOF | |
27285 | ||
27286 | ||
27287 | fi | |
27288 | ||
dcfd4ac4 MW |
27289 | |
27290 | ||
27291 | for ac_header in pbt.h | |
27292 | do | |
27293 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27299 | fi | |
27300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27302 | else | |
27303 | # Is the header compilable? | |
27304 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27305 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27306 | cat >conftest.$ac_ext <<_ACEOF | |
27307 | /* confdefs.h. */ | |
27308 | _ACEOF | |
27309 | cat confdefs.h >>conftest.$ac_ext | |
27310 | cat >>conftest.$ac_ext <<_ACEOF | |
27311 | /* end confdefs.h. */ | |
27312 | $ac_includes_default | |
27313 | #include <$ac_header> | |
27314 | _ACEOF | |
27315 | rm -f conftest.$ac_objext | |
27316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27317 | (eval $ac_compile) 2>conftest.er1 | |
27318 | ac_status=$? | |
27319 | grep -v '^ *+' conftest.er1 >conftest.err | |
27320 | rm -f conftest.er1 | |
27321 | cat conftest.err >&5 | |
27322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27323 | (exit $ac_status); } && | |
ca5c6ac3 | 27324 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
dcfd4ac4 MW |
27325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27326 | (eval $ac_try) 2>&5 | |
27327 | ac_status=$? | |
27328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27329 | (exit $ac_status); }; } && | |
27330 | { ac_try='test -s conftest.$ac_objext' | |
27331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27332 | (eval $ac_try) 2>&5 | |
27333 | ac_status=$? | |
27334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27335 | (exit $ac_status); }; }; then | |
27336 | ac_header_compiler=yes | |
27337 | else | |
27338 | echo "$as_me: failed program was:" >&5 | |
27339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27340 | ||
27341 | ac_header_compiler=no | |
27342 | fi | |
27343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27344 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
27345 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27346 | ||
27347 | # Is the header present? | |
27348 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27349 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27350 | cat >conftest.$ac_ext <<_ACEOF | |
27351 | /* confdefs.h. */ | |
27352 | _ACEOF | |
27353 | cat confdefs.h >>conftest.$ac_ext | |
27354 | cat >>conftest.$ac_ext <<_ACEOF | |
27355 | /* end confdefs.h. */ | |
27356 | #include <$ac_header> | |
27357 | _ACEOF | |
27358 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27359 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27360 | ac_status=$? | |
27361 | grep -v '^ *+' conftest.er1 >conftest.err | |
27362 | rm -f conftest.er1 | |
27363 | cat conftest.err >&5 | |
27364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27365 | (exit $ac_status); } >/dev/null; then | |
27366 | if test -s conftest.err; then | |
27367 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
27368 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
27369 | else | |
27370 | ac_cpp_err= | |
27371 | fi | |
27372 | else | |
27373 | ac_cpp_err=yes | |
27374 | fi | |
27375 | if test -z "$ac_cpp_err"; then | |
27376 | ac_header_preproc=yes | |
27377 | else | |
27378 | echo "$as_me: failed program was:" >&5 | |
27379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27380 | ||
27381 | ac_header_preproc=no | |
27382 | fi | |
27383 | rm -f conftest.err conftest.$ac_ext | |
27384 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27385 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27386 | ||
27387 | # So? What about this header? | |
27388 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
27389 | yes:no: ) | |
27390 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
27391 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
27392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
27393 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27394 | ac_header_preproc=yes | |
27395 | ;; | |
27396 | no:yes:* ) | |
27397 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
27398 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
27399 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
27400 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27401 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27402 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27403 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27404 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
27405 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
27406 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
27407 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
27408 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
27409 | ( | |
27410 | cat <<\_ASBOX | |
27411 | ## ----------------------------------------- ## | |
27412 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27413 | ## ----------------------------------------- ## | |
27414 | _ASBOX | |
27415 | ) | | |
27416 | sed "s/^/$as_me: WARNING: /" >&2 | |
27417 | ;; | |
27418 | esac | |
27419 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27423 | else | |
27424 | eval "$as_ac_Header=\$ac_header_preproc" | |
27425 | fi | |
27426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27427 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27428 | ||
27429 | fi | |
27430 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27431 | cat >>confdefs.h <<_ACEOF | |
27432 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27433 | _ACEOF | |
27434 | ||
27435 | else | |
27436 | cat >>confdefs.h <<\_ACEOF | |
27437 | #define NEED_PBT_H 1 | |
27438 | _ACEOF | |
27439 | ||
27440 | fi | |
27441 | ||
27442 | done | |
27443 | ||
a848cd7e SC |
27444 | fi |
27445 | ||
27446 | if test "$wxUSE_GUI" = "yes"; then | |
27447 | USE_GUI=1 | |
27448 | ||
27449 | GUI_TK_LIBRARY= | |
27450 | ||
27451 | WXGTK12= | |
27452 | WXGTK127= | |
27453 | WXGTK20= | |
27454 | WXGPE= | |
27455 | ||
207bc66c RN |
27456 | if test "$wxUSE_COCOA" = 1 ; then |
27457 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
27458 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
27459 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
27460 | wxUSE_PRINTING_ARCHITECTURE=no | |
27461 | fi | |
27462 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
27463 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
27464 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
27465 | wxUSE_DRAG_AND_DROP=no | |
27466 | fi | |
27467 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
27468 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
27469 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
27470 | wxUSE_DRAGIMAGE=no | |
27471 | fi | |
27472 | fi | |
27473 | ||
a848cd7e SC |
27474 | if test "$wxUSE_MSW" = 1 ; then |
27475 | TOOLKIT=MSW | |
27476 | GUIDIST=MSW_DIST | |
27477 | ||
ceec2216 | 27478 | case "${host}" in |
a848cd7e SC |
27479 | *-*-mingw32* ) |
27480 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
27481 | esac | |
27482 | fi | |
27483 | ||
27484 | if test "$wxUSE_GTK" = 1; then | |
5d7b7554 VZ |
27485 | ac_ext=c |
27486 | ac_cpp='$CPP $CPPFLAGS' | |
27487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
27490 | ||
27491 | ||
a848cd7e SC |
27492 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
27493 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
27494 | ||
27495 | gtk_version_cached=1 | |
27496 | if test "${wx_cv_lib_gtk+set}" = set; then | |
27497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27498 | else | |
27499 | ||
27500 | gtk_version_cached=0 | |
27501 | echo "$as_me:$LINENO: result: " >&5 | |
27502 | echo "${ECHO_T}" >&6 | |
27503 | ||
27504 | GTK_MODULES= | |
27505 | if test "$wxUSE_THREADS" = "yes"; then | |
27506 | GTK_MODULES=gthread | |
27507 | fi | |
27508 | ||
f597b41c | 27509 | wx_cv_lib_gtk= |
5001df0d MW |
27510 | if test "x$wxGTK_VERSION" != "x1" |
27511 | then | |
27512 | case "${host}" in | |
27513 | *-*-solaris2* ) | |
27514 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 27515 | enable_gtktest=no |
5001df0d MW |
27516 | fi |
27517 | esac | |
27518 | ||
a848cd7e SC |
27519 | # Check whether --enable-gtktest or --disable-gtktest was given. |
27520 | if test "${enable_gtktest+set}" = set; then | |
27521 | enableval="$enable_gtktest" | |
27522 | ||
27523 | else | |
27524 | enable_gtktest=yes | |
27525 | fi; | |
27526 | ||
27527 | pkg_config_args=gtk+-2.0 | |
27528 | for module in . $GTK_MODULES | |
27529 | do | |
27530 | case "$module" in | |
27531 | gthread) | |
27532 | pkg_config_args="$pkg_config_args gthread-2.0" | |
27533 | ;; | |
27534 | esac | |
27535 | done | |
27536 | ||
27537 | no_gtk="" | |
27538 | ||
27539 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27540 | set dummy pkg-config; ac_word=$2 | |
27541 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27543 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
27544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27545 | else | |
27546 | case $PKG_CONFIG in | |
27547 | [\\/]* | ?:[\\/]*) | |
27548 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27549 | ;; | |
27550 | *) | |
27551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27552 | for as_dir in $PATH | |
27553 | do | |
27554 | IFS=$as_save_IFS | |
27555 | test -z "$as_dir" && as_dir=. | |
27556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27558 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27560 | break 2 | |
27561 | fi | |
27562 | done | |
27563 | done | |
27564 | ||
27565 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
27566 | ;; | |
27567 | esac | |
27568 | fi | |
27569 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27570 | ||
27571 | if test -n "$PKG_CONFIG"; then | |
27572 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
27573 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
27574 | else | |
27575 | echo "$as_me:$LINENO: result: no" >&5 | |
27576 | echo "${ECHO_T}no" >&6 | |
27577 | fi | |
27578 | ||
27579 | ||
27580 | if test x$PKG_CONFIG != xno ; then | |
27581 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
27582 | : | |
27583 | else | |
c2218763 | 27584 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
27585 | no_gtk=yes |
27586 | PKG_CONFIG=no | |
27587 | fi | |
27588 | else | |
27589 | no_gtk=yes | |
27590 | fi | |
27591 | ||
27592 | min_gtk_version=2.0.0 | |
27593 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
27594 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
27595 | ||
27596 | if test x$PKG_CONFIG != xno ; then | |
27597 | ## don't try to run the test against uninstalled libtool libs | |
27598 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
27599 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
27600 | enable_gtktest=no | |
27601 | fi | |
27602 | ||
27603 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
27604 | : | |
27605 | else | |
27606 | no_gtk=yes | |
27607 | fi | |
27608 | fi | |
27609 | ||
27610 | if test x"$no_gtk" = x ; then | |
27611 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
27612 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
27613 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27614 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27615 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27616 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27617 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
27618 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27619 | if test "x$enable_gtktest" = "xyes" ; then | |
27620 | ac_save_CFLAGS="$CFLAGS" | |
27621 | ac_save_LIBS="$LIBS" | |
27622 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27623 | LIBS="$GTK_LIBS $LIBS" | |
27624 | rm -f conf.gtktest | |
27625 | if test "$cross_compiling" = yes; then | |
27626 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27627 | else | |
27628 | cat >conftest.$ac_ext <<_ACEOF | |
27629 | /* confdefs.h. */ | |
27630 | _ACEOF | |
27631 | cat confdefs.h >>conftest.$ac_ext | |
27632 | cat >>conftest.$ac_ext <<_ACEOF | |
27633 | /* end confdefs.h. */ | |
27634 | ||
27635 | #include <gtk/gtk.h> | |
27636 | #include <stdio.h> | |
27637 | #include <stdlib.h> | |
27638 | ||
27639 | int | |
27640 | main () | |
27641 | { | |
27642 | int major, minor, micro; | |
27643 | char *tmp_version; | |
27644 | ||
27645 | system ("touch conf.gtktest"); | |
27646 | ||
27647 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27648 | tmp_version = g_strdup("$min_gtk_version"); | |
27649 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27650 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27651 | exit(1); | |
27652 | } | |
27653 | ||
27654 | if ((gtk_major_version != $gtk_config_major_version) || | |
27655 | (gtk_minor_version != $gtk_config_minor_version) || | |
27656 | (gtk_micro_version != $gtk_config_micro_version)) | |
27657 | { | |
27658 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27659 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27660 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27661 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
27662 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27663 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27664 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27665 | printf("*** required on your system.\n"); | |
27666 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
27667 | printf("*** to point to the correct configuration files\n"); | |
27668 | } | |
27669 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27670 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27671 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27672 | { | |
27673 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27674 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27675 | printf("*** library (version %d.%d.%d)\n", | |
27676 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27677 | } | |
27678 | else | |
27679 | { | |
27680 | if ((gtk_major_version > major) || | |
27681 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27682 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27683 | { | |
27684 | return 0; | |
27685 | } | |
27686 | else | |
27687 | { | |
27688 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27689 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27690 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27691 | major, minor, micro); | |
27692 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27693 | printf("***\n"); | |
27694 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27695 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
27696 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27697 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
27698 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
27699 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27700 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27701 | } | |
27702 | } | |
27703 | return 1; | |
27704 | } | |
27705 | ||
27706 | _ACEOF | |
27707 | rm -f conftest$ac_exeext | |
27708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27709 | (eval $ac_link) 2>&5 | |
27710 | ac_status=$? | |
27711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27712 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27714 | (eval $ac_try) 2>&5 | |
27715 | ac_status=$? | |
27716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27717 | (exit $ac_status); }; }; then | |
27718 | : | |
27719 | else | |
27720 | echo "$as_me: program exited with status $ac_status" >&5 | |
27721 | echo "$as_me: failed program was:" >&5 | |
27722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27723 | ||
27724 | ( exit $ac_status ) | |
27725 | no_gtk=yes | |
27726 | fi | |
ac1cb8d3 | 27727 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27728 | fi |
27729 | CFLAGS="$ac_save_CFLAGS" | |
27730 | LIBS="$ac_save_LIBS" | |
27731 | fi | |
27732 | fi | |
27733 | if test "x$no_gtk" = x ; then | |
27734 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
27735 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
27736 | wx_cv_lib_gtk=2.0 | |
27737 | else | |
27738 | echo "$as_me:$LINENO: result: no" >&5 | |
27739 | echo "${ECHO_T}no" >&6 | |
27740 | if test "$PKG_CONFIG" = "no" ; then | |
27741 | echo "*** A new enough version of pkg-config was not found." | |
27742 | echo "*** See http://pkgconfig.sourceforge.net" | |
27743 | else | |
27744 | if test -f conf.gtktest ; then | |
27745 | : | |
27746 | else | |
27747 | echo "*** Could not run GTK+ test program, checking why..." | |
27748 | ac_save_CFLAGS="$CFLAGS" | |
27749 | ac_save_LIBS="$LIBS" | |
27750 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27751 | LIBS="$LIBS $GTK_LIBS" | |
27752 | cat >conftest.$ac_ext <<_ACEOF | |
27753 | /* confdefs.h. */ | |
27754 | _ACEOF | |
27755 | cat confdefs.h >>conftest.$ac_ext | |
27756 | cat >>conftest.$ac_ext <<_ACEOF | |
27757 | /* end confdefs.h. */ | |
27758 | ||
27759 | #include <gtk/gtk.h> | |
27760 | #include <stdio.h> | |
27761 | ||
27762 | int | |
27763 | main () | |
27764 | { | |
27765 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27766 | ; | |
27767 | return 0; | |
27768 | } | |
27769 | _ACEOF | |
27770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27772 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27773 | ac_status=$? |
ac1cb8d3 VS |
27774 | grep -v '^ *+' conftest.er1 >conftest.err |
27775 | rm -f conftest.er1 | |
27776 | cat conftest.err >&5 | |
a848cd7e SC |
27777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27778 | (exit $ac_status); } && | |
ca5c6ac3 | 27779 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27781 | (eval $ac_try) 2>&5 | |
27782 | ac_status=$? | |
27783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27784 | (exit $ac_status); }; } && | |
27785 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27787 | (eval $ac_try) 2>&5 | |
27788 | ac_status=$? | |
27789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27790 | (exit $ac_status); }; }; then | |
27791 | echo "*** The test program compiled, but did not run. This usually means" | |
27792 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
27793 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
27794 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27795 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27796 | echo "*** is required on your system" | |
27797 | echo "***" | |
27798 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27799 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27800 | else | |
27801 | echo "$as_me: failed program was:" >&5 | |
27802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27803 | ||
27804 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27805 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
27806 | fi | |
ac1cb8d3 VS |
27807 | rm -f conftest.err conftest.$ac_objext \ |
27808 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27809 | CFLAGS="$ac_save_CFLAGS" |
27810 | LIBS="$ac_save_LIBS" | |
27811 | fi | |
27812 | fi | |
27813 | GTK_CFLAGS="" | |
27814 | GTK_LIBS="" | |
27815 | : | |
27816 | fi | |
27817 | ||
27818 | ||
27819 | rm -f conf.gtktest | |
27820 | ||
5001df0d MW |
27821 | |
27822 | case "${host}" in | |
27823 | *-*-solaris2* ) | |
27824 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
27825 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
27826 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
27827 | fi | |
27828 | if test "$wxUSE_SHARED" != "yes"; then | |
27829 | GTK_LIBS="$GTK_LIBS -lX11" | |
27830 | fi | |
27831 | esac | |
f597b41c MW |
27832 | fi |
27833 | ||
f34ca037 MW |
27834 | if test -z "$wx_cv_lib_gtk"; then |
27835 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
27836 | |
27837 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27838 | if test "${with_gtk_prefix+set}" = set; then | |
27839 | withval="$with_gtk_prefix" | |
27840 | gtk_config_prefix="$withval" | |
27841 | else | |
27842 | gtk_config_prefix="" | |
27843 | fi; | |
27844 | ||
27845 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27846 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27847 | withval="$with_gtk_exec_prefix" | |
27848 | gtk_config_exec_prefix="$withval" | |
27849 | else | |
27850 | gtk_config_exec_prefix="" | |
27851 | fi; | |
27852 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27853 | if test "${enable_gtktest+set}" = set; then | |
27854 | enableval="$enable_gtktest" | |
27855 | ||
27856 | else | |
27857 | enable_gtktest=yes | |
27858 | fi; | |
27859 | ||
27860 | for module in . $GTK_MODULES | |
27861 | do | |
27862 | case "$module" in | |
27863 | gthread) | |
27864 | gtk_config_args="$gtk_config_args gthread" | |
27865 | ;; | |
27866 | esac | |
27867 | done | |
27868 | ||
27869 | if test x$gtk_config_exec_prefix != x ; then | |
27870 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27871 | if test x${GTK_CONFIG+set} != xset ; then | |
27872 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27873 | fi | |
27874 | fi | |
27875 | if test x$gtk_config_prefix != x ; then | |
27876 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27877 | if test x${GTK_CONFIG+set} != xset ; then | |
27878 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27879 | fi | |
27880 | fi | |
27881 | ||
27882 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27883 | set dummy gtk-config; ac_word=$2 | |
27884 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27886 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27888 | else | |
27889 | case $GTK_CONFIG in | |
27890 | [\\/]* | ?:[\\/]*) | |
27891 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27892 | ;; | |
27893 | *) | |
27894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27895 | for as_dir in $PATH | |
27896 | do | |
27897 | IFS=$as_save_IFS | |
27898 | test -z "$as_dir" && as_dir=. | |
27899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27901 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27903 | break 2 | |
27904 | fi | |
27905 | done | |
27906 | done | |
27907 | ||
27908 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27909 | ;; | |
27910 | esac | |
27911 | fi | |
27912 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27913 | ||
27914 | if test -n "$GTK_CONFIG"; then | |
27915 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27916 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27917 | else | |
27918 | echo "$as_me:$LINENO: result: no" >&5 | |
27919 | echo "${ECHO_T}no" >&6 | |
27920 | fi | |
27921 | ||
27922 | min_gtk_version=1.2.7 | |
27923 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27924 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27925 | no_gtk="" | |
27926 | if test "$GTK_CONFIG" = "no" ; then | |
27927 | no_gtk=yes | |
27928 | else | |
27929 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27930 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27931 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27932 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27933 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27934 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27935 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27936 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27937 | if test "x$enable_gtktest" = "xyes" ; then | |
27938 | ac_save_CFLAGS="$CFLAGS" | |
27939 | ac_save_LIBS="$LIBS" | |
27940 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27941 | LIBS="$GTK_LIBS $LIBS" | |
27942 | rm -f conf.gtktest | |
27943 | if test "$cross_compiling" = yes; then | |
27944 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27945 | else | |
27946 | cat >conftest.$ac_ext <<_ACEOF | |
27947 | /* confdefs.h. */ | |
27948 | _ACEOF | |
27949 | cat confdefs.h >>conftest.$ac_ext | |
27950 | cat >>conftest.$ac_ext <<_ACEOF | |
27951 | /* end confdefs.h. */ | |
27952 | ||
27953 | #include <gtk/gtk.h> | |
27954 | #include <stdio.h> | |
27955 | #include <stdlib.h> | |
27956 | ||
27957 | int | |
27958 | main () | |
27959 | { | |
27960 | int major, minor, micro; | |
27961 | char *tmp_version; | |
27962 | ||
27963 | system ("touch conf.gtktest"); | |
27964 | ||
27965 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27966 | tmp_version = g_strdup("$min_gtk_version"); | |
27967 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27968 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27969 | exit(1); | |
27970 | } | |
27971 | ||
27972 | if ((gtk_major_version != $gtk_config_major_version) || | |
27973 | (gtk_minor_version != $gtk_config_minor_version) || | |
27974 | (gtk_micro_version != $gtk_config_micro_version)) | |
27975 | { | |
27976 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27977 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27978 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27979 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27980 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27981 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27982 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27983 | printf("*** required on your system.\n"); | |
27984 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27985 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27986 | printf("*** before re-running configure\n"); | |
27987 | } | |
27988 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27989 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27990 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27991 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27992 | { | |
27993 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27994 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27995 | printf("*** library (version %d.%d.%d)\n", | |
27996 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27997 | } | |
27998 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27999 | else | |
28000 | { | |
28001 | if ((gtk_major_version > major) || | |
28002 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
28003 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
28004 | { | |
28005 | return 0; | |
28006 | } | |
28007 | else | |
28008 | { | |
28009 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
28010 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28011 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
28012 | major, minor, micro); | |
28013 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
28014 | printf("***\n"); | |
28015 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
28016 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
28017 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
28018 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
28019 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
28020 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
28021 | printf("*** so that the correct libraries are found at run-time))\n"); | |
28022 | } | |
28023 | } | |
28024 | return 1; | |
28025 | } | |
28026 | ||
28027 | _ACEOF | |
28028 | rm -f conftest$ac_exeext | |
28029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28030 | (eval $ac_link) 2>&5 | |
28031 | ac_status=$? | |
28032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
28034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28035 | (eval $ac_try) 2>&5 | |
28036 | ac_status=$? | |
28037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28038 | (exit $ac_status); }; }; then | |
28039 | : | |
28040 | else | |
28041 | echo "$as_me: program exited with status $ac_status" >&5 | |
28042 | echo "$as_me: failed program was:" >&5 | |
28043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28044 | ||
28045 | ( exit $ac_status ) | |
28046 | no_gtk=yes | |
28047 | fi | |
ac1cb8d3 | 28048 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28049 | fi |
28050 | CFLAGS="$ac_save_CFLAGS" | |
28051 | LIBS="$ac_save_LIBS" | |
28052 | fi | |
28053 | fi | |
28054 | if test "x$no_gtk" = x ; then | |
28055 | echo "$as_me:$LINENO: result: yes" >&5 | |
28056 | echo "${ECHO_T}yes" >&6 | |
28057 | wx_cv_lib_gtk=1.2.7 | |
28058 | else | |
28059 | echo "$as_me:$LINENO: result: no" >&5 | |
28060 | echo "${ECHO_T}no" >&6 | |
28061 | if test "$GTK_CONFIG" = "no" ; then | |
28062 | echo "*** The gtk-config script installed by GTK could not be found" | |
28063 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
28064 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
28065 | echo "*** full path to gtk-config." | |
28066 | else | |
28067 | if test -f conf.gtktest ; then | |
28068 | : | |
28069 | else | |
28070 | echo "*** Could not run GTK test program, checking why..." | |
28071 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
28072 | LIBS="$LIBS $GTK_LIBS" | |
28073 | cat >conftest.$ac_ext <<_ACEOF | |
28074 | /* confdefs.h. */ | |
28075 | _ACEOF | |
28076 | cat confdefs.h >>conftest.$ac_ext | |
28077 | cat >>conftest.$ac_ext <<_ACEOF | |
28078 | /* end confdefs.h. */ | |
28079 | ||
28080 | #include <gtk/gtk.h> | |
28081 | #include <stdio.h> | |
28082 | ||
28083 | int | |
28084 | main () | |
28085 | { | |
28086 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
28087 | ; | |
28088 | return 0; | |
28089 | } | |
28090 | _ACEOF | |
28091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28093 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28094 | ac_status=$? |
ac1cb8d3 VS |
28095 | grep -v '^ *+' conftest.er1 >conftest.err |
28096 | rm -f conftest.er1 | |
28097 | cat conftest.err >&5 | |
a848cd7e SC |
28098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28099 | (exit $ac_status); } && | |
ca5c6ac3 | 28100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28102 | (eval $ac_try) 2>&5 | |
28103 | ac_status=$? | |
28104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28105 | (exit $ac_status); }; } && | |
28106 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28108 | (eval $ac_try) 2>&5 | |
28109 | ac_status=$? | |
28110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28111 | (exit $ac_status); }; }; then | |
28112 | echo "*** The test program compiled, but did not run. This usually means" | |
28113 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
28114 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
28115 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
28116 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
28117 | echo "*** is required on your system" | |
28118 | echo "***" | |
28119 | echo "*** If you have an old version installed, it is best to remove it, although" | |
28120 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
28121 | echo "***" | |
28122 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
28123 | echo "*** came with the system with the command" | |
28124 | echo "***" | |
28125 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
28126 | else | |
28127 | echo "$as_me: failed program was:" >&5 | |
28128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28129 | ||
28130 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
28131 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
28132 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
28133 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
28134 | fi | |
ac1cb8d3 VS |
28135 | rm -f conftest.err conftest.$ac_objext \ |
28136 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28137 | CFLAGS="$ac_save_CFLAGS" |
28138 | LIBS="$ac_save_LIBS" | |
28139 | fi | |
28140 | fi | |
28141 | GTK_CFLAGS="" | |
28142 | GTK_LIBS="" | |
28143 | : | |
28144 | fi | |
28145 | ||
28146 | ||
28147 | rm -f conf.gtktest | |
28148 | ||
28149 | ||
f34ca037 | 28150 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
28151 | |
28152 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
28153 | if test "${with_gtk_prefix+set}" = set; then | |
28154 | withval="$with_gtk_prefix" | |
28155 | gtk_config_prefix="$withval" | |
28156 | else | |
28157 | gtk_config_prefix="" | |
28158 | fi; | |
28159 | ||
28160 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
28161 | if test "${with_gtk_exec_prefix+set}" = set; then | |
28162 | withval="$with_gtk_exec_prefix" | |
28163 | gtk_config_exec_prefix="$withval" | |
28164 | else | |
28165 | gtk_config_exec_prefix="" | |
28166 | fi; | |
28167 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
28168 | if test "${enable_gtktest+set}" = set; then | |
28169 | enableval="$enable_gtktest" | |
28170 | ||
28171 | else | |
28172 | enable_gtktest=yes | |
28173 | fi; | |
28174 | ||
28175 | for module in . $GTK_MODULES | |
28176 | do | |
28177 | case "$module" in | |
28178 | gthread) | |
28179 | gtk_config_args="$gtk_config_args gthread" | |
28180 | ;; | |
28181 | esac | |
28182 | done | |
28183 | ||
28184 | if test x$gtk_config_exec_prefix != x ; then | |
28185 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
28186 | if test x${GTK_CONFIG+set} != xset ; then | |
28187 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
28188 | fi | |
28189 | fi | |
28190 | if test x$gtk_config_prefix != x ; then | |
28191 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
28192 | if test x${GTK_CONFIG+set} != xset ; then | |
28193 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
28194 | fi | |
28195 | fi | |
28196 | ||
28197 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
28198 | set dummy gtk-config; ac_word=$2 | |
28199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28201 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
28202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28203 | else | |
28204 | case $GTK_CONFIG in | |
28205 | [\\/]* | ?:[\\/]*) | |
28206 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
28207 | ;; | |
28208 | *) | |
28209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28210 | for as_dir in $PATH | |
28211 | do | |
28212 | IFS=$as_save_IFS | |
28213 | test -z "$as_dir" && as_dir=. | |
28214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28215 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28216 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28218 | break 2 | |
28219 | fi | |
28220 | done | |
28221 | done | |
28222 | ||
28223 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
28224 | ;; | |
28225 | esac | |
28226 | fi | |
28227 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
28228 | ||
28229 | if test -n "$GTK_CONFIG"; then | |
28230 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
28231 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
28232 | else | |
28233 | echo "$as_me:$LINENO: result: no" >&5 | |
28234 | echo "${ECHO_T}no" >&6 | |
28235 | fi | |
28236 | ||
28237 | min_gtk_version=1.2.3 | |
28238 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
28239 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
28240 | no_gtk="" | |
28241 | if test "$GTK_CONFIG" = "no" ; then | |
28242 | no_gtk=yes | |
28243 | else | |
28244 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
28245 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
28246 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
28247 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
28248 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
28249 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
28250 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
28251 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
28252 | if test "x$enable_gtktest" = "xyes" ; then | |
28253 | ac_save_CFLAGS="$CFLAGS" | |
28254 | ac_save_LIBS="$LIBS" | |
28255 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
28256 | LIBS="$GTK_LIBS $LIBS" | |
28257 | rm -f conf.gtktest | |
28258 | if test "$cross_compiling" = yes; then | |
28259 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
28260 | else | |
28261 | cat >conftest.$ac_ext <<_ACEOF | |
28262 | /* confdefs.h. */ | |
28263 | _ACEOF | |
28264 | cat confdefs.h >>conftest.$ac_ext | |
28265 | cat >>conftest.$ac_ext <<_ACEOF | |
28266 | /* end confdefs.h. */ | |
28267 | ||
28268 | #include <gtk/gtk.h> | |
28269 | #include <stdio.h> | |
28270 | #include <stdlib.h> | |
28271 | ||
28272 | int | |
28273 | main () | |
28274 | { | |
28275 | int major, minor, micro; | |
28276 | char *tmp_version; | |
28277 | ||
28278 | system ("touch conf.gtktest"); | |
28279 | ||
28280 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
28281 | tmp_version = g_strdup("$min_gtk_version"); | |
28282 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
28283 | printf("%s, bad version string\n", "$min_gtk_version"); | |
28284 | exit(1); | |
28285 | } | |
28286 | ||
28287 | if ((gtk_major_version != $gtk_config_major_version) || | |
28288 | (gtk_minor_version != $gtk_config_minor_version) || | |
28289 | (gtk_micro_version != $gtk_config_micro_version)) | |
28290 | { | |
28291 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
28292 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
28293 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28294 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
28295 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
28296 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
28297 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
28298 | printf("*** required on your system.\n"); | |
28299 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
28300 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
28301 | printf("*** before re-running configure\n"); | |
28302 | } | |
28303 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
28304 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
28305 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
28306 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
28307 | { | |
28308 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
28309 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
28310 | printf("*** library (version %d.%d.%d)\n", | |
28311 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28312 | } | |
28313 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
28314 | else | |
28315 | { | |
28316 | if ((gtk_major_version > major) || | |
28317 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
28318 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
28319 | { | |
28320 | return 0; | |
28321 | } | |
28322 | else | |
28323 | { | |
28324 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
28325 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
28326 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
28327 | major, minor, micro); | |
28328 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
28329 | printf("***\n"); | |
28330 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
28331 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
28332 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
28333 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
28334 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
28335 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
28336 | printf("*** so that the correct libraries are found at run-time))\n"); | |
28337 | } | |
28338 | } | |
28339 | return 1; | |
28340 | } | |
28341 | ||
28342 | _ACEOF | |
28343 | rm -f conftest$ac_exeext | |
28344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28345 | (eval $ac_link) 2>&5 | |
28346 | ac_status=$? | |
28347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28348 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
28349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28350 | (eval $ac_try) 2>&5 | |
28351 | ac_status=$? | |
28352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28353 | (exit $ac_status); }; }; then | |
28354 | : | |
28355 | else | |
28356 | echo "$as_me: program exited with status $ac_status" >&5 | |
28357 | echo "$as_me: failed program was:" >&5 | |
28358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28359 | ||
28360 | ( exit $ac_status ) | |
28361 | no_gtk=yes | |
28362 | fi | |
ac1cb8d3 | 28363 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28364 | fi |
28365 | CFLAGS="$ac_save_CFLAGS" | |
28366 | LIBS="$ac_save_LIBS" | |
28367 | fi | |
28368 | fi | |
28369 | if test "x$no_gtk" = x ; then | |
28370 | echo "$as_me:$LINENO: result: yes" >&5 | |
28371 | echo "${ECHO_T}yes" >&6 | |
28372 | wx_cv_lib_gtk=1.2.3 | |
28373 | else | |
28374 | echo "$as_me:$LINENO: result: no" >&5 | |
28375 | echo "${ECHO_T}no" >&6 | |
28376 | if test "$GTK_CONFIG" = "no" ; then | |
28377 | echo "*** The gtk-config script installed by GTK could not be found" | |
28378 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
28379 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
28380 | echo "*** full path to gtk-config." | |
28381 | else | |
28382 | if test -f conf.gtktest ; then | |
28383 | : | |
28384 | else | |
28385 | echo "*** Could not run GTK test program, checking why..." | |
28386 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
28387 | LIBS="$LIBS $GTK_LIBS" | |
28388 | cat >conftest.$ac_ext <<_ACEOF | |
28389 | /* confdefs.h. */ | |
28390 | _ACEOF | |
28391 | cat confdefs.h >>conftest.$ac_ext | |
28392 | cat >>conftest.$ac_ext <<_ACEOF | |
28393 | /* end confdefs.h. */ | |
28394 | ||
28395 | #include <gtk/gtk.h> | |
28396 | #include <stdio.h> | |
28397 | ||
28398 | int | |
28399 | main () | |
28400 | { | |
28401 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
28402 | ; | |
28403 | return 0; | |
28404 | } | |
28405 | _ACEOF | |
28406 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28408 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28409 | ac_status=$? |
ac1cb8d3 VS |
28410 | grep -v '^ *+' conftest.er1 >conftest.err |
28411 | rm -f conftest.er1 | |
28412 | cat conftest.err >&5 | |
a848cd7e SC |
28413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28414 | (exit $ac_status); } && | |
ca5c6ac3 | 28415 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28417 | (eval $ac_try) 2>&5 | |
28418 | ac_status=$? | |
28419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28420 | (exit $ac_status); }; } && | |
28421 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28423 | (eval $ac_try) 2>&5 | |
28424 | ac_status=$? | |
28425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28426 | (exit $ac_status); }; }; then | |
28427 | echo "*** The test program compiled, but did not run. This usually means" | |
28428 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
28429 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
28430 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
28431 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
28432 | echo "*** is required on your system" | |
28433 | echo "***" | |
28434 | echo "*** If you have an old version installed, it is best to remove it, although" | |
28435 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
28436 | echo "***" | |
28437 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
28438 | echo "*** came with the system with the command" | |
28439 | echo "***" | |
28440 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
28441 | else | |
28442 | echo "$as_me: failed program was:" >&5 | |
28443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28444 | ||
28445 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
28446 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
28447 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
28448 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
28449 | fi | |
ac1cb8d3 VS |
28450 | rm -f conftest.err conftest.$ac_objext \ |
28451 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28452 | CFLAGS="$ac_save_CFLAGS" |
28453 | LIBS="$ac_save_LIBS" | |
28454 | fi | |
28455 | fi | |
28456 | GTK_CFLAGS="" | |
28457 | GTK_LIBS="" | |
28458 | : | |
28459 | fi | |
28460 | ||
28461 | ||
28462 | rm -f conf.gtktest | |
28463 | ||
f34ca037 | 28464 | fi |
a848cd7e SC |
28465 | fi |
28466 | fi | |
28467 | ||
28468 | if test -z "$wx_cv_lib_gtk"; then | |
28469 | wx_cv_lib_gtk=none | |
28470 | else | |
28471 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 28472 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
28473 | fi |
28474 | ||
28475 | ||
28476 | fi | |
28477 | ||
28478 | ||
28479 | if test "$gtk_version_cached" = 1; then | |
28480 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
28481 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
28482 | fi | |
28483 | ||
28484 | case "$wx_cv_lib_gtk" in | |
28485 | 2.0) WXGTK20=1 | |
28486 | TOOLKIT_VERSION=2 | |
28487 | ;; | |
28488 | 1.2.7) WXGTK127=1 | |
28489 | WXGTK12=1 | |
28490 | ;; | |
28491 | 1.2.3) WXGTK12=1 | |
28492 | ;; | |
28493 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
28494 | The development files for GTK+ were not found. For GTK+ 2, please |
28495 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
28496 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
28497 | and that the version is 1.2.3 or above. Also check that the | |
28498 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
28499 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
28500 | " >&5 |
28501 | echo "$as_me: error: | |
f597b41c MW |
28502 | The development files for GTK+ were not found. For GTK+ 2, please |
28503 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
28504 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
28505 | and that the version is 1.2.3 or above. Also check that the | |
28506 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
28507 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
28508 | " >&2;} |
28509 | { (exit 1); exit 1; }; } | |
28510 | ;; | |
28511 | esac | |
28512 | ||
28513 | if test "$WXGTK20" = 1; then | |
6954625c | 28514 | save_CFLAGS="$CFLAGS" |
304205f1 | 28515 | save_LIBS="$LIBS" |
6954625c | 28516 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 28517 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 28518 | |
58e65954 MW |
28519 | echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5 |
28520 | echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6 | |
28521 | if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then | |
28522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28523 | else | |
28524 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
28525 | /* confdefs.h. */ |
28526 | _ACEOF | |
28527 | cat confdefs.h >>conftest.$ac_ext | |
28528 | cat >>conftest.$ac_ext <<_ACEOF | |
28529 | /* end confdefs.h. */ | |
58e65954 | 28530 | #include <gtk/gtk.h> |
304205f1 | 28531 | |
d12aef51 VZ |
28532 | int |
28533 | main () | |
28534 | { | |
58e65954 MW |
28535 | #ifndef gtk_icon_size_lookup |
28536 | char *p = (char *) gtk_icon_size_lookup; | |
28537 | #endif | |
abc736fd MW |
28538 | |
28539 | ; | |
28540 | return 0; | |
28541 | } | |
28542 | _ACEOF | |
28543 | rm -f conftest.$ac_objext | |
28544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28545 | (eval $ac_compile) 2>conftest.er1 | |
28546 | ac_status=$? | |
28547 | grep -v '^ *+' conftest.er1 >conftest.err | |
28548 | rm -f conftest.er1 | |
28549 | cat conftest.err >&5 | |
28550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28551 | (exit $ac_status); } && | |
ca5c6ac3 | 28552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
28553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28554 | (eval $ac_try) 2>&5 | |
28555 | ac_status=$? | |
28556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28557 | (exit $ac_status); }; } && | |
28558 | { ac_try='test -s conftest.$ac_objext' | |
28559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28560 | (eval $ac_try) 2>&5 | |
28561 | ac_status=$? | |
28562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28563 | (exit $ac_status); }; }; then | |
58e65954 | 28564 | ac_cv_have_decl_gtk_icon_size_lookup=yes |
abc736fd MW |
28565 | else |
28566 | echo "$as_me: failed program was:" >&5 | |
28567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28568 | ||
58e65954 MW |
28569 | ac_cv_have_decl_gtk_icon_size_lookup=no |
28570 | fi | |
28571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28572 | fi | |
28573 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5 | |
28574 | echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6 | |
28575 | if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then | |
abc736fd | 28576 | |
58e65954 MW |
28577 | cat >>confdefs.h <<_ACEOF |
28578 | #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1 | |
abc736fd MW |
28579 | _ACEOF |
28580 | ||
58e65954 MW |
28581 | |
28582 | else | |
28583 | cat >>confdefs.h <<_ACEOF | |
28584 | #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0 | |
28585 | _ACEOF | |
28586 | ||
28587 | cat >>confdefs.h <<\_ACEOF | |
28588 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
28589 | _ACEOF | |
abc736fd MW |
28590 | |
28591 | fi | |
58e65954 MW |
28592 | |
28593 | ||
abc736fd | 28594 | |
e9263684 VZ |
28595 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5 |
28596 | echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6 | |
28597 | cat >conftest.$ac_ext <<_ACEOF | |
28598 | /* confdefs.h. */ | |
28599 | _ACEOF | |
28600 | cat confdefs.h >>conftest.$ac_ext | |
28601 | cat >>conftest.$ac_ext <<_ACEOF | |
28602 | /* end confdefs.h. */ | |
28603 | ||
28604 | #include <gtk/gtk.h> | |
28605 | ||
28606 | int | |
28607 | main () | |
28608 | { | |
28609 | ||
28610 | #if !GTK_CHECK_VERSION(2,6,0) | |
28611 | Not GTK+ 2.6 | |
28612 | #endif | |
28613 | ||
28614 | ; | |
28615 | return 0; | |
28616 | } | |
28617 | _ACEOF | |
28618 | rm -f conftest.$ac_objext | |
28619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28620 | (eval $ac_compile) 2>conftest.er1 | |
28621 | ac_status=$? | |
28622 | grep -v '^ *+' conftest.er1 >conftest.err | |
28623 | rm -f conftest.er1 | |
28624 | cat conftest.err >&5 | |
28625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28626 | (exit $ac_status); } && | |
ca5c6ac3 | 28627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e9263684 VZ |
28628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28629 | (eval $ac_try) 2>&5 | |
28630 | ac_status=$? | |
28631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28632 | (exit $ac_status); }; } && | |
28633 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
28639 | ||
28640 | cat >>confdefs.h <<\_ACEOF | |
28641 | #define __WXGTK26__ 1 | |
28642 | _ACEOF | |
28643 | ||
28644 | cat >>confdefs.h <<\_ACEOF | |
28645 | #define __WXGTK24__ 1 | |
28646 | _ACEOF | |
28647 | ||
28648 | echo "$as_me:$LINENO: result: yes" >&5 | |
28649 | echo "${ECHO_T}yes" >&6 | |
28650 | ac_wxgtk26=1 | |
28651 | ||
28652 | else | |
28653 | echo "$as_me: failed program was:" >&5 | |
28654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28655 | ||
28656 | ||
28657 | echo "$as_me:$LINENO: result: no" >&5 | |
28658 | echo "${ECHO_T}no" >&6 | |
28659 | ac_wxgtk26=0 | |
28660 | ||
28661 | fi | |
28662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28663 | ||
28664 | if test "$ac_wxgtk26" = 0; then | |
9755e73b VS |
28665 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
28666 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
28667 | cat >conftest.$ac_ext <<_ACEOF | |
28668 | /* confdefs.h. */ | |
28669 | _ACEOF | |
28670 | cat confdefs.h >>conftest.$ac_ext | |
28671 | cat >>conftest.$ac_ext <<_ACEOF | |
28672 | /* end confdefs.h. */ | |
28673 | ||
28674 | #include <gtk/gtk.h> | |
28675 | ||
28676 | int | |
28677 | main () | |
28678 | { | |
28679 | ||
28680 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 28681 | Not GTK+ 2.4 |
9755e73b VS |
28682 | #endif |
28683 | ||
28684 | ; | |
28685 | return 0; | |
28686 | } | |
28687 | _ACEOF | |
28688 | rm -f conftest.$ac_objext | |
28689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28690 | (eval $ac_compile) 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); } && | |
ca5c6ac3 | 28697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b 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_objext' | |
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 | ||
28710 | cat >>confdefs.h <<\_ACEOF | |
28711 | #define __WXGTK24__ 1 | |
28712 | _ACEOF | |
28713 | ||
28714 | echo "$as_me:$LINENO: result: yes" >&5 | |
28715 | echo "${ECHO_T}yes" >&6 | |
28716 | ||
28717 | else | |
28718 | echo "$as_me: failed program was:" >&5 | |
28719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28720 | ||
28721 | ||
28722 | echo "$as_me:$LINENO: result: no" >&5 | |
28723 | echo "${ECHO_T}no" >&6 | |
28724 | ||
28725 | fi | |
28726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
e9263684 | 28727 | fi |
9755e73b | 28728 | |
6954625c | 28729 | CFLAGS="$save_CFLAGS" |
304205f1 | 28730 | LIBS="$save_LIBS" |
a848cd7e SC |
28731 | else |
28732 | if test "$wxUSE_UNICODE" = "yes"; then | |
28733 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
28734 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
28735 | wxUSE_UNICODE=no | |
28736 | fi | |
28737 | fi | |
28738 | ||
e56f4f9e VZ |
28739 | ac_ext=cc |
28740 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28741 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28742 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28743 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28744 | ||
28745 | ||
a848cd7e SC |
28746 | if test "$USE_DARWIN" != 1; then |
28747 | ||
28748 | for ac_func in poll | |
28749 | do | |
28750 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28751 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28752 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28753 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28755 | else | |
28756 | cat >conftest.$ac_ext <<_ACEOF | |
28757 | /* confdefs.h. */ | |
28758 | _ACEOF | |
28759 | cat confdefs.h >>conftest.$ac_ext | |
28760 | cat >>conftest.$ac_ext <<_ACEOF | |
28761 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28762 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28763 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28764 | #define $ac_func innocuous_$ac_func | |
28765 | ||
a848cd7e SC |
28766 | /* System header to define __stub macros and hopefully few prototypes, |
28767 | which can conflict with char $ac_func (); below. | |
28768 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28769 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28770 | |
a848cd7e SC |
28771 | #ifdef __STDC__ |
28772 | # include <limits.h> | |
28773 | #else | |
28774 | # include <assert.h> | |
28775 | #endif | |
ac1cb8d3 VS |
28776 | |
28777 | #undef $ac_func | |
28778 | ||
a848cd7e SC |
28779 | /* Override any gcc2 internal prototype to avoid an error. */ |
28780 | #ifdef __cplusplus | |
28781 | extern "C" | |
28782 | { | |
28783 | #endif | |
28784 | /* We use char because int might match the return type of a gcc2 | |
28785 | builtin and then its argument prototype would still apply. */ | |
28786 | char $ac_func (); | |
28787 | /* The GNU C library defines this for functions which it implements | |
28788 | to always fail with ENOSYS. Some functions are actually named | |
28789 | something starting with __ and the normal name is an alias. */ | |
28790 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28791 | choke me | |
28792 | #else | |
28793 | char (*f) () = $ac_func; | |
28794 | #endif | |
28795 | #ifdef __cplusplus | |
28796 | } | |
28797 | #endif | |
28798 | ||
28799 | int | |
28800 | main () | |
28801 | { | |
28802 | return f != $ac_func; | |
28803 | ; | |
28804 | return 0; | |
28805 | } | |
28806 | _ACEOF | |
28807 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28809 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28810 | ac_status=$? |
ac1cb8d3 VS |
28811 | grep -v '^ *+' conftest.er1 >conftest.err |
28812 | rm -f conftest.er1 | |
28813 | cat conftest.err >&5 | |
a848cd7e SC |
28814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28815 | (exit $ac_status); } && | |
ca5c6ac3 | 28816 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28818 | (eval $ac_try) 2>&5 | |
28819 | ac_status=$? | |
28820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28821 | (exit $ac_status); }; } && | |
28822 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28824 | (eval $ac_try) 2>&5 | |
28825 | ac_status=$? | |
28826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28827 | (exit $ac_status); }; }; then | |
28828 | eval "$as_ac_var=yes" | |
28829 | else | |
28830 | echo "$as_me: failed program was:" >&5 | |
28831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28832 | ||
28833 | eval "$as_ac_var=no" | |
28834 | fi | |
ac1cb8d3 VS |
28835 | rm -f conftest.err conftest.$ac_objext \ |
28836 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28837 | fi |
28838 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28839 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28840 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28841 | cat >>confdefs.h <<_ACEOF | |
28842 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28843 | _ACEOF | |
28844 | ||
28845 | fi | |
28846 | done | |
28847 | ||
28848 | fi | |
28849 | ||
28850 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
28851 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
28852 | ||
28853 | AFMINSTALL=afminstall | |
28854 | TOOLKIT=GTK | |
28855 | GUIDIST=GTK_DIST | |
28856 | ||
28857 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
28858 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
28859 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
28860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28861 | else | |
28862 | ac_check_lib_save_LIBS=$LIBS | |
28863 | LIBS="-lgdk $LIBS" | |
28864 | cat >conftest.$ac_ext <<_ACEOF | |
28865 | /* confdefs.h. */ | |
28866 | _ACEOF | |
28867 | cat confdefs.h >>conftest.$ac_ext | |
28868 | cat >>conftest.$ac_ext <<_ACEOF | |
28869 | /* end confdefs.h. */ | |
28870 | ||
28871 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28872 | #ifdef __cplusplus | |
28873 | extern "C" | |
28874 | #endif | |
28875 | /* We use char because int might match the return type of a gcc2 | |
28876 | builtin and then its argument prototype would still apply. */ | |
28877 | char gdk_im_open (); | |
28878 | int | |
28879 | main () | |
28880 | { | |
28881 | gdk_im_open (); | |
28882 | ; | |
28883 | return 0; | |
28884 | } | |
28885 | _ACEOF | |
28886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28888 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28889 | ac_status=$? |
ac1cb8d3 VS |
28890 | grep -v '^ *+' conftest.er1 >conftest.err |
28891 | rm -f conftest.er1 | |
28892 | cat conftest.err >&5 | |
a848cd7e SC |
28893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28894 | (exit $ac_status); } && | |
ca5c6ac3 | 28895 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28897 | (eval $ac_try) 2>&5 | |
28898 | ac_status=$? | |
28899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28900 | (exit $ac_status); }; } && | |
28901 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28903 | (eval $ac_try) 2>&5 | |
28904 | ac_status=$? | |
28905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28906 | (exit $ac_status); }; }; then | |
28907 | ac_cv_lib_gdk_gdk_im_open=yes | |
28908 | else | |
28909 | echo "$as_me: failed program was:" >&5 | |
28910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28911 | ||
28912 | ac_cv_lib_gdk_gdk_im_open=no | |
28913 | fi | |
ac1cb8d3 VS |
28914 | rm -f conftest.err conftest.$ac_objext \ |
28915 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28916 | LIBS=$ac_check_lib_save_LIBS |
28917 | fi | |
28918 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
28919 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
28920 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
28921 | cat >>confdefs.h <<\_ACEOF | |
28922 | #define HAVE_XIM 1 | |
28923 | _ACEOF | |
28924 | ||
28925 | fi | |
28926 | ||
28927 | ||
28928 | ||
28929 | if test "$wxUSE_GPE" = "yes"; then | |
28930 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
28931 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
28932 | ||
0ad5d837 VZ |
28933 | ac_find_libraries= |
28934 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 28935 | do |
3eca31dc | 28936 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
28937 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
28938 | ac_find_libraries=$ac_dir | |
28939 | break 2 | |
28940 | fi | |
28941 | done | |
28942 | done | |
28943 | ||
28944 | if test "$ac_find_libraries" != "" ; then | |
28945 | ||
0ad5d837 | 28946 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
28947 | ac_path_to_link="" |
28948 | else | |
0ad5d837 VZ |
28949 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
28950 | result=$? | |
28951 | if test $result = 0; then | |
28952 | ac_path_to_link="" | |
28953 | else | |
28954 | ac_path_to_link=" -L$ac_find_libraries" | |
28955 | fi | |
a848cd7e SC |
28956 | fi |
28957 | ||
28958 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
28959 | WXGPE=1 | |
0ad5d837 VZ |
28960 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
28961 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
28962 | else |
28963 | echo "$as_me:$LINENO: result: not found" >&5 | |
28964 | echo "${ECHO_T}not found" >&6 | |
28965 | fi | |
28966 | ||
28967 | fi | |
28968 | fi | |
28969 | ||
28970 | if test "$wxUSE_MGL" = 1; then | |
28971 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
28972 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
28973 | if test "x$MGL_ROOT" = x ; then | |
28974 | echo "$as_me:$LINENO: result: not found" >&5 | |
28975 | echo "${ECHO_T}not found" >&6 | |
28976 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
28977 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
28978 | { (exit 1); exit 1; }; } | |
28979 | else | |
28980 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
28981 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
28982 | fi | |
28983 | ||
28984 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
28985 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
28986 | case "${host}" in | |
28987 | *-*-linux* ) | |
28988 | if test "x$wxUSE_SHARED" = xyes ; then | |
28989 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
28990 | else | |
28991 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
28992 | fi | |
28993 | ;; | |
28994 | *-pc-msdosdjgpp ) | |
28995 | mgl_os_candidates="dos32/dj2" | |
28996 | ;; | |
28997 | *) | |
28998 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
28999 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
29000 | { (exit 1); exit 1; }; } | |
29001 | esac | |
29002 | ||
29003 | mgl_lib_type="" | |
29004 | mgl_os="" | |
29005 | ||
29006 | for mgl_os_i in $mgl_os_candidates ; do | |
29007 | if test "x$mgl_os" = x ; then | |
29008 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
29009 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
29010 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
29011 | mgl_lib_type=debug | |
29012 | mgl_os=$mgl_os_i | |
29013 | fi | |
29014 | fi | |
29015 | if test "x$mgl_lib_type" = x ; then | |
29016 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
29017 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
29018 | mgl_lib_type=release | |
29019 | mgl_os=$mgl_os_i | |
29020 | fi | |
29021 | fi | |
29022 | fi | |
29023 | done | |
29024 | ||
29025 | if test "x$mgl_os" = x ; then | |
29026 | echo "$as_me:$LINENO: result: not found" >&5 | |
29027 | echo "${ECHO_T}not found" >&6 | |
29028 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
29029 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
29030 | { (exit 1); exit 1; }; } | |
29031 | fi | |
29032 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
29033 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
29034 | ||
29035 | wxUSE_UNIVERSAL="yes" | |
29036 | ||
29037 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
29038 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
29039 | ||
29040 | AFMINSTALL=afminstall | |
29041 | TOOLKIT=MGL | |
29042 | GUIDIST=MGL_DIST | |
29043 | fi | |
29044 | ||
b3c86150 VS |
29045 | if test "$wxUSE_DFB" = 1; then |
29046 | ||
29047 | ||
29048 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
29049 | if test -n "$ac_tool_prefix"; then | |
29050 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
29051 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
29052 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29053 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29054 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29056 | else | |
29057 | case $PKG_CONFIG in | |
29058 | [\\/]* | ?:[\\/]*) | |
29059 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29060 | ;; | |
29061 | *) | |
29062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29063 | for as_dir in $PATH | |
29064 | do | |
29065 | IFS=$as_save_IFS | |
29066 | test -z "$as_dir" && as_dir=. | |
29067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29068 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29069 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29070 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29071 | break 2 | |
29072 | fi | |
29073 | done | |
29074 | done | |
29075 | ||
29076 | ;; | |
29077 | esac | |
29078 | fi | |
29079 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29080 | ||
29081 | if test -n "$PKG_CONFIG"; then | |
29082 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29083 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29084 | else | |
29085 | echo "$as_me:$LINENO: result: no" >&5 | |
29086 | echo "${ECHO_T}no" >&6 | |
29087 | fi | |
29088 | ||
29089 | fi | |
29090 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
29091 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
29092 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29093 | set dummy pkg-config; ac_word=$2 | |
29094 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29095 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29096 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | |
29097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29098 | else | |
29099 | case $ac_pt_PKG_CONFIG in | |
29100 | [\\/]* | ?:[\\/]*) | |
29101 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
29102 | ;; | |
29103 | *) | |
29104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29105 | for as_dir in $PATH | |
29106 | do | |
29107 | IFS=$as_save_IFS | |
29108 | test -z "$as_dir" && as_dir=. | |
29109 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29110 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29111 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29112 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29113 | break 2 | |
29114 | fi | |
29115 | done | |
29116 | done | |
29117 | ||
29118 | ;; | |
29119 | esac | |
29120 | fi | |
29121 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
29122 | ||
29123 | if test -n "$ac_pt_PKG_CONFIG"; then | |
29124 | echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | |
29125 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 | |
29126 | else | |
29127 | echo "$as_me:$LINENO: result: no" >&5 | |
29128 | echo "${ECHO_T}no" >&6 | |
29129 | fi | |
29130 | ||
29131 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
29132 | else | |
29133 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
29134 | fi | |
29135 | ||
29136 | fi | |
29137 | if test -n "$PKG_CONFIG"; then | |
29138 | _pkg_min_version=0.9.0 | |
29139 | echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | |
29140 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 | |
29141 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
29142 | echo "$as_me:$LINENO: result: yes" >&5 | |
29143 | echo "${ECHO_T}yes" >&6 | |
29144 | else | |
29145 | echo "$as_me:$LINENO: result: no" >&5 | |
29146 | echo "${ECHO_T}no" >&6 | |
29147 | PKG_CONFIG="" | |
29148 | fi | |
29149 | ||
29150 | fi | |
29151 | ||
29152 | pkg_failed=no | |
29153 | echo "$as_me:$LINENO: checking for DIRECTFB" >&5 | |
29154 | echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6 | |
29155 | ||
29156 | if test -n "$PKG_CONFIG"; then | |
29157 | if test -n "$DIRECTFB_CFLAGS"; then | |
29158 | pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS" | |
29159 | else | |
29160 | if test -n "$PKG_CONFIG" && \ | |
737d3175 VZ |
29161 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5 |
29162 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5 | |
b3c86150 VS |
29163 | ac_status=$? |
29164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29165 | (exit $ac_status); }; then | |
737d3175 | 29166 | pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null` |
b3c86150 VS |
29167 | else |
29168 | pkg_failed=yes | |
29169 | fi | |
29170 | fi | |
29171 | else | |
29172 | pkg_failed=untried | |
29173 | fi | |
29174 | if test -n "$PKG_CONFIG"; then | |
29175 | if test -n "$DIRECTFB_LIBS"; then | |
29176 | pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS" | |
29177 | else | |
29178 | if test -n "$PKG_CONFIG" && \ | |
737d3175 VZ |
29179 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5 |
29180 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5 | |
b3c86150 VS |
29181 | ac_status=$? |
29182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29183 | (exit $ac_status); }; then | |
737d3175 | 29184 | pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null` |
b3c86150 VS |
29185 | else |
29186 | pkg_failed=yes | |
29187 | fi | |
29188 | fi | |
29189 | else | |
29190 | pkg_failed=untried | |
29191 | fi | |
29192 | ||
29193 | ||
29194 | ||
29195 | if test $pkg_failed = yes; then | |
29196 | ||
29197 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
29198 | _pkg_short_errors_supported=yes | |
29199 | else | |
29200 | _pkg_short_errors_supported=no | |
29201 | fi | |
29202 | if test $_pkg_short_errors_supported = yes; then | |
737d3175 | 29203 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"` |
b3c86150 | 29204 | else |
737d3175 | 29205 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"` |
b3c86150 VS |
29206 | fi |
29207 | # Put the nasty error message in config.log where it belongs | |
29208 | echo "$DIRECTFB_PKG_ERRORS" >&5 | |
29209 | ||
29210 | ||
29211 | { { echo "$as_me:$LINENO: error: DirectFB not found." >&5 | |
29212 | echo "$as_me: error: DirectFB not found." >&2;} | |
29213 | { (exit 1); exit 1; }; } | |
29214 | ||
29215 | ||
29216 | elif test $pkg_failed = untried; then | |
29217 | ||
29218 | { { echo "$as_me:$LINENO: error: DirectFB not found." >&5 | |
29219 | echo "$as_me: error: DirectFB not found." >&2;} | |
29220 | { (exit 1); exit 1; }; } | |
29221 | ||
29222 | ||
29223 | else | |
29224 | DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS | |
29225 | DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS | |
29226 | echo "$as_me:$LINENO: result: yes" >&5 | |
29227 | echo "${ECHO_T}yes" >&6 | |
29228 | ||
29229 | wxUSE_UNIVERSAL="yes" | |
29230 | TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS" | |
29231 | GUI_TK_LIBRARY="$DIRECTFB_LIBS" | |
29232 | TOOLKIT=DFB | |
29233 | GUIDIST=DFB_DIST | |
29234 | ||
29235 | fi | |
29236 | fi | |
29237 | ||
a848cd7e SC |
29238 | if test "$wxUSE_MICROWIN" = 1; then |
29239 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
29240 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
29241 | if test "x$MICROWINDOWS" = x ; then | |
29242 | echo "$as_me:$LINENO: result: not found" >&5 | |
29243 | echo "${ECHO_T}not found" >&6 | |
29244 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
29245 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
29246 | { (exit 1); exit 1; }; } | |
29247 | else | |
29248 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
29249 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
29250 | fi | |
29251 | ||
29252 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
29253 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
29254 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
29255 | else | |
29256 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
29257 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
29258 | { (exit 1); exit 1; }; } | |
29259 | fi | |
29260 | ||
29261 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
29262 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
29263 | ||
29264 | wxUSE_UNIVERSAL="yes" | |
29265 | ||
29266 | AFMINSTALL=afminstall | |
29267 | TOOLKIT=MICROWIN | |
29268 | GUIDIST=MICROWIN_DIST | |
29269 | ||
29270 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
29271 | fi | |
29272 | ||
74b84332 | 29273 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
ca5c6ac3 VZ |
29274 | |
29275 | if test "x$ac_path_x_has_been_run" != xyes; then | |
29276 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
29277 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
29278 | ||
ca5c6ac3 | 29279 | ac_path_x_has_been_run=yes |
a848cd7e SC |
29280 | |
29281 | # Check whether --with-x or --without-x was given. | |
29282 | if test "${with_x+set}" = set; then | |
29283 | withval="$with_x" | |
29284 | ||
29285 | fi; | |
29286 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
29287 | if test "x$with_x" = xno; then | |
29288 | # The user explicitly disabled X. | |
29289 | have_x=disabled | |
29290 | else | |
29291 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
29292 | # Both variables are already set. | |
29293 | have_x=yes | |
29294 | else | |
29295 | if test "${ac_cv_have_x+set}" = set; then | |
29296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29297 | else | |
29298 | # One or both of the vars are not set, and there is no cached value. | |
29299 | ac_x_includes=no ac_x_libraries=no | |
29300 | rm -fr conftest.dir | |
29301 | if mkdir conftest.dir; then | |
29302 | cd conftest.dir | |
29303 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
29304 | cat >Imakefile <<'_ACEOF' | |
29305 | acfindx: | |
29306 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
29307 | _ACEOF | |
29308 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
29309 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
29310 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
29311 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
29312 | for ac_extension in a so sl; do | |
29313 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
29314 | test -f $ac_im_libdir/libX11.$ac_extension; then |
29315 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
29316 | fi |
29317 | done | |
29318 | # Screen out bogus values from the imake configuration. They are | |
29319 | # bogus both because they are the default anyway, and because | |
29320 | # using them would break gcc on systems where it needs fixed includes. | |
29321 | case $ac_im_incroot in | |
29322 | /usr/include) ;; | |
29323 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
29324 | esac | |
29325 | case $ac_im_usrlibdir in | |
29326 | /usr/lib | /lib) ;; | |
29327 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
29328 | esac | |
29329 | fi | |
29330 | cd .. | |
29331 | rm -fr conftest.dir | |
29332 | fi | |
29333 | ||
29334 | # Standard set of common directories for X headers. | |
29335 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
29336 | ac_x_header_dirs=' | |
29337 | /usr/X11/include | |
29338 | /usr/X11R6/include | |
29339 | /usr/X11R5/include | |
29340 | /usr/X11R4/include | |
29341 | ||
29342 | /usr/include/X11 | |
29343 | /usr/include/X11R6 | |
29344 | /usr/include/X11R5 | |
29345 | /usr/include/X11R4 | |
29346 | ||
29347 | /usr/local/X11/include | |
29348 | /usr/local/X11R6/include | |
29349 | /usr/local/X11R5/include | |
29350 | /usr/local/X11R4/include | |
29351 | ||
29352 | /usr/local/include/X11 | |
29353 | /usr/local/include/X11R6 | |
29354 | /usr/local/include/X11R5 | |
29355 | /usr/local/include/X11R4 | |
29356 | ||
29357 | /usr/X386/include | |
29358 | /usr/x386/include | |
29359 | /usr/XFree86/include/X11 | |
29360 | ||
29361 | /usr/include | |
29362 | /usr/local/include | |
29363 | /usr/unsupported/include | |
29364 | /usr/athena/include | |
29365 | /usr/local/x11r5/include | |
29366 | /usr/lpp/Xamples/include | |
29367 | ||
29368 | /usr/openwin/include | |
29369 | /usr/openwin/share/include' | |
29370 | ||
29371 | if test "$ac_x_includes" = no; then | |
ca5c6ac3 | 29372 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
29373 | # First, try using that file with no special directory specified. |
29374 | cat >conftest.$ac_ext <<_ACEOF | |
29375 | /* confdefs.h. */ | |
29376 | _ACEOF | |
29377 | cat confdefs.h >>conftest.$ac_ext | |
29378 | cat >>conftest.$ac_ext <<_ACEOF | |
29379 | /* end confdefs.h. */ | |
ca5c6ac3 | 29380 | #include <X11/Xlib.h> |
a848cd7e SC |
29381 | _ACEOF |
29382 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29383 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29384 | ac_status=$? | |
29385 | grep -v '^ *+' conftest.er1 >conftest.err | |
29386 | rm -f conftest.er1 | |
29387 | cat conftest.err >&5 | |
29388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29389 | (exit $ac_status); } >/dev/null; then | |
29390 | if test -s conftest.err; then | |
5d7b7554 VZ |
29391 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
29392 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
29393 | else |
29394 | ac_cpp_err= | |
29395 | fi | |
29396 | else | |
29397 | ac_cpp_err=yes | |
29398 | fi | |
29399 | if test -z "$ac_cpp_err"; then | |
29400 | # We can compile using X headers with no special include directory. | |
29401 | ac_x_includes= | |
29402 | else | |
29403 | echo "$as_me: failed program was:" >&5 | |
29404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29405 | ||
29406 | for ac_dir in $ac_x_header_dirs; do | |
ca5c6ac3 | 29407 | if test -r "$ac_dir/X11/Xlib.h"; then |
a848cd7e SC |
29408 | ac_x_includes=$ac_dir |
29409 | break | |
29410 | fi | |
29411 | done | |
29412 | fi | |
29413 | rm -f conftest.err conftest.$ac_ext | |
29414 | fi # $ac_x_includes = no | |
29415 | ||
29416 | if test "$ac_x_libraries" = no; then | |
29417 | # Check for the libraries. | |
29418 | # See if we find them without any special options. | |
29419 | # Don't add to $LIBS permanently. | |
29420 | ac_save_LIBS=$LIBS | |
ca5c6ac3 | 29421 | LIBS="-lX11 $LIBS" |
a848cd7e SC |
29422 | cat >conftest.$ac_ext <<_ACEOF |
29423 | /* confdefs.h. */ | |
29424 | _ACEOF | |
29425 | cat confdefs.h >>conftest.$ac_ext | |
29426 | cat >>conftest.$ac_ext <<_ACEOF | |
29427 | /* end confdefs.h. */ | |
ca5c6ac3 | 29428 | #include <X11/Xlib.h> |
a848cd7e SC |
29429 | int |
29430 | main () | |
29431 | { | |
ca5c6ac3 | 29432 | XrmInitialize () |
a848cd7e SC |
29433 | ; |
29434 | return 0; | |
29435 | } | |
29436 | _ACEOF | |
29437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29439 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29440 | ac_status=$? |
ac1cb8d3 VS |
29441 | grep -v '^ *+' conftest.er1 >conftest.err |
29442 | rm -f conftest.er1 | |
29443 | cat conftest.err >&5 | |
a848cd7e SC |
29444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29445 | (exit $ac_status); } && | |
ca5c6ac3 | 29446 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29448 | (eval $ac_try) 2>&5 | |
29449 | ac_status=$? | |
29450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29451 | (exit $ac_status); }; } && | |
29452 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29454 | (eval $ac_try) 2>&5 | |
29455 | ac_status=$? | |
29456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29457 | (exit $ac_status); }; }; then | |
29458 | LIBS=$ac_save_LIBS | |
29459 | # We can link X programs with no special library path. | |
29460 | ac_x_libraries= | |
29461 | else | |
29462 | echo "$as_me: failed program was:" >&5 | |
29463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29464 | ||
29465 | LIBS=$ac_save_LIBS | |
29466 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
29467 | do | |
29468 | # Don't even attempt the hair of trying to link an X program! | |
29469 | for ac_extension in a so sl; do | |
ca5c6ac3 | 29470 | if test -r $ac_dir/libX11.$ac_extension; then |
a848cd7e SC |
29471 | ac_x_libraries=$ac_dir |
29472 | break 2 | |
29473 | fi | |
29474 | done | |
29475 | done | |
29476 | fi | |
ac1cb8d3 VS |
29477 | rm -f conftest.err conftest.$ac_objext \ |
29478 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29479 | fi # $ac_x_libraries = no |
29480 | ||
29481 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
29482 | # Didn't find X anywhere. Cache the known absence of X. | |
29483 | ac_cv_have_x="have_x=no" | |
29484 | else | |
29485 | # Record where we found X for the cache. | |
29486 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 29487 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
29488 | fi |
29489 | fi | |
29490 | ||
29491 | fi | |
29492 | eval "$ac_cv_have_x" | |
29493 | fi # $with_x != no | |
29494 | ||
29495 | if test "$have_x" != yes; then | |
29496 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
29497 | echo "${ECHO_T}$have_x" >&6 | |
29498 | no_x=yes | |
29499 | else | |
29500 | # If each of the values was on the command line, it overrides each guess. | |
29501 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
29502 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
29503 | # Update the cache value to reflect the command line values. | |
29504 | ac_cv_have_x="have_x=yes \ | |
29505 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
ca5c6ac3 VZ |
29506 | # It might be that x_includes is empty (headers are found in the |
29507 | # standard search path. Then output the corresponding message | |
29508 | ac_out_x_includes=$x_includes | |
29509 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
29510 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
29511 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
29512 | fi |
29513 | ||
ca5c6ac3 | 29514 | fi |
a848cd7e SC |
29515 | if test "$no_x" = yes; then |
29516 | # Not all programs may use this symbol, but it does not hurt to define it. | |
29517 | ||
29518 | cat >>confdefs.h <<\_ACEOF | |
29519 | #define X_DISPLAY_MISSING 1 | |
29520 | _ACEOF | |
29521 | ||
29522 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
29523 | else | |
29524 | if test -n "$x_includes"; then | |
29525 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
29526 | fi | |
29527 | ||
29528 | # It would also be nice to do this for all -L options, not just this one. | |
29529 | if test -n "$x_libraries"; then | |
29530 | X_LIBS="$X_LIBS -L$x_libraries" | |
29531 | # For Solaris; some versions of Sun CC require a space after -R and | |
29532 | # others require no space. Words are not sufficient . . . . | |
29533 | case `(uname -sr) 2>/dev/null` in | |
29534 | "SunOS 5"*) | |
29535 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
29536 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
29537 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
29538 | cat >conftest.$ac_ext <<_ACEOF | |
29539 | /* confdefs.h. */ | |
29540 | _ACEOF | |
29541 | cat confdefs.h >>conftest.$ac_ext | |
29542 | cat >>conftest.$ac_ext <<_ACEOF | |
29543 | /* end confdefs.h. */ | |
29544 | ||
29545 | int | |
29546 | main () | |
29547 | { | |
29548 | ||
29549 | ; | |
29550 | return 0; | |
29551 | } | |
29552 | _ACEOF | |
29553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29555 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29556 | ac_status=$? |
ac1cb8d3 VS |
29557 | grep -v '^ *+' conftest.er1 >conftest.err |
29558 | rm -f conftest.er1 | |
29559 | cat conftest.err >&5 | |
a848cd7e SC |
29560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29561 | (exit $ac_status); } && | |
ca5c6ac3 | 29562 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29564 | (eval $ac_try) 2>&5 | |
29565 | ac_status=$? | |
29566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29567 | (exit $ac_status); }; } && | |
29568 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29570 | (eval $ac_try) 2>&5 | |
29571 | ac_status=$? | |
29572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29573 | (exit $ac_status); }; }; then | |
29574 | ac_R_nospace=yes | |
29575 | else | |
29576 | echo "$as_me: failed program was:" >&5 | |
29577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29578 | ||
29579 | ac_R_nospace=no | |
29580 | fi | |
ac1cb8d3 VS |
29581 | rm -f conftest.err conftest.$ac_objext \ |
29582 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29583 | if test $ac_R_nospace = yes; then |
29584 | echo "$as_me:$LINENO: result: no" >&5 | |
29585 | echo "${ECHO_T}no" >&6 | |
29586 | X_LIBS="$X_LIBS -R$x_libraries" | |
29587 | else | |
29588 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
29589 | cat >conftest.$ac_ext <<_ACEOF | |
29590 | /* confdefs.h. */ | |
29591 | _ACEOF | |
29592 | cat confdefs.h >>conftest.$ac_ext | |
29593 | cat >>conftest.$ac_ext <<_ACEOF | |
29594 | /* end confdefs.h. */ | |
29595 | ||
29596 | int | |
29597 | main () | |
29598 | { | |
29599 | ||
29600 | ; | |
29601 | return 0; | |
29602 | } | |
29603 | _ACEOF | |
29604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29606 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29607 | ac_status=$? |
ac1cb8d3 VS |
29608 | grep -v '^ *+' conftest.er1 >conftest.err |
29609 | rm -f conftest.er1 | |
29610 | cat conftest.err >&5 | |
a848cd7e SC |
29611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29612 | (exit $ac_status); } && | |
ca5c6ac3 | 29613 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29615 | (eval $ac_try) 2>&5 | |
29616 | ac_status=$? | |
29617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29618 | (exit $ac_status); }; } && | |
29619 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29621 | (eval $ac_try) 2>&5 | |
29622 | ac_status=$? | |
29623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29624 | (exit $ac_status); }; }; then | |
29625 | ac_R_space=yes | |
29626 | else | |
29627 | echo "$as_me: failed program was:" >&5 | |
29628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29629 | ||
29630 | ac_R_space=no | |
29631 | fi | |
ac1cb8d3 VS |
29632 | rm -f conftest.err conftest.$ac_objext \ |
29633 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29634 | if test $ac_R_space = yes; then |
29635 | echo "$as_me:$LINENO: result: yes" >&5 | |
29636 | echo "${ECHO_T}yes" >&6 | |
29637 | X_LIBS="$X_LIBS -R $x_libraries" | |
29638 | else | |
29639 | echo "$as_me:$LINENO: result: neither works" >&5 | |
29640 | echo "${ECHO_T}neither works" >&6 | |
29641 | fi | |
29642 | fi | |
29643 | LIBS=$ac_xsave_LIBS | |
29644 | esac | |
29645 | fi | |
29646 | ||
29647 | # Check for system-dependent libraries X programs must link with. | |
29648 | # Do this before checking for the system-independent R6 libraries | |
29649 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
29650 | ||
29651 | if test "$ISC" = yes; then | |
29652 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
29653 | else | |
29654 | # Martyn Johnson says this is needed for Ultrix, if the X | |
29655 | # libraries were built with DECnet support. And Karl Berry says | |
29656 | # the Alpha needs dnet_stub (dnet does not exist). | |
29657 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
29658 | cat >conftest.$ac_ext <<_ACEOF | |
29659 | /* confdefs.h. */ | |
29660 | _ACEOF | |
29661 | cat confdefs.h >>conftest.$ac_ext | |
29662 | cat >>conftest.$ac_ext <<_ACEOF | |
29663 | /* end confdefs.h. */ | |
29664 | ||
29665 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29666 | #ifdef __cplusplus | |
29667 | extern "C" | |
29668 | #endif | |
29669 | /* We use char because int might match the return type of a gcc2 | |
29670 | builtin and then its argument prototype would still apply. */ | |
29671 | char XOpenDisplay (); | |
29672 | int | |
29673 | main () | |
29674 | { | |
29675 | XOpenDisplay (); | |
29676 | ; | |
29677 | return 0; | |
29678 | } | |
29679 | _ACEOF | |
29680 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29682 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29683 | ac_status=$? |
ac1cb8d3 VS |
29684 | grep -v '^ *+' conftest.er1 >conftest.err |
29685 | rm -f conftest.er1 | |
29686 | cat conftest.err >&5 | |
a848cd7e SC |
29687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29688 | (exit $ac_status); } && | |
ca5c6ac3 | 29689 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29691 | (eval $ac_try) 2>&5 | |
29692 | ac_status=$? | |
29693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29694 | (exit $ac_status); }; } && | |
29695 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29697 | (eval $ac_try) 2>&5 | |
29698 | ac_status=$? | |
29699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29700 | (exit $ac_status); }; }; then | |
29701 | : | |
29702 | else | |
29703 | echo "$as_me: failed program was:" >&5 | |
29704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29705 | ||
29706 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
29707 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
29708 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
29709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29710 | else | |
29711 | ac_check_lib_save_LIBS=$LIBS | |
29712 | LIBS="-ldnet $LIBS" | |
29713 | cat >conftest.$ac_ext <<_ACEOF | |
29714 | /* confdefs.h. */ | |
29715 | _ACEOF | |
29716 | cat confdefs.h >>conftest.$ac_ext | |
29717 | cat >>conftest.$ac_ext <<_ACEOF | |
29718 | /* end confdefs.h. */ | |
29719 | ||
29720 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29721 | #ifdef __cplusplus | |
29722 | extern "C" | |
29723 | #endif | |
29724 | /* We use char because int might match the return type of a gcc2 | |
29725 | builtin and then its argument prototype would still apply. */ | |
29726 | char dnet_ntoa (); | |
29727 | int | |
29728 | main () | |
29729 | { | |
29730 | dnet_ntoa (); | |
29731 | ; | |
29732 | return 0; | |
29733 | } | |
29734 | _ACEOF | |
29735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29737 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29738 | ac_status=$? |
ac1cb8d3 VS |
29739 | grep -v '^ *+' conftest.er1 >conftest.err |
29740 | rm -f conftest.er1 | |
29741 | cat conftest.err >&5 | |
a848cd7e SC |
29742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29743 | (exit $ac_status); } && | |
ca5c6ac3 | 29744 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29746 | (eval $ac_try) 2>&5 | |
29747 | ac_status=$? | |
29748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29749 | (exit $ac_status); }; } && | |
29750 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29752 | (eval $ac_try) 2>&5 | |
29753 | ac_status=$? | |
29754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29755 | (exit $ac_status); }; }; then | |
29756 | ac_cv_lib_dnet_dnet_ntoa=yes | |
29757 | else | |
29758 | echo "$as_me: failed program was:" >&5 | |
29759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29760 | ||
29761 | ac_cv_lib_dnet_dnet_ntoa=no | |
29762 | fi | |
ac1cb8d3 VS |
29763 | rm -f conftest.err conftest.$ac_objext \ |
29764 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29765 | LIBS=$ac_check_lib_save_LIBS |
29766 | fi | |
29767 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
29768 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
29769 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
29770 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
29771 | fi | |
29772 | ||
29773 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
29774 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
29775 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
29776 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
29777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29778 | else | |
29779 | ac_check_lib_save_LIBS=$LIBS | |
29780 | LIBS="-ldnet_stub $LIBS" | |
29781 | cat >conftest.$ac_ext <<_ACEOF | |
29782 | /* confdefs.h. */ | |
29783 | _ACEOF | |
29784 | cat confdefs.h >>conftest.$ac_ext | |
29785 | cat >>conftest.$ac_ext <<_ACEOF | |
29786 | /* end confdefs.h. */ | |
29787 | ||
29788 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29789 | #ifdef __cplusplus | |
29790 | extern "C" | |
29791 | #endif | |
29792 | /* We use char because int might match the return type of a gcc2 | |
29793 | builtin and then its argument prototype would still apply. */ | |
29794 | char dnet_ntoa (); | |
29795 | int | |
29796 | main () | |
29797 | { | |
29798 | dnet_ntoa (); | |
29799 | ; | |
29800 | return 0; | |
29801 | } | |
29802 | _ACEOF | |
29803 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29805 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29806 | ac_status=$? |
ac1cb8d3 VS |
29807 | grep -v '^ *+' conftest.er1 >conftest.err |
29808 | rm -f conftest.er1 | |
29809 | cat conftest.err >&5 | |
a848cd7e SC |
29810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29811 | (exit $ac_status); } && | |
ca5c6ac3 | 29812 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29814 | (eval $ac_try) 2>&5 | |
29815 | ac_status=$? | |
29816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29817 | (exit $ac_status); }; } && | |
29818 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29820 | (eval $ac_try) 2>&5 | |
29821 | ac_status=$? | |
29822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29823 | (exit $ac_status); }; }; then | |
29824 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
29825 | else | |
29826 | echo "$as_me: failed program was:" >&5 | |
29827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29828 | ||
29829 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
29830 | fi | |
ac1cb8d3 VS |
29831 | rm -f conftest.err conftest.$ac_objext \ |
29832 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29833 | LIBS=$ac_check_lib_save_LIBS |
29834 | fi | |
29835 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
29836 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
29837 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
29838 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
29839 | fi | |
29840 | ||
29841 | fi | |
29842 | fi | |
ac1cb8d3 VS |
29843 | rm -f conftest.err conftest.$ac_objext \ |
29844 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29845 | LIBS="$ac_xsave_LIBS" |
29846 | ||
29847 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
29848 | # to get the SysV transport functions. | |
29849 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
29850 | # needs -lnsl. | |
29851 | # The nsl library prevents programs from opening the X display | |
29852 | # on Irix 5.2, according to T.E. Dickey. | |
29853 | # The functions gethostbyname, getservbyname, and inet_addr are | |
29854 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
29855 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
29856 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
29857 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
29858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29859 | else | |
29860 | cat >conftest.$ac_ext <<_ACEOF | |
29861 | /* confdefs.h. */ | |
29862 | _ACEOF | |
29863 | cat confdefs.h >>conftest.$ac_ext | |
29864 | cat >>conftest.$ac_ext <<_ACEOF | |
29865 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29866 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
29867 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29868 | #define gethostbyname innocuous_gethostbyname | |
29869 | ||
a848cd7e SC |
29870 | /* System header to define __stub macros and hopefully few prototypes, |
29871 | which can conflict with char gethostbyname (); below. | |
29872 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29873 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29874 | |
a848cd7e SC |
29875 | #ifdef __STDC__ |
29876 | # include <limits.h> | |
29877 | #else | |
29878 | # include <assert.h> | |
29879 | #endif | |
ac1cb8d3 VS |
29880 | |
29881 | #undef gethostbyname | |
29882 | ||
a848cd7e SC |
29883 | /* Override any gcc2 internal prototype to avoid an error. */ |
29884 | #ifdef __cplusplus | |
29885 | extern "C" | |
29886 | { | |
29887 | #endif | |
29888 | /* We use char because int might match the return type of a gcc2 | |
29889 | builtin and then its argument prototype would still apply. */ | |
29890 | char gethostbyname (); | |
29891 | /* The GNU C library defines this for functions which it implements | |
29892 | to always fail with ENOSYS. Some functions are actually named | |
29893 | something starting with __ and the normal name is an alias. */ | |
29894 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
29895 | choke me | |
29896 | #else | |
29897 | char (*f) () = gethostbyname; | |
29898 | #endif | |
29899 | #ifdef __cplusplus | |
29900 | } | |
29901 | #endif | |
29902 | ||
29903 | int | |
29904 | main () | |
29905 | { | |
29906 | return f != gethostbyname; | |
29907 | ; | |
29908 | return 0; | |
29909 | } | |
29910 | _ACEOF | |
29911 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29913 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29914 | ac_status=$? |
ac1cb8d3 VS |
29915 | grep -v '^ *+' conftest.er1 >conftest.err |
29916 | rm -f conftest.er1 | |
29917 | cat conftest.err >&5 | |
a848cd7e SC |
29918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29919 | (exit $ac_status); } && | |
ca5c6ac3 | 29920 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29922 | (eval $ac_try) 2>&5 | |
29923 | ac_status=$? | |
29924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29925 | (exit $ac_status); }; } && | |
29926 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29928 | (eval $ac_try) 2>&5 | |
29929 | ac_status=$? | |
29930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29931 | (exit $ac_status); }; }; then | |
29932 | ac_cv_func_gethostbyname=yes | |
29933 | else | |
29934 | echo "$as_me: failed program was:" >&5 | |
29935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29936 | ||
29937 | ac_cv_func_gethostbyname=no | |
29938 | fi | |
ac1cb8d3 VS |
29939 | rm -f conftest.err conftest.$ac_objext \ |
29940 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29941 | fi |
29942 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
29943 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
29944 | ||
29945 | if test $ac_cv_func_gethostbyname = no; then | |
29946 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
29947 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
29948 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
29949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29950 | else | |
29951 | ac_check_lib_save_LIBS=$LIBS | |
29952 | LIBS="-lnsl $LIBS" | |
29953 | cat >conftest.$ac_ext <<_ACEOF | |
29954 | /* confdefs.h. */ | |
29955 | _ACEOF | |
29956 | cat confdefs.h >>conftest.$ac_ext | |
29957 | cat >>conftest.$ac_ext <<_ACEOF | |
29958 | /* end confdefs.h. */ | |
29959 | ||
29960 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29961 | #ifdef __cplusplus | |
29962 | extern "C" | |
29963 | #endif | |
29964 | /* We use char because int might match the return type of a gcc2 | |
29965 | builtin and then its argument prototype would still apply. */ | |
29966 | char gethostbyname (); | |
29967 | int | |
29968 | main () | |
29969 | { | |
29970 | gethostbyname (); | |
29971 | ; | |
29972 | return 0; | |
29973 | } | |
29974 | _ACEOF | |
29975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
29977 | (eval $ac_link) 2>conftest.er1 |
29978 | ac_status=$? | |
29979 | grep -v '^ *+' conftest.er1 >conftest.err | |
29980 | rm -f conftest.er1 | |
29981 | cat conftest.err >&5 | |
29982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29983 | (exit $ac_status); } && | |
ca5c6ac3 | 29984 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29986 | (eval $ac_try) 2>&5 | |
29987 | ac_status=$? | |
29988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29989 | (exit $ac_status); }; } && | |
29990 | { ac_try='test -s conftest$ac_exeext' | |
29991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29992 | (eval $ac_try) 2>&5 | |
29993 | ac_status=$? | |
29994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29995 | (exit $ac_status); }; }; then | |
29996 | ac_cv_lib_nsl_gethostbyname=yes | |
29997 | else | |
29998 | echo "$as_me: failed program was:" >&5 | |
29999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30000 | ||
30001 | ac_cv_lib_nsl_gethostbyname=no | |
30002 | fi | |
30003 | rm -f conftest.err conftest.$ac_objext \ | |
30004 | conftest$ac_exeext conftest.$ac_ext | |
30005 | LIBS=$ac_check_lib_save_LIBS | |
30006 | fi | |
30007 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
30008 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
30009 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
30010 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
30011 | fi | |
30012 | ||
30013 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
30014 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
30015 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
30016 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
30017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30018 | else | |
30019 | ac_check_lib_save_LIBS=$LIBS | |
30020 | LIBS="-lbsd $LIBS" | |
30021 | cat >conftest.$ac_ext <<_ACEOF | |
30022 | /* confdefs.h. */ | |
30023 | _ACEOF | |
30024 | cat confdefs.h >>conftest.$ac_ext | |
30025 | cat >>conftest.$ac_ext <<_ACEOF | |
30026 | /* end confdefs.h. */ | |
30027 | ||
30028 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30029 | #ifdef __cplusplus | |
30030 | extern "C" | |
30031 | #endif | |
30032 | /* We use char because int might match the return type of a gcc2 | |
30033 | builtin and then its argument prototype would still apply. */ | |
30034 | char gethostbyname (); | |
30035 | int | |
30036 | main () | |
30037 | { | |
30038 | gethostbyname (); | |
30039 | ; | |
30040 | return 0; | |
30041 | } | |
30042 | _ACEOF | |
30043 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30045 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 30046 | ac_status=$? |
ac1cb8d3 VS |
30047 | grep -v '^ *+' conftest.er1 >conftest.err |
30048 | rm -f conftest.er1 | |
30049 | cat conftest.err >&5 | |
a848cd7e SC |
30050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30051 | (exit $ac_status); } && | |
ca5c6ac3 | 30052 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
30053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30054 | (eval $ac_try) 2>&5 | |
30055 | ac_status=$? | |
30056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
30057 | (exit $ac_status); }; } && |
30058 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30060 | (eval $ac_try) 2>&5 | |
30061 | ac_status=$? | |
30062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30063 | (exit $ac_status); }; }; then | |
30064 | ac_cv_lib_bsd_gethostbyname=yes | |
30065 | else | |
30066 | echo "$as_me: failed program was:" >&5 | |
30067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30068 | ||
30069 | ac_cv_lib_bsd_gethostbyname=no | |
30070 | fi | |
ac1cb8d3 VS |
30071 | rm -f conftest.err conftest.$ac_objext \ |
30072 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30073 | LIBS=$ac_check_lib_save_LIBS |
30074 | fi | |
30075 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
30076 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
30077 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
30078 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
30079 | fi | |
30080 | ||
30081 | fi | |
30082 | fi | |
30083 | ||
30084 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
30085 | # socket/setsockopt and other routines are undefined under SCO ODT | |
30086 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
30087 | # on later versions), says Simon Leinen: it contains gethostby* | |
30088 | # variants that don't use the name server (or something). -lsocket | |
30089 | # must be given before -lnsl if both are needed. We assume that | |
30090 | # if connect needs -lnsl, so does gethostbyname. | |
30091 | echo "$as_me:$LINENO: checking for connect" >&5 | |
30092 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
30093 | if test "${ac_cv_func_connect+set}" = set; then | |
30094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30095 | else | |
30096 | cat >conftest.$ac_ext <<_ACEOF | |
30097 | /* confdefs.h. */ | |
30098 | _ACEOF | |
30099 | cat confdefs.h >>conftest.$ac_ext | |
30100 | cat >>conftest.$ac_ext <<_ACEOF | |
30101 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30102 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
30103 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30104 | #define connect innocuous_connect | |
30105 | ||
a848cd7e SC |
30106 | /* System header to define __stub macros and hopefully few prototypes, |
30107 | which can conflict with char connect (); below. | |
30108 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30109 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30110 | |
a848cd7e SC |
30111 | #ifdef __STDC__ |
30112 | # include <limits.h> | |
30113 | #else | |
30114 | # include <assert.h> | |
30115 | #endif | |
ac1cb8d3 VS |
30116 | |
30117 | #undef connect | |
30118 | ||
a848cd7e SC |
30119 | /* Override any gcc2 internal prototype to avoid an error. */ |
30120 | #ifdef __cplusplus | |
30121 | extern "C" | |
30122 | { | |
30123 | #endif | |
30124 | /* We use char because int might match the return type of a gcc2 | |
30125 | builtin and then its argument prototype would still apply. */ | |
30126 | char connect (); | |
30127 | /* The GNU C library defines this for functions which it implements | |
30128 | to always fail with ENOSYS. Some functions are actually named | |
30129 | something starting with __ and the normal name is an alias. */ | |
30130 | #if defined (__stub_connect) || defined (__stub___connect) | |
30131 | choke me | |
30132 | #else | |
30133 | char (*f) () = connect; | |
30134 | #endif | |
30135 | #ifdef __cplusplus | |
30136 | } | |
30137 | #endif | |
30138 | ||
30139 | int | |
30140 | main () | |
30141 | { | |
30142 | return f != connect; | |
30143 | ; | |
30144 | return 0; | |
30145 | } | |
30146 | _ACEOF | |
30147 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30149 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30150 | ac_status=$? |
ac1cb8d3 VS |
30151 | grep -v '^ *+' conftest.er1 >conftest.err |
30152 | rm -f conftest.er1 | |
30153 | cat conftest.err >&5 | |
a848cd7e SC |
30154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30155 | (exit $ac_status); } && | |
ca5c6ac3 | 30156 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30158 | (eval $ac_try) 2>&5 | |
30159 | ac_status=$? | |
30160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30161 | (exit $ac_status); }; } && | |
30162 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30164 | (eval $ac_try) 2>&5 | |
30165 | ac_status=$? | |
30166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30167 | (exit $ac_status); }; }; then | |
30168 | ac_cv_func_connect=yes | |
30169 | else | |
30170 | echo "$as_me: failed program was:" >&5 | |
30171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30172 | ||
30173 | ac_cv_func_connect=no | |
30174 | fi | |
ac1cb8d3 VS |
30175 | rm -f conftest.err conftest.$ac_objext \ |
30176 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30177 | fi |
30178 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
30179 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
30180 | ||
30181 | if test $ac_cv_func_connect = no; then | |
30182 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
30183 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
30184 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
30185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30186 | else | |
30187 | ac_check_lib_save_LIBS=$LIBS | |
30188 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
30189 | cat >conftest.$ac_ext <<_ACEOF | |
30190 | /* confdefs.h. */ | |
30191 | _ACEOF | |
30192 | cat confdefs.h >>conftest.$ac_ext | |
30193 | cat >>conftest.$ac_ext <<_ACEOF | |
30194 | /* end confdefs.h. */ | |
30195 | ||
30196 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30197 | #ifdef __cplusplus | |
30198 | extern "C" | |
30199 | #endif | |
30200 | /* We use char because int might match the return type of a gcc2 | |
30201 | builtin and then its argument prototype would still apply. */ | |
30202 | char connect (); | |
30203 | int | |
30204 | main () | |
30205 | { | |
30206 | connect (); | |
30207 | ; | |
30208 | return 0; | |
30209 | } | |
30210 | _ACEOF | |
30211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30213 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30214 | ac_status=$? |
ac1cb8d3 VS |
30215 | grep -v '^ *+' conftest.er1 >conftest.err |
30216 | rm -f conftest.er1 | |
30217 | cat conftest.err >&5 | |
a848cd7e SC |
30218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30219 | (exit $ac_status); } && | |
ca5c6ac3 | 30220 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30222 | (eval $ac_try) 2>&5 | |
30223 | ac_status=$? | |
30224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30225 | (exit $ac_status); }; } && | |
30226 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30228 | (eval $ac_try) 2>&5 | |
30229 | ac_status=$? | |
30230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30231 | (exit $ac_status); }; }; then | |
30232 | ac_cv_lib_socket_connect=yes | |
30233 | else | |
30234 | echo "$as_me: failed program was:" >&5 | |
30235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30236 | ||
30237 | ac_cv_lib_socket_connect=no | |
30238 | fi | |
ac1cb8d3 VS |
30239 | rm -f conftest.err conftest.$ac_objext \ |
30240 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30241 | LIBS=$ac_check_lib_save_LIBS |
30242 | fi | |
30243 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
30244 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
30245 | if test $ac_cv_lib_socket_connect = yes; then | |
30246 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
30247 | fi | |
30248 | ||
30249 | fi | |
30250 | ||
30251 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
30252 | echo "$as_me:$LINENO: checking for remove" >&5 | |
30253 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
30254 | if test "${ac_cv_func_remove+set}" = set; then | |
30255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30256 | else | |
30257 | cat >conftest.$ac_ext <<_ACEOF | |
30258 | /* confdefs.h. */ | |
30259 | _ACEOF | |
30260 | cat confdefs.h >>conftest.$ac_ext | |
30261 | cat >>conftest.$ac_ext <<_ACEOF | |
30262 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30263 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
30264 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30265 | #define remove innocuous_remove | |
30266 | ||
a848cd7e SC |
30267 | /* System header to define __stub macros and hopefully few prototypes, |
30268 | which can conflict with char remove (); below. | |
30269 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30270 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30271 | |
a848cd7e SC |
30272 | #ifdef __STDC__ |
30273 | # include <limits.h> | |
30274 | #else | |
30275 | # include <assert.h> | |
30276 | #endif | |
ac1cb8d3 VS |
30277 | |
30278 | #undef remove | |
30279 | ||
a848cd7e SC |
30280 | /* Override any gcc2 internal prototype to avoid an error. */ |
30281 | #ifdef __cplusplus | |
30282 | extern "C" | |
30283 | { | |
30284 | #endif | |
30285 | /* We use char because int might match the return type of a gcc2 | |
30286 | builtin and then its argument prototype would still apply. */ | |
30287 | char remove (); | |
30288 | /* The GNU C library defines this for functions which it implements | |
30289 | to always fail with ENOSYS. Some functions are actually named | |
30290 | something starting with __ and the normal name is an alias. */ | |
30291 | #if defined (__stub_remove) || defined (__stub___remove) | |
30292 | choke me | |
30293 | #else | |
30294 | char (*f) () = remove; | |
30295 | #endif | |
30296 | #ifdef __cplusplus | |
30297 | } | |
30298 | #endif | |
30299 | ||
30300 | int | |
30301 | main () | |
30302 | { | |
30303 | return f != remove; | |
30304 | ; | |
30305 | return 0; | |
30306 | } | |
30307 | _ACEOF | |
30308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30310 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30311 | ac_status=$? |
ac1cb8d3 VS |
30312 | grep -v '^ *+' conftest.er1 >conftest.err |
30313 | rm -f conftest.er1 | |
30314 | cat conftest.err >&5 | |
a848cd7e SC |
30315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30316 | (exit $ac_status); } && | |
ca5c6ac3 | 30317 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30319 | (eval $ac_try) 2>&5 | |
30320 | ac_status=$? | |
30321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30322 | (exit $ac_status); }; } && | |
30323 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30325 | (eval $ac_try) 2>&5 | |
30326 | ac_status=$? | |
30327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30328 | (exit $ac_status); }; }; then | |
30329 | ac_cv_func_remove=yes | |
30330 | else | |
30331 | echo "$as_me: failed program was:" >&5 | |
30332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30333 | ||
30334 | ac_cv_func_remove=no | |
30335 | fi | |
ac1cb8d3 VS |
30336 | rm -f conftest.err conftest.$ac_objext \ |
30337 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30338 | fi |
30339 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
30340 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
30341 | ||
30342 | if test $ac_cv_func_remove = no; then | |
30343 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
30344 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
30345 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
30346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30347 | else | |
30348 | ac_check_lib_save_LIBS=$LIBS | |
30349 | LIBS="-lposix $LIBS" | |
30350 | cat >conftest.$ac_ext <<_ACEOF | |
30351 | /* confdefs.h. */ | |
30352 | _ACEOF | |
30353 | cat confdefs.h >>conftest.$ac_ext | |
30354 | cat >>conftest.$ac_ext <<_ACEOF | |
30355 | /* end confdefs.h. */ | |
30356 | ||
30357 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30358 | #ifdef __cplusplus | |
30359 | extern "C" | |
30360 | #endif | |
30361 | /* We use char because int might match the return type of a gcc2 | |
30362 | builtin and then its argument prototype would still apply. */ | |
30363 | char remove (); | |
30364 | int | |
30365 | main () | |
30366 | { | |
30367 | remove (); | |
30368 | ; | |
30369 | return 0; | |
30370 | } | |
30371 | _ACEOF | |
30372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30374 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30375 | ac_status=$? |
ac1cb8d3 VS |
30376 | grep -v '^ *+' conftest.er1 >conftest.err |
30377 | rm -f conftest.er1 | |
30378 | cat conftest.err >&5 | |
a848cd7e SC |
30379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30380 | (exit $ac_status); } && | |
ca5c6ac3 | 30381 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30383 | (eval $ac_try) 2>&5 | |
30384 | ac_status=$? | |
30385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30386 | (exit $ac_status); }; } && | |
30387 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30389 | (eval $ac_try) 2>&5 | |
30390 | ac_status=$? | |
30391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30392 | (exit $ac_status); }; }; then | |
30393 | ac_cv_lib_posix_remove=yes | |
30394 | else | |
30395 | echo "$as_me: failed program was:" >&5 | |
30396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30397 | ||
30398 | ac_cv_lib_posix_remove=no | |
30399 | fi | |
ac1cb8d3 VS |
30400 | rm -f conftest.err conftest.$ac_objext \ |
30401 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30402 | LIBS=$ac_check_lib_save_LIBS |
30403 | fi | |
30404 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
30405 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
30406 | if test $ac_cv_lib_posix_remove = yes; then | |
30407 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
30408 | fi | |
30409 | ||
30410 | fi | |
30411 | ||
30412 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
30413 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
30414 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
30415 | if test "${ac_cv_func_shmat+set}" = set; then | |
30416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30417 | else | |
30418 | cat >conftest.$ac_ext <<_ACEOF | |
30419 | /* confdefs.h. */ | |
30420 | _ACEOF | |
30421 | cat confdefs.h >>conftest.$ac_ext | |
30422 | cat >>conftest.$ac_ext <<_ACEOF | |
30423 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30424 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
30425 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30426 | #define shmat innocuous_shmat | |
30427 | ||
a848cd7e SC |
30428 | /* System header to define __stub macros and hopefully few prototypes, |
30429 | which can conflict with char shmat (); below. | |
30430 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30431 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30432 | |
a848cd7e SC |
30433 | #ifdef __STDC__ |
30434 | # include <limits.h> | |
30435 | #else | |
30436 | # include <assert.h> | |
30437 | #endif | |
ac1cb8d3 VS |
30438 | |
30439 | #undef shmat | |
30440 | ||
a848cd7e SC |
30441 | /* Override any gcc2 internal prototype to avoid an error. */ |
30442 | #ifdef __cplusplus | |
30443 | extern "C" | |
30444 | { | |
30445 | #endif | |
30446 | /* We use char because int might match the return type of a gcc2 | |
30447 | builtin and then its argument prototype would still apply. */ | |
30448 | char shmat (); | |
30449 | /* The GNU C library defines this for functions which it implements | |
30450 | to always fail with ENOSYS. Some functions are actually named | |
30451 | something starting with __ and the normal name is an alias. */ | |
30452 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
30453 | choke me | |
30454 | #else | |
30455 | char (*f) () = shmat; | |
30456 | #endif | |
30457 | #ifdef __cplusplus | |
30458 | } | |
30459 | #endif | |
30460 | ||
30461 | int | |
30462 | main () | |
30463 | { | |
30464 | return f != shmat; | |
30465 | ; | |
30466 | return 0; | |
30467 | } | |
30468 | _ACEOF | |
30469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30471 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30472 | ac_status=$? |
ac1cb8d3 VS |
30473 | grep -v '^ *+' conftest.er1 >conftest.err |
30474 | rm -f conftest.er1 | |
30475 | cat conftest.err >&5 | |
a848cd7e SC |
30476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30477 | (exit $ac_status); } && | |
ca5c6ac3 | 30478 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30480 | (eval $ac_try) 2>&5 | |
30481 | ac_status=$? | |
30482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30483 | (exit $ac_status); }; } && | |
30484 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30486 | (eval $ac_try) 2>&5 | |
30487 | ac_status=$? | |
30488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30489 | (exit $ac_status); }; }; then | |
30490 | ac_cv_func_shmat=yes | |
30491 | else | |
30492 | echo "$as_me: failed program was:" >&5 | |
30493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30494 | ||
30495 | ac_cv_func_shmat=no | |
30496 | fi | |
ac1cb8d3 VS |
30497 | rm -f conftest.err conftest.$ac_objext \ |
30498 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30499 | fi |
30500 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
30501 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
30502 | ||
30503 | if test $ac_cv_func_shmat = no; then | |
30504 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
30505 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
30506 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
30507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30508 | else | |
30509 | ac_check_lib_save_LIBS=$LIBS | |
30510 | LIBS="-lipc $LIBS" | |
30511 | cat >conftest.$ac_ext <<_ACEOF | |
30512 | /* confdefs.h. */ | |
30513 | _ACEOF | |
30514 | cat confdefs.h >>conftest.$ac_ext | |
30515 | cat >>conftest.$ac_ext <<_ACEOF | |
30516 | /* end confdefs.h. */ | |
30517 | ||
30518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30519 | #ifdef __cplusplus | |
30520 | extern "C" | |
30521 | #endif | |
30522 | /* We use char because int might match the return type of a gcc2 | |
30523 | builtin and then its argument prototype would still apply. */ | |
30524 | char shmat (); | |
30525 | int | |
30526 | main () | |
30527 | { | |
30528 | shmat (); | |
30529 | ; | |
30530 | return 0; | |
30531 | } | |
30532 | _ACEOF | |
30533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30535 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30536 | ac_status=$? |
ac1cb8d3 VS |
30537 | grep -v '^ *+' conftest.er1 >conftest.err |
30538 | rm -f conftest.er1 | |
30539 | cat conftest.err >&5 | |
a848cd7e SC |
30540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30541 | (exit $ac_status); } && | |
ca5c6ac3 | 30542 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30544 | (eval $ac_try) 2>&5 | |
30545 | ac_status=$? | |
30546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30547 | (exit $ac_status); }; } && | |
30548 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30550 | (eval $ac_try) 2>&5 | |
30551 | ac_status=$? | |
30552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30553 | (exit $ac_status); }; }; then | |
30554 | ac_cv_lib_ipc_shmat=yes | |
30555 | else | |
30556 | echo "$as_me: failed program was:" >&5 | |
30557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30558 | ||
30559 | ac_cv_lib_ipc_shmat=no | |
30560 | fi | |
ac1cb8d3 VS |
30561 | rm -f conftest.err conftest.$ac_objext \ |
30562 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30563 | LIBS=$ac_check_lib_save_LIBS |
30564 | fi | |
30565 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
30566 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
30567 | if test $ac_cv_lib_ipc_shmat = yes; then | |
30568 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
30569 | fi | |
30570 | ||
30571 | fi | |
30572 | fi | |
30573 | ||
30574 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
30575 | ac_save_LDFLAGS=$LDFLAGS | |
30576 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
30577 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
30578 | # check for ICE first), but we must link in the order -lSM -lICE or | |
30579 | # we get undefined symbols. So assume we have SM if we have ICE. | |
30580 | # These have to be linked with before -lX11, unlike the other | |
30581 | # libraries we check for below, so use a different variable. | |
30582 | # John Interrante, Karl Berry | |
30583 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
30584 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
30585 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
30586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30587 | else | |
30588 | ac_check_lib_save_LIBS=$LIBS | |
30589 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
30590 | cat >conftest.$ac_ext <<_ACEOF | |
30591 | /* confdefs.h. */ | |
30592 | _ACEOF | |
30593 | cat confdefs.h >>conftest.$ac_ext | |
30594 | cat >>conftest.$ac_ext <<_ACEOF | |
30595 | /* end confdefs.h. */ | |
30596 | ||
30597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30598 | #ifdef __cplusplus | |
30599 | extern "C" | |
30600 | #endif | |
30601 | /* We use char because int might match the return type of a gcc2 | |
30602 | builtin and then its argument prototype would still apply. */ | |
30603 | char IceConnectionNumber (); | |
30604 | int | |
30605 | main () | |
30606 | { | |
30607 | IceConnectionNumber (); | |
30608 | ; | |
30609 | return 0; | |
30610 | } | |
30611 | _ACEOF | |
30612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30614 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30615 | ac_status=$? |
ac1cb8d3 VS |
30616 | grep -v '^ *+' conftest.er1 >conftest.err |
30617 | rm -f conftest.er1 | |
30618 | cat conftest.err >&5 | |
a848cd7e SC |
30619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30620 | (exit $ac_status); } && | |
ca5c6ac3 | 30621 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30623 | (eval $ac_try) 2>&5 | |
30624 | ac_status=$? | |
30625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30626 | (exit $ac_status); }; } && | |
30627 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30629 | (eval $ac_try) 2>&5 | |
30630 | ac_status=$? | |
30631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30632 | (exit $ac_status); }; }; then | |
30633 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
30634 | else | |
30635 | echo "$as_me: failed program was:" >&5 | |
30636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30637 | ||
30638 | ac_cv_lib_ICE_IceConnectionNumber=no | |
30639 | fi | |
ac1cb8d3 VS |
30640 | rm -f conftest.err conftest.$ac_objext \ |
30641 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30642 | LIBS=$ac_check_lib_save_LIBS |
30643 | fi | |
30644 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
30645 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
30646 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
30647 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
30648 | fi | |
30649 | ||
30650 | LDFLAGS=$ac_save_LDFLAGS | |
30651 | ||
30652 | fi | |
30653 | ||
30654 | ||
30655 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
30656 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
30657 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
30658 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
30659 | fi |
30660 | ||
74b84332 VS |
30661 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
30662 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
30663 | AFMINSTALL=afminstall |
30664 | COMPILED_X_PROGRAM=0 | |
30665 | ||
74b84332 VS |
30666 | fi |
30667 | ||
30668 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
30669 | if test "$wxUSE_NANOX" = "yes"; then |
30670 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
30671 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
30672 | if test "x$MICROWIN" = x ; then | |
30673 | echo "$as_me:$LINENO: result: not found" >&5 | |
30674 | echo "${ECHO_T}not found" >&6 | |
30675 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
30676 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
30677 | { (exit 1); exit 1; }; } | |
30678 | else | |
30679 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
30680 | echo "${ECHO_T}$MICROWIN" >&6 | |
30681 | cat >>confdefs.h <<\_ACEOF | |
30682 | #define wxUSE_NANOX 1 | |
30683 | _ACEOF | |
30684 | ||
30685 | fi | |
30686 | fi | |
30687 | ||
30688 | if test "$wxUSE_UNICODE" = "yes"; then | |
30689 | ||
3ecd9f92 MW |
30690 | pkg_failed=no |
30691 | echo "$as_me:$LINENO: checking for PANGOX" >&5 | |
30692 | echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6 | |
a848cd7e | 30693 | |
3ecd9f92 MW |
30694 | if test -n "$PKG_CONFIG"; then |
30695 | if test -n "$PANGOX_CFLAGS"; then | |
30696 | pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS" | |
30697 | else | |
30698 | if test -n "$PKG_CONFIG" && \ | |
30699 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5 | |
30700 | ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 | |
30701 | ac_status=$? | |
30702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30703 | (exit $ac_status); }; then | |
30704 | pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null` | |
30705 | else | |
30706 | pkg_failed=yes | |
30707 | fi | |
30708 | fi | |
30709 | else | |
30710 | pkg_failed=untried | |
30711 | fi | |
30712 | if test -n "$PKG_CONFIG"; then | |
30713 | if test -n "$PANGOX_LIBS"; then | |
30714 | pkg_cv_PANGOX_LIBS="$PANGOX_LIBS" | |
30715 | else | |
30716 | if test -n "$PKG_CONFIG" && \ | |
30717 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5 | |
30718 | ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 | |
30719 | ac_status=$? | |
30720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30721 | (exit $ac_status); }; then | |
30722 | pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null` | |
30723 | else | |
30724 | pkg_failed=yes | |
30725 | fi | |
30726 | fi | |
30727 | else | |
30728 | pkg_failed=untried | |
30729 | fi | |
30730 | ||
30731 | ||
30732 | ||
30733 | if test $pkg_failed = yes; then | |
30734 | ||
30735 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30736 | _pkg_short_errors_supported=yes | |
30737 | else | |
30738 | _pkg_short_errors_supported=no | |
30739 | fi | |
30740 | if test $_pkg_short_errors_supported = yes; then | |
30741 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"` | |
30742 | else | |
30743 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
a848cd7e | 30744 | fi |
3ecd9f92 MW |
30745 | # Put the nasty error message in config.log where it belongs |
30746 | echo "$PANGOX_PKG_ERRORS" >&5 | |
a848cd7e SC |
30747 | |
30748 | ||
3ecd9f92 MW |
30749 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 |
30750 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
30751 | { (exit 1); exit 1; }; } | |
a848cd7e | 30752 | |
a848cd7e | 30753 | |
3ecd9f92 | 30754 | elif test $pkg_failed = untried; then |
a848cd7e | 30755 | |
3ecd9f92 MW |
30756 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 |
30757 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
30758 | { (exit 1); exit 1; }; } | |
30759 | ||
30760 | ||
30761 | else | |
30762 | PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS | |
30763 | PANGOX_LIBS=$pkg_cv_PANGOX_LIBS | |
30764 | echo "$as_me:$LINENO: result: yes" >&5 | |
30765 | echo "${ECHO_T}yes" >&6 | |
30766 | ||
30767 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" | |
30768 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
30769 | ||
30770 | fi | |
30771 | ||
30772 | pkg_failed=no | |
30773 | echo "$as_me:$LINENO: checking for PANGOFT2" >&5 | |
30774 | echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6 | |
30775 | ||
30776 | if test -n "$PKG_CONFIG"; then | |
30777 | if test -n "$PANGOFT2_CFLAGS"; then | |
30778 | pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS" | |
30779 | else | |
30780 | if test -n "$PKG_CONFIG" && \ | |
30781 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5 | |
30782 | ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5 | |
30783 | ac_status=$? | |
30784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30785 | (exit $ac_status); }; then | |
30786 | pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null` | |
30787 | else | |
30788 | pkg_failed=yes | |
30789 | fi | |
30790 | fi | |
30791 | else | |
30792 | pkg_failed=untried | |
30793 | fi | |
30794 | if test -n "$PKG_CONFIG"; then | |
30795 | if test -n "$PANGOFT2_LIBS"; then | |
30796 | pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS" | |
30797 | else | |
30798 | if test -n "$PKG_CONFIG" && \ | |
30799 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5 | |
30800 | ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5 | |
30801 | ac_status=$? | |
30802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30803 | (exit $ac_status); }; then | |
30804 | pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null` | |
30805 | else | |
30806 | pkg_failed=yes | |
30807 | fi | |
30808 | fi | |
30809 | else | |
30810 | pkg_failed=untried | |
30811 | fi | |
30812 | ||
30813 | ||
30814 | ||
30815 | if test $pkg_failed = yes; then | |
30816 | ||
30817 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
30818 | _pkg_short_errors_supported=yes | |
30819 | else | |
30820 | _pkg_short_errors_supported=no | |
30821 | fi | |
30822 | if test $_pkg_short_errors_supported = yes; then | |
30823 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"` | |
30824 | else | |
30825 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
30826 | fi | |
30827 | # Put the nasty error message in config.log where it belongs | |
30828 | echo "$PANGOFT2_PKG_ERRORS" >&5 | |
a848cd7e | 30829 | |
a848cd7e SC |
30830 | |
30831 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
30832 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
30833 | wxUSE_PRINTING_ARCHITECTURE="no" | |
30834 | ||
30835 | ||
3ecd9f92 | 30836 | elif test $pkg_failed = untried; then |
a848cd7e | 30837 | |
3ecd9f92 MW |
30838 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 |
30839 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
30840 | wxUSE_PRINTING_ARCHITECTURE="no" | |
a848cd7e | 30841 | |
a848cd7e | 30842 | |
a848cd7e | 30843 | else |
3ecd9f92 MW |
30844 | PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS |
30845 | PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS | |
30846 | echo "$as_me:$LINENO: result: yes" >&5 | |
30847 | echo "${ECHO_T}yes" >&6 | |
30848 | ||
30849 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" | |
30850 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
a848cd7e | 30851 | |
a848cd7e | 30852 | fi |
3ecd9f92 MW |
30853 | |
30854 | pkg_failed=no | |
30855 | echo "$as_me:$LINENO: checking for PANGOXFT" >&5 | |
30856 | echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6 | |
a848cd7e SC |
30857 | |
30858 | if test -n "$PKG_CONFIG"; then | |
3ecd9f92 MW |
30859 | if test -n "$PANGOXFT_CFLAGS"; then |
30860 | pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS" | |
30861 | else | |
30862 | if test -n "$PKG_CONFIG" && \ | |
30863 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5 | |
30864 | ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5 | |
30865 | ac_status=$? | |
30866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30867 | (exit $ac_status); }; then | |
30868 | pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null` | |
a848cd7e | 30869 | else |
3ecd9f92 MW |
30870 | pkg_failed=yes |
30871 | fi | |
30872 | fi | |
30873 | else | |
30874 | pkg_failed=untried | |
30875 | fi | |
30876 | if test -n "$PKG_CONFIG"; then | |
30877 | if test -n "$PANGOXFT_LIBS"; then | |
30878 | pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS" | |
30879 | else | |
30880 | if test -n "$PKG_CONFIG" && \ | |
30881 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5 | |
30882 | ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5 | |
30883 | ac_status=$? | |
30884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30885 | (exit $ac_status); }; then | |
30886 | pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null` | |
30887 | else | |
30888 | pkg_failed=yes | |
30889 | fi | |
30890 | fi | |
30891 | else | |
30892 | pkg_failed=untried | |
a848cd7e SC |
30893 | fi |
30894 | ||
a848cd7e | 30895 | |
a848cd7e | 30896 | |
3ecd9f92 | 30897 | if test $pkg_failed = yes; then |
a848cd7e | 30898 | |
3ecd9f92 MW |
30899 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
30900 | _pkg_short_errors_supported=yes | |
30901 | else | |
30902 | _pkg_short_errors_supported=no | |
30903 | fi | |
30904 | if test $_pkg_short_errors_supported = yes; then | |
30905 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"` | |
30906 | else | |
30907 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
a848cd7e | 30908 | fi |
3ecd9f92 MW |
30909 | # Put the nasty error message in config.log where it belongs |
30910 | echo "$PANGOXFT_PKG_ERRORS" >&5 | |
a848cd7e SC |
30911 | |
30912 | ||
3ecd9f92 MW |
30913 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 |
30914 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
30915 | ||
a848cd7e | 30916 | |
3ecd9f92 | 30917 | elif test $pkg_failed = untried; then |
a848cd7e | 30918 | |
3ecd9f92 MW |
30919 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 |
30920 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
30921 | ||
30922 | ||
30923 | else | |
30924 | PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS | |
30925 | PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS | |
30926 | echo "$as_me:$LINENO: result: yes" >&5 | |
30927 | echo "${ECHO_T}yes" >&6 | |
a848cd7e | 30928 | |
4ae1af05 MB |
30929 | cat >>confdefs.h <<\_ACEOF |
30930 | #define HAVE_PANGO_XFT 1 | |
30931 | _ACEOF | |
30932 | ||
c92ad099 | 30933 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
30934 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
30935 | ||
3ecd9f92 | 30936 | fi |
e56f4f9e | 30937 | save_CXXFLAGS="$CXXFLAGS" |
304205f1 | 30938 | save_LIBS="$LIBS" |
e56f4f9e | 30939 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
304205f1 VS |
30940 | LIBS="$LIBS $PANGOX_LIBS" |
30941 | ||
30942 | for ac_func in pango_font_family_is_monospace | |
30943 | do | |
30944 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30945 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30946 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30947 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30949 | else | |
30950 | cat >conftest.$ac_ext <<_ACEOF | |
30951 | /* confdefs.h. */ | |
30952 | _ACEOF | |
30953 | cat confdefs.h >>conftest.$ac_ext | |
30954 | cat >>conftest.$ac_ext <<_ACEOF | |
30955 | /* end confdefs.h. */ | |
30956 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
30957 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30958 | #define $ac_func innocuous_$ac_func | |
30959 | ||
30960 | /* System header to define __stub macros and hopefully few prototypes, | |
30961 | which can conflict with char $ac_func (); below. | |
30962 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30963 | <limits.h> exists even on freestanding compilers. */ | |
30964 | ||
30965 | #ifdef __STDC__ | |
30966 | # include <limits.h> | |
30967 | #else | |
30968 | # include <assert.h> | |
30969 | #endif | |
30970 | ||
30971 | #undef $ac_func | |
30972 | ||
30973 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30974 | #ifdef __cplusplus | |
30975 | extern "C" | |
30976 | { | |
30977 | #endif | |
30978 | /* We use char because int might match the return type of a gcc2 | |
30979 | builtin and then its argument prototype would still apply. */ | |
30980 | char $ac_func (); | |
30981 | /* The GNU C library defines this for functions which it implements | |
30982 | to always fail with ENOSYS. Some functions are actually named | |
30983 | something starting with __ and the normal name is an alias. */ | |
30984 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30985 | choke me | |
30986 | #else | |
30987 | char (*f) () = $ac_func; | |
30988 | #endif | |
30989 | #ifdef __cplusplus | |
30990 | } | |
30991 | #endif | |
30992 | ||
30993 | int | |
30994 | main () | |
30995 | { | |
30996 | return f != $ac_func; | |
30997 | ; | |
30998 | return 0; | |
30999 | } | |
31000 | _ACEOF | |
31001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31003 | (eval $ac_link) 2>conftest.er1 | |
31004 | ac_status=$? | |
31005 | grep -v '^ *+' conftest.er1 >conftest.err | |
31006 | rm -f conftest.er1 | |
31007 | cat conftest.err >&5 | |
31008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31009 | (exit $ac_status); } && | |
ca5c6ac3 | 31010 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
31011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31012 | (eval $ac_try) 2>&5 | |
31013 | ac_status=$? | |
31014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31015 | (exit $ac_status); }; } && | |
31016 | { ac_try='test -s conftest$ac_exeext' | |
31017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31018 | (eval $ac_try) 2>&5 | |
31019 | ac_status=$? | |
31020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31021 | (exit $ac_status); }; }; then | |
31022 | eval "$as_ac_var=yes" | |
31023 | else | |
31024 | echo "$as_me: failed program was:" >&5 | |
31025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31026 | ||
31027 | eval "$as_ac_var=no" | |
31028 | fi | |
31029 | rm -f conftest.err conftest.$ac_objext \ | |
31030 | conftest$ac_exeext conftest.$ac_ext | |
31031 | fi | |
31032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31033 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31034 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31035 | cat >>confdefs.h <<_ACEOF | |
31036 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31037 | _ACEOF | |
31038 | ||
31039 | fi | |
31040 | done | |
31041 | ||
e56f4f9e | 31042 | CXXFLAGS="$save_CXXFLAGS" |
304205f1 | 31043 | LIBS="$save_LIBS" |
a848cd7e SC |
31044 | fi |
31045 | ||
31046 | wxUSE_UNIVERSAL="yes" | |
31047 | ||
31048 | if test "$wxUSE_NANOX" = "yes"; then | |
31049 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
31050 | 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" | |
31051 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
31052 | else | |
31053 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
31054 | fi | |
31055 | ||
a848cd7e SC |
31056 | TOOLKIT=X11 |
31057 | GUIDIST=X11_DIST | |
31058 | fi | |
31059 | ||
31060 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
31061 | if test "$wxUSE_UNICODE" = "yes"; then |
31062 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
31063 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
31064 | { (exit 1); exit 1; }; } | |
31065 | fi | |
31066 | ||
74b84332 VS |
31067 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
31068 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 31069 | |
74b84332 VS |
31070 | ac_find_includes= |
31071 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
31072 | do | |
31073 | if test -f "$ac_dir/Xm/Xm.h"; then | |
31074 | ac_find_includes=$ac_dir | |
31075 | break | |
31076 | fi | |
31077 | done | |
a848cd7e | 31078 | |
74b84332 VS |
31079 | if test "$ac_find_includes" != "" ; then |
31080 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
31081 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
31082 | ||
31083 | if test "x$ac_find_includes" = "x/usr/include"; then | |
31084 | ac_path_to_include="" | |
31085 | else | |
31086 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
31087 | result=$? | |
31088 | if test $result = 0; then | |
31089 | ac_path_to_include="" | |
31090 | else | |
31091 | ac_path_to_include=" -I$ac_find_includes" | |
31092 | fi | |
a848cd7e SC |
31093 | fi |
31094 | ||
74b84332 VS |
31095 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
31096 | else | |
e56f4f9e VZ |
31097 | save_CXXFLAGS=$CXXFLAGS |
31098 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
e051b34e | 31099 | |
74b84332 | 31100 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
31101 | /* confdefs.h. */ |
31102 | _ACEOF | |
31103 | cat confdefs.h >>conftest.$ac_ext | |
31104 | cat >>conftest.$ac_ext <<_ACEOF | |
31105 | /* end confdefs.h. */ | |
31106 | ||
74b84332 VS |
31107 | #include <Xm/Xm.h> |
31108 | ||
a848cd7e SC |
31109 | int |
31110 | main () | |
31111 | { | |
31112 | ||
74b84332 VS |
31113 | int version; |
31114 | version = xmUseVersion; | |
31115 | ||
a848cd7e SC |
31116 | ; |
31117 | return 0; | |
31118 | } | |
31119 | _ACEOF | |
74b84332 VS |
31120 | rm -f conftest.$ac_objext |
31121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31122 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 31123 | ac_status=$? |
ac1cb8d3 VS |
31124 | grep -v '^ *+' conftest.er1 >conftest.err |
31125 | rm -f conftest.er1 | |
31126 | cat conftest.err >&5 | |
a848cd7e SC |
31127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31128 | (exit $ac_status); } && | |
ca5c6ac3 | 31129 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31131 | (eval $ac_try) 2>&5 | |
31132 | ac_status=$? | |
31133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31134 | (exit $ac_status); }; } && | |
74b84332 | 31135 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
31136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31137 | (eval $ac_try) 2>&5 | |
31138 | ac_status=$? | |
31139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31140 | (exit $ac_status); }; }; then | |
74b84332 VS |
31141 | |
31142 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
31143 | echo "${ECHO_T}found in default search path" >&6 | |
31144 | COMPILED_X_PROGRAM=1 | |
31145 | ||
a848cd7e SC |
31146 | else |
31147 | echo "$as_me: failed program was:" >&5 | |
31148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31149 | ||
a848cd7e | 31150 | |
74b84332 VS |
31151 | echo "$as_me:$LINENO: result: no" >&5 |
31152 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
31153 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
31154 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 31155 | { (exit 1); exit 1; }; } |
a848cd7e | 31156 | |
a848cd7e | 31157 | |
a848cd7e | 31158 | fi |
74b84332 | 31159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e | 31160 | |
e56f4f9e | 31161 | CXXFLAGS=$save_CXXFLAGS |
74b84332 VS |
31162 | fi |
31163 | ||
0ad5d837 VZ |
31164 | |
31165 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
31166 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
31167 | ||
0ad5d837 VZ |
31168 | ac_find_libraries= |
31169 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 31170 | do |
3eca31dc | 31171 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
31172 | if test -f "$ac_dir/libXm.$ac_extension"; then |
31173 | ac_find_libraries=$ac_dir | |
31174 | break 2 | |
a848cd7e | 31175 | fi |
74b84332 VS |
31176 | done |
31177 | done | |
a848cd7e | 31178 | |
0ad5d837 VZ |
31179 | |
31180 | if test "x$ac_find_libraries" != "x" ; then | |
31181 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
31182 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 31183 | |
74b84332 | 31184 | |
0ad5d837 | 31185 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 31186 | ac_path_to_link="" |
a848cd7e | 31187 | else |
0ad5d837 VZ |
31188 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
31189 | result=$? | |
31190 | if test $result = 0; then | |
31191 | ac_path_to_link="" | |
31192 | else | |
31193 | ac_path_to_link=" -L$ac_find_libraries" | |
31194 | fi | |
74b84332 VS |
31195 | fi |
31196 | ||
0ad5d837 VZ |
31197 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
31198 | else | |
e56f4f9e VZ |
31199 | save_CXXFLAGS=$CXXFLAGS |
31200 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
6f9cf1e6 MW |
31201 | save_LIBS="$LIBS" |
31202 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 31203 | |
0ad5d837 | 31204 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
31205 | /* confdefs.h. */ |
31206 | _ACEOF | |
31207 | cat confdefs.h >>conftest.$ac_ext | |
31208 | cat >>conftest.$ac_ext <<_ACEOF | |
31209 | /* end confdefs.h. */ | |
31210 | ||
0ad5d837 | 31211 | #include <Xm/Xm.h> |
74b84332 | 31212 | |
a848cd7e SC |
31213 | int |
31214 | main () | |
31215 | { | |
74b84332 | 31216 | |
0ad5d837 VZ |
31217 | int version; |
31218 | version = xmUseVersion; | |
74b84332 | 31219 | |
a848cd7e SC |
31220 | ; |
31221 | return 0; | |
31222 | } | |
31223 | _ACEOF | |
0ad5d837 VZ |
31224 | rm -f conftest.$ac_objext conftest$ac_exeext |
31225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31226 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 31227 | ac_status=$? |
ac1cb8d3 VS |
31228 | grep -v '^ *+' conftest.er1 >conftest.err |
31229 | rm -f conftest.er1 | |
31230 | cat conftest.err >&5 | |
a848cd7e SC |
31231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31232 | (exit $ac_status); } && | |
ca5c6ac3 | 31233 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31235 | (eval $ac_try) 2>&5 | |
31236 | ac_status=$? | |
31237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31238 | (exit $ac_status); }; } && | |
0ad5d837 | 31239 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
31240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31241 | (eval $ac_try) 2>&5 | |
31242 | ac_status=$? | |
31243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31244 | (exit $ac_status); }; }; then | |
74b84332 | 31245 | |
0ad5d837 | 31246 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 31247 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 31248 | COMPILED_X_PROGRAM=1 |
74b84332 | 31249 | |
a848cd7e SC |
31250 | else |
31251 | echo "$as_me: failed program was:" >&5 | |
31252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31253 | ||
74b84332 | 31254 | |
6f9cf1e6 | 31255 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 31256 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 31257 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
31258 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
31259 | { (exit 1); exit 1; }; } | |
31260 | ||
31261 | ||
31262 | fi | |
0ad5d837 VZ |
31263 | rm -f conftest.err conftest.$ac_objext \ |
31264 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 31265 | |
e56f4f9e | 31266 | CXXFLAGS=$save_CXXFLAGS |
6f9cf1e6 | 31267 | LIBS="$save_LIBS" |
74b84332 VS |
31268 | fi |
31269 | ||
31270 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
31271 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
31272 | libp_link="" | |
31273 | libsm_ice_link="" | |
31274 | libs_found=0 | |
31275 | for libp in "" " -lXp"; do | |
31276 | if test "$libs_found" = "0"; then | |
31277 | for libsm_ice in "" " -lSM -lICE"; do | |
31278 | if test "$libs_found" = "0"; then | |
31279 | save_LIBS="$LIBS" | |
31280 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
e56f4f9e VZ |
31281 | save_CXXFLAGS=$CXXFLAGS |
31282 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
74b84332 VS |
31283 | |
31284 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
31285 | /* confdefs.h. */ |
31286 | _ACEOF | |
31287 | cat confdefs.h >>conftest.$ac_ext | |
31288 | cat >>conftest.$ac_ext <<_ACEOF | |
31289 | /* end confdefs.h. */ | |
31290 | ||
74b84332 VS |
31291 | #include <Xm/Xm.h> |
31292 | #include <Xm/List.h> | |
31293 | ||
a848cd7e SC |
31294 | int |
31295 | main () | |
31296 | { | |
74b84332 VS |
31297 | |
31298 | XmString string = NULL; | |
31299 | Widget w = NULL; | |
31300 | int position = 0; | |
31301 | XmListAddItem(w, string, position); | |
31302 | ||
a848cd7e SC |
31303 | ; |
31304 | return 0; | |
31305 | } | |
31306 | _ACEOF | |
31307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31309 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31310 | ac_status=$? |
ac1cb8d3 VS |
31311 | grep -v '^ *+' conftest.er1 >conftest.err |
31312 | rm -f conftest.er1 | |
31313 | cat conftest.err >&5 | |
a848cd7e SC |
31314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31315 | (exit $ac_status); } && | |
ca5c6ac3 | 31316 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31318 | (eval $ac_try) 2>&5 | |
31319 | ac_status=$? | |
31320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31321 | (exit $ac_status); }; } && | |
31322 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31324 | (eval $ac_try) 2>&5 | |
31325 | ac_status=$? | |
31326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31327 | (exit $ac_status); }; }; then | |
31328 | ||
31329 | libp_link="$libp" | |
31330 | libsm_ice_link="$libsm_ice" | |
31331 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
31332 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
31333 | libs_found=1 | |
31334 | ||
31335 | else | |
31336 | echo "$as_me: failed program was:" >&5 | |
31337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31338 | ||
31339 | ||
31340 | ||
31341 | fi | |
ac1cb8d3 VS |
31342 | rm -f conftest.err conftest.$ac_objext \ |
31343 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31344 | |
31345 | LIBS="$save_LIBS" | |
e56f4f9e | 31346 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
31347 | fi |
31348 | done | |
31349 | fi | |
31350 | done | |
31351 | ||
31352 | if test "$libs_found" = "0"; then | |
31353 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
31354 | echo "${ECHO_T}can't find the right libraries" >&6 | |
31355 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
31356 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
31357 | { (exit 1); exit 1; }; } | |
31358 | fi | |
31359 | ||
62fa8b3a MW |
31360 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
31361 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
31362 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
31363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31364 | else | |
31365 | ac_check_lib_save_LIBS=$LIBS | |
31366 | LIBS="-lSgm $LIBS" | |
31367 | cat >conftest.$ac_ext <<_ACEOF | |
31368 | /* confdefs.h. */ | |
31369 | _ACEOF | |
31370 | cat confdefs.h >>conftest.$ac_ext | |
31371 | cat >>conftest.$ac_ext <<_ACEOF | |
31372 | /* end confdefs.h. */ | |
31373 | ||
31374 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31375 | #ifdef __cplusplus | |
31376 | extern "C" | |
31377 | #endif | |
31378 | /* We use char because int might match the return type of a gcc2 | |
31379 | builtin and then its argument prototype would still apply. */ | |
31380 | char SgCreateList (); | |
31381 | int | |
31382 | main () | |
31383 | { | |
31384 | SgCreateList (); | |
31385 | ; | |
31386 | return 0; | |
31387 | } | |
31388 | _ACEOF | |
31389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31391 | (eval $ac_link) 2>conftest.er1 | |
31392 | ac_status=$? | |
31393 | grep -v '^ *+' conftest.er1 >conftest.err | |
31394 | rm -f conftest.er1 | |
31395 | cat conftest.err >&5 | |
31396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31397 | (exit $ac_status); } && | |
ca5c6ac3 | 31398 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
31399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31400 | (eval $ac_try) 2>&5 | |
31401 | ac_status=$? | |
31402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31403 | (exit $ac_status); }; } && | |
31404 | { ac_try='test -s conftest$ac_exeext' | |
31405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31406 | (eval $ac_try) 2>&5 | |
31407 | ac_status=$? | |
31408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31409 | (exit $ac_status); }; }; then | |
31410 | ac_cv_lib_Sgm_SgCreateList=yes | |
31411 | else | |
31412 | echo "$as_me: failed program was:" >&5 | |
31413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31414 | ||
31415 | ac_cv_lib_Sgm_SgCreateList=no | |
31416 | fi | |
31417 | rm -f conftest.err conftest.$ac_objext \ | |
31418 | conftest$ac_exeext conftest.$ac_ext | |
31419 | LIBS=$ac_check_lib_save_LIBS | |
31420 | fi | |
31421 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
31422 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
31423 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
31424 | libsgm_link=" -lSgm" | |
31425 | fi | |
31426 | ||
31427 | ||
e56f4f9e VZ |
31428 | save_CXXFLAGS=$CXXFLAGS |
31429 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
0ad5d837 | 31430 | |
a848cd7e SC |
31431 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
31432 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
31433 | if test "${wx_cv_lib_motif2+set}" = set; then |
31434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31435 | else | |
31436 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
31437 | /* confdefs.h. */ |
31438 | _ACEOF | |
31439 | cat confdefs.h >>conftest.$ac_ext | |
31440 | cat >>conftest.$ac_ext <<_ACEOF | |
31441 | /* end confdefs.h. */ | |
31442 | ||
0ad5d837 | 31443 | #include <Xm/Xm.h> |
a848cd7e SC |
31444 | |
31445 | int | |
31446 | main () | |
31447 | { | |
31448 | ||
0ad5d837 VZ |
31449 | #if XmVersion < 2000 |
31450 | Not Motif 2 | |
31451 | #endif | |
a848cd7e SC |
31452 | |
31453 | ; | |
31454 | return 0; | |
31455 | } | |
31456 | _ACEOF | |
31457 | rm -f conftest.$ac_objext | |
31458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31459 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31460 | ac_status=$? |
ac1cb8d3 VS |
31461 | grep -v '^ *+' conftest.er1 >conftest.err |
31462 | rm -f conftest.er1 | |
31463 | cat conftest.err >&5 | |
a848cd7e SC |
31464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31465 | (exit $ac_status); } && | |
ca5c6ac3 | 31466 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31468 | (eval $ac_try) 2>&5 | |
31469 | ac_status=$? | |
31470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31471 | (exit $ac_status); }; } && | |
31472 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31474 | (eval $ac_try) 2>&5 | |
31475 | ac_status=$? | |
31476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31477 | (exit $ac_status); }; }; then | |
0ad5d837 | 31478 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
31479 | else |
31480 | echo "$as_me: failed program was:" >&5 | |
31481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31482 | ||
0ad5d837 VZ |
31483 | wx_cv_lib_motif2="no" |
31484 | fi | |
31485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31486 | fi | |
31487 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
31488 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
31489 | if test "$wx_cv_lib_motif2" = "yes"; then | |
31490 | cat >>confdefs.h <<\_ACEOF | |
31491 | #define __WXMOTIF20__ 1 | |
31492 | _ACEOF | |
a848cd7e | 31493 | |
0ad5d837 VZ |
31494 | else |
31495 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
31496 | #define __WXMOTIF20__ 0 |
31497 | _ACEOF | |
31498 | ||
0ad5d837 | 31499 | fi |
2113bc77 MW |
31500 | |
31501 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
31502 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
31503 | if test "${wx_cv_lib_lesstif+set}" = set; then |
31504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31505 | else | |
31506 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
31507 | /* confdefs.h. */ |
31508 | _ACEOF | |
31509 | cat confdefs.h >>conftest.$ac_ext | |
31510 | cat >>conftest.$ac_ext <<_ACEOF | |
31511 | /* end confdefs.h. */ | |
31512 | ||
0ad5d837 | 31513 | #include <Xm/Xm.h> |
2113bc77 MW |
31514 | |
31515 | int | |
31516 | main () | |
31517 | { | |
31518 | ||
0ad5d837 VZ |
31519 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
31520 | Not Lesstif | |
31521 | #endif | |
2113bc77 MW |
31522 | |
31523 | ; | |
31524 | return 0; | |
31525 | } | |
31526 | _ACEOF | |
31527 | rm -f conftest.$ac_objext | |
31528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31529 | (eval $ac_compile) 2>conftest.er1 | |
31530 | ac_status=$? | |
31531 | grep -v '^ *+' conftest.er1 >conftest.err | |
31532 | rm -f conftest.er1 | |
31533 | cat conftest.err >&5 | |
31534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31535 | (exit $ac_status); } && | |
ca5c6ac3 | 31536 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
31537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31538 | (eval $ac_try) 2>&5 | |
31539 | ac_status=$? | |
31540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31541 | (exit $ac_status); }; } && | |
31542 | { ac_try='test -s conftest.$ac_objext' | |
31543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31544 | (eval $ac_try) 2>&5 | |
31545 | ac_status=$? | |
31546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31547 | (exit $ac_status); }; }; then | |
0ad5d837 | 31548 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
31549 | else |
31550 | echo "$as_me: failed program was:" >&5 | |
31551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31552 | ||
0ad5d837 VZ |
31553 | wx_cv_lib_lesstif="no" |
31554 | fi | |
31555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 31556 | |
0ad5d837 VZ |
31557 | fi |
31558 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
31559 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
31560 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
31561 | cat >>confdefs.h <<\_ACEOF | |
31562 | #define __WXLESSTIF__ 1 | |
31563 | _ACEOF | |
31564 | ||
31565 | else | |
31566 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
31567 | #define __WXLESSTIF__ 0 |
31568 | _ACEOF | |
31569 | ||
0ad5d837 | 31570 | fi |
2113bc77 | 31571 | |
e56f4f9e | 31572 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e | 31573 | |
62fa8b3a | 31574 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
31575 | TOOLKIT=MOTIF |
31576 | GUIDIST=MOTIF_DIST | |
31577 | fi | |
31578 | ||
74b84332 | 31579 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
31580 | if test "$wxUSE_LIBXPM" = "sys"; then |
31581 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
31582 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
31583 | ||
0ad5d837 VZ |
31584 | ac_find_libraries= |
31585 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31586 | do |
3eca31dc | 31587 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31588 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
31589 | ac_find_libraries=$ac_dir | |
31590 | break 2 | |
31591 | fi | |
31592 | done | |
31593 | done | |
31594 | ||
31595 | if test "$ac_find_libraries" != "" ; then | |
31596 | ||
0ad5d837 | 31597 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31598 | ac_path_to_link="" |
31599 | else | |
0ad5d837 VZ |
31600 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
31601 | result=$? | |
31602 | if test $result = 0; then | |
31603 | ac_path_to_link="" | |
31604 | else | |
31605 | ac_path_to_link=" -L$ac_find_libraries" | |
31606 | fi | |
a848cd7e SC |
31607 | fi |
31608 | ||
31609 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
31610 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
31611 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
31612 | |
31613 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
31614 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
31615 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
31616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31617 | else | |
31618 | ||
e56f4f9e VZ |
31619 | save_CXXFLAGS=$CXXFLAGS |
31620 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
31621 | |
31622 | cat >conftest.$ac_ext <<_ACEOF | |
31623 | /* confdefs.h. */ | |
31624 | _ACEOF | |
31625 | cat confdefs.h >>conftest.$ac_ext | |
31626 | cat >>conftest.$ac_ext <<_ACEOF | |
31627 | /* end confdefs.h. */ | |
31628 | ||
31629 | #include <X11/xpm.h> | |
31630 | ||
31631 | int | |
31632 | main () | |
31633 | { | |
31634 | ||
31635 | int version; | |
31636 | version = XpmLibraryVersion(); | |
31637 | ||
31638 | ; | |
31639 | return 0; | |
31640 | } | |
31641 | _ACEOF | |
31642 | rm -f conftest.$ac_objext | |
31643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31644 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31645 | ac_status=$? |
ac1cb8d3 VS |
31646 | grep -v '^ *+' conftest.er1 >conftest.err |
31647 | rm -f conftest.er1 | |
31648 | cat conftest.err >&5 | |
a848cd7e SC |
31649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31650 | (exit $ac_status); } && | |
ca5c6ac3 | 31651 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31653 | (eval $ac_try) 2>&5 | |
31654 | ac_status=$? | |
31655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31656 | (exit $ac_status); }; } && | |
31657 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31659 | (eval $ac_try) 2>&5 | |
31660 | ac_status=$? | |
31661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31662 | (exit $ac_status); }; }; then | |
31663 | wx_cv_x11_xpm_h=yes | |
31664 | else | |
31665 | echo "$as_me: failed program was:" >&5 | |
31666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31667 | ||
31668 | wx_cv_x11_xpm_h=no | |
31669 | ||
31670 | fi | |
ac1cb8d3 | 31671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 31672 | |
e56f4f9e | 31673 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
31674 | |
31675 | ||
31676 | fi | |
31677 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
31678 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
31679 | ||
31680 | if test $wx_cv_x11_xpm_h = "yes"; then | |
31681 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
31682 | cat >>confdefs.h <<\_ACEOF | |
31683 | #define wxHAVE_LIB_XPM 1 | |
31684 | _ACEOF | |
31685 | ||
31686 | else | |
31687 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
31688 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
31689 | fi | |
31690 | fi | |
31691 | ||
31692 | fi | |
31693 | ||
31694 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
31695 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
31696 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
31697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31698 | else | |
31699 | ac_check_lib_save_LIBS=$LIBS | |
31700 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
31701 | cat >conftest.$ac_ext <<_ACEOF | |
31702 | /* confdefs.h. */ | |
31703 | _ACEOF | |
31704 | cat confdefs.h >>conftest.$ac_ext | |
31705 | cat >>conftest.$ac_ext <<_ACEOF | |
31706 | /* end confdefs.h. */ | |
31707 | ||
31708 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31709 | #ifdef __cplusplus | |
31710 | extern "C" | |
31711 | #endif | |
31712 | /* We use char because int might match the return type of a gcc2 | |
31713 | builtin and then its argument prototype would still apply. */ | |
31714 | char XShapeQueryExtension (); | |
31715 | int | |
31716 | main () | |
31717 | { | |
31718 | XShapeQueryExtension (); | |
31719 | ; | |
31720 | return 0; | |
31721 | } | |
31722 | _ACEOF | |
31723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31725 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31726 | ac_status=$? |
ac1cb8d3 VS |
31727 | grep -v '^ *+' conftest.er1 >conftest.err |
31728 | rm -f conftest.er1 | |
31729 | cat conftest.err >&5 | |
a848cd7e SC |
31730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31731 | (exit $ac_status); } && | |
ca5c6ac3 | 31732 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31734 | (eval $ac_try) 2>&5 | |
31735 | ac_status=$? | |
31736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31737 | (exit $ac_status); }; } && | |
31738 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31740 | (eval $ac_try) 2>&5 | |
31741 | ac_status=$? | |
31742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31743 | (exit $ac_status); }; }; then | |
31744 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
31745 | else | |
31746 | echo "$as_me: failed program was:" >&5 | |
31747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31748 | ||
31749 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
31750 | fi | |
ac1cb8d3 VS |
31751 | rm -f conftest.err conftest.$ac_objext \ |
31752 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31753 | LIBS=$ac_check_lib_save_LIBS |
31754 | fi | |
31755 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
31756 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
31757 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
31758 | ||
31759 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
31760 | wxHAVE_XEXT_LIB=1 | |
31761 | ||
31762 | fi | |
31763 | ||
31764 | ||
31765 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
e56f4f9e VZ |
31766 | save_CXXFLAGS="$CXXFLAGS" |
31767 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
31768 | |
31769 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
31770 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
31771 | cat >conftest.$ac_ext <<_ACEOF | |
31772 | /* confdefs.h. */ | |
31773 | _ACEOF | |
31774 | cat confdefs.h >>conftest.$ac_ext | |
31775 | cat >>conftest.$ac_ext <<_ACEOF | |
31776 | /* end confdefs.h. */ | |
31777 | ||
31778 | #include <X11/Xlib.h> | |
31779 | #include <X11/extensions/shape.h> | |
31780 | ||
31781 | int | |
31782 | main () | |
31783 | { | |
31784 | ||
31785 | int dummy1, dummy2; | |
31786 | XShapeQueryExtension((Display*)NULL, | |
31787 | (int*)NULL, (int*)NULL); | |
31788 | ||
31789 | ; | |
31790 | return 0; | |
31791 | } | |
31792 | _ACEOF | |
31793 | rm -f conftest.$ac_objext | |
31794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31795 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31796 | ac_status=$? |
ac1cb8d3 VS |
31797 | grep -v '^ *+' conftest.er1 >conftest.err |
31798 | rm -f conftest.er1 | |
31799 | cat conftest.err >&5 | |
a848cd7e SC |
31800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31801 | (exit $ac_status); } && | |
ca5c6ac3 | 31802 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31804 | (eval $ac_try) 2>&5 | |
31805 | ac_status=$? | |
31806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31807 | (exit $ac_status); }; } && | |
31808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31810 | (eval $ac_try) 2>&5 | |
31811 | ac_status=$? | |
31812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31813 | (exit $ac_status); }; }; then | |
31814 | ||
31815 | cat >>confdefs.h <<\_ACEOF | |
31816 | #define HAVE_XSHAPE 1 | |
31817 | _ACEOF | |
31818 | ||
31819 | echo "$as_me:$LINENO: result: found" >&5 | |
31820 | echo "${ECHO_T}found" >&6 | |
31821 | ||
31822 | else | |
31823 | echo "$as_me: failed program was:" >&5 | |
31824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31825 | ||
31826 | ||
31827 | echo "$as_me:$LINENO: result: not found" >&5 | |
31828 | echo "${ECHO_T}not found" >&6 | |
31829 | ||
31830 | fi | |
ac1cb8d3 | 31831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e56f4f9e | 31832 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
31833 | |
31834 | fi | |
31835 | fi | |
31836 | ||
31837 | if test "$wxUSE_MAC" = 1; then | |
31838 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
31839 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
31840 | if test "$GCC" = yes; then | |
31841 | echo "$as_me:$LINENO: result: gcc" >&5 | |
31842 | echo "${ECHO_T}gcc" >&6 | |
31843 | CPPFLAGS_PASCAL="-fpascal-strings" | |
31844 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
31845 | echo "$as_me:$LINENO: result: xlc" >&5 | |
31846 | echo "${ECHO_T}xlc" >&6 | |
31847 | CPPFLAGS_PASCAL="-qmacpstr" | |
31848 | else | |
31849 | echo "$as_me:$LINENO: result: none" >&5 | |
31850 | echo "${ECHO_T}none" >&6 | |
31851 | fi | |
31852 | ||
1e9e8aba | 31853 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 31854 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 31855 | else |
c92ad099 | 31856 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 31857 | fi |
a848cd7e | 31858 | |
a848cd7e SC |
31859 | TOOLKIT=MAC |
31860 | GUIDIST=MACX_DIST | |
dd21ced8 | 31861 | WXBASEPORT="_carbon" |
a848cd7e SC |
31862 | fi |
31863 | ||
31864 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
31865 | TOOLKIT=COCOA |
31866 | GUIDIST=COCOA_DIST | |
31867 | fi | |
31868 | ||
31869 | if test "$wxUSE_PM" = 1; then | |
31870 | TOOLKIT=PM | |
de59c161 RD |
31871 | GUIDIST=PM_DIST |
31872 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
31873 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
31874 | if test "${wx_cv_spbcdata+set}" = set; then | |
31875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31876 | else | |
31877 | ||
31878 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
31879 | /* confdefs.h. */ |
31880 | _ACEOF | |
31881 | cat confdefs.h >>conftest.$ac_ext | |
31882 | cat >>conftest.$ac_ext <<_ACEOF | |
31883 | /* end confdefs.h. */ | |
31884 | ||
31885 | #define INCL_PM | |
31886 | #include <os2.h> | |
31887 | ||
31888 | int | |
31889 | main () | |
31890 | { | |
31891 | ||
31892 | SPBCDATA test; | |
31893 | ||
31894 | ; | |
31895 | return 0; | |
31896 | } | |
31897 | _ACEOF | |
31898 | rm -f conftest.$ac_objext | |
31899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31900 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 31901 | ac_status=$? |
ac1cb8d3 VS |
31902 | grep -v '^ *+' conftest.er1 >conftest.err |
31903 | rm -f conftest.er1 | |
31904 | cat conftest.err >&5 | |
de59c161 RD |
31905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31906 | (exit $ac_status); } && | |
ca5c6ac3 | 31907 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31909 | (eval $ac_try) 2>&5 | |
31910 | ac_status=$? | |
31911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31912 | (exit $ac_status); }; } && | |
31913 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
31914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31915 | (eval $ac_try) 2>&5 | |
31916 | ac_status=$? | |
31917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31918 | (exit $ac_status); }; }; then | |
31919 | wx_cv_spbcdata=yes | |
31920 | else | |
31921 | echo "$as_me: failed program was:" >&5 | |
31922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31923 | ||
31924 | wx_cv_spbcdata=no | |
31925 | ||
31926 | fi | |
ac1cb8d3 | 31927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
31928 | |
31929 | ||
31930 | fi | |
31931 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
31932 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
31933 | ||
31934 | if test $wx_cv_spbcdata = "yes"; then | |
31935 | cat >>confdefs.h <<\_ACEOF | |
31936 | #define HAVE_SPBCDATA 1 | |
31937 | _ACEOF | |
31938 | ||
31939 | fi | |
a848cd7e SC |
31940 | fi |
31941 | ||
31942 | if test "$TOOLKIT" = "PM" ; then | |
31943 | TOOLKIT_DIR="os2" | |
31944 | else | |
31945 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
31946 | fi | |
31947 | ||
a848cd7e | 31948 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
31949 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
31950 | WIDGET_SET=univ | |
a848cd7e SC |
31951 | fi |
31952 | ||
31953 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
31954 | DISTDIR="wx\$(TOOLKIT)" | |
31955 | else | |
31956 | USE_GUI=0 | |
31957 | ||
31958 | TOOLKIT_DIR="base" | |
31959 | ||
31960 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 31961 | TOOLKIT="MSW" |
a848cd7e SC |
31962 | fi |
31963 | ||
a848cd7e SC |
31964 | GUIDIST="BASE_DIST" |
31965 | DISTDIR="wxBase" | |
31966 | fi | |
31967 | ||
31968 | ||
d12aef51 VZ |
31969 | if test "$wxUSE_GUI" = "yes"; then |
31970 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
31971 | ||
31972 | for ac_header in X11/Xlib.h | |
31973 | do | |
31974 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31975 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31976 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31977 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31978 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31980 | fi | |
31981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31982 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31983 | else | |
31984 | # Is the header compilable? | |
31985 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31986 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31987 | cat >conftest.$ac_ext <<_ACEOF | |
31988 | /* confdefs.h. */ | |
31989 | _ACEOF | |
31990 | cat confdefs.h >>conftest.$ac_ext | |
31991 | cat >>conftest.$ac_ext <<_ACEOF | |
31992 | /* end confdefs.h. */ | |
31993 | $ac_includes_default | |
31994 | #include <$ac_header> | |
31995 | _ACEOF | |
31996 | rm -f conftest.$ac_objext | |
31997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31998 | (eval $ac_compile) 2>conftest.er1 | |
31999 | ac_status=$? | |
32000 | grep -v '^ *+' conftest.er1 >conftest.err | |
32001 | rm -f conftest.er1 | |
32002 | cat conftest.err >&5 | |
32003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32004 | (exit $ac_status); } && | |
ca5c6ac3 | 32005 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
32006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32007 | (eval $ac_try) 2>&5 | |
32008 | ac_status=$? | |
32009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32010 | (exit $ac_status); }; } && | |
32011 | { ac_try='test -s conftest.$ac_objext' | |
32012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32013 | (eval $ac_try) 2>&5 | |
32014 | ac_status=$? | |
32015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32016 | (exit $ac_status); }; }; then | |
32017 | ac_header_compiler=yes | |
32018 | else | |
32019 | echo "$as_me: failed program was:" >&5 | |
32020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32021 | ||
32022 | ac_header_compiler=no | |
32023 | fi | |
32024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32025 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
32026 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32027 | ||
32028 | # Is the header present? | |
32029 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32030 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32031 | cat >conftest.$ac_ext <<_ACEOF | |
32032 | /* confdefs.h. */ | |
32033 | _ACEOF | |
32034 | cat confdefs.h >>conftest.$ac_ext | |
32035 | cat >>conftest.$ac_ext <<_ACEOF | |
32036 | /* end confdefs.h. */ | |
32037 | #include <$ac_header> | |
32038 | _ACEOF | |
32039 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32040 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32041 | ac_status=$? | |
32042 | grep -v '^ *+' conftest.er1 >conftest.err | |
32043 | rm -f conftest.er1 | |
32044 | cat conftest.err >&5 | |
32045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32046 | (exit $ac_status); } >/dev/null; then | |
32047 | if test -s conftest.err; then | |
5d7b7554 VZ |
32048 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
32049 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
d12aef51 VZ |
32050 | else |
32051 | ac_cpp_err= | |
32052 | fi | |
32053 | else | |
32054 | ac_cpp_err=yes | |
32055 | fi | |
32056 | if test -z "$ac_cpp_err"; then | |
32057 | ac_header_preproc=yes | |
32058 | else | |
32059 | echo "$as_me: failed program was:" >&5 | |
32060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32061 | ||
32062 | ac_header_preproc=no | |
32063 | fi | |
32064 | rm -f conftest.err conftest.$ac_ext | |
32065 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32066 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32067 | ||
32068 | # So? What about this header? | |
5d7b7554 | 32069 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
d12aef51 VZ |
32070 | yes:no: ) |
32071 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
32072 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
32074 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32075 | ac_header_preproc=yes | |
32076 | ;; | |
32077 | no:yes:* ) | |
32078 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
32079 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32080 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
32081 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32082 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32083 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32084 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32085 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
32086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32088 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
32089 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
32090 | ( | |
32091 | cat <<\_ASBOX | |
32092 | ## ----------------------------------------- ## | |
32093 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32094 | ## ----------------------------------------- ## | |
32095 | _ASBOX | |
32096 | ) | | |
32097 | sed "s/^/$as_me: WARNING: /" >&2 | |
32098 | ;; | |
32099 | esac | |
32100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32104 | else | |
32105 | eval "$as_ac_Header=\$ac_header_preproc" | |
32106 | fi | |
32107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32109 | ||
32110 | fi | |
32111 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32112 | cat >>confdefs.h <<_ACEOF | |
32113 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32114 | _ACEOF | |
32115 | ||
32116 | fi | |
32117 | ||
32118 | done | |
32119 | ||
32120 | ||
32121 | for ac_header in X11/XKBlib.h | |
32122 | do | |
32123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32124 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32128 | else | |
32129 | cat >conftest.$ac_ext <<_ACEOF | |
32130 | /* confdefs.h. */ | |
32131 | _ACEOF | |
32132 | cat confdefs.h >>conftest.$ac_ext | |
32133 | cat >>conftest.$ac_ext <<_ACEOF | |
32134 | /* end confdefs.h. */ | |
32135 | ||
32136 | #if HAVE_X11_XLIB_H | |
32137 | #include <X11/Xlib.h> | |
32138 | #endif | |
32139 | ||
32140 | ||
32141 | #include <$ac_header> | |
32142 | _ACEOF | |
32143 | rm -f conftest.$ac_objext | |
32144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32145 | (eval $ac_compile) 2>conftest.er1 | |
32146 | ac_status=$? | |
32147 | grep -v '^ *+' conftest.er1 >conftest.err | |
32148 | rm -f conftest.er1 | |
32149 | cat conftest.err >&5 | |
32150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32151 | (exit $ac_status); } && | |
ca5c6ac3 | 32152 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
32153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32154 | (eval $ac_try) 2>&5 | |
32155 | ac_status=$? | |
32156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32157 | (exit $ac_status); }; } && | |
32158 | { ac_try='test -s conftest.$ac_objext' | |
32159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32160 | (eval $ac_try) 2>&5 | |
32161 | ac_status=$? | |
32162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32163 | (exit $ac_status); }; }; then | |
32164 | eval "$as_ac_Header=yes" | |
32165 | else | |
32166 | echo "$as_me: failed program was:" >&5 | |
32167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32168 | ||
32169 | eval "$as_ac_Header=no" | |
32170 | fi | |
32171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32172 | fi | |
32173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32174 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32175 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32176 | cat >>confdefs.h <<_ACEOF | |
32177 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32178 | _ACEOF | |
32179 | ||
32180 | fi | |
32181 | ||
32182 | done | |
32183 | ||
32184 | fi | |
32185 | fi | |
32186 | ||
a848cd7e SC |
32187 | |
32188 | ||
32189 | IODBC_C_SRC="" | |
32190 | ||
32191 | ||
32192 | if test "$TOOLKIT" != "MSW" ; then | |
32193 | ||
32194 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
32195 | ||
32196 | if test "${ac_cv_header_sql_h+set}" = set; then | |
32197 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
32198 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
32199 | if test "${ac_cv_header_sql_h+set}" = set; then | |
32200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32201 | fi | |
32202 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
32203 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
32204 | else | |
32205 | # Is the header compilable? | |
32206 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
32207 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
32208 | cat >conftest.$ac_ext <<_ACEOF | |
32209 | /* confdefs.h. */ | |
32210 | _ACEOF | |
32211 | cat confdefs.h >>conftest.$ac_ext | |
32212 | cat >>conftest.$ac_ext <<_ACEOF | |
32213 | /* end confdefs.h. */ | |
32214 | $ac_includes_default | |
32215 | #include <sql.h> | |
32216 | _ACEOF | |
32217 | rm -f conftest.$ac_objext | |
32218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32219 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32220 | ac_status=$? |
ac1cb8d3 VS |
32221 | grep -v '^ *+' conftest.er1 >conftest.err |
32222 | rm -f conftest.er1 | |
32223 | cat conftest.err >&5 | |
a848cd7e SC |
32224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32225 | (exit $ac_status); } && | |
ca5c6ac3 | 32226 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32228 | (eval $ac_try) 2>&5 | |
32229 | ac_status=$? | |
32230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32231 | (exit $ac_status); }; } && | |
32232 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32234 | (eval $ac_try) 2>&5 | |
32235 | ac_status=$? | |
32236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32237 | (exit $ac_status); }; }; then | |
32238 | ac_header_compiler=yes | |
32239 | else | |
32240 | echo "$as_me: failed program was:" >&5 | |
32241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32242 | ||
32243 | ac_header_compiler=no | |
32244 | fi | |
ac1cb8d3 | 32245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32246 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32247 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32248 | ||
32249 | # Is the header present? | |
32250 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
32251 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
32252 | cat >conftest.$ac_ext <<_ACEOF | |
32253 | /* confdefs.h. */ | |
32254 | _ACEOF | |
32255 | cat confdefs.h >>conftest.$ac_ext | |
32256 | cat >>conftest.$ac_ext <<_ACEOF | |
32257 | /* end confdefs.h. */ | |
32258 | #include <sql.h> | |
32259 | _ACEOF | |
32260 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32261 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32262 | ac_status=$? | |
32263 | grep -v '^ *+' conftest.er1 >conftest.err | |
32264 | rm -f conftest.er1 | |
32265 | cat conftest.err >&5 | |
32266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32267 | (exit $ac_status); } >/dev/null; then | |
32268 | if test -s conftest.err; then | |
5d7b7554 VZ |
32269 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
32270 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
32271 | else |
32272 | ac_cpp_err= | |
32273 | fi | |
32274 | else | |
32275 | ac_cpp_err=yes | |
32276 | fi | |
32277 | if test -z "$ac_cpp_err"; then | |
32278 | ac_header_preproc=yes | |
32279 | else | |
32280 | echo "$as_me: failed program was:" >&5 | |
32281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32282 | ||
32283 | ac_header_preproc=no | |
32284 | fi | |
32285 | rm -f conftest.err conftest.$ac_ext | |
32286 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32287 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32288 | ||
32289 | # So? What about this header? | |
5d7b7554 | 32290 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 32291 | yes:no: ) |
a848cd7e SC |
32292 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
32293 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32294 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
32295 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
32296 | ac_header_preproc=yes | |
a848cd7e | 32297 | ;; |
ac1cb8d3 | 32298 | no:yes:* ) |
a848cd7e SC |
32299 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
32300 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32301 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
32302 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
32303 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
32304 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
32305 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
32306 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32307 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
32308 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32309 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
32310 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32311 | ( |
32312 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32313 | ## ----------------------------------------- ## |
32314 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32315 | ## ----------------------------------------- ## | |
a848cd7e SC |
32316 | _ASBOX |
32317 | ) | | |
32318 | sed "s/^/$as_me: WARNING: /" >&2 | |
32319 | ;; | |
32320 | esac | |
32321 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
32322 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
32323 | if test "${ac_cv_header_sql_h+set}" = set; then | |
32324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32325 | else | |
32326 | ac_cv_header_sql_h=$ac_header_preproc | |
32327 | fi | |
32328 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
32329 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
32330 | ||
32331 | fi | |
32332 | if test $ac_cv_header_sql_h = yes; then | |
32333 | found_sql_h=1 | |
32334 | fi | |
32335 | ||
32336 | ||
32337 | if test "x$found_sql_h" = "x1" ; then | |
32338 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
32339 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
32340 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
32341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32342 | else | |
32343 | ac_check_lib_save_LIBS=$LIBS | |
32344 | LIBS="-liodbc $LIBS" | |
32345 | cat >conftest.$ac_ext <<_ACEOF | |
32346 | /* confdefs.h. */ | |
32347 | _ACEOF | |
32348 | cat confdefs.h >>conftest.$ac_ext | |
32349 | cat >>conftest.$ac_ext <<_ACEOF | |
32350 | /* end confdefs.h. */ | |
32351 | ||
32352 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32353 | #ifdef __cplusplus | |
32354 | extern "C" | |
32355 | #endif | |
32356 | /* We use char because int might match the return type of a gcc2 | |
32357 | builtin and then its argument prototype would still apply. */ | |
32358 | char SQLAllocEnv (); | |
32359 | int | |
32360 | main () | |
32361 | { | |
32362 | SQLAllocEnv (); | |
32363 | ; | |
32364 | return 0; | |
32365 | } | |
32366 | _ACEOF | |
32367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32369 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32370 | ac_status=$? |
ac1cb8d3 VS |
32371 | grep -v '^ *+' conftest.er1 >conftest.err |
32372 | rm -f conftest.er1 | |
32373 | cat conftest.err >&5 | |
a848cd7e SC |
32374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32375 | (exit $ac_status); } && | |
ca5c6ac3 | 32376 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32378 | (eval $ac_try) 2>&5 | |
32379 | ac_status=$? | |
32380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32381 | (exit $ac_status); }; } && | |
32382 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32384 | (eval $ac_try) 2>&5 | |
32385 | ac_status=$? | |
32386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32387 | (exit $ac_status); }; }; then | |
32388 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
32389 | else | |
32390 | echo "$as_me: failed program was:" >&5 | |
32391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32392 | ||
32393 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
32394 | fi | |
ac1cb8d3 VS |
32395 | rm -f conftest.err conftest.$ac_objext \ |
32396 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32397 | LIBS=$ac_check_lib_save_LIBS |
32398 | fi | |
32399 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
32400 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
32401 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
32402 | ODBC_LINK=" -liodbc" | |
32403 | else | |
32404 | ||
32405 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
32406 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
32407 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
32408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32409 | else | |
32410 | ac_check_lib_save_LIBS=$LIBS | |
32411 | LIBS="-lunixodbc $LIBS" | |
32412 | cat >conftest.$ac_ext <<_ACEOF | |
32413 | /* confdefs.h. */ | |
32414 | _ACEOF | |
32415 | cat confdefs.h >>conftest.$ac_ext | |
32416 | cat >>conftest.$ac_ext <<_ACEOF | |
32417 | /* end confdefs.h. */ | |
32418 | ||
32419 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32420 | #ifdef __cplusplus | |
32421 | extern "C" | |
32422 | #endif | |
32423 | /* We use char because int might match the return type of a gcc2 | |
32424 | builtin and then its argument prototype would still apply. */ | |
32425 | char SQLAllocEnv (); | |
32426 | int | |
32427 | main () | |
32428 | { | |
32429 | SQLAllocEnv (); | |
32430 | ; | |
32431 | return 0; | |
32432 | } | |
32433 | _ACEOF | |
32434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32436 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32437 | ac_status=$? |
ac1cb8d3 VS |
32438 | grep -v '^ *+' conftest.er1 >conftest.err |
32439 | rm -f conftest.er1 | |
32440 | cat conftest.err >&5 | |
a848cd7e SC |
32441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32442 | (exit $ac_status); } && | |
ca5c6ac3 | 32443 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32445 | (eval $ac_try) 2>&5 | |
32446 | ac_status=$? | |
32447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32448 | (exit $ac_status); }; } && | |
32449 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32451 | (eval $ac_try) 2>&5 | |
32452 | ac_status=$? | |
32453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32454 | (exit $ac_status); }; }; then | |
32455 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
32456 | else | |
32457 | echo "$as_me: failed program was:" >&5 | |
32458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32459 | ||
32460 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
32461 | fi | |
ac1cb8d3 VS |
32462 | rm -f conftest.err conftest.$ac_objext \ |
32463 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32464 | LIBS=$ac_check_lib_save_LIBS |
32465 | fi | |
32466 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
32467 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
32468 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
32469 | ODBC_LINK=" -lunixodbc" | |
32470 | else | |
32471 | ||
32472 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
32473 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
32474 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
32475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32476 | else | |
32477 | ac_check_lib_save_LIBS=$LIBS | |
32478 | LIBS="-lodbc $LIBS" | |
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 | ||
32486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32487 | #ifdef __cplusplus | |
32488 | extern "C" | |
32489 | #endif | |
32490 | /* We use char because int might match the return type of a gcc2 | |
32491 | builtin and then its argument prototype would still apply. */ | |
32492 | char SQLAllocEnv (); | |
32493 | int | |
32494 | main () | |
32495 | { | |
32496 | SQLAllocEnv (); | |
32497 | ; | |
32498 | return 0; | |
32499 | } | |
32500 | _ACEOF | |
32501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32503 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32504 | ac_status=$? |
ac1cb8d3 VS |
32505 | grep -v '^ *+' conftest.er1 >conftest.err |
32506 | rm -f conftest.er1 | |
32507 | cat conftest.err >&5 | |
a848cd7e SC |
32508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32509 | (exit $ac_status); } && | |
ca5c6ac3 | 32510 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32512 | (eval $ac_try) 2>&5 | |
32513 | ac_status=$? | |
32514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32515 | (exit $ac_status); }; } && | |
32516 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32518 | (eval $ac_try) 2>&5 | |
32519 | ac_status=$? | |
32520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32521 | (exit $ac_status); }; }; then | |
32522 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
32523 | else | |
32524 | echo "$as_me: failed program was:" >&5 | |
32525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32526 | ||
32527 | ac_cv_lib_odbc_SQLAllocEnv=no | |
32528 | fi | |
ac1cb8d3 VS |
32529 | rm -f conftest.err conftest.$ac_objext \ |
32530 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32531 | LIBS=$ac_check_lib_save_LIBS |
32532 | fi | |
32533 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
32534 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
32535 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
32536 | ODBC_LINK=" -lodbc" | |
32537 | fi | |
32538 | ||
32539 | ||
32540 | fi | |
32541 | ||
32542 | ||
32543 | fi | |
32544 | ||
32545 | fi | |
32546 | if test "x$ODBC_LINK" = "x" ; then | |
32547 | if test "$wxUSE_ODBC" = "sys" ; then | |
32548 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
32549 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
32550 | { (exit 1); exit 1; }; } | |
32551 | else | |
32552 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
32553 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
32554 | wxUSE_ODBC=builtin | |
32555 | fi | |
32556 | else | |
32557 | wxUSE_ODBC=sys | |
32558 | fi | |
32559 | fi | |
a848cd7e | 32560 | |
2da0c077 RD |
32561 | if test "$wxUSE_ODBC" = "builtin" ; then |
32562 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
32563 | #define wxUSE_BUILTIN_IODBC 1 |
32564 | _ACEOF | |
32565 | ||
a848cd7e SC |
32566 | fi |
32567 | fi | |
32568 | ||
2da0c077 RD |
32569 | if test "$wxUSE_ODBC" != "no" ; then |
32570 | cat >>confdefs.h <<\_ACEOF | |
32571 | #define wxUSE_ODBC 1 | |
32572 | _ACEOF | |
32573 | ||
32574 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
32575 | ||
5ff751d6 | 32576 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 32577 | fi |
a848cd7e | 32578 | |
01cb68df | 32579 | |
a848cd7e | 32580 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 32581 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
32582 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
32583 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
32584 | ||
0ad5d837 VZ |
32585 | ac_find_libraries= |
32586 | for ac_dir in $SEARCH_LIB; | |
32587 | do | |
32588 | for ac_extension in a so sl dylib dll.a; do | |
32589 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
32590 | ac_find_libraries=$ac_dir | |
32591 | break 2 | |
32592 | fi | |
32593 | done | |
32594 | done | |
32595 | ||
a848cd7e SC |
32596 | if test "$ac_find_libraries" != "" ; then |
32597 | ||
0ad5d837 | 32598 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32599 | ac_path_to_link="" |
32600 | else | |
0ad5d837 VZ |
32601 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32602 | result=$? | |
32603 | if test $result = 0; then | |
32604 | ac_path_to_link="" | |
32605 | else | |
32606 | ac_path_to_link=" -L$ac_find_libraries" | |
32607 | fi | |
a848cd7e SC |
32608 | fi |
32609 | ||
32610 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
32611 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
32612 | fi | |
32613 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
32614 | echo "$as_me:$LINENO: result: yes" >&5 | |
32615 | echo "${ECHO_T}yes" >&6 | |
32616 | ||
32617 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
32618 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
32619 | ||
0ad5d837 VZ |
32620 | ac_find_libraries= |
32621 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32622 | do |
3eca31dc | 32623 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32624 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
32625 | ac_find_libraries=$ac_dir | |
32626 | break 2 | |
32627 | fi | |
32628 | done | |
32629 | done | |
32630 | ||
32631 | if test "$ac_find_libraries" != "" ; then | |
32632 | echo "$as_me:$LINENO: result: yes" >&5 | |
32633 | echo "${ECHO_T}yes" >&6 | |
32634 | ||
32635 | for ac_header in X11/extensions/xf86vmode.h | |
32636 | do | |
32637 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32642 | else | |
32643 | cat >conftest.$ac_ext <<_ACEOF | |
32644 | /* confdefs.h. */ | |
32645 | _ACEOF | |
32646 | cat confdefs.h >>conftest.$ac_ext | |
32647 | cat >>conftest.$ac_ext <<_ACEOF | |
32648 | /* end confdefs.h. */ | |
32649 | ||
32650 | #if HAVE_X11_XLIB_H | |
32651 | #include <X11/Xlib.h> | |
32652 | #endif | |
32653 | ||
32654 | ||
32655 | #include <$ac_header> | |
32656 | _ACEOF | |
32657 | rm -f conftest.$ac_objext | |
32658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32659 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32660 | ac_status=$? |
ac1cb8d3 VS |
32661 | grep -v '^ *+' conftest.er1 >conftest.err |
32662 | rm -f conftest.er1 | |
32663 | cat conftest.err >&5 | |
a848cd7e SC |
32664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32665 | (exit $ac_status); } && | |
ca5c6ac3 | 32666 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32668 | (eval $ac_try) 2>&5 | |
32669 | ac_status=$? | |
32670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32671 | (exit $ac_status); }; } && | |
32672 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32674 | (eval $ac_try) 2>&5 | |
32675 | ac_status=$? | |
32676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32677 | (exit $ac_status); }; }; then | |
32678 | eval "$as_ac_Header=yes" | |
32679 | else | |
32680 | echo "$as_me: failed program was:" >&5 | |
32681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32682 | ||
32683 | eval "$as_ac_Header=no" | |
32684 | fi | |
ac1cb8d3 | 32685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32686 | fi |
32687 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32688 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32689 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32690 | cat >>confdefs.h <<_ACEOF | |
32691 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32692 | _ACEOF | |
32693 | ||
32694 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
32695 | ||
32696 | fi | |
32697 | ||
32698 | done | |
32699 | ||
32700 | else | |
32701 | echo "$as_me:$LINENO: result: no" >&5 | |
32702 | echo "${ECHO_T}no" >&6 | |
32703 | fi | |
32704 | ||
32705 | else | |
32706 | echo "$as_me:$LINENO: result: no" >&5 | |
32707 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
32708 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
32709 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
32710 | wxUSE_DISPLAY="no" |
32711 | fi | |
01cb68df RG |
32712 | elif test "$wxUSE_MSW" = 1; then |
32713 | ||
e5efa97e | 32714 | for ac_header in ddraw.h |
01cb68df RG |
32715 | do |
32716 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 32717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
32718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
32719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 32721 | else |
5294a27e | 32722 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
32723 | /* confdefs.h. */ |
32724 | _ACEOF | |
32725 | cat confdefs.h >>conftest.$ac_ext | |
32726 | cat >>conftest.$ac_ext <<_ACEOF | |
32727 | /* end confdefs.h. */ | |
5294a27e VZ |
32728 | #include <windows.h> |
32729 | ||
01cb68df RG |
32730 | #include <$ac_header> |
32731 | _ACEOF | |
32732 | rm -f conftest.$ac_objext | |
32733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32734 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 32735 | ac_status=$? |
ac1cb8d3 VS |
32736 | grep -v '^ *+' conftest.er1 >conftest.err |
32737 | rm -f conftest.er1 | |
32738 | cat conftest.err >&5 | |
01cb68df RG |
32739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32740 | (exit $ac_status); } && | |
ca5c6ac3 | 32741 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32743 | (eval $ac_try) 2>&5 | |
32744 | ac_status=$? | |
32745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32746 | (exit $ac_status); }; } && | |
32747 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
32748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32749 | (eval $ac_try) 2>&5 | |
32750 | ac_status=$? | |
32751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32752 | (exit $ac_status); }; }; then | |
5294a27e | 32753 | eval "$as_ac_Header=yes" |
01cb68df RG |
32754 | else |
32755 | echo "$as_me: failed program was:" >&5 | |
32756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32757 | ||
5294a27e | 32758 | eval "$as_ac_Header=no" |
01cb68df | 32759 | fi |
ac1cb8d3 | 32760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
32761 | fi |
32762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32763 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
32764 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32765 | cat >>confdefs.h <<_ACEOF | |
32766 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32767 | _ACEOF | |
32768 | ||
01cb68df RG |
32769 | fi |
32770 | ||
32771 | done | |
32772 | ||
a848cd7e SC |
32773 | fi |
32774 | fi | |
32775 | ||
32776 | ||
32777 | USE_OPENGL=0 | |
32778 | if test "$wxUSE_OPENGL" = "yes"; then | |
32779 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
32780 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
32781 | elif test "$wxUSE_MSW" = 1; then | |
32782 | OPENGL_LIBS="-lopengl32 -lglu32" | |
32783 | else | |
32784 | ||
32785 | ||
32786 | ac_find_includes= | |
32787 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
32788 | do | |
32789 | if test -f "$ac_dir/GL/gl.h"; then | |
32790 | ac_find_includes=$ac_dir | |
32791 | break | |
32792 | fi | |
32793 | done | |
32794 | ||
32795 | if test "$ac_find_includes" != "" ; then | |
32796 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
32797 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
32798 | ||
32799 | if test "x$ac_find_includes" = "x/usr/include"; then | |
32800 | ac_path_to_include="" | |
32801 | else | |
32802 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
32803 | result=$? | |
32804 | if test $result = 0; then | |
32805 | ac_path_to_include="" | |
32806 | else | |
32807 | ac_path_to_include=" -I$ac_find_includes" | |
32808 | fi | |
32809 | fi | |
32810 | ||
c92ad099 | 32811 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
32812 | fi |
32813 | ||
32814 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32815 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
32816 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
32817 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32819 | fi | |
32820 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
32821 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
32822 | else | |
32823 | # Is the header compilable? | |
32824 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
32825 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
32826 | cat >conftest.$ac_ext <<_ACEOF | |
32827 | /* confdefs.h. */ | |
32828 | _ACEOF | |
32829 | cat confdefs.h >>conftest.$ac_ext | |
32830 | cat >>conftest.$ac_ext <<_ACEOF | |
32831 | /* end confdefs.h. */ | |
32832 | $ac_includes_default | |
32833 | #include <GL/gl.h> | |
32834 | _ACEOF | |
32835 | rm -f conftest.$ac_objext | |
32836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32837 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32838 | ac_status=$? |
ac1cb8d3 VS |
32839 | grep -v '^ *+' conftest.er1 >conftest.err |
32840 | rm -f conftest.er1 | |
32841 | cat conftest.err >&5 | |
a848cd7e SC |
32842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32843 | (exit $ac_status); } && | |
ca5c6ac3 | 32844 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32846 | (eval $ac_try) 2>&5 | |
32847 | ac_status=$? | |
32848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32849 | (exit $ac_status); }; } && | |
32850 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32852 | (eval $ac_try) 2>&5 | |
32853 | ac_status=$? | |
32854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32855 | (exit $ac_status); }; }; then | |
32856 | ac_header_compiler=yes | |
32857 | else | |
32858 | echo "$as_me: failed program was:" >&5 | |
32859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32860 | ||
32861 | ac_header_compiler=no | |
32862 | fi | |
ac1cb8d3 | 32863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32864 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32865 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32866 | ||
32867 | # Is the header present? | |
32868 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
32869 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
32870 | cat >conftest.$ac_ext <<_ACEOF | |
32871 | /* confdefs.h. */ | |
32872 | _ACEOF | |
32873 | cat confdefs.h >>conftest.$ac_ext | |
32874 | cat >>conftest.$ac_ext <<_ACEOF | |
32875 | /* end confdefs.h. */ | |
32876 | #include <GL/gl.h> | |
32877 | _ACEOF | |
32878 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32879 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32880 | ac_status=$? | |
32881 | grep -v '^ *+' conftest.er1 >conftest.err | |
32882 | rm -f conftest.er1 | |
32883 | cat conftest.err >&5 | |
32884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32885 | (exit $ac_status); } >/dev/null; then | |
32886 | if test -s conftest.err; then | |
5d7b7554 VZ |
32887 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
32888 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
32889 | else |
32890 | ac_cpp_err= | |
32891 | fi | |
32892 | else | |
32893 | ac_cpp_err=yes | |
32894 | fi | |
32895 | if test -z "$ac_cpp_err"; then | |
32896 | ac_header_preproc=yes | |
32897 | else | |
32898 | echo "$as_me: failed program was:" >&5 | |
32899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32900 | ||
32901 | ac_header_preproc=no | |
32902 | fi | |
32903 | rm -f conftest.err conftest.$ac_ext | |
32904 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32905 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32906 | ||
32907 | # So? What about this header? | |
5d7b7554 | 32908 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 32909 | yes:no: ) |
a848cd7e SC |
32910 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
32911 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32912 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
32913 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
32914 | ac_header_preproc=yes | |
a848cd7e | 32915 | ;; |
ac1cb8d3 | 32916 | no:yes:* ) |
a848cd7e SC |
32917 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
32918 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32919 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
32920 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
32921 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
32922 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
32923 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
32924 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32925 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
32926 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32927 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
32928 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32929 | ( |
32930 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32931 | ## ----------------------------------------- ## |
32932 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32933 | ## ----------------------------------------- ## | |
a848cd7e SC |
32934 | _ASBOX |
32935 | ) | | |
32936 | sed "s/^/$as_me: WARNING: /" >&2 | |
32937 | ;; | |
32938 | esac | |
32939 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
32940 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
32941 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32943 | else | |
32944 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
32945 | fi | |
32946 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
32947 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
32948 | ||
32949 | fi | |
32950 | if test $ac_cv_header_GL_gl_h = yes; then | |
32951 | ||
32952 | found_gl=0 | |
32953 | ||
32954 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
32955 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
32956 | ||
0ad5d837 VZ |
32957 | ac_find_libraries= |
32958 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32959 | do |
3eca31dc | 32960 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32961 | if test -f "$ac_dir/libGL.$ac_extension"; then |
32962 | ac_find_libraries=$ac_dir | |
32963 | break 2 | |
32964 | fi | |
32965 | done | |
32966 | done | |
32967 | ||
32968 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
32969 | echo "$as_me:$LINENO: result: yes" >&5 |
32970 | echo "${ECHO_T}yes" >&6 | |
32971 | ||
a848cd7e | 32972 | |
0ad5d837 | 32973 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32974 | ac_path_to_link="" |
32975 | else | |
0ad5d837 VZ |
32976 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32977 | result=$? | |
32978 | if test $result = 0; then | |
32979 | ac_path_to_link="" | |
32980 | else | |
32981 | ac_path_to_link=" -L$ac_find_libraries" | |
32982 | fi | |
a848cd7e SC |
32983 | fi |
32984 | ||
32985 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
32986 | LDFLAGS_GL="$ac_path_to_link" | |
32987 | fi | |
32988 | ||
69120ee4 VZ |
32989 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
32990 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 32991 | |
0ad5d837 VZ |
32992 | ac_find_libraries= |
32993 | for ac_dir in $SEARCH_LIB; | |
32994 | do | |
32995 | for ac_extension in a so sl dylib dll.a; do | |
32996 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
32997 | ac_find_libraries=$ac_dir | |
32998 | break 2 | |
32999 | fi | |
33000 | done | |
33001 | done | |
33002 | ||
a848cd7e SC |
33003 | if test "$ac_find_libraries" != "" ; then |
33004 | ||
0ad5d837 | 33005 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
33006 | ac_path_to_link="" |
33007 | else | |
0ad5d837 VZ |
33008 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
33009 | result=$? | |
33010 | if test $result = 0; then | |
33011 | ac_path_to_link="" | |
33012 | else | |
33013 | ac_path_to_link=" -L$ac_find_libraries" | |
33014 | fi | |
a848cd7e SC |
33015 | fi |
33016 | ||
33017 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
33018 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
33019 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
33020 | fi | |
33021 | ||
33022 | found_gl=1 | |
33023 | OPENGL_LIBS="-lGL -lGLU" | |
33024 | echo "$as_me:$LINENO: result: yes" >&5 | |
33025 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
33026 | else |
33027 | echo "$as_me:$LINENO: result: no" >&5 | |
33028 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 33029 | fi |
69120ee4 VZ |
33030 | else |
33031 | echo "$as_me:$LINENO: result: no" >&5 | |
33032 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
33033 | fi |
33034 | ||
33035 | if test "$found_gl" != 1; then | |
a848cd7e SC |
33036 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
33037 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
33038 | ||
0ad5d837 VZ |
33039 | ac_find_libraries= |
33040 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 33041 | do |
3eca31dc | 33042 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
33043 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
33044 | ac_find_libraries=$ac_dir | |
33045 | break 2 | |
33046 | fi | |
33047 | done | |
33048 | done | |
33049 | ||
33050 | if test "$ac_find_libraries" != "" ; then | |
33051 | ||
0ad5d837 | 33052 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
33053 | ac_path_to_link="" |
33054 | else | |
0ad5d837 VZ |
33055 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
33056 | result=$? | |
33057 | if test $result = 0; then | |
33058 | ac_path_to_link="" | |
33059 | else | |
33060 | ac_path_to_link=" -L$ac_find_libraries" | |
33061 | fi | |
a848cd7e SC |
33062 | fi |
33063 | ||
33064 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
33065 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
33066 | echo "$as_me:$LINENO: result: yes" >&5 | |
33067 | echo "${ECHO_T}yes" >&6 | |
33068 | else | |
33069 | echo "$as_me:$LINENO: result: no" >&5 | |
33070 | echo "${ECHO_T}no" >&6 | |
33071 | fi | |
33072 | fi | |
33073 | ||
33074 | fi | |
33075 | ||
33076 | ||
33077 | ||
33078 | if test "x$OPENGL_LIBS" = "x"; then | |
33079 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
33080 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
33081 | { (exit 1); exit 1; }; } | |
33082 | fi | |
33083 | fi | |
33084 | ||
33085 | if test "$wxUSE_OPENGL" = "yes"; then | |
33086 | USE_OPENGL=1 | |
33087 | cat >>confdefs.h <<\_ACEOF | |
33088 | #define wxUSE_OPENGL 1 | |
33089 | _ACEOF | |
33090 | ||
33091 | cat >>confdefs.h <<\_ACEOF | |
33092 | #define wxUSE_GLCANVAS 1 | |
33093 | _ACEOF | |
33094 | ||
33095 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
33096 | fi | |
33097 | fi | |
33098 | ||
a848cd7e SC |
33099 | |
33100 | if test -n "$TOOLKIT" ; then | |
33101 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
33102 | fi | |
33103 | ||
a848cd7e SC |
33104 | |
33105 | ||
33106 | if test "$wxUSE_SHARED" = "yes"; then | |
33107 | case "${host}" in | |
33108 | *-pc-msdosdjgpp ) | |
33109 | wxUSE_SHARED=no | |
33110 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
33111 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
33112 | ;; | |
33113 | esac | |
33114 | fi | |
33115 | ||
a848cd7e | 33116 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
33117 | |
33118 | ||
33119 | found_versioning=no | |
33120 | ||
33121 | ||
33122 | if test $found_versioning = no ; then | |
33123 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
33124 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
33125 | if test "${wx_cv_version_script+set}" = set; then | |
33126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33127 | else | |
33128 | ||
33129 | echo "VER_1 { *; };" >conftest.sym | |
33130 | echo "int main() { return 0; }" >conftest.cpp | |
33131 | ||
33132 | if { ac_try=' | |
33133 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
33134 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
33135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33136 | (eval $ac_try) 2>&5 | |
33137 | ac_status=$? | |
33138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33139 | (exit $ac_status); }; } ; then | |
33140 | if test -s conftest.stderr ; then | |
33141 | wx_cv_version_script=no | |
33142 | else | |
33143 | wx_cv_version_script=yes | |
33144 | fi | |
33145 | else | |
33146 | wx_cv_version_script=no | |
33147 | fi | |
e5d4b470 MW |
33148 | |
33149 | if test $wx_cv_version_script = yes | |
33150 | then | |
33151 | echo "struct B { virtual ~B() { } }; \ | |
33152 | struct D : public B { }; \ | |
33153 | void F() { D d; }" > conftest.cpp | |
33154 | ||
33155 | if { ac_try=' | |
33156 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
33157 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
33158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33159 | (eval $ac_try) 2>&5 | |
33160 | ac_status=$? | |
33161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33162 | (exit $ac_status); }; } && | |
33163 | { ac_try=' | |
33164 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
33165 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
33166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33167 | (eval $ac_try) 2>&5 | |
33168 | ac_status=$? | |
33169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33170 | (exit $ac_status); }; } | |
33171 | then | |
33172 | if { ac_try=' | |
33173 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
33174 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
33175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33176 | (eval $ac_try) 2>&5 | |
33177 | ac_status=$? | |
33178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33179 | (exit $ac_status); }; } | |
33180 | then | |
33181 | wx_cv_version_script=yes | |
33182 | else | |
33183 | wx_cv_version_script=no | |
33184 | fi | |
33185 | fi | |
33186 | fi | |
33187 | ||
a848cd7e | 33188 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 33189 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
33190 | |
33191 | fi | |
33192 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
33193 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
33194 | if test $wx_cv_version_script = yes ; then | |
33195 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
33196 | fi | |
33197 | fi | |
33198 | ||
33199 | ||
33200 | case "${host}" in | |
33201 | *-*-linux* | *-*-gnu* ) | |
33202 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 33203 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 33204 | ;; |
a848cd7e SC |
33205 | |
33206 | *-*-solaris2* ) | |
33207 | if test "$GCC" = yes ; then | |
c92ad099 | 33208 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
33209 | |
33210 | saveLdflags="$LDFLAGS" | |
33211 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
33212 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
33213 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
33214 | cat >conftest.$ac_ext <<_ACEOF | |
33215 | /* confdefs.h. */ | |
33216 | _ACEOF | |
33217 | cat confdefs.h >>conftest.$ac_ext | |
33218 | cat >>conftest.$ac_ext <<_ACEOF | |
33219 | /* end confdefs.h. */ | |
33220 | ||
33221 | int | |
33222 | main () | |
33223 | { | |
33224 | ||
33225 | ; | |
33226 | return 0; | |
33227 | } | |
33228 | _ACEOF | |
33229 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33231 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33232 | ac_status=$? |
ac1cb8d3 VS |
33233 | grep -v '^ *+' conftest.er1 >conftest.err |
33234 | rm -f conftest.er1 | |
33235 | cat conftest.err >&5 | |
a848cd7e SC |
33236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33237 | (exit $ac_status); } && | |
ca5c6ac3 | 33238 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33240 | (eval $ac_try) 2>&5 | |
33241 | ac_status=$? | |
33242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33243 | (exit $ac_status); }; } && | |
33244 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33246 | (eval $ac_try) 2>&5 | |
33247 | ac_status=$? | |
33248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33249 | (exit $ac_status); }; }; then | |
33250 | ||
33251 | echo "$as_me:$LINENO: result: yes" >&5 | |
33252 | echo "${ECHO_T}yes" >&6 | |
33253 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 33254 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
33255 | |
33256 | else | |
33257 | echo "$as_me: failed program was:" >&5 | |
33258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33259 | ||
33260 | ||
33261 | echo "$as_me:$LINENO: result: no" >&5 | |
33262 | echo "${ECHO_T}no" >&6 | |
33263 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
33264 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
33265 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
33266 | cat >conftest.$ac_ext <<_ACEOF | |
33267 | /* confdefs.h. */ | |
33268 | _ACEOF | |
33269 | cat confdefs.h >>conftest.$ac_ext | |
33270 | cat >>conftest.$ac_ext <<_ACEOF | |
33271 | /* end confdefs.h. */ | |
33272 | ||
33273 | int | |
33274 | main () | |
33275 | { | |
33276 | ||
33277 | ; | |
33278 | return 0; | |
33279 | } | |
33280 | _ACEOF | |
33281 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33283 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33284 | ac_status=$? |
ac1cb8d3 VS |
33285 | grep -v '^ *+' conftest.er1 >conftest.err |
33286 | rm -f conftest.er1 | |
33287 | cat conftest.err >&5 | |
a848cd7e SC |
33288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33289 | (exit $ac_status); } && | |
ca5c6ac3 | 33290 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33292 | (eval $ac_try) 2>&5 | |
33293 | ac_status=$? | |
33294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33295 | (exit $ac_status); }; } && | |
33296 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33298 | (eval $ac_try) 2>&5 | |
33299 | ac_status=$? | |
33300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33301 | (exit $ac_status); }; }; then | |
33302 | ||
ffa0583f | 33303 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 33304 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
33305 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
33306 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
33307 | ||
a848cd7e SC |
33308 | else |
33309 | echo "$as_me: failed program was:" >&5 | |
33310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33311 | ||
33312 | ||
33313 | echo "$as_me:$LINENO: result: no" >&5 | |
33314 | echo "${ECHO_T}no" >&6 | |
33315 | ||
33316 | fi | |
ac1cb8d3 VS |
33317 | rm -f conftest.err conftest.$ac_objext \ |
33318 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33319 | |
33320 | fi | |
ac1cb8d3 VS |
33321 | rm -f conftest.err conftest.$ac_objext \ |
33322 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33323 | LDFLAGS="$saveLdflags" |
33324 | else | |
a848cd7e | 33325 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 33326 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
33327 | fi |
33328 | ;; | |
33329 | ||
cfda0ea8 | 33330 | *-*-darwin* ) |
0caebc27 MW |
33331 | install_name_tool=`which install_name_tool` |
33332 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
33333 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
33334 | cat <<EOF >change-install-names | |
a848cd7e SC |
33335 | #!/bin/sh |
33336 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
33337 | inst_cmd="install_name_tool " | |
33338 | for i in \${libnames} ; do | |
33339 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
33340 | done | |
33341 | \${inst_cmd} \${3} | |
33342 | EOF | |
0caebc27 MW |
33343 | chmod +x change-install-names |
33344 | fi | |
a848cd7e SC |
33345 | ;; |
33346 | ||
33347 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
33348 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
33349 | ;; | |
a848cd7e | 33350 | |
81f90336 MW |
33351 | *-*-hpux* ) |
33352 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
33353 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 33354 | ;; |
81f90336 | 33355 | |
a848cd7e | 33356 | esac |
ceec2216 | 33357 | |
ffa0583f RL |
33358 | if test $wxUSE_RPATH = "no"; then |
33359 | SAMPLES_RPATH_FLAG='' | |
33360 | SAMPLES_RPATH_POSTLINK='' | |
33361 | WXCONFIG_RPATH='' | |
33362 | fi | |
33363 | ||
33364 | SHARED=1 | |
33365 | ||
33366 | else | |
33367 | ||
ceec2216 RL |
33368 | config_linkage_component="-static" |
33369 | SHARED=0 | |
ffa0583f | 33370 | |
ceec2216 | 33371 | fi |
a848cd7e | 33372 | |
a848cd7e | 33373 | |
ceec2216 RL |
33374 | UNICODE=0 |
33375 | lib_unicode_suffix= | |
33376 | WX_CHARTYPE="ansi" | |
33377 | if test "$wxUSE_UNICODE" = "yes"; then | |
33378 | lib_unicode_suffix=u | |
33379 | WX_CHARTYPE="unicode" | |
33380 | UNICODE=1 | |
a848cd7e SC |
33381 | fi |
33382 | ||
ceec2216 RL |
33383 | lib_debug_suffix= |
33384 | WX_DEBUGTYPE="release" | |
33385 | DEBUG_FLAG=0 | |
33386 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
33387 | lib_debug_suffix=d | |
33388 | WX_DEBUGTYPE="debug" | |
33389 | DEBUG_FLAG=1 | |
33390 | fi | |
a848cd7e | 33391 | |
ceec2216 RL |
33392 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
33393 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 33394 | |
ceec2216 RL |
33395 | DEBUG_INFO=0 |
33396 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
33397 | DEBUG_INFO=1 | |
33398 | fi | |
a848cd7e | 33399 | |
ceec2216 | 33400 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 33401 | |
ceec2216 | 33402 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 33403 | |
ceec2216 | 33404 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 33405 | |
ceec2216 RL |
33406 | if test "$cross_compiling" = "yes"; then |
33407 | HOST_SUFFIX="-$host_alias" | |
33408 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
33409 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
33410 | fi |
33411 | ||
dd21ced8 | 33412 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
33413 | if test "${TOOLKIT_DIR}" = "os2"; then |
33414 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
33415 | else | |
33416 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
33417 | fi | |
ceec2216 RL |
33418 | |
33419 | ||
33420 | ||
1d1af5ea DE |
33421 | if test "$wxUSE_COCOA" = 1; then |
33422 | ||
33423 | ||
33424 | ac_ext=c | |
33425 | ac_cpp='$CPP $CPPFLAGS' | |
33426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33429 | ||
33430 | ac_ext=m | |
33431 | ||
33432 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
33433 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
33434 | cat >conftest.$ac_ext <<_ACEOF | |
33435 | /* confdefs.h. */ | |
33436 | _ACEOF | |
33437 | cat confdefs.h >>conftest.$ac_ext | |
33438 | cat >>conftest.$ac_ext <<_ACEOF | |
33439 | /* end confdefs.h. */ | |
33440 | #include <AppKit/NSEvent.h> | |
33441 | #include <CoreFoundation/CoreFoundation.h> | |
33442 | ||
33443 | int | |
33444 | main () | |
33445 | { | |
33446 | ||
33447 | ; | |
33448 | return 0; | |
33449 | } | |
33450 | _ACEOF | |
33451 | rm -f conftest.$ac_objext | |
33452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33453 | (eval $ac_compile) 2>conftest.er1 | |
33454 | ac_status=$? | |
33455 | grep -v '^ *+' conftest.er1 >conftest.err | |
33456 | rm -f conftest.er1 | |
33457 | cat conftest.err >&5 | |
33458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33459 | (exit $ac_status); } && | |
ca5c6ac3 | 33460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
33461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33462 | (eval $ac_try) 2>&5 | |
33463 | ac_status=$? | |
33464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33465 | (exit $ac_status); }; } && | |
33466 | { ac_try='test -s conftest.$ac_objext' | |
33467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33468 | (eval $ac_try) 2>&5 | |
33469 | ac_status=$? | |
33470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33471 | (exit $ac_status); }; }; then | |
33472 | echo "$as_me:$LINENO: result: no" >&5 | |
33473 | echo "${ECHO_T}no" >&6 | |
33474 | else | |
33475 | echo "$as_me: failed program was:" >&5 | |
33476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33477 | ||
33478 | echo "$as_me:$LINENO: result: yes" >&5 | |
33479 | echo "${ECHO_T}yes" >&6 | |
33480 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
33481 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
33482 | cat >conftest.$ac_ext <<_ACEOF | |
33483 | /* confdefs.h. */ | |
33484 | _ACEOF | |
33485 | cat confdefs.h >>conftest.$ac_ext | |
33486 | cat >>conftest.$ac_ext <<_ACEOF | |
33487 | /* end confdefs.h. */ | |
33488 | #define __Point__ 1 | |
33489 | #include <AppKit/NSEvent.h> | |
33490 | #include <CoreFoundation/CoreFoundation.h> | |
33491 | ||
33492 | int | |
33493 | main () | |
33494 | { | |
33495 | ||
33496 | ; | |
33497 | return 0; | |
33498 | } | |
33499 | _ACEOF | |
33500 | rm -f conftest.$ac_objext | |
33501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33502 | (eval $ac_compile) 2>conftest.er1 | |
33503 | ac_status=$? | |
33504 | grep -v '^ *+' conftest.er1 >conftest.err | |
33505 | rm -f conftest.er1 | |
33506 | cat conftest.err >&5 | |
33507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33508 | (exit $ac_status); } && | |
ca5c6ac3 | 33509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
33510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33511 | (eval $ac_try) 2>&5 | |
33512 | ac_status=$? | |
33513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33514 | (exit $ac_status); }; } && | |
33515 | { ac_try='test -s conftest.$ac_objext' | |
33516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33517 | (eval $ac_try) 2>&5 | |
33518 | ac_status=$? | |
33519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33520 | (exit $ac_status); }; }; then | |
33521 | echo "$as_me:$LINENO: result: yes" >&5 | |
33522 | echo "${ECHO_T}yes" >&6 | |
33523 | cat >>confdefs.h <<\_ACEOF | |
33524 | #define __Point__ 1 | |
33525 | _ACEOF | |
33526 | ||
33527 | ||
33528 | else | |
33529 | echo "$as_me: failed program was:" >&5 | |
33530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33531 | ||
33532 | { { echo "$as_me:$LINENO: error: no | |
33533 | See \`config.log' for more details." >&5 | |
33534 | echo "$as_me: error: no | |
33535 | See \`config.log' for more details." >&2;} | |
33536 | { (exit 1); exit 1; }; } | |
33537 | ||
33538 | fi | |
33539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33540 | ||
33541 | fi | |
33542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
33543 | ac_ext=cc |
33544 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33545 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33546 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33547 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1d1af5ea DE |
33548 | |
33549 | fi | |
33550 | ||
a848cd7e | 33551 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
33552 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
33553 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 33554 | |
a848cd7e | 33555 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
33556 | |
33557 | # Extract the first word of "Rez", so it can be a program name with args. | |
33558 | set dummy Rez; ac_word=$2 | |
33559 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 33561 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
33562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33563 | else | |
8ced02f6 DE |
33564 | if test -n "$REZ"; then |
33565 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
33566 | else |
33567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33568 | for as_dir in $PATH | |
33569 | do | |
33570 | IFS=$as_save_IFS | |
33571 | test -z "$as_dir" && as_dir=. | |
33572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 33574 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
33575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
33576 | break 2 | |
33577 | fi | |
33578 | done | |
33579 | done | |
33580 | ||
8ced02f6 | 33581 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
33582 | fi |
33583 | fi | |
8ced02f6 DE |
33584 | REZ=$ac_cv_prog_REZ |
33585 | if test -n "$REZ"; then | |
33586 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
33587 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
33588 | else |
33589 | echo "$as_me:$LINENO: result: no" >&5 | |
33590 | echo "${ECHO_T}no" >&6 | |
33591 | fi | |
33592 | ||
33593 | # Extract the first word of "DeRez", so it can be a program name with args. | |
33594 | set dummy DeRez; ac_word=$2 | |
33595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33597 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
33598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33599 | else | |
33600 | if test -n "$DEREZ"; then | |
33601 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
33602 | else | |
33603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33604 | for as_dir in $PATH | |
33605 | do | |
33606 | IFS=$as_save_IFS | |
33607 | test -z "$as_dir" && as_dir=. | |
33608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33610 | ac_cv_prog_DEREZ="DeRez" | |
33611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33612 | break 2 | |
33613 | fi | |
33614 | done | |
33615 | done | |
33616 | ||
33617 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
33618 | fi | |
33619 | fi | |
33620 | DEREZ=$ac_cv_prog_DEREZ | |
33621 | if test -n "$DEREZ"; then | |
33622 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
33623 | echo "${ECHO_T}$DEREZ" >&6 | |
33624 | else | |
33625 | echo "$as_me:$LINENO: result: no" >&5 | |
33626 | echo "${ECHO_T}no" >&6 | |
33627 | fi | |
33628 | ||
33629 | # Extract the first word of "SetFile", so it can be a program name with args. | |
33630 | set dummy SetFile; ac_word=$2 | |
33631 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33633 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
33634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33635 | else | |
33636 | if test -n "$SETFILE"; then | |
33637 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
33638 | else | |
33639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33640 | for as_dir in $PATH | |
33641 | do | |
33642 | IFS=$as_save_IFS | |
33643 | test -z "$as_dir" && as_dir=. | |
33644 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33645 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33646 | ac_cv_prog_SETFILE="SetFile" | |
33647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33648 | break 2 | |
33649 | fi | |
33650 | done | |
33651 | done | |
33652 | ||
33653 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
33654 | fi | |
33655 | fi | |
33656 | SETFILE=$ac_cv_prog_SETFILE | |
33657 | if test -n "$SETFILE"; then | |
33658 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
33659 | echo "${ECHO_T}$SETFILE" >&6 | |
33660 | else | |
33661 | echo "$as_me:$LINENO: result: no" >&5 | |
33662 | echo "${ECHO_T}no" >&6 | |
33663 | fi | |
33664 | ||
33665 | ||
33666 | MACSETFILE="\$(SETFILE)" | |
33667 | ||
33668 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 33669 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
33670 | RESCOMP="$REZ" |
33671 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 33672 | else |
004ee6da RL |
33673 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
33674 | RESCOMP="echo -n \| $REZ" | |
33675 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 33676 | fi |
004ee6da | 33677 | |
a848cd7e | 33678 | else |
ffa0583f | 33679 | MACSETFILE="@true" |
a848cd7e | 33680 | |
8ced02f6 | 33681 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
33682 | RESCOMP="emxbind" |
33683 | WXCONFIG_RESFLAGS="-ep" | |
33684 | ||
33685 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 33686 | else |
8ced02f6 | 33687 | POSTLINK_COMMAND="@true" |
a848cd7e | 33688 | fi |
004ee6da | 33689 | |
a848cd7e SC |
33690 | fi |
33691 | ||
33692 | ||
33693 | ||
33694 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
33695 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
33696 | if test "${ac_cv_type_mode_t+set}" = set; then | |
33697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33698 | else | |
33699 | cat >conftest.$ac_ext <<_ACEOF | |
33700 | /* confdefs.h. */ | |
33701 | _ACEOF | |
33702 | cat confdefs.h >>conftest.$ac_ext | |
33703 | cat >>conftest.$ac_ext <<_ACEOF | |
33704 | /* end confdefs.h. */ | |
33705 | $ac_includes_default | |
33706 | int | |
33707 | main () | |
33708 | { | |
33709 | if ((mode_t *) 0) | |
33710 | return 0; | |
33711 | if (sizeof (mode_t)) | |
33712 | return 0; | |
33713 | ; | |
33714 | return 0; | |
33715 | } | |
33716 | _ACEOF | |
33717 | rm -f conftest.$ac_objext | |
33718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33719 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33720 | ac_status=$? |
ac1cb8d3 VS |
33721 | grep -v '^ *+' conftest.er1 >conftest.err |
33722 | rm -f conftest.er1 | |
33723 | cat conftest.err >&5 | |
a848cd7e SC |
33724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33725 | (exit $ac_status); } && | |
ca5c6ac3 | 33726 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33728 | (eval $ac_try) 2>&5 | |
33729 | ac_status=$? | |
33730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33731 | (exit $ac_status); }; } && | |
33732 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33734 | (eval $ac_try) 2>&5 | |
33735 | ac_status=$? | |
33736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33737 | (exit $ac_status); }; }; then | |
33738 | ac_cv_type_mode_t=yes | |
33739 | else | |
33740 | echo "$as_me: failed program was:" >&5 | |
33741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33742 | ||
33743 | ac_cv_type_mode_t=no | |
33744 | fi | |
ac1cb8d3 | 33745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33746 | fi |
33747 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
33748 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
33749 | if test $ac_cv_type_mode_t = yes; then | |
33750 | : | |
33751 | else | |
33752 | ||
33753 | cat >>confdefs.h <<_ACEOF | |
33754 | #define mode_t int | |
33755 | _ACEOF | |
33756 | ||
33757 | fi | |
33758 | ||
33759 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
33760 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
33761 | if test "${ac_cv_type_off_t+set}" = set; then | |
33762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33763 | else | |
33764 | cat >conftest.$ac_ext <<_ACEOF | |
33765 | /* confdefs.h. */ | |
33766 | _ACEOF | |
33767 | cat confdefs.h >>conftest.$ac_ext | |
33768 | cat >>conftest.$ac_ext <<_ACEOF | |
33769 | /* end confdefs.h. */ | |
33770 | $ac_includes_default | |
33771 | int | |
33772 | main () | |
33773 | { | |
33774 | if ((off_t *) 0) | |
33775 | return 0; | |
33776 | if (sizeof (off_t)) | |
33777 | return 0; | |
33778 | ; | |
33779 | return 0; | |
33780 | } | |
33781 | _ACEOF | |
33782 | rm -f conftest.$ac_objext | |
33783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33785 | ac_status=$? |
ac1cb8d3 VS |
33786 | grep -v '^ *+' conftest.er1 >conftest.err |
33787 | rm -f conftest.er1 | |
33788 | cat conftest.err >&5 | |
a848cd7e SC |
33789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33790 | (exit $ac_status); } && | |
ca5c6ac3 | 33791 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33793 | (eval $ac_try) 2>&5 | |
33794 | ac_status=$? | |
33795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33796 | (exit $ac_status); }; } && | |
33797 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33799 | (eval $ac_try) 2>&5 | |
33800 | ac_status=$? | |
33801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33802 | (exit $ac_status); }; }; then | |
33803 | ac_cv_type_off_t=yes | |
33804 | else | |
33805 | echo "$as_me: failed program was:" >&5 | |
33806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33807 | ||
33808 | ac_cv_type_off_t=no | |
33809 | fi | |
ac1cb8d3 | 33810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33811 | fi |
33812 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
33813 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
33814 | if test $ac_cv_type_off_t = yes; then | |
33815 | : | |
33816 | else | |
33817 | ||
33818 | cat >>confdefs.h <<_ACEOF | |
33819 | #define off_t long | |
33820 | _ACEOF | |
33821 | ||
33822 | fi | |
33823 | ||
33824 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
33825 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
33826 | if test "${ac_cv_type_pid_t+set}" = set; then | |
33827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33828 | else | |
33829 | cat >conftest.$ac_ext <<_ACEOF | |
33830 | /* confdefs.h. */ | |
33831 | _ACEOF | |
33832 | cat confdefs.h >>conftest.$ac_ext | |
33833 | cat >>conftest.$ac_ext <<_ACEOF | |
33834 | /* end confdefs.h. */ | |
33835 | $ac_includes_default | |
33836 | int | |
33837 | main () | |
33838 | { | |
33839 | if ((pid_t *) 0) | |
33840 | return 0; | |
33841 | if (sizeof (pid_t)) | |
33842 | return 0; | |
33843 | ; | |
33844 | return 0; | |
33845 | } | |
33846 | _ACEOF | |
33847 | rm -f conftest.$ac_objext | |
33848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33849 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33850 | ac_status=$? |
ac1cb8d3 VS |
33851 | grep -v '^ *+' conftest.er1 >conftest.err |
33852 | rm -f conftest.er1 | |
33853 | cat conftest.err >&5 | |
a848cd7e SC |
33854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33855 | (exit $ac_status); } && | |
ca5c6ac3 | 33856 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33858 | (eval $ac_try) 2>&5 | |
33859 | ac_status=$? | |
33860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33861 | (exit $ac_status); }; } && | |
33862 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33864 | (eval $ac_try) 2>&5 | |
33865 | ac_status=$? | |
33866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33867 | (exit $ac_status); }; }; then | |
33868 | ac_cv_type_pid_t=yes | |
33869 | else | |
33870 | echo "$as_me: failed program was:" >&5 | |
33871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33872 | ||
33873 | ac_cv_type_pid_t=no | |
33874 | fi | |
ac1cb8d3 | 33875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33876 | fi |
33877 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
33878 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
33879 | if test $ac_cv_type_pid_t = yes; then | |
33880 | : | |
33881 | else | |
33882 | ||
33883 | cat >>confdefs.h <<_ACEOF | |
33884 | #define pid_t int | |
33885 | _ACEOF | |
33886 | ||
33887 | fi | |
33888 | ||
33889 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
33890 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
33891 | if test "${ac_cv_type_size_t+set}" = set; then | |
33892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33893 | else | |
33894 | cat >conftest.$ac_ext <<_ACEOF | |
33895 | /* confdefs.h. */ | |
33896 | _ACEOF | |
33897 | cat confdefs.h >>conftest.$ac_ext | |
33898 | cat >>conftest.$ac_ext <<_ACEOF | |
33899 | /* end confdefs.h. */ | |
33900 | $ac_includes_default | |
33901 | int | |
33902 | main () | |
33903 | { | |
33904 | if ((size_t *) 0) | |
33905 | return 0; | |
33906 | if (sizeof (size_t)) | |
33907 | return 0; | |
33908 | ; | |
33909 | return 0; | |
33910 | } | |
33911 | _ACEOF | |
33912 | rm -f conftest.$ac_objext | |
33913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33914 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33915 | ac_status=$? |
ac1cb8d3 VS |
33916 | grep -v '^ *+' conftest.er1 >conftest.err |
33917 | rm -f conftest.er1 | |
33918 | cat conftest.err >&5 | |
a848cd7e SC |
33919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33920 | (exit $ac_status); } && | |
ca5c6ac3 | 33921 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33923 | (eval $ac_try) 2>&5 | |
33924 | ac_status=$? | |
33925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33926 | (exit $ac_status); }; } && | |
33927 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33929 | (eval $ac_try) 2>&5 | |
33930 | ac_status=$? | |
33931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33932 | (exit $ac_status); }; }; then | |
33933 | ac_cv_type_size_t=yes | |
33934 | else | |
33935 | echo "$as_me: failed program was:" >&5 | |
33936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33937 | ||
33938 | ac_cv_type_size_t=no | |
33939 | fi | |
ac1cb8d3 | 33940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33941 | fi |
33942 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
33943 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
33944 | if test $ac_cv_type_size_t = yes; then | |
33945 | : | |
33946 | else | |
33947 | ||
33948 | cat >>confdefs.h <<_ACEOF | |
33949 | #define size_t unsigned | |
33950 | _ACEOF | |
33951 | ||
33952 | fi | |
33953 | ||
33954 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
33955 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
33956 | if test "${ac_cv_type_uid_t+set}" = set; then | |
33957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33958 | else | |
33959 | cat >conftest.$ac_ext <<_ACEOF | |
33960 | /* confdefs.h. */ | |
33961 | _ACEOF | |
33962 | cat confdefs.h >>conftest.$ac_ext | |
33963 | cat >>conftest.$ac_ext <<_ACEOF | |
33964 | /* end confdefs.h. */ | |
33965 | #include <sys/types.h> | |
33966 | ||
33967 | _ACEOF | |
33968 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
33969 | $EGREP "uid_t" >/dev/null 2>&1; then | |
33970 | ac_cv_type_uid_t=yes | |
33971 | else | |
33972 | ac_cv_type_uid_t=no | |
33973 | fi | |
33974 | rm -f conftest* | |
33975 | ||
33976 | fi | |
33977 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
33978 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
33979 | if test $ac_cv_type_uid_t = no; then | |
33980 | ||
33981 | cat >>confdefs.h <<\_ACEOF | |
33982 | #define uid_t int | |
33983 | _ACEOF | |
33984 | ||
33985 | ||
33986 | cat >>confdefs.h <<\_ACEOF | |
33987 | #define gid_t int | |
33988 | _ACEOF | |
33989 | ||
33990 | fi | |
33991 | ||
33992 | ||
d51253e8 RL |
33993 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
33994 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
33995 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
33996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33997 | else | |
33998 | cat >conftest.$ac_ext <<_ACEOF | |
33999 | /* confdefs.h. */ | |
34000 | _ACEOF | |
34001 | cat confdefs.h >>conftest.$ac_ext | |
34002 | cat >>conftest.$ac_ext <<_ACEOF | |
34003 | /* end confdefs.h. */ | |
34004 | $ac_includes_default | |
34005 | int | |
34006 | main () | |
34007 | { | |
34008 | if ((ssize_t *) 0) | |
34009 | return 0; | |
34010 | if (sizeof (ssize_t)) | |
34011 | return 0; | |
34012 | ; | |
34013 | return 0; | |
34014 | } | |
34015 | _ACEOF | |
34016 | rm -f conftest.$ac_objext | |
34017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34018 | (eval $ac_compile) 2>conftest.er1 | |
34019 | ac_status=$? | |
34020 | grep -v '^ *+' conftest.er1 >conftest.err | |
34021 | rm -f conftest.er1 | |
34022 | cat conftest.err >&5 | |
34023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34024 | (exit $ac_status); } && | |
ca5c6ac3 | 34025 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
34026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34027 | (eval $ac_try) 2>&5 | |
34028 | ac_status=$? | |
34029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34030 | (exit $ac_status); }; } && | |
34031 | { ac_try='test -s conftest.$ac_objext' | |
34032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34033 | (eval $ac_try) 2>&5 | |
34034 | ac_status=$? | |
34035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34036 | (exit $ac_status); }; }; then | |
34037 | ac_cv_type_ssize_t=yes | |
34038 | else | |
34039 | echo "$as_me: failed program was:" >&5 | |
34040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34041 | ||
34042 | ac_cv_type_ssize_t=no | |
34043 | fi | |
34044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34045 | fi | |
34046 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
34047 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
34048 | if test $ac_cv_type_ssize_t = yes; then | |
34049 | ||
34050 | cat >>confdefs.h <<_ACEOF | |
34051 | #define HAVE_SSIZE_T 1 | |
34052 | _ACEOF | |
34053 | ||
34054 | ||
34055 | fi | |
34056 | ||
34057 | ||
a848cd7e SC |
34058 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 |
34059 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
34060 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
34061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34062 | else | |
34063 | ||
34064 | cat >conftest.$ac_ext <<_ACEOF | |
34065 | /* confdefs.h. */ | |
34066 | _ACEOF | |
34067 | cat confdefs.h >>conftest.$ac_ext | |
34068 | cat >>conftest.$ac_ext <<_ACEOF | |
34069 | /* end confdefs.h. */ | |
34070 | #include <stddef.h> | |
34071 | int | |
34072 | main () | |
34073 | { | |
34074 | ||
34075 | return 0; } | |
34076 | ||
34077 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
34078 | ||
34079 | int bar() { | |
34080 | ||
34081 | ; | |
34082 | return 0; | |
34083 | } | |
34084 | _ACEOF | |
34085 | rm -f conftest.$ac_objext | |
34086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34087 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34088 | ac_status=$? |
ac1cb8d3 VS |
34089 | grep -v '^ *+' conftest.er1 >conftest.err |
34090 | rm -f conftest.er1 | |
34091 | cat conftest.err >&5 | |
a848cd7e SC |
34092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34093 | (exit $ac_status); } && | |
ca5c6ac3 | 34094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34096 | (eval $ac_try) 2>&5 | |
34097 | ac_status=$? | |
34098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34099 | (exit $ac_status); }; } && | |
34100 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34102 | (eval $ac_try) 2>&5 | |
34103 | ac_status=$? | |
34104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34105 | (exit $ac_status); }; }; then | |
34106 | wx_cv_size_t_is_uint=no | |
34107 | else | |
34108 | echo "$as_me: failed program was:" >&5 | |
34109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34110 | ||
34111 | wx_cv_size_t_is_uint=yes | |
34112 | ||
34113 | fi | |
ac1cb8d3 | 34114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34115 | |
34116 | ||
34117 | fi | |
34118 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
34119 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
34120 | ||
34121 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
34122 | cat >>confdefs.h <<\_ACEOF | |
34123 | #define wxSIZE_T_IS_UINT 1 | |
34124 | _ACEOF | |
34125 | ||
34126 | else | |
34127 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
34128 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
34129 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
34130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34131 | else | |
34132 | cat >conftest.$ac_ext <<_ACEOF | |
34133 | /* confdefs.h. */ | |
34134 | _ACEOF | |
34135 | cat confdefs.h >>conftest.$ac_ext | |
34136 | cat >>conftest.$ac_ext <<_ACEOF | |
34137 | /* end confdefs.h. */ | |
34138 | #include <stddef.h> | |
34139 | int | |
34140 | main () | |
34141 | { | |
34142 | ||
34143 | return 0; } | |
34144 | ||
34145 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
34146 | ||
34147 | int bar() { | |
34148 | ||
34149 | ; | |
34150 | return 0; | |
34151 | } | |
34152 | _ACEOF | |
34153 | rm -f conftest.$ac_objext | |
34154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34155 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34156 | ac_status=$? |
ac1cb8d3 VS |
34157 | grep -v '^ *+' conftest.er1 >conftest.err |
34158 | rm -f conftest.er1 | |
34159 | cat conftest.err >&5 | |
a848cd7e SC |
34160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34161 | (exit $ac_status); } && | |
ca5c6ac3 | 34162 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34164 | (eval $ac_try) 2>&5 | |
34165 | ac_status=$? | |
34166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34167 | (exit $ac_status); }; } && | |
34168 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34170 | (eval $ac_try) 2>&5 | |
34171 | ac_status=$? | |
34172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34173 | (exit $ac_status); }; }; then | |
34174 | wx_cv_size_t_is_ulong=no | |
34175 | else | |
34176 | echo "$as_me: failed program was:" >&5 | |
34177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34178 | ||
34179 | wx_cv_size_t_is_ulong=yes | |
34180 | ||
34181 | fi | |
ac1cb8d3 | 34182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34183 | |
34184 | fi | |
34185 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
34186 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
34187 | ||
34188 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
34189 | cat >>confdefs.h <<\_ACEOF | |
34190 | #define wxSIZE_T_IS_ULONG 1 | |
34191 | _ACEOF | |
34192 | ||
34193 | fi | |
34194 | fi | |
34195 | ||
a848cd7e SC |
34196 | |
34197 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
34198 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
34199 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
34200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34201 | else | |
34202 | ||
34203 | cat >conftest.$ac_ext <<_ACEOF | |
34204 | /* confdefs.h. */ | |
34205 | _ACEOF | |
34206 | cat confdefs.h >>conftest.$ac_ext | |
34207 | cat >>conftest.$ac_ext <<_ACEOF | |
34208 | /* end confdefs.h. */ | |
34209 | #include <pwd.h> | |
34210 | int | |
34211 | main () | |
34212 | { | |
34213 | ||
34214 | char *p; | |
34215 | struct passwd *pw; | |
34216 | p = pw->pw_gecos; | |
34217 | ||
34218 | ; | |
34219 | return 0; | |
34220 | } | |
34221 | _ACEOF | |
34222 | rm -f conftest.$ac_objext | |
34223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34224 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34225 | ac_status=$? |
ac1cb8d3 VS |
34226 | grep -v '^ *+' conftest.er1 >conftest.err |
34227 | rm -f conftest.er1 | |
34228 | cat conftest.err >&5 | |
a848cd7e SC |
34229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34230 | (exit $ac_status); } && | |
ca5c6ac3 | 34231 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34233 | (eval $ac_try) 2>&5 | |
34234 | ac_status=$? | |
34235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34236 | (exit $ac_status); }; } && | |
34237 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34239 | (eval $ac_try) 2>&5 | |
34240 | ac_status=$? | |
34241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34242 | (exit $ac_status); }; }; then | |
34243 | ||
34244 | wx_cv_struct_pw_gecos=yes | |
34245 | ||
34246 | else | |
34247 | echo "$as_me: failed program was:" >&5 | |
34248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34249 | ||
34250 | ||
34251 | wx_cv_struct_pw_gecos=no | |
34252 | ||
34253 | ||
34254 | fi | |
ac1cb8d3 | 34255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34256 | |
34257 | ||
34258 | fi | |
34259 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
34260 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
34261 | ||
34262 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
34263 | cat >>confdefs.h <<\_ACEOF | |
34264 | #define HAVE_PW_GECOS 1 | |
34265 | _ACEOF | |
34266 | ||
34267 | fi | |
34268 | ||
34269 | ||
47a7e797 | 34270 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
34271 | cat >>confdefs.h <<\_ACEOF |
34272 | #define wxUSE_WCHAR_T 1 | |
34273 | _ACEOF | |
34274 | ||
34275 | ||
34276 | WCSLEN_FOUND=0 | |
34277 | WCHAR_LINK= | |
34278 | ||
34279 | for ac_func in wcslen | |
34280 | do | |
34281 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34282 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34283 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34284 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34286 | else | |
34287 | cat >conftest.$ac_ext <<_ACEOF | |
34288 | /* confdefs.h. */ | |
34289 | _ACEOF | |
34290 | cat confdefs.h >>conftest.$ac_ext | |
34291 | cat >>conftest.$ac_ext <<_ACEOF | |
34292 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34293 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34294 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34295 | #define $ac_func innocuous_$ac_func | |
34296 | ||
a848cd7e SC |
34297 | /* System header to define __stub macros and hopefully few prototypes, |
34298 | which can conflict with char $ac_func (); below. | |
34299 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34300 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34301 | |
a848cd7e SC |
34302 | #ifdef __STDC__ |
34303 | # include <limits.h> | |
34304 | #else | |
34305 | # include <assert.h> | |
34306 | #endif | |
ac1cb8d3 VS |
34307 | |
34308 | #undef $ac_func | |
34309 | ||
a848cd7e SC |
34310 | /* Override any gcc2 internal prototype to avoid an error. */ |
34311 | #ifdef __cplusplus | |
34312 | extern "C" | |
34313 | { | |
34314 | #endif | |
34315 | /* We use char because int might match the return type of a gcc2 | |
34316 | builtin and then its argument prototype would still apply. */ | |
34317 | char $ac_func (); | |
34318 | /* The GNU C library defines this for functions which it implements | |
34319 | to always fail with ENOSYS. Some functions are actually named | |
34320 | something starting with __ and the normal name is an alias. */ | |
34321 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34322 | choke me | |
34323 | #else | |
34324 | char (*f) () = $ac_func; | |
34325 | #endif | |
34326 | #ifdef __cplusplus | |
34327 | } | |
34328 | #endif | |
34329 | ||
34330 | int | |
34331 | main () | |
34332 | { | |
34333 | return f != $ac_func; | |
34334 | ; | |
34335 | return 0; | |
34336 | } | |
34337 | _ACEOF | |
34338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34340 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34341 | ac_status=$? |
ac1cb8d3 VS |
34342 | grep -v '^ *+' conftest.er1 >conftest.err |
34343 | rm -f conftest.er1 | |
34344 | cat conftest.err >&5 | |
a848cd7e SC |
34345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34346 | (exit $ac_status); } && | |
ca5c6ac3 | 34347 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34349 | (eval $ac_try) 2>&5 | |
34350 | ac_status=$? | |
34351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34352 | (exit $ac_status); }; } && | |
34353 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34355 | (eval $ac_try) 2>&5 | |
34356 | ac_status=$? | |
34357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34358 | (exit $ac_status); }; }; then | |
34359 | eval "$as_ac_var=yes" | |
34360 | else | |
34361 | echo "$as_me: failed program was:" >&5 | |
34362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34363 | ||
34364 | eval "$as_ac_var=no" | |
34365 | fi | |
ac1cb8d3 VS |
34366 | rm -f conftest.err conftest.$ac_objext \ |
34367 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34368 | fi |
34369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34370 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34371 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34372 | cat >>confdefs.h <<_ACEOF | |
34373 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34374 | _ACEOF | |
34375 | WCSLEN_FOUND=1 | |
34376 | fi | |
34377 | done | |
34378 | ||
34379 | ||
34380 | if test "$WCSLEN_FOUND" = 0; then | |
34381 | if test "$TOOLKIT" = "MSW"; then | |
34382 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
34383 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
34384 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
34385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34386 | else | |
34387 | ac_check_lib_save_LIBS=$LIBS | |
34388 | LIBS="-lmsvcrt $LIBS" | |
34389 | cat >conftest.$ac_ext <<_ACEOF | |
34390 | /* confdefs.h. */ | |
34391 | _ACEOF | |
34392 | cat confdefs.h >>conftest.$ac_ext | |
34393 | cat >>conftest.$ac_ext <<_ACEOF | |
34394 | /* end confdefs.h. */ | |
34395 | ||
34396 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34397 | #ifdef __cplusplus | |
34398 | extern "C" | |
34399 | #endif | |
34400 | /* We use char because int might match the return type of a gcc2 | |
34401 | builtin and then its argument prototype would still apply. */ | |
34402 | char wcslen (); | |
34403 | int | |
34404 | main () | |
34405 | { | |
34406 | wcslen (); | |
34407 | ; | |
34408 | return 0; | |
34409 | } | |
34410 | _ACEOF | |
34411 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34413 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34414 | ac_status=$? |
ac1cb8d3 VS |
34415 | grep -v '^ *+' conftest.er1 >conftest.err |
34416 | rm -f conftest.er1 | |
34417 | cat conftest.err >&5 | |
a848cd7e SC |
34418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34419 | (exit $ac_status); } && | |
ca5c6ac3 | 34420 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34422 | (eval $ac_try) 2>&5 | |
34423 | ac_status=$? | |
34424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34425 | (exit $ac_status); }; } && | |
34426 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34428 | (eval $ac_try) 2>&5 | |
34429 | ac_status=$? | |
34430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34431 | (exit $ac_status); }; }; then | |
34432 | ac_cv_lib_msvcrt_wcslen=yes | |
34433 | else | |
34434 | echo "$as_me: failed program was:" >&5 | |
34435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34436 | ||
34437 | ac_cv_lib_msvcrt_wcslen=no | |
34438 | fi | |
ac1cb8d3 VS |
34439 | rm -f conftest.err conftest.$ac_objext \ |
34440 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34441 | LIBS=$ac_check_lib_save_LIBS |
34442 | fi | |
34443 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
34444 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
34445 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
34446 | WCHAR_OK=1 | |
34447 | fi | |
34448 | ||
34449 | else | |
34450 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
34451 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
34452 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
34453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34454 | else | |
34455 | ac_check_lib_save_LIBS=$LIBS | |
34456 | LIBS="-lw $LIBS" | |
34457 | cat >conftest.$ac_ext <<_ACEOF | |
34458 | /* confdefs.h. */ | |
34459 | _ACEOF | |
34460 | cat confdefs.h >>conftest.$ac_ext | |
34461 | cat >>conftest.$ac_ext <<_ACEOF | |
34462 | /* end confdefs.h. */ | |
34463 | ||
34464 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34465 | #ifdef __cplusplus | |
34466 | extern "C" | |
34467 | #endif | |
34468 | /* We use char because int might match the return type of a gcc2 | |
34469 | builtin and then its argument prototype would still apply. */ | |
34470 | char wcslen (); | |
34471 | int | |
34472 | main () | |
34473 | { | |
34474 | wcslen (); | |
34475 | ; | |
34476 | return 0; | |
34477 | } | |
34478 | _ACEOF | |
34479 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34481 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34482 | ac_status=$? |
ac1cb8d3 VS |
34483 | grep -v '^ *+' conftest.er1 >conftest.err |
34484 | rm -f conftest.er1 | |
34485 | cat conftest.err >&5 | |
a848cd7e SC |
34486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34487 | (exit $ac_status); } && | |
ca5c6ac3 | 34488 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34490 | (eval $ac_try) 2>&5 | |
34491 | ac_status=$? | |
34492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34493 | (exit $ac_status); }; } && | |
34494 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34496 | (eval $ac_try) 2>&5 | |
34497 | ac_status=$? | |
34498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34499 | (exit $ac_status); }; }; then | |
34500 | ac_cv_lib_w_wcslen=yes | |
34501 | else | |
34502 | echo "$as_me: failed program was:" >&5 | |
34503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34504 | ||
34505 | ac_cv_lib_w_wcslen=no | |
34506 | fi | |
ac1cb8d3 VS |
34507 | rm -f conftest.err conftest.$ac_objext \ |
34508 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34509 | LIBS=$ac_check_lib_save_LIBS |
34510 | fi | |
34511 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
34512 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
34513 | if test $ac_cv_lib_w_wcslen = yes; then | |
34514 | ||
34515 | WCHAR_LINK=" -lw" | |
34516 | WCSLEN_FOUND=1 | |
34517 | ||
34518 | fi | |
34519 | ||
34520 | fi | |
34521 | fi | |
34522 | ||
34523 | if test "$WCSLEN_FOUND" = 1; then | |
34524 | cat >>confdefs.h <<\_ACEOF | |
34525 | #define HAVE_WCSLEN 1 | |
34526 | _ACEOF | |
34527 | ||
34528 | fi | |
34529 | ||
efdf6afe | 34530 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 34531 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
34532 | fi |
34533 | ||
efdf6afe VZ |
34534 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
34535 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
34536 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
34537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34538 | else | |
34539 | cat >conftest.$ac_ext <<_ACEOF | |
34540 | /* confdefs.h. */ | |
34541 | _ACEOF | |
34542 | cat confdefs.h >>conftest.$ac_ext | |
34543 | cat >>conftest.$ac_ext <<_ACEOF | |
34544 | /* end confdefs.h. */ | |
34545 | #include <wchar.h> | |
34546 | ||
34547 | int | |
34548 | main () | |
34549 | { | |
34550 | if ((mbstate_t *) 0) | |
34551 | return 0; | |
34552 | if (sizeof (mbstate_t)) | |
34553 | return 0; | |
34554 | ; | |
34555 | return 0; | |
34556 | } | |
34557 | _ACEOF | |
34558 | rm -f conftest.$ac_objext | |
34559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34560 | (eval $ac_compile) 2>conftest.er1 | |
34561 | ac_status=$? | |
34562 | grep -v '^ *+' conftest.er1 >conftest.err | |
34563 | rm -f conftest.er1 | |
34564 | cat conftest.err >&5 | |
34565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34566 | (exit $ac_status); } && | |
ca5c6ac3 | 34567 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
efdf6afe VZ |
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); }; } && | |
34573 | { ac_try='test -s conftest.$ac_objext' | |
34574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34575 | (eval $ac_try) 2>&5 | |
34576 | ac_status=$? | |
34577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34578 | (exit $ac_status); }; }; then | |
34579 | ac_cv_type_mbstate_t=yes | |
34580 | else | |
34581 | echo "$as_me: failed program was:" >&5 | |
34582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34583 | ||
34584 | ac_cv_type_mbstate_t=no | |
34585 | fi | |
34586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34587 | fi | |
34588 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
34589 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
34590 | if test $ac_cv_type_mbstate_t = yes; then | |
34591 | ||
34592 | cat >>confdefs.h <<_ACEOF | |
34593 | #define HAVE_MBSTATE_T 1 | |
34594 | _ACEOF | |
34595 | ||
a848cd7e SC |
34596 | |
34597 | for ac_func in wcsrtombs | |
34598 | do | |
34599 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34600 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34601 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34602 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34604 | else | |
34605 | cat >conftest.$ac_ext <<_ACEOF | |
34606 | /* confdefs.h. */ | |
34607 | _ACEOF | |
34608 | cat confdefs.h >>conftest.$ac_ext | |
34609 | cat >>conftest.$ac_ext <<_ACEOF | |
34610 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34611 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34612 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34613 | #define $ac_func innocuous_$ac_func | |
34614 | ||
a848cd7e SC |
34615 | /* System header to define __stub macros and hopefully few prototypes, |
34616 | which can conflict with char $ac_func (); below. | |
34617 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34618 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34619 | |
a848cd7e SC |
34620 | #ifdef __STDC__ |
34621 | # include <limits.h> | |
34622 | #else | |
34623 | # include <assert.h> | |
34624 | #endif | |
ac1cb8d3 VS |
34625 | |
34626 | #undef $ac_func | |
34627 | ||
a848cd7e SC |
34628 | /* Override any gcc2 internal prototype to avoid an error. */ |
34629 | #ifdef __cplusplus | |
34630 | extern "C" | |
34631 | { | |
34632 | #endif | |
34633 | /* We use char because int might match the return type of a gcc2 | |
34634 | builtin and then its argument prototype would still apply. */ | |
34635 | char $ac_func (); | |
34636 | /* The GNU C library defines this for functions which it implements | |
34637 | to always fail with ENOSYS. Some functions are actually named | |
34638 | something starting with __ and the normal name is an alias. */ | |
34639 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34640 | choke me | |
34641 | #else | |
34642 | char (*f) () = $ac_func; | |
34643 | #endif | |
34644 | #ifdef __cplusplus | |
34645 | } | |
34646 | #endif | |
34647 | ||
34648 | int | |
34649 | main () | |
34650 | { | |
34651 | return f != $ac_func; | |
34652 | ; | |
34653 | return 0; | |
34654 | } | |
34655 | _ACEOF | |
34656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34658 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34659 | ac_status=$? |
ac1cb8d3 VS |
34660 | grep -v '^ *+' conftest.er1 >conftest.err |
34661 | rm -f conftest.er1 | |
34662 | cat conftest.err >&5 | |
a848cd7e SC |
34663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34664 | (exit $ac_status); } && | |
ca5c6ac3 | 34665 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34667 | (eval $ac_try) 2>&5 | |
34668 | ac_status=$? | |
34669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34670 | (exit $ac_status); }; } && | |
34671 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34673 | (eval $ac_try) 2>&5 | |
34674 | ac_status=$? | |
34675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34676 | (exit $ac_status); }; }; then | |
34677 | eval "$as_ac_var=yes" | |
34678 | else | |
34679 | echo "$as_me: failed program was:" >&5 | |
34680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34681 | ||
34682 | eval "$as_ac_var=no" | |
34683 | fi | |
ac1cb8d3 VS |
34684 | rm -f conftest.err conftest.$ac_objext \ |
34685 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34686 | fi |
34687 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34688 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34689 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34690 | cat >>confdefs.h <<_ACEOF | |
34691 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34692 | _ACEOF | |
34693 | ||
34694 | fi | |
34695 | done | |
34696 | ||
efdf6afe VZ |
34697 | fi |
34698 | ||
a848cd7e SC |
34699 | else |
34700 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
34701 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
34702 | fi | |
34703 | ||
a848cd7e | 34704 | |
4a767dd5 VZ |
34705 | |
34706 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
34707 | do |
34708 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34709 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34710 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34711 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34713 | else | |
34714 | cat >conftest.$ac_ext <<_ACEOF | |
34715 | /* confdefs.h. */ | |
34716 | _ACEOF | |
34717 | cat confdefs.h >>conftest.$ac_ext | |
34718 | cat >>conftest.$ac_ext <<_ACEOF | |
34719 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34720 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34721 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34722 | #define $ac_func innocuous_$ac_func | |
34723 | ||
a848cd7e SC |
34724 | /* System header to define __stub macros and hopefully few prototypes, |
34725 | which can conflict with char $ac_func (); below. | |
34726 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34727 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34728 | |
a848cd7e SC |
34729 | #ifdef __STDC__ |
34730 | # include <limits.h> | |
34731 | #else | |
34732 | # include <assert.h> | |
34733 | #endif | |
ac1cb8d3 VS |
34734 | |
34735 | #undef $ac_func | |
34736 | ||
a848cd7e SC |
34737 | /* Override any gcc2 internal prototype to avoid an error. */ |
34738 | #ifdef __cplusplus | |
34739 | extern "C" | |
34740 | { | |
34741 | #endif | |
34742 | /* We use char because int might match the return type of a gcc2 | |
34743 | builtin and then its argument prototype would still apply. */ | |
34744 | char $ac_func (); | |
34745 | /* The GNU C library defines this for functions which it implements | |
34746 | to always fail with ENOSYS. Some functions are actually named | |
34747 | something starting with __ and the normal name is an alias. */ | |
34748 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34749 | choke me | |
34750 | #else | |
34751 | char (*f) () = $ac_func; | |
34752 | #endif | |
34753 | #ifdef __cplusplus | |
34754 | } | |
34755 | #endif | |
34756 | ||
34757 | int | |
34758 | main () | |
34759 | { | |
34760 | return f != $ac_func; | |
34761 | ; | |
34762 | return 0; | |
34763 | } | |
34764 | _ACEOF | |
34765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34767 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34768 | ac_status=$? |
ac1cb8d3 VS |
34769 | grep -v '^ *+' conftest.er1 >conftest.err |
34770 | rm -f conftest.er1 | |
34771 | cat conftest.err >&5 | |
a848cd7e SC |
34772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34773 | (exit $ac_status); } && | |
ca5c6ac3 | 34774 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34776 | (eval $ac_try) 2>&5 | |
34777 | ac_status=$? | |
34778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34779 | (exit $ac_status); }; } && | |
34780 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34782 | (eval $ac_try) 2>&5 | |
34783 | ac_status=$? | |
34784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34785 | (exit $ac_status); }; }; then | |
34786 | eval "$as_ac_var=yes" | |
34787 | else | |
34788 | echo "$as_me: failed program was:" >&5 | |
34789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34790 | ||
34791 | eval "$as_ac_var=no" | |
34792 | fi | |
ac1cb8d3 VS |
34793 | rm -f conftest.err conftest.$ac_objext \ |
34794 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34795 | fi |
34796 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34797 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34798 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34799 | cat >>confdefs.h <<_ACEOF | |
34800 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34801 | _ACEOF | |
34802 | ||
34803 | fi | |
34804 | done | |
34805 | ||
34806 | ||
34807 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
34808 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
34809 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
34810 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
34811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34812 | else | |
34813 | ||
efdf6afe | 34814 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
34815 | /* confdefs.h. */ |
34816 | _ACEOF | |
34817 | cat confdefs.h >>conftest.$ac_ext | |
34818 | cat >>conftest.$ac_ext <<_ACEOF | |
34819 | /* end confdefs.h. */ | |
34820 | ||
34821 | #include <stdio.h> | |
34822 | #include <stdarg.h> | |
efdf6afe VZ |
34823 | #ifdef __MSL__ |
34824 | #if __MSL__ >= 0x6000 | |
34825 | namespace std {} | |
34826 | using namespace std; | |
34827 | #endif | |
34828 | #endif | |
a848cd7e SC |
34829 | |
34830 | int | |
34831 | main () | |
34832 | { | |
34833 | ||
34834 | char *buf; | |
34835 | va_list ap; | |
62fa8b3a | 34836 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
34837 | |
34838 | ; | |
34839 | return 0; | |
34840 | } | |
34841 | _ACEOF | |
34842 | rm -f conftest.$ac_objext | |
34843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34844 | (eval $ac_compile) 2>conftest.er1 | |
34845 | ac_status=$? | |
34846 | grep -v '^ *+' conftest.er1 >conftest.err | |
34847 | rm -f conftest.er1 | |
34848 | cat conftest.err >&5 | |
34849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34850 | (exit $ac_status); } && | |
ca5c6ac3 | 34851 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
34852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34853 | (eval $ac_try) 2>&5 | |
34854 | ac_status=$? | |
34855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34856 | (exit $ac_status); }; } && | |
34857 | { ac_try='test -s conftest.$ac_objext' | |
34858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34859 | (eval $ac_try) 2>&5 | |
34860 | ac_status=$? | |
34861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34862 | (exit $ac_status); }; }; then | |
34863 | wx_cv_func_vsnprintf_decl=yes | |
34864 | else | |
34865 | echo "$as_me: failed program was:" >&5 | |
34866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34867 | ||
a848cd7e SC |
34868 | wx_cv_func_vsnprintf_decl=no |
34869 | ||
34870 | fi | |
ac1cb8d3 | 34871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34872 | |
34873 | ||
34874 | fi | |
34875 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
34876 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
34877 | ||
34878 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
34879 | cat >>confdefs.h <<\_ACEOF | |
34880 | #define HAVE_VSNPRINTF_DECL 1 | |
34881 | _ACEOF | |
34882 | ||
62fa8b3a MW |
34883 | |
34884 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
34885 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
34886 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
34887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34888 | else | |
34889 | ||
34890 | cat >conftest.$ac_ext <<_ACEOF | |
34891 | /* confdefs.h. */ | |
34892 | _ACEOF | |
34893 | cat confdefs.h >>conftest.$ac_ext | |
34894 | cat >>conftest.$ac_ext <<_ACEOF | |
34895 | /* end confdefs.h. */ | |
34896 | ||
34897 | #include <stdio.h> | |
34898 | #include <stdarg.h> | |
34899 | #ifdef __MSL__ | |
34900 | #if __MSL__ >= 0x6000 | |
34901 | namespace std {} | |
34902 | using namespace std; | |
34903 | #endif | |
34904 | #endif | |
34905 | ||
34906 | int | |
34907 | main () | |
34908 | { | |
34909 | ||
34910 | char *buf; | |
34911 | va_list ap; | |
34912 | const char *fmt = "%s"; | |
34913 | vsnprintf(buf, 10u, fmt, ap); | |
34914 | ||
34915 | ; | |
34916 | return 0; | |
34917 | } | |
34918 | _ACEOF | |
34919 | rm -f conftest.$ac_objext | |
34920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34921 | (eval $ac_compile) 2>conftest.er1 | |
34922 | ac_status=$? | |
34923 | grep -v '^ *+' conftest.er1 >conftest.err | |
34924 | rm -f conftest.er1 | |
34925 | cat conftest.err >&5 | |
34926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34927 | (exit $ac_status); } && | |
ca5c6ac3 | 34928 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
34929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34930 | (eval $ac_try) 2>&5 | |
34931 | ac_status=$? | |
34932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34933 | (exit $ac_status); }; } && | |
34934 | { ac_try='test -s conftest.$ac_objext' | |
34935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34936 | (eval $ac_try) 2>&5 | |
34937 | ac_status=$? | |
34938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34939 | (exit $ac_status); }; }; then | |
34940 | wx_cv_func_broken_vsnprintf_decl=no | |
34941 | else | |
34942 | echo "$as_me: failed program was:" >&5 | |
34943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34944 | ||
34945 | wx_cv_func_broken_vsnprintf_decl=yes | |
34946 | ||
34947 | fi | |
34948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34949 | ||
34950 | ||
34951 | fi | |
34952 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
34953 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
34954 | ||
34955 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
34956 | cat >>confdefs.h <<\_ACEOF | |
34957 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
34958 | _ACEOF | |
34959 | ||
34960 | fi | |
a848cd7e SC |
34961 | fi |
34962 | fi | |
34963 | ||
4a767dd5 VZ |
34964 | if test "$ac_cv_func_snprintf" = "yes"; then |
34965 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
34966 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
34967 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
34968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34969 | else | |
34970 | ||
34971 | cat >conftest.$ac_ext <<_ACEOF | |
34972 | /* confdefs.h. */ | |
34973 | _ACEOF | |
34974 | cat confdefs.h >>conftest.$ac_ext | |
34975 | cat >>conftest.$ac_ext <<_ACEOF | |
34976 | /* end confdefs.h. */ | |
34977 | ||
34978 | #include <stdio.h> | |
34979 | #include <stdarg.h> | |
34980 | #ifdef __MSL__ | |
34981 | #if __MSL__ >= 0x6000 | |
34982 | namespace std {} | |
34983 | using namespace std; | |
34984 | #endif | |
34985 | #endif | |
34986 | ||
34987 | int | |
34988 | main () | |
34989 | { | |
34990 | ||
34991 | char *buf; | |
62fa8b3a | 34992 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
34993 | |
34994 | ; | |
34995 | return 0; | |
34996 | } | |
34997 | _ACEOF | |
34998 | rm -f conftest.$ac_objext | |
34999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35000 | (eval $ac_compile) 2>conftest.er1 | |
35001 | ac_status=$? | |
35002 | grep -v '^ *+' conftest.er1 >conftest.err | |
35003 | rm -f conftest.er1 | |
35004 | cat conftest.err >&5 | |
35005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35006 | (exit $ac_status); } && | |
ca5c6ac3 | 35007 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4a767dd5 VZ |
35008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35009 | (eval $ac_try) 2>&5 | |
35010 | ac_status=$? | |
35011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35012 | (exit $ac_status); }; } && | |
35013 | { ac_try='test -s conftest.$ac_objext' | |
35014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35015 | (eval $ac_try) 2>&5 | |
35016 | ac_status=$? | |
35017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35018 | (exit $ac_status); }; }; then | |
35019 | wx_cv_func_snprintf_decl=yes | |
35020 | else | |
35021 | echo "$as_me: failed program was:" >&5 | |
35022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35023 | ||
35024 | wx_cv_func_snprintf_decl=no | |
35025 | ||
35026 | fi | |
35027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35028 | ||
35029 | ||
35030 | fi | |
35031 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
35032 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
35033 | ||
35034 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
35035 | cat >>confdefs.h <<\_ACEOF | |
35036 | #define HAVE_SNPRINTF_DECL 1 | |
35037 | _ACEOF | |
35038 | ||
62fa8b3a MW |
35039 | |
35040 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
35041 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
35042 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
35043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35044 | else | |
35045 | ||
35046 | cat >conftest.$ac_ext <<_ACEOF | |
35047 | /* confdefs.h. */ | |
35048 | _ACEOF | |
35049 | cat confdefs.h >>conftest.$ac_ext | |
35050 | cat >>conftest.$ac_ext <<_ACEOF | |
35051 | /* end confdefs.h. */ | |
35052 | ||
35053 | #include <stdio.h> | |
35054 | #include <stdarg.h> | |
35055 | #ifdef __MSL__ | |
35056 | #if __MSL__ >= 0x6000 | |
35057 | namespace std {} | |
35058 | using namespace std; | |
35059 | #endif | |
35060 | #endif | |
35061 | ||
35062 | int | |
35063 | main () | |
35064 | { | |
35065 | ||
35066 | char *buf; | |
35067 | const char *fmt = "%s"; | |
35068 | snprintf(buf, 10u, fmt, "wx"); | |
35069 | ||
35070 | ; | |
35071 | return 0; | |
35072 | } | |
35073 | _ACEOF | |
35074 | rm -f conftest.$ac_objext | |
35075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35076 | (eval $ac_compile) 2>conftest.er1 | |
35077 | ac_status=$? | |
35078 | grep -v '^ *+' conftest.er1 >conftest.err | |
35079 | rm -f conftest.er1 | |
35080 | cat conftest.err >&5 | |
35081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35082 | (exit $ac_status); } && | |
ca5c6ac3 | 35083 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
35084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35085 | (eval $ac_try) 2>&5 | |
35086 | ac_status=$? | |
35087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35088 | (exit $ac_status); }; } && | |
35089 | { ac_try='test -s conftest.$ac_objext' | |
35090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35091 | (eval $ac_try) 2>&5 | |
35092 | ac_status=$? | |
35093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35094 | (exit $ac_status); }; }; then | |
35095 | wx_cv_func_broken_snprintf_decl=no | |
35096 | else | |
35097 | echo "$as_me: failed program was:" >&5 | |
35098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35099 | ||
35100 | wx_cv_func_broken_snprintf_decl=yes | |
35101 | ||
35102 | fi | |
35103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35104 | ||
35105 | ||
35106 | fi | |
35107 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
35108 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
35109 | ||
35110 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
35111 | cat >>confdefs.h <<\_ACEOF | |
35112 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
8b6682b9 JS |
35113 | _ACEOF |
35114 | ||
35115 | fi | |
35116 | fi | |
35117 | ||
35118 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then | |
35119 | ||
35120 | echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5 | |
35121 | echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6 | |
35122 | if test "${wx_cv_func_snprintf_pos_params+set}" = set; then | |
35123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35124 | else | |
35125 | ||
35126 | if test "$cross_compiling" = yes; then | |
5039a2df VZ |
35127 | |
35128 | { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available, | |
35129 | define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5 | |
35130 | echo "$as_me: WARNING: Assuming Unix98 printf() is not available, | |
35131 | define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;} | |
35132 | wx_cv_func_snprintf_pos_params=no | |
35133 | ||
35134 | ||
8b6682b9 JS |
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 <stdio.h> | |
35144 | ||
35145 | int main (void) | |
35146 | { | |
35147 | char buffer[128]; | |
35148 | snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3); | |
35149 | if (strcmp ("2 3 1", buffer) == 0) | |
35150 | exit (0); | |
35151 | exit (1); | |
35152 | } | |
35153 | ||
35154 | _ACEOF | |
35155 | rm -f conftest$ac_exeext | |
35156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35157 | (eval $ac_link) 2>&5 | |
35158 | ac_status=$? | |
35159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35160 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
35161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35162 | (eval $ac_try) 2>&5 | |
35163 | ac_status=$? | |
35164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35165 | (exit $ac_status); }; }; then | |
35166 | wx_cv_func_snprintf_pos_params=no | |
35167 | else | |
35168 | echo "$as_me: program exited with status $ac_status" >&5 | |
35169 | echo "$as_me: failed program was:" >&5 | |
35170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35171 | ||
35172 | ( exit $ac_status ) | |
35173 | wx_cv_func_snprintf_pos_params=yes | |
8b6682b9 JS |
35174 | fi |
35175 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
35176 | fi | |
35177 | ||
35178 | ||
35179 | fi | |
35180 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5 | |
35181 | echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6 | |
35182 | ||
35183 | if test "$wx_cv_func_snprintf_pos_params" = "yes"; then | |
35184 | cat >>confdefs.h <<\_ACEOF | |
35185 | #define HAVE_UNIX98_PRINTF 1 | |
62fa8b3a MW |
35186 | _ACEOF |
35187 | ||
35188 | fi | |
4a767dd5 VZ |
35189 | fi |
35190 | fi | |
35191 | ||
a848cd7e SC |
35192 | if test "$wxUSE_UNICODE" = yes; then |
35193 | ||
35194 | ||
6a5c9b3f RR |
35195 | for ac_func in swprintf |
35196 | do | |
35197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35198 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35200 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35202 | else | |
35203 | cat >conftest.$ac_ext <<_ACEOF | |
35204 | /* confdefs.h. */ | |
35205 | _ACEOF | |
35206 | cat confdefs.h >>conftest.$ac_ext | |
35207 | cat >>conftest.$ac_ext <<_ACEOF | |
35208 | /* end confdefs.h. */ | |
35209 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
35210 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35211 | #define $ac_func innocuous_$ac_func | |
35212 | ||
35213 | /* System header to define __stub macros and hopefully few prototypes, | |
35214 | which can conflict with char $ac_func (); below. | |
35215 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35216 | <limits.h> exists even on freestanding compilers. */ | |
35217 | ||
35218 | #ifdef __STDC__ | |
35219 | # include <limits.h> | |
35220 | #else | |
35221 | # include <assert.h> | |
35222 | #endif | |
35223 | ||
35224 | #undef $ac_func | |
35225 | ||
35226 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35227 | #ifdef __cplusplus | |
35228 | extern "C" | |
35229 | { | |
35230 | #endif | |
35231 | /* We use char because int might match the return type of a gcc2 | |
35232 | builtin and then its argument prototype would still apply. */ | |
35233 | char $ac_func (); | |
35234 | /* The GNU C library defines this for functions which it implements | |
35235 | to always fail with ENOSYS. Some functions are actually named | |
35236 | something starting with __ and the normal name is an alias. */ | |
35237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35238 | choke me | |
35239 | #else | |
35240 | char (*f) () = $ac_func; | |
35241 | #endif | |
35242 | #ifdef __cplusplus | |
35243 | } | |
35244 | #endif | |
35245 | ||
35246 | int | |
35247 | main () | |
35248 | { | |
35249 | return f != $ac_func; | |
35250 | ; | |
35251 | return 0; | |
35252 | } | |
35253 | _ACEOF | |
35254 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35256 | (eval $ac_link) 2>conftest.er1 | |
35257 | ac_status=$? | |
35258 | grep -v '^ *+' conftest.er1 >conftest.err | |
35259 | rm -f conftest.er1 | |
35260 | cat conftest.err >&5 | |
35261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35262 | (exit $ac_status); } && | |
ca5c6ac3 | 35263 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6a5c9b3f RR |
35264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35265 | (eval $ac_try) 2>&5 | |
35266 | ac_status=$? | |
35267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35268 | (exit $ac_status); }; } && | |
35269 | { ac_try='test -s conftest$ac_exeext' | |
35270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35271 | (eval $ac_try) 2>&5 | |
35272 | ac_status=$? | |
35273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35274 | (exit $ac_status); }; }; then | |
35275 | eval "$as_ac_var=yes" | |
35276 | else | |
35277 | echo "$as_me: failed program was:" >&5 | |
35278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35279 | ||
35280 | eval "$as_ac_var=no" | |
35281 | fi | |
35282 | rm -f conftest.err conftest.$ac_objext \ | |
35283 | conftest$ac_exeext conftest.$ac_ext | |
35284 | fi | |
35285 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35286 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35287 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35288 | cat >>confdefs.h <<_ACEOF | |
35289 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35290 | _ACEOF | |
35291 | ||
35292 | fi | |
35293 | done | |
35294 | ||
35295 | ||
35296 | if test "$ac_cv_func_swprintf" = "yes"; then | |
35297 | echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5 | |
35298 | echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6 | |
35299 | if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then | |
35300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35301 | else | |
35302 | ||
35303 | cat >conftest.$ac_ext <<_ACEOF | |
35304 | /* confdefs.h. */ | |
35305 | _ACEOF | |
35306 | cat confdefs.h >>conftest.$ac_ext | |
35307 | cat >>conftest.$ac_ext <<_ACEOF | |
35308 | /* end confdefs.h. */ | |
35309 | ||
35310 | #include <stdio.h> | |
35311 | #include <stdarg.h> | |
35312 | #include <wchar.h> | |
35313 | ||
35314 | int | |
35315 | main () | |
35316 | { | |
35317 | ||
35318 | wchar_t *buf; | |
35319 | const wchar_t *fmt = L"test"; | |
35320 | swprintf(buf, 10u, fmt); | |
35321 | ||
35322 | ; | |
35323 | return 0; | |
35324 | } | |
35325 | _ACEOF | |
35326 | rm -f conftest.$ac_objext | |
35327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35328 | (eval $ac_compile) 2>conftest.er1 | |
35329 | ac_status=$? | |
35330 | grep -v '^ *+' conftest.er1 >conftest.err | |
35331 | rm -f conftest.er1 | |
35332 | cat conftest.err >&5 | |
35333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35334 | (exit $ac_status); } && | |
ca5c6ac3 | 35335 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6a5c9b3f RR |
35336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35337 | (eval $ac_try) 2>&5 | |
35338 | ac_status=$? | |
35339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35340 | (exit $ac_status); }; } && | |
35341 | { ac_try='test -s conftest.$ac_objext' | |
35342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35343 | (eval $ac_try) 2>&5 | |
35344 | ac_status=$? | |
35345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35346 | (exit $ac_status); }; }; then | |
35347 | wx_cv_func_broken_swprintf_decl=no | |
35348 | else | |
35349 | echo "$as_me: failed program was:" >&5 | |
35350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35351 | ||
35352 | wx_cv_func_broken_swprintf_decl=yes | |
35353 | ||
35354 | fi | |
35355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35356 | ||
35357 | ||
35358 | fi | |
35359 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5 | |
35360 | echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6 | |
35361 | ||
35362 | if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then | |
35363 | cat >>confdefs.h <<\_ACEOF | |
35364 | #define HAVE_BROKEN_SWPRINTF_DECL 1 | |
35365 | _ACEOF | |
35366 | ||
35367 | fi | |
35368 | fi | |
35369 | ||
35370 | ||
35371 | ||
a848cd7e | 35372 | |
fbe47c7b VS |
35373 | |
35374 | ||
35375 | ||
35376 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
35377 | do |
35378 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35379 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35380 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35381 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35383 | else | |
35384 | cat >conftest.$ac_ext <<_ACEOF | |
35385 | /* confdefs.h. */ | |
35386 | _ACEOF | |
35387 | cat confdefs.h >>conftest.$ac_ext | |
35388 | cat >>conftest.$ac_ext <<_ACEOF | |
35389 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35390 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35391 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35392 | #define $ac_func innocuous_$ac_func | |
35393 | ||
a848cd7e SC |
35394 | /* System header to define __stub macros and hopefully few prototypes, |
35395 | which can conflict with char $ac_func (); below. | |
35396 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35397 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35398 | |
a848cd7e SC |
35399 | #ifdef __STDC__ |
35400 | # include <limits.h> | |
35401 | #else | |
35402 | # include <assert.h> | |
35403 | #endif | |
ac1cb8d3 VS |
35404 | |
35405 | #undef $ac_func | |
35406 | ||
a848cd7e SC |
35407 | /* Override any gcc2 internal prototype to avoid an error. */ |
35408 | #ifdef __cplusplus | |
35409 | extern "C" | |
35410 | { | |
35411 | #endif | |
35412 | /* We use char because int might match the return type of a gcc2 | |
35413 | builtin and then its argument prototype would still apply. */ | |
35414 | char $ac_func (); | |
35415 | /* The GNU C library defines this for functions which it implements | |
35416 | to always fail with ENOSYS. Some functions are actually named | |
35417 | something starting with __ and the normal name is an alias. */ | |
35418 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35419 | choke me | |
35420 | #else | |
35421 | char (*f) () = $ac_func; | |
35422 | #endif | |
35423 | #ifdef __cplusplus | |
35424 | } | |
35425 | #endif | |
35426 | ||
35427 | int | |
35428 | main () | |
35429 | { | |
35430 | return f != $ac_func; | |
35431 | ; | |
35432 | return 0; | |
35433 | } | |
35434 | _ACEOF | |
35435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35437 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35438 | ac_status=$? |
ac1cb8d3 VS |
35439 | grep -v '^ *+' conftest.er1 >conftest.err |
35440 | rm -f conftest.er1 | |
35441 | cat conftest.err >&5 | |
a848cd7e SC |
35442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35443 | (exit $ac_status); } && | |
ca5c6ac3 | 35444 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35446 | (eval $ac_try) 2>&5 | |
35447 | ac_status=$? | |
35448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35449 | (exit $ac_status); }; } && | |
35450 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35452 | (eval $ac_try) 2>&5 | |
35453 | ac_status=$? | |
35454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35455 | (exit $ac_status); }; }; then | |
35456 | eval "$as_ac_var=yes" | |
35457 | else | |
35458 | echo "$as_me: failed program was:" >&5 | |
35459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35460 | ||
35461 | eval "$as_ac_var=no" | |
35462 | fi | |
ac1cb8d3 VS |
35463 | rm -f conftest.err conftest.$ac_objext \ |
35464 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35465 | fi |
35466 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35467 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35468 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35469 | cat >>confdefs.h <<_ACEOF | |
35470 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35471 | _ACEOF | |
35472 | ||
35473 | fi | |
35474 | done | |
35475 | ||
35476 | ||
35477 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
35478 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
35479 | cat >conftest.$ac_ext <<_ACEOF | |
35480 | /* confdefs.h. */ | |
35481 | _ACEOF | |
35482 | cat confdefs.h >>conftest.$ac_ext | |
35483 | cat >>conftest.$ac_ext <<_ACEOF | |
35484 | /* end confdefs.h. */ | |
35485 | #include <wchar.h> | |
35486 | int | |
35487 | main () | |
35488 | { | |
35489 | &_vsnwprintf; | |
35490 | ; | |
35491 | return 0; | |
35492 | } | |
35493 | _ACEOF | |
35494 | rm -f conftest.$ac_objext | |
35495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35496 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35497 | ac_status=$? |
ac1cb8d3 VS |
35498 | grep -v '^ *+' conftest.er1 >conftest.err |
35499 | rm -f conftest.er1 | |
35500 | cat conftest.err >&5 | |
a848cd7e SC |
35501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35502 | (exit $ac_status); } && | |
ca5c6ac3 | 35503 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35505 | (eval $ac_try) 2>&5 | |
35506 | ac_status=$? | |
35507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35508 | (exit $ac_status); }; } && | |
35509 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35511 | (eval $ac_try) 2>&5 | |
35512 | ac_status=$? | |
35513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35514 | (exit $ac_status); }; }; then | |
35515 | echo "$as_me:$LINENO: result: yes" >&5 | |
35516 | echo "${ECHO_T}yes" >&6 | |
35517 | cat >>confdefs.h <<\_ACEOF | |
35518 | #define HAVE__VSNWPRINTF 1 | |
35519 | _ACEOF | |
35520 | ||
35521 | else | |
35522 | echo "$as_me: failed program was:" >&5 | |
35523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35524 | ||
35525 | echo "$as_me:$LINENO: result: no" >&5 | |
35526 | echo "${ECHO_T}no" >&6 | |
35527 | fi | |
ac1cb8d3 | 35528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
35529 | fi |
35530 | ||
6ebeb4c7 VZ |
35531 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
35532 | ||
35533 | for ac_func in fnmatch | |
35534 | do | |
35535 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35536 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35537 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35538 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35540 | else | |
35541 | cat >conftest.$ac_ext <<_ACEOF | |
35542 | /* confdefs.h. */ | |
35543 | _ACEOF | |
35544 | cat confdefs.h >>conftest.$ac_ext | |
35545 | cat >>conftest.$ac_ext <<_ACEOF | |
35546 | /* end confdefs.h. */ | |
35547 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
35548 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35549 | #define $ac_func innocuous_$ac_func | |
35550 | ||
35551 | /* System header to define __stub macros and hopefully few prototypes, | |
35552 | which can conflict with char $ac_func (); below. | |
35553 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35554 | <limits.h> exists even on freestanding compilers. */ | |
35555 | ||
35556 | #ifdef __STDC__ | |
35557 | # include <limits.h> | |
35558 | #else | |
35559 | # include <assert.h> | |
35560 | #endif | |
35561 | ||
35562 | #undef $ac_func | |
35563 | ||
35564 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35565 | #ifdef __cplusplus | |
35566 | extern "C" | |
35567 | { | |
35568 | #endif | |
35569 | /* We use char because int might match the return type of a gcc2 | |
35570 | builtin and then its argument prototype would still apply. */ | |
35571 | char $ac_func (); | |
35572 | /* The GNU C library defines this for functions which it implements | |
35573 | to always fail with ENOSYS. Some functions are actually named | |
35574 | something starting with __ and the normal name is an alias. */ | |
35575 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35576 | choke me | |
35577 | #else | |
35578 | char (*f) () = $ac_func; | |
35579 | #endif | |
35580 | #ifdef __cplusplus | |
35581 | } | |
35582 | #endif | |
35583 | ||
35584 | int | |
35585 | main () | |
35586 | { | |
35587 | return f != $ac_func; | |
35588 | ; | |
35589 | return 0; | |
35590 | } | |
35591 | _ACEOF | |
35592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35594 | (eval $ac_link) 2>conftest.er1 | |
35595 | ac_status=$? | |
35596 | grep -v '^ *+' conftest.er1 >conftest.err | |
35597 | rm -f conftest.er1 | |
35598 | cat conftest.err >&5 | |
35599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35600 | (exit $ac_status); } && | |
ca5c6ac3 | 35601 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
35602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35603 | (eval $ac_try) 2>&5 | |
35604 | ac_status=$? | |
35605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35606 | (exit $ac_status); }; } && | |
35607 | { ac_try='test -s conftest$ac_exeext' | |
35608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35609 | (eval $ac_try) 2>&5 | |
35610 | ac_status=$? | |
35611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35612 | (exit $ac_status); }; }; then | |
35613 | eval "$as_ac_var=yes" | |
35614 | else | |
35615 | echo "$as_me: failed program was:" >&5 | |
35616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35617 | ||
35618 | eval "$as_ac_var=no" | |
35619 | fi | |
35620 | rm -f conftest.err conftest.$ac_objext \ | |
35621 | conftest$ac_exeext conftest.$ac_ext | |
35622 | fi | |
35623 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35624 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35625 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35626 | cat >>confdefs.h <<_ACEOF | |
35627 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35628 | _ACEOF | |
35629 | ||
35630 | fi | |
35631 | done | |
35632 | ||
35633 | fi | |
35634 | ||
35635 | if test "$wxUSE_FILE" = "yes"; then | |
35636 | ||
35637 | for ac_func in fsync | |
35638 | do | |
35639 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35640 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35641 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35642 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35644 | else | |
35645 | cat >conftest.$ac_ext <<_ACEOF | |
35646 | /* confdefs.h. */ | |
35647 | _ACEOF | |
35648 | cat confdefs.h >>conftest.$ac_ext | |
35649 | cat >>conftest.$ac_ext <<_ACEOF | |
35650 | /* end confdefs.h. */ | |
35651 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
35652 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35653 | #define $ac_func innocuous_$ac_func | |
35654 | ||
35655 | /* System header to define __stub macros and hopefully few prototypes, | |
35656 | which can conflict with char $ac_func (); below. | |
35657 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35658 | <limits.h> exists even on freestanding compilers. */ | |
35659 | ||
35660 | #ifdef __STDC__ | |
35661 | # include <limits.h> | |
35662 | #else | |
35663 | # include <assert.h> | |
35664 | #endif | |
35665 | ||
35666 | #undef $ac_func | |
35667 | ||
35668 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35669 | #ifdef __cplusplus | |
35670 | extern "C" | |
35671 | { | |
35672 | #endif | |
35673 | /* We use char because int might match the return type of a gcc2 | |
35674 | builtin and then its argument prototype would still apply. */ | |
35675 | char $ac_func (); | |
35676 | /* The GNU C library defines this for functions which it implements | |
35677 | to always fail with ENOSYS. Some functions are actually named | |
35678 | something starting with __ and the normal name is an alias. */ | |
35679 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35680 | choke me | |
35681 | #else | |
35682 | char (*f) () = $ac_func; | |
35683 | #endif | |
35684 | #ifdef __cplusplus | |
35685 | } | |
35686 | #endif | |
35687 | ||
35688 | int | |
35689 | main () | |
35690 | { | |
35691 | return f != $ac_func; | |
35692 | ; | |
35693 | return 0; | |
35694 | } | |
35695 | _ACEOF | |
35696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35698 | (eval $ac_link) 2>conftest.er1 | |
35699 | ac_status=$? | |
35700 | grep -v '^ *+' conftest.er1 >conftest.err | |
35701 | rm -f conftest.er1 | |
35702 | cat conftest.err >&5 | |
35703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35704 | (exit $ac_status); } && | |
ca5c6ac3 | 35705 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
35706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35707 | (eval $ac_try) 2>&5 | |
35708 | ac_status=$? | |
35709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35710 | (exit $ac_status); }; } && | |
35711 | { ac_try='test -s conftest$ac_exeext' | |
35712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35713 | (eval $ac_try) 2>&5 | |
35714 | ac_status=$? | |
35715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35716 | (exit $ac_status); }; }; then | |
35717 | eval "$as_ac_var=yes" | |
35718 | else | |
35719 | echo "$as_me: failed program was:" >&5 | |
35720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35721 | ||
35722 | eval "$as_ac_var=no" | |
35723 | fi | |
35724 | rm -f conftest.err conftest.$ac_objext \ | |
35725 | conftest$ac_exeext conftest.$ac_ext | |
35726 | fi | |
35727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35728 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35729 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35730 | cat >>confdefs.h <<_ACEOF | |
35731 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35732 | _ACEOF | |
35733 | ||
35734 | fi | |
35735 | done | |
35736 | ||
35737 | fi | |
a848cd7e SC |
35738 | |
35739 | ||
c2e9ada4 VZ |
35740 | for ac_func in round |
35741 | do | |
35742 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35743 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35744 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35745 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35747 | else | |
35748 | cat >conftest.$ac_ext <<_ACEOF | |
35749 | /* confdefs.h. */ | |
35750 | _ACEOF | |
35751 | cat confdefs.h >>conftest.$ac_ext | |
35752 | cat >>conftest.$ac_ext <<_ACEOF | |
35753 | /* end confdefs.h. */ | |
35754 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
35755 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35756 | #define $ac_func innocuous_$ac_func | |
35757 | ||
35758 | /* System header to define __stub macros and hopefully few prototypes, | |
35759 | which can conflict with char $ac_func (); below. | |
35760 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35761 | <limits.h> exists even on freestanding compilers. */ | |
35762 | ||
35763 | #ifdef __STDC__ | |
35764 | # include <limits.h> | |
35765 | #else | |
35766 | # include <assert.h> | |
35767 | #endif | |
35768 | ||
35769 | #undef $ac_func | |
35770 | ||
35771 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35772 | #ifdef __cplusplus | |
35773 | extern "C" | |
35774 | { | |
35775 | #endif | |
35776 | /* We use char because int might match the return type of a gcc2 | |
35777 | builtin and then its argument prototype would still apply. */ | |
35778 | char $ac_func (); | |
35779 | /* The GNU C library defines this for functions which it implements | |
35780 | to always fail with ENOSYS. Some functions are actually named | |
35781 | something starting with __ and the normal name is an alias. */ | |
35782 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35783 | choke me | |
35784 | #else | |
35785 | char (*f) () = $ac_func; | |
35786 | #endif | |
35787 | #ifdef __cplusplus | |
35788 | } | |
35789 | #endif | |
35790 | ||
35791 | int | |
35792 | main () | |
35793 | { | |
35794 | return f != $ac_func; | |
35795 | ; | |
35796 | return 0; | |
35797 | } | |
35798 | _ACEOF | |
35799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35801 | (eval $ac_link) 2>conftest.er1 | |
35802 | ac_status=$? | |
35803 | grep -v '^ *+' conftest.er1 >conftest.err | |
35804 | rm -f conftest.er1 | |
35805 | cat conftest.err >&5 | |
35806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35807 | (exit $ac_status); } && | |
ca5c6ac3 | 35808 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c2e9ada4 VZ |
35809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35810 | (eval $ac_try) 2>&5 | |
35811 | ac_status=$? | |
35812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35813 | (exit $ac_status); }; } && | |
35814 | { ac_try='test -s conftest$ac_exeext' | |
35815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35816 | (eval $ac_try) 2>&5 | |
35817 | ac_status=$? | |
35818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35819 | (exit $ac_status); }; }; then | |
35820 | eval "$as_ac_var=yes" | |
35821 | else | |
35822 | echo "$as_me: failed program was:" >&5 | |
35823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35824 | ||
35825 | eval "$as_ac_var=no" | |
35826 | fi | |
35827 | rm -f conftest.err conftest.$ac_objext \ | |
35828 | conftest$ac_exeext conftest.$ac_ext | |
35829 | fi | |
35830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35831 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35832 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35833 | cat >>confdefs.h <<_ACEOF | |
35834 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35835 | _ACEOF | |
35836 | ||
35837 | fi | |
35838 | done | |
35839 | ||
35840 | if test "$ac_cv_func_round" = yes; then | |
35841 | echo "$as_me:$LINENO: checking whether round is declared" >&5 | |
35842 | echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6 | |
35843 | if test "${ac_cv_have_decl_round+set}" = set; then | |
35844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35845 | else | |
35846 | cat >conftest.$ac_ext <<_ACEOF | |
35847 | /* confdefs.h. */ | |
35848 | _ACEOF | |
35849 | cat confdefs.h >>conftest.$ac_ext | |
35850 | cat >>conftest.$ac_ext <<_ACEOF | |
35851 | /* end confdefs.h. */ | |
35852 | #include <math.h> | |
35853 | ||
35854 | int | |
35855 | main () | |
35856 | { | |
35857 | #ifndef round | |
35858 | char *p = (char *) round; | |
35859 | #endif | |
35860 | ||
35861 | ; | |
35862 | return 0; | |
35863 | } | |
35864 | _ACEOF | |
35865 | rm -f conftest.$ac_objext | |
35866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35867 | (eval $ac_compile) 2>conftest.er1 | |
35868 | ac_status=$? | |
35869 | grep -v '^ *+' conftest.er1 >conftest.err | |
35870 | rm -f conftest.er1 | |
35871 | cat conftest.err >&5 | |
35872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35873 | (exit $ac_status); } && | |
ca5c6ac3 | 35874 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c2e9ada4 VZ |
35875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35876 | (eval $ac_try) 2>&5 | |
35877 | ac_status=$? | |
35878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35879 | (exit $ac_status); }; } && | |
35880 | { ac_try='test -s conftest.$ac_objext' | |
35881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35882 | (eval $ac_try) 2>&5 | |
35883 | ac_status=$? | |
35884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35885 | (exit $ac_status); }; }; then | |
35886 | ac_cv_have_decl_round=yes | |
35887 | else | |
35888 | echo "$as_me: failed program was:" >&5 | |
35889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35890 | ||
35891 | ac_cv_have_decl_round=no | |
35892 | fi | |
35893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35894 | fi | |
35895 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5 | |
35896 | echo "${ECHO_T}$ac_cv_have_decl_round" >&6 | |
35897 | if test $ac_cv_have_decl_round = yes; then | |
35898 | ||
35899 | cat >>confdefs.h <<_ACEOF | |
35900 | #define HAVE_DECL_ROUND 1 | |
35901 | _ACEOF | |
35902 | ||
35903 | ||
35904 | else | |
35905 | cat >>confdefs.h <<_ACEOF | |
35906 | #define HAVE_DECL_ROUND 0 | |
35907 | _ACEOF | |
35908 | ||
35909 | ||
35910 | fi | |
35911 | ||
35912 | ||
35913 | fi | |
35914 | ||
35915 | ||
a848cd7e SC |
35916 | if test "$TOOLKIT" != "MSW"; then |
35917 | ||
35918 | ||
a848cd7e SC |
35919 | |
35920 | ||
35921 | ||
35922 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
35923 | if test "${with_libiconv_prefix+set}" = set; then | |
35924 | withval="$with_libiconv_prefix" | |
35925 | ||
35926 | for dir in `echo "$withval" | tr : ' '`; do | |
35927 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
35928 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
35929 | done | |
35930 | ||
35931 | fi; | |
35932 | ||
35933 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
35934 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
35935 | if test "${am_cv_func_iconv+set}" = set; then | |
35936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35937 | else | |
35938 | ||
35939 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
35940 | am_cv_lib_iconv=no | |
35941 | cat >conftest.$ac_ext <<_ACEOF | |
35942 | /* confdefs.h. */ | |
35943 | _ACEOF | |
35944 | cat confdefs.h >>conftest.$ac_ext | |
35945 | cat >>conftest.$ac_ext <<_ACEOF | |
35946 | /* end confdefs.h. */ | |
35947 | #include <stdlib.h> | |
35948 | #include <iconv.h> | |
35949 | int | |
35950 | main () | |
35951 | { | |
35952 | iconv_t cd = iconv_open("",""); | |
35953 | iconv(cd,NULL,NULL,NULL,NULL); | |
35954 | iconv_close(cd); | |
35955 | ; | |
35956 | return 0; | |
35957 | } | |
35958 | _ACEOF | |
35959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35961 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35962 | ac_status=$? |
ac1cb8d3 VS |
35963 | grep -v '^ *+' conftest.er1 >conftest.err |
35964 | rm -f conftest.er1 | |
35965 | cat conftest.err >&5 | |
a848cd7e SC |
35966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35967 | (exit $ac_status); } && | |
ca5c6ac3 | 35968 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35970 | (eval $ac_try) 2>&5 | |
35971 | ac_status=$? | |
35972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35973 | (exit $ac_status); }; } && | |
35974 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35976 | (eval $ac_try) 2>&5 | |
35977 | ac_status=$? | |
35978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35979 | (exit $ac_status); }; }; then | |
35980 | am_cv_func_iconv=yes | |
35981 | else | |
35982 | echo "$as_me: failed program was:" >&5 | |
35983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35984 | ||
35985 | fi | |
ac1cb8d3 VS |
35986 | rm -f conftest.err conftest.$ac_objext \ |
35987 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35988 | if test "$am_cv_func_iconv" != yes; then |
35989 | am_save_LIBS="$LIBS" | |
35990 | LIBS="$LIBS -liconv" | |
35991 | cat >conftest.$ac_ext <<_ACEOF | |
35992 | /* confdefs.h. */ | |
35993 | _ACEOF | |
35994 | cat confdefs.h >>conftest.$ac_ext | |
35995 | cat >>conftest.$ac_ext <<_ACEOF | |
35996 | /* end confdefs.h. */ | |
35997 | #include <stdlib.h> | |
35998 | #include <iconv.h> | |
35999 | int | |
36000 | main () | |
36001 | { | |
36002 | iconv_t cd = iconv_open("",""); | |
36003 | iconv(cd,NULL,NULL,NULL,NULL); | |
36004 | iconv_close(cd); | |
36005 | ; | |
36006 | return 0; | |
36007 | } | |
36008 | _ACEOF | |
36009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36011 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36012 | ac_status=$? |
ac1cb8d3 VS |
36013 | grep -v '^ *+' conftest.er1 >conftest.err |
36014 | rm -f conftest.er1 | |
36015 | cat conftest.err >&5 | |
a848cd7e SC |
36016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36017 | (exit $ac_status); } && | |
ca5c6ac3 | 36018 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36020 | (eval $ac_try) 2>&5 | |
36021 | ac_status=$? | |
36022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36023 | (exit $ac_status); }; } && | |
36024 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36026 | (eval $ac_try) 2>&5 | |
36027 | ac_status=$? | |
36028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36029 | (exit $ac_status); }; }; then | |
36030 | am_cv_lib_iconv=yes | |
36031 | am_cv_func_iconv=yes | |
36032 | else | |
36033 | echo "$as_me: failed program was:" >&5 | |
36034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36035 | ||
36036 | fi | |
ac1cb8d3 VS |
36037 | rm -f conftest.err conftest.$ac_objext \ |
36038 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36039 | LIBS="$am_save_LIBS" |
36040 | fi | |
36041 | ||
36042 | fi | |
36043 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
36044 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
36045 | if test "$am_cv_func_iconv" = yes; then | |
36046 | ||
36047 | cat >>confdefs.h <<\_ACEOF | |
36048 | #define HAVE_ICONV 1 | |
36049 | _ACEOF | |
36050 | ||
36051 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
36052 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
36053 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
36054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36055 | else | |
36056 | cat >conftest.$ac_ext <<_ACEOF | |
36057 | /* confdefs.h. */ | |
36058 | _ACEOF | |
36059 | cat confdefs.h >>conftest.$ac_ext | |
36060 | cat >>conftest.$ac_ext <<_ACEOF | |
36061 | /* end confdefs.h. */ | |
36062 | ||
36063 | #include <stdlib.h> | |
36064 | #include <iconv.h> | |
36065 | extern | |
36066 | #ifdef __cplusplus | |
36067 | "C" | |
36068 | #endif | |
36069 | #if defined(__STDC__) || defined(__cplusplus) | |
36070 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
36071 | #else | |
36072 | size_t iconv(); | |
36073 | #endif | |
36074 | ||
36075 | int | |
36076 | main () | |
36077 | { | |
36078 | ||
36079 | ; | |
36080 | return 0; | |
36081 | } | |
36082 | _ACEOF | |
36083 | rm -f conftest.$ac_objext | |
36084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36085 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36086 | ac_status=$? |
ac1cb8d3 VS |
36087 | grep -v '^ *+' conftest.er1 >conftest.err |
36088 | rm -f conftest.er1 | |
36089 | cat conftest.err >&5 | |
a848cd7e SC |
36090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36091 | (exit $ac_status); } && | |
ca5c6ac3 | 36092 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36094 | (eval $ac_try) 2>&5 | |
36095 | ac_status=$? | |
36096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36097 | (exit $ac_status); }; } && | |
36098 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36100 | (eval $ac_try) 2>&5 | |
36101 | ac_status=$? | |
36102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36103 | (exit $ac_status); }; }; then | |
36104 | wx_cv_func_iconv_const="no" | |
36105 | else | |
36106 | echo "$as_me: failed program was:" >&5 | |
36107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36108 | ||
36109 | wx_cv_func_iconv_const="yes" | |
36110 | ||
36111 | fi | |
ac1cb8d3 | 36112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36113 | |
36114 | fi | |
36115 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
36116 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
36117 | ||
36118 | iconv_const= | |
36119 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
36120 | iconv_const="const" | |
36121 | fi | |
36122 | ||
36123 | ||
36124 | cat >>confdefs.h <<_ACEOF | |
36125 | #define ICONV_CONST $iconv_const | |
36126 | _ACEOF | |
36127 | ||
36128 | fi | |
36129 | LIBICONV= | |
36130 | if test "$am_cv_lib_iconv" = yes; then | |
36131 | LIBICONV="-liconv" | |
36132 | fi | |
36133 | ||
36134 | ||
36135 | LIBS="$LIBICONV $LIBS" | |
a848cd7e SC |
36136 | |
36137 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
36138 | ||
36139 | for ac_func in sigaction | |
36140 | do | |
36141 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36142 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36143 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36144 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36146 | else | |
36147 | cat >conftest.$ac_ext <<_ACEOF | |
36148 | /* confdefs.h. */ | |
36149 | _ACEOF | |
36150 | cat confdefs.h >>conftest.$ac_ext | |
36151 | cat >>conftest.$ac_ext <<_ACEOF | |
36152 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36153 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36155 | #define $ac_func innocuous_$ac_func | |
36156 | ||
a848cd7e SC |
36157 | /* System header to define __stub macros and hopefully few prototypes, |
36158 | which can conflict with char $ac_func (); below. | |
36159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36160 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36161 | |
a848cd7e SC |
36162 | #ifdef __STDC__ |
36163 | # include <limits.h> | |
36164 | #else | |
36165 | # include <assert.h> | |
36166 | #endif | |
ac1cb8d3 VS |
36167 | |
36168 | #undef $ac_func | |
36169 | ||
a848cd7e SC |
36170 | /* Override any gcc2 internal prototype to avoid an error. */ |
36171 | #ifdef __cplusplus | |
36172 | extern "C" | |
36173 | { | |
36174 | #endif | |
36175 | /* We use char because int might match the return type of a gcc2 | |
36176 | builtin and then its argument prototype would still apply. */ | |
36177 | char $ac_func (); | |
36178 | /* The GNU C library defines this for functions which it implements | |
36179 | to always fail with ENOSYS. Some functions are actually named | |
36180 | something starting with __ and the normal name is an alias. */ | |
36181 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36182 | choke me | |
36183 | #else | |
36184 | char (*f) () = $ac_func; | |
36185 | #endif | |
36186 | #ifdef __cplusplus | |
36187 | } | |
36188 | #endif | |
36189 | ||
36190 | int | |
36191 | main () | |
36192 | { | |
36193 | return f != $ac_func; | |
36194 | ; | |
36195 | return 0; | |
36196 | } | |
36197 | _ACEOF | |
36198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36200 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36201 | ac_status=$? |
ac1cb8d3 VS |
36202 | grep -v '^ *+' conftest.er1 >conftest.err |
36203 | rm -f conftest.er1 | |
36204 | cat conftest.err >&5 | |
a848cd7e SC |
36205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36206 | (exit $ac_status); } && | |
ca5c6ac3 | 36207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36209 | (eval $ac_try) 2>&5 | |
36210 | ac_status=$? | |
36211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36212 | (exit $ac_status); }; } && | |
36213 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36215 | (eval $ac_try) 2>&5 | |
36216 | ac_status=$? | |
36217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36218 | (exit $ac_status); }; }; then | |
36219 | eval "$as_ac_var=yes" | |
36220 | else | |
36221 | echo "$as_me: failed program was:" >&5 | |
36222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36223 | ||
36224 | eval "$as_ac_var=no" | |
36225 | fi | |
ac1cb8d3 VS |
36226 | rm -f conftest.err conftest.$ac_objext \ |
36227 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36228 | fi |
36229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36230 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36231 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36232 | cat >>confdefs.h <<_ACEOF | |
36233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36234 | _ACEOF | |
36235 | ||
36236 | fi | |
36237 | done | |
36238 | ||
36239 | ||
36240 | if test "$ac_cv_func_sigaction" = "no"; then | |
36241 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
36242 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
36243 | wxUSE_ON_FATAL_EXCEPTION=no | |
36244 | fi | |
36245 | ||
36246 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a848cd7e SC |
36247 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
36248 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
36249 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
36250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36251 | else | |
36252 | ||
36253 | cat >conftest.$ac_ext <<_ACEOF | |
36254 | /* confdefs.h. */ | |
36255 | _ACEOF | |
36256 | cat confdefs.h >>conftest.$ac_ext | |
36257 | cat >>conftest.$ac_ext <<_ACEOF | |
36258 | /* end confdefs.h. */ | |
36259 | #include <signal.h> | |
36260 | int | |
36261 | main () | |
36262 | { | |
36263 | ||
36264 | extern void testSigHandler(int); | |
36265 | ||
36266 | struct sigaction sa; | |
36267 | sa.sa_handler = testSigHandler; | |
36268 | ||
36269 | ; | |
36270 | return 0; | |
36271 | } | |
36272 | _ACEOF | |
36273 | rm -f conftest.$ac_objext | |
36274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36275 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36276 | ac_status=$? |
ac1cb8d3 VS |
36277 | grep -v '^ *+' conftest.er1 >conftest.err |
36278 | rm -f conftest.er1 | |
36279 | cat conftest.err >&5 | |
a848cd7e SC |
36280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36281 | (exit $ac_status); } && | |
ca5c6ac3 | 36282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36284 | (eval $ac_try) 2>&5 | |
36285 | ac_status=$? | |
36286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36287 | (exit $ac_status); }; } && | |
36288 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36290 | (eval $ac_try) 2>&5 | |
36291 | ac_status=$? | |
36292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36293 | (exit $ac_status); }; }; then | |
36294 | ||
36295 | wx_cv_type_sa_handler=int | |
36296 | ||
36297 | else | |
36298 | echo "$as_me: failed program was:" >&5 | |
36299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36300 | ||
36301 | ||
36302 | wx_cv_type_sa_handler=void | |
36303 | ||
36304 | fi | |
ac1cb8d3 | 36305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36306 | |
36307 | fi | |
36308 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
36309 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
36310 | ||
a848cd7e SC |
36311 | cat >>confdefs.h <<_ACEOF |
36312 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
36313 | _ACEOF | |
36314 | ||
36315 | fi | |
36316 | fi | |
36317 | ||
eaff0f0d | 36318 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
eaff0f0d VZ |
36319 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 |
36320 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
36321 | if test "${wx_cv_func_backtrace+set}" = set; then | |
36322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36323 | else | |
36324 | ||
36325 | cat >conftest.$ac_ext <<_ACEOF | |
36326 | /* confdefs.h. */ | |
36327 | _ACEOF | |
36328 | cat confdefs.h >>conftest.$ac_ext | |
36329 | cat >>conftest.$ac_ext <<_ACEOF | |
36330 | /* end confdefs.h. */ | |
36331 | #include <execinfo.h> | |
36332 | int | |
36333 | main () | |
36334 | { | |
36335 | ||
36336 | void *trace[1]; | |
36337 | char **messages; | |
36338 | ||
36339 | backtrace(trace, 1); | |
36340 | messages = backtrace_symbols(trace, 1); | |
36341 | ||
36342 | ; | |
36343 | return 0; | |
36344 | } | |
36345 | _ACEOF | |
36346 | rm -f conftest.$ac_objext | |
36347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36348 | (eval $ac_compile) 2>conftest.er1 | |
36349 | ac_status=$? | |
36350 | grep -v '^ *+' conftest.er1 >conftest.err | |
36351 | rm -f conftest.er1 | |
36352 | cat conftest.err >&5 | |
36353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36354 | (exit $ac_status); } && | |
ca5c6ac3 | 36355 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
36356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36357 | (eval $ac_try) 2>&5 | |
36358 | ac_status=$? | |
36359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36360 | (exit $ac_status); }; } && | |
36361 | { ac_try='test -s conftest.$ac_objext' | |
36362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36363 | (eval $ac_try) 2>&5 | |
36364 | ac_status=$? | |
36365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36366 | (exit $ac_status); }; }; then | |
36367 | wx_cv_func_backtrace=yes | |
36368 | else | |
36369 | echo "$as_me: failed program was:" >&5 | |
36370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36371 | ||
36372 | wx_cv_func_backtrace=no | |
36373 | ||
36374 | fi | |
36375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36376 | ||
36377 | ||
36378 | fi | |
36379 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
36380 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
36381 | ||
36382 | ||
36383 | if test "$wx_cv_func_backtrace" = "no"; then | |
36384 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
36385 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
36386 | wxUSE_STACKWALKER=no | |
36387 | else | |
36388 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
36389 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
36390 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
36391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36392 | else | |
36393 | ||
36394 | cat >conftest.$ac_ext <<_ACEOF | |
36395 | /* confdefs.h. */ | |
36396 | _ACEOF | |
36397 | cat confdefs.h >>conftest.$ac_ext | |
36398 | cat >>conftest.$ac_ext <<_ACEOF | |
36399 | /* end confdefs.h. */ | |
36400 | #include <cxxabi.h> | |
36401 | int | |
36402 | main () | |
36403 | { | |
36404 | ||
36405 | int rc; | |
36406 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
36407 | ||
36408 | ; | |
36409 | return 0; | |
36410 | } | |
36411 | _ACEOF | |
dfe0c803 JS |
36412 | rm -f conftest.$ac_objext conftest$ac_exeext |
36413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36414 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
36415 | ac_status=$? |
36416 | grep -v '^ *+' conftest.er1 >conftest.err | |
36417 | rm -f conftest.er1 | |
36418 | cat conftest.err >&5 | |
36419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36420 | (exit $ac_status); } && | |
ca5c6ac3 | 36421 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
36422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36423 | (eval $ac_try) 2>&5 | |
36424 | ac_status=$? | |
36425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36426 | (exit $ac_status); }; } && | |
dfe0c803 | 36427 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
36428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36429 | (eval $ac_try) 2>&5 | |
36430 | ac_status=$? | |
36431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36432 | (exit $ac_status); }; }; then | |
36433 | wx_cv_func_cxa_demangle=yes | |
36434 | else | |
36435 | echo "$as_me: failed program was:" >&5 | |
36436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36437 | ||
36438 | wx_cv_func_cxa_demangle=no | |
36439 | ||
36440 | fi | |
dfe0c803 JS |
36441 | rm -f conftest.err conftest.$ac_objext \ |
36442 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
36443 | |
36444 | ||
36445 | fi | |
36446 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
36447 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
36448 | ||
36449 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
36450 | cat >>confdefs.h <<\_ACEOF | |
36451 | #define HAVE_CXA_DEMANGLE 1 | |
36452 | _ACEOF | |
36453 | ||
36454 | fi | |
36455 | fi | |
eaff0f0d VZ |
36456 | fi |
36457 | ||
898beab1 DE |
36458 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
36459 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
36460 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
36461 | wxUSE_STACKWALKER=no | |
36462 | fi | |
36463 | ||
36464 | ||
a848cd7e SC |
36465 | |
36466 | ||
36467 | for ac_func in mkstemp mktemp | |
36468 | do | |
36469 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36470 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36471 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36472 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36474 | else | |
36475 | cat >conftest.$ac_ext <<_ACEOF | |
36476 | /* confdefs.h. */ | |
36477 | _ACEOF | |
36478 | cat confdefs.h >>conftest.$ac_ext | |
36479 | cat >>conftest.$ac_ext <<_ACEOF | |
36480 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36481 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36482 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36483 | #define $ac_func innocuous_$ac_func | |
36484 | ||
a848cd7e SC |
36485 | /* System header to define __stub macros and hopefully few prototypes, |
36486 | which can conflict with char $ac_func (); below. | |
36487 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36488 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36489 | |
a848cd7e SC |
36490 | #ifdef __STDC__ |
36491 | # include <limits.h> | |
36492 | #else | |
36493 | # include <assert.h> | |
36494 | #endif | |
ac1cb8d3 VS |
36495 | |
36496 | #undef $ac_func | |
36497 | ||
a848cd7e SC |
36498 | /* Override any gcc2 internal prototype to avoid an error. */ |
36499 | #ifdef __cplusplus | |
36500 | extern "C" | |
36501 | { | |
36502 | #endif | |
36503 | /* We use char because int might match the return type of a gcc2 | |
36504 | builtin and then its argument prototype would still apply. */ | |
36505 | char $ac_func (); | |
36506 | /* The GNU C library defines this for functions which it implements | |
36507 | to always fail with ENOSYS. Some functions are actually named | |
36508 | something starting with __ and the normal name is an alias. */ | |
36509 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36510 | choke me | |
36511 | #else | |
36512 | char (*f) () = $ac_func; | |
36513 | #endif | |
36514 | #ifdef __cplusplus | |
36515 | } | |
36516 | #endif | |
36517 | ||
36518 | int | |
36519 | main () | |
36520 | { | |
36521 | return f != $ac_func; | |
36522 | ; | |
36523 | return 0; | |
36524 | } | |
36525 | _ACEOF | |
36526 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36528 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36529 | ac_status=$? |
ac1cb8d3 VS |
36530 | grep -v '^ *+' conftest.er1 >conftest.err |
36531 | rm -f conftest.er1 | |
36532 | cat conftest.err >&5 | |
a848cd7e SC |
36533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36534 | (exit $ac_status); } && | |
ca5c6ac3 | 36535 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36537 | (eval $ac_try) 2>&5 | |
36538 | ac_status=$? | |
36539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36540 | (exit $ac_status); }; } && | |
36541 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36543 | (eval $ac_try) 2>&5 | |
36544 | ac_status=$? | |
36545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36546 | (exit $ac_status); }; }; then | |
36547 | eval "$as_ac_var=yes" | |
36548 | else | |
36549 | echo "$as_me: failed program was:" >&5 | |
36550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36551 | ||
36552 | eval "$as_ac_var=no" | |
36553 | fi | |
ac1cb8d3 VS |
36554 | rm -f conftest.err conftest.$ac_objext \ |
36555 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36556 | fi |
36557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36558 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36559 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36560 | cat >>confdefs.h <<_ACEOF | |
36561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36562 | _ACEOF | |
36563 | break | |
36564 | fi | |
36565 | done | |
36566 | ||
36567 | ||
36568 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
36569 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
36570 | if test "${wx_cv_func_statfs+set}" = set; then | |
36571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36572 | else | |
36573 | cat >conftest.$ac_ext <<_ACEOF | |
36574 | /* confdefs.h. */ | |
36575 | _ACEOF | |
36576 | cat confdefs.h >>conftest.$ac_ext | |
36577 | cat >>conftest.$ac_ext <<_ACEOF | |
36578 | /* end confdefs.h. */ | |
36579 | ||
36580 | #if defined(__BSD__) | |
84ae7ca4 VZ |
36581 | #include <sys/param.h> |
36582 | #include <sys/mount.h> | |
a848cd7e | 36583 | #else |
84ae7ca4 | 36584 | #include <sys/vfs.h> |
a848cd7e SC |
36585 | #endif |
36586 | ||
36587 | int | |
36588 | main () | |
36589 | { | |
36590 | ||
36591 | long l; | |
36592 | struct statfs fs; | |
36593 | statfs("/", &fs); | |
36594 | l = fs.f_bsize; | |
36595 | l += fs.f_blocks; | |
36596 | l += fs.f_bavail; | |
36597 | ||
36598 | ; | |
36599 | return 0; | |
36600 | } | |
36601 | _ACEOF | |
36602 | rm -f conftest.$ac_objext | |
36603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36604 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36605 | ac_status=$? |
ac1cb8d3 VS |
36606 | grep -v '^ *+' conftest.er1 >conftest.err |
36607 | rm -f conftest.er1 | |
36608 | cat conftest.err >&5 | |
a848cd7e SC |
36609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36610 | (exit $ac_status); } && | |
ca5c6ac3 | 36611 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36613 | (eval $ac_try) 2>&5 | |
36614 | ac_status=$? | |
36615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36616 | (exit $ac_status); }; } && | |
36617 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36619 | (eval $ac_try) 2>&5 | |
36620 | ac_status=$? | |
36621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36622 | (exit $ac_status); }; }; then | |
84ae7ca4 | 36623 | wx_cv_func_statfs=yes |
a848cd7e SC |
36624 | else |
36625 | echo "$as_me: failed program was:" >&5 | |
36626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36627 | ||
84ae7ca4 | 36628 | wx_cv_func_statfs=no |
a848cd7e SC |
36629 | |
36630 | fi | |
ac1cb8d3 | 36631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36632 | |
36633 | fi | |
36634 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
36635 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
36636 | ||
36637 | if test "$wx_cv_func_statfs" = "yes"; then | |
5d7b7554 | 36638 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 |
84ae7ca4 VZ |
36639 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 |
36640 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
36641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36642 | else | |
0683aca6 VZ |
36643 | cat >conftest.$ac_ext <<_ACEOF |
36644 | /* confdefs.h. */ | |
36645 | _ACEOF | |
36646 | cat confdefs.h >>conftest.$ac_ext | |
36647 | cat >>conftest.$ac_ext <<_ACEOF | |
36648 | /* end confdefs.h. */ | |
84ae7ca4 | 36649 | |
0683aca6 VZ |
36650 | #if defined(__BSD__) |
36651 | #include <sys/param.h> | |
36652 | #include <sys/mount.h> | |
36653 | #else | |
36654 | #include <sys/vfs.h> | |
36655 | #endif | |
36656 | ||
36657 | int | |
36658 | main () | |
36659 | { | |
36660 | ||
36661 | struct statfs fs; | |
36662 | statfs("", &fs); | |
36663 | ||
36664 | ; | |
36665 | return 0; | |
36666 | } | |
36667 | _ACEOF | |
36668 | rm -f conftest.$ac_objext | |
36669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36670 | (eval $ac_compile) 2>conftest.er1 | |
36671 | ac_status=$? | |
36672 | grep -v '^ *+' conftest.er1 >conftest.err | |
36673 | rm -f conftest.er1 | |
36674 | cat conftest.err >&5 | |
36675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36676 | (exit $ac_status); } && | |
ca5c6ac3 | 36677 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0683aca6 VZ |
36678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36679 | (eval $ac_try) 2>&5 | |
36680 | ac_status=$? | |
36681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36682 | (exit $ac_status); }; } && | |
36683 | { ac_try='test -s conftest.$ac_objext' | |
36684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36685 | (eval $ac_try) 2>&5 | |
36686 | ac_status=$? | |
36687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36688 | (exit $ac_status); }; }; then | |
36689 | wx_cv_func_statfs_decl=yes | |
36690 | else | |
36691 | echo "$as_me: failed program was:" >&5 | |
36692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36693 | ||
36694 | wx_cv_func_statfs_decl=no | |
36695 | ||
36696 | fi | |
36697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
36698 | |
36699 | fi | |
36700 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
36701 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
84ae7ca4 VZ |
36702 | |
36703 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
36704 | cat >>confdefs.h <<\_ACEOF | |
36705 | #define HAVE_STATFS_DECL 1 | |
36706 | _ACEOF | |
36707 | ||
36708 | fi | |
36709 | ||
a848cd7e SC |
36710 | wx_cv_type_statvfs_t="struct statfs" |
36711 | cat >>confdefs.h <<\_ACEOF | |
36712 | #define HAVE_STATFS 1 | |
36713 | _ACEOF | |
36714 | ||
36715 | else | |
36716 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
36717 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
36718 | if test "${wx_cv_func_statvfs+set}" = set; then | |
36719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36720 | else | |
36721 | cat >conftest.$ac_ext <<_ACEOF | |
36722 | /* confdefs.h. */ | |
36723 | _ACEOF | |
36724 | cat confdefs.h >>conftest.$ac_ext | |
36725 | cat >>conftest.$ac_ext <<_ACEOF | |
36726 | /* end confdefs.h. */ | |
36727 | ||
36728 | #include <stddef.h> | |
36729 | #include <sys/statvfs.h> | |
36730 | ||
36731 | int | |
36732 | main () | |
36733 | { | |
36734 | ||
36735 | statvfs("/", NULL); | |
36736 | ||
36737 | ; | |
36738 | return 0; | |
36739 | } | |
36740 | _ACEOF | |
36741 | rm -f conftest.$ac_objext | |
36742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36743 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36744 | ac_status=$? |
ac1cb8d3 VS |
36745 | grep -v '^ *+' conftest.er1 >conftest.err |
36746 | rm -f conftest.er1 | |
36747 | cat conftest.err >&5 | |
a848cd7e SC |
36748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36749 | (exit $ac_status); } && | |
ca5c6ac3 | 36750 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36752 | (eval $ac_try) 2>&5 | |
36753 | ac_status=$? | |
36754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36755 | (exit $ac_status); }; } && | |
36756 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36758 | (eval $ac_try) 2>&5 | |
36759 | ac_status=$? | |
36760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36761 | (exit $ac_status); }; }; then | |
36762 | wx_cv_func_statvfs=yes | |
36763 | else | |
36764 | echo "$as_me: failed program was:" >&5 | |
36765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36766 | ||
36767 | wx_cv_func_statvfs=no | |
36768 | ||
36769 | fi | |
ac1cb8d3 | 36770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36771 | |
36772 | fi | |
36773 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
36774 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
36775 | ||
36776 | if test "$wx_cv_func_statvfs" = "yes"; then | |
5d7b7554 | 36777 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
a848cd7e SC |
36778 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 |
36779 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
36780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36781 | else | |
36782 | cat >conftest.$ac_ext <<_ACEOF | |
36783 | /* confdefs.h. */ | |
36784 | _ACEOF | |
36785 | cat confdefs.h >>conftest.$ac_ext | |
36786 | cat >>conftest.$ac_ext <<_ACEOF | |
36787 | /* end confdefs.h. */ | |
36788 | ||
36789 | #include <sys/statvfs.h> | |
36790 | ||
36791 | int | |
36792 | main () | |
36793 | { | |
36794 | ||
36795 | long l; | |
36796 | statvfs_t fs; | |
36797 | statvfs("/", &fs); | |
36798 | l = fs.f_bsize; | |
36799 | l += fs.f_blocks; | |
36800 | l += fs.f_bavail; | |
36801 | ||
36802 | ; | |
36803 | return 0; | |
36804 | } | |
36805 | _ACEOF | |
36806 | rm -f conftest.$ac_objext | |
36807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36808 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36809 | ac_status=$? |
ac1cb8d3 VS |
36810 | grep -v '^ *+' conftest.er1 >conftest.err |
36811 | rm -f conftest.er1 | |
36812 | cat conftest.err >&5 | |
a848cd7e SC |
36813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36814 | (exit $ac_status); } && | |
ca5c6ac3 | 36815 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36817 | (eval $ac_try) 2>&5 | |
36818 | ac_status=$? | |
36819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36820 | (exit $ac_status); }; } && | |
36821 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36823 | (eval $ac_try) 2>&5 | |
36824 | ac_status=$? | |
36825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36826 | (exit $ac_status); }; }; then | |
36827 | wx_cv_type_statvfs_t=statvfs_t | |
36828 | else | |
36829 | echo "$as_me: failed program was:" >&5 | |
36830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36831 | ||
36832 | ||
36833 | cat >conftest.$ac_ext <<_ACEOF | |
36834 | /* confdefs.h. */ | |
36835 | _ACEOF | |
36836 | cat confdefs.h >>conftest.$ac_ext | |
36837 | cat >>conftest.$ac_ext <<_ACEOF | |
36838 | /* end confdefs.h. */ | |
36839 | ||
36840 | #include <sys/statvfs.h> | |
36841 | ||
36842 | int | |
36843 | main () | |
36844 | { | |
36845 | ||
36846 | long l; | |
36847 | struct statvfs fs; | |
36848 | statvfs("/", &fs); | |
36849 | l = fs.f_bsize; | |
36850 | l += fs.f_blocks; | |
36851 | l += fs.f_bavail; | |
36852 | ||
36853 | ; | |
36854 | return 0; | |
36855 | } | |
36856 | _ACEOF | |
36857 | rm -f conftest.$ac_objext | |
36858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36859 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36860 | ac_status=$? |
ac1cb8d3 VS |
36861 | grep -v '^ *+' conftest.er1 >conftest.err |
36862 | rm -f conftest.er1 | |
36863 | cat conftest.err >&5 | |
a848cd7e SC |
36864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36865 | (exit $ac_status); } && | |
ca5c6ac3 | 36866 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36868 | (eval $ac_try) 2>&5 | |
36869 | ac_status=$? | |
36870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36871 | (exit $ac_status); }; } && | |
36872 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36874 | (eval $ac_try) 2>&5 | |
36875 | ac_status=$? | |
36876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36877 | (exit $ac_status); }; }; then | |
36878 | wx_cv_type_statvfs_t="struct statvfs" | |
36879 | else | |
36880 | echo "$as_me: failed program was:" >&5 | |
36881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36882 | ||
36883 | wx_cv_type_statvfs_t="unknown" | |
36884 | ||
36885 | fi | |
ac1cb8d3 | 36886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36887 | |
36888 | ||
36889 | fi | |
ac1cb8d3 | 36890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36891 | |
36892 | fi | |
36893 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
36894 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
36895 | ||
a848cd7e SC |
36896 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
36897 | cat >>confdefs.h <<\_ACEOF | |
36898 | #define HAVE_STATVFS 1 | |
36899 | _ACEOF | |
36900 | ||
36901 | fi | |
36902 | else | |
36903 | wx_cv_type_statvfs_t="unknown" | |
36904 | fi | |
36905 | fi | |
36906 | ||
36907 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
36908 | cat >>confdefs.h <<_ACEOF | |
36909 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
36910 | _ACEOF | |
36911 | ||
36912 | else | |
36913 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
36914 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
36915 | fi | |
36916 | ||
36917 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
36918 | ||
36919 | ||
36920 | for ac_func in fcntl flock | |
36921 | do | |
36922 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36923 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36924 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36925 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36927 | else | |
36928 | cat >conftest.$ac_ext <<_ACEOF | |
36929 | /* confdefs.h. */ | |
36930 | _ACEOF | |
36931 | cat confdefs.h >>conftest.$ac_ext | |
36932 | cat >>conftest.$ac_ext <<_ACEOF | |
36933 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36934 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36935 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36936 | #define $ac_func innocuous_$ac_func | |
36937 | ||
a848cd7e SC |
36938 | /* System header to define __stub macros and hopefully few prototypes, |
36939 | which can conflict with char $ac_func (); below. | |
36940 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36941 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36942 | |
a848cd7e SC |
36943 | #ifdef __STDC__ |
36944 | # include <limits.h> | |
36945 | #else | |
36946 | # include <assert.h> | |
36947 | #endif | |
ac1cb8d3 VS |
36948 | |
36949 | #undef $ac_func | |
36950 | ||
a848cd7e SC |
36951 | /* Override any gcc2 internal prototype to avoid an error. */ |
36952 | #ifdef __cplusplus | |
36953 | extern "C" | |
36954 | { | |
36955 | #endif | |
36956 | /* We use char because int might match the return type of a gcc2 | |
36957 | builtin and then its argument prototype would still apply. */ | |
36958 | char $ac_func (); | |
36959 | /* The GNU C library defines this for functions which it implements | |
36960 | to always fail with ENOSYS. Some functions are actually named | |
36961 | something starting with __ and the normal name is an alias. */ | |
36962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36963 | choke me | |
36964 | #else | |
36965 | char (*f) () = $ac_func; | |
36966 | #endif | |
36967 | #ifdef __cplusplus | |
36968 | } | |
36969 | #endif | |
36970 | ||
36971 | int | |
36972 | main () | |
36973 | { | |
36974 | return f != $ac_func; | |
36975 | ; | |
36976 | return 0; | |
36977 | } | |
36978 | _ACEOF | |
36979 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36981 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36982 | ac_status=$? |
ac1cb8d3 VS |
36983 | grep -v '^ *+' conftest.er1 >conftest.err |
36984 | rm -f conftest.er1 | |
36985 | cat conftest.err >&5 | |
a848cd7e SC |
36986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36987 | (exit $ac_status); } && | |
ca5c6ac3 | 36988 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36990 | (eval $ac_try) 2>&5 | |
36991 | ac_status=$? | |
36992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36993 | (exit $ac_status); }; } && | |
36994 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36996 | (eval $ac_try) 2>&5 | |
36997 | ac_status=$? | |
36998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36999 | (exit $ac_status); }; }; then | |
37000 | eval "$as_ac_var=yes" | |
37001 | else | |
37002 | echo "$as_me: failed program was:" >&5 | |
37003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37004 | ||
37005 | eval "$as_ac_var=no" | |
37006 | fi | |
ac1cb8d3 VS |
37007 | rm -f conftest.err conftest.$ac_objext \ |
37008 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37009 | fi |
37010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37011 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37012 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37013 | cat >>confdefs.h <<_ACEOF | |
37014 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37015 | _ACEOF | |
37016 | break | |
37017 | fi | |
37018 | done | |
37019 | ||
37020 | ||
37021 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
37022 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
37023 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
37024 | wxUSE_SNGLINST_CHECKER=no | |
37025 | fi | |
37026 | fi | |
37027 | ||
37028 | ||
37029 | for ac_func in timegm | |
37030 | do | |
37031 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37032 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37033 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37034 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37036 | else | |
37037 | cat >conftest.$ac_ext <<_ACEOF | |
37038 | /* confdefs.h. */ | |
37039 | _ACEOF | |
37040 | cat confdefs.h >>conftest.$ac_ext | |
37041 | cat >>conftest.$ac_ext <<_ACEOF | |
37042 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37043 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37044 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37045 | #define $ac_func innocuous_$ac_func | |
37046 | ||
a848cd7e SC |
37047 | /* System header to define __stub macros and hopefully few prototypes, |
37048 | which can conflict with char $ac_func (); below. | |
37049 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37050 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37051 | |
a848cd7e SC |
37052 | #ifdef __STDC__ |
37053 | # include <limits.h> | |
37054 | #else | |
37055 | # include <assert.h> | |
37056 | #endif | |
ac1cb8d3 VS |
37057 | |
37058 | #undef $ac_func | |
37059 | ||
a848cd7e SC |
37060 | /* Override any gcc2 internal prototype to avoid an error. */ |
37061 | #ifdef __cplusplus | |
37062 | extern "C" | |
37063 | { | |
37064 | #endif | |
37065 | /* We use char because int might match the return type of a gcc2 | |
37066 | builtin and then its argument prototype would still apply. */ | |
37067 | char $ac_func (); | |
37068 | /* The GNU C library defines this for functions which it implements | |
37069 | to always fail with ENOSYS. Some functions are actually named | |
37070 | something starting with __ and the normal name is an alias. */ | |
37071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37072 | choke me | |
37073 | #else | |
37074 | char (*f) () = $ac_func; | |
37075 | #endif | |
37076 | #ifdef __cplusplus | |
37077 | } | |
37078 | #endif | |
37079 | ||
37080 | int | |
37081 | main () | |
37082 | { | |
37083 | return f != $ac_func; | |
37084 | ; | |
37085 | return 0; | |
37086 | } | |
37087 | _ACEOF | |
37088 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37090 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37091 | ac_status=$? |
ac1cb8d3 VS |
37092 | grep -v '^ *+' conftest.er1 >conftest.err |
37093 | rm -f conftest.er1 | |
37094 | cat conftest.err >&5 | |
a848cd7e SC |
37095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37096 | (exit $ac_status); } && | |
ca5c6ac3 | 37097 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37099 | (eval $ac_try) 2>&5 | |
37100 | ac_status=$? | |
37101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37102 | (exit $ac_status); }; } && | |
37103 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37105 | (eval $ac_try) 2>&5 | |
37106 | ac_status=$? | |
37107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37108 | (exit $ac_status); }; }; then | |
37109 | eval "$as_ac_var=yes" | |
37110 | else | |
37111 | echo "$as_me: failed program was:" >&5 | |
37112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37113 | ||
37114 | eval "$as_ac_var=no" | |
37115 | fi | |
ac1cb8d3 VS |
37116 | rm -f conftest.err conftest.$ac_objext \ |
37117 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37118 | fi |
37119 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37120 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37121 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37122 | cat >>confdefs.h <<_ACEOF | |
37123 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37124 | _ACEOF | |
37125 | ||
37126 | fi | |
37127 | done | |
37128 | ||
37129 | ||
37130 | ||
37131 | ||
37132 | for ac_func in putenv setenv | |
37133 | do | |
37134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37135 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37137 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37139 | else | |
37140 | cat >conftest.$ac_ext <<_ACEOF | |
37141 | /* confdefs.h. */ | |
37142 | _ACEOF | |
37143 | cat confdefs.h >>conftest.$ac_ext | |
37144 | cat >>conftest.$ac_ext <<_ACEOF | |
37145 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37146 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37148 | #define $ac_func innocuous_$ac_func | |
37149 | ||
a848cd7e SC |
37150 | /* System header to define __stub macros and hopefully few prototypes, |
37151 | which can conflict with char $ac_func (); below. | |
37152 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37153 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37154 | |
a848cd7e SC |
37155 | #ifdef __STDC__ |
37156 | # include <limits.h> | |
37157 | #else | |
37158 | # include <assert.h> | |
37159 | #endif | |
ac1cb8d3 VS |
37160 | |
37161 | #undef $ac_func | |
37162 | ||
a848cd7e SC |
37163 | /* Override any gcc2 internal prototype to avoid an error. */ |
37164 | #ifdef __cplusplus | |
37165 | extern "C" | |
37166 | { | |
37167 | #endif | |
37168 | /* We use char because int might match the return type of a gcc2 | |
37169 | builtin and then its argument prototype would still apply. */ | |
37170 | char $ac_func (); | |
37171 | /* The GNU C library defines this for functions which it implements | |
37172 | to always fail with ENOSYS. Some functions are actually named | |
37173 | something starting with __ and the normal name is an alias. */ | |
37174 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37175 | choke me | |
37176 | #else | |
37177 | char (*f) () = $ac_func; | |
37178 | #endif | |
37179 | #ifdef __cplusplus | |
37180 | } | |
37181 | #endif | |
37182 | ||
37183 | int | |
37184 | main () | |
37185 | { | |
37186 | return f != $ac_func; | |
37187 | ; | |
37188 | return 0; | |
37189 | } | |
37190 | _ACEOF | |
37191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37193 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37194 | ac_status=$? |
ac1cb8d3 VS |
37195 | grep -v '^ *+' conftest.er1 >conftest.err |
37196 | rm -f conftest.er1 | |
37197 | cat conftest.err >&5 | |
a848cd7e SC |
37198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37199 | (exit $ac_status); } && | |
ca5c6ac3 | 37200 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37202 | (eval $ac_try) 2>&5 | |
37203 | ac_status=$? | |
37204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37205 | (exit $ac_status); }; } && | |
37206 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37208 | (eval $ac_try) 2>&5 | |
37209 | ac_status=$? | |
37210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37211 | (exit $ac_status); }; }; then | |
37212 | eval "$as_ac_var=yes" | |
37213 | else | |
37214 | echo "$as_me: failed program was:" >&5 | |
37215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37216 | ||
37217 | eval "$as_ac_var=no" | |
37218 | fi | |
ac1cb8d3 VS |
37219 | rm -f conftest.err conftest.$ac_objext \ |
37220 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37221 | fi |
37222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37223 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37224 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37225 | cat >>confdefs.h <<_ACEOF | |
37226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37227 | _ACEOF | |
37228 | break | |
37229 | fi | |
37230 | done | |
37231 | ||
37232 | ||
37233 | HAVE_SOME_SLEEP_FUNC=0 | |
37234 | if test "$USE_BEOS" = 1; then | |
37235 | cat >>confdefs.h <<\_ACEOF | |
37236 | #define HAVE_SLEEP 1 | |
37237 | _ACEOF | |
37238 | ||
37239 | HAVE_SOME_SLEEP_FUNC=1 | |
37240 | fi | |
37241 | ||
37242 | if test "$USE_DARWIN" = 1; then | |
37243 | cat >>confdefs.h <<\_ACEOF | |
37244 | #define HAVE_USLEEP 1 | |
37245 | _ACEOF | |
37246 | ||
37247 | HAVE_SOME_SLEEP_FUNC=1 | |
37248 | fi | |
37249 | ||
37250 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
37251 | POSIX4_LINK= | |
37252 | ||
37253 | for ac_func in nanosleep | |
37254 | do | |
37255 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37256 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37257 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37258 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37260 | else | |
37261 | cat >conftest.$ac_ext <<_ACEOF | |
37262 | /* confdefs.h. */ | |
37263 | _ACEOF | |
37264 | cat confdefs.h >>conftest.$ac_ext | |
37265 | cat >>conftest.$ac_ext <<_ACEOF | |
37266 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37267 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37268 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37269 | #define $ac_func innocuous_$ac_func | |
37270 | ||
a848cd7e SC |
37271 | /* System header to define __stub macros and hopefully few prototypes, |
37272 | which can conflict with char $ac_func (); below. | |
37273 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37274 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37275 | |
a848cd7e SC |
37276 | #ifdef __STDC__ |
37277 | # include <limits.h> | |
37278 | #else | |
37279 | # include <assert.h> | |
37280 | #endif | |
ac1cb8d3 VS |
37281 | |
37282 | #undef $ac_func | |
37283 | ||
a848cd7e SC |
37284 | /* Override any gcc2 internal prototype to avoid an error. */ |
37285 | #ifdef __cplusplus | |
37286 | extern "C" | |
37287 | { | |
37288 | #endif | |
37289 | /* We use char because int might match the return type of a gcc2 | |
37290 | builtin and then its argument prototype would still apply. */ | |
37291 | char $ac_func (); | |
37292 | /* The GNU C library defines this for functions which it implements | |
37293 | to always fail with ENOSYS. Some functions are actually named | |
37294 | something starting with __ and the normal name is an alias. */ | |
37295 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37296 | choke me | |
37297 | #else | |
37298 | char (*f) () = $ac_func; | |
37299 | #endif | |
37300 | #ifdef __cplusplus | |
37301 | } | |
37302 | #endif | |
37303 | ||
37304 | int | |
37305 | main () | |
37306 | { | |
37307 | return f != $ac_func; | |
37308 | ; | |
37309 | return 0; | |
37310 | } | |
37311 | _ACEOF | |
37312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37314 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37315 | ac_status=$? |
ac1cb8d3 VS |
37316 | grep -v '^ *+' conftest.er1 >conftest.err |
37317 | rm -f conftest.er1 | |
37318 | cat conftest.err >&5 | |
a848cd7e SC |
37319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37320 | (exit $ac_status); } && | |
ca5c6ac3 | 37321 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37323 | (eval $ac_try) 2>&5 | |
37324 | ac_status=$? | |
37325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37326 | (exit $ac_status); }; } && | |
37327 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37329 | (eval $ac_try) 2>&5 | |
37330 | ac_status=$? | |
37331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37332 | (exit $ac_status); }; }; then | |
37333 | eval "$as_ac_var=yes" | |
37334 | else | |
37335 | echo "$as_me: failed program was:" >&5 | |
37336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37337 | ||
37338 | eval "$as_ac_var=no" | |
37339 | fi | |
ac1cb8d3 VS |
37340 | rm -f conftest.err conftest.$ac_objext \ |
37341 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37342 | fi |
37343 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37344 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37345 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37346 | cat >>confdefs.h <<_ACEOF | |
37347 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37348 | _ACEOF | |
37349 | cat >>confdefs.h <<\_ACEOF | |
37350 | #define HAVE_NANOSLEEP 1 | |
37351 | _ACEOF | |
37352 | ||
37353 | else | |
37354 | ||
37355 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
37356 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
37357 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
37358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37359 | else | |
37360 | ac_check_lib_save_LIBS=$LIBS | |
37361 | LIBS="-lposix4 $LIBS" | |
37362 | cat >conftest.$ac_ext <<_ACEOF | |
37363 | /* confdefs.h. */ | |
37364 | _ACEOF | |
37365 | cat confdefs.h >>conftest.$ac_ext | |
37366 | cat >>conftest.$ac_ext <<_ACEOF | |
37367 | /* end confdefs.h. */ | |
37368 | ||
37369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37370 | #ifdef __cplusplus | |
37371 | extern "C" | |
37372 | #endif | |
37373 | /* We use char because int might match the return type of a gcc2 | |
37374 | builtin and then its argument prototype would still apply. */ | |
37375 | char nanosleep (); | |
37376 | int | |
37377 | main () | |
37378 | { | |
37379 | nanosleep (); | |
37380 | ; | |
37381 | return 0; | |
37382 | } | |
37383 | _ACEOF | |
37384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37386 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37387 | ac_status=$? |
ac1cb8d3 VS |
37388 | grep -v '^ *+' conftest.er1 >conftest.err |
37389 | rm -f conftest.er1 | |
37390 | cat conftest.err >&5 | |
a848cd7e SC |
37391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37392 | (exit $ac_status); } && | |
ca5c6ac3 | 37393 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37395 | (eval $ac_try) 2>&5 | |
37396 | ac_status=$? | |
37397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37398 | (exit $ac_status); }; } && | |
37399 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37401 | (eval $ac_try) 2>&5 | |
37402 | ac_status=$? | |
37403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37404 | (exit $ac_status); }; }; then | |
37405 | ac_cv_lib_posix4_nanosleep=yes | |
37406 | else | |
37407 | echo "$as_me: failed program was:" >&5 | |
37408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37409 | ||
37410 | ac_cv_lib_posix4_nanosleep=no | |
37411 | fi | |
ac1cb8d3 VS |
37412 | rm -f conftest.err conftest.$ac_objext \ |
37413 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37414 | LIBS=$ac_check_lib_save_LIBS |
37415 | fi | |
37416 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
37417 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
37418 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
37419 | ||
37420 | cat >>confdefs.h <<\_ACEOF | |
37421 | #define HAVE_NANOSLEEP 1 | |
37422 | _ACEOF | |
37423 | ||
37424 | POSIX4_LINK=" -lposix4" | |
37425 | ||
37426 | else | |
37427 | ||
37428 | ||
37429 | for ac_func in usleep | |
37430 | do | |
37431 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37432 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37433 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37434 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37436 | else | |
37437 | cat >conftest.$ac_ext <<_ACEOF | |
37438 | /* confdefs.h. */ | |
37439 | _ACEOF | |
37440 | cat confdefs.h >>conftest.$ac_ext | |
37441 | cat >>conftest.$ac_ext <<_ACEOF | |
37442 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37443 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37444 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37445 | #define $ac_func innocuous_$ac_func | |
37446 | ||
a848cd7e SC |
37447 | /* System header to define __stub macros and hopefully few prototypes, |
37448 | which can conflict with char $ac_func (); below. | |
37449 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37450 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37451 | |
a848cd7e SC |
37452 | #ifdef __STDC__ |
37453 | # include <limits.h> | |
37454 | #else | |
37455 | # include <assert.h> | |
37456 | #endif | |
ac1cb8d3 VS |
37457 | |
37458 | #undef $ac_func | |
37459 | ||
a848cd7e SC |
37460 | /* Override any gcc2 internal prototype to avoid an error. */ |
37461 | #ifdef __cplusplus | |
37462 | extern "C" | |
37463 | { | |
37464 | #endif | |
37465 | /* We use char because int might match the return type of a gcc2 | |
37466 | builtin and then its argument prototype would still apply. */ | |
37467 | char $ac_func (); | |
37468 | /* The GNU C library defines this for functions which it implements | |
37469 | to always fail with ENOSYS. Some functions are actually named | |
37470 | something starting with __ and the normal name is an alias. */ | |
37471 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37472 | choke me | |
37473 | #else | |
37474 | char (*f) () = $ac_func; | |
37475 | #endif | |
37476 | #ifdef __cplusplus | |
37477 | } | |
37478 | #endif | |
37479 | ||
37480 | int | |
37481 | main () | |
37482 | { | |
37483 | return f != $ac_func; | |
37484 | ; | |
37485 | return 0; | |
37486 | } | |
37487 | _ACEOF | |
37488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37490 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37491 | ac_status=$? |
ac1cb8d3 VS |
37492 | grep -v '^ *+' conftest.er1 >conftest.err |
37493 | rm -f conftest.er1 | |
37494 | cat conftest.err >&5 | |
a848cd7e SC |
37495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37496 | (exit $ac_status); } && | |
ca5c6ac3 | 37497 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37499 | (eval $ac_try) 2>&5 | |
37500 | ac_status=$? | |
37501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37502 | (exit $ac_status); }; } && | |
37503 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37505 | (eval $ac_try) 2>&5 | |
37506 | ac_status=$? | |
37507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37508 | (exit $ac_status); }; }; then | |
37509 | eval "$as_ac_var=yes" | |
37510 | else | |
37511 | echo "$as_me: failed program was:" >&5 | |
37512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37513 | ||
37514 | eval "$as_ac_var=no" | |
37515 | fi | |
ac1cb8d3 VS |
37516 | rm -f conftest.err conftest.$ac_objext \ |
37517 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37518 | fi |
37519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37520 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37521 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37522 | cat >>confdefs.h <<_ACEOF | |
37523 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37524 | _ACEOF | |
37525 | cat >>confdefs.h <<\_ACEOF | |
37526 | #define HAVE_USLEEP 1 | |
37527 | _ACEOF | |
37528 | ||
37529 | else | |
37530 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
37531 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
37532 | ||
37533 | fi | |
37534 | done | |
37535 | ||
37536 | ||
37537 | ||
37538 | fi | |
37539 | ||
37540 | ||
37541 | ||
37542 | fi | |
37543 | done | |
37544 | ||
37545 | fi | |
37546 | ||
37547 | ||
37548 | ||
37549 | for ac_func in uname gethostname | |
37550 | do | |
37551 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37552 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37553 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37554 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37556 | else | |
37557 | cat >conftest.$ac_ext <<_ACEOF | |
37558 | /* confdefs.h. */ | |
37559 | _ACEOF | |
37560 | cat confdefs.h >>conftest.$ac_ext | |
37561 | cat >>conftest.$ac_ext <<_ACEOF | |
37562 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37563 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37564 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37565 | #define $ac_func innocuous_$ac_func | |
37566 | ||
a848cd7e SC |
37567 | /* System header to define __stub macros and hopefully few prototypes, |
37568 | which can conflict with char $ac_func (); below. | |
37569 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37570 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37571 | |
a848cd7e SC |
37572 | #ifdef __STDC__ |
37573 | # include <limits.h> | |
37574 | #else | |
37575 | # include <assert.h> | |
37576 | #endif | |
ac1cb8d3 VS |
37577 | |
37578 | #undef $ac_func | |
37579 | ||
a848cd7e SC |
37580 | /* Override any gcc2 internal prototype to avoid an error. */ |
37581 | #ifdef __cplusplus | |
37582 | extern "C" | |
37583 | { | |
37584 | #endif | |
37585 | /* We use char because int might match the return type of a gcc2 | |
37586 | builtin and then its argument prototype would still apply. */ | |
37587 | char $ac_func (); | |
37588 | /* The GNU C library defines this for functions which it implements | |
37589 | to always fail with ENOSYS. Some functions are actually named | |
37590 | something starting with __ and the normal name is an alias. */ | |
37591 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37592 | choke me | |
37593 | #else | |
37594 | char (*f) () = $ac_func; | |
37595 | #endif | |
37596 | #ifdef __cplusplus | |
37597 | } | |
37598 | #endif | |
37599 | ||
37600 | int | |
37601 | main () | |
37602 | { | |
37603 | return f != $ac_func; | |
37604 | ; | |
37605 | return 0; | |
37606 | } | |
37607 | _ACEOF | |
37608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37610 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37611 | ac_status=$? |
ac1cb8d3 VS |
37612 | grep -v '^ *+' conftest.er1 >conftest.err |
37613 | rm -f conftest.er1 | |
37614 | cat conftest.err >&5 | |
a848cd7e SC |
37615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37616 | (exit $ac_status); } && | |
ca5c6ac3 | 37617 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37619 | (eval $ac_try) 2>&5 | |
37620 | ac_status=$? | |
37621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37622 | (exit $ac_status); }; } && | |
37623 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37625 | (eval $ac_try) 2>&5 | |
37626 | ac_status=$? | |
37627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37628 | (exit $ac_status); }; }; then | |
37629 | eval "$as_ac_var=yes" | |
37630 | else | |
37631 | echo "$as_me: failed program was:" >&5 | |
37632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37633 | ||
37634 | eval "$as_ac_var=no" | |
37635 | fi | |
ac1cb8d3 VS |
37636 | rm -f conftest.err conftest.$ac_objext \ |
37637 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37638 | fi |
37639 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37640 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37641 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37642 | cat >>confdefs.h <<_ACEOF | |
37643 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37644 | _ACEOF | |
37645 | break | |
37646 | fi | |
37647 | done | |
37648 | ||
37649 | ||
56632e81 MW |
37650 | |
37651 | for wx_func in strtok_r | |
37652 | do | |
37653 | echo "$as_me:$LINENO: checking for $wx_func" >&5 | |
37654 | echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6 | |
37655 | if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then | |
a848cd7e SC |
37656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
37657 | else | |
56632e81 MW |
37658 | |
37659 | cat >conftest.$ac_ext <<_ACEOF | |
37660 | ||
37661 | /* confdefs.h. */ | |
a848cd7e SC |
37662 | _ACEOF |
37663 | cat confdefs.h >>conftest.$ac_ext | |
37664 | cat >>conftest.$ac_ext <<_ACEOF | |
37665 | /* end confdefs.h. */ | |
56632e81 MW |
37666 | |
37667 | #define _REENTRANT | |
37668 | $ac_includes_default | |
37669 | ||
a848cd7e SC |
37670 | int |
37671 | main () | |
37672 | { | |
56632e81 MW |
37673 | |
37674 | #ifndef $wx_func | |
37675 | &$wx_func; | |
37676 | #endif | |
37677 | ||
5acfd58d | 37678 | |
a848cd7e SC |
37679 | ; |
37680 | return 0; | |
37681 | } | |
56632e81 | 37682 | |
a848cd7e | 37683 | _ACEOF |
56632e81 MW |
37684 | rm -f conftest.$ac_objext conftest$ac_exeext |
37685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37686 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 37687 | ac_status=$? |
ac1cb8d3 VS |
37688 | grep -v '^ *+' conftest.er1 >conftest.err |
37689 | rm -f conftest.er1 | |
37690 | cat conftest.err >&5 | |
a848cd7e SC |
37691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37692 | (exit $ac_status); } && | |
ca5c6ac3 | 37693 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37695 | (eval $ac_try) 2>&5 | |
37696 | ac_status=$? | |
37697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37698 | (exit $ac_status); }; } && | |
56632e81 | 37699 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
37700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37701 | (eval $ac_try) 2>&5 | |
37702 | ac_status=$? | |
37703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37704 | (exit $ac_status); }; }; then | |
56632e81 | 37705 | eval wx_cv_func_$wx_func=yes |
a848cd7e SC |
37706 | else |
37707 | echo "$as_me: failed program was:" >&5 | |
37708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37709 | ||
56632e81 | 37710 | eval wx_cv_func_$wx_func=no |
a848cd7e | 37711 | fi |
56632e81 MW |
37712 | rm -f conftest.err conftest.$ac_objext \ |
37713 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 37714 | |
56632e81 MW |
37715 | fi |
37716 | echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5 | |
37717 | echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6 | |
a848cd7e | 37718 | |
56632e81 MW |
37719 | if eval test \$wx_cv_func_$wx_func = yes |
37720 | then | |
37721 | cat >>confdefs.h <<_ACEOF | |
37722 | #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1 | |
82a2636b MW |
37723 | _ACEOF |
37724 | ||
37725 | ||
56632e81 MW |
37726 | else |
37727 | : | |
5acfd58d | 37728 | |
56632e81 MW |
37729 | fi |
37730 | done | |
5acfd58d | 37731 | |
a848cd7e | 37732 | |
a848cd7e SC |
37733 | INET_LINK= |
37734 | ||
37735 | for ac_func in inet_addr | |
37736 | do | |
37737 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37738 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37739 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37740 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37742 | else | |
37743 | cat >conftest.$ac_ext <<_ACEOF | |
37744 | /* confdefs.h. */ | |
37745 | _ACEOF | |
37746 | cat confdefs.h >>conftest.$ac_ext | |
37747 | cat >>conftest.$ac_ext <<_ACEOF | |
37748 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37749 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37750 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37751 | #define $ac_func innocuous_$ac_func | |
37752 | ||
a848cd7e SC |
37753 | /* System header to define __stub macros and hopefully few prototypes, |
37754 | which can conflict with char $ac_func (); below. | |
37755 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37756 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37757 | |
a848cd7e SC |
37758 | #ifdef __STDC__ |
37759 | # include <limits.h> | |
37760 | #else | |
37761 | # include <assert.h> | |
37762 | #endif | |
ac1cb8d3 VS |
37763 | |
37764 | #undef $ac_func | |
37765 | ||
a848cd7e SC |
37766 | /* Override any gcc2 internal prototype to avoid an error. */ |
37767 | #ifdef __cplusplus | |
37768 | extern "C" | |
37769 | { | |
37770 | #endif | |
37771 | /* We use char because int might match the return type of a gcc2 | |
37772 | builtin and then its argument prototype would still apply. */ | |
37773 | char $ac_func (); | |
37774 | /* The GNU C library defines this for functions which it implements | |
37775 | to always fail with ENOSYS. Some functions are actually named | |
37776 | something starting with __ and the normal name is an alias. */ | |
37777 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37778 | choke me | |
37779 | #else | |
37780 | char (*f) () = $ac_func; | |
37781 | #endif | |
37782 | #ifdef __cplusplus | |
37783 | } | |
37784 | #endif | |
37785 | ||
37786 | int | |
37787 | main () | |
37788 | { | |
37789 | return f != $ac_func; | |
37790 | ; | |
37791 | return 0; | |
37792 | } | |
37793 | _ACEOF | |
37794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37796 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37797 | ac_status=$? |
ac1cb8d3 VS |
37798 | grep -v '^ *+' conftest.er1 >conftest.err |
37799 | rm -f conftest.er1 | |
37800 | cat conftest.err >&5 | |
a848cd7e SC |
37801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37802 | (exit $ac_status); } && | |
ca5c6ac3 | 37803 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37805 | (eval $ac_try) 2>&5 | |
37806 | ac_status=$? | |
37807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37808 | (exit $ac_status); }; } && | |
37809 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37811 | (eval $ac_try) 2>&5 | |
37812 | ac_status=$? | |
37813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37814 | (exit $ac_status); }; }; then | |
37815 | eval "$as_ac_var=yes" | |
37816 | else | |
37817 | echo "$as_me: failed program was:" >&5 | |
37818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37819 | ||
37820 | eval "$as_ac_var=no" | |
37821 | fi | |
ac1cb8d3 VS |
37822 | rm -f conftest.err conftest.$ac_objext \ |
37823 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37824 | fi |
37825 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37826 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37827 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37828 | cat >>confdefs.h <<_ACEOF | |
37829 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37830 | _ACEOF | |
37831 | cat >>confdefs.h <<\_ACEOF | |
37832 | #define HAVE_INET_ADDR 1 | |
37833 | _ACEOF | |
37834 | ||
37835 | else | |
37836 | ||
37837 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
37838 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
37839 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
37840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37841 | else | |
37842 | ac_check_lib_save_LIBS=$LIBS | |
37843 | LIBS="-lnsl $LIBS" | |
37844 | cat >conftest.$ac_ext <<_ACEOF | |
37845 | /* confdefs.h. */ | |
37846 | _ACEOF | |
37847 | cat confdefs.h >>conftest.$ac_ext | |
37848 | cat >>conftest.$ac_ext <<_ACEOF | |
37849 | /* end confdefs.h. */ | |
37850 | ||
37851 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37852 | #ifdef __cplusplus | |
37853 | extern "C" | |
37854 | #endif | |
37855 | /* We use char because int might match the return type of a gcc2 | |
37856 | builtin and then its argument prototype would still apply. */ | |
37857 | char inet_addr (); | |
37858 | int | |
37859 | main () | |
37860 | { | |
37861 | inet_addr (); | |
37862 | ; | |
37863 | return 0; | |
37864 | } | |
37865 | _ACEOF | |
37866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37868 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37869 | ac_status=$? |
ac1cb8d3 VS |
37870 | grep -v '^ *+' conftest.er1 >conftest.err |
37871 | rm -f conftest.er1 | |
37872 | cat conftest.err >&5 | |
a848cd7e SC |
37873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37874 | (exit $ac_status); } && | |
ca5c6ac3 | 37875 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37877 | (eval $ac_try) 2>&5 | |
37878 | ac_status=$? | |
37879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37880 | (exit $ac_status); }; } && | |
37881 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37883 | (eval $ac_try) 2>&5 | |
37884 | ac_status=$? | |
37885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37886 | (exit $ac_status); }; }; then | |
37887 | ac_cv_lib_nsl_inet_addr=yes | |
37888 | else | |
37889 | echo "$as_me: failed program was:" >&5 | |
37890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37891 | ||
37892 | ac_cv_lib_nsl_inet_addr=no | |
37893 | fi | |
ac1cb8d3 VS |
37894 | rm -f conftest.err conftest.$ac_objext \ |
37895 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37896 | LIBS=$ac_check_lib_save_LIBS |
37897 | fi | |
37898 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
37899 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
37900 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
37901 | INET_LINK="nsl" | |
37902 | else | |
37903 | ||
37904 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
37905 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
37906 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
37907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37908 | else | |
37909 | ac_check_lib_save_LIBS=$LIBS | |
37910 | LIBS="-lresolv $LIBS" | |
37911 | cat >conftest.$ac_ext <<_ACEOF | |
37912 | /* confdefs.h. */ | |
37913 | _ACEOF | |
37914 | cat confdefs.h >>conftest.$ac_ext | |
37915 | cat >>conftest.$ac_ext <<_ACEOF | |
37916 | /* end confdefs.h. */ | |
37917 | ||
37918 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37919 | #ifdef __cplusplus | |
37920 | extern "C" | |
37921 | #endif | |
37922 | /* We use char because int might match the return type of a gcc2 | |
37923 | builtin and then its argument prototype would still apply. */ | |
37924 | char inet_addr (); | |
37925 | int | |
37926 | main () | |
37927 | { | |
37928 | inet_addr (); | |
37929 | ; | |
37930 | return 0; | |
37931 | } | |
37932 | _ACEOF | |
37933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37935 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37936 | ac_status=$? |
ac1cb8d3 VS |
37937 | grep -v '^ *+' conftest.er1 >conftest.err |
37938 | rm -f conftest.er1 | |
37939 | cat conftest.err >&5 | |
a848cd7e SC |
37940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37941 | (exit $ac_status); } && | |
ca5c6ac3 | 37942 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37944 | (eval $ac_try) 2>&5 | |
37945 | ac_status=$? | |
37946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37947 | (exit $ac_status); }; } && | |
37948 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37950 | (eval $ac_try) 2>&5 | |
37951 | ac_status=$? | |
37952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37953 | (exit $ac_status); }; }; then | |
37954 | ac_cv_lib_resolv_inet_addr=yes | |
37955 | else | |
37956 | echo "$as_me: failed program was:" >&5 | |
37957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37958 | ||
37959 | ac_cv_lib_resolv_inet_addr=no | |
37960 | fi | |
ac1cb8d3 VS |
37961 | rm -f conftest.err conftest.$ac_objext \ |
37962 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37963 | LIBS=$ac_check_lib_save_LIBS |
37964 | fi | |
37965 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
37966 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
37967 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
37968 | INET_LINK="resolv" | |
37969 | else | |
37970 | ||
37971 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
37972 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
37973 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
37974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37975 | else | |
37976 | ac_check_lib_save_LIBS=$LIBS | |
37977 | LIBS="-lsocket $LIBS" | |
37978 | cat >conftest.$ac_ext <<_ACEOF | |
37979 | /* confdefs.h. */ | |
37980 | _ACEOF | |
37981 | cat confdefs.h >>conftest.$ac_ext | |
37982 | cat >>conftest.$ac_ext <<_ACEOF | |
37983 | /* end confdefs.h. */ | |
37984 | ||
37985 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37986 | #ifdef __cplusplus | |
37987 | extern "C" | |
37988 | #endif | |
37989 | /* We use char because int might match the return type of a gcc2 | |
37990 | builtin and then its argument prototype would still apply. */ | |
37991 | char inet_addr (); | |
37992 | int | |
37993 | main () | |
37994 | { | |
37995 | inet_addr (); | |
37996 | ; | |
37997 | return 0; | |
37998 | } | |
37999 | _ACEOF | |
38000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38002 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38003 | ac_status=$? |
ac1cb8d3 VS |
38004 | grep -v '^ *+' conftest.er1 >conftest.err |
38005 | rm -f conftest.er1 | |
38006 | cat conftest.err >&5 | |
a848cd7e SC |
38007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38008 | (exit $ac_status); } && | |
ca5c6ac3 | 38009 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38011 | (eval $ac_try) 2>&5 | |
38012 | ac_status=$? | |
38013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38014 | (exit $ac_status); }; } && | |
38015 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38017 | (eval $ac_try) 2>&5 | |
38018 | ac_status=$? | |
38019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38020 | (exit $ac_status); }; }; then | |
38021 | ac_cv_lib_socket_inet_addr=yes | |
38022 | else | |
38023 | echo "$as_me: failed program was:" >&5 | |
38024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38025 | ||
38026 | ac_cv_lib_socket_inet_addr=no | |
38027 | fi | |
ac1cb8d3 VS |
38028 | rm -f conftest.err conftest.$ac_objext \ |
38029 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38030 | LIBS=$ac_check_lib_save_LIBS |
38031 | fi | |
38032 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
38033 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
38034 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
38035 | INET_LINK="socket" | |
38036 | ||
38037 | fi | |
38038 | ||
38039 | ||
38040 | ||
38041 | fi | |
38042 | ||
38043 | ||
38044 | ||
38045 | fi | |
38046 | ||
38047 | ||
38048 | ||
38049 | fi | |
38050 | done | |
38051 | ||
38052 | ||
38053 | ||
38054 | for ac_func in inet_aton | |
38055 | do | |
38056 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38057 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38058 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38059 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38061 | else | |
38062 | cat >conftest.$ac_ext <<_ACEOF | |
38063 | /* confdefs.h. */ | |
38064 | _ACEOF | |
38065 | cat confdefs.h >>conftest.$ac_ext | |
38066 | cat >>conftest.$ac_ext <<_ACEOF | |
38067 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38068 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38070 | #define $ac_func innocuous_$ac_func | |
38071 | ||
a848cd7e SC |
38072 | /* System header to define __stub macros and hopefully few prototypes, |
38073 | which can conflict with char $ac_func (); below. | |
38074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38075 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38076 | |
a848cd7e SC |
38077 | #ifdef __STDC__ |
38078 | # include <limits.h> | |
38079 | #else | |
38080 | # include <assert.h> | |
38081 | #endif | |
ac1cb8d3 VS |
38082 | |
38083 | #undef $ac_func | |
38084 | ||
a848cd7e SC |
38085 | /* Override any gcc2 internal prototype to avoid an error. */ |
38086 | #ifdef __cplusplus | |
38087 | extern "C" | |
38088 | { | |
38089 | #endif | |
38090 | /* We use char because int might match the return type of a gcc2 | |
38091 | builtin and then its argument prototype would still apply. */ | |
38092 | char $ac_func (); | |
38093 | /* The GNU C library defines this for functions which it implements | |
38094 | to always fail with ENOSYS. Some functions are actually named | |
38095 | something starting with __ and the normal name is an alias. */ | |
38096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38097 | choke me | |
38098 | #else | |
38099 | char (*f) () = $ac_func; | |
38100 | #endif | |
38101 | #ifdef __cplusplus | |
38102 | } | |
38103 | #endif | |
38104 | ||
38105 | int | |
38106 | main () | |
38107 | { | |
38108 | return f != $ac_func; | |
38109 | ; | |
38110 | return 0; | |
38111 | } | |
38112 | _ACEOF | |
38113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38115 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38116 | ac_status=$? |
ac1cb8d3 VS |
38117 | grep -v '^ *+' conftest.er1 >conftest.err |
38118 | rm -f conftest.er1 | |
38119 | cat conftest.err >&5 | |
a848cd7e SC |
38120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38121 | (exit $ac_status); } && | |
ca5c6ac3 | 38122 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38124 | (eval $ac_try) 2>&5 | |
38125 | ac_status=$? | |
38126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38127 | (exit $ac_status); }; } && | |
38128 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38130 | (eval $ac_try) 2>&5 | |
38131 | ac_status=$? | |
38132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38133 | (exit $ac_status); }; }; then | |
38134 | eval "$as_ac_var=yes" | |
38135 | else | |
38136 | echo "$as_me: failed program was:" >&5 | |
38137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38138 | ||
38139 | eval "$as_ac_var=no" | |
38140 | fi | |
ac1cb8d3 VS |
38141 | rm -f conftest.err conftest.$ac_objext \ |
38142 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38143 | fi |
38144 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38145 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38146 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38147 | cat >>confdefs.h <<_ACEOF | |
38148 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38149 | _ACEOF | |
38150 | cat >>confdefs.h <<\_ACEOF | |
38151 | #define HAVE_INET_ATON 1 | |
38152 | _ACEOF | |
38153 | ||
38154 | else | |
38155 | ||
38156 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
38157 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
38158 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
38159 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
38160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38161 | else | |
38162 | ac_check_lib_save_LIBS=$LIBS | |
38163 | LIBS="-l$INET_LINK $LIBS" | |
38164 | cat >conftest.$ac_ext <<_ACEOF | |
38165 | /* confdefs.h. */ | |
38166 | _ACEOF | |
38167 | cat confdefs.h >>conftest.$ac_ext | |
38168 | cat >>conftest.$ac_ext <<_ACEOF | |
38169 | /* end confdefs.h. */ | |
38170 | ||
38171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38172 | #ifdef __cplusplus | |
38173 | extern "C" | |
38174 | #endif | |
38175 | /* We use char because int might match the return type of a gcc2 | |
38176 | builtin and then its argument prototype would still apply. */ | |
38177 | char inet_aton (); | |
38178 | int | |
38179 | main () | |
38180 | { | |
38181 | inet_aton (); | |
38182 | ; | |
38183 | return 0; | |
38184 | } | |
38185 | _ACEOF | |
38186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38188 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38189 | ac_status=$? |
ac1cb8d3 VS |
38190 | grep -v '^ *+' conftest.er1 >conftest.err |
38191 | rm -f conftest.er1 | |
38192 | cat conftest.err >&5 | |
a848cd7e SC |
38193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38194 | (exit $ac_status); } && | |
ca5c6ac3 | 38195 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38197 | (eval $ac_try) 2>&5 | |
38198 | ac_status=$? | |
38199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38200 | (exit $ac_status); }; } && | |
38201 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38203 | (eval $ac_try) 2>&5 | |
38204 | ac_status=$? | |
38205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38206 | (exit $ac_status); }; }; then | |
38207 | eval "$as_ac_Lib=yes" | |
38208 | else | |
38209 | echo "$as_me: failed program was:" >&5 | |
38210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38211 | ||
38212 | eval "$as_ac_Lib=no" | |
38213 | fi | |
ac1cb8d3 VS |
38214 | rm -f conftest.err conftest.$ac_objext \ |
38215 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38216 | LIBS=$ac_check_lib_save_LIBS |
38217 | fi | |
38218 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
38219 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
38220 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
38221 | cat >>confdefs.h <<\_ACEOF | |
38222 | #define HAVE_INET_ATON 1 | |
38223 | _ACEOF | |
38224 | ||
38225 | fi | |
38226 | ||
38227 | ||
38228 | fi | |
38229 | done | |
38230 | ||
38231 | ||
38232 | if test "x$INET_LINK" != "x"; then | |
38233 | cat >>confdefs.h <<\_ACEOF | |
38234 | #define HAVE_INET_ADDR 1 | |
38235 | _ACEOF | |
38236 | ||
38237 | INET_LINK=" -l$INET_LINK" | |
38238 | fi | |
38239 | ||
38240 | fi | |
38241 | ||
38242 | ||
38243 | ||
38244 | EXTRALIBS_ESD= | |
38245 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
38246 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
38247 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
38248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38249 | else | |
38250 | ac_check_lib_save_LIBS=$LIBS | |
38251 | LIBS="-lesd $LIBS" | |
38252 | cat >conftest.$ac_ext <<_ACEOF | |
38253 | /* confdefs.h. */ | |
38254 | _ACEOF | |
38255 | cat confdefs.h >>conftest.$ac_ext | |
38256 | cat >>conftest.$ac_ext <<_ACEOF | |
38257 | /* end confdefs.h. */ | |
38258 | ||
38259 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38260 | #ifdef __cplusplus | |
38261 | extern "C" | |
38262 | #endif | |
38263 | /* We use char because int might match the return type of a gcc2 | |
38264 | builtin and then its argument prototype would still apply. */ | |
38265 | char esd_close (); | |
38266 | int | |
38267 | main () | |
38268 | { | |
38269 | esd_close (); | |
38270 | ; | |
38271 | return 0; | |
38272 | } | |
38273 | _ACEOF | |
38274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38276 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38277 | ac_status=$? |
ac1cb8d3 VS |
38278 | grep -v '^ *+' conftest.er1 >conftest.err |
38279 | rm -f conftest.er1 | |
38280 | cat conftest.err >&5 | |
a848cd7e SC |
38281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38282 | (exit $ac_status); } && | |
ca5c6ac3 | 38283 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38285 | (eval $ac_try) 2>&5 | |
38286 | ac_status=$? | |
38287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38288 | (exit $ac_status); }; } && | |
38289 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38291 | (eval $ac_try) 2>&5 | |
38292 | ac_status=$? | |
38293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38294 | (exit $ac_status); }; }; then | |
38295 | ac_cv_lib_esd_esd_close=yes | |
38296 | else | |
38297 | echo "$as_me: failed program was:" >&5 | |
38298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38299 | ||
38300 | ac_cv_lib_esd_esd_close=no | |
38301 | fi | |
ac1cb8d3 VS |
38302 | rm -f conftest.err conftest.$ac_objext \ |
38303 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38304 | LIBS=$ac_check_lib_save_LIBS |
38305 | fi | |
38306 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
38307 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
38308 | if test $ac_cv_lib_esd_esd_close = yes; then | |
38309 | ||
38310 | ||
38311 | for ac_header in esd.h | |
38312 | do | |
38313 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38314 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38315 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38316 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38317 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38319 | fi | |
38320 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38321 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38322 | else | |
38323 | # Is the header compilable? | |
38324 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38325 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38326 | cat >conftest.$ac_ext <<_ACEOF | |
38327 | /* confdefs.h. */ | |
38328 | _ACEOF | |
38329 | cat confdefs.h >>conftest.$ac_ext | |
38330 | cat >>conftest.$ac_ext <<_ACEOF | |
38331 | /* end confdefs.h. */ | |
38332 | $ac_includes_default | |
38333 | #include <$ac_header> | |
38334 | _ACEOF | |
38335 | rm -f conftest.$ac_objext | |
38336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38337 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38338 | ac_status=$? |
ac1cb8d3 VS |
38339 | grep -v '^ *+' conftest.er1 >conftest.err |
38340 | rm -f conftest.er1 | |
38341 | cat conftest.err >&5 | |
a848cd7e SC |
38342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38343 | (exit $ac_status); } && | |
ca5c6ac3 | 38344 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38346 | (eval $ac_try) 2>&5 | |
38347 | ac_status=$? | |
38348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38349 | (exit $ac_status); }; } && | |
38350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38352 | (eval $ac_try) 2>&5 | |
38353 | ac_status=$? | |
38354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38355 | (exit $ac_status); }; }; then | |
38356 | ac_header_compiler=yes | |
38357 | else | |
38358 | echo "$as_me: failed program was:" >&5 | |
38359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38360 | ||
38361 | ac_header_compiler=no | |
38362 | fi | |
ac1cb8d3 | 38363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38364 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38365 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38366 | ||
38367 | # Is the header present? | |
38368 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38369 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38370 | cat >conftest.$ac_ext <<_ACEOF | |
38371 | /* confdefs.h. */ | |
38372 | _ACEOF | |
38373 | cat confdefs.h >>conftest.$ac_ext | |
38374 | cat >>conftest.$ac_ext <<_ACEOF | |
38375 | /* end confdefs.h. */ | |
38376 | #include <$ac_header> | |
38377 | _ACEOF | |
38378 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
38379 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
38380 | ac_status=$? | |
38381 | grep -v '^ *+' conftest.er1 >conftest.err | |
38382 | rm -f conftest.er1 | |
38383 | cat conftest.err >&5 | |
38384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38385 | (exit $ac_status); } >/dev/null; then | |
38386 | if test -s conftest.err; then | |
5d7b7554 VZ |
38387 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
38388 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
38389 | else |
38390 | ac_cpp_err= | |
38391 | fi | |
38392 | else | |
38393 | ac_cpp_err=yes | |
38394 | fi | |
38395 | if test -z "$ac_cpp_err"; then | |
38396 | ac_header_preproc=yes | |
38397 | else | |
38398 | echo "$as_me: failed program was:" >&5 | |
38399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38400 | ||
38401 | ac_header_preproc=no | |
38402 | fi | |
38403 | rm -f conftest.err conftest.$ac_ext | |
38404 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
38405 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
38406 | ||
38407 | # So? What about this header? | |
5d7b7554 | 38408 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 38409 | yes:no: ) |
a848cd7e SC |
38410 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
38411 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
38412 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
38413 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
38414 | ac_header_preproc=yes | |
a848cd7e | 38415 | ;; |
ac1cb8d3 | 38416 | no:yes:* ) |
a848cd7e SC |
38417 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
38418 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
38419 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
38420 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
38421 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
38422 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
38423 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
38424 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
38425 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
38426 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
38427 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
38428 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
38429 | ( |
38430 | cat <<\_ASBOX | |
ac1cb8d3 VS |
38431 | ## ----------------------------------------- ## |
38432 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
38433 | ## ----------------------------------------- ## | |
a848cd7e SC |
38434 | _ASBOX |
38435 | ) | | |
38436 | sed "s/^/$as_me: WARNING: /" >&2 | |
38437 | ;; | |
38438 | esac | |
38439 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38440 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38441 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38443 | else | |
ac1cb8d3 | 38444 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
38445 | fi |
38446 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38447 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38448 | ||
38449 | fi | |
38450 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38451 | cat >>confdefs.h <<_ACEOF | |
38452 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38453 | _ACEOF | |
38454 | ||
38455 | EXTRALIBS_ESD="-lesd" | |
38456 | ||
38457 | fi | |
38458 | ||
38459 | done | |
38460 | ||
38461 | ||
38462 | fi | |
38463 | ||
38464 | ||
38465 | ||
38466 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
38467 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
38468 | cat >conftest.$ac_ext <<_ACEOF | |
38469 | /* confdefs.h. */ | |
38470 | _ACEOF | |
38471 | cat confdefs.h >>conftest.$ac_ext | |
38472 | cat >>conftest.$ac_ext <<_ACEOF | |
38473 | /* end confdefs.h. */ | |
38474 | #ifdef __linux__ | |
38475 | #include <linux/cdrom.h> | |
38476 | #else | |
38477 | /* For Solaris */ | |
38478 | #include <sys/cdio.h> | |
38479 | #endif | |
38480 | ||
38481 | int | |
38482 | main () | |
38483 | { | |
38484 | struct cdrom_tocentry entry, old_entry; | |
38485 | ; | |
38486 | return 0; | |
38487 | } | |
38488 | _ACEOF | |
38489 | rm -f conftest.$ac_objext | |
38490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38491 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38492 | ac_status=$? |
ac1cb8d3 VS |
38493 | grep -v '^ *+' conftest.er1 >conftest.err |
38494 | rm -f conftest.er1 | |
38495 | cat conftest.err >&5 | |
a848cd7e SC |
38496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38497 | (exit $ac_status); } && | |
ca5c6ac3 | 38498 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38500 | (eval $ac_try) 2>&5 | |
38501 | ac_status=$? | |
38502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38503 | (exit $ac_status); }; } && | |
38504 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38506 | (eval $ac_try) 2>&5 | |
38507 | ac_status=$? | |
38508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38509 | (exit $ac_status); }; }; then | |
38510 | echo "$as_me:$LINENO: result: yes" >&5 | |
38511 | echo "${ECHO_T}yes" >&6 | |
38512 | cat >>confdefs.h <<\_ACEOF | |
38513 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
38514 | _ACEOF | |
38515 | ||
38516 | else | |
38517 | echo "$as_me: failed program was:" >&5 | |
38518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38519 | ||
38520 | echo "$as_me:$LINENO: result: no" >&5 | |
38521 | echo "${ECHO_T}no" >&6 | |
38522 | fi | |
ac1cb8d3 | 38523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38524 | |
38525 | ||
38526 | cat >confcache <<\_ACEOF | |
38527 | # This file is a shell script that caches the results of configure | |
38528 | # tests run on this system so they can be shared between configure | |
38529 | # scripts and configure runs, see configure's option --config-cache. | |
38530 | # It is not useful on other systems. If it contains results you don't | |
38531 | # want to keep, you may remove or edit it. | |
38532 | # | |
38533 | # config.status only pays attention to the cache file if you give it | |
38534 | # the --recheck option to rerun configure. | |
38535 | # | |
38536 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
38537 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
38538 | # following values. | |
38539 | ||
38540 | _ACEOF | |
38541 | ||
38542 | # The following way of writing the cache mishandles newlines in values, | |
38543 | # but we know of no workaround that is simple, portable, and efficient. | |
38544 | # So, don't put newlines in cache variables' values. | |
38545 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
38546 | # and sets the high bit in the cache file unless we assign to the vars. | |
38547 | { | |
38548 | (set) 2>&1 | | |
38549 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
38550 | *ac_space=\ *) | |
38551 | # `set' does not quote correctly, so add quotes (double-quote | |
38552 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
38553 | sed -n \ | |
ac1cb8d3 VS |
38554 | "s/'/'\\\\''/g; |
38555 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
38556 | ;; |
38557 | *) | |
38558 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
38559 | sed -n \ | |
ac1cb8d3 | 38560 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
38561 | ;; |
38562 | esac; | |
38563 | } | | |
38564 | sed ' | |
38565 | t clear | |
38566 | : clear | |
38567 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
38568 | t end | |
38569 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
38570 | : end' >>confcache | |
38571 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
38572 | if test -w $cache_file; then | |
38573 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
38574 | cat confcache >$cache_file | |
38575 | else | |
38576 | echo "not updating unwritable cache $cache_file" | |
38577 | fi | |
38578 | fi | |
38579 | rm -f confcache | |
38580 | ||
38581 | ||
a848cd7e SC |
38582 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
38583 | ||
38584 | ||
38585 | THREADS_LINK= | |
e56f4f9e | 38586 | THREADS_CXXFLAGS= |
a848cd7e SC |
38587 | |
38588 | if test "$wxUSE_THREADS" = "yes" ; then | |
38589 | if test "$USE_BEOS" = 1; then | |
38590 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
38591 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
38592 | wxUSE_THREADS="no" | |
38593 | fi | |
38594 | fi | |
38595 | ||
38596 | if test "$wxUSE_THREADS" = "yes" ; then | |
38597 | ||
38598 | ||
38599 | THREAD_OPTS="-pthread" | |
38600 | case "${host}" in | |
38601 | *-*-solaris2* | *-*-sunos4* ) | |
38602 | if test "x$GCC" = "xyes"; then | |
38603 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
38604 | else | |
38605 | THREAD_OPTS="-mt $THREAD_OPTS" | |
38606 | fi | |
38607 | ;; | |
38608 | *-*-freebsd*) | |
38609 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
38610 | ;; | |
38611 | *-*-darwin* | *-*-cygwin* ) | |
38612 | THREAD_OPTS="" | |
38613 | ;; | |
38614 | *-*-aix*) | |
38615 | THREAD_OPTS="pthreads" | |
38616 | ;; | |
38617 | *-hp-hpux* ) | |
00421666 MW |
38618 | if test "x$GCC" = "xyes"; then |
38619 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
38620 | THREAD_OPTS="" | |
38621 | else | |
0093c2fc | 38622 | THREAD_OPTS="-mt" |
a848cd7e SC |
38623 | fi |
38624 | ;; | |
38625 | ||
38626 | *-*-irix* ) | |
38627 | if test "x$GCC" = "xyes"; then | |
38628 | THREAD_OPTS="" | |
38629 | fi | |
38630 | ;; | |
38631 | ||
38632 | *-*-*UnixWare*) | |
38633 | if test "x$GCC" != "xyes"; then | |
38634 | THREAD_OPTS="-Ethread" | |
38635 | fi | |
38636 | ;; | |
38637 | esac | |
38638 | ||
38639 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
38640 | ||
38641 | THREADS_OK=no | |
38642 | for flag in $THREAD_OPTS; do | |
38643 | case $flag in | |
38644 | none) | |
38645 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
38646 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
38647 | ;; | |
38648 | ||
38649 | -*) | |
38650 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
38651 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
e56f4f9e | 38652 | THREADS_CXXFLAGS="$flag" |
a848cd7e SC |
38653 | ;; |
38654 | ||
38655 | *) | |
38656 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
38657 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
38658 | THREADS_LINK="-l$flag" | |
38659 | ;; | |
38660 | esac | |
38661 | ||
38662 | save_LIBS="$LIBS" | |
e56f4f9e | 38663 | save_CXXFLAGS="$CXXFLAGS" |
a848cd7e | 38664 | LIBS="$THREADS_LINK $LIBS" |
e56f4f9e | 38665 | CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS" |
a848cd7e SC |
38666 | |
38667 | cat >conftest.$ac_ext <<_ACEOF | |
38668 | /* confdefs.h. */ | |
38669 | _ACEOF | |
38670 | cat confdefs.h >>conftest.$ac_ext | |
38671 | cat >>conftest.$ac_ext <<_ACEOF | |
38672 | /* end confdefs.h. */ | |
38673 | #include <pthread.h> | |
38674 | int | |
38675 | main () | |
38676 | { | |
38677 | pthread_create(0,0,0,0); | |
38678 | ; | |
38679 | return 0; | |
38680 | } | |
38681 | _ACEOF | |
38682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38684 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38685 | ac_status=$? |
ac1cb8d3 VS |
38686 | grep -v '^ *+' conftest.er1 >conftest.err |
38687 | rm -f conftest.er1 | |
38688 | cat conftest.err >&5 | |
a848cd7e SC |
38689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38690 | (exit $ac_status); } && | |
ca5c6ac3 | 38691 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38693 | (eval $ac_try) 2>&5 | |
38694 | ac_status=$? | |
38695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38696 | (exit $ac_status); }; } && | |
38697 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38699 | (eval $ac_try) 2>&5 | |
38700 | ac_status=$? | |
38701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38702 | (exit $ac_status); }; }; then | |
38703 | THREADS_OK=yes | |
38704 | else | |
38705 | echo "$as_me: failed program was:" >&5 | |
38706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38707 | ||
38708 | fi | |
ac1cb8d3 VS |
38709 | rm -f conftest.err conftest.$ac_objext \ |
38710 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38711 | |
38712 | LIBS="$save_LIBS" | |
e56f4f9e | 38713 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
38714 | |
38715 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
38716 | echo "${ECHO_T}$THREADS_OK" >&6 | |
38717 | if test "x$THREADS_OK" = "xyes"; then | |
38718 | break; | |
38719 | fi | |
38720 | ||
38721 | THREADS_LINK="" | |
e56f4f9e | 38722 | THREADS_CXXFLAGS="" |
a848cd7e SC |
38723 | done |
38724 | ||
38725 | if test "x$THREADS_OK" != "xyes"; then | |
38726 | wxUSE_THREADS=no | |
38727 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
38728 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
38729 | else | |
e56f4f9e | 38730 | LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS" |
a848cd7e SC |
38731 | LIBS="$THREADS_LINK $LIBS" |
38732 | ||
38733 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
38734 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
38735 | flag=no | |
38736 | case "${host}" in | |
38737 | *-aix*) | |
38738 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
38739 | flag="-D_THREAD_SAFE" | |
38740 | ;; | |
38741 | *-freebsd*) | |
38742 | flag="-D_THREAD_SAFE" | |
38743 | ;; | |
38744 | *-hp-hpux* ) | |
38745 | flag="-D_REENTRANT" | |
38746 | if test "x$GCC" != "xyes"; then | |
38747 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
38748 | fi | |
38749 | ;; | |
38750 | *solaris* | alpha*-osf*) | |
38751 | flag="-D_REENTRANT" | |
38752 | ;; | |
38753 | esac | |
38754 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
38755 | echo "${ECHO_T}${flag}" >&6 | |
38756 | if test "x$flag" != xno; then | |
e56f4f9e | 38757 | THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag" |
a848cd7e SC |
38758 | fi |
38759 | ||
e56f4f9e | 38760 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS" |
a848cd7e SC |
38761 | fi |
38762 | fi | |
38763 | ||
38764 | if test "$wxUSE_THREADS" = "yes" ; then | |
38765 | ||
38766 | for ac_func in thr_setconcurrency | |
38767 | do | |
38768 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38769 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38770 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38771 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38773 | else | |
38774 | cat >conftest.$ac_ext <<_ACEOF | |
38775 | /* confdefs.h. */ | |
38776 | _ACEOF | |
38777 | cat confdefs.h >>conftest.$ac_ext | |
38778 | cat >>conftest.$ac_ext <<_ACEOF | |
38779 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38780 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38781 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38782 | #define $ac_func innocuous_$ac_func | |
38783 | ||
a848cd7e SC |
38784 | /* System header to define __stub macros and hopefully few prototypes, |
38785 | which can conflict with char $ac_func (); below. | |
38786 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38787 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38788 | |
a848cd7e SC |
38789 | #ifdef __STDC__ |
38790 | # include <limits.h> | |
38791 | #else | |
38792 | # include <assert.h> | |
38793 | #endif | |
ac1cb8d3 VS |
38794 | |
38795 | #undef $ac_func | |
38796 | ||
a848cd7e SC |
38797 | /* Override any gcc2 internal prototype to avoid an error. */ |
38798 | #ifdef __cplusplus | |
38799 | extern "C" | |
38800 | { | |
38801 | #endif | |
38802 | /* We use char because int might match the return type of a gcc2 | |
38803 | builtin and then its argument prototype would still apply. */ | |
38804 | char $ac_func (); | |
38805 | /* The GNU C library defines this for functions which it implements | |
38806 | to always fail with ENOSYS. Some functions are actually named | |
38807 | something starting with __ and the normal name is an alias. */ | |
38808 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38809 | choke me | |
38810 | #else | |
38811 | char (*f) () = $ac_func; | |
38812 | #endif | |
38813 | #ifdef __cplusplus | |
38814 | } | |
38815 | #endif | |
38816 | ||
38817 | int | |
38818 | main () | |
38819 | { | |
38820 | return f != $ac_func; | |
38821 | ; | |
38822 | return 0; | |
38823 | } | |
38824 | _ACEOF | |
38825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38827 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38828 | ac_status=$? |
ac1cb8d3 VS |
38829 | grep -v '^ *+' conftest.er1 >conftest.err |
38830 | rm -f conftest.er1 | |
38831 | cat conftest.err >&5 | |
a848cd7e SC |
38832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38833 | (exit $ac_status); } && | |
ca5c6ac3 | 38834 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38836 | (eval $ac_try) 2>&5 | |
38837 | ac_status=$? | |
38838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38839 | (exit $ac_status); }; } && | |
38840 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38842 | (eval $ac_try) 2>&5 | |
38843 | ac_status=$? | |
38844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38845 | (exit $ac_status); }; }; then | |
38846 | eval "$as_ac_var=yes" | |
38847 | else | |
38848 | echo "$as_me: failed program was:" >&5 | |
38849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38850 | ||
38851 | eval "$as_ac_var=no" | |
38852 | fi | |
ac1cb8d3 VS |
38853 | rm -f conftest.err conftest.$ac_objext \ |
38854 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38855 | fi |
38856 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38857 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38858 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38859 | cat >>confdefs.h <<_ACEOF | |
38860 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38861 | _ACEOF | |
38862 | ||
38863 | fi | |
38864 | done | |
38865 | ||
38866 | ||
6ebeb4c7 VZ |
38867 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
38868 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
38869 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
38870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38871 | else | |
38872 | ||
38873 | cat >conftest.$ac_ext <<_ACEOF | |
38874 | /* confdefs.h. */ | |
38875 | _ACEOF | |
38876 | cat confdefs.h >>conftest.$ac_ext | |
38877 | cat >>conftest.$ac_ext <<_ACEOF | |
38878 | /* end confdefs.h. */ | |
38879 | #include <pthread.h> | |
38880 | void ThreadCleanupFunc(void *p); | |
38881 | ||
38882 | int | |
38883 | main () | |
38884 | { | |
38885 | ||
38886 | void *p; | |
38887 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
38888 | pthread_cleanup_pop(0); | |
38889 | ||
38890 | ; | |
38891 | return 0; | |
38892 | } | |
38893 | _ACEOF | |
38894 | rm -f conftest.$ac_objext | |
38895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38896 | (eval $ac_compile) 2>conftest.er1 | |
38897 | ac_status=$? | |
38898 | grep -v '^ *+' conftest.er1 >conftest.err | |
38899 | rm -f conftest.er1 | |
38900 | cat conftest.err >&5 | |
38901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38902 | (exit $ac_status); } && | |
ca5c6ac3 | 38903 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
38904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38905 | (eval $ac_try) 2>&5 | |
38906 | ac_status=$? | |
38907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38908 | (exit $ac_status); }; } && | |
38909 | { ac_try='test -s conftest.$ac_objext' | |
38910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38911 | (eval $ac_try) 2>&5 | |
38912 | ac_status=$? | |
38913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38914 | (exit $ac_status); }; }; then | |
38915 | ||
38916 | wx_cv_func_pthread_cleanup=yes | |
38917 | ||
38918 | else | |
38919 | echo "$as_me: failed program was:" >&5 | |
38920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38921 | ||
38922 | ||
38923 | wx_cv_func_pthread_cleanup=no | |
38924 | ||
38925 | ||
38926 | fi | |
38927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38928 | ||
38929 | fi | |
38930 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
38931 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
38932 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
38933 | cat >>confdefs.h <<\_ACEOF | |
38934 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
38935 | _ACEOF | |
38936 | ||
38937 | fi | |
38938 | ||
a848cd7e SC |
38939 | |
38940 | for ac_header in sched.h | |
38941 | do | |
38942 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38944 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38948 | fi | |
38949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38951 | else | |
38952 | # Is the header compilable? | |
38953 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
38954 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
38955 | cat >conftest.$ac_ext <<_ACEOF | |
38956 | /* confdefs.h. */ | |
38957 | _ACEOF | |
38958 | cat confdefs.h >>conftest.$ac_ext | |
38959 | cat >>conftest.$ac_ext <<_ACEOF | |
38960 | /* end confdefs.h. */ | |
38961 | $ac_includes_default | |
38962 | #include <$ac_header> | |
38963 | _ACEOF | |
38964 | rm -f conftest.$ac_objext | |
38965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38966 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38967 | ac_status=$? |
ac1cb8d3 VS |
38968 | grep -v '^ *+' conftest.er1 >conftest.err |
38969 | rm -f conftest.er1 | |
38970 | cat conftest.err >&5 | |
a848cd7e SC |
38971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38972 | (exit $ac_status); } && | |
ca5c6ac3 | 38973 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38975 | (eval $ac_try) 2>&5 | |
38976 | ac_status=$? | |
38977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38978 | (exit $ac_status); }; } && | |
38979 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38981 | (eval $ac_try) 2>&5 | |
38982 | ac_status=$? | |
38983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38984 | (exit $ac_status); }; }; then | |
38985 | ac_header_compiler=yes | |
38986 | else | |
38987 | echo "$as_me: failed program was:" >&5 | |
38988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38989 | ||
38990 | ac_header_compiler=no | |
38991 | fi | |
ac1cb8d3 | 38992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38993 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
38994 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
38995 | ||
38996 | # Is the header present? | |
38997 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
38998 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
38999 | cat >conftest.$ac_ext <<_ACEOF | |
39000 | /* confdefs.h. */ | |
39001 | _ACEOF | |
39002 | cat confdefs.h >>conftest.$ac_ext | |
39003 | cat >>conftest.$ac_ext <<_ACEOF | |
39004 | /* end confdefs.h. */ | |
39005 | #include <$ac_header> | |
39006 | _ACEOF | |
39007 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
39008 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
39009 | ac_status=$? | |
39010 | grep -v '^ *+' conftest.er1 >conftest.err | |
39011 | rm -f conftest.er1 | |
39012 | cat conftest.err >&5 | |
39013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39014 | (exit $ac_status); } >/dev/null; then | |
39015 | if test -s conftest.err; then | |
5d7b7554 VZ |
39016 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
39017 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
39018 | else |
39019 | ac_cpp_err= | |
39020 | fi | |
39021 | else | |
39022 | ac_cpp_err=yes | |
39023 | fi | |
39024 | if test -z "$ac_cpp_err"; then | |
39025 | ac_header_preproc=yes | |
39026 | else | |
39027 | echo "$as_me: failed program was:" >&5 | |
39028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39029 | ||
39030 | ac_header_preproc=no | |
39031 | fi | |
39032 | rm -f conftest.err conftest.$ac_ext | |
39033 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
39034 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
39035 | ||
39036 | # So? What about this header? | |
5d7b7554 | 39037 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 39038 | yes:no: ) |
a848cd7e SC |
39039 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
39040 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
39041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
39042 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
39043 | ac_header_preproc=yes | |
a848cd7e | 39044 | ;; |
ac1cb8d3 | 39045 | no:yes:* ) |
a848cd7e SC |
39046 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
39047 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
39048 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
39049 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
39050 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
39051 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
39052 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
39053 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
39054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
39055 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
39056 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
39057 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
39058 | ( |
39059 | cat <<\_ASBOX | |
ac1cb8d3 VS |
39060 | ## ----------------------------------------- ## |
39061 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
39062 | ## ----------------------------------------- ## | |
a848cd7e SC |
39063 | _ASBOX |
39064 | ) | | |
39065 | sed "s/^/$as_me: WARNING: /" >&2 | |
39066 | ;; | |
39067 | esac | |
39068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
39069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
39070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
39071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39072 | else | |
ac1cb8d3 | 39073 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
39074 | fi |
39075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
39076 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
39077 | ||
39078 | fi | |
39079 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
39080 | cat >>confdefs.h <<_ACEOF | |
39081 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
39082 | _ACEOF | |
39083 | ||
39084 | fi | |
39085 | ||
39086 | done | |
39087 | ||
39088 | if test "$ac_cv_header_sched_h" = "yes"; then | |
39089 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
39090 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
39091 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
39092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39093 | else | |
39094 | cat >conftest.$ac_ext <<_ACEOF | |
39095 | /* confdefs.h. */ | |
39096 | _ACEOF | |
39097 | cat confdefs.h >>conftest.$ac_ext | |
39098 | cat >>conftest.$ac_ext <<_ACEOF | |
39099 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39100 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
39101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39102 | #define sched_yield innocuous_sched_yield | |
39103 | ||
a848cd7e SC |
39104 | /* System header to define __stub macros and hopefully few prototypes, |
39105 | which can conflict with char sched_yield (); below. | |
39106 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39107 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39108 | |
a848cd7e SC |
39109 | #ifdef __STDC__ |
39110 | # include <limits.h> | |
39111 | #else | |
39112 | # include <assert.h> | |
39113 | #endif | |
ac1cb8d3 VS |
39114 | |
39115 | #undef sched_yield | |
39116 | ||
a848cd7e SC |
39117 | /* Override any gcc2 internal prototype to avoid an error. */ |
39118 | #ifdef __cplusplus | |
39119 | extern "C" | |
39120 | { | |
39121 | #endif | |
39122 | /* We use char because int might match the return type of a gcc2 | |
39123 | builtin and then its argument prototype would still apply. */ | |
39124 | char sched_yield (); | |
39125 | /* The GNU C library defines this for functions which it implements | |
39126 | to always fail with ENOSYS. Some functions are actually named | |
39127 | something starting with __ and the normal name is an alias. */ | |
39128 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
39129 | choke me | |
39130 | #else | |
39131 | char (*f) () = sched_yield; | |
39132 | #endif | |
39133 | #ifdef __cplusplus | |
39134 | } | |
39135 | #endif | |
39136 | ||
39137 | int | |
39138 | main () | |
39139 | { | |
39140 | return f != sched_yield; | |
39141 | ; | |
39142 | return 0; | |
39143 | } | |
39144 | _ACEOF | |
39145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39147 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39148 | ac_status=$? |
ac1cb8d3 VS |
39149 | grep -v '^ *+' conftest.er1 >conftest.err |
39150 | rm -f conftest.er1 | |
39151 | cat conftest.err >&5 | |
a848cd7e SC |
39152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39153 | (exit $ac_status); } && | |
ca5c6ac3 | 39154 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39156 | (eval $ac_try) 2>&5 | |
39157 | ac_status=$? | |
39158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39159 | (exit $ac_status); }; } && | |
39160 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39162 | (eval $ac_try) 2>&5 | |
39163 | ac_status=$? | |
39164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39165 | (exit $ac_status); }; }; then | |
39166 | ac_cv_func_sched_yield=yes | |
39167 | else | |
39168 | echo "$as_me: failed program was:" >&5 | |
39169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39170 | ||
39171 | ac_cv_func_sched_yield=no | |
39172 | fi | |
ac1cb8d3 VS |
39173 | rm -f conftest.err conftest.$ac_objext \ |
39174 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39175 | fi |
39176 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
39177 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
39178 | if test $ac_cv_func_sched_yield = yes; then | |
39179 | cat >>confdefs.h <<\_ACEOF | |
39180 | #define HAVE_SCHED_YIELD 1 | |
39181 | _ACEOF | |
39182 | ||
39183 | else | |
39184 | ||
39185 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
39186 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
39187 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
39188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39189 | else | |
39190 | ac_check_lib_save_LIBS=$LIBS | |
39191 | LIBS="-lposix4 $LIBS" | |
39192 | cat >conftest.$ac_ext <<_ACEOF | |
39193 | /* confdefs.h. */ | |
39194 | _ACEOF | |
39195 | cat confdefs.h >>conftest.$ac_ext | |
39196 | cat >>conftest.$ac_ext <<_ACEOF | |
39197 | /* end confdefs.h. */ | |
39198 | ||
39199 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39200 | #ifdef __cplusplus | |
39201 | extern "C" | |
39202 | #endif | |
39203 | /* We use char because int might match the return type of a gcc2 | |
39204 | builtin and then its argument prototype would still apply. */ | |
39205 | char sched_yield (); | |
39206 | int | |
39207 | main () | |
39208 | { | |
39209 | sched_yield (); | |
39210 | ; | |
39211 | return 0; | |
39212 | } | |
39213 | _ACEOF | |
39214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39216 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39217 | ac_status=$? |
ac1cb8d3 VS |
39218 | grep -v '^ *+' conftest.er1 >conftest.err |
39219 | rm -f conftest.er1 | |
39220 | cat conftest.err >&5 | |
a848cd7e SC |
39221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39222 | (exit $ac_status); } && | |
ca5c6ac3 | 39223 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39225 | (eval $ac_try) 2>&5 | |
39226 | ac_status=$? | |
39227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39228 | (exit $ac_status); }; } && | |
39229 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39231 | (eval $ac_try) 2>&5 | |
39232 | ac_status=$? | |
39233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39234 | (exit $ac_status); }; }; then | |
39235 | ac_cv_lib_posix4_sched_yield=yes | |
39236 | else | |
39237 | echo "$as_me: failed program was:" >&5 | |
39238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39239 | ||
39240 | ac_cv_lib_posix4_sched_yield=no | |
39241 | fi | |
ac1cb8d3 VS |
39242 | rm -f conftest.err conftest.$ac_objext \ |
39243 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39244 | LIBS=$ac_check_lib_save_LIBS |
39245 | fi | |
39246 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
39247 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
39248 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
39249 | cat >>confdefs.h <<\_ACEOF | |
39250 | #define HAVE_SCHED_YIELD 1 | |
39251 | _ACEOF | |
39252 | POSIX4_LINK=" -lposix4" | |
39253 | else | |
39254 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
39255 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
39256 | ||
39257 | fi | |
39258 | ||
39259 | ||
39260 | ||
39261 | fi | |
39262 | ||
39263 | fi | |
39264 | ||
39265 | HAVE_PRIOR_FUNCS=0 | |
39266 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
39267 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
39268 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
39269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39270 | else | |
39271 | cat >conftest.$ac_ext <<_ACEOF | |
39272 | /* confdefs.h. */ | |
39273 | _ACEOF | |
39274 | cat confdefs.h >>conftest.$ac_ext | |
39275 | cat >>conftest.$ac_ext <<_ACEOF | |
39276 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39277 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
39278 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39279 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
39280 | ||
a848cd7e SC |
39281 | /* System header to define __stub macros and hopefully few prototypes, |
39282 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
39283 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39284 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39285 | |
a848cd7e SC |
39286 | #ifdef __STDC__ |
39287 | # include <limits.h> | |
39288 | #else | |
39289 | # include <assert.h> | |
39290 | #endif | |
ac1cb8d3 VS |
39291 | |
39292 | #undef pthread_attr_getschedpolicy | |
39293 | ||
a848cd7e SC |
39294 | /* Override any gcc2 internal prototype to avoid an error. */ |
39295 | #ifdef __cplusplus | |
39296 | extern "C" | |
39297 | { | |
39298 | #endif | |
39299 | /* We use char because int might match the return type of a gcc2 | |
39300 | builtin and then its argument prototype would still apply. */ | |
39301 | char pthread_attr_getschedpolicy (); | |
39302 | /* The GNU C library defines this for functions which it implements | |
39303 | to always fail with ENOSYS. Some functions are actually named | |
39304 | something starting with __ and the normal name is an alias. */ | |
39305 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
39306 | choke me | |
39307 | #else | |
39308 | char (*f) () = pthread_attr_getschedpolicy; | |
39309 | #endif | |
39310 | #ifdef __cplusplus | |
39311 | } | |
39312 | #endif | |
39313 | ||
39314 | int | |
39315 | main () | |
39316 | { | |
39317 | return f != pthread_attr_getschedpolicy; | |
39318 | ; | |
39319 | return 0; | |
39320 | } | |
39321 | _ACEOF | |
39322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39324 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39325 | ac_status=$? |
ac1cb8d3 VS |
39326 | grep -v '^ *+' conftest.er1 >conftest.err |
39327 | rm -f conftest.er1 | |
39328 | cat conftest.err >&5 | |
a848cd7e SC |
39329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39330 | (exit $ac_status); } && | |
ca5c6ac3 | 39331 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39333 | (eval $ac_try) 2>&5 | |
39334 | ac_status=$? | |
39335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39336 | (exit $ac_status); }; } && | |
39337 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39339 | (eval $ac_try) 2>&5 | |
39340 | ac_status=$? | |
39341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39342 | (exit $ac_status); }; }; then | |
39343 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
39344 | else | |
39345 | echo "$as_me: failed program was:" >&5 | |
39346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39347 | ||
39348 | ac_cv_func_pthread_attr_getschedpolicy=no | |
39349 | fi | |
ac1cb8d3 VS |
39350 | rm -f conftest.err conftest.$ac_objext \ |
39351 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39352 | fi |
39353 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
39354 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
39355 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
39356 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
39357 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
39358 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
39359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39360 | else | |
39361 | cat >conftest.$ac_ext <<_ACEOF | |
39362 | /* confdefs.h. */ | |
39363 | _ACEOF | |
39364 | cat confdefs.h >>conftest.$ac_ext | |
39365 | cat >>conftest.$ac_ext <<_ACEOF | |
39366 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39367 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
39368 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39369 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
39370 | ||
a848cd7e SC |
39371 | /* System header to define __stub macros and hopefully few prototypes, |
39372 | which can conflict with char pthread_attr_setschedparam (); below. | |
39373 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39374 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39375 | |
a848cd7e SC |
39376 | #ifdef __STDC__ |
39377 | # include <limits.h> | |
39378 | #else | |
39379 | # include <assert.h> | |
39380 | #endif | |
ac1cb8d3 VS |
39381 | |
39382 | #undef pthread_attr_setschedparam | |
39383 | ||
a848cd7e SC |
39384 | /* Override any gcc2 internal prototype to avoid an error. */ |
39385 | #ifdef __cplusplus | |
39386 | extern "C" | |
39387 | { | |
39388 | #endif | |
39389 | /* We use char because int might match the return type of a gcc2 | |
39390 | builtin and then its argument prototype would still apply. */ | |
39391 | char pthread_attr_setschedparam (); | |
39392 | /* The GNU C library defines this for functions which it implements | |
39393 | to always fail with ENOSYS. Some functions are actually named | |
39394 | something starting with __ and the normal name is an alias. */ | |
39395 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
39396 | choke me | |
39397 | #else | |
39398 | char (*f) () = pthread_attr_setschedparam; | |
39399 | #endif | |
39400 | #ifdef __cplusplus | |
39401 | } | |
39402 | #endif | |
39403 | ||
39404 | int | |
39405 | main () | |
39406 | { | |
39407 | return f != pthread_attr_setschedparam; | |
39408 | ; | |
39409 | return 0; | |
39410 | } | |
39411 | _ACEOF | |
39412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39414 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39415 | ac_status=$? |
ac1cb8d3 VS |
39416 | grep -v '^ *+' conftest.er1 >conftest.err |
39417 | rm -f conftest.er1 | |
39418 | cat conftest.err >&5 | |
a848cd7e SC |
39419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39420 | (exit $ac_status); } && | |
ca5c6ac3 | 39421 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39423 | (eval $ac_try) 2>&5 | |
39424 | ac_status=$? | |
39425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39426 | (exit $ac_status); }; } && | |
39427 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39429 | (eval $ac_try) 2>&5 | |
39430 | ac_status=$? | |
39431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39432 | (exit $ac_status); }; }; then | |
39433 | ac_cv_func_pthread_attr_setschedparam=yes | |
39434 | else | |
39435 | echo "$as_me: failed program was:" >&5 | |
39436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39437 | ||
39438 | ac_cv_func_pthread_attr_setschedparam=no | |
39439 | fi | |
ac1cb8d3 VS |
39440 | rm -f conftest.err conftest.$ac_objext \ |
39441 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39442 | fi |
39443 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
39444 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
39445 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
39446 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
39447 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
39448 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
39449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39450 | else | |
39451 | cat >conftest.$ac_ext <<_ACEOF | |
39452 | /* confdefs.h. */ | |
39453 | _ACEOF | |
39454 | cat confdefs.h >>conftest.$ac_ext | |
39455 | cat >>conftest.$ac_ext <<_ACEOF | |
39456 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39457 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
39458 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39459 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
39460 | ||
a848cd7e SC |
39461 | /* System header to define __stub macros and hopefully few prototypes, |
39462 | which can conflict with char sched_get_priority_max (); below. | |
39463 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39464 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39465 | |
a848cd7e SC |
39466 | #ifdef __STDC__ |
39467 | # include <limits.h> | |
39468 | #else | |
39469 | # include <assert.h> | |
39470 | #endif | |
ac1cb8d3 VS |
39471 | |
39472 | #undef sched_get_priority_max | |
39473 | ||
a848cd7e SC |
39474 | /* Override any gcc2 internal prototype to avoid an error. */ |
39475 | #ifdef __cplusplus | |
39476 | extern "C" | |
39477 | { | |
39478 | #endif | |
39479 | /* We use char because int might match the return type of a gcc2 | |
39480 | builtin and then its argument prototype would still apply. */ | |
39481 | char sched_get_priority_max (); | |
39482 | /* The GNU C library defines this for functions which it implements | |
39483 | to always fail with ENOSYS. Some functions are actually named | |
39484 | something starting with __ and the normal name is an alias. */ | |
39485 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
39486 | choke me | |
39487 | #else | |
39488 | char (*f) () = sched_get_priority_max; | |
39489 | #endif | |
39490 | #ifdef __cplusplus | |
39491 | } | |
39492 | #endif | |
39493 | ||
39494 | int | |
39495 | main () | |
39496 | { | |
39497 | return f != sched_get_priority_max; | |
39498 | ; | |
39499 | return 0; | |
39500 | } | |
39501 | _ACEOF | |
39502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39504 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39505 | ac_status=$? |
ac1cb8d3 VS |
39506 | grep -v '^ *+' conftest.er1 >conftest.err |
39507 | rm -f conftest.er1 | |
39508 | cat conftest.err >&5 | |
a848cd7e SC |
39509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39510 | (exit $ac_status); } && | |
ca5c6ac3 | 39511 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39513 | (eval $ac_try) 2>&5 | |
39514 | ac_status=$? | |
39515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39516 | (exit $ac_status); }; } && | |
39517 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39519 | (eval $ac_try) 2>&5 | |
39520 | ac_status=$? | |
39521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39522 | (exit $ac_status); }; }; then | |
39523 | ac_cv_func_sched_get_priority_max=yes | |
39524 | else | |
39525 | echo "$as_me: failed program was:" >&5 | |
39526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39527 | ||
39528 | ac_cv_func_sched_get_priority_max=no | |
39529 | fi | |
ac1cb8d3 VS |
39530 | rm -f conftest.err conftest.$ac_objext \ |
39531 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39532 | fi |
39533 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
39534 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
39535 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
39536 | HAVE_PRIOR_FUNCS=1 | |
39537 | else | |
39538 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
39539 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
39540 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
39541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39542 | else | |
39543 | ac_check_lib_save_LIBS=$LIBS | |
39544 | LIBS="-lposix4 $LIBS" | |
39545 | cat >conftest.$ac_ext <<_ACEOF | |
39546 | /* confdefs.h. */ | |
39547 | _ACEOF | |
39548 | cat confdefs.h >>conftest.$ac_ext | |
39549 | cat >>conftest.$ac_ext <<_ACEOF | |
39550 | /* end confdefs.h. */ | |
39551 | ||
39552 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39553 | #ifdef __cplusplus | |
39554 | extern "C" | |
39555 | #endif | |
39556 | /* We use char because int might match the return type of a gcc2 | |
39557 | builtin and then its argument prototype would still apply. */ | |
39558 | char sched_get_priority_max (); | |
39559 | int | |
39560 | main () | |
39561 | { | |
39562 | sched_get_priority_max (); | |
39563 | ; | |
39564 | return 0; | |
39565 | } | |
39566 | _ACEOF | |
39567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39569 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39570 | ac_status=$? |
ac1cb8d3 VS |
39571 | grep -v '^ *+' conftest.er1 >conftest.err |
39572 | rm -f conftest.er1 | |
39573 | cat conftest.err >&5 | |
a848cd7e SC |
39574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39575 | (exit $ac_status); } && | |
ca5c6ac3 | 39576 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39578 | (eval $ac_try) 2>&5 | |
39579 | ac_status=$? | |
39580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39581 | (exit $ac_status); }; } && | |
39582 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39584 | (eval $ac_try) 2>&5 | |
39585 | ac_status=$? | |
39586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39587 | (exit $ac_status); }; }; then | |
39588 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
39589 | else | |
39590 | echo "$as_me: failed program was:" >&5 | |
39591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39592 | ||
39593 | ac_cv_lib_posix4_sched_get_priority_max=no | |
39594 | fi | |
ac1cb8d3 VS |
39595 | rm -f conftest.err conftest.$ac_objext \ |
39596 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39597 | LIBS=$ac_check_lib_save_LIBS |
39598 | fi | |
39599 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
39600 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
39601 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
39602 | ||
39603 | HAVE_PRIOR_FUNCS=1 | |
39604 | POSIX4_LINK=" -lposix4" | |
39605 | ||
39606 | fi | |
39607 | ||
39608 | ||
39609 | fi | |
39610 | ||
39611 | ||
39612 | fi | |
39613 | ||
39614 | ||
39615 | fi | |
39616 | ||
39617 | ||
39618 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
39619 | cat >>confdefs.h <<\_ACEOF | |
39620 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
39621 | _ACEOF | |
39622 | ||
39623 | else | |
39624 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
39625 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
39626 | fi | |
39627 | ||
39628 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
39629 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
39630 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
39631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39632 | else | |
39633 | cat >conftest.$ac_ext <<_ACEOF | |
39634 | /* confdefs.h. */ | |
39635 | _ACEOF | |
39636 | cat confdefs.h >>conftest.$ac_ext | |
39637 | cat >>conftest.$ac_ext <<_ACEOF | |
39638 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39639 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
39640 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39641 | #define pthread_cancel innocuous_pthread_cancel | |
39642 | ||
a848cd7e SC |
39643 | /* System header to define __stub macros and hopefully few prototypes, |
39644 | which can conflict with char pthread_cancel (); below. | |
39645 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39646 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39647 | |
a848cd7e SC |
39648 | #ifdef __STDC__ |
39649 | # include <limits.h> | |
39650 | #else | |
39651 | # include <assert.h> | |
39652 | #endif | |
ac1cb8d3 VS |
39653 | |
39654 | #undef pthread_cancel | |
39655 | ||
a848cd7e SC |
39656 | /* Override any gcc2 internal prototype to avoid an error. */ |
39657 | #ifdef __cplusplus | |
39658 | extern "C" | |
39659 | { | |
39660 | #endif | |
39661 | /* We use char because int might match the return type of a gcc2 | |
39662 | builtin and then its argument prototype would still apply. */ | |
39663 | char pthread_cancel (); | |
39664 | /* The GNU C library defines this for functions which it implements | |
39665 | to always fail with ENOSYS. Some functions are actually named | |
39666 | something starting with __ and the normal name is an alias. */ | |
39667 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
39668 | choke me | |
39669 | #else | |
39670 | char (*f) () = pthread_cancel; | |
39671 | #endif | |
39672 | #ifdef __cplusplus | |
39673 | } | |
39674 | #endif | |
39675 | ||
39676 | int | |
39677 | main () | |
39678 | { | |
39679 | return f != pthread_cancel; | |
39680 | ; | |
39681 | return 0; | |
39682 | } | |
39683 | _ACEOF | |
39684 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39686 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39687 | ac_status=$? |
ac1cb8d3 VS |
39688 | grep -v '^ *+' conftest.er1 >conftest.err |
39689 | rm -f conftest.er1 | |
39690 | cat conftest.err >&5 | |
a848cd7e SC |
39691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39692 | (exit $ac_status); } && | |
ca5c6ac3 | 39693 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39695 | (eval $ac_try) 2>&5 | |
39696 | ac_status=$? | |
39697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39698 | (exit $ac_status); }; } && | |
39699 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39701 | (eval $ac_try) 2>&5 | |
39702 | ac_status=$? | |
39703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39704 | (exit $ac_status); }; }; then | |
39705 | ac_cv_func_pthread_cancel=yes | |
39706 | else | |
39707 | echo "$as_me: failed program was:" >&5 | |
39708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39709 | ||
39710 | ac_cv_func_pthread_cancel=no | |
39711 | fi | |
ac1cb8d3 VS |
39712 | rm -f conftest.err conftest.$ac_objext \ |
39713 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39714 | fi |
39715 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
39716 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
39717 | if test $ac_cv_func_pthread_cancel = yes; then | |
39718 | cat >>confdefs.h <<\_ACEOF | |
39719 | #define HAVE_PTHREAD_CANCEL 1 | |
39720 | _ACEOF | |
39721 | ||
39722 | else | |
39723 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
39724 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
39725 | fi | |
39726 | ||
39727 | ||
abc736fd MW |
39728 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
39729 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
39730 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
39731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39732 | else | |
39733 | cat >conftest.$ac_ext <<_ACEOF | |
39734 | /* confdefs.h. */ | |
39735 | _ACEOF | |
39736 | cat confdefs.h >>conftest.$ac_ext | |
39737 | cat >>conftest.$ac_ext <<_ACEOF | |
39738 | /* end confdefs.h. */ | |
39739 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
39740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39741 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
39742 | ||
39743 | /* System header to define __stub macros and hopefully few prototypes, | |
39744 | which can conflict with char pthread_attr_setstacksize (); below. | |
39745 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39746 | <limits.h> exists even on freestanding compilers. */ | |
39747 | ||
39748 | #ifdef __STDC__ | |
39749 | # include <limits.h> | |
39750 | #else | |
39751 | # include <assert.h> | |
39752 | #endif | |
39753 | ||
39754 | #undef pthread_attr_setstacksize | |
39755 | ||
39756 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39757 | #ifdef __cplusplus | |
39758 | extern "C" | |
39759 | { | |
39760 | #endif | |
39761 | /* We use char because int might match the return type of a gcc2 | |
39762 | builtin and then its argument prototype would still apply. */ | |
39763 | char pthread_attr_setstacksize (); | |
39764 | /* The GNU C library defines this for functions which it implements | |
39765 | to always fail with ENOSYS. Some functions are actually named | |
39766 | something starting with __ and the normal name is an alias. */ | |
39767 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
39768 | choke me | |
39769 | #else | |
39770 | char (*f) () = pthread_attr_setstacksize; | |
39771 | #endif | |
39772 | #ifdef __cplusplus | |
39773 | } | |
39774 | #endif | |
39775 | ||
39776 | int | |
39777 | main () | |
39778 | { | |
39779 | return f != pthread_attr_setstacksize; | |
39780 | ; | |
39781 | return 0; | |
39782 | } | |
39783 | _ACEOF | |
39784 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39786 | (eval $ac_link) 2>conftest.er1 | |
39787 | ac_status=$? | |
39788 | grep -v '^ *+' conftest.er1 >conftest.err | |
39789 | rm -f conftest.er1 | |
39790 | cat conftest.err >&5 | |
39791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39792 | (exit $ac_status); } && | |
ca5c6ac3 | 39793 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
39794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39795 | (eval $ac_try) 2>&5 | |
39796 | ac_status=$? | |
39797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39798 | (exit $ac_status); }; } && | |
39799 | { ac_try='test -s conftest$ac_exeext' | |
39800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39801 | (eval $ac_try) 2>&5 | |
39802 | ac_status=$? | |
39803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39804 | (exit $ac_status); }; }; then | |
39805 | ac_cv_func_pthread_attr_setstacksize=yes | |
39806 | else | |
39807 | echo "$as_me: failed program was:" >&5 | |
39808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39809 | ||
39810 | ac_cv_func_pthread_attr_setstacksize=no | |
39811 | fi | |
39812 | rm -f conftest.err conftest.$ac_objext \ | |
39813 | conftest$ac_exeext conftest.$ac_ext | |
39814 | fi | |
39815 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
39816 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
39817 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
39818 | cat >>confdefs.h <<\_ACEOF | |
39819 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
39820 | _ACEOF | |
39821 | ||
39822 | fi | |
39823 | ||
a848cd7e SC |
39824 | |
39825 | ||
39826 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
39827 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
39828 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
39829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39830 | else | |
39831 | ||
39832 | cat >conftest.$ac_ext <<_ACEOF | |
39833 | /* confdefs.h. */ | |
39834 | _ACEOF | |
39835 | cat confdefs.h >>conftest.$ac_ext | |
39836 | cat >>conftest.$ac_ext <<_ACEOF | |
39837 | /* end confdefs.h. */ | |
39838 | #include <pthread.h> | |
39839 | int | |
39840 | main () | |
39841 | { | |
39842 | ||
39843 | pthread_mutexattr_t attr; | |
39844 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
39845 | ||
39846 | ; | |
39847 | return 0; | |
39848 | } | |
39849 | _ACEOF | |
39850 | rm -f conftest.$ac_objext | |
39851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39852 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39853 | ac_status=$? |
ac1cb8d3 VS |
39854 | grep -v '^ *+' conftest.er1 >conftest.err |
39855 | rm -f conftest.er1 | |
39856 | cat conftest.err >&5 | |
a848cd7e SC |
39857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39858 | (exit $ac_status); } && | |
ca5c6ac3 | 39859 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39861 | (eval $ac_try) 2>&5 | |
39862 | ac_status=$? | |
39863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39864 | (exit $ac_status); }; } && | |
39865 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39867 | (eval $ac_try) 2>&5 | |
39868 | ac_status=$? | |
39869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39870 | (exit $ac_status); }; }; then | |
123dca7d | 39871 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
39872 | else |
39873 | echo "$as_me: failed program was:" >&5 | |
39874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39875 | ||
123dca7d | 39876 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
39877 | |
39878 | fi | |
ac1cb8d3 | 39879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39880 | |
39881 | fi | |
39882 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
39883 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
39884 | ||
39885 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
39886 | cat >>confdefs.h <<\_ACEOF | |
39887 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
39888 | _ACEOF | |
39889 | ||
123dca7d VZ |
39890 | |
39891 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
39892 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
39893 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
39894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39895 | else | |
39896 | ||
39897 | cat >conftest.$ac_ext <<_ACEOF | |
39898 | /* confdefs.h. */ | |
39899 | _ACEOF | |
39900 | cat confdefs.h >>conftest.$ac_ext | |
39901 | cat >>conftest.$ac_ext <<_ACEOF | |
39902 | /* end confdefs.h. */ | |
39903 | #include <pthread.h> | |
39904 | int | |
39905 | main () | |
39906 | { | |
39907 | ||
39908 | pthread_mutexattr_t attr; | |
39909 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
39910 | ||
39911 | ; | |
39912 | return 0; | |
39913 | } | |
39914 | _ACEOF | |
39915 | rm -f conftest.$ac_objext | |
39916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39917 | (eval $ac_compile) 2>conftest.er1 | |
39918 | ac_status=$? | |
39919 | grep -v '^ *+' conftest.er1 >conftest.err | |
39920 | rm -f conftest.er1 | |
39921 | cat conftest.err >&5 | |
39922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39923 | (exit $ac_status); } && | |
ca5c6ac3 | 39924 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
123dca7d VZ |
39925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39926 | (eval $ac_try) 2>&5 | |
39927 | ac_status=$? | |
39928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39929 | (exit $ac_status); }; } && | |
39930 | { ac_try='test -s conftest.$ac_objext' | |
39931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39932 | (eval $ac_try) 2>&5 | |
39933 | ac_status=$? | |
39934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39935 | (exit $ac_status); }; }; then | |
39936 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
39937 | else | |
39938 | echo "$as_me: failed program was:" >&5 | |
39939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39940 | ||
39941 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
39942 | ||
39943 | fi | |
39944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39945 | ||
39946 | fi | |
39947 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
39948 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
39949 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
39950 | cat >>confdefs.h <<\_ACEOF | |
39951 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
39952 | _ACEOF | |
39953 | ||
39954 | fi | |
a848cd7e SC |
39955 | else |
39956 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
39957 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
39958 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
39959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39960 | else | |
39961 | ||
39962 | cat >conftest.$ac_ext <<_ACEOF | |
39963 | /* confdefs.h. */ | |
39964 | _ACEOF | |
39965 | cat confdefs.h >>conftest.$ac_ext | |
39966 | cat >>conftest.$ac_ext <<_ACEOF | |
39967 | /* end confdefs.h. */ | |
39968 | #include <pthread.h> | |
39969 | int | |
39970 | main () | |
39971 | { | |
39972 | ||
39973 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
39974 | ||
39975 | ; | |
39976 | return 0; | |
39977 | } | |
39978 | _ACEOF | |
39979 | rm -f conftest.$ac_objext | |
39980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39982 | ac_status=$? |
ac1cb8d3 VS |
39983 | grep -v '^ *+' conftest.er1 >conftest.err |
39984 | rm -f conftest.er1 | |
39985 | cat conftest.err >&5 | |
a848cd7e SC |
39986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39987 | (exit $ac_status); } && | |
ca5c6ac3 | 39988 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39990 | (eval $ac_try) 2>&5 | |
39991 | ac_status=$? | |
39992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39993 | (exit $ac_status); }; } && | |
39994 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39996 | (eval $ac_try) 2>&5 | |
39997 | ac_status=$? | |
39998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39999 | (exit $ac_status); }; }; then | |
40000 | ||
40001 | wx_cv_type_pthread_rec_mutex_init=yes | |
40002 | ||
40003 | else | |
40004 | echo "$as_me: failed program was:" >&5 | |
40005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40006 | ||
40007 | ||
40008 | wx_cv_type_pthread_rec_mutex_init=no | |
40009 | ||
40010 | ||
40011 | fi | |
ac1cb8d3 | 40012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40013 | |
40014 | fi | |
40015 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
40016 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
40017 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
40018 | cat >>confdefs.h <<\_ACEOF | |
40019 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
40020 | _ACEOF | |
40021 | ||
40022 | else | |
40023 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
40024 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
40025 | fi | |
40026 | fi | |
40027 | fi | |
40028 | ||
40029 | else | |
40030 | if test "$wxUSE_THREADS" = "yes" ; then | |
40031 | case "${host}" in | |
40032 | *-*-mingw32* ) | |
40033 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
40034 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
40035 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
40036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40037 | else | |
40038 | ||
e56f4f9e VZ |
40039 | CXXFLAGS_OLD="$CXXFLAGS" |
40040 | CXXFLAGS="-mthreads $CXXFLAGS" | |
a848cd7e SC |
40041 | cat >conftest.$ac_ext <<_ACEOF |
40042 | /* confdefs.h. */ | |
40043 | _ACEOF | |
40044 | cat confdefs.h >>conftest.$ac_ext | |
40045 | cat >>conftest.$ac_ext <<_ACEOF | |
40046 | /* end confdefs.h. */ | |
40047 | ||
40048 | int | |
40049 | main () | |
40050 | { | |
40051 | ||
40052 | ; | |
40053 | return 0; | |
40054 | } | |
40055 | _ACEOF | |
40056 | rm -f conftest.$ac_objext | |
40057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40058 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40059 | ac_status=$? |
ac1cb8d3 VS |
40060 | grep -v '^ *+' conftest.er1 >conftest.err |
40061 | rm -f conftest.er1 | |
40062 | cat conftest.err >&5 | |
a848cd7e SC |
40063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40064 | (exit $ac_status); } && | |
ca5c6ac3 | 40065 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40067 | (eval $ac_try) 2>&5 | |
40068 | ac_status=$? | |
40069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40070 | (exit $ac_status); }; } && | |
40071 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40073 | (eval $ac_try) 2>&5 | |
40074 | ac_status=$? | |
40075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40076 | (exit $ac_status); }; }; then | |
40077 | wx_cv_cflags_mthread=yes | |
40078 | else | |
40079 | echo "$as_me: failed program was:" >&5 | |
40080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40081 | ||
40082 | wx_cv_cflags_mthread=no | |
40083 | ||
40084 | fi | |
ac1cb8d3 | 40085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40086 | |
40087 | ||
40088 | fi | |
40089 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
40090 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
40091 | ||
40092 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
e56f4f9e | 40093 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads" |
a848cd7e SC |
40094 | LDFLAGS="$LDFLAGS -mthreads" |
40095 | else | |
e56f4f9e | 40096 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
40097 | fi |
40098 | ;; | |
40099 | *-pc-os2*emx ) | |
5ff751d6 VZ |
40100 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
40101 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
40102 | LDFLAGS="$LDFLAGS -Zmt" |
40103 | ;; | |
40104 | esac | |
40105 | fi | |
40106 | fi | |
40107 | ||
004ee6da RL |
40108 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
40109 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
40110 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
40111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40112 | else | |
40113 | cat >conftest.$ac_ext <<_ACEOF | |
40114 | /* confdefs.h. */ | |
40115 | _ACEOF | |
40116 | cat confdefs.h >>conftest.$ac_ext | |
40117 | cat >>conftest.$ac_ext <<_ACEOF | |
40118 | /* end confdefs.h. */ | |
004ee6da | 40119 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 40120 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 40121 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 40122 | |
a848cd7e | 40123 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 40124 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
40125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
40126 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40127 | |
a848cd7e SC |
40128 | #ifdef __STDC__ |
40129 | # include <limits.h> | |
40130 | #else | |
40131 | # include <assert.h> | |
40132 | #endif | |
ac1cb8d3 | 40133 | |
004ee6da | 40134 | #undef localtime_r |
ac1cb8d3 | 40135 | |
a848cd7e SC |
40136 | /* Override any gcc2 internal prototype to avoid an error. */ |
40137 | #ifdef __cplusplus | |
40138 | extern "C" | |
40139 | { | |
40140 | #endif | |
40141 | /* We use char because int might match the return type of a gcc2 | |
40142 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 40143 | char localtime_r (); |
a848cd7e SC |
40144 | /* The GNU C library defines this for functions which it implements |
40145 | to always fail with ENOSYS. Some functions are actually named | |
40146 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 40147 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
40148 | choke me |
40149 | #else | |
004ee6da | 40150 | char (*f) () = localtime_r; |
a848cd7e SC |
40151 | #endif |
40152 | #ifdef __cplusplus | |
40153 | } | |
40154 | #endif | |
40155 | ||
40156 | int | |
40157 | main () | |
40158 | { | |
004ee6da RL |
40159 | return f != localtime_r; |
40160 | ; | |
40161 | return 0; | |
40162 | } | |
40163 | _ACEOF | |
40164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40166 | (eval $ac_link) 2>conftest.er1 | |
40167 | ac_status=$? | |
40168 | grep -v '^ *+' conftest.er1 >conftest.err | |
40169 | rm -f conftest.er1 | |
40170 | cat conftest.err >&5 | |
40171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40172 | (exit $ac_status); } && | |
ca5c6ac3 | 40173 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40175 | (eval $ac_try) 2>&5 | |
40176 | ac_status=$? | |
40177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40178 | (exit $ac_status); }; } && | |
40179 | { ac_try='test -s conftest$ac_exeext' | |
40180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40181 | (eval $ac_try) 2>&5 | |
40182 | ac_status=$? | |
40183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40184 | (exit $ac_status); }; }; then | |
40185 | ac_cv_func_localtime_r=yes | |
40186 | else | |
40187 | echo "$as_me: failed program was:" >&5 | |
40188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40189 | ||
40190 | ac_cv_func_localtime_r=no | |
40191 | fi | |
40192 | rm -f conftest.err conftest.$ac_objext \ | |
40193 | conftest$ac_exeext conftest.$ac_ext | |
40194 | fi | |
40195 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
40196 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
40197 | if test $ac_cv_func_localtime_r = yes; then | |
40198 | cat >>confdefs.h <<\_ACEOF | |
40199 | #define HAVE_LOCALTIME_R 1 | |
40200 | _ACEOF | |
40201 | ||
40202 | fi | |
40203 | ||
40204 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
40205 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
40206 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
40207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40208 | else | |
40209 | cat >conftest.$ac_ext <<_ACEOF | |
40210 | /* confdefs.h. */ | |
40211 | _ACEOF | |
40212 | cat confdefs.h >>conftest.$ac_ext | |
40213 | cat >>conftest.$ac_ext <<_ACEOF | |
40214 | /* end confdefs.h. */ | |
40215 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
40216 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40217 | #define gmtime_r innocuous_gmtime_r | |
40218 | ||
40219 | /* System header to define __stub macros and hopefully few prototypes, | |
40220 | which can conflict with char gmtime_r (); below. | |
40221 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40222 | <limits.h> exists even on freestanding compilers. */ | |
40223 | ||
40224 | #ifdef __STDC__ | |
40225 | # include <limits.h> | |
40226 | #else | |
40227 | # include <assert.h> | |
40228 | #endif | |
40229 | ||
40230 | #undef gmtime_r | |
40231 | ||
40232 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40233 | #ifdef __cplusplus | |
40234 | extern "C" | |
40235 | { | |
40236 | #endif | |
40237 | /* We use char because int might match the return type of a gcc2 | |
40238 | builtin and then its argument prototype would still apply. */ | |
40239 | char gmtime_r (); | |
40240 | /* The GNU C library defines this for functions which it implements | |
40241 | to always fail with ENOSYS. Some functions are actually named | |
40242 | something starting with __ and the normal name is an alias. */ | |
40243 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
40244 | choke me | |
40245 | #else | |
40246 | char (*f) () = gmtime_r; | |
40247 | #endif | |
40248 | #ifdef __cplusplus | |
40249 | } | |
40250 | #endif | |
40251 | ||
40252 | int | |
40253 | main () | |
40254 | { | |
40255 | return f != gmtime_r; | |
40256 | ; | |
40257 | return 0; | |
40258 | } | |
40259 | _ACEOF | |
40260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40262 | (eval $ac_link) 2>conftest.er1 | |
40263 | ac_status=$? | |
40264 | grep -v '^ *+' conftest.er1 >conftest.err | |
40265 | rm -f conftest.er1 | |
40266 | cat conftest.err >&5 | |
40267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40268 | (exit $ac_status); } && | |
ca5c6ac3 | 40269 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40271 | (eval $ac_try) 2>&5 | |
40272 | ac_status=$? | |
40273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40274 | (exit $ac_status); }; } && | |
40275 | { ac_try='test -s conftest$ac_exeext' | |
40276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40277 | (eval $ac_try) 2>&5 | |
40278 | ac_status=$? | |
40279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40280 | (exit $ac_status); }; }; then | |
40281 | ac_cv_func_gmtime_r=yes | |
40282 | else | |
40283 | echo "$as_me: failed program was:" >&5 | |
40284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40285 | ||
40286 | ac_cv_func_gmtime_r=no | |
40287 | fi | |
40288 | rm -f conftest.err conftest.$ac_objext \ | |
40289 | conftest$ac_exeext conftest.$ac_ext | |
40290 | fi | |
40291 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
40292 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
40293 | if test $ac_cv_func_gmtime_r = yes; then | |
40294 | cat >>confdefs.h <<\_ACEOF | |
40295 | #define HAVE_GMTIME_R 1 | |
40296 | _ACEOF | |
40297 | ||
40298 | fi | |
40299 | ||
40300 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
40301 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
40302 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
40303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40304 | else | |
40305 | cat >conftest.$ac_ext <<_ACEOF | |
40306 | /* confdefs.h. */ | |
40307 | _ACEOF | |
40308 | cat confdefs.h >>conftest.$ac_ext | |
40309 | cat >>conftest.$ac_ext <<_ACEOF | |
40310 | /* end confdefs.h. */ | |
40311 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
40312 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40313 | #define readdir_r innocuous_readdir_r | |
40314 | ||
40315 | /* System header to define __stub macros and hopefully few prototypes, | |
40316 | which can conflict with char readdir_r (); below. | |
40317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40318 | <limits.h> exists even on freestanding compilers. */ | |
40319 | ||
40320 | #ifdef __STDC__ | |
40321 | # include <limits.h> | |
40322 | #else | |
40323 | # include <assert.h> | |
40324 | #endif | |
40325 | ||
40326 | #undef readdir_r | |
40327 | ||
40328 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40329 | #ifdef __cplusplus | |
40330 | extern "C" | |
40331 | { | |
40332 | #endif | |
40333 | /* We use char because int might match the return type of a gcc2 | |
40334 | builtin and then its argument prototype would still apply. */ | |
40335 | char readdir_r (); | |
40336 | /* The GNU C library defines this for functions which it implements | |
40337 | to always fail with ENOSYS. Some functions are actually named | |
40338 | something starting with __ and the normal name is an alias. */ | |
40339 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
40340 | choke me | |
40341 | #else | |
40342 | char (*f) () = readdir_r; | |
40343 | #endif | |
40344 | #ifdef __cplusplus | |
40345 | } | |
40346 | #endif | |
40347 | ||
40348 | int | |
40349 | main () | |
40350 | { | |
40351 | return f != readdir_r; | |
40352 | ; | |
40353 | return 0; | |
40354 | } | |
40355 | _ACEOF | |
40356 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40358 | (eval $ac_link) 2>conftest.er1 | |
40359 | ac_status=$? | |
40360 | grep -v '^ *+' conftest.er1 >conftest.err | |
40361 | rm -f conftest.er1 | |
40362 | cat conftest.err >&5 | |
40363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40364 | (exit $ac_status); } && | |
ca5c6ac3 | 40365 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40367 | (eval $ac_try) 2>&5 | |
40368 | ac_status=$? | |
40369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40370 | (exit $ac_status); }; } && | |
40371 | { ac_try='test -s conftest$ac_exeext' | |
40372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40373 | (eval $ac_try) 2>&5 | |
40374 | ac_status=$? | |
40375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40376 | (exit $ac_status); }; }; then | |
40377 | ac_cv_func_readdir_r=yes | |
40378 | else | |
40379 | echo "$as_me: failed program was:" >&5 | |
40380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40381 | ||
40382 | ac_cv_func_readdir_r=no | |
40383 | fi | |
40384 | rm -f conftest.err conftest.$ac_objext \ | |
40385 | conftest$ac_exeext conftest.$ac_ext | |
40386 | fi | |
40387 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
40388 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
40389 | if test $ac_cv_func_readdir_r = yes; then | |
40390 | cat >>confdefs.h <<\_ACEOF | |
40391 | #define HAVE_READDIR_R 1 | |
40392 | _ACEOF | |
40393 | ||
40394 | fi | |
40395 | ||
004ee6da | 40396 | |
004ee6da RL |
40397 | |
40398 | ||
40399 | ac_ext=c | |
40400 | ac_cpp='$CPP $CPPFLAGS' | |
40401 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40402 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40403 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40404 | ||
40405 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
40406 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
40407 | ||
40408 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
40409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40410 | else | |
40411 | ||
40412 | ||
2f6c5bb5 | 40413 | ################################################################ |
004ee6da RL |
40414 | |
40415 | ac_cv_func_which_gethostbyname_r=unknown | |
40416 | ||
40417 | # | |
40418 | # ONE ARGUMENT (sanity check) | |
40419 | # | |
40420 | ||
40421 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
40422 | # a single argument. If it actually compiles, then we can assume that | |
40423 | # netdb.h is not declaring the function, and the compiler is thereby | |
40424 | # assuming an implicit prototype. In which case, we're out of luck. | |
40425 | # | |
40426 | cat >conftest.$ac_ext <<_ACEOF | |
40427 | /* confdefs.h. */ | |
40428 | _ACEOF | |
40429 | cat confdefs.h >>conftest.$ac_ext | |
40430 | cat >>conftest.$ac_ext <<_ACEOF | |
40431 | /* end confdefs.h. */ | |
40432 | #include <netdb.h> | |
40433 | int | |
40434 | main () | |
40435 | { | |
40436 | ||
40437 | char *name = "www.gnu.org"; | |
40438 | (void)gethostbyname_r(name) /* ; */ | |
40439 | ||
40440 | ; | |
40441 | return 0; | |
40442 | } | |
40443 | _ACEOF | |
40444 | rm -f conftest.$ac_objext | |
40445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40446 | (eval $ac_compile) 2>conftest.er1 | |
40447 | ac_status=$? | |
40448 | grep -v '^ *+' conftest.er1 >conftest.err | |
40449 | rm -f conftest.er1 | |
40450 | cat conftest.err >&5 | |
40451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40452 | (exit $ac_status); } && | |
ca5c6ac3 | 40453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40455 | (eval $ac_try) 2>&5 | |
40456 | ac_status=$? | |
40457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40458 | (exit $ac_status); }; } && | |
40459 | { ac_try='test -s conftest.$ac_objext' | |
40460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40461 | (eval $ac_try) 2>&5 | |
40462 | ac_status=$? | |
40463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40464 | (exit $ac_status); }; }; then | |
40465 | ac_cv_func_which_gethostbyname_r=no | |
40466 | else | |
40467 | echo "$as_me: failed program was:" >&5 | |
40468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40469 | ||
40470 | fi | |
40471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40472 | ||
40473 | # | |
40474 | # SIX ARGUMENTS | |
40475 | # (e.g. Linux) | |
40476 | # | |
40477 | ||
40478 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
40479 | ||
40480 | cat >conftest.$ac_ext <<_ACEOF | |
40481 | /* confdefs.h. */ | |
40482 | _ACEOF | |
40483 | cat confdefs.h >>conftest.$ac_ext | |
40484 | cat >>conftest.$ac_ext <<_ACEOF | |
40485 | /* end confdefs.h. */ | |
40486 | #include <netdb.h> | |
40487 | int | |
40488 | main () | |
40489 | { | |
40490 | ||
40491 | char *name = "www.gnu.org"; | |
40492 | struct hostent ret, *retp; | |
40493 | char buf[1024]; | |
40494 | int buflen = 1024; | |
40495 | int my_h_errno; | |
40496 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
40497 | ||
40498 | ; | |
40499 | return 0; | |
40500 | } | |
40501 | _ACEOF | |
40502 | rm -f conftest.$ac_objext | |
40503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40504 | (eval $ac_compile) 2>conftest.er1 | |
40505 | ac_status=$? | |
40506 | grep -v '^ *+' conftest.er1 >conftest.err | |
40507 | rm -f conftest.er1 | |
40508 | cat conftest.err >&5 | |
40509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40510 | (exit $ac_status); } && | |
ca5c6ac3 | 40511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40513 | (eval $ac_try) 2>&5 | |
40514 | ac_status=$? | |
40515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40516 | (exit $ac_status); }; } && | |
40517 | { ac_try='test -s conftest.$ac_objext' | |
40518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40519 | (eval $ac_try) 2>&5 | |
40520 | ac_status=$? | |
40521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40522 | (exit $ac_status); }; }; then | |
40523 | ac_cv_func_which_gethostbyname_r=six | |
40524 | else | |
40525 | echo "$as_me: failed program was:" >&5 | |
40526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40527 | ||
40528 | fi | |
40529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40530 | ||
40531 | fi | |
40532 | ||
40533 | # | |
40534 | # FIVE ARGUMENTS | |
40535 | # (e.g. Solaris) | |
40536 | # | |
40537 | ||
40538 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
40539 | ||
40540 | cat >conftest.$ac_ext <<_ACEOF | |
40541 | /* confdefs.h. */ | |
40542 | _ACEOF | |
40543 | cat confdefs.h >>conftest.$ac_ext | |
40544 | cat >>conftest.$ac_ext <<_ACEOF | |
40545 | /* end confdefs.h. */ | |
40546 | #include <netdb.h> | |
40547 | int | |
40548 | main () | |
40549 | { | |
40550 | ||
40551 | char *name = "www.gnu.org"; | |
40552 | struct hostent ret; | |
40553 | char buf[1024]; | |
40554 | int buflen = 1024; | |
40555 | int my_h_errno; | |
40556 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
40557 | ||
40558 | ; | |
40559 | return 0; | |
40560 | } | |
40561 | _ACEOF | |
40562 | rm -f conftest.$ac_objext | |
40563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40564 | (eval $ac_compile) 2>conftest.er1 | |
40565 | ac_status=$? | |
40566 | grep -v '^ *+' conftest.er1 >conftest.err | |
40567 | rm -f conftest.er1 | |
40568 | cat conftest.err >&5 | |
40569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40570 | (exit $ac_status); } && | |
ca5c6ac3 | 40571 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40573 | (eval $ac_try) 2>&5 | |
40574 | ac_status=$? | |
40575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40576 | (exit $ac_status); }; } && | |
40577 | { ac_try='test -s conftest.$ac_objext' | |
40578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40579 | (eval $ac_try) 2>&5 | |
40580 | ac_status=$? | |
40581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40582 | (exit $ac_status); }; }; then | |
40583 | ac_cv_func_which_gethostbyname_r=five | |
40584 | else | |
40585 | echo "$as_me: failed program was:" >&5 | |
40586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40587 | ||
40588 | fi | |
40589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40590 | ||
40591 | fi | |
40592 | ||
40593 | # | |
40594 | # THREE ARGUMENTS | |
40595 | # (e.g. AIX, HP-UX, Tru64) | |
40596 | # | |
40597 | ||
40598 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
40599 | ||
40600 | cat >conftest.$ac_ext <<_ACEOF | |
40601 | /* confdefs.h. */ | |
40602 | _ACEOF | |
40603 | cat confdefs.h >>conftest.$ac_ext | |
40604 | cat >>conftest.$ac_ext <<_ACEOF | |
40605 | /* end confdefs.h. */ | |
40606 | #include <netdb.h> | |
40607 | int | |
40608 | main () | |
40609 | { | |
40610 | ||
40611 | char *name = "www.gnu.org"; | |
40612 | struct hostent ret; | |
40613 | struct hostent_data data; | |
40614 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
40615 | ||
40616 | ; | |
40617 | return 0; | |
40618 | } | |
40619 | _ACEOF | |
40620 | rm -f conftest.$ac_objext | |
40621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40622 | (eval $ac_compile) 2>conftest.er1 | |
40623 | ac_status=$? | |
40624 | grep -v '^ *+' conftest.er1 >conftest.err | |
40625 | rm -f conftest.er1 | |
40626 | cat conftest.err >&5 | |
40627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40628 | (exit $ac_status); } && | |
ca5c6ac3 | 40629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40631 | (eval $ac_try) 2>&5 | |
40632 | ac_status=$? | |
40633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40634 | (exit $ac_status); }; } && | |
40635 | { ac_try='test -s conftest.$ac_objext' | |
40636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40637 | (eval $ac_try) 2>&5 | |
40638 | ac_status=$? | |
40639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40640 | (exit $ac_status); }; }; then | |
40641 | ac_cv_func_which_gethostbyname_r=three | |
40642 | else | |
40643 | echo "$as_me: failed program was:" >&5 | |
40644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40645 | ||
40646 | fi | |
40647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40648 | ||
40649 | fi | |
40650 | ||
2f6c5bb5 | 40651 | ################################################################ |
004ee6da RL |
40652 | |
40653 | ||
40654 | fi | |
40655 | ||
40656 | case "$ac_cv_func_which_gethostbyname_r" in | |
40657 | three) | |
40658 | echo "$as_me:$LINENO: result: three" >&5 | |
40659 | echo "${ECHO_T}three" >&6 | |
40660 | cat >>confdefs.h <<\_ACEOF | |
40661 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
40662 | _ACEOF | |
40663 | ||
40664 | ;; | |
40665 | ||
40666 | five) | |
40667 | echo "$as_me:$LINENO: result: five" >&5 | |
40668 | echo "${ECHO_T}five" >&6 | |
40669 | cat >>confdefs.h <<\_ACEOF | |
40670 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
40671 | _ACEOF | |
40672 | ||
40673 | ;; | |
40674 | ||
40675 | six) | |
40676 | echo "$as_me:$LINENO: result: six" >&5 | |
40677 | echo "${ECHO_T}six" >&6 | |
40678 | cat >>confdefs.h <<\_ACEOF | |
40679 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
40680 | _ACEOF | |
40681 | ||
40682 | ;; | |
40683 | ||
40684 | no) | |
40685 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
40686 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
40687 | ;; | |
40688 | ||
40689 | unknown) | |
40690 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
40691 | echo "${ECHO_T}can't tell" >&6 | |
40692 | ;; | |
40693 | ||
40694 | *) | |
40695 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
40696 | echo "$as_me: error: internal error" >&2;} | |
40697 | { (exit 1); exit 1; }; } | |
40698 | ;; | |
40699 | esac | |
40700 | ||
5ec3bc43 JS |
40701 | ac_ext=cc |
40702 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40703 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40704 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40705 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
004ee6da RL |
40706 | |
40707 | ||
40708 | ||
40709 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
40710 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
40711 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
40712 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
40713 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
40714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40715 | else | |
40716 | cat >conftest.$ac_ext <<_ACEOF | |
40717 | /* confdefs.h. */ | |
40718 | _ACEOF | |
40719 | cat confdefs.h >>conftest.$ac_ext | |
40720 | cat >>conftest.$ac_ext <<_ACEOF | |
40721 | /* end confdefs.h. */ | |
40722 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
40723 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40724 | #define gethostbyname innocuous_gethostbyname | |
40725 | ||
40726 | /* System header to define __stub macros and hopefully few prototypes, | |
40727 | which can conflict with char gethostbyname (); below. | |
40728 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40729 | <limits.h> exists even on freestanding compilers. */ | |
40730 | ||
40731 | #ifdef __STDC__ | |
40732 | # include <limits.h> | |
40733 | #else | |
40734 | # include <assert.h> | |
40735 | #endif | |
40736 | ||
40737 | #undef gethostbyname | |
40738 | ||
40739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40740 | #ifdef __cplusplus | |
40741 | extern "C" | |
40742 | { | |
40743 | #endif | |
40744 | /* We use char because int might match the return type of a gcc2 | |
40745 | builtin and then its argument prototype would still apply. */ | |
40746 | char gethostbyname (); | |
40747 | /* The GNU C library defines this for functions which it implements | |
40748 | to always fail with ENOSYS. Some functions are actually named | |
40749 | something starting with __ and the normal name is an alias. */ | |
40750 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
40751 | choke me | |
40752 | #else | |
40753 | char (*f) () = gethostbyname; | |
40754 | #endif | |
40755 | #ifdef __cplusplus | |
40756 | } | |
40757 | #endif | |
40758 | ||
40759 | int | |
40760 | main () | |
40761 | { | |
40762 | return f != gethostbyname; | |
40763 | ; | |
40764 | return 0; | |
40765 | } | |
40766 | _ACEOF | |
40767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40769 | (eval $ac_link) 2>conftest.er1 | |
40770 | ac_status=$? | |
40771 | grep -v '^ *+' conftest.er1 >conftest.err | |
40772 | rm -f conftest.er1 | |
40773 | cat conftest.err >&5 | |
40774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40775 | (exit $ac_status); } && | |
ca5c6ac3 | 40776 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40778 | (eval $ac_try) 2>&5 | |
40779 | ac_status=$? | |
40780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40781 | (exit $ac_status); }; } && | |
40782 | { ac_try='test -s conftest$ac_exeext' | |
40783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40784 | (eval $ac_try) 2>&5 | |
40785 | ac_status=$? | |
40786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40787 | (exit $ac_status); }; }; then | |
40788 | ac_cv_func_gethostbyname=yes | |
40789 | else | |
40790 | echo "$as_me: failed program was:" >&5 | |
40791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40792 | ||
40793 | ac_cv_func_gethostbyname=no | |
40794 | fi | |
40795 | rm -f conftest.err conftest.$ac_objext \ | |
40796 | conftest$ac_exeext conftest.$ac_ext | |
40797 | fi | |
40798 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
40799 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
40800 | if test $ac_cv_func_gethostbyname = yes; then | |
40801 | cat >>confdefs.h <<\_ACEOF | |
40802 | #define HAVE_GETHOSTBYNAME 1 | |
40803 | _ACEOF | |
40804 | ||
40805 | fi | |
40806 | ||
40807 | fi | |
3ecd9f92 | 40808 | |
81c330c6 VZ |
40809 | echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5 |
40810 | echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6 | |
40811 | if test "${ac_cv_func_which_getservbyname_r+set}" = set; then | |
004ee6da RL |
40812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40813 | else | |
3ecd9f92 MW |
40814 | |
40815 | cat >conftest.$ac_ext <<_ACEOF | |
004ee6da RL |
40816 | /* confdefs.h. */ |
40817 | _ACEOF | |
40818 | cat confdefs.h >>conftest.$ac_ext | |
40819 | cat >>conftest.$ac_ext <<_ACEOF | |
40820 | /* end confdefs.h. */ | |
81c330c6 | 40821 | #include <netdb.h> |
004ee6da RL |
40822 | int |
40823 | main () | |
40824 | { | |
40825 | ||
81c330c6 VZ |
40826 | char *name; |
40827 | char *proto; | |
40828 | struct servent *se, *res; | |
40829 | char buffer[2048]; | |
40830 | int buflen = 2048; | |
40831 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res) | |
004ee6da RL |
40832 | |
40833 | ; | |
40834 | return 0; | |
40835 | } | |
40836 | _ACEOF | |
40837 | rm -f conftest.$ac_objext | |
40838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40839 | (eval $ac_compile) 2>conftest.er1 | |
40840 | ac_status=$? | |
40841 | grep -v '^ *+' conftest.er1 >conftest.err | |
40842 | rm -f conftest.er1 | |
40843 | cat conftest.err >&5 | |
40844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40845 | (exit $ac_status); } && | |
ca5c6ac3 | 40846 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40848 | (eval $ac_try) 2>&5 | |
40849 | ac_status=$? | |
40850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40851 | (exit $ac_status); }; } && | |
40852 | { ac_try='test -s conftest.$ac_objext' | |
40853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40854 | (eval $ac_try) 2>&5 | |
40855 | ac_status=$? | |
40856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40857 | (exit $ac_status); }; }; then | |
81c330c6 | 40858 | ac_cv_func_which_getservbyname_r=six |
004ee6da RL |
40859 | else |
40860 | echo "$as_me: failed program was:" >&5 | |
40861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40862 | ||
3ecd9f92 | 40863 | |
81c330c6 | 40864 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
40865 | /* confdefs.h. */ |
40866 | _ACEOF | |
40867 | cat confdefs.h >>conftest.$ac_ext | |
40868 | cat >>conftest.$ac_ext <<_ACEOF | |
40869 | /* end confdefs.h. */ | |
81c330c6 | 40870 | #include <netdb.h> |
004ee6da RL |
40871 | int |
40872 | main () | |
40873 | { | |
40874 | ||
81c330c6 VZ |
40875 | char *name; |
40876 | char *proto; | |
40877 | struct servent *se; | |
40878 | char buffer[2048]; | |
40879 | int buflen = 2048; | |
40880 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
40881 | |
40882 | ; | |
40883 | return 0; | |
40884 | } | |
40885 | _ACEOF | |
40886 | rm -f conftest.$ac_objext | |
40887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40888 | (eval $ac_compile) 2>conftest.er1 | |
40889 | ac_status=$? | |
40890 | grep -v '^ *+' conftest.er1 >conftest.err | |
40891 | rm -f conftest.er1 | |
40892 | cat conftest.err >&5 | |
40893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40894 | (exit $ac_status); } && | |
ca5c6ac3 | 40895 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40897 | (eval $ac_try) 2>&5 | |
40898 | ac_status=$? | |
40899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40900 | (exit $ac_status); }; } && | |
40901 | { ac_try='test -s conftest.$ac_objext' | |
40902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40903 | (eval $ac_try) 2>&5 | |
40904 | ac_status=$? | |
40905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40906 | (exit $ac_status); }; }; then | |
81c330c6 | 40907 | ac_cv_func_which_getservbyname_r=five |
004ee6da RL |
40908 | else |
40909 | echo "$as_me: failed program was:" >&5 | |
40910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40911 | ||
3ecd9f92 | 40912 | |
81c330c6 | 40913 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
40914 | /* confdefs.h. */ |
40915 | _ACEOF | |
40916 | cat confdefs.h >>conftest.$ac_ext | |
40917 | cat >>conftest.$ac_ext <<_ACEOF | |
40918 | /* end confdefs.h. */ | |
81c330c6 | 40919 | #include <netdb.h> |
004ee6da RL |
40920 | int |
40921 | main () | |
40922 | { | |
40923 | ||
81c330c6 VZ |
40924 | char *name; |
40925 | char *proto; | |
40926 | struct servent *se; | |
40927 | struct servent_data data; | |
40928 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
40929 | |
40930 | ; | |
40931 | return 0; | |
40932 | } | |
40933 | _ACEOF | |
40934 | rm -f conftest.$ac_objext | |
40935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40936 | (eval $ac_compile) 2>conftest.er1 | |
40937 | ac_status=$? | |
40938 | grep -v '^ *+' conftest.er1 >conftest.err | |
40939 | rm -f conftest.er1 | |
40940 | cat conftest.err >&5 | |
40941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40942 | (exit $ac_status); } && | |
ca5c6ac3 | 40943 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
40944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40945 | (eval $ac_try) 2>&5 | |
40946 | ac_status=$? | |
40947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40948 | (exit $ac_status); }; } && | |
40949 | { ac_try='test -s conftest.$ac_objext' | |
40950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40951 | (eval $ac_try) 2>&5 | |
40952 | ac_status=$? | |
40953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40954 | (exit $ac_status); }; }; then | |
81c330c6 | 40955 | ac_cv_func_which_getservbyname_r=four |
004ee6da RL |
40956 | else |
40957 | echo "$as_me: failed program was:" >&5 | |
40958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40959 | ||
40960 | ac_cv_func_which_getservbyname_r=no | |
81c330c6 | 40961 | |
004ee6da RL |
40962 | fi |
40963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40964 | ||
3ecd9f92 | 40965 | |
004ee6da RL |
40966 | fi |
40967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40968 | ||
3ecd9f92 | 40969 | |
004ee6da RL |
40970 | fi |
40971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3ecd9f92 | 40972 | |
004ee6da | 40973 | |
3ecd9f92 MW |
40974 | fi |
40975 | echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5 | |
40976 | echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6 | |
004ee6da RL |
40977 | |
40978 | if test $ac_cv_func_which_getservbyname_r = six; then | |
40979 | cat >>confdefs.h <<\_ACEOF | |
40980 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
40981 | _ACEOF | |
40982 | ||
40983 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
40984 | cat >>confdefs.h <<\_ACEOF | |
40985 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
40986 | _ACEOF | |
40987 | ||
40988 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
40989 | cat >>confdefs.h <<\_ACEOF | |
40990 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
40991 | _ACEOF | |
40992 | ||
004ee6da RL |
40993 | fi |
40994 | ||
40995 | ||
40996 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
40997 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
40998 | ||
40999 | for ac_func in getservbyname | |
41000 | do | |
41001 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41002 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41003 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41004 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41006 | else | |
41007 | cat >conftest.$ac_ext <<_ACEOF | |
41008 | /* confdefs.h. */ | |
41009 | _ACEOF | |
41010 | cat confdefs.h >>conftest.$ac_ext | |
41011 | cat >>conftest.$ac_ext <<_ACEOF | |
41012 | /* end confdefs.h. */ | |
41013 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
41014 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41015 | #define $ac_func innocuous_$ac_func | |
41016 | ||
41017 | /* System header to define __stub macros and hopefully few prototypes, | |
41018 | which can conflict with char $ac_func (); below. | |
41019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41020 | <limits.h> exists even on freestanding compilers. */ | |
41021 | ||
41022 | #ifdef __STDC__ | |
41023 | # include <limits.h> | |
41024 | #else | |
41025 | # include <assert.h> | |
41026 | #endif | |
41027 | ||
41028 | #undef $ac_func | |
41029 | ||
41030 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41031 | #ifdef __cplusplus | |
41032 | extern "C" | |
41033 | { | |
41034 | #endif | |
41035 | /* We use char because int might match the return type of a gcc2 | |
41036 | builtin and then its argument prototype would still apply. */ | |
41037 | char $ac_func (); | |
41038 | /* The GNU C library defines this for functions which it implements | |
41039 | to always fail with ENOSYS. Some functions are actually named | |
41040 | something starting with __ and the normal name is an alias. */ | |
41041 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41042 | choke me | |
41043 | #else | |
41044 | char (*f) () = $ac_func; | |
41045 | #endif | |
41046 | #ifdef __cplusplus | |
41047 | } | |
41048 | #endif | |
41049 | ||
41050 | int | |
41051 | main () | |
41052 | { | |
41053 | return f != $ac_func; | |
41054 | ; | |
41055 | return 0; | |
41056 | } | |
41057 | _ACEOF | |
41058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41060 | (eval $ac_link) 2>conftest.er1 | |
41061 | ac_status=$? | |
41062 | grep -v '^ *+' conftest.er1 >conftest.err | |
41063 | rm -f conftest.er1 | |
41064 | cat conftest.err >&5 | |
41065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41066 | (exit $ac_status); } && | |
ca5c6ac3 | 41067 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
41068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41069 | (eval $ac_try) 2>&5 | |
41070 | ac_status=$? | |
41071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41072 | (exit $ac_status); }; } && | |
41073 | { ac_try='test -s conftest$ac_exeext' | |
41074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41075 | (eval $ac_try) 2>&5 | |
41076 | ac_status=$? | |
41077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41078 | (exit $ac_status); }; }; then | |
41079 | eval "$as_ac_var=yes" | |
41080 | else | |
41081 | echo "$as_me: failed program was:" >&5 | |
41082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41083 | ||
41084 | eval "$as_ac_var=no" | |
41085 | fi | |
41086 | rm -f conftest.err conftest.$ac_objext \ | |
41087 | conftest$ac_exeext conftest.$ac_ext | |
41088 | fi | |
41089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41090 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41091 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41092 | cat >>confdefs.h <<_ACEOF | |
41093 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41094 | _ACEOF | |
41095 | cat >>confdefs.h <<\_ACEOF | |
41096 | #define HAVE_GETSERVBYNAME 1 | |
41097 | _ACEOF | |
41098 | ||
41099 | fi | |
41100 | done | |
41101 | ||
41102 | fi | |
41103 | ||
004ee6da RL |
41104 | if test "$wxUSE_THREADS" = "yes"; then |
41105 | cat >>confdefs.h <<\_ACEOF | |
41106 | #define wxUSE_THREADS 1 | |
41107 | _ACEOF | |
41108 | ||
41109 | ||
41110 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
41111 | else | |
56632e81 | 41112 | if test "$wx_cv_func_strtok_r" = "yes"; then |
004ee6da RL |
41113 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
41114 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
41115 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
41116 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
41117 | echo "$as_me:$LINENO: result: yes" >&5 | |
41118 | echo "${ECHO_T}yes" >&6 | |
41119 | else | |
41120 | echo "$as_me:$LINENO: result: no" >&5 | |
41121 | echo "${ECHO_T}no" >&6 | |
41122 | fi | |
41123 | fi | |
41124 | fi | |
41125 | ||
41126 | if test "$WXGTK20" = 1 ; then | |
41127 | cat >>confdefs.h <<_ACEOF | |
41128 | #define __WXGTK20__ $WXGTK20 | |
41129 | _ACEOF | |
41130 | ||
41131 | WXGTK12=1 | |
41132 | fi | |
41133 | ||
41134 | if test "$WXGTK12" = 1 ; then | |
41135 | cat >>confdefs.h <<_ACEOF | |
41136 | #define __WXGTK12__ $WXGTK12 | |
41137 | _ACEOF | |
41138 | ||
41139 | fi | |
41140 | ||
41141 | if test "$WXGTK127" = 1 ; then | |
41142 | cat >>confdefs.h <<_ACEOF | |
41143 | #define __WXGTK127__ $WXGTK127 | |
41144 | _ACEOF | |
41145 | ||
41146 | fi | |
41147 | ||
41148 | if test "$WXGPE" = 1 ; then | |
41149 | cat >>confdefs.h <<_ACEOF | |
41150 | #define __WXGPE__ $WXGPE | |
41151 | _ACEOF | |
41152 | ||
41153 | fi | |
41154 | ||
41155 | DEBUG_CFLAGS= | |
41156 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
41157 | DEBUG_CFLAGS="-g" | |
41158 | wxUSE_OPTIMISE=no | |
41159 | fi | |
41160 | ||
41161 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
41162 | wxUSE_DEBUG_INFO=yes | |
41163 | if test "$GCC" = yes; then | |
41164 | DEBUG_CFLAGS="-ggdb" | |
41165 | fi | |
41166 | fi | |
41167 | ||
41168 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
41169 | cat >>confdefs.h <<\_ACEOF | |
41170 | #define WXDEBUG 1 | |
41171 | _ACEOF | |
41172 | ||
41173 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
41174 | else | |
41175 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
41176 | if test "x$wxGTK_VERSION" = "x1" ; then |
41177 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
41178 | fi | |
004ee6da RL |
41179 | fi |
41180 | fi | |
41181 | ||
41182 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
41183 | cat >>confdefs.h <<\_ACEOF | |
41184 | #define wxUSE_MEMORY_TRACING 1 | |
41185 | _ACEOF | |
41186 | ||
41187 | cat >>confdefs.h <<\_ACEOF | |
41188 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
41189 | _ACEOF | |
41190 | ||
41191 | cat >>confdefs.h <<\_ACEOF | |
41192 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
41193 | _ACEOF | |
41194 | ||
41195 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
41196 | fi | |
41197 | ||
41198 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
41199 | DMALLOC_LIBS="-ldmallocthcxx" | |
41200 | fi | |
41201 | ||
41202 | PROFILE_FLAGS= | |
41203 | if test "$wxUSE_PROFILE" = "yes" ; then | |
41204 | PROFILE_FLAGS=" -pg" | |
41205 | fi | |
41206 | ||
41207 | if test "$GCC" = "yes" ; then | |
41208 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
41209 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
41210 | fi | |
41211 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
41212 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
41213 | fi | |
41214 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
41215 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
41216 | fi | |
41217 | ||
41218 | case "${host}" in | |
41219 | powerpc*-*-aix* ) | |
41220 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
41221 | ;; | |
41222 | *-hppa* ) | |
41223 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
41224 | ;; | |
41225 | esac | |
41226 | fi | |
41227 | ||
41228 | OPTIMISE_CFLAGS= | |
41229 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
41230 | if test "$GCC" = yes ; then | |
41231 | OPTIMISE_CFLAGS="-O0" | |
41232 | fi | |
41233 | else | |
41234 | if test "$GCC" = yes ; then | |
e5efa97e VZ |
41235 | case "${host}" in |
41236 | *-pc-os2_emx | *-pc-os2-emx ) | |
41237 | OPTIMISE_CFLAGS="-O2" | |
41238 | ;; | |
41239 | *) | |
41240 | OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing" | |
41241 | ;; | |
41242 | esac | |
004ee6da RL |
41243 | else |
41244 | OPTIMISE_CFLAGS="-O" | |
41245 | fi | |
41246 | fi | |
41247 | ||
41248 | ||
41249 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
41250 | cat >>confdefs.h <<\_ACEOF | |
41251 | #define WXWIN_COMPATIBILITY_2_4 1 | |
41252 | _ACEOF | |
41253 | ||
41254 | ||
41255 | WXWIN_COMPATIBILITY_2_6="yes" | |
41256 | fi | |
41257 | ||
41258 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
41259 | cat >>confdefs.h <<\_ACEOF | |
41260 | #define WXWIN_COMPATIBILITY_2_6 1 | |
41261 | _ACEOF | |
41262 | ||
41263 | fi | |
41264 | ||
41265 | ||
41266 | if test "$wxUSE_GUI" = "yes"; then | |
41267 | cat >>confdefs.h <<\_ACEOF | |
41268 | #define wxUSE_GUI 1 | |
41269 | _ACEOF | |
41270 | ||
41271 | ||
41272 | fi | |
41273 | ||
41274 | ||
41275 | if test "$wxUSE_UNIX" = "yes"; then | |
41276 | cat >>confdefs.h <<\_ACEOF | |
41277 | #define wxUSE_UNIX 1 | |
41278 | _ACEOF | |
41279 | ||
41280 | fi | |
41281 | ||
41282 | ||
41283 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
41284 | ||
41285 | HAVE_DL_FUNCS=0 | |
41286 | HAVE_SHL_FUNCS=0 | |
41287 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
41288 | if test "$USE_DARWIN" = 1; then | |
41289 | HAVE_DL_FUNCS=1 | |
41290 | elif test "$USE_DOS" = 1; then | |
41291 | HAVE_DL_FUNCS=0 | |
41292 | else | |
41293 | ||
41294 | for ac_func in dlopen | |
41295 | do | |
41296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41297 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41299 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41301 | else | |
41302 | cat >conftest.$ac_ext <<_ACEOF | |
41303 | /* confdefs.h. */ | |
41304 | _ACEOF | |
41305 | cat confdefs.h >>conftest.$ac_ext | |
41306 | cat >>conftest.$ac_ext <<_ACEOF | |
41307 | /* end confdefs.h. */ | |
41308 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
41309 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41310 | #define $ac_func innocuous_$ac_func | |
41311 | ||
41312 | /* System header to define __stub macros and hopefully few prototypes, | |
41313 | which can conflict with char $ac_func (); below. | |
41314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41315 | <limits.h> exists even on freestanding compilers. */ | |
41316 | ||
41317 | #ifdef __STDC__ | |
41318 | # include <limits.h> | |
41319 | #else | |
41320 | # include <assert.h> | |
41321 | #endif | |
41322 | ||
41323 | #undef $ac_func | |
41324 | ||
41325 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41326 | #ifdef __cplusplus | |
41327 | extern "C" | |
41328 | { | |
41329 | #endif | |
41330 | /* We use char because int might match the return type of a gcc2 | |
41331 | builtin and then its argument prototype would still apply. */ | |
41332 | char $ac_func (); | |
41333 | /* The GNU C library defines this for functions which it implements | |
41334 | to always fail with ENOSYS. Some functions are actually named | |
41335 | something starting with __ and the normal name is an alias. */ | |
41336 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41337 | choke me | |
41338 | #else | |
41339 | char (*f) () = $ac_func; | |
41340 | #endif | |
41341 | #ifdef __cplusplus | |
41342 | } | |
41343 | #endif | |
41344 | ||
41345 | int | |
41346 | main () | |
41347 | { | |
41348 | return f != $ac_func; | |
a848cd7e SC |
41349 | ; |
41350 | return 0; | |
41351 | } | |
41352 | _ACEOF | |
41353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41355 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41356 | ac_status=$? |
ac1cb8d3 VS |
41357 | grep -v '^ *+' conftest.er1 >conftest.err |
41358 | rm -f conftest.er1 | |
41359 | cat conftest.err >&5 | |
a848cd7e SC |
41360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41361 | (exit $ac_status); } && | |
ca5c6ac3 | 41362 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41364 | (eval $ac_try) 2>&5 | |
41365 | ac_status=$? | |
41366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41367 | (exit $ac_status); }; } && | |
41368 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41370 | (eval $ac_try) 2>&5 | |
41371 | ac_status=$? | |
41372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41373 | (exit $ac_status); }; }; then | |
41374 | eval "$as_ac_var=yes" | |
41375 | else | |
41376 | echo "$as_me: failed program was:" >&5 | |
41377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41378 | ||
41379 | eval "$as_ac_var=no" | |
41380 | fi | |
ac1cb8d3 VS |
41381 | rm -f conftest.err conftest.$ac_objext \ |
41382 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41383 | fi |
41384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41385 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41386 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41387 | cat >>confdefs.h <<_ACEOF | |
41388 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41389 | _ACEOF | |
41390 | ||
41391 | cat >>confdefs.h <<\_ACEOF | |
41392 | #define HAVE_DLOPEN 1 | |
41393 | _ACEOF | |
41394 | ||
41395 | HAVE_DL_FUNCS=1 | |
41396 | ||
41397 | else | |
41398 | ||
41399 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
41400 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
41401 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
41402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41403 | else | |
41404 | ac_check_lib_save_LIBS=$LIBS | |
41405 | LIBS="-ldl $LIBS" | |
41406 | cat >conftest.$ac_ext <<_ACEOF | |
41407 | /* confdefs.h. */ | |
41408 | _ACEOF | |
41409 | cat confdefs.h >>conftest.$ac_ext | |
41410 | cat >>conftest.$ac_ext <<_ACEOF | |
41411 | /* end confdefs.h. */ | |
41412 | ||
41413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41414 | #ifdef __cplusplus | |
41415 | extern "C" | |
41416 | #endif | |
41417 | /* We use char because int might match the return type of a gcc2 | |
41418 | builtin and then its argument prototype would still apply. */ | |
41419 | char dlopen (); | |
41420 | int | |
41421 | main () | |
41422 | { | |
41423 | dlopen (); | |
41424 | ; | |
41425 | return 0; | |
41426 | } | |
41427 | _ACEOF | |
41428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41430 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41431 | ac_status=$? |
ac1cb8d3 VS |
41432 | grep -v '^ *+' conftest.er1 >conftest.err |
41433 | rm -f conftest.er1 | |
41434 | cat conftest.err >&5 | |
a848cd7e SC |
41435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41436 | (exit $ac_status); } && | |
ca5c6ac3 | 41437 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41439 | (eval $ac_try) 2>&5 | |
41440 | ac_status=$? | |
41441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41442 | (exit $ac_status); }; } && | |
41443 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41445 | (eval $ac_try) 2>&5 | |
41446 | ac_status=$? | |
41447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41448 | (exit $ac_status); }; }; then | |
41449 | ac_cv_lib_dl_dlopen=yes | |
41450 | else | |
41451 | echo "$as_me: failed program was:" >&5 | |
41452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41453 | ||
41454 | ac_cv_lib_dl_dlopen=no | |
41455 | fi | |
ac1cb8d3 VS |
41456 | rm -f conftest.err conftest.$ac_objext \ |
41457 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41458 | LIBS=$ac_check_lib_save_LIBS |
41459 | fi | |
41460 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
41461 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
41462 | if test $ac_cv_lib_dl_dlopen = yes; then | |
41463 | ||
41464 | cat >>confdefs.h <<\_ACEOF | |
41465 | #define HAVE_DLOPEN 1 | |
41466 | _ACEOF | |
41467 | ||
41468 | HAVE_DL_FUNCS=1 | |
41469 | DL_LINK=" -ldl$DL_LINK" | |
41470 | ||
41471 | else | |
41472 | ||
41473 | ||
41474 | for ac_func in shl_load | |
41475 | do | |
41476 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41477 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41478 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41479 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41481 | else | |
41482 | cat >conftest.$ac_ext <<_ACEOF | |
41483 | /* confdefs.h. */ | |
41484 | _ACEOF | |
41485 | cat confdefs.h >>conftest.$ac_ext | |
41486 | cat >>conftest.$ac_ext <<_ACEOF | |
41487 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41488 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41490 | #define $ac_func innocuous_$ac_func | |
41491 | ||
a848cd7e SC |
41492 | /* System header to define __stub macros and hopefully few prototypes, |
41493 | which can conflict with char $ac_func (); below. | |
41494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41495 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41496 | |
a848cd7e SC |
41497 | #ifdef __STDC__ |
41498 | # include <limits.h> | |
41499 | #else | |
41500 | # include <assert.h> | |
41501 | #endif | |
ac1cb8d3 VS |
41502 | |
41503 | #undef $ac_func | |
41504 | ||
a848cd7e SC |
41505 | /* Override any gcc2 internal prototype to avoid an error. */ |
41506 | #ifdef __cplusplus | |
41507 | extern "C" | |
41508 | { | |
41509 | #endif | |
41510 | /* We use char because int might match the return type of a gcc2 | |
41511 | builtin and then its argument prototype would still apply. */ | |
41512 | char $ac_func (); | |
41513 | /* The GNU C library defines this for functions which it implements | |
41514 | to always fail with ENOSYS. Some functions are actually named | |
41515 | something starting with __ and the normal name is an alias. */ | |
41516 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41517 | choke me | |
41518 | #else | |
41519 | char (*f) () = $ac_func; | |
41520 | #endif | |
41521 | #ifdef __cplusplus | |
41522 | } | |
41523 | #endif | |
41524 | ||
41525 | int | |
41526 | main () | |
41527 | { | |
41528 | return f != $ac_func; | |
41529 | ; | |
41530 | return 0; | |
41531 | } | |
41532 | _ACEOF | |
41533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41535 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41536 | ac_status=$? |
ac1cb8d3 VS |
41537 | grep -v '^ *+' conftest.er1 >conftest.err |
41538 | rm -f conftest.er1 | |
41539 | cat conftest.err >&5 | |
a848cd7e SC |
41540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41541 | (exit $ac_status); } && | |
ca5c6ac3 | 41542 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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_exeext' | |
a848cd7e SC |
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 | eval "$as_ac_var=yes" | |
41555 | else | |
41556 | echo "$as_me: failed program was:" >&5 | |
41557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41558 | ||
41559 | eval "$as_ac_var=no" | |
41560 | fi | |
ac1cb8d3 VS |
41561 | rm -f conftest.err conftest.$ac_objext \ |
41562 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41563 | fi |
41564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41565 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41566 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41567 | cat >>confdefs.h <<_ACEOF | |
41568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41569 | _ACEOF | |
41570 | ||
41571 | cat >>confdefs.h <<\_ACEOF | |
41572 | #define HAVE_SHL_LOAD 1 | |
41573 | _ACEOF | |
41574 | ||
41575 | HAVE_SHL_FUNCS=1 | |
41576 | ||
41577 | else | |
41578 | ||
41579 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
41580 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
41581 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
41582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41583 | else | |
41584 | ac_check_lib_save_LIBS=$LIBS | |
41585 | LIBS="-lshl_load $LIBS" | |
41586 | cat >conftest.$ac_ext <<_ACEOF | |
41587 | /* confdefs.h. */ | |
41588 | _ACEOF | |
41589 | cat confdefs.h >>conftest.$ac_ext | |
41590 | cat >>conftest.$ac_ext <<_ACEOF | |
41591 | /* end confdefs.h. */ | |
41592 | ||
41593 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41594 | #ifdef __cplusplus | |
41595 | extern "C" | |
41596 | #endif | |
41597 | /* We use char because int might match the return type of a gcc2 | |
41598 | builtin and then its argument prototype would still apply. */ | |
41599 | char dld (); | |
41600 | int | |
41601 | main () | |
41602 | { | |
41603 | dld (); | |
41604 | ; | |
41605 | return 0; | |
41606 | } | |
41607 | _ACEOF | |
41608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41610 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41611 | ac_status=$? |
ac1cb8d3 VS |
41612 | grep -v '^ *+' conftest.er1 >conftest.err |
41613 | rm -f conftest.er1 | |
41614 | cat conftest.err >&5 | |
a848cd7e SC |
41615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41616 | (exit $ac_status); } && | |
ca5c6ac3 | 41617 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
41623 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41625 | (eval $ac_try) 2>&5 | |
41626 | ac_status=$? | |
41627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41628 | (exit $ac_status); }; }; then | |
41629 | ac_cv_lib_shl_load_dld=yes | |
41630 | else | |
41631 | echo "$as_me: failed program was:" >&5 | |
41632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41633 | ||
41634 | ac_cv_lib_shl_load_dld=no | |
41635 | fi | |
ac1cb8d3 VS |
41636 | rm -f conftest.err conftest.$ac_objext \ |
41637 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41638 | LIBS=$ac_check_lib_save_LIBS |
41639 | fi | |
41640 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
41641 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
41642 | if test $ac_cv_lib_shl_load_dld = yes; then | |
41643 | ||
41644 | HAVE_SHL_FUNCS=1 | |
41645 | DL_LINK=" -ldld$DL_LINK" | |
41646 | ||
41647 | fi | |
41648 | ||
41649 | ||
41650 | fi | |
41651 | done | |
41652 | ||
41653 | ||
41654 | fi | |
41655 | ||
41656 | ||
41657 | fi | |
41658 | done | |
41659 | ||
41660 | ||
41661 | if test "$HAVE_DL_FUNCS" = 1; then | |
41662 | ||
41663 | for ac_func in dlerror | |
41664 | do | |
41665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41666 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41668 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41670 | else | |
41671 | cat >conftest.$ac_ext <<_ACEOF | |
41672 | /* confdefs.h. */ | |
41673 | _ACEOF | |
41674 | cat confdefs.h >>conftest.$ac_ext | |
41675 | cat >>conftest.$ac_ext <<_ACEOF | |
41676 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41677 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41679 | #define $ac_func innocuous_$ac_func | |
41680 | ||
a848cd7e SC |
41681 | /* System header to define __stub macros and hopefully few prototypes, |
41682 | which can conflict with char $ac_func (); below. | |
41683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41684 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41685 | |
a848cd7e SC |
41686 | #ifdef __STDC__ |
41687 | # include <limits.h> | |
41688 | #else | |
41689 | # include <assert.h> | |
41690 | #endif | |
ac1cb8d3 VS |
41691 | |
41692 | #undef $ac_func | |
41693 | ||
a848cd7e SC |
41694 | /* Override any gcc2 internal prototype to avoid an error. */ |
41695 | #ifdef __cplusplus | |
41696 | extern "C" | |
41697 | { | |
41698 | #endif | |
41699 | /* We use char because int might match the return type of a gcc2 | |
41700 | builtin and then its argument prototype would still apply. */ | |
41701 | char $ac_func (); | |
41702 | /* The GNU C library defines this for functions which it implements | |
41703 | to always fail with ENOSYS. Some functions are actually named | |
41704 | something starting with __ and the normal name is an alias. */ | |
41705 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41706 | choke me | |
41707 | #else | |
41708 | char (*f) () = $ac_func; | |
41709 | #endif | |
41710 | #ifdef __cplusplus | |
41711 | } | |
41712 | #endif | |
41713 | ||
41714 | int | |
41715 | main () | |
41716 | { | |
41717 | return f != $ac_func; | |
41718 | ; | |
41719 | return 0; | |
41720 | } | |
41721 | _ACEOF | |
41722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41724 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41725 | ac_status=$? |
ac1cb8d3 VS |
41726 | grep -v '^ *+' conftest.er1 >conftest.err |
41727 | rm -f conftest.er1 | |
41728 | cat conftest.err >&5 | |
a848cd7e SC |
41729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41730 | (exit $ac_status); } && | |
ca5c6ac3 | 41731 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41733 | (eval $ac_try) 2>&5 | |
41734 | ac_status=$? | |
41735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41736 | (exit $ac_status); }; } && | |
41737 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41739 | (eval $ac_try) 2>&5 | |
41740 | ac_status=$? | |
41741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41742 | (exit $ac_status); }; }; then | |
41743 | eval "$as_ac_var=yes" | |
41744 | else | |
41745 | echo "$as_me: failed program was:" >&5 | |
41746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41747 | ||
41748 | eval "$as_ac_var=no" | |
41749 | fi | |
ac1cb8d3 VS |
41750 | rm -f conftest.err conftest.$ac_objext \ |
41751 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41752 | fi |
41753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41754 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41755 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41756 | cat >>confdefs.h <<_ACEOF | |
41757 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41758 | _ACEOF | |
41759 | cat >>confdefs.h <<\_ACEOF | |
41760 | #define HAVE_DLERROR 1 | |
41761 | _ACEOF | |
41762 | ||
41763 | else | |
41764 | ||
41765 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
41766 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
41767 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
41768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41769 | else | |
41770 | ac_check_lib_save_LIBS=$LIBS | |
41771 | LIBS="-ldl $LIBS" | |
41772 | cat >conftest.$ac_ext <<_ACEOF | |
41773 | /* confdefs.h. */ | |
41774 | _ACEOF | |
41775 | cat confdefs.h >>conftest.$ac_ext | |
41776 | cat >>conftest.$ac_ext <<_ACEOF | |
41777 | /* end confdefs.h. */ | |
41778 | ||
41779 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41780 | #ifdef __cplusplus | |
41781 | extern "C" | |
41782 | #endif | |
41783 | /* We use char because int might match the return type of a gcc2 | |
41784 | builtin and then its argument prototype would still apply. */ | |
41785 | char dlerror (); | |
41786 | int | |
41787 | main () | |
41788 | { | |
41789 | dlerror (); | |
41790 | ; | |
41791 | return 0; | |
41792 | } | |
41793 | _ACEOF | |
41794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41796 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41797 | ac_status=$? |
ac1cb8d3 VS |
41798 | grep -v '^ *+' conftest.er1 >conftest.err |
41799 | rm -f conftest.er1 | |
41800 | cat conftest.err >&5 | |
a848cd7e SC |
41801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41802 | (exit $ac_status); } && | |
ca5c6ac3 | 41803 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41805 | (eval $ac_try) 2>&5 | |
41806 | ac_status=$? | |
41807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41808 | (exit $ac_status); }; } && | |
41809 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41811 | (eval $ac_try) 2>&5 | |
41812 | ac_status=$? | |
41813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41814 | (exit $ac_status); }; }; then | |
41815 | ac_cv_lib_dl_dlerror=yes | |
41816 | else | |
41817 | echo "$as_me: failed program was:" >&5 | |
41818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41819 | ||
41820 | ac_cv_lib_dl_dlerror=no | |
41821 | fi | |
ac1cb8d3 VS |
41822 | rm -f conftest.err conftest.$ac_objext \ |
41823 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41824 | LIBS=$ac_check_lib_save_LIBS |
41825 | fi | |
41826 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
41827 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
41828 | if test $ac_cv_lib_dl_dlerror = yes; then | |
41829 | cat >>confdefs.h <<\_ACEOF | |
41830 | #define HAVE_DLERROR 1 | |
41831 | _ACEOF | |
41832 | ||
41833 | fi | |
41834 | ||
41835 | ||
41836 | ||
41837 | fi | |
41838 | done | |
41839 | ||
41840 | fi | |
41841 | fi | |
41842 | ||
41843 | if test "$HAVE_DL_FUNCS" = 0; then | |
41844 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 41845 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
41846 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
41847 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
41848 | wxUSE_DYNAMIC_LOADER=no | |
41849 | wxUSE_DYNLIB_CLASS=no | |
41850 | else | |
41851 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
41852 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
41853 | fi | |
41854 | fi | |
41855 | fi | |
41856 | fi | |
41857 | fi | |
41858 | ||
41859 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
41860 | cat >>confdefs.h <<\_ACEOF | |
41861 | #define wxUSE_DYNAMIC_LOADER 1 | |
41862 | _ACEOF | |
41863 | ||
41864 | fi | |
41865 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
41866 | cat >>confdefs.h <<\_ACEOF | |
41867 | #define wxUSE_DYNLIB_CLASS 1 | |
41868 | _ACEOF | |
41869 | ||
41870 | fi | |
41871 | ||
41872 | ||
41873 | ||
41874 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
41875 | if test "$wxUSE_SHARED" = "no" ; then | |
41876 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
41877 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
41878 | wxUSE_PLUGINS=no | |
41879 | fi | |
41880 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
41881 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
41882 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
41883 | wxUSE_PLUGINS=no | |
41884 | fi | |
41885 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
41886 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
41887 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
41888 | wxUSE_PLUGINS=no | |
41889 | fi | |
41890 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
41891 | cat >>confdefs.h <<\_ACEOF | |
41892 | #define wxUSE_PLUGINS 1 | |
41893 | _ACEOF | |
41894 | ||
41895 | fi | |
41896 | fi | |
41897 | ||
41898 | ||
41899 | if test "$wxUSE_STL" = "yes"; then | |
41900 | cat >>confdefs.h <<\_ACEOF | |
41901 | #define wxUSE_STL 1 | |
41902 | _ACEOF | |
41903 | ||
41904 | fi | |
41905 | ||
41906 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
41907 | cat >>confdefs.h <<\_ACEOF | |
41908 | #define wxUSE_APPLE_IEEE 1 | |
41909 | _ACEOF | |
41910 | ||
41911 | fi | |
41912 | ||
41913 | if test "$wxUSE_TIMER" = "yes"; then | |
41914 | cat >>confdefs.h <<\_ACEOF | |
41915 | #define wxUSE_TIMER 1 | |
41916 | _ACEOF | |
41917 | ||
41918 | fi | |
41919 | ||
9c112555 | 41920 | if test "$USE_UNIX" = "1" ; then |
31714590 VZ |
41921 | echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5 |
41922 | echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6 | |
d12aef51 | 41923 | if test "${ac_cv_header_sys_soundcard+set}" = set; then |
a848cd7e | 41924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 41925 | else |
d12aef51 VZ |
41926 | |
41927 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
41928 | /* confdefs.h. */ |
41929 | _ACEOF | |
41930 | cat confdefs.h >>conftest.$ac_ext | |
41931 | cat >>conftest.$ac_ext <<_ACEOF | |
41932 | /* end confdefs.h. */ | |
d12aef51 | 41933 | |
31714590 | 41934 | #include <sys/ioctl.h> |
d12aef51 VZ |
41935 | #include <sys/soundcard.h> |
41936 | ||
41937 | int | |
41938 | main () | |
41939 | { | |
41940 | ||
31714590 | 41941 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
41942 | |
41943 | ; | |
41944 | return 0; | |
41945 | } | |
a848cd7e | 41946 | _ACEOF |
d12aef51 VZ |
41947 | rm -f conftest.$ac_objext conftest$ac_exeext |
41948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41949 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 41950 | ac_status=$? |
ac1cb8d3 VS |
41951 | grep -v '^ *+' conftest.er1 >conftest.err |
41952 | rm -f conftest.er1 | |
41953 | cat conftest.err >&5 | |
a848cd7e SC |
41954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41955 | (exit $ac_status); } && | |
ca5c6ac3 | 41956 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41958 | (eval $ac_try) 2>&5 | |
41959 | ac_status=$? | |
41960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41961 | (exit $ac_status); }; } && | |
d12aef51 | 41962 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
41963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41964 | (eval $ac_try) 2>&5 | |
41965 | ac_status=$? | |
41966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41967 | (exit $ac_status); }; }; then | |
d12aef51 | 41968 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
41969 | else |
41970 | echo "$as_me: failed program was:" >&5 | |
41971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41972 | ||
a848cd7e | 41973 | |
d12aef51 VZ |
41974 | saveLibs="$LIBS" |
41975 | LIBS="$saveLibs -lossaudio" | |
41976 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
41977 | /* confdefs.h. */ |
41978 | _ACEOF | |
41979 | cat confdefs.h >>conftest.$ac_ext | |
41980 | cat >>conftest.$ac_ext <<_ACEOF | |
41981 | /* end confdefs.h. */ | |
d12aef51 | 41982 | |
31714590 | 41983 | #include <sys/ioctl.h> |
d12aef51 VZ |
41984 | #include <sys/soundcard.h> |
41985 | ||
41986 | int | |
41987 | main () | |
41988 | { | |
41989 | ||
31714590 | 41990 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
41991 | |
41992 | ; | |
41993 | return 0; | |
41994 | } | |
a848cd7e | 41995 | _ACEOF |
d12aef51 VZ |
41996 | rm -f conftest.$ac_objext conftest$ac_exeext |
41997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41998 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
41999 | ac_status=$? |
42000 | grep -v '^ *+' conftest.er1 >conftest.err | |
42001 | rm -f conftest.er1 | |
42002 | cat conftest.err >&5 | |
42003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 42004 | (exit $ac_status); } && |
ca5c6ac3 | 42005 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
42006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42007 | (eval $ac_try) 2>&5 | |
42008 | ac_status=$? | |
42009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42010 | (exit $ac_status); }; } && | |
42011 | { ac_try='test -s conftest$ac_exeext' | |
42012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42013 | (eval $ac_try) 2>&5 | |
42014 | ac_status=$? | |
42015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42016 | (exit $ac_status); }; }; then | |
42017 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
42018 | else |
42019 | echo "$as_me: failed program was:" >&5 | |
42020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42021 | ||
a848cd7e | 42022 | |
d12aef51 VZ |
42023 | LIBS="$saveLibs" |
42024 | ac_cv_header_sys_soundcard=no | |
42025 | ||
42026 | ||
a848cd7e | 42027 | fi |
d12aef51 VZ |
42028 | rm -f conftest.err conftest.$ac_objext \ |
42029 | conftest$ac_exeext conftest.$ac_ext | |
42030 | ||
a848cd7e SC |
42031 | |
42032 | fi | |
d12aef51 VZ |
42033 | rm -f conftest.err conftest.$ac_objext \ |
42034 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42035 | |
42036 | fi | |
d12aef51 VZ |
42037 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
42038 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 42039 | |
d12aef51 VZ |
42040 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
42041 | cat >>confdefs.h <<\_ACEOF | |
42042 | #define HAVE_SYS_SOUNDCARD_H 1 | |
42043 | _ACEOF | |
a848cd7e | 42044 | |
d12aef51 VZ |
42045 | else |
42046 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
42047 | fi | |
9c112555 MW |
42048 | fi |
42049 | WITH_PLUGIN_SDL=0 | |
42050 | if test "$wxUSE_SOUND" = "yes"; then | |
42051 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
42052 | if test "$wxUSE_LIBSDL" != "no"; then |
42053 | ||
42054 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
42055 | if test "${with_sdl_prefix+set}" = set; then | |
42056 | withval="$with_sdl_prefix" | |
42057 | sdl_prefix="$withval" | |
42058 | else | |
42059 | sdl_prefix="" | |
42060 | fi; | |
42061 | ||
42062 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
42063 | if test "${with_sdl_exec_prefix+set}" = set; then | |
42064 | withval="$with_sdl_exec_prefix" | |
42065 | sdl_exec_prefix="$withval" | |
42066 | else | |
42067 | sdl_exec_prefix="" | |
42068 | fi; | |
42069 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
42070 | if test "${enable_sdltest+set}" = set; then | |
42071 | enableval="$enable_sdltest" | |
42072 | ||
42073 | else | |
42074 | enable_sdltest=yes | |
42075 | fi; | |
42076 | ||
42077 | if test x$sdl_exec_prefix != x ; then | |
3ecd9f92 MW |
42078 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
42079 | if test x${SDL_CONFIG+set} != xset ; then | |
42080 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
42081 | fi | |
a848cd7e SC |
42082 | fi |
42083 | if test x$sdl_prefix != x ; then | |
3ecd9f92 MW |
42084 | sdl_args="$sdl_args --prefix=$sdl_prefix" |
42085 | if test x${SDL_CONFIG+set} != xset ; then | |
42086 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
42087 | fi | |
a848cd7e SC |
42088 | fi |
42089 | ||
3ecd9f92 MW |
42090 | if test "x$prefix" != xNONE; then |
42091 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
42092 | fi | |
a848cd7e SC |
42093 | # Extract the first word of "sdl-config", so it can be a program name with args. |
42094 | set dummy sdl-config; ac_word=$2 | |
42095 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42097 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
42098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42099 | else | |
42100 | case $SDL_CONFIG in | |
42101 | [\\/]* | ?:[\\/]*) | |
42102 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
42103 | ;; | |
42104 | *) | |
42105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42106 | for as_dir in $PATH | |
42107 | do | |
42108 | IFS=$as_save_IFS | |
42109 | test -z "$as_dir" && as_dir=. | |
42110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42111 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42112 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
42113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42114 | break 2 | |
42115 | fi | |
42116 | done | |
42117 | done | |
42118 | ||
42119 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
42120 | ;; | |
42121 | esac | |
42122 | fi | |
42123 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
42124 | ||
42125 | if test -n "$SDL_CONFIG"; then | |
42126 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
42127 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
42128 | else | |
42129 | echo "$as_me:$LINENO: result: no" >&5 | |
42130 | echo "${ECHO_T}no" >&6 | |
42131 | fi | |
42132 | ||
42133 | min_sdl_version=1.2.0 | |
42134 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
42135 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
42136 | no_sdl="" | |
42137 | if test "$SDL_CONFIG" = "no" ; then | |
42138 | no_sdl=yes | |
42139 | else | |
42140 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
42141 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
42142 | ||
42143 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
42144 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42145 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
42146 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42147 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
42148 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42149 | if test "x$enable_sdltest" = "xyes" ; then | |
42150 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 42151 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
42152 | ac_save_LIBS="$LIBS" |
42153 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 42154 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
42155 | LIBS="$LIBS $SDL_LIBS" |
42156 | rm -f conf.sdltest | |
42157 | if test "$cross_compiling" = yes; then | |
42158 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
42159 | else | |
42160 | cat >conftest.$ac_ext <<_ACEOF | |
42161 | /* confdefs.h. */ | |
42162 | _ACEOF | |
42163 | cat confdefs.h >>conftest.$ac_ext | |
42164 | cat >>conftest.$ac_ext <<_ACEOF | |
42165 | /* end confdefs.h. */ | |
42166 | ||
42167 | #include <stdio.h> | |
42168 | #include <stdlib.h> | |
42169 | #include <string.h> | |
42170 | #include "SDL.h" | |
42171 | ||
42172 | char* | |
42173 | my_strdup (char *str) | |
42174 | { | |
42175 | char *new_str; | |
42176 | ||
42177 | if (str) | |
42178 | { | |
42179 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
42180 | strcpy (new_str, str); | |
42181 | } | |
42182 | else | |
42183 | new_str = NULL; | |
42184 | ||
42185 | return new_str; | |
42186 | } | |
42187 | ||
42188 | int main (int argc, char *argv[]) | |
42189 | { | |
42190 | int major, minor, micro; | |
42191 | char *tmp_version; | |
42192 | ||
42193 | /* This hangs on some systems (?) | |
42194 | system ("touch conf.sdltest"); | |
42195 | */ | |
42196 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
42197 | ||
42198 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
42199 | tmp_version = my_strdup("$min_sdl_version"); | |
42200 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
42201 | printf("%s, bad version string\n", "$min_sdl_version"); | |
42202 | exit(1); | |
42203 | } | |
42204 | ||
42205 | if (($sdl_major_version > major) || | |
42206 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
42207 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
42208 | { | |
42209 | return 0; | |
42210 | } | |
42211 | else | |
42212 | { | |
42213 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
42214 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
42215 | printf("*** best to upgrade to the required version.\n"); | |
42216 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
42217 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
42218 | printf("*** config.cache before re-running configure\n"); | |
42219 | return 1; | |
42220 | } | |
42221 | } | |
42222 | ||
42223 | ||
42224 | _ACEOF | |
42225 | rm -f conftest$ac_exeext | |
42226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
42227 | (eval $ac_link) 2>&5 | |
42228 | ac_status=$? | |
42229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42230 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
42231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42232 | (eval $ac_try) 2>&5 | |
42233 | ac_status=$? | |
42234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42235 | (exit $ac_status); }; }; then | |
42236 | : | |
42237 | else | |
42238 | echo "$as_me: program exited with status $ac_status" >&5 | |
42239 | echo "$as_me: failed program was:" >&5 | |
42240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42241 | ||
42242 | ( exit $ac_status ) | |
42243 | no_sdl=yes | |
42244 | fi | |
ac1cb8d3 | 42245 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42246 | fi |
42247 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 42248 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
42249 | LIBS="$ac_save_LIBS" |
42250 | fi | |
42251 | fi | |
42252 | if test "x$no_sdl" = x ; then | |
42253 | echo "$as_me:$LINENO: result: yes" >&5 | |
42254 | echo "${ECHO_T}yes" >&6 | |
42255 | ||
42256 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 42257 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
42258 | cat >>confdefs.h <<\_ACEOF |
42259 | #define wxUSE_LIBSDL 1 | |
42260 | _ACEOF | |
42261 | ||
42262 | ||
42263 | else | |
42264 | echo "$as_me:$LINENO: result: no" >&5 | |
42265 | echo "${ECHO_T}no" >&6 | |
42266 | if test "$SDL_CONFIG" = "no" ; then | |
42267 | echo "*** The sdl-config script installed by SDL could not be found" | |
42268 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
42269 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
42270 | echo "*** full path to sdl-config." | |
42271 | else | |
42272 | if test -f conf.sdltest ; then | |
42273 | : | |
42274 | else | |
42275 | echo "*** Could not run SDL test program, checking why..." | |
42276 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 42277 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
42278 | LIBS="$LIBS $SDL_LIBS" |
42279 | cat >conftest.$ac_ext <<_ACEOF | |
42280 | /* confdefs.h. */ | |
42281 | _ACEOF | |
42282 | cat confdefs.h >>conftest.$ac_ext | |
42283 | cat >>conftest.$ac_ext <<_ACEOF | |
42284 | /* end confdefs.h. */ | |
42285 | ||
42286 | #include <stdio.h> | |
42287 | #include "SDL.h" | |
42288 | ||
42289 | int main(int argc, char *argv[]) | |
42290 | { return 0; } | |
42291 | #undef main | |
42292 | #define main K_and_R_C_main | |
42293 | ||
42294 | int | |
42295 | main () | |
42296 | { | |
42297 | return 0; | |
42298 | ; | |
42299 | return 0; | |
42300 | } | |
42301 | _ACEOF | |
42302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42304 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42305 | ac_status=$? |
ac1cb8d3 VS |
42306 | grep -v '^ *+' conftest.er1 >conftest.err |
42307 | rm -f conftest.er1 | |
42308 | cat conftest.err >&5 | |
a848cd7e SC |
42309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42310 | (exit $ac_status); } && | |
ca5c6ac3 | 42311 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
42317 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42319 | (eval $ac_try) 2>&5 | |
42320 | ac_status=$? | |
42321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42322 | (exit $ac_status); }; }; then | |
42323 | echo "*** The test program compiled, but did not run. This usually means" | |
42324 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
42325 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
42326 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
42327 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
42328 | echo "*** is required on your system" | |
42329 | echo "***" | |
42330 | echo "*** If you have an old version installed, it is best to remove it, although" | |
42331 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
42332 | else | |
42333 | echo "$as_me: failed program was:" >&5 | |
42334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42335 | ||
42336 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
42337 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
42338 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
42339 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
42340 | fi | |
ac1cb8d3 VS |
42341 | rm -f conftest.err conftest.$ac_objext \ |
42342 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 42343 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 42344 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
42345 | LIBS="$ac_save_LIBS" |
42346 | fi | |
42347 | fi | |
42348 | SDL_CFLAGS="" | |
42349 | SDL_LIBS="" | |
42350 | wxUSE_LIBSDL="no" | |
42351 | fi | |
42352 | ||
42353 | ||
42354 | rm -f conf.sdltest | |
42355 | ||
42356 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
42357 | WITH_PLUGIN_SDL=1 | |
42358 | fi | |
42359 | fi | |
42360 | fi | |
42361 | ||
42362 | cat >>confdefs.h <<\_ACEOF | |
42363 | #define wxUSE_SOUND 1 | |
42364 | _ACEOF | |
42365 | ||
42366 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
42367 | fi | |
42368 | ||
d1c38808 VZ |
42369 | if test "$WXGTK20" = 1; then |
42370 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
42371 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
42372 | ||
42373 | ||
3ecd9f92 MW |
42374 | pkg_failed=no |
42375 | echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5 | |
42376 | echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6 | |
d1c38808 | 42377 | |
3ecd9f92 MW |
42378 | if test -n "$PKG_CONFIG"; then |
42379 | if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then | |
42380 | pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS" | |
42381 | else | |
42382 | if test -n "$PKG_CONFIG" && \ | |
42383 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5 | |
42384 | ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5 | |
42385 | ac_status=$? | |
42386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42387 | (exit $ac_status); }; then | |
42388 | pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null` | |
d1c38808 | 42389 | else |
3ecd9f92 MW |
42390 | pkg_failed=yes |
42391 | fi | |
42392 | fi | |
42393 | else | |
42394 | pkg_failed=untried | |
d1c38808 | 42395 | fi |
d1c38808 | 42396 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
42397 | if test -n "$LIBGNOMEPRINTUI_LIBS"; then |
42398 | pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS" | |
42399 | else | |
42400 | if test -n "$PKG_CONFIG" && \ | |
42401 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5 | |
42402 | ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5 | |
42403 | ac_status=$? | |
42404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42405 | (exit $ac_status); }; then | |
42406 | pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null` | |
d1c38808 | 42407 | else |
3ecd9f92 MW |
42408 | pkg_failed=yes |
42409 | fi | |
42410 | fi | |
42411 | else | |
42412 | pkg_failed=untried | |
d1c38808 VZ |
42413 | fi |
42414 | ||
d1c38808 | 42415 | |
d1c38808 | 42416 | |
3ecd9f92 | 42417 | if test $pkg_failed = yes; then |
d1c38808 | 42418 | |
3ecd9f92 MW |
42419 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
42420 | _pkg_short_errors_supported=yes | |
42421 | else | |
42422 | _pkg_short_errors_supported=no | |
42423 | fi | |
42424 | if test $_pkg_short_errors_supported = yes; then | |
42425 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` | |
42426 | else | |
42427 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` | |
d1c38808 | 42428 | fi |
3ecd9f92 MW |
42429 | # Put the nasty error message in config.log where it belongs |
42430 | echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5 | |
d1c38808 VZ |
42431 | |
42432 | ||
3ecd9f92 MW |
42433 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 |
42434 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
42435 | wxUSE_LIBGNOMEPRINT="no" | |
d1c38808 VZ |
42436 | |
42437 | ||
3ecd9f92 | 42438 | elif test $pkg_failed = untried; then |
d1c38808 VZ |
42439 | |
42440 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
42441 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
42442 | wxUSE_LIBGNOMEPRINT="no" | |
42443 | ||
42444 | ||
3ecd9f92 MW |
42445 | else |
42446 | LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS | |
42447 | LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS | |
42448 | echo "$as_me:$LINENO: result: yes" >&5 | |
42449 | echo "${ECHO_T}yes" >&6 | |
d1c38808 | 42450 | |
3ecd9f92 MW |
42451 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
42452 | cat >>confdefs.h <<\_ACEOF | |
42453 | #define wxUSE_LIBGNOMEPRINT 1 | |
42454 | _ACEOF | |
42455 | ||
42456 | ||
42457 | fi | |
d1c38808 VZ |
42458 | fi |
42459 | fi | |
42460 | fi | |
42461 | ||
2b850ae1 RR |
42462 | if test "$WXGTK20" = 1; then |
42463 | if test "$wxUSE_MIMETYPE" = "yes" ; then | |
42464 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
42465 | ||
42466 | ||
3ecd9f92 MW |
42467 | pkg_failed=no |
42468 | echo "$as_me:$LINENO: checking for GNOMEVFS" >&5 | |
42469 | echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6 | |
2b850ae1 | 42470 | |
3ecd9f92 MW |
42471 | if test -n "$PKG_CONFIG"; then |
42472 | if test -n "$GNOMEVFS_CFLAGS"; then | |
42473 | pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS" | |
42474 | else | |
42475 | if test -n "$PKG_CONFIG" && \ | |
42476 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5 | |
42477 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5 | |
42478 | ac_status=$? | |
42479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42480 | (exit $ac_status); }; then | |
42481 | pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null` | |
2b850ae1 | 42482 | else |
3ecd9f92 MW |
42483 | pkg_failed=yes |
42484 | fi | |
42485 | fi | |
42486 | else | |
42487 | pkg_failed=untried | |
2b850ae1 | 42488 | fi |
2b850ae1 | 42489 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
42490 | if test -n "$GNOMEVFS_LIBS"; then |
42491 | pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS" | |
42492 | else | |
42493 | if test -n "$PKG_CONFIG" && \ | |
42494 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5 | |
42495 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5 | |
42496 | ac_status=$? | |
42497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42498 | (exit $ac_status); }; then | |
42499 | pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null` | |
2b850ae1 | 42500 | else |
3ecd9f92 MW |
42501 | pkg_failed=yes |
42502 | fi | |
42503 | fi | |
42504 | else | |
42505 | pkg_failed=untried | |
2b850ae1 RR |
42506 | fi |
42507 | ||
2b850ae1 | 42508 | |
2b850ae1 | 42509 | |
3ecd9f92 | 42510 | if test $pkg_failed = yes; then |
2b850ae1 | 42511 | |
3ecd9f92 MW |
42512 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
42513 | _pkg_short_errors_supported=yes | |
42514 | else | |
42515 | _pkg_short_errors_supported=no | |
42516 | fi | |
42517 | if test $_pkg_short_errors_supported = yes; then | |
42518 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
42519 | else | |
42520 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
2b850ae1 | 42521 | fi |
3ecd9f92 MW |
42522 | # Put the nasty error message in config.log where it belongs |
42523 | echo "$GNOMEVFS_PKG_ERRORS" >&5 | |
2b850ae1 RR |
42524 | |
42525 | ||
3ecd9f92 MW |
42526 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 |
42527 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
42528 | wxUSE_LIBGNOMEVFS="no" | |
2b850ae1 RR |
42529 | |
42530 | ||
3ecd9f92 | 42531 | elif test $pkg_failed = untried; then |
2b850ae1 RR |
42532 | |
42533 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 | |
42534 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
42535 | wxUSE_LIBGNOMEVFS="no" | |
42536 | ||
42537 | ||
3ecd9f92 MW |
42538 | else |
42539 | GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS | |
42540 | GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS | |
42541 | echo "$as_me:$LINENO: result: yes" >&5 | |
42542 | echo "${ECHO_T}yes" >&6 | |
2b850ae1 | 42543 | |
3ecd9f92 MW |
42544 | CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS" |
42545 | cat >>confdefs.h <<\_ACEOF | |
42546 | #define wxUSE_LIBGNOMEVFS 1 | |
42547 | _ACEOF | |
42548 | ||
42549 | ||
42550 | fi | |
2b850ae1 RR |
42551 | fi |
42552 | fi | |
42553 | fi | |
42554 | ||
3565d135 RR |
42555 | if test "$WXGTK20" = 1; then |
42556 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
42557 | ||
3ecd9f92 MW |
42558 | pkg_failed=no |
42559 | echo "$as_me:$LINENO: checking for HILDON" >&5 | |
42560 | echo $ECHO_N "checking for HILDON... $ECHO_C" >&6 | |
3565d135 | 42561 | |
3ecd9f92 MW |
42562 | if test -n "$PKG_CONFIG"; then |
42563 | if test -n "$HILDON_CFLAGS"; then | |
42564 | pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS" | |
42565 | else | |
42566 | if test -n "$PKG_CONFIG" && \ | |
42567 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5 | |
42568 | ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5 | |
42569 | ac_status=$? | |
42570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42571 | (exit $ac_status); }; then | |
42572 | pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null` | |
3565d135 | 42573 | else |
3ecd9f92 MW |
42574 | pkg_failed=yes |
42575 | fi | |
42576 | fi | |
42577 | else | |
42578 | pkg_failed=untried | |
3565d135 | 42579 | fi |
3565d135 | 42580 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
42581 | if test -n "$HILDON_LIBS"; then |
42582 | pkg_cv_HILDON_LIBS="$HILDON_LIBS" | |
42583 | else | |
42584 | if test -n "$PKG_CONFIG" && \ | |
42585 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5 | |
42586 | ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5 | |
42587 | ac_status=$? | |
42588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42589 | (exit $ac_status); }; then | |
42590 | pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null` | |
3565d135 | 42591 | else |
3ecd9f92 MW |
42592 | pkg_failed=yes |
42593 | fi | |
42594 | fi | |
42595 | else | |
42596 | pkg_failed=untried | |
3565d135 RR |
42597 | fi |
42598 | ||
3565d135 | 42599 | |
3565d135 | 42600 | |
3ecd9f92 | 42601 | if test $pkg_failed = yes; then |
3565d135 | 42602 | |
3ecd9f92 MW |
42603 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
42604 | _pkg_short_errors_supported=yes | |
42605 | else | |
42606 | _pkg_short_errors_supported=no | |
42607 | fi | |
42608 | if test $_pkg_short_errors_supported = yes; then | |
42609 | HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
42610 | else | |
42611 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
3565d135 | 42612 | fi |
3ecd9f92 MW |
42613 | # Put the nasty error message in config.log where it belongs |
42614 | echo "$HILDON_PKG_ERRORS" >&5 | |
3565d135 RR |
42615 | |
42616 | ||
3ecd9f92 MW |
42617 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 |
42618 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
42619 | wxUSE_LIBHILDON="no" | |
3565d135 | 42620 | |
3565d135 | 42621 | |
3ecd9f92 MW |
42622 | elif test $pkg_failed = untried; then |
42623 | ||
42624 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
42625 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
42626 | wxUSE_LIBHILDON="no" | |
42627 | ||
42628 | ||
42629 | else | |
42630 | HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS | |
42631 | HILDON_LIBS=$pkg_cv_HILDON_LIBS | |
42632 | echo "$as_me:$LINENO: result: yes" >&5 | |
42633 | echo "${ECHO_T}yes" >&6 | |
3565d135 RR |
42634 | |
42635 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
42636 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
42637 | cat >>confdefs.h <<\_ACEOF | |
42638 | #define wxUSE_LIBHILDON 1 | |
42639 | _ACEOF | |
42640 | ||
42641 | ||
3ecd9f92 | 42642 | fi |
3565d135 RR |
42643 | fi |
42644 | fi | |
d1c38808 | 42645 | |
a848cd7e SC |
42646 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
42647 | cat >>confdefs.h <<\_ACEOF | |
42648 | #define wxUSE_CMDLINE_PARSER 1 | |
42649 | _ACEOF | |
42650 | ||
42651 | fi | |
42652 | ||
42653 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
42654 | cat >>confdefs.h <<\_ACEOF | |
42655 | #define wxUSE_STOPWATCH 1 | |
42656 | _ACEOF | |
42657 | ||
42658 | fi | |
42659 | ||
42660 | if test "$wxUSE_DATETIME" = "yes"; then | |
42661 | cat >>confdefs.h <<\_ACEOF | |
42662 | #define wxUSE_DATETIME 1 | |
42663 | _ACEOF | |
42664 | ||
42665 | fi | |
42666 | ||
42667 | if test "$wxUSE_FILE" = "yes"; then | |
42668 | cat >>confdefs.h <<\_ACEOF | |
42669 | #define wxUSE_FILE 1 | |
42670 | _ACEOF | |
42671 | ||
42672 | fi | |
42673 | ||
42674 | if test "$wxUSE_FFILE" = "yes"; then | |
42675 | cat >>confdefs.h <<\_ACEOF | |
42676 | #define wxUSE_FFILE 1 | |
42677 | _ACEOF | |
42678 | ||
42679 | fi | |
42680 | ||
42681 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
42682 | cat >>confdefs.h <<\_ACEOF | |
42683 | #define wxUSE_FILESYSTEM 1 | |
42684 | _ACEOF | |
42685 | ||
42686 | fi | |
42687 | ||
42688 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
42689 | cat >>confdefs.h <<\_ACEOF | |
42690 | #define wxUSE_FS_ZIP 1 | |
42691 | _ACEOF | |
42692 | ||
42693 | fi | |
42694 | ||
9e8e867f | 42695 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 42696 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 42697 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
42698 | _ACEOF |
42699 | ||
42700 | fi | |
42701 | ||
42702 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 42703 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
42704 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
42705 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
42706 | elif test "$wxUSE_ZLIB" = "no"; then | |
42707 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
42708 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
42709 | else | |
42710 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42711 | #define wxUSE_ZIPSTREAM 1 |
42712 | _ACEOF | |
42713 | ||
81f90336 | 42714 | fi |
a848cd7e SC |
42715 | fi |
42716 | ||
a848cd7e | 42717 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
42718 | if test "$USE_UNIX" != 1; then |
42719 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
42720 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
42721 | wxUSE_ON_FATAL_EXCEPTION=no | |
42722 | else | |
42723 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42724 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
42725 | _ACEOF | |
42726 | ||
18228ab4 | 42727 | fi |
a848cd7e SC |
42728 | fi |
42729 | ||
eaff0f0d VZ |
42730 | if test "$wxUSE_STACKWALKER" = "yes"; then |
42731 | cat >>confdefs.h <<\_ACEOF | |
42732 | #define wxUSE_STACKWALKER 1 | |
42733 | _ACEOF | |
42734 | ||
42735 | fi | |
42736 | ||
36b6448c | 42737 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
42738 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
42739 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
42740 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
42741 | wxUSE_DEBUGREPORT=no |
42742 | else | |
42743 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
42744 | #define wxUSE_DEBUGREPORT 1 |
42745 | _ACEOF | |
42746 | ||
21dfc162 MW |
42747 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
42748 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
42749 | fi | |
dfe0c803 | 42750 | fi |
36b6448c VZ |
42751 | fi |
42752 | ||
a848cd7e SC |
42753 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
42754 | cat >>confdefs.h <<\_ACEOF | |
42755 | #define wxUSE_SNGLINST_CHECKER 1 | |
42756 | _ACEOF | |
42757 | ||
42758 | fi | |
42759 | ||
42760 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
42761 | cat >>confdefs.h <<\_ACEOF | |
42762 | #define wxUSE_BUSYINFO 1 | |
42763 | _ACEOF | |
42764 | ||
42765 | fi | |
42766 | ||
42767 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
42768 | cat >>confdefs.h <<\_ACEOF | |
42769 | #define wxUSE_STD_IOSTREAM 1 | |
42770 | _ACEOF | |
42771 | ||
42772 | fi | |
42773 | ||
59746b65 MW |
42774 | if test "$wxUSE_STD_STRING" = "yes"; then |
42775 | cat >>confdefs.h <<\_ACEOF | |
42776 | #define wxUSE_STD_STRING 1 | |
42777 | _ACEOF | |
42778 | ||
42779 | fi | |
42780 | ||
07158944 VZ |
42781 | if test "$wxUSE_STDPATHS" = "yes"; then |
42782 | cat >>confdefs.h <<\_ACEOF | |
42783 | #define wxUSE_STDPATHS 1 | |
42784 | _ACEOF | |
42785 | ||
42786 | fi | |
42787 | ||
a848cd7e SC |
42788 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
42789 | cat >>confdefs.h <<\_ACEOF | |
42790 | #define wxUSE_TEXTBUFFER 1 | |
42791 | _ACEOF | |
42792 | ||
42793 | fi | |
42794 | ||
42795 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
42796 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
42797 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
42798 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
42799 | else | |
42800 | cat >>confdefs.h <<\_ACEOF | |
42801 | #define wxUSE_TEXTFILE 1 | |
42802 | _ACEOF | |
42803 | ||
42804 | fi | |
42805 | fi | |
42806 | ||
42807 | if test "$wxUSE_CONFIG" = "yes" ; then | |
42808 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
42809 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
42810 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
42811 | else | |
42812 | cat >>confdefs.h <<\_ACEOF | |
42813 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
42814 | _ACEOF |
42815 | ||
42816 | cat >>confdefs.h <<\_ACEOF | |
42817 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
42818 | _ACEOF |
42819 | ||
42820 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
42821 | fi | |
42822 | fi | |
42823 | ||
42824 | if test "$wxUSE_INTL" = "yes" ; then | |
42825 | if test "$wxUSE_FILE" != "yes"; then | |
42826 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
42827 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
42828 | else | |
42829 | cat >>confdefs.h <<\_ACEOF | |
42830 | #define wxUSE_INTL 1 | |
42831 | _ACEOF | |
42832 | ||
42833 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
42834 | GUIDIST="$GUIDIST INTL_DIST" | |
42835 | fi | |
42836 | fi | |
42837 | ||
42838 | if test "$wxUSE_LOG" = "yes"; then | |
42839 | cat >>confdefs.h <<\_ACEOF | |
42840 | #define wxUSE_LOG 1 | |
42841 | _ACEOF | |
42842 | ||
42843 | ||
42844 | if test "$wxUSE_LOGGUI" = "yes"; then | |
42845 | cat >>confdefs.h <<\_ACEOF | |
42846 | #define wxUSE_LOGGUI 1 | |
42847 | _ACEOF | |
42848 | ||
42849 | fi | |
42850 | ||
42851 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
42852 | cat >>confdefs.h <<\_ACEOF | |
42853 | #define wxUSE_LOGWINDOW 1 | |
42854 | _ACEOF | |
42855 | ||
42856 | fi | |
42857 | ||
42858 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
42859 | cat >>confdefs.h <<\_ACEOF | |
42860 | #define wxUSE_LOG_DIALOG 1 | |
42861 | _ACEOF | |
42862 | ||
42863 | fi | |
0b78747f MW |
42864 | |
42865 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
42866 | fi |
42867 | ||
42868 | if test "$wxUSE_LONGLONG" = "yes"; then | |
42869 | cat >>confdefs.h <<\_ACEOF | |
42870 | #define wxUSE_LONGLONG 1 | |
42871 | _ACEOF | |
42872 | ||
42873 | fi | |
42874 | ||
42875 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
42876 | cat >>confdefs.h <<\_ACEOF | |
42877 | #define wxUSE_GEOMETRY 1 | |
42878 | _ACEOF | |
42879 | ||
42880 | fi | |
42881 | ||
a848cd7e SC |
42882 | if test "$wxUSE_STREAMS" = "yes" ; then |
42883 | cat >>confdefs.h <<\_ACEOF | |
42884 | #define wxUSE_STREAMS 1 | |
42885 | _ACEOF | |
42886 | ||
42887 | fi | |
42888 | ||
8b6682b9 JS |
42889 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then |
42890 | cat >>confdefs.h <<\_ACEOF | |
42891 | #define wxUSE_PRINTF_POS_PARAMS 1 | |
42892 | _ACEOF | |
42893 | ||
42894 | fi | |
42895 | ||
42896 | ||
a848cd7e SC |
42897 | |
42898 | if test "$wxUSE_DATETIME" = "yes"; then | |
42899 | ||
42900 | for ac_func in strptime | |
42901 | do | |
42902 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42903 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42904 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42905 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42907 | else | |
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. */ | |
ac1cb8d3 VS |
42914 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42916 | #define $ac_func innocuous_$ac_func | |
42917 | ||
a848cd7e SC |
42918 | /* System header to define __stub macros and hopefully few prototypes, |
42919 | which can conflict with char $ac_func (); below. | |
42920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42921 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42922 | |
a848cd7e SC |
42923 | #ifdef __STDC__ |
42924 | # include <limits.h> | |
42925 | #else | |
42926 | # include <assert.h> | |
42927 | #endif | |
ac1cb8d3 VS |
42928 | |
42929 | #undef $ac_func | |
42930 | ||
a848cd7e SC |
42931 | /* Override any gcc2 internal prototype to avoid an error. */ |
42932 | #ifdef __cplusplus | |
42933 | extern "C" | |
42934 | { | |
42935 | #endif | |
42936 | /* We use char because int might match the return type of a gcc2 | |
42937 | builtin and then its argument prototype would still apply. */ | |
42938 | char $ac_func (); | |
42939 | /* The GNU C library defines this for functions which it implements | |
42940 | to always fail with ENOSYS. Some functions are actually named | |
42941 | something starting with __ and the normal name is an alias. */ | |
42942 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42943 | choke me | |
42944 | #else | |
42945 | char (*f) () = $ac_func; | |
42946 | #endif | |
42947 | #ifdef __cplusplus | |
42948 | } | |
42949 | #endif | |
42950 | ||
42951 | int | |
42952 | main () | |
42953 | { | |
42954 | return f != $ac_func; | |
42955 | ; | |
42956 | return 0; | |
42957 | } | |
42958 | _ACEOF | |
42959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42961 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42962 | ac_status=$? |
ac1cb8d3 VS |
42963 | grep -v '^ *+' conftest.er1 >conftest.err |
42964 | rm -f conftest.er1 | |
42965 | cat conftest.err >&5 | |
a848cd7e SC |
42966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42967 | (exit $ac_status); } && | |
ca5c6ac3 | 42968 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42970 | (eval $ac_try) 2>&5 | |
42971 | ac_status=$? | |
42972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42973 | (exit $ac_status); }; } && | |
42974 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42976 | (eval $ac_try) 2>&5 | |
42977 | ac_status=$? | |
42978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42979 | (exit $ac_status); }; }; then | |
42980 | eval "$as_ac_var=yes" | |
42981 | else | |
42982 | echo "$as_me: failed program was:" >&5 | |
42983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42984 | ||
42985 | eval "$as_ac_var=no" | |
42986 | fi | |
ac1cb8d3 VS |
42987 | rm -f conftest.err conftest.$ac_objext \ |
42988 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42989 | fi |
42990 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42991 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42992 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42993 | cat >>confdefs.h <<_ACEOF | |
42994 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42995 | _ACEOF | |
42996 | ||
42997 | fi | |
42998 | done | |
42999 | ||
f536f005 VZ |
43000 | if test "$ac_cv_func_strptime" = "yes"; then |
43001 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
43002 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
43003 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
43004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43005 | else | |
43006 | ||
f536f005 VZ |
43007 | cat >conftest.$ac_ext <<_ACEOF |
43008 | /* confdefs.h. */ | |
43009 | _ACEOF | |
43010 | cat confdefs.h >>conftest.$ac_ext | |
43011 | cat >>conftest.$ac_ext <<_ACEOF | |
43012 | /* end confdefs.h. */ | |
43013 | ||
43014 | #include <time.h> | |
43015 | ||
43016 | int | |
43017 | main () | |
43018 | { | |
43019 | ||
43020 | struct tm t; | |
43021 | strptime("foo", "bar", &t); | |
43022 | ||
43023 | ; | |
43024 | return 0; | |
43025 | } | |
43026 | _ACEOF | |
43027 | rm -f conftest.$ac_objext | |
43028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43029 | (eval $ac_compile) 2>conftest.er1 | |
43030 | ac_status=$? | |
43031 | grep -v '^ *+' conftest.er1 >conftest.err | |
43032 | rm -f conftest.er1 | |
43033 | cat conftest.err >&5 | |
43034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43035 | (exit $ac_status); } && | |
ca5c6ac3 | 43036 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f536f005 VZ |
43037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43038 | (eval $ac_try) 2>&5 | |
43039 | ac_status=$? | |
43040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43041 | (exit $ac_status); }; } && | |
43042 | { ac_try='test -s conftest.$ac_objext' | |
43043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43044 | (eval $ac_try) 2>&5 | |
43045 | ac_status=$? | |
43046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43047 | (exit $ac_status); }; }; then | |
43048 | wx_cv_func_strptime_decl=yes | |
43049 | else | |
43050 | echo "$as_me: failed program was:" >&5 | |
43051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43052 | ||
43053 | wx_cv_func_strptime_decl=no | |
43054 | ||
43055 | fi | |
43056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f536f005 VZ |
43057 | |
43058 | ||
43059 | fi | |
43060 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
43061 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
43062 | fi | |
43063 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
43064 | cat >>confdefs.h <<\_ACEOF | |
43065 | #define HAVE_STRPTIME_DECL 1 | |
43066 | _ACEOF | |
43067 | ||
43068 | fi | |
a848cd7e SC |
43069 | |
43070 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
43071 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
43072 | if test "${wx_cv_var_timezone+set}" = set; then | |
43073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43074 | else | |
43075 | ||
43076 | cat >conftest.$ac_ext <<_ACEOF | |
43077 | /* confdefs.h. */ | |
43078 | _ACEOF | |
43079 | cat confdefs.h >>conftest.$ac_ext | |
43080 | cat >>conftest.$ac_ext <<_ACEOF | |
43081 | /* end confdefs.h. */ | |
43082 | ||
43083 | #include <time.h> | |
43084 | ||
43085 | int | |
43086 | main () | |
43087 | { | |
43088 | ||
43089 | int tz; | |
43090 | tz = timezone; | |
43091 | ||
43092 | ; | |
43093 | return 0; | |
43094 | } | |
43095 | _ACEOF | |
43096 | rm -f conftest.$ac_objext | |
43097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43098 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43099 | ac_status=$? |
ac1cb8d3 VS |
43100 | grep -v '^ *+' conftest.er1 >conftest.err |
43101 | rm -f conftest.er1 | |
43102 | cat conftest.err >&5 | |
a848cd7e SC |
43103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43104 | (exit $ac_status); } && | |
ca5c6ac3 | 43105 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43107 | (eval $ac_try) 2>&5 | |
43108 | ac_status=$? | |
43109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43110 | (exit $ac_status); }; } && | |
43111 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43113 | (eval $ac_try) 2>&5 | |
43114 | ac_status=$? | |
43115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43116 | (exit $ac_status); }; }; then | |
43117 | ||
43118 | wx_cv_var_timezone=timezone | |
43119 | ||
43120 | else | |
43121 | echo "$as_me: failed program was:" >&5 | |
43122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43123 | ||
43124 | ||
43125 | cat >conftest.$ac_ext <<_ACEOF | |
43126 | /* confdefs.h. */ | |
43127 | _ACEOF | |
43128 | cat confdefs.h >>conftest.$ac_ext | |
43129 | cat >>conftest.$ac_ext <<_ACEOF | |
43130 | /* end confdefs.h. */ | |
43131 | ||
43132 | #include <time.h> | |
43133 | ||
43134 | int | |
43135 | main () | |
43136 | { | |
43137 | ||
43138 | int tz; | |
43139 | tz = _timezone; | |
43140 | ||
43141 | ; | |
43142 | return 0; | |
43143 | } | |
43144 | _ACEOF | |
43145 | rm -f conftest.$ac_objext | |
43146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43147 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43148 | ac_status=$? |
ac1cb8d3 VS |
43149 | grep -v '^ *+' conftest.er1 >conftest.err |
43150 | rm -f conftest.er1 | |
43151 | cat conftest.err >&5 | |
a848cd7e SC |
43152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43153 | (exit $ac_status); } && | |
ca5c6ac3 | 43154 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43156 | (eval $ac_try) 2>&5 | |
43157 | ac_status=$? | |
43158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43159 | (exit $ac_status); }; } && | |
43160 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43162 | (eval $ac_try) 2>&5 | |
43163 | ac_status=$? | |
43164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43165 | (exit $ac_status); }; }; then | |
43166 | ||
43167 | wx_cv_var_timezone=_timezone | |
43168 | ||
43169 | else | |
43170 | echo "$as_me: failed program was:" >&5 | |
43171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43172 | ||
43173 | ||
43174 | cat >conftest.$ac_ext <<_ACEOF | |
43175 | /* confdefs.h. */ | |
43176 | _ACEOF | |
43177 | cat confdefs.h >>conftest.$ac_ext | |
43178 | cat >>conftest.$ac_ext <<_ACEOF | |
43179 | /* end confdefs.h. */ | |
43180 | ||
43181 | #include <time.h> | |
43182 | ||
43183 | int | |
43184 | main () | |
43185 | { | |
43186 | ||
43187 | int tz; | |
43188 | tz = __timezone; | |
43189 | ||
43190 | ; | |
43191 | return 0; | |
43192 | } | |
43193 | _ACEOF | |
43194 | rm -f conftest.$ac_objext | |
43195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43196 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43197 | ac_status=$? |
ac1cb8d3 VS |
43198 | grep -v '^ *+' conftest.er1 >conftest.err |
43199 | rm -f conftest.er1 | |
43200 | cat conftest.err >&5 | |
a848cd7e SC |
43201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43202 | (exit $ac_status); } && | |
ca5c6ac3 | 43203 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43205 | (eval $ac_try) 2>&5 | |
43206 | ac_status=$? | |
43207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43208 | (exit $ac_status); }; } && | |
43209 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43211 | (eval $ac_try) 2>&5 | |
43212 | ac_status=$? | |
43213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43214 | (exit $ac_status); }; }; then | |
43215 | ||
43216 | wx_cv_var_timezone=__timezone | |
43217 | ||
43218 | else | |
43219 | echo "$as_me: failed program was:" >&5 | |
43220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43221 | ||
43222 | ||
43223 | if test "$USE_DOS" = 0 ; then | |
43224 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
43225 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
43226 | fi | |
43227 | ||
43228 | ||
43229 | fi | |
ac1cb8d3 | 43230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43231 | |
43232 | ||
43233 | fi | |
ac1cb8d3 | 43234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43235 | |
43236 | ||
43237 | fi | |
ac1cb8d3 | 43238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43239 | |
43240 | ||
43241 | fi | |
43242 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
43243 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
43244 | ||
43245 | if test "x$wx_cv_var_timezone" != x ; then | |
43246 | cat >>confdefs.h <<_ACEOF | |
43247 | #define WX_TIMEZONE $wx_cv_var_timezone | |
43248 | _ACEOF | |
43249 | ||
43250 | fi | |
43251 | ||
43252 | ||
43253 | for ac_func in localtime | |
43254 | do | |
43255 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43256 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
43257 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
43258 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
43259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43260 | else | |
43261 | cat >conftest.$ac_ext <<_ACEOF | |
43262 | /* confdefs.h. */ | |
43263 | _ACEOF | |
43264 | cat confdefs.h >>conftest.$ac_ext | |
43265 | cat >>conftest.$ac_ext <<_ACEOF | |
43266 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43267 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
43268 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43269 | #define $ac_func innocuous_$ac_func | |
43270 | ||
a848cd7e SC |
43271 | /* System header to define __stub macros and hopefully few prototypes, |
43272 | which can conflict with char $ac_func (); below. | |
43273 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43274 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43275 | |
a848cd7e SC |
43276 | #ifdef __STDC__ |
43277 | # include <limits.h> | |
43278 | #else | |
43279 | # include <assert.h> | |
43280 | #endif | |
ac1cb8d3 VS |
43281 | |
43282 | #undef $ac_func | |
43283 | ||
a848cd7e SC |
43284 | /* Override any gcc2 internal prototype to avoid an error. */ |
43285 | #ifdef __cplusplus | |
43286 | extern "C" | |
43287 | { | |
43288 | #endif | |
43289 | /* We use char because int might match the return type of a gcc2 | |
43290 | builtin and then its argument prototype would still apply. */ | |
43291 | char $ac_func (); | |
43292 | /* The GNU C library defines this for functions which it implements | |
43293 | to always fail with ENOSYS. Some functions are actually named | |
43294 | something starting with __ and the normal name is an alias. */ | |
43295 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
43296 | choke me | |
43297 | #else | |
43298 | char (*f) () = $ac_func; | |
43299 | #endif | |
43300 | #ifdef __cplusplus | |
43301 | } | |
43302 | #endif | |
43303 | ||
43304 | int | |
43305 | main () | |
43306 | { | |
43307 | return f != $ac_func; | |
43308 | ; | |
43309 | return 0; | |
43310 | } | |
43311 | _ACEOF | |
43312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43314 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43315 | ac_status=$? |
ac1cb8d3 VS |
43316 | grep -v '^ *+' conftest.er1 >conftest.err |
43317 | rm -f conftest.er1 | |
43318 | cat conftest.err >&5 | |
a848cd7e SC |
43319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43320 | (exit $ac_status); } && | |
ca5c6ac3 | 43321 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43323 | (eval $ac_try) 2>&5 | |
43324 | ac_status=$? | |
43325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43326 | (exit $ac_status); }; } && | |
43327 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43329 | (eval $ac_try) 2>&5 | |
43330 | ac_status=$? | |
43331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43332 | (exit $ac_status); }; }; then | |
43333 | eval "$as_ac_var=yes" | |
43334 | else | |
43335 | echo "$as_me: failed program was:" >&5 | |
43336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43337 | ||
43338 | eval "$as_ac_var=no" | |
43339 | fi | |
ac1cb8d3 VS |
43340 | rm -f conftest.err conftest.$ac_objext \ |
43341 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43342 | fi |
43343 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
43344 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
43345 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
43346 | cat >>confdefs.h <<_ACEOF | |
43347 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
43348 | _ACEOF | |
43349 | ||
43350 | fi | |
43351 | done | |
43352 | ||
43353 | ||
43354 | if test "$ac_cv_func_localtime" = "yes"; then | |
43355 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
43356 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
43357 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
43358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43359 | else | |
43360 | ||
43361 | cat >conftest.$ac_ext <<_ACEOF | |
43362 | /* confdefs.h. */ | |
43363 | _ACEOF | |
43364 | cat confdefs.h >>conftest.$ac_ext | |
43365 | cat >>conftest.$ac_ext <<_ACEOF | |
43366 | /* end confdefs.h. */ | |
43367 | ||
43368 | #include <time.h> | |
43369 | ||
43370 | int | |
43371 | main () | |
43372 | { | |
43373 | ||
43374 | struct tm tm; | |
43375 | tm.tm_gmtoff++; | |
43376 | ||
43377 | ; | |
43378 | return 0; | |
43379 | } | |
43380 | _ACEOF | |
43381 | rm -f conftest.$ac_objext | |
43382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43383 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43384 | ac_status=$? |
ac1cb8d3 VS |
43385 | grep -v '^ *+' conftest.er1 >conftest.err |
43386 | rm -f conftest.er1 | |
43387 | cat conftest.err >&5 | |
a848cd7e SC |
43388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43389 | (exit $ac_status); } && | |
ca5c6ac3 | 43390 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43392 | (eval $ac_try) 2>&5 | |
43393 | ac_status=$? | |
43394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43395 | (exit $ac_status); }; } && | |
43396 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43398 | (eval $ac_try) 2>&5 | |
43399 | ac_status=$? | |
43400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43401 | (exit $ac_status); }; }; then | |
43402 | ||
43403 | wx_cv_struct_tm_has_gmtoff=yes | |
43404 | ||
43405 | else | |
43406 | echo "$as_me: failed program was:" >&5 | |
43407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43408 | ||
43409 | wx_cv_struct_tm_has_gmtoff=no | |
43410 | ||
43411 | fi | |
ac1cb8d3 | 43412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43413 | |
43414 | fi | |
43415 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
43416 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
43417 | fi | |
43418 | ||
43419 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
43420 | cat >>confdefs.h <<\_ACEOF | |
43421 | #define WX_GMTOFF_IN_TM 1 | |
43422 | _ACEOF | |
43423 | ||
43424 | fi | |
43425 | ||
43426 | ||
43427 | ||
43428 | for ac_func in gettimeofday ftime | |
43429 | do | |
43430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43431 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
43432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
43433 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
43434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43435 | else | |
43436 | cat >conftest.$ac_ext <<_ACEOF | |
43437 | /* confdefs.h. */ | |
43438 | _ACEOF | |
43439 | cat confdefs.h >>conftest.$ac_ext | |
43440 | cat >>conftest.$ac_ext <<_ACEOF | |
43441 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43442 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
43443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43444 | #define $ac_func innocuous_$ac_func | |
43445 | ||
a848cd7e SC |
43446 | /* System header to define __stub macros and hopefully few prototypes, |
43447 | which can conflict with char $ac_func (); below. | |
43448 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43449 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43450 | |
a848cd7e SC |
43451 | #ifdef __STDC__ |
43452 | # include <limits.h> | |
43453 | #else | |
43454 | # include <assert.h> | |
43455 | #endif | |
ac1cb8d3 VS |
43456 | |
43457 | #undef $ac_func | |
43458 | ||
a848cd7e SC |
43459 | /* Override any gcc2 internal prototype to avoid an error. */ |
43460 | #ifdef __cplusplus | |
43461 | extern "C" | |
43462 | { | |
43463 | #endif | |
43464 | /* We use char because int might match the return type of a gcc2 | |
43465 | builtin and then its argument prototype would still apply. */ | |
43466 | char $ac_func (); | |
43467 | /* The GNU C library defines this for functions which it implements | |
43468 | to always fail with ENOSYS. Some functions are actually named | |
43469 | something starting with __ and the normal name is an alias. */ | |
43470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
43471 | choke me | |
43472 | #else | |
43473 | char (*f) () = $ac_func; | |
43474 | #endif | |
43475 | #ifdef __cplusplus | |
43476 | } | |
43477 | #endif | |
43478 | ||
43479 | int | |
43480 | main () | |
43481 | { | |
43482 | return f != $ac_func; | |
43483 | ; | |
43484 | return 0; | |
43485 | } | |
43486 | _ACEOF | |
43487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43489 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43490 | ac_status=$? |
ac1cb8d3 VS |
43491 | grep -v '^ *+' conftest.er1 >conftest.err |
43492 | rm -f conftest.er1 | |
43493 | cat conftest.err >&5 | |
a848cd7e SC |
43494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43495 | (exit $ac_status); } && | |
ca5c6ac3 | 43496 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43498 | (eval $ac_try) 2>&5 | |
43499 | ac_status=$? | |
43500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43501 | (exit $ac_status); }; } && | |
43502 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43504 | (eval $ac_try) 2>&5 | |
43505 | ac_status=$? | |
43506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43507 | (exit $ac_status); }; }; then | |
43508 | eval "$as_ac_var=yes" | |
43509 | else | |
43510 | echo "$as_me: failed program was:" >&5 | |
43511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43512 | ||
43513 | eval "$as_ac_var=no" | |
43514 | fi | |
ac1cb8d3 VS |
43515 | rm -f conftest.err conftest.$ac_objext \ |
43516 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43517 | fi |
43518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
43519 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
43520 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
43521 | cat >>confdefs.h <<_ACEOF | |
43522 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
43523 | _ACEOF | |
43524 | break | |
43525 | fi | |
43526 | done | |
43527 | ||
43528 | ||
43529 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
43530 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
43531 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
43532 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
43533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43534 | else | |
43535 | ||
5d7b7554 | 43536 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
43537 | /* confdefs.h. */ |
43538 | _ACEOF | |
43539 | cat confdefs.h >>conftest.$ac_ext | |
43540 | cat >>conftest.$ac_ext <<_ACEOF | |
43541 | /* end confdefs.h. */ | |
43542 | ||
43543 | #include <sys/time.h> | |
43544 | #include <unistd.h> | |
43545 | ||
43546 | int | |
43547 | main () | |
43548 | { | |
43549 | ||
43550 | struct timeval tv; | |
43551 | gettimeofday(&tv, NULL); | |
43552 | ||
43553 | ; | |
43554 | return 0; | |
43555 | } | |
43556 | _ACEOF | |
43557 | rm -f conftest.$ac_objext | |
43558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43559 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43560 | ac_status=$? |
ac1cb8d3 VS |
43561 | grep -v '^ *+' conftest.er1 >conftest.err |
43562 | rm -f conftest.er1 | |
43563 | cat conftest.err >&5 | |
a848cd7e SC |
43564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43565 | (exit $ac_status); } && | |
ca5c6ac3 | 43566 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43568 | (eval $ac_try) 2>&5 | |
43569 | ac_status=$? | |
43570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43571 | (exit $ac_status); }; } && | |
43572 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43574 | (eval $ac_try) 2>&5 | |
43575 | ac_status=$? | |
43576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43577 | (exit $ac_status); }; }; then | |
43578 | wx_cv_func_gettimeofday_has_2_args=yes | |
43579 | else | |
43580 | echo "$as_me: failed program was:" >&5 | |
43581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43582 | ||
43583 | cat >conftest.$ac_ext <<_ACEOF | |
43584 | /* confdefs.h. */ | |
43585 | _ACEOF | |
43586 | cat confdefs.h >>conftest.$ac_ext | |
43587 | cat >>conftest.$ac_ext <<_ACEOF | |
43588 | /* end confdefs.h. */ | |
43589 | ||
43590 | #include <sys/time.h> | |
43591 | #include <unistd.h> | |
43592 | ||
43593 | int | |
43594 | main () | |
43595 | { | |
43596 | ||
43597 | struct timeval tv; | |
43598 | gettimeofday(&tv); | |
43599 | ||
43600 | ; | |
43601 | return 0; | |
43602 | } | |
43603 | _ACEOF | |
43604 | rm -f conftest.$ac_objext | |
43605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43606 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43607 | ac_status=$? |
ac1cb8d3 VS |
43608 | grep -v '^ *+' conftest.er1 >conftest.err |
43609 | rm -f conftest.er1 | |
43610 | cat conftest.err >&5 | |
a848cd7e SC |
43611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43612 | (exit $ac_status); } && | |
ca5c6ac3 | 43613 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43615 | (eval $ac_try) 2>&5 | |
43616 | ac_status=$? | |
43617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43618 | (exit $ac_status); }; } && | |
43619 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43621 | (eval $ac_try) 2>&5 | |
43622 | ac_status=$? | |
43623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43624 | (exit $ac_status); }; }; then | |
43625 | wx_cv_func_gettimeofday_has_2_args=no | |
43626 | else | |
43627 | echo "$as_me: failed program was:" >&5 | |
43628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43629 | ||
43630 | ||
43631 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
43632 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
43633 | wx_cv_func_gettimeofday_has_2_args=unknown | |
43634 | ||
43635 | ||
43636 | fi | |
ac1cb8d3 | 43637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43638 | |
43639 | fi | |
ac1cb8d3 | 43640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43641 | |
43642 | fi | |
43643 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
43644 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
43645 | ||
43646 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
43647 | cat >>confdefs.h <<\_ACEOF | |
43648 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
43649 | _ACEOF | |
43650 | ||
43651 | fi | |
43652 | fi | |
43653 | ||
43654 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
43655 | fi | |
43656 | ||
43657 | ||
43658 | if test "$wxUSE_SOCKETS" = "yes"; then | |
43659 | if test "$wxUSE_MGL" = "1"; then | |
43660 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
43661 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
43662 | wxUSE_SOCKETS="no" | |
43663 | fi | |
43664 | fi | |
43665 | ||
43666 | if test "$wxUSE_SOCKETS" = "yes"; then | |
43667 | if test "$TOOLKIT" != "MSW"; then | |
43668 | echo "$as_me:$LINENO: checking for socket" >&5 | |
43669 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
43670 | if test "${ac_cv_func_socket+set}" = set; then | |
43671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43672 | else | |
43673 | cat >conftest.$ac_ext <<_ACEOF | |
43674 | /* confdefs.h. */ | |
43675 | _ACEOF | |
43676 | cat confdefs.h >>conftest.$ac_ext | |
43677 | cat >>conftest.$ac_ext <<_ACEOF | |
43678 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43679 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
43680 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43681 | #define socket innocuous_socket | |
43682 | ||
a848cd7e SC |
43683 | /* System header to define __stub macros and hopefully few prototypes, |
43684 | which can conflict with char socket (); below. | |
43685 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43686 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43687 | |
a848cd7e SC |
43688 | #ifdef __STDC__ |
43689 | # include <limits.h> | |
43690 | #else | |
43691 | # include <assert.h> | |
43692 | #endif | |
ac1cb8d3 VS |
43693 | |
43694 | #undef socket | |
43695 | ||
a848cd7e SC |
43696 | /* Override any gcc2 internal prototype to avoid an error. */ |
43697 | #ifdef __cplusplus | |
43698 | extern "C" | |
43699 | { | |
43700 | #endif | |
43701 | /* We use char because int might match the return type of a gcc2 | |
43702 | builtin and then its argument prototype would still apply. */ | |
43703 | char socket (); | |
43704 | /* The GNU C library defines this for functions which it implements | |
43705 | to always fail with ENOSYS. Some functions are actually named | |
43706 | something starting with __ and the normal name is an alias. */ | |
43707 | #if defined (__stub_socket) || defined (__stub___socket) | |
43708 | choke me | |
43709 | #else | |
43710 | char (*f) () = socket; | |
43711 | #endif | |
43712 | #ifdef __cplusplus | |
43713 | } | |
43714 | #endif | |
43715 | ||
43716 | int | |
43717 | main () | |
43718 | { | |
43719 | return f != socket; | |
43720 | ; | |
43721 | return 0; | |
43722 | } | |
43723 | _ACEOF | |
43724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43726 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43727 | ac_status=$? |
ac1cb8d3 VS |
43728 | grep -v '^ *+' conftest.er1 >conftest.err |
43729 | rm -f conftest.er1 | |
43730 | cat conftest.err >&5 | |
a848cd7e SC |
43731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43732 | (exit $ac_status); } && | |
ca5c6ac3 | 43733 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43735 | (eval $ac_try) 2>&5 | |
43736 | ac_status=$? | |
43737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43738 | (exit $ac_status); }; } && | |
43739 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43741 | (eval $ac_try) 2>&5 | |
43742 | ac_status=$? | |
43743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43744 | (exit $ac_status); }; }; then | |
43745 | ac_cv_func_socket=yes | |
43746 | else | |
43747 | echo "$as_me: failed program was:" >&5 | |
43748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43749 | ||
43750 | ac_cv_func_socket=no | |
43751 | fi | |
ac1cb8d3 VS |
43752 | rm -f conftest.err conftest.$ac_objext \ |
43753 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43754 | fi |
43755 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
43756 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
43757 | if test $ac_cv_func_socket = yes; then | |
43758 | : | |
43759 | else | |
43760 | ||
43761 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
43762 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
43763 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
43764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43765 | else | |
43766 | ac_check_lib_save_LIBS=$LIBS | |
43767 | LIBS="-lsocket $LIBS" | |
43768 | cat >conftest.$ac_ext <<_ACEOF | |
43769 | /* confdefs.h. */ | |
43770 | _ACEOF | |
43771 | cat confdefs.h >>conftest.$ac_ext | |
43772 | cat >>conftest.$ac_ext <<_ACEOF | |
43773 | /* end confdefs.h. */ | |
43774 | ||
43775 | /* Override any gcc2 internal prototype to avoid an error. */ | |
43776 | #ifdef __cplusplus | |
43777 | extern "C" | |
43778 | #endif | |
43779 | /* We use char because int might match the return type of a gcc2 | |
43780 | builtin and then its argument prototype would still apply. */ | |
43781 | char socket (); | |
43782 | int | |
43783 | main () | |
43784 | { | |
43785 | socket (); | |
43786 | ; | |
43787 | return 0; | |
43788 | } | |
43789 | _ACEOF | |
43790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43792 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43793 | ac_status=$? |
ac1cb8d3 VS |
43794 | grep -v '^ *+' conftest.er1 >conftest.err |
43795 | rm -f conftest.er1 | |
43796 | cat conftest.err >&5 | |
a848cd7e SC |
43797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43798 | (exit $ac_status); } && | |
ca5c6ac3 | 43799 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43801 | (eval $ac_try) 2>&5 | |
43802 | ac_status=$? | |
43803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43804 | (exit $ac_status); }; } && | |
43805 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43807 | (eval $ac_try) 2>&5 | |
43808 | ac_status=$? | |
43809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43810 | (exit $ac_status); }; }; then | |
43811 | ac_cv_lib_socket_socket=yes | |
43812 | else | |
43813 | echo "$as_me: failed program was:" >&5 | |
43814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43815 | ||
43816 | ac_cv_lib_socket_socket=no | |
43817 | fi | |
ac1cb8d3 VS |
43818 | rm -f conftest.err conftest.$ac_objext \ |
43819 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43820 | LIBS=$ac_check_lib_save_LIBS |
43821 | fi | |
43822 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
43823 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
43824 | if test $ac_cv_lib_socket_socket = yes; then | |
43825 | if test "$INET_LINK" != " -lsocket"; then | |
43826 | INET_LINK="$INET_LINK -lsocket" | |
43827 | fi | |
43828 | else | |
43829 | ||
43830 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
43831 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
43832 | wxUSE_SOCKETS=no | |
43833 | ||
43834 | ||
43835 | fi | |
43836 | ||
43837 | ||
43838 | ||
43839 | fi | |
43840 | ||
43841 | fi | |
43842 | fi | |
43843 | ||
43844 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
43845 | if test "$TOOLKIT" != "MSW"; then | |
5d7b7554 | 43846 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
a848cd7e SC |
43847 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
43848 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
43849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43850 | else | |
43851 | ||
43852 | cat >conftest.$ac_ext <<_ACEOF | |
43853 | /* confdefs.h. */ | |
43854 | _ACEOF | |
43855 | cat confdefs.h >>conftest.$ac_ext | |
43856 | cat >>conftest.$ac_ext <<_ACEOF | |
43857 | /* end confdefs.h. */ | |
43858 | ||
43859 | #include <sys/types.h> | |
43860 | #include <sys/socket.h> | |
43861 | ||
43862 | int | |
43863 | main () | |
43864 | { | |
43865 | ||
43866 | socklen_t len; | |
43867 | getsockname(0, 0, &len); | |
43868 | ||
43869 | ; | |
43870 | return 0; | |
43871 | } | |
43872 | _ACEOF | |
43873 | rm -f conftest.$ac_objext | |
43874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43876 | ac_status=$? |
ac1cb8d3 VS |
43877 | grep -v '^ *+' conftest.er1 >conftest.err |
43878 | rm -f conftest.er1 | |
43879 | cat conftest.err >&5 | |
a848cd7e SC |
43880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43881 | (exit $ac_status); } && | |
ca5c6ac3 | 43882 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43884 | (eval $ac_try) 2>&5 | |
43885 | ac_status=$? | |
43886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43887 | (exit $ac_status); }; } && | |
43888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43890 | (eval $ac_try) 2>&5 | |
43891 | ac_status=$? | |
43892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43893 | (exit $ac_status); }; }; then | |
43894 | wx_cv_type_getsockname3=socklen_t | |
43895 | else | |
43896 | echo "$as_me: failed program was:" >&5 | |
43897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43898 | ||
43899 | ||
6459a506 | 43900 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 43901 | if test "$GCC" = yes ; then |
c92ad099 | 43902 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
43903 | fi |
43904 | ||
43905 | cat >conftest.$ac_ext <<_ACEOF | |
43906 | /* confdefs.h. */ | |
43907 | _ACEOF | |
43908 | cat confdefs.h >>conftest.$ac_ext | |
43909 | cat >>conftest.$ac_ext <<_ACEOF | |
43910 | /* end confdefs.h. */ | |
43911 | ||
43912 | #include <sys/types.h> | |
43913 | #include <sys/socket.h> | |
43914 | ||
43915 | int | |
43916 | main () | |
43917 | { | |
43918 | ||
43919 | size_t len; | |
43920 | getsockname(0, 0, &len); | |
43921 | ||
43922 | ; | |
43923 | return 0; | |
43924 | } | |
43925 | _ACEOF | |
43926 | rm -f conftest.$ac_objext | |
43927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43928 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43929 | ac_status=$? |
ac1cb8d3 VS |
43930 | grep -v '^ *+' conftest.er1 >conftest.err |
43931 | rm -f conftest.er1 | |
43932 | cat conftest.err >&5 | |
a848cd7e SC |
43933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43934 | (exit $ac_status); } && | |
ca5c6ac3 | 43935 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43937 | (eval $ac_try) 2>&5 | |
43938 | ac_status=$? | |
43939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43940 | (exit $ac_status); }; } && | |
43941 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43943 | (eval $ac_try) 2>&5 | |
43944 | ac_status=$? | |
43945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43946 | (exit $ac_status); }; }; then | |
43947 | wx_cv_type_getsockname3=size_t | |
43948 | else | |
43949 | echo "$as_me: failed program was:" >&5 | |
43950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43951 | ||
43952 | cat >conftest.$ac_ext <<_ACEOF | |
43953 | /* confdefs.h. */ | |
43954 | _ACEOF | |
43955 | cat confdefs.h >>conftest.$ac_ext | |
43956 | cat >>conftest.$ac_ext <<_ACEOF | |
43957 | /* end confdefs.h. */ | |
43958 | ||
43959 | #include <sys/types.h> | |
43960 | #include <sys/socket.h> | |
43961 | ||
43962 | int | |
43963 | main () | |
43964 | { | |
43965 | ||
43966 | int len; | |
43967 | getsockname(0, 0, &len); | |
43968 | ||
43969 | ; | |
43970 | return 0; | |
43971 | } | |
43972 | _ACEOF | |
43973 | rm -f conftest.$ac_objext | |
43974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43975 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43976 | ac_status=$? |
ac1cb8d3 VS |
43977 | grep -v '^ *+' conftest.er1 >conftest.err |
43978 | rm -f conftest.er1 | |
43979 | cat conftest.err >&5 | |
a848cd7e SC |
43980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43981 | (exit $ac_status); } && | |
ca5c6ac3 | 43982 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43984 | (eval $ac_try) 2>&5 | |
43985 | ac_status=$? | |
43986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43987 | (exit $ac_status); }; } && | |
43988 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43990 | (eval $ac_try) 2>&5 | |
43991 | ac_status=$? | |
43992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43993 | (exit $ac_status); }; }; then | |
43994 | wx_cv_type_getsockname3=int | |
43995 | else | |
43996 | echo "$as_me: failed program was:" >&5 | |
43997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43998 | ||
43999 | wx_cv_type_getsockname3=unknown | |
44000 | ||
44001 | fi | |
ac1cb8d3 | 44002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44003 | |
44004 | fi | |
ac1cb8d3 | 44005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 44006 | |
6459a506 | 44007 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
44008 | |
44009 | ||
44010 | fi | |
ac1cb8d3 | 44011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44012 | |
44013 | fi | |
44014 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
44015 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
44016 | ||
44017 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
44018 | wxUSE_SOCKETS=no | |
44019 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
44020 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
44021 | else | |
44022 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 44023 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
44024 | _ACEOF |
44025 | ||
44026 | fi | |
44027 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
44028 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
44029 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
44030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44031 | else | |
44032 | ||
44033 | cat >conftest.$ac_ext <<_ACEOF | |
44034 | /* confdefs.h. */ | |
44035 | _ACEOF | |
44036 | cat confdefs.h >>conftest.$ac_ext | |
44037 | cat >>conftest.$ac_ext <<_ACEOF | |
44038 | /* end confdefs.h. */ | |
44039 | ||
44040 | #include <sys/types.h> | |
44041 | #include <sys/socket.h> | |
44042 | ||
44043 | int | |
44044 | main () | |
44045 | { | |
44046 | ||
44047 | socklen_t len; | |
44048 | getsockopt(0, 0, 0, 0, &len); | |
44049 | ||
44050 | ; | |
44051 | return 0; | |
44052 | } | |
44053 | _ACEOF | |
44054 | rm -f conftest.$ac_objext | |
44055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44056 | (eval $ac_compile) 2>conftest.er1 | |
44057 | ac_status=$? | |
44058 | grep -v '^ *+' conftest.er1 >conftest.err | |
44059 | rm -f conftest.er1 | |
44060 | cat conftest.err >&5 | |
44061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44062 | (exit $ac_status); } && | |
ca5c6ac3 | 44063 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
44064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44065 | (eval $ac_try) 2>&5 | |
44066 | ac_status=$? | |
44067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44068 | (exit $ac_status); }; } && | |
44069 | { ac_try='test -s conftest.$ac_objext' | |
44070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44071 | (eval $ac_try) 2>&5 | |
44072 | ac_status=$? | |
44073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44074 | (exit $ac_status); }; }; then | |
44075 | wx_cv_type_getsockopt5=socklen_t | |
44076 | else | |
44077 | echo "$as_me: failed program was:" >&5 | |
44078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44079 | ||
44080 | ||
6459a506 | 44081 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 44082 | if test "$GCC" = yes ; then |
c92ad099 | 44083 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
44084 | fi |
44085 | ||
44086 | cat >conftest.$ac_ext <<_ACEOF | |
44087 | /* confdefs.h. */ | |
44088 | _ACEOF | |
44089 | cat confdefs.h >>conftest.$ac_ext | |
44090 | cat >>conftest.$ac_ext <<_ACEOF | |
44091 | /* end confdefs.h. */ | |
44092 | ||
44093 | #include <sys/types.h> | |
44094 | #include <sys/socket.h> | |
44095 | ||
44096 | int | |
44097 | main () | |
44098 | { | |
44099 | ||
44100 | size_t len; | |
44101 | getsockopt(0, 0, 0, 0, &len); | |
44102 | ||
44103 | ; | |
44104 | return 0; | |
44105 | } | |
44106 | _ACEOF | |
44107 | rm -f conftest.$ac_objext | |
44108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44109 | (eval $ac_compile) 2>conftest.er1 | |
44110 | ac_status=$? | |
44111 | grep -v '^ *+' conftest.er1 >conftest.err | |
44112 | rm -f conftest.er1 | |
44113 | cat conftest.err >&5 | |
44114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44115 | (exit $ac_status); } && | |
ca5c6ac3 | 44116 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
44117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44118 | (eval $ac_try) 2>&5 | |
44119 | ac_status=$? | |
44120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44121 | (exit $ac_status); }; } && | |
44122 | { ac_try='test -s conftest.$ac_objext' | |
44123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44124 | (eval $ac_try) 2>&5 | |
44125 | ac_status=$? | |
44126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44127 | (exit $ac_status); }; }; then | |
44128 | wx_cv_type_getsockopt5=size_t | |
44129 | else | |
44130 | echo "$as_me: failed program was:" >&5 | |
44131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44132 | ||
44133 | cat >conftest.$ac_ext <<_ACEOF | |
44134 | /* confdefs.h. */ | |
44135 | _ACEOF | |
44136 | cat confdefs.h >>conftest.$ac_ext | |
44137 | cat >>conftest.$ac_ext <<_ACEOF | |
44138 | /* end confdefs.h. */ | |
44139 | ||
44140 | #include <sys/types.h> | |
44141 | #include <sys/socket.h> | |
44142 | ||
44143 | int | |
44144 | main () | |
44145 | { | |
44146 | ||
44147 | int len; | |
44148 | getsockopt(0, 0, 0, 0, &len); | |
44149 | ||
44150 | ; | |
44151 | return 0; | |
44152 | } | |
44153 | _ACEOF | |
44154 | rm -f conftest.$ac_objext | |
44155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44156 | (eval $ac_compile) 2>conftest.er1 | |
44157 | ac_status=$? | |
44158 | grep -v '^ *+' conftest.er1 >conftest.err | |
44159 | rm -f conftest.er1 | |
44160 | cat conftest.err >&5 | |
44161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44162 | (exit $ac_status); } && | |
ca5c6ac3 | 44163 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
44164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44165 | (eval $ac_try) 2>&5 | |
44166 | ac_status=$? | |
44167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44168 | (exit $ac_status); }; } && | |
44169 | { ac_try='test -s conftest.$ac_objext' | |
44170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44171 | (eval $ac_try) 2>&5 | |
44172 | ac_status=$? | |
44173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44174 | (exit $ac_status); }; }; then | |
44175 | wx_cv_type_getsockopt5=int | |
44176 | else | |
44177 | echo "$as_me: failed program was:" >&5 | |
44178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44179 | ||
44180 | wx_cv_type_getsockopt5=unknown | |
44181 | ||
44182 | fi | |
44183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44184 | ||
44185 | fi | |
44186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44187 | ||
6459a506 | 44188 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
44189 | |
44190 | ||
44191 | fi | |
44192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44193 | ||
44194 | fi | |
44195 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
44196 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
44197 | ||
44198 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
44199 | wxUSE_SOCKETS=no | |
44200 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
44201 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
44202 | else | |
44203 | cat >>confdefs.h <<_ACEOF | |
44204 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
44205 | _ACEOF |
44206 | ||
44207 | fi | |
44208 | fi | |
44209 | fi | |
44210 | ||
44211 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
44212 | cat >>confdefs.h <<\_ACEOF | |
44213 | #define wxUSE_SOCKETS 1 | |
44214 | _ACEOF | |
44215 | ||
44216 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
44217 | fi | |
44218 | ||
44219 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
44220 | if test "$wxUSE_SOCKETS" != "yes"; then | |
44221 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
44222 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
44223 | wxUSE_PROTOCOL=no | |
44224 | fi | |
44225 | fi | |
44226 | ||
44227 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
44228 | cat >>confdefs.h <<\_ACEOF | |
44229 | #define wxUSE_PROTOCOL 1 | |
44230 | _ACEOF | |
44231 | ||
44232 | ||
44233 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
44234 | cat >>confdefs.h <<\_ACEOF | |
44235 | #define wxUSE_PROTOCOL_HTTP 1 | |
44236 | _ACEOF | |
44237 | ||
44238 | fi | |
44239 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
44240 | cat >>confdefs.h <<\_ACEOF | |
44241 | #define wxUSE_PROTOCOL_FTP 1 | |
44242 | _ACEOF | |
44243 | ||
44244 | fi | |
44245 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
44246 | cat >>confdefs.h <<\_ACEOF | |
44247 | #define wxUSE_PROTOCOL_FILE 1 | |
44248 | _ACEOF | |
44249 | ||
44250 | fi | |
44251 | else | |
44252 | if test "$wxUSE_FS_INET" = "yes"; then | |
44253 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
44254 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
44255 | wxUSE_FS_INET="no" | |
44256 | fi | |
44257 | fi | |
44258 | ||
44259 | if test "$wxUSE_URL" = "yes"; then | |
44260 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
44261 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
44262 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
44263 | wxUSE_URL=no | |
44264 | fi | |
44265 | if test "$wxUSE_URL" = "yes"; then | |
44266 | cat >>confdefs.h <<\_ACEOF | |
44267 | #define wxUSE_URL 1 | |
44268 | _ACEOF | |
44269 | ||
44270 | fi | |
44271 | fi | |
44272 | ||
ca5c6ac3 VZ |
44273 | if test "$wxUSE_VARIANT" = "yes"; then |
44274 | cat >>confdefs.h <<\_ACEOF | |
44275 | #define wxUSE_VARIANT 1 | |
44276 | _ACEOF | |
44277 | ||
44278 | fi | |
44279 | ||
a848cd7e SC |
44280 | if test "$wxUSE_FS_INET" = "yes"; then |
44281 | cat >>confdefs.h <<\_ACEOF | |
44282 | #define wxUSE_FS_INET 1 | |
44283 | _ACEOF | |
44284 | ||
44285 | fi | |
44286 | ||
44287 | ||
ee45c548 MW |
44288 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
44289 | wxUSE_JOYSTICK=no | |
44290 | ||
44291 | if test "$TOOLKIT" = "MSW"; then | |
44292 | wxUSE_JOYSTICK=yes | |
44293 | ||
44294 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
44295 | if test "$USE_DARWIN" = 1; then | |
44296 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
44297 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
ee45c548 MW |
44298 | cat >conftest.$ac_ext <<_ACEOF |
44299 | /* confdefs.h. */ | |
44300 | _ACEOF | |
44301 | cat confdefs.h >>conftest.$ac_ext | |
44302 | cat >>conftest.$ac_ext <<_ACEOF | |
44303 | /* end confdefs.h. */ | |
44304 | #include <IOKit/hid/IOHIDLib.h> | |
44305 | int | |
44306 | main () | |
44307 | { | |
44308 | IOHIDQueueInterface *qi = NULL; | |
44309 | IOHIDCallbackFunction cb = NULL; | |
44310 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
44311 | ; | |
44312 | return 0; | |
44313 | } | |
44314 | _ACEOF | |
44315 | rm -f conftest.$ac_objext | |
44316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44317 | (eval $ac_compile) 2>conftest.er1 | |
44318 | ac_status=$? | |
44319 | grep -v '^ *+' conftest.er1 >conftest.err | |
44320 | rm -f conftest.er1 | |
44321 | cat conftest.err >&5 | |
44322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44323 | (exit $ac_status); } && | |
ca5c6ac3 | 44324 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
44325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44326 | (eval $ac_try) 2>&5 | |
44327 | ac_status=$? | |
44328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44329 | (exit $ac_status); }; } && | |
44330 | { ac_try='test -s conftest.$ac_objext' | |
44331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44332 | (eval $ac_try) 2>&5 | |
44333 | ac_status=$? | |
44334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44335 | (exit $ac_status); }; }; then | |
44336 | wxUSE_JOYSTICK=yes | |
a848cd7e | 44337 | |
ee45c548 MW |
44338 | else |
44339 | echo "$as_me: failed program was:" >&5 | |
44340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44341 | ||
44342 | fi | |
44343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ee45c548 MW |
44344 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 |
44345 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
44346 | fi | |
44347 | ||
44348 | else | |
a848cd7e SC |
44349 | |
44350 | for ac_header in linux/joystick.h | |
44351 | do | |
44352 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
44356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44358 | fi | |
44359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
44361 | else | |
44362 | # Is the header compilable? | |
44363 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
44364 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
44365 | cat >conftest.$ac_ext <<_ACEOF | |
44366 | /* confdefs.h. */ | |
44367 | _ACEOF | |
44368 | cat confdefs.h >>conftest.$ac_ext | |
44369 | cat >>conftest.$ac_ext <<_ACEOF | |
44370 | /* end confdefs.h. */ | |
44371 | $ac_includes_default | |
44372 | #include <$ac_header> | |
44373 | _ACEOF | |
44374 | rm -f conftest.$ac_objext | |
44375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44376 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44377 | ac_status=$? |
ac1cb8d3 VS |
44378 | grep -v '^ *+' conftest.er1 >conftest.err |
44379 | rm -f conftest.er1 | |
44380 | cat conftest.err >&5 | |
a848cd7e SC |
44381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44382 | (exit $ac_status); } && | |
ca5c6ac3 | 44383 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44385 | (eval $ac_try) 2>&5 | |
44386 | ac_status=$? | |
44387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44388 | (exit $ac_status); }; } && | |
44389 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44391 | (eval $ac_try) 2>&5 | |
44392 | ac_status=$? | |
44393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44394 | (exit $ac_status); }; }; then | |
44395 | ac_header_compiler=yes | |
44396 | else | |
44397 | echo "$as_me: failed program was:" >&5 | |
44398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44399 | ||
44400 | ac_header_compiler=no | |
44401 | fi | |
ac1cb8d3 | 44402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44403 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
44404 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
44405 | ||
44406 | # Is the header present? | |
44407 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
44408 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
44409 | cat >conftest.$ac_ext <<_ACEOF | |
44410 | /* confdefs.h. */ | |
44411 | _ACEOF | |
44412 | cat confdefs.h >>conftest.$ac_ext | |
44413 | cat >>conftest.$ac_ext <<_ACEOF | |
44414 | /* end confdefs.h. */ | |
44415 | #include <$ac_header> | |
44416 | _ACEOF | |
44417 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
44418 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
44419 | ac_status=$? | |
44420 | grep -v '^ *+' conftest.er1 >conftest.err | |
44421 | rm -f conftest.er1 | |
44422 | cat conftest.err >&5 | |
44423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44424 | (exit $ac_status); } >/dev/null; then | |
44425 | if test -s conftest.err; then | |
5d7b7554 VZ |
44426 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
44427 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
44428 | else |
44429 | ac_cpp_err= | |
44430 | fi | |
44431 | else | |
44432 | ac_cpp_err=yes | |
44433 | fi | |
44434 | if test -z "$ac_cpp_err"; then | |
44435 | ac_header_preproc=yes | |
44436 | else | |
44437 | echo "$as_me: failed program was:" >&5 | |
44438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44439 | ||
44440 | ac_header_preproc=no | |
44441 | fi | |
44442 | rm -f conftest.err conftest.$ac_ext | |
44443 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
44444 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
44445 | ||
44446 | # So? What about this header? | |
5d7b7554 | 44447 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 44448 | yes:no: ) |
a848cd7e SC |
44449 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
44450 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
44451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
44452 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
44453 | ac_header_preproc=yes | |
a848cd7e | 44454 | ;; |
ac1cb8d3 | 44455 | no:yes:* ) |
a848cd7e SC |
44456 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
44457 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
44458 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
44459 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
44460 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
44461 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
44462 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
44463 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
44464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
44465 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
44466 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
44467 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
44468 | ( |
44469 | cat <<\_ASBOX | |
ac1cb8d3 VS |
44470 | ## ----------------------------------------- ## |
44471 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
44472 | ## ----------------------------------------- ## | |
a848cd7e SC |
44473 | _ASBOX |
44474 | ) | | |
44475 | sed "s/^/$as_me: WARNING: /" >&2 | |
44476 | ;; | |
44477 | esac | |
44478 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
44480 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44482 | else | |
ac1cb8d3 | 44483 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
44484 | fi |
44485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44486 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
44487 | ||
44488 | fi | |
44489 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
44490 | cat >>confdefs.h <<_ACEOF | |
44491 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
44492 | _ACEOF | |
ee45c548 | 44493 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
44494 | fi |
44495 | ||
44496 | done | |
44497 | ||
ee45c548 | 44498 | fi |
4cb1d3da | 44499 | |
ee45c548 MW |
44500 | if test "$wxUSE_JOYSTICK" = "yes"; then |
44501 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44502 | #define wxUSE_JOYSTICK 1 |
44503 | _ACEOF | |
44504 | ||
ee45c548 MW |
44505 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
44506 | else | |
44507 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
44508 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
44509 | fi |
44510 | fi | |
44511 | ||
44512 | ||
44513 | ||
44514 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
44515 | cat >>confdefs.h <<\_ACEOF | |
44516 | #define wxUSE_FONTMAP 1 | |
44517 | _ACEOF | |
44518 | ||
44519 | fi | |
44520 | ||
44521 | if test "$wxUSE_UNICODE" = "yes" ; then | |
44522 | cat >>confdefs.h <<\_ACEOF | |
44523 | #define wxUSE_UNICODE 1 | |
44524 | _ACEOF | |
44525 | ||
44526 | ||
44527 | if test "$USE_WIN32" != 1; then | |
44528 | wxUSE_UNICODE_MSLU=no | |
44529 | fi | |
44530 | ||
44531 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
44532 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
44533 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
44534 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
44535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44536 | else | |
44537 | ac_check_lib_save_LIBS=$LIBS | |
44538 | LIBS="-lunicows $LIBS" | |
44539 | cat >conftest.$ac_ext <<_ACEOF | |
44540 | /* confdefs.h. */ | |
44541 | _ACEOF | |
44542 | cat confdefs.h >>conftest.$ac_ext | |
44543 | cat >>conftest.$ac_ext <<_ACEOF | |
44544 | /* end confdefs.h. */ | |
44545 | ||
44546 | ||
44547 | int | |
44548 | main () | |
44549 | { | |
44550 | main (); | |
44551 | ; | |
44552 | return 0; | |
44553 | } | |
44554 | _ACEOF | |
44555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44557 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44558 | ac_status=$? |
ac1cb8d3 VS |
44559 | grep -v '^ *+' conftest.er1 >conftest.err |
44560 | rm -f conftest.er1 | |
44561 | cat conftest.err >&5 | |
a848cd7e SC |
44562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44563 | (exit $ac_status); } && | |
ca5c6ac3 | 44564 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44566 | (eval $ac_try) 2>&5 | |
44567 | ac_status=$? | |
44568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44569 | (exit $ac_status); }; } && | |
44570 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44572 | (eval $ac_try) 2>&5 | |
44573 | ac_status=$? | |
44574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44575 | (exit $ac_status); }; }; then | |
44576 | ac_cv_lib_unicows_main=yes | |
44577 | else | |
44578 | echo "$as_me: failed program was:" >&5 | |
44579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44580 | ||
44581 | ac_cv_lib_unicows_main=no | |
44582 | fi | |
ac1cb8d3 VS |
44583 | rm -f conftest.err conftest.$ac_objext \ |
44584 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44585 | LIBS=$ac_check_lib_save_LIBS |
44586 | fi | |
44587 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
44588 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
44589 | if test $ac_cv_lib_unicows_main = yes; then | |
44590 | ||
44591 | cat >>confdefs.h <<\_ACEOF | |
44592 | #define wxUSE_UNICODE_MSLU 1 | |
44593 | _ACEOF | |
44594 | ||
44595 | ||
44596 | else | |
44597 | ||
44598 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
44599 | Applications will only run on Windows NT/2000/XP!" >&5 | |
44600 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
44601 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
44602 | wxUSE_UNICODE_MSLU=no | |
44603 | ||
44604 | fi | |
44605 | ||
44606 | fi | |
44607 | fi | |
44608 | ||
44609 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
44610 | cat >>confdefs.h <<\_ACEOF | |
44611 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
44612 | _ACEOF | |
44613 | ||
44614 | fi | |
44615 | ||
44616 | ||
44617 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
44618 | cat >>confdefs.h <<\_ACEOF | |
44619 | #define wxUSE_POSTSCRIPT 1 | |
44620 | _ACEOF | |
44621 | ||
44622 | fi | |
44623 | ||
44624 | cat >>confdefs.h <<\_ACEOF | |
44625 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
44626 | _ACEOF | |
44627 | ||
44628 | ||
44629 | cat >>confdefs.h <<\_ACEOF | |
44630 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
44631 | _ACEOF | |
44632 | ||
44633 | ||
44634 | ||
44635 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
44636 | cat >>confdefs.h <<\_ACEOF | |
44637 | #define wxUSE_CONSTRAINTS 1 | |
44638 | _ACEOF | |
44639 | ||
44640 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
44641 | fi | |
44642 | ||
8a7b1113 VZ |
44643 | if test "$wxUSE_MDI" = "yes"; then |
44644 | cat >>confdefs.h <<\_ACEOF | |
44645 | #define wxUSE_MDI 1 | |
44646 | _ACEOF | |
44647 | ||
44648 | ||
44649 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
44650 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44651 | #define wxUSE_MDI_ARCHITECTURE 1 |
44652 | _ACEOF | |
44653 | ||
8a7b1113 VZ |
44654 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
44655 | fi | |
a848cd7e SC |
44656 | fi |
44657 | ||
44658 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
44659 | cat >>confdefs.h <<\_ACEOF | |
44660 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
44661 | _ACEOF | |
44662 | ||
44663 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
44664 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
44665 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
44666 | fi | |
44667 | fi | |
44668 | ||
44669 | if test "$wxUSE_HELP" = "yes"; then | |
44670 | cat >>confdefs.h <<\_ACEOF | |
44671 | #define wxUSE_HELP 1 | |
44672 | _ACEOF | |
44673 | ||
44674 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
44675 | ||
44676 | if test "$wxUSE_MSW" = 1; then | |
44677 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
44678 | cat >>confdefs.h <<\_ACEOF | |
44679 | #define wxUSE_MS_HTML_HELP 1 | |
44680 | _ACEOF | |
44681 | ||
44682 | fi | |
44683 | fi | |
44684 | ||
44685 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
44686 | if test "$wxUSE_HTML" = "yes"; then | |
44687 | cat >>confdefs.h <<\_ACEOF | |
44688 | #define wxUSE_WXHTML_HELP 1 | |
44689 | _ACEOF | |
44690 | ||
44691 | else | |
44692 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
44693 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
44694 | wxUSE_WXHTML_HELP=no | |
44695 | fi | |
44696 | fi | |
44697 | fi | |
44698 | ||
44699 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
44700 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44701 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
44702 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
44703 | else | |
44704 | cat >>confdefs.h <<\_ACEOF | |
44705 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
44706 | _ACEOF | |
44707 | ||
44708 | fi | |
44709 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
44710 | fi | |
44711 | ||
44712 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
44713 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
44714 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
44715 | { (exit 1); exit 1; }; } | |
44716 | fi | |
44717 | ||
44718 | ||
efdf6afe VZ |
44719 | if test "$wxUSE_METAFILE" = "yes"; then |
44720 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
44721 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
44722 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
44723 | wxUSE_METAFILE=no | |
44724 | fi | |
44725 | fi | |
44726 | ||
44727 | ||
a848cd7e SC |
44728 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
44729 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
44730 | -o "$wxUSE_OLE" = "yes" \ | |
44731 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
44732 | ||
44733 | for ac_header in ole2.h | |
44734 | do | |
44735 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
44736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44737 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44738 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
44739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44741 | fi | |
44742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
44744 | else | |
44745 | # Is the header compilable? | |
44746 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
44747 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
44748 | cat >conftest.$ac_ext <<_ACEOF | |
44749 | /* confdefs.h. */ | |
44750 | _ACEOF | |
44751 | cat confdefs.h >>conftest.$ac_ext | |
44752 | cat >>conftest.$ac_ext <<_ACEOF | |
44753 | /* end confdefs.h. */ | |
44754 | $ac_includes_default | |
44755 | #include <$ac_header> | |
44756 | _ACEOF | |
44757 | rm -f conftest.$ac_objext | |
44758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44759 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44760 | ac_status=$? |
ac1cb8d3 VS |
44761 | grep -v '^ *+' conftest.er1 >conftest.err |
44762 | rm -f conftest.er1 | |
44763 | cat conftest.err >&5 | |
a848cd7e SC |
44764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44765 | (exit $ac_status); } && | |
ca5c6ac3 | 44766 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44768 | (eval $ac_try) 2>&5 | |
44769 | ac_status=$? | |
44770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44771 | (exit $ac_status); }; } && | |
44772 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44774 | (eval $ac_try) 2>&5 | |
44775 | ac_status=$? | |
44776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44777 | (exit $ac_status); }; }; then | |
44778 | ac_header_compiler=yes | |
44779 | else | |
44780 | echo "$as_me: failed program was:" >&5 | |
44781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44782 | ||
44783 | ac_header_compiler=no | |
44784 | fi | |
ac1cb8d3 | 44785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44786 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
44787 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
44788 | ||
44789 | # Is the header present? | |
44790 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
44791 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
44792 | cat >conftest.$ac_ext <<_ACEOF | |
44793 | /* confdefs.h. */ | |
44794 | _ACEOF | |
44795 | cat confdefs.h >>conftest.$ac_ext | |
44796 | cat >>conftest.$ac_ext <<_ACEOF | |
44797 | /* end confdefs.h. */ | |
44798 | #include <$ac_header> | |
44799 | _ACEOF | |
44800 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
44801 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
44802 | ac_status=$? | |
44803 | grep -v '^ *+' conftest.er1 >conftest.err | |
44804 | rm -f conftest.er1 | |
44805 | cat conftest.err >&5 | |
44806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44807 | (exit $ac_status); } >/dev/null; then | |
44808 | if test -s conftest.err; then | |
5d7b7554 VZ |
44809 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
44810 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
44811 | else |
44812 | ac_cpp_err= | |
44813 | fi | |
44814 | else | |
44815 | ac_cpp_err=yes | |
44816 | fi | |
44817 | if test -z "$ac_cpp_err"; then | |
44818 | ac_header_preproc=yes | |
44819 | else | |
44820 | echo "$as_me: failed program was:" >&5 | |
44821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44822 | ||
44823 | ac_header_preproc=no | |
44824 | fi | |
44825 | rm -f conftest.err conftest.$ac_ext | |
44826 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
44827 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
44828 | ||
44829 | # So? What about this header? | |
5d7b7554 | 44830 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 44831 | yes:no: ) |
a848cd7e SC |
44832 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
44833 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
44834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
44835 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
44836 | ac_header_preproc=yes | |
a848cd7e | 44837 | ;; |
ac1cb8d3 | 44838 | no:yes:* ) |
a848cd7e SC |
44839 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
44840 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
44841 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
44842 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
44843 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
44844 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
44845 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
44846 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
44847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
44848 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
44849 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
44850 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
44851 | ( |
44852 | cat <<\_ASBOX | |
ac1cb8d3 VS |
44853 | ## ----------------------------------------- ## |
44854 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
44855 | ## ----------------------------------------- ## | |
a848cd7e SC |
44856 | _ASBOX |
44857 | ) | | |
44858 | sed "s/^/$as_me: WARNING: /" >&2 | |
44859 | ;; | |
44860 | esac | |
44861 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
44862 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
44863 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
44864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44865 | else | |
ac1cb8d3 | 44866 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
44867 | fi |
44868 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
44869 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
44870 | ||
44871 | fi | |
44872 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
44873 | cat >>confdefs.h <<_ACEOF | |
44874 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
44875 | _ACEOF | |
44876 | ||
44877 | fi | |
44878 | ||
44879 | done | |
44880 | ||
44881 | ||
44882 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
44883 | if test "$GCC" = yes ; then | |
a848cd7e SC |
44884 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 |
44885 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
44886 | cat >conftest.$ac_ext <<_ACEOF | |
44887 | /* confdefs.h. */ | |
44888 | _ACEOF | |
44889 | cat confdefs.h >>conftest.$ac_ext | |
44890 | cat >>conftest.$ac_ext <<_ACEOF | |
44891 | /* end confdefs.h. */ | |
44892 | #include <windows.h> | |
44893 | #include <ole2.h> | |
44894 | int | |
44895 | main () | |
44896 | { | |
44897 | ||
44898 | ; | |
44899 | return 0; | |
44900 | } | |
44901 | _ACEOF | |
44902 | rm -f conftest.$ac_objext | |
44903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44904 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44905 | ac_status=$? |
ac1cb8d3 VS |
44906 | grep -v '^ *+' conftest.er1 >conftest.err |
44907 | rm -f conftest.er1 | |
44908 | cat conftest.err >&5 | |
a848cd7e SC |
44909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44910 | (exit $ac_status); } && | |
ca5c6ac3 | 44911 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44913 | (eval $ac_try) 2>&5 | |
44914 | ac_status=$? | |
44915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44916 | (exit $ac_status); }; } && | |
44917 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44919 | (eval $ac_try) 2>&5 | |
44920 | ac_status=$? | |
44921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44922 | (exit $ac_status); }; }; then | |
44923 | echo "$as_me:$LINENO: result: no" >&5 | |
44924 | echo "${ECHO_T}no" >&6 | |
44925 | else | |
44926 | echo "$as_me: failed program was:" >&5 | |
44927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44928 | ||
44929 | echo "$as_me:$LINENO: result: yes" >&5 | |
44930 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 44931 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 44932 | fi |
ac1cb8d3 | 44933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44934 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
44935 | if test "$wxUSE_OLE" = "yes" ; then | |
44936 | cat >>confdefs.h <<\_ACEOF | |
44937 | #define wxUSE_OLE 1 | |
f43426c1 RD |
44938 | _ACEOF |
44939 | ||
44940 | cat >>confdefs.h <<\_ACEOF | |
44941 | #define wxUSE_OLE_AUTOMATION 1 | |
44942 | _ACEOF | |
44943 | ||
44944 | cat >>confdefs.h <<\_ACEOF | |
44945 | #define wxUSE_OLE_ACTIVEX 1 | |
a848cd7e SC |
44946 | _ACEOF |
44947 | ||
0b78747f | 44948 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
44949 | fi |
44950 | fi | |
44951 | ||
44952 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
44953 | cat >>confdefs.h <<\_ACEOF | |
44954 | #define wxUSE_DATAOBJ 1 | |
44955 | _ACEOF | |
44956 | ||
44957 | fi | |
44958 | else | |
44959 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
44960 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
44961 | ||
44962 | wxUSE_CLIPBOARD=no | |
44963 | wxUSE_DRAG_AND_DROP=no | |
44964 | wxUSE_DATAOBJ=no | |
44965 | wxUSE_OLE=no | |
44966 | fi | |
44967 | ||
44968 | if test "$wxUSE_METAFILE" = "yes"; then | |
44969 | cat >>confdefs.h <<\_ACEOF | |
44970 | #define wxUSE_METAFILE 1 | |
44971 | _ACEOF | |
44972 | ||
44973 | ||
44974 | cat >>confdefs.h <<\_ACEOF | |
44975 | #define wxUSE_ENH_METAFILE 1 | |
44976 | _ACEOF | |
44977 | ||
44978 | fi | |
44979 | fi | |
44980 | ||
44981 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 44982 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
44983 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
44984 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 44985 | wxUSE_IPC=no |
a848cd7e SC |
44986 | fi |
44987 | ||
0b78747f MW |
44988 | if test "$wxUSE_IPC" = "yes"; then |
44989 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44990 | #define wxUSE_IPC 1 |
44991 | _ACEOF | |
44992 | ||
0b78747f MW |
44993 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
44994 | fi | |
a848cd7e SC |
44995 | fi |
44996 | ||
eb730a0c | 44997 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
44998 | if test "$wxUSE_MGL" = 1; then |
44999 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
45000 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
45001 | wxUSE_DATAOBJ=no | |
45002 | else | |
45003 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
45004 | #define wxUSE_DATAOBJ 1 |
45005 | _ACEOF | |
45006 | ||
2113bc77 | 45007 | fi |
eb730a0c JS |
45008 | else |
45009 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
45010 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
45011 | wxUSE_CLIPBOARD=no | |
45012 | wxUSE_DRAG_AND_DROP=no | |
45013 | fi | |
45014 | ||
a848cd7e SC |
45015 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
45016 | if test "$wxUSE_MGL" = 1; then | |
45017 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
45018 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
45019 | wxUSE_CLIPBOARD=no | |
45020 | fi | |
45021 | ||
45022 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
45023 | cat >>confdefs.h <<\_ACEOF | |
45024 | #define wxUSE_CLIPBOARD 1 | |
45025 | _ACEOF | |
45026 | ||
a848cd7e SC |
45027 | fi |
45028 | fi | |
45029 | ||
45030 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
45031 | if test "$wxUSE_GTK" = 1; then | |
45032 | if test "$WXGTK12" != 1; then | |
45033 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
45034 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
45035 | wxUSE_DRAG_AND_DROP=no | |
45036 | fi | |
45037 | fi | |
45038 | ||
45039 | if test "$wxUSE_MOTIF" = 1; then | |
45040 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
45041 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
45042 | wxUSE_DRAG_AND_DROP=no | |
45043 | fi | |
45044 | ||
45045 | if test "$wxUSE_X11" = 1; then | |
45046 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
45047 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
45048 | wxUSE_DRAG_AND_DROP=no | |
45049 | fi | |
45050 | ||
45051 | if test "$wxUSE_MGL" = 1; then | |
45052 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
45053 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
45054 | wxUSE_DRAG_AND_DROP=no | |
45055 | fi | |
45056 | ||
45057 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
45058 | cat >>confdefs.h <<\_ACEOF | |
45059 | #define wxUSE_DRAG_AND_DROP 1 | |
45060 | _ACEOF | |
45061 | ||
45062 | fi | |
45063 | ||
45064 | fi | |
45065 | ||
45066 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
45067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
45068 | fi | |
45069 | ||
45070 | if test "$wxUSE_SPLINES" = "yes" ; then | |
45071 | cat >>confdefs.h <<\_ACEOF | |
45072 | #define wxUSE_SPLINES 1 | |
45073 | _ACEOF | |
45074 | ||
45075 | fi | |
45076 | ||
fbe2ca43 SN |
45077 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
45078 | cat >>confdefs.h <<\_ACEOF | |
45079 | #define wxUSE_MOUSEWHEEL 1 | |
45080 | _ACEOF | |
45081 | ||
45082 | fi | |
45083 | ||
a848cd7e SC |
45084 | |
45085 | USES_CONTROLS=0 | |
45086 | if test "$wxUSE_CONTROLS" = "yes"; then | |
45087 | USES_CONTROLS=1 | |
45088 | fi | |
45089 | ||
45090 | if test "$wxUSE_ACCEL" = "yes"; then | |
45091 | cat >>confdefs.h <<\_ACEOF | |
45092 | #define wxUSE_ACCEL 1 | |
45093 | _ACEOF | |
45094 | ||
45095 | USES_CONTROLS=1 | |
45096 | fi | |
45097 | ||
45098 | if test "$wxUSE_BUTTON" = "yes"; then | |
45099 | cat >>confdefs.h <<\_ACEOF | |
45100 | #define wxUSE_BUTTON 1 | |
45101 | _ACEOF | |
45102 | ||
45103 | USES_CONTROLS=1 | |
45104 | fi | |
45105 | ||
45106 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
45107 | cat >>confdefs.h <<\_ACEOF | |
45108 | #define wxUSE_BMPBUTTON 1 | |
45109 | _ACEOF | |
45110 | ||
45111 | USES_CONTROLS=1 | |
45112 | fi | |
45113 | ||
45114 | if test "$wxUSE_CALCTRL" = "yes"; then | |
45115 | cat >>confdefs.h <<\_ACEOF | |
45116 | #define wxUSE_CALENDARCTRL 1 | |
45117 | _ACEOF | |
45118 | ||
45119 | USES_CONTROLS=1 | |
45120 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
45121 | fi | |
45122 | ||
45123 | if test "$wxUSE_CARET" = "yes"; then | |
45124 | cat >>confdefs.h <<\_ACEOF | |
45125 | #define wxUSE_CARET 1 | |
45126 | _ACEOF | |
45127 | ||
45128 | USES_CONTROLS=1 | |
45129 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
45130 | fi | |
45131 | ||
45132 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
45133 | cat >>confdefs.h <<\_ACEOF | |
45134 | #define wxUSE_COMBOBOX 1 | |
45135 | _ACEOF | |
45136 | ||
45137 | USES_CONTROLS=1 | |
45138 | fi | |
45139 | ||
a57d600f | 45140 | if test "$wxUSE_COMBOCTRL" = "yes"; then |
642bcba9 | 45141 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 45142 | #define wxUSE_COMBOCTRL 1 |
642bcba9 VZ |
45143 | _ACEOF |
45144 | ||
45145 | USES_CONTROLS=1 | |
45146 | fi | |
45147 | ||
a848cd7e SC |
45148 | if test "$wxUSE_CHOICE" = "yes"; then |
45149 | cat >>confdefs.h <<\_ACEOF | |
45150 | #define wxUSE_CHOICE 1 | |
45151 | _ACEOF | |
45152 | ||
45153 | USES_CONTROLS=1 | |
45154 | fi | |
45155 | ||
92bbdbcd WS |
45156 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
45157 | cat >>confdefs.h <<\_ACEOF | |
45158 | #define wxUSE_CHOICEBOOK 1 | |
45159 | _ACEOF | |
45160 | ||
45161 | USES_CONTROLS=1 | |
45162 | fi | |
45163 | ||
a848cd7e SC |
45164 | if test "$wxUSE_CHECKBOX" = "yes"; then |
45165 | cat >>confdefs.h <<\_ACEOF | |
45166 | #define wxUSE_CHECKBOX 1 | |
45167 | _ACEOF | |
45168 | ||
45169 | USES_CONTROLS=1 | |
45170 | fi | |
45171 | ||
45172 | if test "$wxUSE_CHECKLST" = "yes"; then | |
45173 | cat >>confdefs.h <<\_ACEOF | |
45174 | #define wxUSE_CHECKLISTBOX 1 | |
45175 | _ACEOF | |
45176 | ||
45177 | USES_CONTROLS=1 | |
45178 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
45179 | fi | |
45180 | ||
e9263684 VZ |
45181 | if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then |
45182 | cat >>confdefs.h <<\_ACEOF | |
45183 | #define wxUSE_COLOURPICKERCTRL 1 | |
45184 | _ACEOF | |
45185 | ||
45186 | USES_CONTROLS=1 | |
45187 | fi | |
45188 | ||
da98e9be VZ |
45189 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
45190 | cat >>confdefs.h <<\_ACEOF | |
45191 | #define wxUSE_DATEPICKCTRL 1 | |
45192 | _ACEOF | |
45193 | ||
45194 | USES_CONTROLS=1 | |
45195 | fi | |
45196 | ||
e9263684 VZ |
45197 | if test "$wxUSE_DIRPICKERCTRL" = "yes"; then |
45198 | cat >>confdefs.h <<\_ACEOF | |
45199 | #define wxUSE_DIRPICKERCTRL 1 | |
45200 | _ACEOF | |
45201 | ||
45202 | USES_CONTROLS=1 | |
45203 | fi | |
45204 | ||
45205 | if test "$wxUSE_FILEPICKERCTRL" = "yes"; then | |
45206 | cat >>confdefs.h <<\_ACEOF | |
45207 | #define wxUSE_FILEPICKERCTRL 1 | |
45208 | _ACEOF | |
45209 | ||
45210 | USES_CONTROLS=1 | |
45211 | fi | |
45212 | ||
45213 | if test "$wxUSE_FONTPICKERCTRL" = "yes"; then | |
45214 | cat >>confdefs.h <<\_ACEOF | |
45215 | #define wxUSE_FONTPICKERCTRL 1 | |
45216 | _ACEOF | |
45217 | ||
45218 | USES_CONTROLS=1 | |
45219 | fi | |
45220 | ||
a848cd7e SC |
45221 | if test "$wxUSE_DISPLAY" = "yes"; then |
45222 | cat >>confdefs.h <<\_ACEOF | |
45223 | #define wxUSE_DISPLAY 1 | |
45224 | _ACEOF | |
45225 | ||
0b78747f | 45226 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
45227 | fi |
45228 | ||
45229 | if test "$wxUSE_GAUGE" = "yes"; then | |
45230 | cat >>confdefs.h <<\_ACEOF | |
45231 | #define wxUSE_GAUGE 1 | |
45232 | _ACEOF | |
45233 | ||
45234 | USES_CONTROLS=1 | |
45235 | fi | |
45236 | ||
45237 | if test "$wxUSE_GRID" = "yes"; then | |
45238 | cat >>confdefs.h <<\_ACEOF | |
45239 | #define wxUSE_GRID 1 | |
45240 | _ACEOF | |
45241 | ||
45242 | USES_CONTROLS=1 | |
45243 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
45244 | fi | |
45245 | ||
6954625c VZ |
45246 | if test "$wxUSE_HYPERLINKCTRL" = "yes"; then |
45247 | cat >>confdefs.h <<\_ACEOF | |
45248 | #define wxUSE_HYPERLINKCTRL 1 | |
45249 | _ACEOF | |
45250 | ||
45251 | USES_CONTROLS=1 | |
45252 | fi | |
45253 | ||
95a46303 RR |
45254 | if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then |
45255 | cat >>confdefs.h <<\_ACEOF | |
45256 | #define wxUSE_BITMAPCOMBOBOX 1 | |
45257 | _ACEOF | |
45258 | ||
45259 | USES_CONTROLS=1 | |
45260 | fi | |
45261 | ||
20e34ecc RR |
45262 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
45263 | cat >>confdefs.h <<\_ACEOF | |
45264 | #define wxUSE_DATAVIEWCTRL 1 | |
45265 | _ACEOF | |
45266 | ||
45267 | USES_CONTROLS=1 | |
45268 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
45269 | fi | |
45270 | ||
a848cd7e SC |
45271 | if test "$wxUSE_IMAGLIST" = "yes"; then |
45272 | cat >>confdefs.h <<\_ACEOF | |
45273 | #define wxUSE_IMAGLIST 1 | |
45274 | _ACEOF | |
45275 | ||
45276 | fi | |
45277 | ||
45278 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
45279 | cat >>confdefs.h <<\_ACEOF | |
45280 | #define wxUSE_LISTBOOK 1 | |
45281 | _ACEOF | |
45282 | ||
45283 | USES_CONTROLS=1 | |
45284 | fi | |
45285 | ||
45286 | if test "$wxUSE_LISTBOX" = "yes"; then | |
45287 | cat >>confdefs.h <<\_ACEOF | |
45288 | #define wxUSE_LISTBOX 1 | |
45289 | _ACEOF | |
45290 | ||
45291 | USES_CONTROLS=1 | |
0b78747f | 45292 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
45293 | fi |
45294 | ||
45295 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
45296 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
45297 | cat >>confdefs.h <<\_ACEOF | |
45298 | #define wxUSE_LISTCTRL 1 | |
45299 | _ACEOF | |
45300 | ||
45301 | USES_CONTROLS=1 | |
45302 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
45303 | else | |
45304 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
45305 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
45306 | fi | |
45307 | fi | |
45308 | ||
45309 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
45310 | cat >>confdefs.h <<\_ACEOF | |
45311 | #define wxUSE_NOTEBOOK 1 | |
45312 | _ACEOF | |
45313 | ||
45314 | USES_CONTROLS=1 | |
45315 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
45316 | fi | |
45317 | ||
a57d600f | 45318 | if test "$wxUSE_ODCOMBOBOX" = "yes"; then |
642bcba9 | 45319 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 45320 | #define wxUSE_ODCOMBOBOX 1 |
642bcba9 VZ |
45321 | _ACEOF |
45322 | ||
45323 | USES_CONTROLS=1 | |
45324 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo" | |
45325 | fi | |
45326 | ||
a848cd7e SC |
45327 | |
45328 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
45329 | cat >>confdefs.h <<\_ACEOF | |
45330 | #define wxUSE_RADIOBOX 1 | |
45331 | _ACEOF | |
45332 | ||
45333 | USES_CONTROLS=1 | |
45334 | fi | |
45335 | ||
45336 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
45337 | cat >>confdefs.h <<\_ACEOF | |
45338 | #define wxUSE_RADIOBTN 1 | |
45339 | _ACEOF | |
45340 | ||
45341 | USES_CONTROLS=1 | |
45342 | fi | |
45343 | ||
45344 | if test "$wxUSE_SASH" = "yes"; then | |
45345 | cat >>confdefs.h <<\_ACEOF | |
45346 | #define wxUSE_SASH 1 | |
45347 | _ACEOF | |
45348 | ||
45349 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
45350 | fi | |
45351 | ||
45352 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
45353 | cat >>confdefs.h <<\_ACEOF | |
45354 | #define wxUSE_SCROLLBAR 1 | |
45355 | _ACEOF | |
45356 | ||
45357 | USES_CONTROLS=1 | |
45358 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
45359 | fi | |
45360 | ||
45361 | if test "$wxUSE_SLIDER" = "yes"; then | |
45362 | cat >>confdefs.h <<\_ACEOF | |
45363 | #define wxUSE_SLIDER 1 | |
45364 | _ACEOF | |
45365 | ||
45366 | USES_CONTROLS=1 | |
45367 | fi | |
45368 | ||
45369 | if test "$wxUSE_SPINBTN" = "yes"; then | |
45370 | cat >>confdefs.h <<\_ACEOF | |
45371 | #define wxUSE_SPINBTN 1 | |
45372 | _ACEOF | |
45373 | ||
45374 | USES_CONTROLS=1 | |
45375 | fi | |
45376 | ||
45377 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
45378 | cat >>confdefs.h <<\_ACEOF | |
45379 | #define wxUSE_SPINCTRL 1 | |
45380 | _ACEOF | |
45381 | ||
45382 | USES_CONTROLS=1 | |
45383 | fi | |
45384 | ||
45385 | if test "$wxUSE_SPLITTER" = "yes"; then | |
45386 | cat >>confdefs.h <<\_ACEOF | |
45387 | #define wxUSE_SPLITTER 1 | |
45388 | _ACEOF | |
45389 | ||
45390 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
45391 | fi | |
45392 | ||
45393 | if test "$wxUSE_STATBMP" = "yes"; then | |
45394 | cat >>confdefs.h <<\_ACEOF | |
45395 | #define wxUSE_STATBMP 1 | |
45396 | _ACEOF | |
45397 | ||
45398 | USES_CONTROLS=1 | |
45399 | fi | |
45400 | ||
45401 | if test "$wxUSE_STATBOX" = "yes"; then | |
45402 | cat >>confdefs.h <<\_ACEOF | |
45403 | #define wxUSE_STATBOX 1 | |
45404 | _ACEOF | |
45405 | ||
45406 | USES_CONTROLS=1 | |
45407 | fi | |
45408 | ||
45409 | if test "$wxUSE_STATTEXT" = "yes"; then | |
45410 | cat >>confdefs.h <<\_ACEOF | |
45411 | #define wxUSE_STATTEXT 1 | |
45412 | _ACEOF | |
45413 | ||
45414 | USES_CONTROLS=1 | |
45415 | fi | |
45416 | ||
45417 | if test "$wxUSE_STATLINE" = "yes"; then | |
45418 | cat >>confdefs.h <<\_ACEOF | |
45419 | #define wxUSE_STATLINE 1 | |
45420 | _ACEOF | |
45421 | ||
45422 | USES_CONTROLS=1 | |
45423 | fi | |
45424 | ||
45425 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
45426 | cat >>confdefs.h <<\_ACEOF |
45427 | #define wxUSE_NATIVE_STATUSBAR 1 | |
45428 | _ACEOF | |
45429 | ||
a848cd7e SC |
45430 | cat >>confdefs.h <<\_ACEOF |
45431 | #define wxUSE_STATUSBAR 1 | |
45432 | _ACEOF | |
45433 | ||
45434 | USES_CONTROLS=1 | |
45435 | ||
45436 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
45437 | fi | |
45438 | ||
f10e38c4 | 45439 | if test "$wxUSE_TAB_DIALOG" = "yes"; then |
a848cd7e SC |
45440 | cat >>confdefs.h <<\_ACEOF |
45441 | #define wxUSE_TAB_DIALOG 1 | |
45442 | _ACEOF | |
45443 | ||
a848cd7e SC |
45444 | fi |
45445 | ||
45446 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
45447 | cat >>confdefs.h <<\_ACEOF | |
45448 | #define wxUSE_TEXTCTRL 1 | |
45449 | _ACEOF | |
45450 | ||
45451 | USES_CONTROLS=1 | |
45452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
45453 | fi | |
45454 | ||
45455 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
45456 | if test "$wxUSE_COCOA" = 1 ; then | |
45457 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
45458 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
45459 | wxUSE_TOGGLEBTN=no | |
45460 | fi | |
a848cd7e SC |
45461 | |
45462 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
45463 | cat >>confdefs.h <<\_ACEOF | |
45464 | #define wxUSE_TOGGLEBTN 1 | |
45465 | _ACEOF | |
45466 | ||
45467 | USES_CONTROLS=1 | |
45468 | fi | |
45469 | fi | |
45470 | ||
a848cd7e SC |
45471 | if test "$wxUSE_TOOLBAR" = "yes"; then |
45472 | cat >>confdefs.h <<\_ACEOF | |
45473 | #define wxUSE_TOOLBAR 1 | |
45474 | _ACEOF | |
45475 | ||
45476 | USES_CONTROLS=1 | |
45477 | ||
452b6243 VS |
45478 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
45479 | wxUSE_TOOLBAR_NATIVE="no" | |
45480 | else | |
45481 | wxUSE_TOOLBAR_NATIVE="yes" | |
a848cd7e SC |
45482 | cat >>confdefs.h <<\_ACEOF |
45483 | #define wxUSE_TOOLBAR_NATIVE 1 | |
45484 | _ACEOF | |
45485 | ||
a848cd7e SC |
45486 | fi |
45487 | ||
45488 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
45489 | fi | |
45490 | ||
45491 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
45492 | if test "$wxUSE_MOTIF" = 1; then | |
45493 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
45494 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
45495 | else | |
45496 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
45497 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
45498 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
45499 | else | |
45500 | cat >>confdefs.h <<\_ACEOF | |
45501 | #define wxUSE_TOOLTIPS 1 | |
45502 | _ACEOF | |
45503 | ||
45504 | fi | |
45505 | fi | |
45506 | fi | |
45507 | ||
0093c2fc VZ |
45508 | if test "$wxUSE_TREEBOOK" = "yes"; then |
45509 | cat >>confdefs.h <<\_ACEOF | |
45510 | #define wxUSE_TREEBOOK 1 | |
45511 | _ACEOF | |
45512 | ||
45513 | USES_CONTROLS=1 | |
45514 | fi | |
45515 | ||
5ec3bc43 JS |
45516 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
45517 | cat >>confdefs.h <<\_ACEOF | |
45518 | #define wxUSE_TOOLBOOK 1 | |
45519 | _ACEOF | |
45520 | ||
45521 | USES_CONTROLS=1 | |
45522 | fi | |
45523 | ||
a848cd7e SC |
45524 | if test "$wxUSE_TREECTRL" = "yes"; then |
45525 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
45526 | cat >>confdefs.h <<\_ACEOF | |
45527 | #define wxUSE_TREECTRL 1 | |
45528 | _ACEOF | |
45529 | ||
45530 | USES_CONTROLS=1 | |
45531 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
45532 | else | |
45533 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
45534 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
45535 | fi | |
45536 | fi | |
45537 | ||
45538 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
45539 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
45540 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
45541 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
45542 | else | |
45543 | if test "$wxUSE_PM" = 1; then | |
45544 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
45545 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
45546 | else | |
45547 | cat >>confdefs.h <<\_ACEOF | |
45548 | #define wxUSE_POPUPWIN 1 | |
45549 | _ACEOF | |
45550 | ||
0b78747f | 45551 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
45552 | |
45553 | USES_CONTROLS=1 | |
45554 | fi | |
45555 | fi | |
45556 | fi | |
45557 | ||
0dcd06dd | 45558 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
45559 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
45560 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
45561 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
45562 | else | |
45563 | cat >>confdefs.h <<\_ACEOF | |
45564 | #define wxUSE_DIALUP_MANAGER 1 | |
45565 | _ACEOF | |
45566 | ||
45567 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
45568 | fi | |
45569 | fi | |
45570 | ||
a848cd7e SC |
45571 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
45572 | if test "$wxUSE_PM" = 1; then | |
45573 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
45574 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
45575 | else | |
45576 | cat >>confdefs.h <<\_ACEOF | |
45577 | #define wxUSE_TIPWINDOW 1 | |
45578 | _ACEOF | |
45579 | ||
45580 | fi | |
45581 | fi | |
45582 | ||
45583 | if test "$USES_CONTROLS" = 1; then | |
45584 | cat >>confdefs.h <<\_ACEOF | |
45585 | #define wxUSE_CONTROLS 1 | |
45586 | _ACEOF | |
45587 | ||
45588 | fi | |
45589 | ||
45590 | ||
45591 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
45592 | cat >>confdefs.h <<\_ACEOF | |
45593 | #define wxUSE_ACCESSIBILITY 1 | |
45594 | _ACEOF | |
45595 | ||
45596 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
45597 | fi | |
45598 | ||
38b4a946 VZ |
45599 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
45600 | cat >>confdefs.h <<\_ACEOF | |
45601 | #define wxUSE_DC_CACHEING 1 | |
45602 | _ACEOF | |
45603 | ||
45604 | fi | |
45605 | ||
a848cd7e SC |
45606 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
45607 | cat >>confdefs.h <<\_ACEOF | |
45608 | #define wxUSE_DRAGIMAGE 1 | |
45609 | _ACEOF | |
45610 | ||
45611 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
45612 | fi | |
45613 | ||
45614 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
45615 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
45616 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
45617 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
45618 | else | |
45619 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
45620 | #define wxUSE_EXCEPTIONS 1 |
45621 | _ACEOF | |
45622 | ||
07bea8f0 VS |
45623 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
45624 | fi | |
a848cd7e SC |
45625 | fi |
45626 | ||
45627 | USE_HTML=0 | |
45628 | if test "$wxUSE_HTML" = "yes"; then | |
45629 | cat >>confdefs.h <<\_ACEOF | |
45630 | #define wxUSE_HTML 1 | |
45631 | _ACEOF | |
45632 | ||
45633 | USE_HTML=1 | |
45634 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
45635 | if test "$wxUSE_MAC" = 1; then |
45636 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
45637 | fi | |
a848cd7e | 45638 | fi |
646b6ec1 | 45639 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 45640 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 45641 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 45642 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
45643 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
45644 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
45645 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
45646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45647 | else | |
45648 | cat >conftest.$ac_ext <<_ACEOF | |
45649 | /* confdefs.h. */ | |
45650 | _ACEOF | |
45651 | cat confdefs.h >>conftest.$ac_ext | |
45652 | cat >>conftest.$ac_ext <<_ACEOF | |
45653 | /* end confdefs.h. */ | |
45654 | #include <Carbon/Carbon.h> | |
45655 | ||
45656 | #include <WebKit/HIWebView.h> | |
45657 | _ACEOF | |
45658 | rm -f conftest.$ac_objext | |
45659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45660 | (eval $ac_compile) 2>conftest.er1 | |
45661 | ac_status=$? | |
45662 | grep -v '^ *+' conftest.er1 >conftest.err | |
45663 | rm -f conftest.er1 | |
45664 | cat conftest.err >&5 | |
45665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45666 | (exit $ac_status); } && | |
ca5c6ac3 | 45667 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
45668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45669 | (eval $ac_try) 2>&5 | |
45670 | ac_status=$? | |
45671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45672 | (exit $ac_status); }; } && | |
45673 | { ac_try='test -s conftest.$ac_objext' | |
45674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
45675 | (eval $ac_try) 2>&5 | |
45676 | ac_status=$? | |
45677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45678 | (exit $ac_status); }; }; then | |
45679 | ac_cv_header_WebKit_HIWebView_h=yes | |
45680 | else | |
45681 | echo "$as_me: failed program was:" >&5 | |
45682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45683 | ||
45684 | ac_cv_header_WebKit_HIWebView_h=no | |
45685 | fi | |
45686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
45687 | fi | |
45688 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
45689 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
45690 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
45691 | ||
45692 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
45693 | #define wxUSE_WEBKIT 1 |
45694 | _ACEOF | |
45695 | ||
07bea8f0 VS |
45696 | WEBKIT_LINK="-framework WebKit" |
45697 | ||
45698 | else | |
45699 | ||
45700 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
45701 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
45702 | wxUSE_WEBKIT=no | |
45703 | ||
646b6ec1 VS |
45704 | fi |
45705 | ||
07bea8f0 VS |
45706 | |
45707 | CPPFLAGS="$old_CPPFLAGS" | |
45708 | elif test "$wxUSE_COCOA" = 1; then | |
45709 | cat >>confdefs.h <<\_ACEOF | |
45710 | #define wxUSE_WEBKIT 1 | |
45711 | _ACEOF | |
45712 | ||
45713 | else | |
45714 | wxUSE_WEBKIT=no | |
45715 | fi | |
45716 | fi | |
45717 | ||
9a8f0513 VS |
45718 | USE_XRC=0 |
45719 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
45720 | if test "$wxUSE_XML" != "yes"; then |
45721 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
45722 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
45723 | wxUSE_XRC=no | |
45724 | else | |
45725 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
45726 | #define wxUSE_XRC 1 |
45727 | _ACEOF | |
45728 | ||
d2ebf0b7 VS |
45729 | USE_XRC=1 |
45730 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
45731 | fi | |
9a8f0513 | 45732 | fi |
07bea8f0 | 45733 | |
3f60522a JS |
45734 | USE_AUI=0 |
45735 | if test "$wxUSE_AUI" = "yes"; then | |
45736 | cat >>confdefs.h <<\_ACEOF | |
45737 | #define wxUSE_AUI 1 | |
45738 | _ACEOF | |
45739 | ||
45740 | USE_AUI=1 | |
45741 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui" | |
45742 | fi | |
45743 | ||
a848cd7e SC |
45744 | if test "$wxUSE_MENUS" = "yes"; then |
45745 | cat >>confdefs.h <<\_ACEOF | |
45746 | #define wxUSE_MENUS 1 | |
45747 | _ACEOF | |
45748 | ||
45749 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
45750 | fi | |
45751 | ||
45752 | if test "$wxUSE_METAFILE" = "yes"; then | |
45753 | cat >>confdefs.h <<\_ACEOF | |
45754 | #define wxUSE_METAFILE 1 | |
45755 | _ACEOF | |
45756 | ||
45757 | fi | |
45758 | ||
45759 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
45760 | cat >>confdefs.h <<\_ACEOF | |
45761 | #define wxUSE_MIMETYPE 1 | |
45762 | _ACEOF | |
45763 | ||
45764 | fi | |
45765 | ||
45766 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
45767 | cat >>confdefs.h <<\_ACEOF | |
45768 | #define wxUSE_MINIFRAME 1 | |
45769 | _ACEOF | |
45770 | ||
45771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
45772 | fi | |
45773 | ||
45774 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
45775 | cat >>confdefs.h <<\_ACEOF | |
45776 | #define wxUSE_SYSTEM_OPTIONS 1 | |
45777 | _ACEOF | |
45778 | ||
45779 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 45780 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
45781 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
45782 | fi | |
45783 | fi | |
45784 | ||
45785 | ||
45786 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
45787 | cat >>confdefs.h <<\_ACEOF | |
45788 | #define wxUSE_VALIDATORS 1 | |
45789 | _ACEOF | |
45790 | ||
45791 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
45792 | fi | |
45793 | ||
45794 | if test "$wxUSE_PALETTE" = "yes" ; then | |
45795 | cat >>confdefs.h <<\_ACEOF | |
45796 | #define wxUSE_PALETTE 1 | |
45797 | _ACEOF | |
45798 | ||
45799 | fi | |
45800 | ||
45801 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
45802 | LIBS=" -lunicows $LIBS" | |
45803 | fi | |
45804 | ||
91dea314 MW |
45805 | USE_RICHTEXT=0 |
45806 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
45807 | cat >>confdefs.h <<\_ACEOF | |
45808 | #define wxUSE_RICHTEXT 1 | |
45809 | _ACEOF | |
45810 | ||
45811 | USE_RICHTEXT=1 | |
45812 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
45813 | fi | |
45814 | ||
f43426c1 RD |
45815 | if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then |
45816 | cat >>confdefs.h <<\_ACEOF | |
45817 | #define wxUSE_GRAPHICS_CONTEXT 1 | |
45818 | _ACEOF | |
45819 | ||
45820 | fi | |
45821 | ||
a848cd7e SC |
45822 | |
45823 | if test "$wxUSE_IMAGE" = "yes" ; then | |
45824 | cat >>confdefs.h <<\_ACEOF | |
45825 | #define wxUSE_IMAGE 1 | |
45826 | _ACEOF | |
45827 | ||
45828 | ||
45829 | if test "$wxUSE_GIF" = "yes" ; then | |
45830 | cat >>confdefs.h <<\_ACEOF | |
45831 | #define wxUSE_GIF 1 | |
45832 | _ACEOF | |
45833 | ||
45834 | fi | |
45835 | ||
45836 | if test "$wxUSE_PCX" = "yes" ; then | |
45837 | cat >>confdefs.h <<\_ACEOF | |
45838 | #define wxUSE_PCX 1 | |
45839 | _ACEOF | |
45840 | ||
45841 | fi | |
45842 | ||
45843 | if test "$wxUSE_IFF" = "yes" ; then | |
45844 | cat >>confdefs.h <<\_ACEOF | |
45845 | #define wxUSE_IFF 1 | |
45846 | _ACEOF | |
45847 | ||
45848 | fi | |
45849 | ||
45850 | if test "$wxUSE_PNM" = "yes" ; then | |
45851 | cat >>confdefs.h <<\_ACEOF | |
45852 | #define wxUSE_PNM 1 | |
45853 | _ACEOF | |
45854 | ||
45855 | fi | |
45856 | ||
45857 | if test "$wxUSE_XPM" = "yes" ; then | |
45858 | cat >>confdefs.h <<\_ACEOF | |
45859 | #define wxUSE_XPM 1 | |
45860 | _ACEOF | |
45861 | ||
45862 | fi | |
45863 | ||
45864 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
45865 | cat >>confdefs.h <<\_ACEOF | |
45866 | #define wxUSE_ICO_CUR 1 | |
45867 | _ACEOF | |
45868 | ||
45869 | fi | |
45870 | fi | |
45871 | ||
45872 | ||
45873 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
45874 | cat >>confdefs.h <<\_ACEOF | |
45875 | #define wxUSE_CHOICEDLG 1 | |
45876 | _ACEOF | |
45877 | ||
45878 | fi | |
45879 | ||
45880 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
45881 | cat >>confdefs.h <<\_ACEOF | |
45882 | #define wxUSE_COLOURDLG 1 | |
45883 | _ACEOF | |
45884 | ||
45885 | fi | |
45886 | ||
45887 | if test "$wxUSE_FILEDLG" = "yes"; then | |
45888 | cat >>confdefs.h <<\_ACEOF | |
45889 | #define wxUSE_FILEDLG 1 | |
45890 | _ACEOF | |
45891 | ||
45892 | fi | |
45893 | ||
45894 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
45895 | cat >>confdefs.h <<\_ACEOF | |
45896 | #define wxUSE_FINDREPLDLG 1 | |
45897 | _ACEOF | |
45898 | ||
45899 | fi | |
45900 | ||
45901 | if test "$wxUSE_FONTDLG" = "yes"; then | |
45902 | cat >>confdefs.h <<\_ACEOF | |
45903 | #define wxUSE_FONTDLG 1 | |
45904 | _ACEOF | |
45905 | ||
45906 | fi | |
45907 | ||
45908 | if test "$wxUSE_DIRDLG" = "yes"; then | |
45909 | if test "$wxUSE_TREECTRL" != "yes"; then | |
45910 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
45911 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
45912 | else | |
45913 | cat >>confdefs.h <<\_ACEOF | |
45914 | #define wxUSE_DIRDLG 1 | |
45915 | _ACEOF | |
45916 | ||
45917 | fi | |
45918 | fi | |
45919 | ||
45920 | if test "$wxUSE_MSGDLG" = "yes"; then | |
45921 | cat >>confdefs.h <<\_ACEOF | |
45922 | #define wxUSE_MSGDLG 1 | |
45923 | _ACEOF | |
45924 | ||
45925 | fi | |
45926 | ||
45927 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
45928 | cat >>confdefs.h <<\_ACEOF | |
45929 | #define wxUSE_NUMBERDLG 1 | |
45930 | _ACEOF | |
45931 | ||
45932 | fi | |
45933 | ||
45934 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
45935 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
45936 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
45937 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
45938 | else | |
45939 | cat >>confdefs.h <<\_ACEOF | |
45940 | #define wxUSE_PROGRESSDLG 1 | |
45941 | _ACEOF | |
45942 | ||
45943 | fi | |
45944 | fi | |
45945 | ||
45946 | if test "$wxUSE_SPLASH" = "yes"; then | |
45947 | cat >>confdefs.h <<\_ACEOF | |
45948 | #define wxUSE_SPLASH 1 | |
45949 | _ACEOF | |
45950 | ||
2057db16 | 45951 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
45952 | fi |
45953 | ||
45954 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
45955 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
45956 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
45957 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
45958 | else | |
45959 | cat >>confdefs.h <<\_ACEOF | |
45960 | #define wxUSE_STARTUP_TIPS 1 | |
45961 | _ACEOF | |
45962 | ||
45963 | fi | |
45964 | fi | |
45965 | ||
45966 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
45967 | cat >>confdefs.h <<\_ACEOF | |
45968 | #define wxUSE_TEXTDLG 1 | |
45969 | _ACEOF | |
45970 | ||
45971 | fi | |
45972 | ||
45973 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
45974 | cat >>confdefs.h <<\_ACEOF | |
45975 | #define wxUSE_WIZARDDLG 1 | |
45976 | _ACEOF | |
45977 | ||
45978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
45979 | fi | |
45980 | ||
45981 | ||
f10e38c4 VZ |
45982 | USE_MEDIA=0 |
45983 | ||
ce756cb0 | 45984 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
2f6c5bb5 VZ |
45985 | USE_MEDIA=1 |
45986 | ||
ce756cb0 | 45987 | if test "$wxUSE_GTK" = 1; then |
c9a66001 | 45988 | wxUSE_GSTREAMER="no" |
ce756cb0 | 45989 | |
f10e38c4 VZ |
45990 | GST_VERSION_MAJOR=0 |
45991 | GST_VERSION_MINOR=10 | |
2f6c5bb5 | 45992 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR |
f10e38c4 VZ |
45993 | |
45994 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 45995 | |
3ecd9f92 MW |
45996 | pkg_failed=no |
45997 | echo "$as_me:$LINENO: checking for GST" >&5 | |
45998 | echo $ECHO_N "checking for GST... $ECHO_C" >&6 | |
ce756cb0 | 45999 | |
3ecd9f92 MW |
46000 | if test -n "$PKG_CONFIG"; then |
46001 | if test -n "$GST_CFLAGS"; then | |
46002 | pkg_cv_GST_CFLAGS="$GST_CFLAGS" | |
46003 | else | |
46004 | if test -n "$PKG_CONFIG" && \ | |
46005 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5 | |
46006 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5 | |
46007 | ac_status=$? | |
46008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46009 | (exit $ac_status); }; then | |
46010 | pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null` | |
dae87f93 | 46011 | else |
3ecd9f92 MW |
46012 | pkg_failed=yes |
46013 | fi | |
46014 | fi | |
46015 | else | |
46016 | pkg_failed=untried | |
dae87f93 | 46017 | fi |
dae87f93 | 46018 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
46019 | if test -n "$GST_LIBS"; then |
46020 | pkg_cv_GST_LIBS="$GST_LIBS" | |
46021 | else | |
46022 | if test -n "$PKG_CONFIG" && \ | |
46023 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5 | |
46024 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5 | |
46025 | ac_status=$? | |
46026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46027 | (exit $ac_status); }; then | |
46028 | pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null` | |
dae87f93 | 46029 | else |
3ecd9f92 MW |
46030 | pkg_failed=yes |
46031 | fi | |
46032 | fi | |
46033 | else | |
46034 | pkg_failed=untried | |
dae87f93 RN |
46035 | fi |
46036 | ||
dae87f93 | 46037 | |
2f6c5bb5 | 46038 | |
3ecd9f92 | 46039 | if test $pkg_failed = yes; then |
ce756cb0 | 46040 | |
3ecd9f92 MW |
46041 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
46042 | _pkg_short_errors_supported=yes | |
46043 | else | |
46044 | _pkg_short_errors_supported=no | |
46045 | fi | |
46046 | if test $_pkg_short_errors_supported = yes; then | |
46047 | GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` | |
46048 | else | |
46049 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"` | |
dae87f93 | 46050 | fi |
3ecd9f92 MW |
46051 | # Put the nasty error message in config.log where it belongs |
46052 | echo "$GST_PKG_ERRORS" >&5 | |
dae87f93 RN |
46053 | |
46054 | ||
3ecd9f92 MW |
46055 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
46056 | echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
46057 | GST_VERSION_MINOR=8 | |
dae87f93 | 46058 | |
ce756cb0 | 46059 | |
3ecd9f92 | 46060 | elif test $pkg_failed = untried; then |
dae87f93 | 46061 | |
2f6c5bb5 VZ |
46062 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
46063 | echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
f10e38c4 | 46064 | GST_VERSION_MINOR=8 |
dae87f93 | 46065 | |
2f6c5bb5 | 46066 | |
3ecd9f92 MW |
46067 | else |
46068 | GST_CFLAGS=$pkg_cv_GST_CFLAGS | |
46069 | GST_LIBS=$pkg_cv_GST_LIBS | |
46070 | echo "$as_me:$LINENO: result: yes" >&5 | |
46071 | echo "${ECHO_T}yes" >&6 | |
46072 | ||
46073 | wxUSE_GSTREAMER="yes" | |
46074 | GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION" | |
dae87f93 | 46075 | |
3ecd9f92 | 46076 | fi |
2f6c5bb5 VZ |
46077 | else |
46078 | GST_VERSION_MINOR=8 | |
f10e38c4 | 46079 | fi |
dae87f93 | 46080 | |
2f6c5bb5 VZ |
46081 | if test $GST_VERSION_MINOR = "8"; then |
46082 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 46083 | |
3ecd9f92 MW |
46084 | pkg_failed=no |
46085 | echo "$as_me:$LINENO: checking for GST" >&5 | |
46086 | echo $ECHO_N "checking for GST... $ECHO_C" >&6 | |
dae87f93 | 46087 | |
3ecd9f92 MW |
46088 | if test -n "$PKG_CONFIG"; then |
46089 | if test -n "$GST_CFLAGS"; then | |
46090 | pkg_cv_GST_CFLAGS="$GST_CFLAGS" | |
46091 | else | |
46092 | if test -n "$PKG_CONFIG" && \ | |
46093 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5 | |
46094 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5 | |
46095 | ac_status=$? | |
46096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46097 | (exit $ac_status); }; then | |
46098 | pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null` | |
dae87f93 | 46099 | else |
3ecd9f92 MW |
46100 | pkg_failed=yes |
46101 | fi | |
46102 | fi | |
46103 | else | |
46104 | pkg_failed=untried | |
dae87f93 | 46105 | fi |
f10e38c4 | 46106 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
46107 | if test -n "$GST_LIBS"; then |
46108 | pkg_cv_GST_LIBS="$GST_LIBS" | |
46109 | else | |
46110 | if test -n "$PKG_CONFIG" && \ | |
46111 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5 | |
46112 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5 | |
46113 | ac_status=$? | |
46114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46115 | (exit $ac_status); }; then | |
46116 | pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null` | |
dae87f93 | 46117 | else |
3ecd9f92 MW |
46118 | pkg_failed=yes |
46119 | fi | |
46120 | fi | |
46121 | else | |
46122 | pkg_failed=untried | |
dae87f93 RN |
46123 | fi |
46124 | ||
ce756cb0 | 46125 | |
2f6c5bb5 | 46126 | |
3ecd9f92 | 46127 | if test $pkg_failed = yes; then |
dae87f93 | 46128 | |
3ecd9f92 MW |
46129 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
46130 | _pkg_short_errors_supported=yes | |
46131 | else | |
46132 | _pkg_short_errors_supported=no | |
46133 | fi | |
46134 | if test $_pkg_short_errors_supported = yes; then | |
46135 | GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` | |
46136 | else | |
46137 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` | |
dae87f93 | 46138 | fi |
3ecd9f92 MW |
46139 | # Put the nasty error message in config.log where it belongs |
46140 | echo "$GST_PKG_ERRORS" >&5 | |
dae87f93 RN |
46141 | |
46142 | ||
3ecd9f92 MW |
46143 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5 |
46144 | echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 46145 | |
3ecd9f92 | 46146 | elif test $pkg_failed = untried; then |
ce756cb0 | 46147 | |
2f6c5bb5 VZ |
46148 | { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5 |
46149 | echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 46150 | |
3ecd9f92 MW |
46151 | else |
46152 | GST_CFLAGS=$pkg_cv_GST_CFLAGS | |
46153 | GST_LIBS=$pkg_cv_GST_LIBS | |
46154 | echo "$as_me:$LINENO: result: yes" >&5 | |
46155 | echo "${ECHO_T}yes" >&6 | |
46156 | wxUSE_GSTREAMER="yes" | |
46157 | fi | |
dae87f93 | 46158 | fi |
ce756cb0 | 46159 | |
f10e38c4 | 46160 | |
dae87f93 | 46161 | if test "$wxUSE_GSTREAMER" = "yes"; then |
c9a66001 VZ |
46162 | case "${host}" in |
46163 | *-*-solaris2* ) | |
46164 | if "$GCC" = yes; then | |
46165 | GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'` | |
46166 | GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'` | |
46167 | fi | |
46168 | esac | |
46169 | ||
46170 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" | |
46171 | LIBS="$GST_LIBS $LIBS" | |
46172 | ||
dae87f93 | 46173 | cat >>confdefs.h <<\_ACEOF |
ce756cb0 RN |
46174 | #define wxUSE_GSTREAMER 1 |
46175 | _ACEOF | |
46176 | ||
2f6c5bb5 VZ |
46177 | else |
46178 | USE_MEDIA=0 | |
ce756cb0 RN |
46179 | fi |
46180 | fi | |
2f6c5bb5 VZ |
46181 | |
46182 | if test $USE_MEDIA = 1; then | |
46183 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
46184 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
46185 | #define wxUSE_MEDIACTRL 1 |
46186 | _ACEOF | |
46187 | ||
2f6c5bb5 | 46188 | fi |
ce756cb0 RN |
46189 | fi |
46190 | ||
46191 | ||
a848cd7e SC |
46192 | if test "$cross_compiling" = "yes"; then |
46193 | OSINFO="\"$host\"" | |
46194 | else | |
46195 | OSINFO=`uname -s -r -m` | |
46196 | OSINFO="\"$OSINFO\"" | |
46197 | fi | |
46198 | ||
46199 | cat >>confdefs.h <<_ACEOF | |
46200 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
46201 | _ACEOF | |
46202 | ||
46203 | ||
46204 | ||
46205 | if test "x$prefix" != "xNONE"; then | |
46206 | wxPREFIX=$prefix | |
46207 | else | |
46208 | wxPREFIX=$ac_default_prefix | |
46209 | fi | |
46210 | ||
46211 | cat >>confdefs.h <<_ACEOF | |
46212 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
46213 | _ACEOF | |
46214 | ||
46215 | ||
a848cd7e SC |
46216 | |
46217 | ||
46218 | CORE_BASE_LIBS="net base" | |
46219 | CORE_GUI_LIBS="adv core" | |
46220 | ||
46221 | if test "$wxUSE_XML" = "yes" ; then | |
46222 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
46223 | fi | |
46224 | if test "$wxUSE_ODBC" != "no" ; then | |
46225 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
46226 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
46227 | fi | |
46228 | if test "$wxUSE_HTML" = "yes" ; then | |
46229 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
46230 | fi | |
61639efb VZ |
46231 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
46232 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
46233 | fi | |
9a8f0513 VS |
46234 | if test "$wxUSE_XRC" = "yes" ; then |
46235 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
46236 | fi | |
3f60522a JS |
46237 | if test "$wxUSE_AUI" = "yes" ; then |
46238 | CORE_GUI_LIBS="aui $CORE_GUI_LIBS" | |
46239 | fi | |
a848cd7e SC |
46240 | |
46241 | if test "$wxUSE_GUI" != "yes"; then | |
46242 | CORE_GUI_LIBS="" | |
46243 | fi | |
46244 | ||
46245 | ||
46246 | ||
46247 | ||
46248 | ||
5d7b7554 VZ |
46249 | ac_ext=c |
46250 | ac_cpp='$CPP $CPPFLAGS' | |
46251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
46252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
46253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
46254 | ||
a848cd7e SC |
46255 | |
46256 | ||
a848cd7e | 46257 | if test "$wxUSE_MAC" = 1 ; then |
a98bf0c0 | 46258 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
46259 | if test "$USE_DARWIN" = 1; then |
46260 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
46261 | else | |
46262 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
46263 | fi | |
07bea8f0 | 46264 | fi |
5dcf30a0 | 46265 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
46266 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
46267 | else | |
46268 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 46269 | fi |
a848cd7e SC |
46270 | fi |
46271 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 46272 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
46273 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
46274 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
46275 | fi | |
a848cd7e | 46276 | fi |
19b27e78 MW |
46277 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
46278 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
46279 | fi | |
a848cd7e | 46280 | |
a848cd7e SC |
46281 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
46282 | ||
a848cd7e SC |
46283 | if test "$wxUSE_GUI" = "yes"; then |
46284 | ||
46285 | ||
8bce5cda MW |
46286 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
46287 | dynamic erase event exec font image minimal mobile \ | |
46288 | mobile/wxedit mobile/styles propsize render \ | |
9e39d889 | 46289 | rotate shaped vscroll widgets" |
a848cd7e SC |
46290 | |
46291 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
46292 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
46293 | fi | |
0b78747f | 46294 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
46295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
46296 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
46297 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
46298 | fi | |
46299 | fi | |
46300 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
46301 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 46302 | fi |
a848cd7e SC |
46303 | else |
46304 | SAMPLES_SUBDIRS="console" | |
46305 | fi | |
46306 | ||
46307 | ||
48f625bc | 46308 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
46309 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
46310 | elif test "$GCC" = yes ; then | |
46311 | CWARNINGS="-Wall -Wundef" | |
46312 | fi | |
46313 | ||
48f625bc | 46314 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 46315 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
46316 | elif test "$GXX" = yes ; then |
46317 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 46318 | fi |
a848cd7e | 46319 | |
a848cd7e | 46320 | |
5ff751d6 VZ |
46321 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
46322 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
46323 | ||
46324 | ||
c92ad099 | 46325 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 46326 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
46327 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
46328 | $CPPFLAGS ` | |
5ff751d6 | 46329 | |
8aeeb05c | 46330 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 46331 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 46332 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
46333 | |
46334 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
46335 | ||
a848cd7e | 46336 | |
95986553 DE |
46337 | if test "x$MWCC" = "xyes"; then |
46338 | ||
46339 | CC="$CC -cwd source -I-" | |
46340 | CXX="$CXX -cwd source -I-" | |
46341 | fi | |
46342 | ||
a848cd7e | 46343 | |
0c3c69fc | 46344 | LIBS=`echo $LIBS` |
a848cd7e SC |
46345 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
46346 | EXTRALIBS_XML="$EXPAT_LINK" | |
46347 | EXTRALIBS_HTML="$MSPACK_LINK" | |
46348 | EXTRALIBS_ODBC="$ODBC_LINK" | |
46349 | if test "$wxUSE_GUI" = "yes"; then | |
2b850ae1 | 46350 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
46351 | fi |
46352 | if test "$wxUSE_OPENGL" = "yes"; then | |
46353 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
46354 | fi | |
46355 | ||
8aeeb05c | 46356 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 46357 | |
5ff751d6 | 46358 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
46359 | |
46360 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 46361 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
46362 | fi |
46363 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 46364 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
46365 | fi |
46366 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 46367 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
46368 | fi |
46369 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 46370 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
46371 | fi |
46372 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 46373 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
46374 | fi |
46375 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 46376 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
46377 | fi |
46378 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 46379 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
46380 | fi |
46381 | ||
46382 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 46383 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
46384 | done |
46385 | ||
46386 | ||
46387 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
46388 | WXUNIV=1 | |
4353a8df VZ |
46389 | |
46390 | case "$wxUNIV_THEMES" in | |
46391 | ''|all) | |
46392 | cat >>confdefs.h <<\_ACEOF | |
46393 | #define wxUSE_ALL_THEMES 1 | |
46394 | _ACEOF | |
46395 | ||
46396 | ;; | |
46397 | ||
46398 | *) | |
46399 | for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do | |
46400 | cat >>confdefs.h <<_ACEOF | |
46401 | #define wxUSE_THEME_$t 1 | |
46402 | _ACEOF | |
46403 | ||
46404 | done | |
46405 | esac | |
a848cd7e SC |
46406 | else |
46407 | WXUNIV=0 | |
46408 | fi | |
46409 | ||
46410 | ||
46411 | ||
46412 | ||
46413 | ||
46414 | ||
46415 | ||
46416 | ||
46417 | ||
46418 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
46419 | MONOLITHIC=1 | |
46420 | else | |
46421 | MONOLITHIC=0 | |
46422 | fi | |
46423 | ||
46424 | if test $wxUSE_PLUGINS = "yes" ; then | |
46425 | USE_PLUGINS=1 | |
46426 | else | |
46427 | USE_PLUGINS=0 | |
46428 | fi | |
46429 | ||
46430 | if test $wxUSE_ODBC != "no" ; then | |
46431 | USE_ODBC=1 | |
46432 | else | |
46433 | USE_ODBC=0 | |
46434 | fi | |
46435 | ||
16358932 VZ |
46436 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
46437 | USE_QA=1 | |
46438 | else | |
46439 | USE_QA=0 | |
46440 | fi | |
46441 | ||
a848cd7e SC |
46442 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
46443 | OFFICIAL_BUILD=1 | |
46444 | else | |
46445 | OFFICIAL_BUILD=0 | |
46446 | fi | |
46447 | ||
46448 | ||
46449 | ||
46450 | ||
46451 | ||
46452 | ||
46453 | ||
46454 | ||
46455 | ||
46456 | ||
46457 | ||
46458 | ||
46459 | ||
46460 | ||
46461 | ||
46462 | ||
46463 | ||
46464 | ||
46465 | ||
ceec2216 | 46466 | |
d1c38808 | 46467 | |
3565d135 | 46468 | |
2b850ae1 | 46469 | |
a848cd7e SC |
46470 | |
46471 | ||
46472 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
46473 | ||
46474 | ||
46475 | ||
46476 | ||
46477 | ||
46478 | ||
46479 | ||
46480 | ||
4d4ff94c VZ |
46481 | case "$TOOLKIT" in |
46482 | GTK) | |
c2e9ada4 | 46483 | TOOLKIT_DESC="GTK+" |
4d4ff94c | 46484 | if test "$WXGTK20" = 1; then |
c2e9ada4 VZ |
46485 | TOOLKIT_DESC="$TOOLKIT_DESC 2" |
46486 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
46487 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint"; | |
46488 | fi | |
46489 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
46490 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs" | |
46491 | fi | |
46492 | if test "$wxUSE_LIBHILDON" = "yes"; then | |
46493 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon" | |
46494 | fi | |
46495 | ||
46496 | if test "$TOOLKIT_EXTRA" != ""; then | |
46497 | TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`" | |
46498 | fi | |
4d4ff94c | 46499 | fi |
9a8f0513 | 46500 | ;; |
4d4ff94c | 46501 | |
c2e9ada4 VZ |
46502 | ?*) |
46503 | TOOLKIT_DESC=$TOOLKIT_LOWERCASE | |
46504 | ;; | |
46505 | ||
4d4ff94c | 46506 | *) |
c2e9ada4 | 46507 | TOOLKIT_DESC="base only" |
9a8f0513 | 46508 | ;; |
4d4ff94c | 46509 | esac |
a848cd7e | 46510 | |
fb00f58d JS |
46511 | if test "$wxUSE_WINE" = "yes"; then |
46512 | BAKEFILE_FORCE_PLATFORM=win32 | |
46513 | fi | |
46514 | ||
7afc46ab | 46515 | if test "$wxUSE_MAC" = 1 ; then |
95768535 MW |
46516 | if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then |
46517 | if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then | |
46518 | OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" | |
46519 | else | |
46520 | OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"} | |
46521 | fi | |
46522 | OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386" | |
46523 | CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS" | |
46524 | CFLAGS="$OSX_UNIV_OPTS $CFLAGS" | |
46525 | LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS" | |
7afc46ab KO |
46526 | bk_use_pch=no |
46527 | fi | |
46528 | # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)? | |
46529 | # The makefile currently uses AR and RANLIB, which libtool apparently supercedes. | |
7afc46ab KO |
46530 | fi |
46531 | ||
9a8f0513 | 46532 | |
1e9e8aba DE |
46533 | |
46534 | ||
a848cd7e | 46535 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 VZ |
46536 | if test "x${host}" = "x" ; then |
46537 | { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5 | |
46538 | echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;} | |
46539 | { (exit 1); exit 1; }; } | |
46540 | fi | |
46541 | ||
a848cd7e SC |
46542 | BAKEFILE_HOST="${host}" |
46543 | fi | |
46544 | ||
46545 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
46546 | ||
46547 | if test -n "$ac_tool_prefix"; then | |
46548 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
46549 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
46550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46552 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
46553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46554 | else | |
46555 | if test -n "$RANLIB"; then | |
46556 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
46557 | else | |
46558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46559 | for as_dir in $PATH | |
46560 | do | |
46561 | IFS=$as_save_IFS | |
46562 | test -z "$as_dir" && as_dir=. | |
46563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46565 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
46566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46567 | break 2 | |
46568 | fi | |
46569 | done | |
46570 | done | |
46571 | ||
46572 | fi | |
46573 | fi | |
46574 | RANLIB=$ac_cv_prog_RANLIB | |
46575 | if test -n "$RANLIB"; then | |
46576 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
46577 | echo "${ECHO_T}$RANLIB" >&6 | |
46578 | else | |
46579 | echo "$as_me:$LINENO: result: no" >&5 | |
46580 | echo "${ECHO_T}no" >&6 | |
46581 | fi | |
46582 | ||
46583 | fi | |
46584 | if test -z "$ac_cv_prog_RANLIB"; then | |
46585 | ac_ct_RANLIB=$RANLIB | |
46586 | # Extract the first word of "ranlib", so it can be a program name with args. | |
46587 | set dummy ranlib; ac_word=$2 | |
46588 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46590 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
46591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46592 | else | |
46593 | if test -n "$ac_ct_RANLIB"; then | |
46594 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
46595 | else | |
46596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46597 | for as_dir in $PATH | |
46598 | do | |
46599 | IFS=$as_save_IFS | |
46600 | test -z "$as_dir" && as_dir=. | |
46601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46602 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46603 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
46604 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46605 | break 2 | |
46606 | fi | |
46607 | done | |
46608 | done | |
46609 | ||
46610 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
46611 | fi | |
46612 | fi | |
46613 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
46614 | if test -n "$ac_ct_RANLIB"; then | |
46615 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
46616 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
46617 | else | |
46618 | echo "$as_me:$LINENO: result: no" >&5 | |
46619 | echo "${ECHO_T}no" >&6 | |
46620 | fi | |
46621 | ||
46622 | RANLIB=$ac_ct_RANLIB | |
46623 | else | |
46624 | RANLIB="$ac_cv_prog_RANLIB" | |
46625 | fi | |
46626 | ||
46627 | # Find a good install program. We prefer a C program (faster), | |
46628 | # so one script is as good as another. But avoid the broken or | |
46629 | # incompatible versions: | |
46630 | # SysV /etc/install, /usr/sbin/install | |
46631 | # SunOS /usr/etc/install | |
46632 | # IRIX /sbin/install | |
46633 | # AIX /bin/install | |
46634 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
46635 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
46636 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
46637 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 46638 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
46639 | # ./install, which can be erroneously created by make from ./install.sh. |
46640 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
46641 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
46642 | if test -z "$INSTALL"; then | |
46643 | if test "${ac_cv_path_install+set}" = set; then | |
46644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46645 | else | |
46646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46647 | for as_dir in $PATH | |
46648 | do | |
46649 | IFS=$as_save_IFS | |
46650 | test -z "$as_dir" && as_dir=. | |
46651 | # Account for people who put trailing slashes in PATH elements. | |
46652 | case $as_dir/ in | |
46653 | ./ | .// | /cC/* | \ | |
46654 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 46655 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
46656 | /usr/ucb/* ) ;; |
46657 | *) | |
46658 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
46659 | # Don't use installbsd from OSF since it installs stuff as root | |
46660 | # by default. | |
46661 | for ac_prog in ginstall scoinst install; do | |
46662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
46663 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
46664 | if test $ac_prog = install && | |
46665 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
46666 | # AIX install. It has an incompatible calling convention. | |
46667 | : | |
46668 | elif test $ac_prog = install && | |
46669 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
46670 | # program-specific install script used by HP pwplus--don't use. | |
46671 | : | |
46672 | else | |
46673 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
46674 | break 3 | |
46675 | fi | |
46676 | fi | |
a848cd7e SC |
46677 | done |
46678 | done | |
46679 | ;; | |
46680 | esac | |
46681 | done | |
46682 | ||
46683 | ||
46684 | fi | |
46685 | if test "${ac_cv_path_install+set}" = set; then | |
46686 | INSTALL=$ac_cv_path_install | |
46687 | else | |
46688 | # As a last resort, use the slow shell script. We don't cache a | |
46689 | # path for INSTALL within a source directory, because that will | |
46690 | # break other packages using the cache if that directory is | |
46691 | # removed, or if the path is relative. | |
46692 | INSTALL=$ac_install_sh | |
46693 | fi | |
46694 | fi | |
46695 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
46696 | echo "${ECHO_T}$INSTALL" >&6 | |
46697 | ||
46698 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
46699 | # It thinks the first close brace ends the variable substitution. | |
46700 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
46701 | ||
46702 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
46703 | ||
46704 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
46705 | ||
46706 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
46707 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
46708 | LN_S=$as_ln_s | |
46709 | if test "$LN_S" = "ln -s"; then | |
46710 | echo "$as_me:$LINENO: result: yes" >&5 | |
46711 | echo "${ECHO_T}yes" >&6 | |
46712 | else | |
46713 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
46714 | echo "${ECHO_T}no, using $LN_S" >&6 | |
46715 | fi | |
46716 | ||
46717 | ||
46718 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
46719 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 46720 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
46721 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
46722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46723 | else | |
46724 | cat >conftest.make <<\_ACEOF | |
46725 | all: | |
46726 | @echo 'ac_maketemp="$(MAKE)"' | |
46727 | _ACEOF | |
46728 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
46729 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
46730 | if test -n "$ac_maketemp"; then | |
46731 | eval ac_cv_prog_make_${ac_make}_set=yes | |
46732 | else | |
46733 | eval ac_cv_prog_make_${ac_make}_set=no | |
46734 | fi | |
46735 | rm -f conftest.make | |
46736 | fi | |
46737 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
46738 | echo "$as_me:$LINENO: result: yes" >&5 | |
46739 | echo "${ECHO_T}yes" >&6 | |
46740 | SET_MAKE= | |
46741 | else | |
46742 | echo "$as_me:$LINENO: result: no" >&5 | |
46743 | echo "${ECHO_T}no" >&6 | |
46744 | SET_MAKE="MAKE=${MAKE-make}" | |
46745 | fi | |
46746 | ||
46747 | ||
46748 | ||
46749 | if test -n "$ac_tool_prefix"; then | |
46750 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
46751 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
46752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46754 | if test "${ac_cv_prog_AR+set}" = set; then | |
46755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46756 | else | |
46757 | if test -n "$AR"; then | |
46758 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
46759 | else | |
46760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46761 | for as_dir in $PATH | |
46762 | do | |
46763 | IFS=$as_save_IFS | |
46764 | test -z "$as_dir" && as_dir=. | |
46765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46767 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
46768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46769 | break 2 | |
46770 | fi | |
46771 | done | |
46772 | done | |
46773 | ||
46774 | fi | |
46775 | fi | |
46776 | AR=$ac_cv_prog_AR | |
46777 | if test -n "$AR"; then | |
46778 | echo "$as_me:$LINENO: result: $AR" >&5 | |
46779 | echo "${ECHO_T}$AR" >&6 | |
46780 | else | |
46781 | echo "$as_me:$LINENO: result: no" >&5 | |
46782 | echo "${ECHO_T}no" >&6 | |
46783 | fi | |
46784 | ||
46785 | fi | |
46786 | if test -z "$ac_cv_prog_AR"; then | |
46787 | ac_ct_AR=$AR | |
46788 | # Extract the first word of "ar", so it can be a program name with args. | |
46789 | set dummy ar; ac_word=$2 | |
46790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46792 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
46793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46794 | else | |
46795 | if test -n "$ac_ct_AR"; then | |
46796 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
46797 | else | |
46798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46799 | for as_dir in $PATH | |
46800 | do | |
46801 | IFS=$as_save_IFS | |
46802 | test -z "$as_dir" && as_dir=. | |
46803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46805 | ac_cv_prog_ac_ct_AR="ar" | |
46806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46807 | break 2 | |
46808 | fi | |
46809 | done | |
46810 | done | |
46811 | ||
46812 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
46813 | fi | |
46814 | fi | |
46815 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
46816 | if test -n "$ac_ct_AR"; then | |
46817 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
46818 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
46819 | else | |
46820 | echo "$as_me:$LINENO: result: no" >&5 | |
46821 | echo "${ECHO_T}no" >&6 | |
46822 | fi | |
46823 | ||
46824 | AR=$ac_ct_AR | |
46825 | else | |
46826 | AR="$ac_cv_prog_AR" | |
46827 | fi | |
46828 | ||
46829 | if test -n "$ac_tool_prefix"; then | |
46830 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
46831 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
46832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46834 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
46835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46836 | else | |
46837 | if test -n "$STRIP"; then | |
46838 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
46839 | else | |
46840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46841 | for as_dir in $PATH | |
46842 | do | |
46843 | IFS=$as_save_IFS | |
46844 | test -z "$as_dir" && as_dir=. | |
46845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46846 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46847 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
46848 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46849 | break 2 | |
46850 | fi | |
46851 | done | |
46852 | done | |
46853 | ||
46854 | fi | |
46855 | fi | |
46856 | STRIP=$ac_cv_prog_STRIP | |
46857 | if test -n "$STRIP"; then | |
46858 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
46859 | echo "${ECHO_T}$STRIP" >&6 | |
46860 | else | |
46861 | echo "$as_me:$LINENO: result: no" >&5 | |
46862 | echo "${ECHO_T}no" >&6 | |
46863 | fi | |
46864 | ||
46865 | fi | |
46866 | if test -z "$ac_cv_prog_STRIP"; then | |
46867 | ac_ct_STRIP=$STRIP | |
46868 | # Extract the first word of "strip", so it can be a program name with args. | |
46869 | set dummy strip; ac_word=$2 | |
46870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46872 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
46873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46874 | else | |
46875 | if test -n "$ac_ct_STRIP"; then | |
46876 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
46877 | else | |
46878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46879 | for as_dir in $PATH | |
46880 | do | |
46881 | IFS=$as_save_IFS | |
46882 | test -z "$as_dir" && as_dir=. | |
46883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46884 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46885 | ac_cv_prog_ac_ct_STRIP="strip" | |
46886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46887 | break 2 | |
46888 | fi | |
46889 | done | |
46890 | done | |
46891 | ||
46892 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
46893 | fi | |
46894 | fi | |
46895 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
46896 | if test -n "$ac_ct_STRIP"; then | |
46897 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
46898 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
46899 | else | |
46900 | echo "$as_me:$LINENO: result: no" >&5 | |
46901 | echo "${ECHO_T}no" >&6 | |
46902 | fi | |
46903 | ||
46904 | STRIP=$ac_ct_STRIP | |
46905 | else | |
46906 | STRIP="$ac_cv_prog_STRIP" | |
46907 | fi | |
46908 | ||
46909 | if test -n "$ac_tool_prefix"; then | |
46910 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
46911 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
46912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46914 | if test "${ac_cv_prog_NM+set}" = set; then | |
46915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46916 | else | |
46917 | if test -n "$NM"; then | |
46918 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
46919 | else | |
46920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46921 | for as_dir in $PATH | |
46922 | do | |
46923 | IFS=$as_save_IFS | |
46924 | test -z "$as_dir" && as_dir=. | |
46925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46927 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
46928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46929 | break 2 | |
46930 | fi | |
46931 | done | |
46932 | done | |
46933 | ||
46934 | fi | |
46935 | fi | |
46936 | NM=$ac_cv_prog_NM | |
46937 | if test -n "$NM"; then | |
46938 | echo "$as_me:$LINENO: result: $NM" >&5 | |
46939 | echo "${ECHO_T}$NM" >&6 | |
46940 | else | |
46941 | echo "$as_me:$LINENO: result: no" >&5 | |
46942 | echo "${ECHO_T}no" >&6 | |
46943 | fi | |
46944 | ||
46945 | fi | |
46946 | if test -z "$ac_cv_prog_NM"; then | |
46947 | ac_ct_NM=$NM | |
46948 | # Extract the first word of "nm", so it can be a program name with args. | |
46949 | set dummy nm; ac_word=$2 | |
46950 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46952 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
46953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46954 | else | |
46955 | if test -n "$ac_ct_NM"; then | |
46956 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
46957 | else | |
46958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46959 | for as_dir in $PATH | |
46960 | do | |
46961 | IFS=$as_save_IFS | |
46962 | test -z "$as_dir" && as_dir=. | |
46963 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46964 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46965 | ac_cv_prog_ac_ct_NM="nm" | |
46966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46967 | break 2 | |
46968 | fi | |
46969 | done | |
46970 | done | |
46971 | ||
46972 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
46973 | fi | |
46974 | fi | |
46975 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
46976 | if test -n "$ac_ct_NM"; then | |
46977 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
46978 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
46979 | else | |
46980 | echo "$as_me:$LINENO: result: no" >&5 | |
46981 | echo "${ECHO_T}no" >&6 | |
46982 | fi | |
46983 | ||
46984 | NM=$ac_ct_NM | |
46985 | else | |
46986 | NM="$ac_cv_prog_NM" | |
46987 | fi | |
46988 | ||
46989 | ||
46990 | case ${BAKEFILE_HOST} in | |
46991 | *-hp-hpux* ) | |
1e9e8aba | 46992 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
46993 | ;; |
46994 | *) INSTALL_DIR="$INSTALL -d" | |
46995 | ;; | |
46996 | esac | |
46997 | ||
46998 | ||
46999 | LDFLAGS_GUI= | |
47000 | case ${BAKEFILE_HOST} in | |
47001 | *-*-cygwin* | *-*-mingw32* ) | |
47002 | LDFLAGS_GUI="-mwindows" | |
47003 | esac | |
47004 | ||
47005 | ||
47006 | fi | |
47007 | ||
47008 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
47009 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
47010 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
47011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47012 | else | |
47013 | ||
47014 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
47015 | egrep -s GNU > /dev/null); then | |
47016 | bakefile_cv_prog_makeisgnu="yes" | |
47017 | else | |
47018 | bakefile_cv_prog_makeisgnu="no" | |
47019 | fi | |
47020 | ||
47021 | fi | |
47022 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
47023 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
47024 | ||
47025 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
47026 | IF_GNU_MAKE="" | |
47027 | else | |
47028 | IF_GNU_MAKE="#" | |
47029 | fi | |
47030 | ||
47031 | ||
47032 | ||
47033 | PLATFORM_UNIX=0 | |
47034 | PLATFORM_WIN32=0 | |
47035 | PLATFORM_MSDOS=0 | |
47036 | PLATFORM_MAC=0 | |
1e9e8aba | 47037 | PLATFORM_MACOS=0 |
a848cd7e SC |
47038 | PLATFORM_MACOSX=0 |
47039 | PLATFORM_OS2=0 | |
1e9e8aba | 47040 | PLATFORM_BEOS=0 |
a848cd7e SC |
47041 | |
47042 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
47043 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 47044 | *-*-mingw32* ) |
a848cd7e SC |
47045 | PLATFORM_WIN32=1 |
47046 | ;; | |
47047 | *-pc-msdosdjgpp ) | |
47048 | PLATFORM_MSDOS=1 | |
47049 | ;; | |
47050 | *-pc-os2_emx | *-pc-os2-emx ) | |
47051 | PLATFORM_OS2=1 | |
47052 | ;; | |
47bd5406 | 47053 | *-*-darwin* ) |
a848cd7e SC |
47054 | PLATFORM_MAC=1 |
47055 | PLATFORM_MACOSX=1 | |
47056 | ;; | |
1e9e8aba DE |
47057 | *-*-beos* ) |
47058 | PLATFORM_BEOS=1 | |
47059 | ;; | |
47060 | powerpc-apple-macos* ) | |
47061 | PLATFORM_MAC=1 | |
47062 | PLATFORM_MACOS=1 | |
47063 | ;; | |
a848cd7e SC |
47064 | * ) |
47065 | PLATFORM_UNIX=1 | |
47066 | ;; | |
47067 | esac | |
47068 | else | |
47069 | case "$BAKEFILE_FORCE_PLATFORM" in | |
47070 | win32 ) | |
47071 | PLATFORM_WIN32=1 | |
47072 | ;; | |
47073 | msdos ) | |
47074 | PLATFORM_MSDOS=1 | |
47075 | ;; | |
47076 | os2 ) | |
47077 | PLATFORM_OS2=1 | |
47078 | ;; | |
47079 | darwin ) | |
47080 | PLATFORM_MAC=1 | |
47081 | PLATFORM_MACOSX=1 | |
47082 | ;; | |
47083 | unix ) | |
47084 | PLATFORM_UNIX=1 | |
47085 | ;; | |
1e9e8aba DE |
47086 | beos ) |
47087 | PLATFORM_BEOS=1 | |
47088 | ;; | |
a848cd7e SC |
47089 | * ) |
47090 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
47091 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
47092 | { (exit 1); exit 1; }; } | |
47093 | ;; | |
47094 | esac | |
47095 | fi | |
47096 | ||
47097 | ||
47098 | ||
47099 | ||
47100 | ||
47101 | ||
47102 | ||
47103 | ||
47104 | ||
1e9e8aba DE |
47105 | |
47106 | ||
a848cd7e SC |
47107 | # Check whether --enable-omf or --disable-omf was given. |
47108 | if test "${enable_omf+set}" = set; then | |
47109 | enableval="$enable_omf" | |
47110 | bk_os2_use_omf="$enableval" | |
47111 | fi; | |
47112 | ||
47113 | case "${BAKEFILE_HOST}" in | |
47114 | *-*-darwin* ) | |
47bd5406 VZ |
47115 | if test "x$GCC" = "xyes"; then |
47116 | CFLAGS="$CFLAGS -fno-common" | |
47117 | CXXFLAGS="$CXXFLAGS -fno-common" | |
47118 | fi | |
47119 | if test "x$XLCC" = "xyes"; then | |
47120 | CFLAGS="$CFLAGS -qnocommon" | |
47121 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
47122 | fi | |
a848cd7e SC |
47123 | ;; |
47124 | ||
47125 | *-pc-os2_emx | *-pc-os2-emx ) | |
47126 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
47127 | AR=emxomfar | |
47128 | RANLIB=: | |
47129 | LDFLAGS="-Zomf $LDFLAGS" | |
47130 | CFLAGS="-Zomf $CFLAGS" | |
47131 | CXXFLAGS="-Zomf $CXXFLAGS" | |
47132 | OS2_LIBEXT="lib" | |
47133 | else | |
47134 | OS2_LIBEXT="a" | |
47135 | fi | |
47136 | ;; | |
1e9e8aba DE |
47137 | |
47138 | i*86-*-beos* ) | |
47139 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
47140 | ;; | |
a848cd7e SC |
47141 | esac |
47142 | ||
47143 | ||
47144 | SO_SUFFIX="so" | |
47145 | SO_SUFFIX_MODULE="so" | |
47146 | EXEEXT="" | |
47147 | LIBPREFIX="lib" | |
47148 | LIBEXT=".a" | |
47149 | DLLPREFIX="lib" | |
47150 | DLLPREFIX_MODULE="" | |
47151 | DLLIMP_SUFFIX="" | |
810b94f0 | 47152 | dlldir="$libdir" |
a848cd7e SC |
47153 | |
47154 | case "${BAKEFILE_HOST}" in | |
47155 | *-hp-hpux* ) | |
47156 | SO_SUFFIX="sl" | |
47157 | SO_SUFFIX_MODULE="sl" | |
47158 | ;; | |
47159 | *-*-aix* ) | |
47160 | SO_SUFFIX="a" | |
47161 | SO_SUFFIX_MODULE="a" | |
47162 | ;; | |
810b94f0 MW |
47163 | *-*-cygwin* ) |
47164 | SO_SUFFIX="dll" | |
47165 | SO_SUFFIX_MODULE="dll" | |
47166 | DLLIMP_SUFFIX="dll.a" | |
47167 | EXEEXT=".exe" | |
47168 | DLLPREFIX="cyg" | |
47169 | dlldir="$bindir" | |
47170 | ;; | |
47171 | *-*-mingw32* ) | |
a848cd7e SC |
47172 | SO_SUFFIX="dll" |
47173 | SO_SUFFIX_MODULE="dll" | |
47174 | DLLIMP_SUFFIX="dll.a" | |
47175 | EXEEXT=".exe" | |
47176 | DLLPREFIX="" | |
810b94f0 | 47177 | dlldir="$bindir" |
a848cd7e SC |
47178 | ;; |
47179 | *-pc-msdosdjgpp ) | |
47180 | EXEEXT=".exe" | |
47181 | DLLPREFIX="" | |
810b94f0 | 47182 | dlldir="$bindir" |
a848cd7e SC |
47183 | ;; |
47184 | *-pc-os2_emx | *-pc-os2-emx ) | |
47185 | SO_SUFFIX="dll" | |
47186 | SO_SUFFIX_MODULE="dll" | |
47187 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
47188 | EXEEXT=".exe" | |
47189 | DLLPREFIX="" | |
47190 | LIBPREFIX="" | |
47191 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 47192 | dlldir="$bindir" |
a848cd7e | 47193 | ;; |
47bd5406 | 47194 | *-*-darwin* ) |
a848cd7e SC |
47195 | SO_SUFFIX="dylib" |
47196 | SO_SUFFIX_MODULE="bundle" | |
47197 | ;; | |
47198 | esac | |
47199 | ||
47200 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
47201 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
47202 | fi | |
47203 | ||
47204 | ||
47205 | ||
47206 | ||
47207 | ||
47208 | ||
47209 | ||
47210 | ||
47211 | ||
47212 | ||
47213 | ||
810b94f0 | 47214 | |
1e9e8aba DE |
47215 | PIC_FLAG="" |
47216 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
47217 | PIC_FLAG="-fPIC" |
47218 | fi | |
47219 | ||
1e9e8aba DE |
47220 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
47221 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 47222 | WINDOWS_IMPLIB=0 |
1e9e8aba | 47223 | |
a848cd7e SC |
47224 | case "${BAKEFILE_HOST}" in |
47225 | *-hp-hpux* ) | |
1e9e8aba | 47226 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
47227 | LDFLAGS="$LDFLAGS -L/usr/lib" |
47228 | ||
47229 | SHARED_LD_CC="${CC} -b -o" | |
47230 | SHARED_LD_CXX="${CXX} -b -o" | |
47231 | PIC_FLAG="+Z" | |
47232 | fi | |
47233 | ;; | |
47234 | ||
47235 | *-*-linux* ) | |
47236 | if test "x$GCC" != "xyes"; then | |
47237 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
47238 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
47239 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
47240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47241 | else | |
47242 | ||
47243 | cat >conftest.$ac_ext <<_ACEOF | |
47244 | /* confdefs.h. */ | |
47245 | _ACEOF | |
47246 | cat confdefs.h >>conftest.$ac_ext | |
47247 | cat >>conftest.$ac_ext <<_ACEOF | |
47248 | /* end confdefs.h. */ | |
47249 | ||
47250 | int | |
47251 | main () | |
47252 | { | |
47253 | ||
47254 | #ifndef __INTEL_COMPILER | |
e5efa97e | 47255 | This is not ICC |
a848cd7e SC |
47256 | #endif |
47257 | ||
47258 | ; | |
47259 | return 0; | |
47260 | } | |
47261 | _ACEOF | |
47262 | rm -f conftest.$ac_objext | |
47263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 47264 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 47265 | ac_status=$? |
ac1cb8d3 VS |
47266 | grep -v '^ *+' conftest.er1 >conftest.err |
47267 | rm -f conftest.er1 | |
47268 | cat conftest.err >&5 | |
a848cd7e SC |
47269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47270 | (exit $ac_status); } && | |
ca5c6ac3 | 47271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
47272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47273 | (eval $ac_try) 2>&5 | |
47274 | ac_status=$? | |
47275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47276 | (exit $ac_status); }; } && | |
47277 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
47278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47279 | (eval $ac_try) 2>&5 | |
47280 | ac_status=$? | |
47281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47282 | (exit $ac_status); }; }; then | |
47283 | bakefile_cv_prog_icc=yes | |
47284 | else | |
47285 | echo "$as_me: failed program was:" >&5 | |
47286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47287 | ||
47288 | bakefile_cv_prog_icc=no | |
47289 | ||
47290 | fi | |
ac1cb8d3 | 47291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
47292 | |
47293 | fi | |
47294 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
47295 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
47296 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
47297 | PIC_FLAG="-KPIC" | |
47298 | fi | |
47299 | fi | |
47300 | ;; | |
47301 | ||
47302 | *-*-solaris2* ) | |
47303 | if test "x$GCC" != xyes ; then | |
47304 | SHARED_LD_CC="${CC} -G -o" | |
47305 | SHARED_LD_CXX="${CXX} -G -o" | |
47306 | PIC_FLAG="-KPIC" | |
47307 | fi | |
47308 | ;; | |
47309 | ||
47310 | *-*-darwin* ) | |
47311 | ||
473276a9 VS |
47312 | D='$' |
47313 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
47314 | #!/bin/sh |
47315 | #----------------------------------------------------------------------------- | |
47316 | #-- Name: distrib/mac/shared-ld-sh | |
47317 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
47318 | #-- Author: Gilles Depeyrot | |
47319 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
47320 | #-- Licence: any use permitted | |
47321 | #----------------------------------------------------------------------------- | |
47322 | ||
47323 | verbose=0 | |
47324 | args="" | |
47325 | objects="" | |
47326 | linking_flag="-dynamiclib" | |
810b94f0 | 47327 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 47328 | |
473276a9 VS |
47329 | while test ${D}# -gt 0; do |
47330 | case ${D}1 in | |
a848cd7e SC |
47331 | |
47332 | -v) | |
47333 | verbose=1 | |
47334 | ;; | |
47335 | ||
47336 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
47337 | # collect these options and values | |
473276a9 | 47338 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
47339 | shift |
47340 | ;; | |
47341 | ||
810b94f0 MW |
47342 | -s|-Wl,*) |
47343 | # collect these load args | |
47344 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 47345 | ;; |
810b94f0 MW |
47346 | |
47347 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 47348 | # collect these options |
473276a9 | 47349 | args="${D}{args} ${D}1" |
a848cd7e SC |
47350 | ;; |
47351 | ||
47352 | -dynamiclib|-bundle) | |
473276a9 | 47353 | linking_flag="${D}1" |
a848cd7e SC |
47354 | ;; |
47355 | ||
47356 | -*) | |
473276a9 | 47357 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
47358 | exit 1 |
47359 | ;; | |
47360 | ||
47361 | *.o | *.a | *.dylib) | |
47362 | # collect object files | |
473276a9 | 47363 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
47364 | ;; |
47365 | ||
47366 | *) | |
473276a9 | 47367 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
47368 | exit 1 |
47369 | ;; | |
47370 | ||
47371 | esac | |
47372 | shift | |
47373 | done | |
47374 | ||
810b94f0 MW |
47375 | status=0 |
47376 | ||
a848cd7e SC |
47377 | # |
47378 | # Link one module containing all the others | |
47379 | # | |
473276a9 | 47380 | if test ${D}{verbose} = 1; then |
810b94f0 | 47381 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 47382 | fi |
810b94f0 | 47383 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 47384 | status=${D}? |
a848cd7e SC |
47385 | |
47386 | # | |
810b94f0 MW |
47387 | # Link the shared library from the single module created, but only if the |
47388 | # previous command didn't fail: | |
a848cd7e | 47389 | # |
810b94f0 MW |
47390 | if test ${D}{status} = 0; then |
47391 | if test ${D}{verbose} = 1; then | |
47392 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
47393 | fi | |
47394 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
47395 | status=${D}? | |
a848cd7e SC |
47396 | fi |
47397 | ||
47398 | # | |
47399 | # Remove intermediate module | |
47400 | # | |
473276a9 | 47401 | rm -f master.${D}${D}.o |
a848cd7e | 47402 | |
810b94f0 | 47403 | exit ${D}status |
a848cd7e | 47404 | EOF |
473276a9 | 47405 | |
583d6b4b VZ |
47406 | chmod +x shared-ld-sh |
47407 | ||
47408 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
47409 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
47410 | ||
47411 | ||
47412 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
47413 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
47414 | if test "${bakefile_cv_gcc31+set}" = set; then | |
47415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47416 | else | |
47417 | ||
47418 | cat >conftest.$ac_ext <<_ACEOF | |
47419 | /* confdefs.h. */ | |
47420 | _ACEOF | |
47421 | cat confdefs.h >>conftest.$ac_ext | |
47422 | cat >>conftest.$ac_ext <<_ACEOF | |
47423 | /* end confdefs.h. */ | |
47424 | ||
47425 | int | |
47426 | main () | |
47427 | { | |
47428 | ||
47429 | #if (__GNUC__ < 3) || \ | |
47430 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
e5efa97e | 47431 | This is old gcc |
583d6b4b | 47432 | #endif |
a848cd7e | 47433 | |
583d6b4b VZ |
47434 | ; |
47435 | return 0; | |
47436 | } | |
47437 | _ACEOF | |
47438 | rm -f conftest.$ac_objext | |
47439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
47440 | (eval $ac_compile) 2>conftest.er1 | |
47441 | ac_status=$? | |
47442 | grep -v '^ *+' conftest.er1 >conftest.err | |
47443 | rm -f conftest.er1 | |
47444 | cat conftest.err >&5 | |
47445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47446 | (exit $ac_status); } && | |
ca5c6ac3 | 47447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
583d6b4b VZ |
47448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47449 | (eval $ac_try) 2>&5 | |
47450 | ac_status=$? | |
47451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47452 | (exit $ac_status); }; } && | |
47453 | { ac_try='test -s conftest.$ac_objext' | |
47454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
47455 | (eval $ac_try) 2>&5 | |
47456 | ac_status=$? | |
47457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47458 | (exit $ac_status); }; }; then | |
47459 | ||
47460 | bakefile_cv_gcc31=yes | |
47461 | ||
47462 | else | |
47463 | echo "$as_me: failed program was:" >&5 | |
47464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47465 | ||
47466 | ||
47467 | bakefile_cv_gcc31=no | |
47468 | ||
47469 | ||
47470 | fi | |
47471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
47472 | ||
47473 | fi | |
47474 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
47475 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
47476 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 47477 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 47478 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
47479 | else |
47480 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 47481 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
47482 | fi |
47483 | ||
47bd5406 VZ |
47484 | if test "x$GCC" == "xyes"; then |
47485 | PIC_FLAG="-dynamic -fPIC" | |
47486 | fi | |
47487 | if test "x$XLCC" = "xyes"; then | |
47488 | PIC_FLAG="-dynamic -DPIC" | |
47489 | fi | |
a848cd7e SC |
47490 | ;; |
47491 | ||
47492 | *-*-aix* ) | |
f6b50c59 | 47493 | if test "x$GCC" = "xyes"; then |
583d6b4b | 47494 | PIC_FLAG="" |
f6b50c59 | 47495 | |
583d6b4b VZ |
47496 | case "${BAKEFILE_HOST}" in |
47497 | *-*-aix5* ) | |
47498 | LD_EXPFULL="-Wl,-bexpfull" | |
47499 | ;; | |
47500 | esac | |
f6b50c59 | 47501 | |
583d6b4b VZ |
47502 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
47503 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
47504 | else | |
47505 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
47506 | set dummy makeC++SharedLib; ac_word=$2 |
47507 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47509 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
47510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47511 | else | |
47512 | if test -n "$AIX_CXX_LD"; then | |
47513 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
47514 | else | |
47515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47516 | for as_dir in $PATH | |
47517 | do | |
47518 | IFS=$as_save_IFS | |
47519 | test -z "$as_dir" && as_dir=. | |
47520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47521 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47522 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
47523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47524 | break 2 | |
47525 | fi | |
47526 | done | |
47527 | done | |
47528 | ||
47529 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
47530 | fi | |
47531 | fi | |
47532 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
47533 | if test -n "$AIX_CXX_LD"; then | |
47534 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
47535 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
47536 | else | |
47537 | echo "$as_me:$LINENO: result: no" >&5 | |
47538 | echo "${ECHO_T}no" >&6 | |
47539 | fi | |
47540 | ||
f6b50c59 | 47541 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
47542 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
47543 | fi | |
47544 | ;; | |
47545 | ||
47546 | *-*-beos* ) | |
1e9e8aba DE |
47547 | SHARED_LD_CC="${LD} -nostart -o" |
47548 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
47549 | ;; |
47550 | ||
47551 | *-*-irix* ) | |
47552 | if test "x$GCC" != "xyes"; then | |
47553 | PIC_FLAG="-KPIC" | |
47554 | fi | |
47555 | ;; | |
47556 | ||
47557 | *-*-cygwin* | *-*-mingw32* ) | |
47558 | PIC_FLAG="" | |
1e9e8aba DE |
47559 | SHARED_LD_CC="\$(CC) -shared -o" |
47560 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 47561 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
47562 | ;; |
47563 | ||
47564 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
47565 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
47566 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 47567 | PIC_FLAG="" |
473276a9 VS |
47568 | |
47569 | D='$' | |
47570 | cat <<EOF >dllar.sh | |
47571 | #!/bin/sh | |
47572 | # | |
47573 | # dllar - a tool to build both a .dll and an .a file | |
47574 | # from a set of object (.o) files for EMX/OS2. | |
47575 | # | |
47576 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
47577 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
47578 | # | |
47579 | # This script will accept a set of files on the command line. | |
47580 | # All the public symbols from the .o files will be exported into | |
47581 | # a .DEF file, then linker will be run (through gcc) against them to | |
47582 | # build a shared library consisting of all given .o files. All libraries | |
47583 | # (.a) will be first decompressed into component .o files then act as | |
47584 | # described above. You can optionally give a description (-d "description") | |
47585 | # which will be put into .DLL. To see the list of accepted options (as well | |
47586 | # as command-line format) simply run this program without options. The .DLL | |
47587 | # is built to be imported by name (there is no guarantee that new versions | |
47588 | # of the library you build will have same ordinals for same symbols). | |
47589 | # | |
47590 | # dllar is free software; you can redistribute it and/or modify | |
47591 | # it under the terms of the GNU General Public License as published by | |
47592 | # the Free Software Foundation; either version 2, or (at your option) | |
47593 | # any later version. | |
47594 | # | |
47595 | # dllar is distributed in the hope that it will be useful, | |
47596 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
47597 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
47598 | # GNU General Public License for more details. | |
47599 | # | |
47600 | # You should have received a copy of the GNU General Public License | |
47601 | # along with dllar; see the file COPYING. If not, write to the Free | |
47602 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
47603 | # 02111-1307, USA. | |
47604 | ||
47605 | # To successfuly run this program you will need: | |
47606 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
47607 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
47608 | # - gcc | |
47609 | # (used to build the .dll) | |
47610 | # - emxexp | |
47611 | # (used to create .def file from .o files) | |
47612 | # - emximp | |
47613 | # (used to create .a file from .def file) | |
47614 | # - GNU text utilites (cat, sort, uniq) | |
47615 | # used to process emxexp output | |
47616 | # - GNU file utilities (mv, rm) | |
47617 | # - GNU sed | |
47618 | # - lxlite (optional, see flag below) | |
47619 | # (used for general .dll cleanup) | |
47620 | # | |
47621 | ||
47622 | flag_USE_LXLITE=1; | |
47623 | ||
47624 | # | |
47625 | # helper functions | |
47626 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
47627 | # second argument (suffix to remove) is given | |
47628 | basnam(){ | |
47629 | case ${D}# in | |
47630 | 1) | |
1e9e8aba | 47631 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
47632 | ;; |
47633 | 2) | |
47634 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
47635 | ;; | |
47636 | *) | |
47637 | echo "error in basnam ${D}*" | |
47638 | exit 8 | |
47639 | ;; | |
47640 | esac | |
47641 | } | |
47642 | ||
47643 | # Cleanup temporary files and output | |
47644 | CleanUp() { | |
47645 | cd ${D}curDir | |
47646 | for i in ${D}inputFiles ; do | |
47647 | case ${D}i in | |
47648 | *!) | |
47649 | rm -rf \`basnam ${D}i !\` | |
47650 | ;; | |
47651 | *) | |
47652 | ;; | |
47653 | esac | |
47654 | done | |
47655 | ||
47656 | # Kill result in case of failure as there is just to many stupid make/nmake | |
47657 | # things out there which doesn't do this. | |
1e9e8aba | 47658 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
47659 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
47660 | fi | |
47661 | } | |
47662 | ||
47663 | # Print usage and exit script with rc=1. | |
47664 | PrintHelp() { | |
b1d22ded DE |
47665 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
47666 | echo ' [-name-mangler-script script.sh]' | |
47667 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
47668 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
47669 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 47670 | echo ' [*.o] [*.a]' |
473276a9 VS |
47671 | echo '*> "output_file" should have no extension.' |
47672 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
47673 | echo ' The import library name is derived from this and is set to "name".a,' | |
47674 | echo ' unless overridden by -import' | |
47675 | echo '*> "importlib_name" should have no extension.' | |
47676 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
47677 | echo ' This name is used as the import library name and may be longer and' | |
47678 | echo ' more descriptive than the DLL name which has to follow the old ' | |
47679 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
47680 | echo '*> "script.sh may be given to override the output_file name by a' |
47681 | echo ' different name. It is mainly useful if the regular make process' | |
47682 | echo ' of some package does not take into account OS/2 restriction of' | |
47683 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
47684 | echo ' supposed to procude a shorter name as output. The script should' | |
47685 | echo ' expect to get importlib_name without extension and should produce' | |
47686 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
47687 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
47688 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
47689 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
47690 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
47691 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
47692 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
47693 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
47694 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 47695 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 47696 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 47697 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 47698 | echo ' C runtime DLLs.' |
b1d22ded | 47699 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
47700 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
47701 | echo ' unchanged to GCC at the end of command line.' | |
47702 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
47703 | echo ' the basename for DLL and import library will be set to library name,' | |
47704 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
47705 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
47706 | echo ' library will be renamed into gcc_s.a.' | |
47707 | echo '--------' | |
47708 | echo 'Example:' | |
47709 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
47710 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
47711 | CleanUp | |
47712 | exit 1 | |
47713 | } | |
47714 | ||
47715 | # Execute a command. | |
47716 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
47717 | # @Uses Whatever CleanUp() uses. | |
47718 | doCommand() { | |
47719 | echo "${D}*" | |
47720 | eval ${D}* | |
47721 | rcCmd=${D}? | |
47722 | ||
1e9e8aba | 47723 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
47724 | echo "command failed, exit code="${D}rcCmd |
47725 | CleanUp | |
47726 | exit ${D}rcCmd | |
47727 | fi | |
47728 | } | |
47729 | ||
47730 | # main routine | |
47731 | # setup globals | |
47732 | cmdLine=${D}* | |
47733 | outFile="" | |
47734 | outimpFile="" | |
47735 | inputFiles="" | |
b1d22ded | 47736 | renameScript="" |
473276a9 VS |
47737 | description="" |
47738 | CC=gcc.exe | |
47739 | CFLAGS="-s -Zcrtdll" | |
47740 | EXTRA_CFLAGS="" | |
47741 | EXPORT_BY_ORDINALS=0 | |
47742 | exclude_symbols="" | |
47743 | library_flags="" | |
47744 | curDir=\`pwd\` | |
47745 | curDirS=curDir | |
47746 | case ${D}curDirS in | |
47747 | */) | |
47748 | ;; | |
47749 | *) | |
47750 | curDirS=${D}{curDirS}"/" | |
47751 | ;; | |
47752 | esac | |
47753 | # Parse commandline | |
47754 | libsToLink=0 | |
b1d22ded | 47755 | omfLinking=0 |
1e9e8aba | 47756 | while [ ${D}1 ]; do |
473276a9 VS |
47757 | case ${D}1 in |
47758 | -ord*) | |
47759 | EXPORT_BY_ORDINALS=1; | |
47760 | ;; | |
47761 | -o*) | |
47762 | shift | |
47763 | outFile=${D}1 | |
47764 | ;; | |
47765 | -i*) | |
47766 | shift | |
47767 | outimpFile=${D}1 | |
47768 | ;; | |
b1d22ded DE |
47769 | -name-mangler-script) |
47770 | shift | |
47771 | renameScript=${D}1 | |
47772 | ;; | |
473276a9 VS |
47773 | -d*) |
47774 | shift | |
47775 | description=${D}1 | |
47776 | ;; | |
47777 | -f*) | |
47778 | shift | |
47779 | CFLAGS=${D}1 | |
47780 | ;; | |
47781 | -c*) | |
47782 | shift | |
47783 | CC=${D}1 | |
47784 | ;; | |
47785 | -h*) | |
47786 | PrintHelp | |
47787 | ;; | |
47788 | -ex*) | |
47789 | shift | |
47790 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
47791 | ;; | |
47792 | -libf*) | |
47793 | shift | |
47794 | library_flags=${D}{library_flags}${D}1" " | |
47795 | ;; | |
47796 | -nocrt*) | |
47797 | CFLAGS="-s" | |
47798 | ;; | |
47799 | -nolxl*) | |
47800 | flag_USE_LXLITE=0 | |
47801 | ;; | |
47802 | -* | /*) | |
47803 | case ${D}1 in | |
47804 | -L* | -l*) | |
47805 | libsToLink=1 | |
47806 | ;; | |
b1d22ded DE |
47807 | -Zomf) |
47808 | omfLinking=1 | |
47809 | ;; | |
473276a9 VS |
47810 | *) |
47811 | ;; | |
47812 | esac | |
47813 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
47814 | ;; | |
b1d22ded DE |
47815 | *.dll) |
47816 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
47817 | if [ ${D}omfLinking -eq 1 ]; then | |
47818 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
47819 | else | |
47820 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
47821 | fi | |
47822 | ;; | |
473276a9 VS |
47823 | *) |
47824 | found=0; | |
1e9e8aba | 47825 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
47826 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
47827 | else | |
47828 | for file in ${D}1 ; do | |
1e9e8aba | 47829 | if [ -f ${D}file ]; then |
473276a9 VS |
47830 | inputFiles="${D}{inputFiles} ${D}file" |
47831 | found=1 | |
47832 | fi | |
47833 | done | |
1e9e8aba | 47834 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
47835 | echo "ERROR: No file(s) found: "${D}1 |
47836 | exit 8 | |
47837 | fi | |
47838 | fi | |
47839 | ;; | |
47840 | esac | |
47841 | shift | |
47842 | done # iterate cmdline words | |
47843 | ||
47844 | # | |
1e9e8aba | 47845 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
47846 | echo "dllar: no input files" |
47847 | PrintHelp | |
47848 | fi | |
47849 | ||
47850 | # Now extract all .o files from .a files | |
47851 | newInputFiles="" | |
47852 | for file in ${D}inputFiles ; do | |
47853 | case ${D}file in | |
47854 | *.a | *.lib) | |
47855 | case ${D}file in | |
47856 | *.a) | |
47857 | suffix=".a" | |
47858 | AR="ar" | |
47859 | ;; | |
47860 | *.lib) | |
47861 | suffix=".lib" | |
47862 | AR="emxomfar" | |
47863 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
47864 | ;; | |
47865 | *) | |
47866 | ;; | |
47867 | esac | |
47868 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
47869 | mkdir ${D}dirname | |
1e9e8aba | 47870 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
47871 | echo "Failed to create subdirectory ./${D}dirname" |
47872 | CleanUp | |
47873 | exit 8; | |
47874 | fi | |
47875 | # Append '!' to indicate archive | |
47876 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
47877 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
47878 | cd ${D}curDir | |
47879 | found=0; | |
47880 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 47881 | if [ -f ${D}subfile ]; then |
473276a9 | 47882 | found=1 |
1e9e8aba | 47883 | if [ -s ${D}subfile ]; then |
473276a9 VS |
47884 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
47885 | newInputFiles="${D}newInputFiles ${D}subfile" | |
47886 | fi | |
47887 | fi | |
47888 | done | |
1e9e8aba DE |
47889 | if [ ${D}found -eq 0 ]; then |
47890 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
47891 | fi |
47892 | ;; | |
47893 | *) | |
47894 | newInputFiles="${D}{newInputFiles} ${D}file" | |
47895 | ;; | |
47896 | esac | |
47897 | done | |
47898 | inputFiles="${D}newInputFiles" | |
47899 | ||
47900 | # Output filename(s). | |
47901 | do_backup=0; | |
1e9e8aba | 47902 | if [ -z ${D}outFile ]; then |
473276a9 VS |
47903 | do_backup=1; |
47904 | set outFile ${D}inputFiles; outFile=${D}2 | |
47905 | fi | |
47906 | ||
47907 | # If it is an archive, remove the '!' and the '_%' suffixes | |
47908 | case ${D}outFile in | |
47909 | *_%!) | |
47910 | outFile=\`basnam ${D}outFile _%!\` | |
47911 | ;; | |
47912 | *) | |
47913 | ;; | |
47914 | esac | |
47915 | case ${D}outFile in | |
47916 | *.dll) | |
47917 | outFile=\`basnam ${D}outFile .dll\` | |
47918 | ;; | |
47919 | *.DLL) | |
47920 | outFile=\`basnam ${D}outFile .DLL\` | |
47921 | ;; | |
47922 | *.o) | |
47923 | outFile=\`basnam ${D}outFile .o\` | |
47924 | ;; | |
47925 | *.obj) | |
47926 | outFile=\`basnam ${D}outFile .obj\` | |
47927 | ;; | |
47928 | *.a) | |
47929 | outFile=\`basnam ${D}outFile .a\` | |
47930 | ;; | |
47931 | *.lib) | |
47932 | outFile=\`basnam ${D}outFile .lib\` | |
47933 | ;; | |
47934 | *) | |
47935 | ;; | |
47936 | esac | |
47937 | case ${D}outimpFile in | |
47938 | *.a) | |
47939 | outimpFile=\`basnam ${D}outimpFile .a\` | |
47940 | ;; | |
47941 | *.lib) | |
47942 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
47943 | ;; | |
47944 | *) | |
47945 | ;; | |
47946 | esac | |
1e9e8aba | 47947 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
47948 | outimpFile=${D}outFile |
47949 | fi | |
47950 | defFile="${D}{outFile}.def" | |
47951 | arcFile="${D}{outimpFile}.a" | |
47952 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
47953 | |
47954 | #create ${D}dllFile as something matching 8.3 restrictions, | |
47955 | if [ -z ${D}renameScript ] ; then | |
47956 | dllFile="${D}outFile" | |
47957 | else | |
47958 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
47959 | fi | |
473276a9 | 47960 | |
1e9e8aba DE |
47961 | if [ ${D}do_backup -ne 0 ] ; then |
47962 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
47963 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
47964 | fi | |
1e9e8aba | 47965 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
47966 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
47967 | fi | |
47968 | fi | |
47969 | ||
47970 | # Extract public symbols from all the object files. | |
47971 | tmpdefFile=${D}{defFile}_% | |
47972 | rm -f ${D}tmpdefFile | |
47973 | for file in ${D}inputFiles ; do | |
47974 | case ${D}file in | |
47975 | *!) | |
47976 | ;; | |
47977 | *) | |
47978 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
47979 | ;; | |
47980 | esac | |
47981 | done | |
47982 | ||
47983 | # Create the def file. | |
47984 | rm -f ${D}defFile | |
47985 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
47986 | dllFile="${D}{dllFile}.dll" |
47987 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 47988 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
47989 | fi |
47990 | echo "EXPORTS" >> ${D}defFile | |
47991 | ||
47992 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
47993 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
47994 | ||
47995 | # Checks if the export is ok or not. | |
47996 | for word in ${D}exclude_symbols; do | |
47997 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
47998 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
47999 | done | |
48000 | ||
48001 | ||
1e9e8aba DE |
48002 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
48003 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
48004 | sed ' |
48005 | N | |
48006 | : loop | |
1e9e8aba | 48007 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
48008 | t loop |
48009 | ' > ${D}{tmpdefFile}% | |
48010 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
48011 | else | |
48012 | rm -f ${D}{tmpdefFile}% | |
48013 | fi | |
48014 | cat ${D}tmpdefFile >> ${D}defFile | |
48015 | rm -f ${D}tmpdefFile | |
48016 | ||
48017 | # Do linking, create implib, and apply lxlite. | |
48018 | gccCmdl=""; | |
48019 | for file in ${D}inputFiles ; do | |
48020 | case ${D}file in | |
48021 | *!) | |
48022 | ;; | |
48023 | *) | |
48024 | gccCmdl="${D}gccCmdl ${D}file" | |
48025 | ;; | |
48026 | esac | |
48027 | done | |
48028 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
48029 | touch "${D}{outFile}.dll" | |
48030 | ||
48031 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 48032 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 48033 | add_flags=""; |
1e9e8aba | 48034 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
48035 | add_flags="-ynd" |
48036 | fi | |
48037 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
48038 | fi | |
48039 | doCommand "emxomf -s -l ${D}arcFile" | |
48040 | ||
48041 | # Successful exit. | |
48042 | CleanUp 1 | |
48043 | exit 0 | |
48044 | EOF | |
48045 | ||
48046 | chmod +x dllar.sh | |
a848cd7e SC |
48047 | ;; |
48048 | ||
1e9e8aba | 48049 | powerpc-apple-macos* | \ |
0ad5d837 | 48050 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
48051 | *-*-sunos4* | \ |
48052 | *-*-osf* | \ | |
48053 | *-*-dgux5* | \ | |
47a7e797 MW |
48054 | *-*-sysv5* | \ |
48055 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
48056 | ;; |
48057 | ||
48058 | *) | |
3ecd9f92 | 48059 | esac |
a848cd7e | 48060 | |
2057db16 VS |
48061 | if test "x$PIC_FLAG" != "x" ; then |
48062 | PIC_FLAG="$PIC_FLAG -DPIC" | |
48063 | fi | |
48064 | ||
a848cd7e SC |
48065 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
48066 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
48067 | fi | |
48068 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
48069 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
48070 | fi | |
48071 | ||
48072 | ||
48073 | ||
48074 | ||
48075 | ||
48076 | ||
48077 | ||
48078 | ||
810b94f0 | 48079 | |
a848cd7e SC |
48080 | USE_SOVERSION=0 |
48081 | USE_SOVERLINUX=0 | |
48082 | USE_SOVERSOLARIS=0 | |
810b94f0 | 48083 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
48084 | USE_SOSYMLINKS=0 |
48085 | USE_MACVERSION=0 | |
48086 | SONAME_FLAG= | |
48087 | ||
48088 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 48089 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
48090 | SONAME_FLAG="-Wl,-soname," |
48091 | USE_SOVERSION=1 | |
48092 | USE_SOVERLINUX=1 | |
48093 | USE_SOSYMLINKS=1 | |
48094 | ;; | |
48095 | ||
a848cd7e SC |
48096 | *-*-solaris2* ) |
48097 | SONAME_FLAG="-h " | |
48098 | USE_SOVERSION=1 | |
48099 | USE_SOVERSOLARIS=1 | |
48100 | USE_SOSYMLINKS=1 | |
48101 | ;; | |
48102 | ||
48103 | *-*-darwin* ) | |
48104 | USE_MACVERSION=1 | |
48105 | USE_SOVERSION=1 | |
48106 | USE_SOSYMLINKS=1 | |
48107 | ;; | |
810b94f0 MW |
48108 | |
48109 | *-*-cygwin* ) | |
48110 | USE_SOVERSION=1 | |
48111 | USE_SOVERCYGWIN=1 | |
48112 | ;; | |
a848cd7e SC |
48113 | esac |
48114 | ||
48115 | ||
48116 | ||
48117 | ||
48118 | ||
48119 | ||
48120 | ||
48121 | ||
48122 | ||
810b94f0 | 48123 | |
f10e38c4 VZ |
48124 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
48125 | if test "${enable_dependency_tracking+set}" = set; then | |
48126 | enableval="$enable_dependency_tracking" | |
48127 | bk_use_trackdeps="$enableval" | |
48128 | fi; | |
48129 | ||
a848cd7e SC |
48130 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
48131 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
a848cd7e | 48132 | |
f10e38c4 VZ |
48133 | if test "x$bk_use_trackdeps" = "xno" ; then |
48134 | DEPS_TRACKING=0 | |
48135 | echo "$as_me:$LINENO: result: disabled" >&5 | |
48136 | echo "${ECHO_T}disabled" >&6 | |
48137 | else | |
48138 | DEPS_TRACKING=1 | |
48139 | ||
48140 | if test "x$GCC" = "xyes"; then | |
48141 | DEPSMODE=gcc | |
48142 | case "${BAKEFILE_HOST}" in | |
48143 | *-*-darwin* ) | |
48144 | DEPSFLAG="-no-cpp-precomp -MMD" | |
48145 | ;; | |
48146 | * ) | |
48147 | DEPSFLAG="-MMD" | |
48148 | ;; | |
48149 | esac | |
48150 | echo "$as_me:$LINENO: result: gcc" >&5 | |
a848cd7e | 48151 | echo "${ECHO_T}gcc" >&6 |
f10e38c4 VZ |
48152 | elif test "x$MWCC" = "xyes"; then |
48153 | DEPSMODE=mwcc | |
48154 | DEPSFLAG="-MM" | |
48155 | echo "$as_me:$LINENO: result: mwcc" >&5 | |
b1d22ded | 48156 | echo "${ECHO_T}mwcc" >&6 |
f10e38c4 VZ |
48157 | elif test "x$SUNCC" = "xyes"; then |
48158 | DEPSMODE=unixcc | |
48159 | DEPSFLAG="-xM1" | |
48160 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
0ad5d837 | 48161 | echo "${ECHO_T}Sun cc" >&6 |
f10e38c4 VZ |
48162 | elif test "x$SGICC" = "xyes"; then |
48163 | DEPSMODE=unixcc | |
48164 | DEPSFLAG="-M" | |
48165 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
0ad5d837 | 48166 | echo "${ECHO_T}SGI cc" >&6 |
f10e38c4 VZ |
48167 | elif test "x$HPCC" = "xyes"; then |
48168 | DEPSMODE=unixcc | |
48169 | DEPSFLAG="+make" | |
48170 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
3006edc0 | 48171 | echo "${ECHO_T}HP cc" >&6 |
f10e38c4 VZ |
48172 | elif test "x$COMPAQCC" = "xyes"; then |
48173 | DEPSMODE=gcc | |
48174 | DEPSFLAG="-MD" | |
48175 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
a1aa0349 | 48176 | echo "${ECHO_T}Compaq cc" >&6 |
f10e38c4 VZ |
48177 | else |
48178 | DEPS_TRACKING=0 | |
48179 | echo "$as_me:$LINENO: result: none" >&5 | |
a848cd7e | 48180 | echo "${ECHO_T}none" >&6 |
f10e38c4 | 48181 | fi |
a848cd7e | 48182 | |
f10e38c4 | 48183 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
48184 | |
48185 | D='$' | |
48186 | cat <<EOF >bk-deps | |
a848cd7e SC |
48187 | #!/bin/sh |
48188 | ||
48189 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
48190 | # script. It is used to track C/C++ files dependencies in portable way. | |
48191 | # | |
48192 | # Permission is given to use this file in any way. | |
48193 | ||
473276a9 | 48194 | DEPSMODE=${DEPSMODE} |
a848cd7e | 48195 | DEPSDIR=.deps |
0ad5d837 | 48196 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 48197 | |
473276a9 | 48198 | mkdir -p ${D}DEPSDIR |
a848cd7e | 48199 | |
473276a9 | 48200 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 48201 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
48202 | status=${D}? |
48203 | if test ${D}{status} != 0 ; then | |
48204 | exit ${D}{status} | |
a848cd7e SC |
48205 | fi |
48206 | # move created file to the location we want it in: | |
473276a9 VS |
48207 | while test ${D}# -gt 0; do |
48208 | case "${D}1" in | |
a848cd7e SC |
48209 | -o ) |
48210 | shift | |
473276a9 | 48211 | objfile=${D}1 |
a848cd7e SC |
48212 | ;; |
48213 | -* ) | |
48214 | ;; | |
48215 | * ) | |
473276a9 | 48216 | srcfile=${D}1 |
a848cd7e SC |
48217 | ;; |
48218 | esac | |
48219 | shift | |
48220 | done | |
1e9e8aba DE |
48221 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
48222 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
48223 | if test -f ${D}depfile ; then |
48224 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
48225 | rm -f ${D}depfile | |
a848cd7e | 48226 | else |
a1aa0349 | 48227 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 48228 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
48229 | if test ! -f ${D}depfile ; then |
48230 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
48231 | depfile="${D}objfile.d" | |
48232 | fi | |
473276a9 VS |
48233 | if test -f ${D}depfile ; then |
48234 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
48235 | rm -f ${D}depfile | |
a848cd7e SC |
48236 | fi |
48237 | fi | |
48238 | exit 0 | |
81f90336 | 48239 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 48240 | ${D}* || exit ${D}? |
81f90336 MW |
48241 | # Run mwcc again with -MM and redirect into the dep file we want |
48242 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
48243 | prevarg= | |
48244 | for arg in ${D}* ; do | |
48245 | if test "${D}prevarg" = "-o"; then | |
48246 | objfile=${D}arg | |
48247 | else | |
48248 | case "${D}arg" in | |
48249 | -* ) | |
48250 | ;; | |
48251 | * ) | |
48252 | srcfile=${D}arg | |
48253 | ;; | |
48254 | esac | |
48255 | fi | |
48256 | prevarg="${D}arg" | |
48257 | done | |
0ad5d837 | 48258 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 48259 | exit 0 |
0ad5d837 | 48260 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 48261 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
48262 | # Run compiler again with deps flag and redirect into the dep file. |
48263 | # It doesn't work if the '-o FILE' option is used, but without it the | |
48264 | # dependency file will contain the wrong name for the object. So it is | |
48265 | # removed from the command line, and the dep file is fixed with sed. | |
48266 | cmd="" | |
48267 | while test ${D}# -gt 0; do | |
48268 | case "${D}1" in | |
48269 | -o ) | |
48270 | shift | |
48271 | objfile=${D}1 | |
48272 | ;; | |
48273 | * ) | |
48274 | eval arg${D}#=\\${D}1 | |
48275 | cmd="${D}cmd \\${D}arg${D}#" | |
48276 | ;; | |
48277 | esac | |
48278 | shift | |
48279 | done | |
0ad5d837 | 48280 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 48281 | exit 0 |
a848cd7e | 48282 | else |
473276a9 VS |
48283 | ${D}* |
48284 | exit ${D}? | |
a848cd7e SC |
48285 | fi |
48286 | EOF | |
473276a9 | 48287 | |
f10e38c4 VZ |
48288 | chmod +x bk-deps |
48289 | fi | |
a848cd7e SC |
48290 | fi |
48291 | ||
48292 | ||
48293 | ||
48294 | ||
a848cd7e SC |
48295 | case ${BAKEFILE_HOST} in |
48296 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
48297 | if test -n "$ac_tool_prefix"; then |
48298 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
48299 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
48300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48302 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
48303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48304 | else | |
48305 | if test -n "$WINDRES"; then | |
48306 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
48307 | else | |
48308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48309 | for as_dir in $PATH | |
48310 | do | |
48311 | IFS=$as_save_IFS | |
48312 | test -z "$as_dir" && as_dir=. | |
48313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48315 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
48316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48317 | break 2 | |
48318 | fi | |
48319 | done | |
48320 | done | |
48321 | ||
48322 | fi | |
48323 | fi | |
48324 | WINDRES=$ac_cv_prog_WINDRES | |
48325 | if test -n "$WINDRES"; then | |
48326 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
48327 | echo "${ECHO_T}$WINDRES" >&6 | |
48328 | else | |
48329 | echo "$as_me:$LINENO: result: no" >&5 | |
48330 | echo "${ECHO_T}no" >&6 | |
48331 | fi | |
48332 | ||
48333 | fi | |
48334 | if test -z "$ac_cv_prog_WINDRES"; then | |
48335 | ac_ct_WINDRES=$WINDRES | |
48336 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
48337 | set dummy windres; ac_word=$2 |
48338 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 48340 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
48341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
48342 | else | |
8ced02f6 DE |
48343 | if test -n "$ac_ct_WINDRES"; then |
48344 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
48345 | else |
48346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48347 | for as_dir in $PATH | |
48348 | do | |
48349 | IFS=$as_save_IFS | |
48350 | test -z "$as_dir" && as_dir=. | |
48351 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48352 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 48353 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
48354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
48355 | break 2 | |
48356 | fi | |
48357 | done | |
48358 | done | |
48359 | ||
a848cd7e SC |
48360 | fi |
48361 | fi | |
8ced02f6 DE |
48362 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
48363 | if test -n "$ac_ct_WINDRES"; then | |
48364 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
48365 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
48366 | else |
48367 | echo "$as_me:$LINENO: result: no" >&5 | |
48368 | echo "${ECHO_T}no" >&6 | |
48369 | fi | |
48370 | ||
8ced02f6 DE |
48371 | WINDRES=$ac_ct_WINDRES |
48372 | else | |
48373 | WINDRES="$ac_cv_prog_WINDRES" | |
48374 | fi | |
48375 | ||
a848cd7e SC |
48376 | ;; |
48377 | ||
1e9e8aba | 48378 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
48379 | # Extract the first word of "Rez", so it can be a program name with args. |
48380 | set dummy Rez; ac_word=$2 | |
48381 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 48383 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
48384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
48385 | else | |
8ced02f6 DE |
48386 | if test -n "$REZ"; then |
48387 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
48388 | else |
48389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48390 | for as_dir in $PATH | |
48391 | do | |
48392 | IFS=$as_save_IFS | |
48393 | test -z "$as_dir" && as_dir=. | |
48394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48395 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 48396 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
48397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
48398 | break 2 | |
48399 | fi | |
48400 | done | |
48401 | done | |
48402 | ||
8ced02f6 | 48403 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
48404 | fi |
48405 | fi | |
8ced02f6 DE |
48406 | REZ=$ac_cv_prog_REZ |
48407 | if test -n "$REZ"; then | |
48408 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
48409 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
48410 | else |
48411 | echo "$as_me:$LINENO: result: no" >&5 | |
48412 | echo "${ECHO_T}no" >&6 | |
48413 | fi | |
48414 | ||
48415 | # Extract the first word of "SetFile", so it can be a program name with args. | |
48416 | set dummy SetFile; ac_word=$2 | |
48417 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48419 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
48420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48421 | else | |
48422 | if test -n "$SETFILE"; then | |
48423 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
48424 | else | |
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 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48431 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48432 | ac_cv_prog_SETFILE="SetFile" | |
48433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48434 | break 2 | |
48435 | fi | |
48436 | done | |
48437 | done | |
48438 | ||
48439 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
48440 | fi | |
48441 | fi | |
48442 | SETFILE=$ac_cv_prog_SETFILE | |
48443 | if test -n "$SETFILE"; then | |
48444 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
48445 | echo "${ECHO_T}$SETFILE" >&6 | |
48446 | else | |
48447 | echo "$as_me:$LINENO: result: no" >&5 | |
48448 | echo "${ECHO_T}no" >&6 | |
48449 | fi | |
48450 | ||
48451 | ;; | |
48452 | esac | |
48453 | ||
48454 | ||
48455 | ||
48456 | ||
48457 | ||
8ced02f6 | 48458 | |
f10e38c4 | 48459 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.0" |
a848cd7e | 48460 | |
dcc1b6ad | 48461 | |
f10e38c4 | 48462 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0" |
a848cd7e | 48463 | |
646b6ec1 | 48464 | |
74b84332 | 48465 | |
a848cd7e SC |
48466 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
48467 | if test "${enable_precomp_headers+set}" = set; then | |
48468 | enableval="$enable_precomp_headers" | |
48469 | bk_use_pch="$enableval" | |
48470 | fi; | |
48471 | ||
48472 | GCC_PCH=0 | |
f10e38c4 VZ |
48473 | ICC_PCH=0 |
48474 | USE_PCH=0 | |
a848cd7e | 48475 | |
5c60e845 MW |
48476 | case ${BAKEFILE_HOST} in |
48477 | *-*-cygwin* ) | |
48478 | bk_use_pch="no" | |
48479 | ;; | |
48480 | esac | |
48481 | ||
a848cd7e SC |
48482 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
48483 | if test "x$GCC" = "xyes"; then | |
48484 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
48485 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
48486 | cat >conftest.$ac_ext <<_ACEOF | |
48487 | /* confdefs.h. */ | |
48488 | _ACEOF | |
48489 | cat confdefs.h >>conftest.$ac_ext | |
48490 | cat >>conftest.$ac_ext <<_ACEOF | |
48491 | /* end confdefs.h. */ | |
48492 | ||
48493 | int | |
48494 | main () | |
48495 | { | |
48496 | ||
48497 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
e5efa97e | 48498 | There is no PCH support |
a848cd7e SC |
48499 | #endif |
48500 | #if (__GNUC__ < 3) | |
e5efa97e | 48501 | There is no PCH support |
a848cd7e SC |
48502 | #endif |
48503 | #if (__GNUC__ == 3) && \ | |
48504 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
48505 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
48506 | ( defined(__INTEL_COMPILER) ) | |
e5efa97e | 48507 | There is no PCH support |
a848cd7e SC |
48508 | #endif |
48509 | ||
48510 | ; | |
48511 | return 0; | |
48512 | } | |
48513 | _ACEOF | |
48514 | rm -f conftest.$ac_objext | |
48515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 48516 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 48517 | ac_status=$? |
ac1cb8d3 VS |
48518 | grep -v '^ *+' conftest.er1 >conftest.err |
48519 | rm -f conftest.er1 | |
48520 | cat conftest.err >&5 | |
a848cd7e SC |
48521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
48522 | (exit $ac_status); } && | |
ca5c6ac3 | 48523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
48524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
48525 | (eval $ac_try) 2>&5 | |
48526 | ac_status=$? | |
48527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
48528 | (exit $ac_status); }; } && | |
48529 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
48530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
48531 | (eval $ac_try) 2>&5 | |
48532 | ac_status=$? | |
48533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
48534 | (exit $ac_status); }; }; then | |
48535 | ||
48536 | echo "$as_me:$LINENO: result: yes" >&5 | |
48537 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
48538 | GCC_PCH=1 |
48539 | ||
48540 | else | |
48541 | echo "$as_me: failed program was:" >&5 | |
48542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
48543 | ||
48544 | ||
f10e38c4 VZ |
48545 | cat >conftest.$ac_ext <<_ACEOF |
48546 | /* confdefs.h. */ | |
48547 | _ACEOF | |
48548 | cat confdefs.h >>conftest.$ac_ext | |
48549 | cat >>conftest.$ac_ext <<_ACEOF | |
48550 | /* end confdefs.h. */ | |
48551 | ||
48552 | int | |
48553 | main () | |
48554 | { | |
48555 | ||
48556 | #if !defined(__INTEL_COMPILER) || \ | |
48557 | (__INTEL_COMPILER < 800) | |
e5efa97e | 48558 | There is no PCH support |
f10e38c4 VZ |
48559 | #endif |
48560 | ||
48561 | ; | |
48562 | return 0; | |
48563 | } | |
48564 | _ACEOF | |
48565 | rm -f conftest.$ac_objext | |
48566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
48567 | (eval $ac_compile) 2>conftest.er1 | |
48568 | ac_status=$? | |
48569 | grep -v '^ *+' conftest.er1 >conftest.err | |
48570 | rm -f conftest.er1 | |
48571 | cat conftest.err >&5 | |
48572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
48573 | (exit $ac_status); } && | |
ca5c6ac3 | 48574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f10e38c4 VZ |
48575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
48576 | (eval $ac_try) 2>&5 | |
48577 | ac_status=$? | |
48578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
48579 | (exit $ac_status); }; } && | |
48580 | { ac_try='test -s conftest.$ac_objext' | |
48581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
48582 | (eval $ac_try) 2>&5 | |
48583 | ac_status=$? | |
48584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
48585 | (exit $ac_status); }; }; then | |
48586 | ||
48587 | echo "$as_me:$LINENO: result: yes" >&5 | |
48588 | echo "${ECHO_T}yes" >&6 | |
48589 | ICC_PCH=1 | |
48590 | ||
48591 | else | |
48592 | echo "$as_me: failed program was:" >&5 | |
48593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
48594 | ||
48595 | ||
48596 | echo "$as_me:$LINENO: result: no" >&5 | |
a848cd7e SC |
48597 | echo "${ECHO_T}no" >&6 |
48598 | ||
48599 | fi | |
ac1cb8d3 | 48600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f10e38c4 VZ |
48601 | |
48602 | fi | |
48603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
48604 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then | |
48605 | USE_PCH=1 | |
1e9e8aba DE |
48606 | |
48607 | D='$' | |
48608 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
48609 | #!/bin/sh |
48610 | ||
48611 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
48612 | # script. It is used to generated precompiled headers. | |
48613 | # | |
48614 | # Permission is given to use this file in any way. | |
48615 | ||
1e9e8aba DE |
48616 | outfile="${D}{1}" |
48617 | header="${D}{2}" | |
a848cd7e SC |
48618 | shift |
48619 | shift | |
48620 | ||
f10e38c4 VZ |
48621 | compiler="" |
48622 | headerfile="" | |
48623 | ||
1e9e8aba | 48624 | while test ${D}{#} -gt 0; do |
f10e38c4 | 48625 | add_to_cmdline=1 |
1e9e8aba | 48626 | case "${D}{1}" in |
a848cd7e | 48627 | -I* ) |
1e9e8aba DE |
48628 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
48629 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
48630 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
48631 | fi |
48632 | ;; | |
f10e38c4 VZ |
48633 | -use-pch|-use_pch ) |
48634 | shift | |
48635 | add_to_cmdline=0 | |
48636 | ;; | |
a848cd7e | 48637 | esac |
f10e38c4 VZ |
48638 | if test ${D}add_to_cmdline = 1 ; then |
48639 | compiler="${D}{compiler} ${D}{1}" | |
48640 | fi | |
a848cd7e SC |
48641 | shift |
48642 | done | |
48643 | ||
1e9e8aba | 48644 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 48645 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 48646 | else |
1e9e8aba DE |
48647 | if test -f ${D}{outfile} ; then |
48648 | rm -f ${D}{outfile} | |
a848cd7e | 48649 | else |
1e9e8aba | 48650 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 48651 | fi |
1e9e8aba | 48652 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e | 48653 | mkdir -p .deps |
f10e38c4 VZ |
48654 | if test "x${GCC_PCH}" = "x1" ; then |
48655 | # can do this because gcc is >= 3.4: | |
48656 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
48657 | elif test "x${ICC_PCH}" = "x1" ; then | |
48658 | filename=pch_gen-${D}${D} | |
48659 | file=${D}{filename}.c | |
48660 | dfile=${D}{filename}.d | |
48661 | cat > ${D}file <<EOT | |
48662 | #include "${D}header" | |
48663 | EOT | |
48664 | # using -MF icc complains about differing command lines in creation/use | |
48665 | ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\ | |
48666 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ | |
48667 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
48668 | fi | |
1e9e8aba | 48669 | exit ${D}{?} |
a848cd7e SC |
48670 | fi |
48671 | EOF | |
1e9e8aba | 48672 | |
a848cd7e SC |
48673 | chmod +x bk-make-pch |
48674 | fi | |
48675 | fi | |
48676 | fi | |
48677 | ||
48678 | ||
48679 | ||
f10e38c4 | 48680 | |
a848cd7e SC |
48681 | COND_BUILD_DEBUG="#" |
48682 | if test "x$BUILD" = "xdebug" ; then | |
48683 | COND_BUILD_DEBUG="" | |
48684 | fi | |
48685 | ||
48686 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
48687 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
48688 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
48689 | fi | |
48690 | ||
48691 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
48692 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
48693 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
48694 | fi | |
48695 | ||
48696 | COND_BUILD_DEBUG_UNICODE_0="#" | |
48697 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
48698 | COND_BUILD_DEBUG_UNICODE_0="" | |
48699 | fi | |
48700 | ||
48701 | COND_BUILD_DEBUG_UNICODE_1="#" | |
48702 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
48703 | COND_BUILD_DEBUG_UNICODE_1="" | |
48704 | fi | |
48705 | ||
48706 | COND_BUILD_RELEASE="#" | |
48707 | if test "x$BUILD" = "xrelease" ; then | |
48708 | COND_BUILD_RELEASE="" | |
48709 | fi | |
48710 | ||
48711 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
48712 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
48713 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
48714 | fi | |
48715 | ||
48716 | COND_BUILD_RELEASE_UNICODE_0="#" | |
48717 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
48718 | COND_BUILD_RELEASE_UNICODE_0="" | |
48719 | fi | |
48720 | ||
48721 | COND_BUILD_RELEASE_UNICODE_1="#" | |
48722 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
48723 | COND_BUILD_RELEASE_UNICODE_1="" | |
48724 | fi | |
48725 | ||
48726 | COND_DEBUG_FLAG_1="#" | |
48727 | if test "x$DEBUG_FLAG" = "x1" ; then | |
48728 | COND_DEBUG_FLAG_1="" | |
48729 | fi | |
48730 | ||
48731 | COND_DEBUG_INFO_0="#" | |
48732 | if test "x$DEBUG_INFO" = "x0" ; then | |
48733 | COND_DEBUG_INFO_0="" | |
48734 | fi | |
48735 | ||
48736 | COND_DEBUG_INFO_1="#" | |
48737 | if test "x$DEBUG_INFO" = "x1" ; then | |
48738 | COND_DEBUG_INFO_1="" | |
48739 | fi | |
48740 | ||
48741 | COND_DEPS_TRACKING_0="#" | |
48742 | if test "x$DEPS_TRACKING" = "x0" ; then | |
48743 | COND_DEPS_TRACKING_0="" | |
48744 | fi | |
48745 | ||
48746 | COND_DEPS_TRACKING_1="#" | |
48747 | if test "x$DEPS_TRACKING" = "x1" ; then | |
48748 | COND_DEPS_TRACKING_1="" | |
48749 | fi | |
48750 | ||
48751 | COND_GCC_PCH_1="#" | |
48752 | if test "x$GCC_PCH" = "x1" ; then | |
48753 | COND_GCC_PCH_1="" | |
48754 | fi | |
48755 | ||
f10e38c4 VZ |
48756 | COND_ICC_PCH_1="#" |
48757 | if test "x$ICC_PCH" = "x1" ; then | |
48758 | COND_ICC_PCH_1="" | |
48759 | fi | |
48760 | ||
a848cd7e SC |
48761 | COND_MONOLITHIC_0="#" |
48762 | if test "x$MONOLITHIC" = "x0" ; then | |
48763 | COND_MONOLITHIC_0="" | |
48764 | fi | |
48765 | ||
48766 | COND_MONOLITHIC_0_SHARED_0="#" | |
48767 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
48768 | COND_MONOLITHIC_0_SHARED_0="" | |
48769 | fi | |
48770 | ||
3f60522a JS |
48771 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#" |
48772 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then | |
48773 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="" | |
48774 | fi | |
48775 | ||
a848cd7e SC |
48776 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" |
48777 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
48778 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
48779 | fi | |
48780 | ||
90970d69 DE |
48781 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
48782 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
48783 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
48784 | fi | |
48785 | ||
f10e38c4 VZ |
48786 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
48787 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
48788 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
48789 | fi | |
48790 | ||
a848cd7e SC |
48791 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
48792 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48793 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
48794 | fi | |
48795 | ||
6671c68b VZ |
48796 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
48797 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
48798 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
48799 | fi | |
48800 | ||
a848cd7e SC |
48801 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
48802 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
48803 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
48804 | fi | |
48805 | ||
8b6682b9 JS |
48806 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#" |
48807 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then | |
48808 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="" | |
48809 | fi | |
48810 | ||
ceec2216 RL |
48811 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
48812 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
48813 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
48814 | fi | |
48815 | ||
a848cd7e SC |
48816 | COND_MONOLITHIC_0_SHARED_1="#" |
48817 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
48818 | COND_MONOLITHIC_0_SHARED_1="" | |
48819 | fi | |
48820 | ||
3f60522a JS |
48821 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#" |
48822 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then | |
48823 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="" | |
48824 | fi | |
48825 | ||
a848cd7e SC |
48826 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
48827 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
48828 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
48829 | fi | |
48830 | ||
90970d69 DE |
48831 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
48832 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
48833 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
48834 | fi | |
48835 | ||
f10e38c4 VZ |
48836 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
48837 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
48838 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
48839 | fi | |
48840 | ||
a848cd7e SC |
48841 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
48842 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48843 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
48844 | fi | |
48845 | ||
6671c68b VZ |
48846 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
48847 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
48848 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
48849 | fi | |
48850 | ||
a848cd7e SC |
48851 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
48852 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
48853 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
48854 | fi | |
48855 | ||
8b6682b9 JS |
48856 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#" |
48857 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then | |
48858 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="" | |
48859 | fi | |
48860 | ||
ceec2216 RL |
48861 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
48862 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
48863 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
48864 | fi | |
48865 | ||
e5efa97e VZ |
48866 | COND_MONOLITHIC_0_USE_MEDIA_1="#" |
48867 | if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then | |
48868 | COND_MONOLITHIC_0_USE_MEDIA_1="" | |
48869 | fi | |
48870 | ||
a848cd7e SC |
48871 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
48872 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
48873 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
48874 | fi | |
48875 | ||
48876 | COND_MONOLITHIC_1="#" | |
48877 | if test "x$MONOLITHIC" = "x1" ; then | |
48878 | COND_MONOLITHIC_1="" | |
48879 | fi | |
48880 | ||
48881 | COND_MONOLITHIC_1_SHARED_0="#" | |
48882 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
48883 | COND_MONOLITHIC_1_SHARED_0="" | |
48884 | fi | |
48885 | ||
48886 | COND_MONOLITHIC_1_SHARED_1="#" | |
48887 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
48888 | COND_MONOLITHIC_1_SHARED_1="" | |
48889 | fi | |
48890 | ||
48891 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
48892 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
48893 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
48894 | fi | |
48895 | ||
48896 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
48897 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
48898 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
48899 | fi | |
48900 | ||
eb730a0c JS |
48901 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
48902 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
48903 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
48904 | fi | |
48905 | ||
a848cd7e SC |
48906 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
48907 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
48908 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
48909 | fi | |
48910 | ||
48911 | COND_PLATFORM_MACOSX_1="#" | |
48912 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
48913 | COND_PLATFORM_MACOSX_1="" | |
48914 | fi | |
48915 | ||
a30f955f VS |
48916 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
48917 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
48918 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
48919 | fi | |
48920 | ||
a848cd7e SC |
48921 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
48922 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
48923 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
48924 | fi | |
48925 | ||
48926 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
48927 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
48928 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
48929 | fi | |
48930 | ||
48931 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
48932 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
48933 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
48934 | fi | |
48935 | ||
fc480dc1 DE |
48936 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
48937 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
48938 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
48939 | fi | |
48940 | ||
1e9e8aba DE |
48941 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
48942 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48943 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
48944 | fi | |
48945 | ||
ebee3cd0 VS |
48946 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
48947 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
48948 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
48949 | fi | |
48950 | ||
48951 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
48952 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
48953 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
48954 | fi | |
48955 | ||
a848cd7e SC |
48956 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
48957 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
48958 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
48959 | fi | |
48960 | ||
48961 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
48962 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
48963 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
48964 | fi | |
48965 | ||
b48a2016 DE |
48966 | COND_PLATFORM_MACOS_1="#" |
48967 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
48968 | COND_PLATFORM_MACOS_1="" | |
48969 | fi | |
48970 | ||
083508af MW |
48971 | COND_PLATFORM_MAC_1="#" |
48972 | if test "x$PLATFORM_MAC" = "x1" ; then | |
48973 | COND_PLATFORM_MAC_1="" | |
48974 | fi | |
48975 | ||
e5efa97e VZ |
48976 | COND_PLATFORM_MSDOS_0="#" |
48977 | if test "x$PLATFORM_MSDOS" = "x0" ; then | |
48978 | COND_PLATFORM_MSDOS_0="" | |
48979 | fi | |
48980 | ||
83d8eb47 MW |
48981 | COND_PLATFORM_MSDOS_1="#" |
48982 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
48983 | COND_PLATFORM_MSDOS_1="" | |
48984 | fi | |
48985 | ||
a848cd7e SC |
48986 | COND_PLATFORM_OS2_1="#" |
48987 | if test "x$PLATFORM_OS2" = "x1" ; then | |
48988 | COND_PLATFORM_OS2_1="" | |
48989 | fi | |
48990 | ||
48991 | COND_PLATFORM_UNIX_0="#" | |
48992 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
48993 | COND_PLATFORM_UNIX_0="" | |
48994 | fi | |
48995 | ||
48996 | COND_PLATFORM_UNIX_1="#" | |
48997 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
48998 | COND_PLATFORM_UNIX_1="" | |
48999 | fi | |
49000 | ||
49001 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
49002 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
49003 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
49004 | fi | |
49005 | ||
49006 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
49007 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
49008 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
49009 | fi | |
49010 | ||
49011 | COND_PLATFORM_WIN32_0="#" | |
49012 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
49013 | COND_PLATFORM_WIN32_0="" | |
49014 | fi | |
49015 | ||
49016 | COND_PLATFORM_WIN32_1="#" | |
49017 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
49018 | COND_PLATFORM_WIN32_1="" | |
49019 | fi | |
49020 | ||
49021 | COND_SHARED_0="#" | |
49022 | if test "x$SHARED" = "x0" ; then | |
49023 | COND_SHARED_0="" | |
49024 | fi | |
49025 | ||
083508af MW |
49026 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
49027 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
49028 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
49029 | fi | |
49030 | ||
49031 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
49032 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
49033 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
49034 | fi | |
49035 | ||
49036 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
49037 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
49038 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
49039 | fi | |
49040 | ||
a848cd7e SC |
49041 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
49042 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
49043 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
49044 | fi | |
49045 | ||
49046 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
49047 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
49048 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
49049 | fi | |
49050 | ||
49051 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
49052 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
49053 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
49054 | fi | |
49055 | ||
49056 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
49057 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
49058 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
49059 | fi | |
49060 | ||
083508af MW |
49061 | COND_SHARED_0_USE_XRC_1="#" |
49062 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
49063 | COND_SHARED_0_USE_XRC_1="" | |
49064 | fi | |
49065 | ||
a848cd7e SC |
49066 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
49067 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
49068 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
49069 | fi | |
49070 | ||
49071 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
49072 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
49073 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
49074 | fi | |
49075 | ||
49076 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
49077 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
49078 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
49079 | fi | |
49080 | ||
49081 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
49082 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
49083 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
49084 | fi | |
49085 | ||
49086 | COND_SHARED_1="#" | |
49087 | if test "x$SHARED" = "x1" ; then | |
49088 | COND_SHARED_1="" | |
49089 | fi | |
49090 | ||
49091 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
49092 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
49093 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
49094 | fi | |
49095 | ||
083508af MW |
49096 | COND_SHARED_1_USE_XRC_1="#" |
49097 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
49098 | COND_SHARED_1_USE_XRC_1="" | |
49099 | fi | |
49100 | ||
a30f955f VS |
49101 | COND_TOOLKIT_="#" |
49102 | if test "x$TOOLKIT" = "x" ; then | |
49103 | COND_TOOLKIT_="" | |
49104 | fi | |
49105 | ||
a848cd7e SC |
49106 | COND_TOOLKIT_COCOA="#" |
49107 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
49108 | COND_TOOLKIT_COCOA="" | |
49109 | fi | |
49110 | ||
a49baeab DE |
49111 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
49112 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
49113 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
49114 | fi | |
49115 | ||
a848cd7e SC |
49116 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
49117 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
49118 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
49119 | fi | |
49120 | ||
b3c86150 VS |
49121 | COND_TOOLKIT_DFB="#" |
49122 | if test "x$TOOLKIT" = "xDFB" ; then | |
49123 | COND_TOOLKIT_DFB="" | |
49124 | fi | |
49125 | ||
49126 | COND_TOOLKIT_DFB_USE_GUI_1="#" | |
49127 | if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then | |
49128 | COND_TOOLKIT_DFB_USE_GUI_1="" | |
49129 | fi | |
49130 | ||
a848cd7e SC |
49131 | COND_TOOLKIT_GTK="#" |
49132 | if test "x$TOOLKIT" = "xGTK" ; then | |
49133 | COND_TOOLKIT_GTK="" | |
49134 | fi | |
49135 | ||
d044deea MW |
49136 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
49137 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
49138 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
49139 | fi | |
49140 | ||
49141 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
49142 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
49143 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
49144 | fi | |
49145 | ||
49146 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
49147 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
49148 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
49149 | fi | |
49150 | ||
49151 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
49152 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
49153 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
49154 | fi | |
49155 | ||
49156 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
49157 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
49158 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
49159 | fi | |
49160 | ||
49161 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
49162 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
49163 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
49164 | fi | |
49165 | ||
a848cd7e SC |
49166 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
49167 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
49168 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
49169 | fi | |
49170 | ||
a848cd7e SC |
49171 | COND_TOOLKIT_MAC="#" |
49172 | if test "x$TOOLKIT" = "xMAC" ; then | |
49173 | COND_TOOLKIT_MAC="" | |
49174 | fi | |
49175 | ||
49176 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
49177 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
49178 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
49179 | fi | |
49180 | ||
49181 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
49182 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
49183 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
49184 | fi | |
49185 | ||
49186 | COND_TOOLKIT_MGL="#" | |
49187 | if test "x$TOOLKIT" = "xMGL" ; then | |
49188 | COND_TOOLKIT_MGL="" | |
49189 | fi | |
49190 | ||
49191 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
49192 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
49193 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
49194 | fi | |
49195 | ||
49196 | COND_TOOLKIT_MOTIF="#" | |
49197 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
49198 | COND_TOOLKIT_MOTIF="" | |
49199 | fi | |
49200 | ||
49201 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
49202 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
49203 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
49204 | fi | |
49205 | ||
49206 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
49207 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
49208 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
49209 | fi | |
49210 | ||
49211 | COND_TOOLKIT_MSW="#" | |
49212 | if test "x$TOOLKIT" = "xMSW" ; then | |
49213 | COND_TOOLKIT_MSW="" | |
49214 | fi | |
49215 | ||
49216 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
49217 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
49218 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
49219 | fi | |
49220 | ||
49221 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
49222 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
49223 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
49224 | fi | |
49225 | ||
0ee4059d DE |
49226 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
49227 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
49228 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
49229 | fi | |
49230 | ||
a848cd7e SC |
49231 | COND_TOOLKIT_PM="#" |
49232 | if test "x$TOOLKIT" = "xPM" ; then | |
49233 | COND_TOOLKIT_PM="" | |
49234 | fi | |
49235 | ||
49236 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
49237 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
49238 | COND_TOOLKIT_PM_USE_GUI_1="" | |
49239 | fi | |
49240 | ||
49241 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
49242 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
49243 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
49244 | fi | |
49245 | ||
3fd9c298 DE |
49246 | COND_TOOLKIT_WINCE="#" |
49247 | if test "x$TOOLKIT" = "xWINCE" ; then | |
49248 | COND_TOOLKIT_WINCE="" | |
49249 | fi | |
49250 | ||
49251 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
49252 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
49253 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
49254 | fi | |
49255 | ||
49256 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
49257 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
49258 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
49259 | fi | |
49260 | ||
0ee4059d DE |
49261 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
49262 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
49263 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
49264 | fi | |
49265 | ||
a848cd7e SC |
49266 | COND_TOOLKIT_X11="#" |
49267 | if test "x$TOOLKIT" = "xX11" ; then | |
49268 | COND_TOOLKIT_X11="" | |
49269 | fi | |
49270 | ||
49271 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
49272 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
49273 | COND_TOOLKIT_X11_USE_GUI_1="" | |
49274 | fi | |
49275 | ||
49276 | COND_UNICODE_1="#" | |
49277 | if test "x$UNICODE" = "x1" ; then | |
49278 | COND_UNICODE_1="" | |
49279 | fi | |
49280 | ||
49281 | COND_USE_EXCEPTIONS_0="#" | |
49282 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
49283 | COND_USE_EXCEPTIONS_0="" | |
49284 | fi | |
49285 | ||
49286 | COND_USE_EXCEPTIONS_1="#" | |
49287 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
49288 | COND_USE_EXCEPTIONS_1="" | |
49289 | fi | |
49290 | ||
49291 | COND_USE_GUI_0="#" | |
49292 | if test "x$USE_GUI" = "x0" ; then | |
49293 | COND_USE_GUI_0="" | |
49294 | fi | |
49295 | ||
49296 | COND_USE_GUI_1="#" | |
49297 | if test "x$USE_GUI" = "x1" ; then | |
49298 | COND_USE_GUI_1="" | |
49299 | fi | |
49300 | ||
49301 | COND_USE_GUI_1_WXUNIV_0="#" | |
49302 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
49303 | COND_USE_GUI_1_WXUNIV_0="" | |
49304 | fi | |
49305 | ||
49306 | COND_USE_GUI_1_WXUNIV_1="#" | |
49307 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
49308 | COND_USE_GUI_1_WXUNIV_1="" | |
49309 | fi | |
49310 | ||
49311 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
49312 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
49313 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
49314 | fi | |
49315 | ||
49316 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
49317 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
49318 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
49319 | fi | |
49320 | ||
49321 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
49322 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
49323 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
49324 | fi | |
49325 | ||
083508af MW |
49326 | COND_USE_ODBC_1="#" |
49327 | if test "x$USE_ODBC" = "x1" ; then | |
49328 | COND_USE_ODBC_1="" | |
49329 | fi | |
49330 | ||
49331 | COND_USE_OPENGL_1="#" | |
49332 | if test "x$USE_OPENGL" = "x1" ; then | |
49333 | COND_USE_OPENGL_1="" | |
49334 | fi | |
49335 | ||
f10e38c4 VZ |
49336 | COND_USE_PCH_1="#" |
49337 | if test "x$USE_PCH" = "x1" ; then | |
49338 | COND_USE_PCH_1="" | |
49339 | fi | |
49340 | ||
a848cd7e SC |
49341 | COND_USE_PLUGINS_0="#" |
49342 | if test "x$USE_PLUGINS" = "x0" ; then | |
49343 | COND_USE_PLUGINS_0="" | |
49344 | fi | |
49345 | ||
0b78747f MW |
49346 | COND_USE_RTTI_0="#" |
49347 | if test "x$USE_RTTI" = "x0" ; then | |
49348 | COND_USE_RTTI_0="" | |
49349 | fi | |
49350 | ||
49351 | COND_USE_RTTI_1="#" | |
49352 | if test "x$USE_RTTI" = "x1" ; then | |
49353 | COND_USE_RTTI_1="" | |
49354 | fi | |
49355 | ||
a848cd7e SC |
49356 | COND_USE_SOSYMLINKS_1="#" |
49357 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
49358 | COND_USE_SOSYMLINKS_1="" | |
49359 | fi | |
49360 | ||
eb730a0c JS |
49361 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
49362 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
49363 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
49364 | fi | |
49365 | ||
a848cd7e SC |
49366 | COND_USE_SOVERLINUX_1="#" |
49367 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
49368 | COND_USE_SOVERLINUX_1="" | |
49369 | fi | |
49370 | ||
49371 | COND_USE_SOVERSION_0="#" | |
49372 | if test "x$USE_SOVERSION" = "x0" ; then | |
49373 | COND_USE_SOVERSION_0="" | |
49374 | fi | |
49375 | ||
49376 | COND_USE_SOVERSOLARIS_1="#" | |
49377 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
49378 | COND_USE_SOVERSOLARIS_1="" | |
49379 | fi | |
49380 | ||
0b78747f MW |
49381 | COND_USE_THREADS_0="#" |
49382 | if test "x$USE_THREADS" = "x0" ; then | |
49383 | COND_USE_THREADS_0="" | |
49384 | fi | |
49385 | ||
49386 | COND_USE_THREADS_1="#" | |
49387 | if test "x$USE_THREADS" = "x1" ; then | |
49388 | COND_USE_THREADS_1="" | |
49389 | fi | |
49390 | ||
a13a7f89 RL |
49391 | COND_USE_XRC_1="#" |
49392 | if test "x$USE_XRC" = "x1" ; then | |
49393 | COND_USE_XRC_1="" | |
49394 | fi | |
49395 | ||
eb730a0c JS |
49396 | COND_WINDOWS_IMPLIB_1="#" |
49397 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
49398 | COND_WINDOWS_IMPLIB_1="" | |
49399 | fi | |
49400 | ||
a848cd7e SC |
49401 | COND_WITH_PLUGIN_SDL_1="#" |
49402 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
49403 | COND_WITH_PLUGIN_SDL_1="" | |
49404 | fi | |
49405 | ||
1e6eb025 VZ |
49406 | COND_WXUNIV_0="#" |
49407 | if test "x$WXUNIV" = "x0" ; then | |
49408 | COND_WXUNIV_0="" | |
49409 | fi | |
49410 | ||
a848cd7e SC |
49411 | COND_WXUNIV_1="#" |
49412 | if test "x$WXUNIV" = "x1" ; then | |
49413 | COND_WXUNIV_1="" | |
49414 | fi | |
49415 | ||
49416 | COND_WXUSE_EXPAT_BUILTIN="#" | |
49417 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
49418 | COND_WXUSE_EXPAT_BUILTIN="" | |
49419 | fi | |
49420 | ||
49421 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
49422 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
49423 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
49424 | fi | |
49425 | ||
49426 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
49427 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
49428 | COND_WXUSE_LIBPNG_BUILTIN="" | |
49429 | fi | |
49430 | ||
49431 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
49432 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
49433 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
49434 | fi | |
49435 | ||
49436 | COND_WXUSE_ODBC_BUILTIN="#" | |
49437 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
49438 | COND_WXUSE_ODBC_BUILTIN="" | |
49439 | fi | |
49440 | ||
49441 | COND_WXUSE_REGEX_BUILTIN="#" | |
49442 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
49443 | COND_WXUSE_REGEX_BUILTIN="" | |
49444 | fi | |
49445 | ||
49446 | COND_WXUSE_ZLIB_BUILTIN="#" | |
49447 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
49448 | COND_WXUSE_ZLIB_BUILTIN="" | |
49449 | fi | |
49450 | ||
49451 | ||
49452 | ||
810b94f0 MW |
49453 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
49454 | { { 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 | |
49455 | 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;} | |
49456 | { (exit 1); exit 1; }; } | |
49457 | fi | |
49458 | ||
2057db16 VS |
49459 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
49460 | { { 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 | |
49461 | 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;} | |
49462 | { (exit 1); exit 1; }; } | |
49463 | fi | |
49464 | ||
a848cd7e | 49465 | |
7afc46ab KO |
49466 | |
49467 | if test "$wxUSE_MAC" = 1 ; then | |
95768535 | 49468 | if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then |
7afc46ab KO |
49469 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp |
49470 | mv temp bk-deps | |
49471 | chmod +x bk-deps | |
49472 | fi | |
49473 | fi | |
49474 | ||
ceec2216 RL |
49475 | if test "$wxUSE_SHARED" = "yes"; then |
49476 | ||
49477 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
49478 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
49479 | ||
5b674b9d DE |
49480 | case "${host}" in |
49481 | *-pc-os2_emx | *-pc-os2-emx ) | |
49482 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
49483 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
49484 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
49485 | cp -p ${srcdir}/src/os2/dllar.sh . | |
49486 | ;; | |
49487 | esac | |
ceec2216 RL |
49488 | else |
49489 | ||
49490 | EXE_LINKER="$CXX -o" | |
49491 | ||
49492 | fi | |
69120ee4 VZ |
49493 | if test "$wxUSE_OMF" = "yes"; then |
49494 | case "${host}" in | |
49495 | *-pc-os2_emx | *-pc-os2-emx ) | |
49496 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
49497 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
49498 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
49499 | ;; | |
49500 | esac | |
49501 | fi | |
a848cd7e | 49502 | |
c08ebc62 | 49503 | if test $GCC_PCH = 1 ; then |
254e8e29 | 49504 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 49505 | fi |
a848cd7e | 49506 | |
5ff751d6 | 49507 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
49508 | |
49509 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
49510 | ||
49511 | ||
49512 | ||
49513 | ||
49514 | ||
49515 | ||
49516 | ||
49517 | ||
49518 | ||
49519 | ||
49520 | ||
49521 | ||
49522 | ||
49523 | ||
49524 | ||
49525 | ||
49526 | ||
49527 | ||
49528 | ||
49529 | ||
49530 | ||
49531 | ||
49532 | ||
49533 | ||
49534 | ||
49535 | ||
49536 | ||
49537 | ||
49538 | ||
49539 | ||
49540 | ||
49541 | ||
49542 | ||
49543 | ||
49544 | ||
49545 | ||
49546 | ||
49547 | ||
49548 | ||
49549 | ||
49550 | ||
49551 | ||
a848cd7e SC |
49552 | |
49553 | ||
49554 | ||
49555 | ||
49556 | ||
49557 | ||
49558 | ||
49559 | ||
49560 | ||
49561 | ||
49562 | ||
49563 | ||
a848cd7e SC |
49564 | |
49565 | ||
ddd14b14 | 49566 | |
370d2fd7 | 49567 | |
8ced02f6 | 49568 | |
a848cd7e SC |
49569 | |
49570 | ||
49571 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
49572 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 49573 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
49574 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
49575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
49576 | else | |
49577 | cat >conftest.make <<\_ACEOF | |
49578 | all: | |
49579 | @echo 'ac_maketemp="$(MAKE)"' | |
49580 | _ACEOF | |
49581 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
49582 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
49583 | if test -n "$ac_maketemp"; then | |
49584 | eval ac_cv_prog_make_${ac_make}_set=yes | |
49585 | else | |
49586 | eval ac_cv_prog_make_${ac_make}_set=no | |
49587 | fi | |
49588 | rm -f conftest.make | |
49589 | fi | |
49590 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
49591 | echo "$as_me:$LINENO: result: yes" >&5 | |
49592 | echo "${ECHO_T}yes" >&6 | |
49593 | SET_MAKE= | |
49594 | else | |
49595 | echo "$as_me:$LINENO: result: no" >&5 | |
49596 | echo "${ECHO_T}no" >&6 | |
49597 | SET_MAKE="MAKE=${MAKE-make}" | |
49598 | fi | |
49599 | ||
49600 | ||
a848cd7e | 49601 | |
ceec2216 RL |
49602 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
49603 | ||
a848cd7e | 49604 | |
5c60e845 MW |
49605 | if test "$USE_WIN32" = 1; then |
49606 | ac_config_commands="$ac_config_commands | |
49607 | rcdefs.h | |
49608 | " | |
49609 | ||
49610 | fi | |
49611 | ||
ceec2216 | 49612 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 49613 | |
a848cd7e | 49614 | |
ceec2216 | 49615 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 49616 | |
ceec2216 RL |
49617 | |
49618 | ac_config_files="$ac_config_files version-script Makefile" | |
49619 | ||
49620 | ||
5c60e845 | 49621 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
49622 | |
49623 | ||
9103d280 | 49624 | |
1c14217d | 49625 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
49626 | if test "$wxUSE_GUI" = "yes"; then |
49627 | SUBDIRS="samples demos utils contrib" | |
49628 | else SUBDIRS="samples utils" | |
49629 | fi | |
49630 | ||
49631 | ||
49632 | ||
49633 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
49634 | if test "${with_cppunit_prefix+set}" = set; then | |
49635 | withval="$with_cppunit_prefix" | |
49636 | cppunit_config_prefix="$withval" | |
49637 | else | |
49638 | cppunit_config_prefix="" | |
49639 | fi; | |
49640 | ||
49641 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
49642 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
49643 | withval="$with_cppunit_exec_prefix" | |
49644 | cppunit_config_exec_prefix="$withval" | |
49645 | else | |
49646 | cppunit_config_exec_prefix="" | |
49647 | fi; | |
49648 | ||
49649 | if test x$cppunit_config_exec_prefix != x ; then | |
49650 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
49651 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
49652 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
49653 | fi | |
49654 | fi | |
49655 | if test x$cppunit_config_prefix != x ; then | |
49656 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
49657 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
49658 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
49659 | fi | |
49660 | fi | |
49661 | ||
49662 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
49663 | set dummy cppunit-config; ac_word=$2 | |
49664 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
49665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
49666 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
49667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
49668 | else | |
49669 | case $CPPUNIT_CONFIG in | |
49670 | [\\/]* | ?:[\\/]*) | |
49671 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
49672 | ;; | |
49673 | *) | |
49674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
49675 | for as_dir in $PATH | |
49676 | do | |
49677 | IFS=$as_save_IFS | |
49678 | test -z "$as_dir" && as_dir=. | |
49679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
49680 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
49681 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
49682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
49683 | break 2 | |
49684 | fi | |
49685 | done | |
49686 | done | |
49687 | ||
49688 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
49689 | ;; | |
49690 | esac | |
49691 | fi | |
49692 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
49693 | ||
49694 | if test -n "$CPPUNIT_CONFIG"; then | |
49695 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
49696 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
49697 | else | |
49698 | echo "$as_me:$LINENO: result: no" >&5 | |
49699 | echo "${ECHO_T}no" >&6 | |
49700 | fi | |
49701 | ||
49702 | cppunit_version_min=1.8.0 | |
49703 | ||
49704 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
49705 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
49706 | no_cppunit="" | |
49707 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
3ecd9f92 MW |
49708 | echo "$as_me:$LINENO: result: no" >&5 |
49709 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
49710 | no_cppunit=yes |
49711 | else | |
49712 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
49713 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
49714 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
49715 | ||
49716 | cppunit_major_version=`echo $cppunit_version | \ | |
49717 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
49718 | cppunit_minor_version=`echo $cppunit_version | \ | |
49719 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
49720 | cppunit_micro_version=`echo $cppunit_version | \ | |
49721 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
49722 | ||
49723 | cppunit_major_min=`echo $cppunit_version_min | \ | |
49724 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
49725 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
49726 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
49727 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
49728 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
49729 | ||
49730 | cppunit_version_proper=`expr \ | |
49731 | $cppunit_major_version \> $cppunit_major_min \| \ | |
49732 | $cppunit_major_version \= $cppunit_major_min \& \ | |
49733 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
49734 | $cppunit_major_version \= $cppunit_major_min \& \ | |
49735 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
49736 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
49737 | ||
49738 | if test "$cppunit_version_proper" = "1" ; then | |
49739 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
49740 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
49741 | else | |
49742 | echo "$as_me:$LINENO: result: no" >&5 | |
49743 | echo "${ECHO_T}no" >&6 | |
49744 | no_cppunit=yes | |
49745 | fi | |
49746 | fi | |
49747 | ||
49748 | if test "x$no_cppunit" = x ; then | |
c2218763 | 49749 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
49750 | else |
49751 | CPPUNIT_CFLAGS="" | |
49752 | CPPUNIT_LIBS="" | |
c2218763 | 49753 | : |
a848cd7e SC |
49754 | fi |
49755 | ||
49756 | ||
49757 | ||
49758 | ||
49759 | ||
49760 | for subdir in `echo $SUBDIRS`; do | |
49761 | if test -d ${srcdir}/${subdir} ; then | |
49762 | if test "$wxUSE_GUI" = "yes"; then | |
49763 | if test ${subdir} = "samples"; then | |
49764 | makefiles="samples/Makefile.in $makefiles" | |
49765 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
49766 | if test -d $srcdir/samples/$sample; then | |
49767 | makefiles="samples/$sample/Makefile.in $makefiles" | |
49768 | fi | |
49769 | done | |
9c112555 MW |
49770 | else |
49771 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
49772 | eval "disabled=\$$disabled_var" | |
49773 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
49774 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
49775 | fi |
49776 | else if test ${subdir} = "samples"; then | |
49777 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
49778 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
49779 | makefiles="" |
49780 | for util in HelpGen tex2rtf ; do | |
49781 | if test -d $srcdir/utils/$util ; then | |
49782 | makefiles="utils/$util/Makefile.in \ | |
49783 | utils/$util/src/Makefile.in \ | |
49784 | $makefiles" | |
49785 | fi | |
49786 | done | |
a848cd7e SC |
49787 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
49788 | fi | |
49789 | fi | |
49790 | ||
49791 | for mkin in $makefiles ; do | |
49792 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
49793 | ac_config_files="$ac_config_files $mk" | |
49794 | ||
49795 | done | |
49796 | fi | |
49797 | done | |
1c14217d | 49798 | fi |
a848cd7e SC |
49799 | cat >confcache <<\_ACEOF |
49800 | # This file is a shell script that caches the results of configure | |
49801 | # tests run on this system so they can be shared between configure | |
49802 | # scripts and configure runs, see configure's option --config-cache. | |
49803 | # It is not useful on other systems. If it contains results you don't | |
49804 | # want to keep, you may remove or edit it. | |
49805 | # | |
49806 | # config.status only pays attention to the cache file if you give it | |
49807 | # the --recheck option to rerun configure. | |
49808 | # | |
49809 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
49810 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
49811 | # following values. | |
49812 | ||
49813 | _ACEOF | |
49814 | ||
49815 | # The following way of writing the cache mishandles newlines in values, | |
49816 | # but we know of no workaround that is simple, portable, and efficient. | |
49817 | # So, don't put newlines in cache variables' values. | |
49818 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
49819 | # and sets the high bit in the cache file unless we assign to the vars. | |
49820 | { | |
49821 | (set) 2>&1 | | |
49822 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
49823 | *ac_space=\ *) | |
49824 | # `set' does not quote correctly, so add quotes (double-quote | |
49825 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
49826 | sed -n \ | |
ac1cb8d3 VS |
49827 | "s/'/'\\\\''/g; |
49828 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
49829 | ;; |
49830 | *) | |
49831 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
49832 | sed -n \ | |
ac1cb8d3 | 49833 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
49834 | ;; |
49835 | esac; | |
49836 | } | | |
49837 | sed ' | |
49838 | t clear | |
49839 | : clear | |
49840 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
49841 | t end | |
49842 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
49843 | : end' >>confcache | |
49844 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
49845 | if test -w $cache_file; then | |
49846 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
49847 | cat confcache >$cache_file | |
49848 | else | |
49849 | echo "not updating unwritable cache $cache_file" | |
49850 | fi | |
49851 | fi | |
49852 | rm -f confcache | |
49853 | ||
49854 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
49855 | # Let make expand exec_prefix. | |
49856 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
49857 | ||
49858 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
49859 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
49860 | # trailing colons and then remove the whole line if VPATH becomes empty | |
49861 | # (actually we leave an empty line to preserve line numbers). | |
49862 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 49863 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
49864 | s/:*\$(srcdir):*/:/; |
49865 | s/:*\${srcdir}:*/:/; | |
49866 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 49867 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 49868 | s/:*$//; |
ac1cb8d3 | 49869 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
49870 | }' |
49871 | fi | |
49872 | ||
49873 | DEFS=-DHAVE_CONFIG_H | |
49874 | ||
49875 | ac_libobjs= | |
49876 | ac_ltlibobjs= | |
49877 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
49878 | # 1. Remove the extension, and $U if already installed. | |
49879 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 49880 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
49881 | # 2. Add them. |
49882 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
49883 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
49884 | done | |
49885 | LIBOBJS=$ac_libobjs | |
49886 | ||
49887 | LTLIBOBJS=$ac_ltlibobjs | |
49888 | ||
49889 | ||
49890 | ||
49891 | : ${CONFIG_STATUS=./config.status} | |
49892 | ac_clean_files_save=$ac_clean_files | |
49893 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
49894 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
49895 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
49896 | cat >$CONFIG_STATUS <<_ACEOF | |
49897 | #! $SHELL | |
49898 | # Generated by $as_me. | |
49899 | # Run this file to recreate the current configuration. | |
49900 | # Compiler output produced by configure, useful for debugging | |
49901 | # configure, is in config.log if it exists. | |
49902 | ||
49903 | debug=false | |
49904 | ac_cs_recheck=false | |
49905 | ac_cs_silent=false | |
49906 | SHELL=\${CONFIG_SHELL-$SHELL} | |
49907 | _ACEOF | |
49908 | ||
49909 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49910 | ## --------------------- ## | |
49911 | ## M4sh Initialization. ## | |
49912 | ## --------------------- ## | |
49913 | ||
49914 | # Be Bourne compatible | |
49915 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
49916 | emulate sh | |
49917 | NULLCMD=: | |
49918 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
49919 | # is contrary to our usage. Disable this feature. | |
49920 | alias -g '${1+"$@"}'='"$@"' | |
49921 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
49922 | set -o posix | |
49923 | fi | |
ac1cb8d3 | 49924 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
49925 | |
49926 | # Support unset when possible. | |
ac1cb8d3 | 49927 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
49928 | as_unset=unset |
49929 | else | |
49930 | as_unset=false | |
49931 | fi | |
49932 | ||
49933 | ||
49934 | # Work around bugs in pre-3.0 UWIN ksh. | |
49935 | $as_unset ENV MAIL MAILPATH | |
49936 | PS1='$ ' | |
49937 | PS2='> ' | |
49938 | PS4='+ ' | |
49939 | ||
49940 | # NLS nuisances. | |
49941 | for as_var in \ | |
49942 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
49943 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
49944 | LC_TELEPHONE LC_TIME | |
49945 | do | |
ac1cb8d3 | 49946 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
49947 | eval $as_var=C; export $as_var |
49948 | else | |
49949 | $as_unset $as_var | |
49950 | fi | |
49951 | done | |
49952 | ||
49953 | # Required to use basename. | |
49954 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
49955 | as_expr=expr | |
49956 | else | |
49957 | as_expr=false | |
49958 | fi | |
49959 | ||
49960 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
49961 | as_basename=basename | |
49962 | else | |
49963 | as_basename=false | |
49964 | fi | |
49965 | ||
49966 | ||
49967 | # Name of the executable. | |
49968 | as_me=`$as_basename "$0" || | |
49969 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
49970 | X"$0" : 'X\(//\)$' \| \ | |
49971 | X"$0" : 'X\(/\)$' \| \ | |
49972 | . : '\(.\)' 2>/dev/null || | |
49973 | echo X/"$0" | | |
49974 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
49975 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
49976 | /^X\/\(\/\).*/{ s//\1/; q; } | |
49977 | s/.*/./; q'` | |
49978 | ||
49979 | ||
49980 | # PATH needs CR, and LINENO needs CR and PATH. | |
49981 | # Avoid depending upon Character Ranges. | |
49982 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
49983 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
49984 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
49985 | as_cr_digits='0123456789' | |
49986 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
49987 | ||
49988 | # The user is always right. | |
49989 | if test "${PATH_SEPARATOR+set}" != set; then | |
49990 | echo "#! /bin/sh" >conf$$.sh | |
49991 | echo "exit 0" >>conf$$.sh | |
49992 | chmod +x conf$$.sh | |
49993 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
49994 | PATH_SEPARATOR=';' | |
49995 | else | |
49996 | PATH_SEPARATOR=: | |
49997 | fi | |
49998 | rm -f conf$$.sh | |
49999 | fi | |
50000 | ||
50001 | ||
50002 | as_lineno_1=$LINENO | |
50003 | as_lineno_2=$LINENO | |
50004 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
50005 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
50006 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
50007 | # Find who we are. Look in the path if we contain no path at all | |
50008 | # relative or not. | |
50009 | case $0 in | |
50010 | *[\\/]* ) as_myself=$0 ;; | |
50011 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
50012 | for as_dir in $PATH | |
50013 | do | |
50014 | IFS=$as_save_IFS | |
50015 | test -z "$as_dir" && as_dir=. | |
50016 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
50017 | done | |
50018 | ||
50019 | ;; | |
50020 | esac | |
50021 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
50022 | # in which case we are not to be found in the path. | |
50023 | if test "x$as_myself" = x; then | |
50024 | as_myself=$0 | |
50025 | fi | |
50026 | if test ! -f "$as_myself"; then | |
50027 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
50028 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
50029 | { (exit 1); exit 1; }; } | |
50030 | fi | |
50031 | case $CONFIG_SHELL in | |
50032 | '') | |
50033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
50034 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
50035 | do | |
50036 | IFS=$as_save_IFS | |
50037 | test -z "$as_dir" && as_dir=. | |
50038 | for as_base in sh bash ksh sh5; do | |
50039 | case $as_dir in | |
50040 | /*) | |
50041 | if ("$as_dir/$as_base" -c ' | |
50042 | as_lineno_1=$LINENO | |
50043 | as_lineno_2=$LINENO | |
50044 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
50045 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
50046 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
50047 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
50048 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
50049 | CONFIG_SHELL=$as_dir/$as_base | |
50050 | export CONFIG_SHELL | |
50051 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
50052 | fi;; | |
50053 | esac | |
50054 | done | |
50055 | done | |
50056 | ;; | |
50057 | esac | |
50058 | ||
50059 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
50060 | # uniformly replaced by the line number. The first 'sed' inserts a | |
50061 | # line-number line before each line; the second 'sed' does the real | |
50062 | # work. The second script uses 'N' to pair each line-number line | |
50063 | # with the numbered line, and appends trailing '-' during | |
50064 | # substitution so that $LINENO is not a special case at line end. | |
50065 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
50066 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
50067 | sed '=' <$as_myself | | |
50068 | sed ' | |
50069 | N | |
50070 | s,$,-, | |
50071 | : loop | |
50072 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
50073 | t loop | |
50074 | s,-$,, | |
50075 | s,^['$as_cr_digits']*\n,, | |
50076 | ' >$as_me.lineno && | |
50077 | chmod +x $as_me.lineno || | |
50078 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
50079 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
50080 | { (exit 1); exit 1; }; } | |
50081 | ||
50082 | # Don't try to exec as it changes $[0], causing all sort of problems | |
50083 | # (the dirname of $[0] is not the place where we might find the | |
50084 | # original and so on. Autoconf is especially sensible to this). | |
50085 | . ./$as_me.lineno | |
50086 | # Exit status is that of the last command. | |
50087 | exit | |
50088 | } | |
50089 | ||
50090 | ||
50091 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
50092 | *c*,-n*) ECHO_N= ECHO_C=' | |
50093 | ' ECHO_T=' ' ;; | |
50094 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
50095 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
50096 | esac | |
50097 | ||
50098 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
50099 | as_expr=expr | |
50100 | else | |
50101 | as_expr=false | |
50102 | fi | |
50103 | ||
50104 | rm -f conf$$ conf$$.exe conf$$.file | |
50105 | echo >conf$$.file | |
50106 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
50107 | # We could just check for DJGPP; but this test a) works b) is more generic | |
50108 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
50109 | if test -f conf$$.exe; then | |
50110 | # Don't use ln at all; we don't have any links | |
50111 | as_ln_s='cp -p' | |
50112 | else | |
50113 | as_ln_s='ln -s' | |
50114 | fi | |
50115 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
50116 | as_ln_s=ln | |
50117 | else | |
50118 | as_ln_s='cp -p' | |
50119 | fi | |
50120 | rm -f conf$$ conf$$.exe conf$$.file | |
50121 | ||
50122 | if mkdir -p . 2>/dev/null; then | |
50123 | as_mkdir_p=: | |
50124 | else | |
ac1cb8d3 | 50125 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
50126 | as_mkdir_p=false |
50127 | fi | |
50128 | ||
50129 | as_executable_p="test -f" | |
50130 | ||
50131 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 50132 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
50133 | |
50134 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 50135 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
50136 | |
50137 | ||
50138 | # IFS | |
50139 | # We need space, tab and new line, in precisely that order. | |
50140 | as_nl=' | |
50141 | ' | |
50142 | IFS=" $as_nl" | |
50143 | ||
50144 | # CDPATH. | |
50145 | $as_unset CDPATH | |
50146 | ||
50147 | exec 6>&1 | |
50148 | ||
50149 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
50150 | # report actual input values of CONFIG_FILES etc. instead of their | |
50151 | # values after options handling. Logging --version etc. is OK. | |
50152 | exec 5>>config.log | |
50153 | { | |
50154 | echo | |
50155 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
50156 | ## Running $as_me. ## | |
50157 | _ASBOX | |
50158 | } >&5 | |
50159 | cat >&5 <<_CSEOF | |
50160 | ||
dd8df4fc | 50161 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 50162 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
50163 | |
50164 | CONFIG_FILES = $CONFIG_FILES | |
50165 | CONFIG_HEADERS = $CONFIG_HEADERS | |
50166 | CONFIG_LINKS = $CONFIG_LINKS | |
50167 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
50168 | $ $0 $@ | |
50169 | ||
50170 | _CSEOF | |
50171 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
50172 | echo >&5 | |
50173 | _ACEOF | |
50174 | ||
50175 | # Files that config.status was made for. | |
50176 | if test -n "$ac_config_files"; then | |
50177 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
50178 | fi | |
50179 | ||
50180 | if test -n "$ac_config_headers"; then | |
50181 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
50182 | fi | |
50183 | ||
50184 | if test -n "$ac_config_links"; then | |
50185 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
50186 | fi | |
50187 | ||
50188 | if test -n "$ac_config_commands"; then | |
50189 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
50190 | fi | |
50191 | ||
50192 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50193 | ||
50194 | ac_cs_usage="\ | |
50195 | \`$as_me' instantiates files from templates according to the | |
50196 | current configuration. | |
50197 | ||
50198 | Usage: $0 [OPTIONS] [FILE]... | |
50199 | ||
50200 | -h, --help print this help, then exit | |
50201 | -V, --version print version number, then exit | |
50202 | -q, --quiet do not print progress messages | |
50203 | -d, --debug don't remove temporary files | |
50204 | --recheck update $as_me by reconfiguring in the same conditions | |
50205 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 50206 | instantiate the configuration file FILE |
a848cd7e | 50207 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 50208 | instantiate the configuration header FILE |
a848cd7e SC |
50209 | |
50210 | Configuration files: | |
50211 | $config_files | |
50212 | ||
50213 | Configuration headers: | |
50214 | $config_headers | |
50215 | ||
50216 | Configuration commands: | |
50217 | $config_commands | |
50218 | ||
50219 | Report bugs to <bug-autoconf@gnu.org>." | |
50220 | _ACEOF | |
50221 | ||
50222 | cat >>$CONFIG_STATUS <<_ACEOF | |
50223 | ac_cs_version="\\ | |
dd8df4fc | 50224 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 50225 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
50226 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
50227 | ||
ac1cb8d3 | 50228 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
50229 | This config.status script is free software; the Free Software Foundation |
50230 | gives unlimited permission to copy, distribute and modify it." | |
50231 | srcdir=$srcdir | |
50232 | INSTALL="$INSTALL" | |
50233 | _ACEOF | |
50234 | ||
50235 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50236 | # If no file are specified by the user, then we need to provide default | |
50237 | # value. By we need to know if files were specified by the user. | |
50238 | ac_need_defaults=: | |
50239 | while test $# != 0 | |
50240 | do | |
50241 | case $1 in | |
50242 | --*=*) | |
50243 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
50244 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
50245 | ac_shift=: | |
50246 | ;; | |
50247 | -*) | |
50248 | ac_option=$1 | |
50249 | ac_optarg=$2 | |
50250 | ac_shift=shift | |
50251 | ;; | |
50252 | *) # This is not an option, so the user has probably given explicit | |
50253 | # arguments. | |
50254 | ac_option=$1 | |
50255 | ac_need_defaults=false;; | |
50256 | esac | |
50257 | ||
50258 | case $ac_option in | |
50259 | # Handling of the options. | |
50260 | _ACEOF | |
50261 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50262 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
50263 | ac_cs_recheck=: ;; | |
50264 | --version | --vers* | -V ) | |
50265 | echo "$ac_cs_version"; exit 0 ;; | |
50266 | --he | --h) | |
50267 | # Conflict between --help and --header | |
50268 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
50269 | Try \`$0 --help' for more information." >&5 | |
50270 | echo "$as_me: error: ambiguous option: $1 | |
50271 | Try \`$0 --help' for more information." >&2;} | |
50272 | { (exit 1); exit 1; }; };; | |
50273 | --help | --hel | -h ) | |
50274 | echo "$ac_cs_usage"; exit 0 ;; | |
50275 | --debug | --d* | -d ) | |
50276 | debug=: ;; | |
50277 | --file | --fil | --fi | --f ) | |
50278 | $ac_shift | |
50279 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
50280 | ac_need_defaults=false;; | |
50281 | --header | --heade | --head | --hea ) | |
50282 | $ac_shift | |
50283 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
50284 | ac_need_defaults=false;; | |
50285 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
50286 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
50287 | ac_cs_silent=: ;; | |
50288 | ||
50289 | # This is an error. | |
50290 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
50291 | Try \`$0 --help' for more information." >&5 | |
50292 | echo "$as_me: error: unrecognized option: $1 | |
50293 | Try \`$0 --help' for more information." >&2;} | |
50294 | { (exit 1); exit 1; }; } ;; | |
50295 | ||
50296 | *) ac_config_targets="$ac_config_targets $1" ;; | |
50297 | ||
50298 | esac | |
50299 | shift | |
50300 | done | |
50301 | ||
50302 | ac_configure_extra_args= | |
50303 | ||
50304 | if $ac_cs_silent; then | |
50305 | exec 6>/dev/null | |
50306 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
50307 | fi | |
50308 | ||
50309 | _ACEOF | |
50310 | cat >>$CONFIG_STATUS <<_ACEOF | |
50311 | if \$ac_cs_recheck; then | |
50312 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
50313 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
50314 | fi | |
50315 | ||
50316 | _ACEOF | |
50317 | ||
50318 | cat >>$CONFIG_STATUS <<_ACEOF | |
50319 | # | |
50320 | # INIT-COMMANDS section. | |
50321 | # | |
50322 | ||
5c60e845 MW |
50323 | |
50324 | CPP="$CPP" | |
50325 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
50326 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
50327 | ||
50328 | ||
ceec2216 RL |
50329 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
50330 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
50331 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
50332 | LN_S="${LN_S}" | |
a848cd7e SC |
50333 | |
50334 | ||
50335 | _ACEOF | |
50336 | ||
50337 | ||
50338 | ||
50339 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50340 | for ac_config_target in $ac_config_targets | |
50341 | do | |
50342 | case "$ac_config_target" in | |
50343 | # Handling of arguments. | |
ceec2216 RL |
50344 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
50345 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
50346 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
50347 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
50348 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 50349 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
50350 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
50351 | "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 |
50352 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
50353 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
50354 | { (exit 1); exit 1; }; };; | |
50355 | esac | |
50356 | done | |
50357 | ||
50358 | # If the user did not use the arguments to specify the items to instantiate, | |
50359 | # then the envvar interface is used. Set only those that are not. | |
50360 | # We use the long form for the default assignment because of an extremely | |
50361 | # bizarre bug on SunOS 4.1.3. | |
50362 | if $ac_need_defaults; then | |
50363 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
50364 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
50365 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
50366 | fi | |
50367 | ||
50368 | # Have a temporary directory for convenience. Make it in the build tree | |
50369 | # simply because there is no reason to put it here, and in addition, | |
50370 | # creating and moving files from /tmp can sometimes cause problems. | |
50371 | # Create a temporary directory, and hook for its removal unless debugging. | |
50372 | $debug || | |
50373 | { | |
50374 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
50375 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
50376 | } | |
50377 | ||
50378 | # Create a (secure) tmp directory for tmp files. | |
50379 | ||
50380 | { | |
50381 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
50382 | test -n "$tmp" && test -d "$tmp" | |
50383 | } || | |
50384 | { | |
50385 | tmp=./confstat$$-$RANDOM | |
50386 | (umask 077 && mkdir $tmp) | |
50387 | } || | |
50388 | { | |
50389 | echo "$me: cannot create a temporary directory in ." >&2 | |
50390 | { (exit 1); exit 1; } | |
50391 | } | |
50392 | ||
50393 | _ACEOF | |
50394 | ||
50395 | cat >>$CONFIG_STATUS <<_ACEOF | |
50396 | ||
50397 | # | |
50398 | # CONFIG_FILES section. | |
50399 | # | |
50400 | ||
50401 | # No need to generate the scripts if there are no CONFIG_FILES. | |
50402 | # This happens for instance when ./config.status config.h | |
50403 | if test -n "\$CONFIG_FILES"; then | |
50404 | # Protect against being on the right side of a sed subst in config.status. | |
50405 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
50406 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
50407 | s,@SHELL@,$SHELL,;t t | |
50408 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
50409 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
50410 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
50411 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
50412 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
50413 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
50414 | s,@exec_prefix@,$exec_prefix,;t t | |
50415 | s,@prefix@,$prefix,;t t | |
50416 | s,@program_transform_name@,$program_transform_name,;t t | |
50417 | s,@bindir@,$bindir,;t t | |
50418 | s,@sbindir@,$sbindir,;t t | |
50419 | s,@libexecdir@,$libexecdir,;t t | |
50420 | s,@datadir@,$datadir,;t t | |
50421 | s,@sysconfdir@,$sysconfdir,;t t | |
50422 | s,@sharedstatedir@,$sharedstatedir,;t t | |
50423 | s,@localstatedir@,$localstatedir,;t t | |
50424 | s,@libdir@,$libdir,;t t | |
50425 | s,@includedir@,$includedir,;t t | |
50426 | s,@oldincludedir@,$oldincludedir,;t t | |
50427 | s,@infodir@,$infodir,;t t | |
50428 | s,@mandir@,$mandir,;t t | |
50429 | s,@build_alias@,$build_alias,;t t | |
50430 | s,@host_alias@,$host_alias,;t t | |
50431 | s,@target_alias@,$target_alias,;t t | |
50432 | s,@DEFS@,$DEFS,;t t | |
50433 | s,@ECHO_C@,$ECHO_C,;t t | |
50434 | s,@ECHO_N@,$ECHO_N,;t t | |
50435 | s,@ECHO_T@,$ECHO_T,;t t | |
50436 | s,@LIBS@,$LIBS,;t t | |
50437 | s,@build@,$build,;t t | |
50438 | s,@build_cpu@,$build_cpu,;t t | |
50439 | s,@build_vendor@,$build_vendor,;t t | |
50440 | s,@build_os@,$build_os,;t t | |
50441 | s,@host@,$host,;t t | |
50442 | s,@host_cpu@,$host_cpu,;t t | |
50443 | s,@host_vendor@,$host_vendor,;t t | |
50444 | s,@host_os@,$host_os,;t t | |
50445 | s,@target@,$target,;t t | |
50446 | s,@target_cpu@,$target_cpu,;t t | |
50447 | s,@target_vendor@,$target_vendor,;t t | |
50448 | s,@target_os@,$target_os,;t t | |
50449 | s,@CC@,$CC,;t t | |
50450 | s,@CFLAGS@,$CFLAGS,;t t | |
50451 | s,@LDFLAGS@,$LDFLAGS,;t t | |
50452 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
50453 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
50454 | s,@EXEEXT@,$EXEEXT,;t t | |
50455 | s,@OBJEXT@,$OBJEXT,;t t | |
50456 | s,@CPP@,$CPP,;t t | |
50457 | s,@EGREP@,$EGREP,;t t | |
50458 | s,@CXX@,$CXX,;t t | |
50459 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
50460 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
50461 | s,@RANLIB@,$RANLIB,;t t | |
50462 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
50463 | s,@AR@,$AR,;t t | |
8c80d384 | 50464 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
50465 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
50466 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
50467 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
50468 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 50469 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
50470 | s,@WINDRES@,$WINDRES,;t t |
50471 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
50472 | s,@DLLTOOL@,$DLLTOOL,;t t |
50473 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
50474 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
50475 | s,@LN_S@,$LN_S,;t t | |
50476 | s,@CXXCPP@,$CXXCPP,;t t | |
50477 | s,@subdirs@,$subdirs,;t t | |
50478 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
50479 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
50480 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
50481 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
b3c86150 VS |
50482 | s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t |
50483 | s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t | |
50484 | s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t | |
a848cd7e SC |
50485 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
50486 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
50487 | s,@X_LIBS@,$X_LIBS,;t t | |
50488 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
50489 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
50490 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
50491 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
50492 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
50493 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
50494 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 50495 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
50496 | s,@DEREZ@,$DEREZ,;t t |
50497 | s,@SETFILE@,$SETFILE,;t t | |
50498 | s,@LIBICONV@,$LIBICONV,;t t | |
50499 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
50500 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
50501 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
50502 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
50503 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
50504 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
2b850ae1 RR |
50505 | s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t |
50506 | s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t | |
3565d135 RR |
50507 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
50508 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
f10e38c4 VZ |
50509 | s,@GST_CFLAGS@,$GST_CFLAGS,;t t |
50510 | s,@GST_LIBS@,$GST_LIBS,;t t | |
a848cd7e SC |
50511 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
50512 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
50513 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
50514 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
50515 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
50516 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
50517 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
50518 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
50519 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
50520 | s,@VENDOR@,$VENDOR,;t t | |
50521 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
50522 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
50523 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
50524 | s,@WXUNIV@,$WXUNIV,;t t |
50525 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
50526 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
50527 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
50528 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
50529 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
50530 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
50531 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
50532 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
50533 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
50534 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 50535 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
2b850ae1 | 50536 | s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t |
3565d135 | 50537 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
50538 | s,@UNICODE@,$UNICODE,;t t |
50539 | s,@BUILD@,$BUILD,;t t | |
50540 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
50541 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
50542 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
50543 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
50544 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
50545 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
50546 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
50547 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
50548 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
50549 | s,@SET_MAKE@,$SET_MAKE,;t t | |
50550 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
50551 | s,@NM@,$NM,;t t |
50552 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
50553 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
50554 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
50555 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
50556 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
50557 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
50558 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 50559 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
50560 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
50561 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 50562 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
50563 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
50564 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
50565 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
50566 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
50567 | s,@LIBEXT@,$LIBEXT,;t t | |
50568 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
50569 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 50570 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
50571 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
50572 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
50573 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
50574 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
50575 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
50576 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 50577 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
50578 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
50579 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
50580 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 50581 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
50582 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
50583 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
50584 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
50585 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
50586 | s,@GCC_PCH@,$GCC_PCH,;t t | |
f10e38c4 | 50587 | s,@ICC_PCH@,$ICC_PCH,;t t |
a848cd7e SC |
50588 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
50589 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
50590 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
50591 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
50592 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
50593 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
50594 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
50595 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
50596 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
50597 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
50598 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
50599 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
50600 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
50601 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
50602 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
f10e38c4 | 50603 | s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t |
a848cd7e SC |
50604 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
50605 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
3f60522a | 50606 | s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t |
a848cd7e | 50607 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t |
90970d69 | 50608 | 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 | 50609 | 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 | 50610 | 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 | 50611 | 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 | 50612 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8b6682b9 | 50613 | s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t |
ceec2216 | 50614 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e | 50615 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
3f60522a | 50616 | s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t |
a848cd7e | 50617 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
90970d69 | 50618 | 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 | 50619 | 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 | 50620 | 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 | 50621 | 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 | 50622 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
8b6682b9 | 50623 | s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t |
ceec2216 | 50624 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
e5efa97e | 50625 | s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t |
a848cd7e SC |
50626 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
50627 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
50628 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
50629 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
50630 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
50631 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 50632 | 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 |
50633 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
50634 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 50635 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
50636 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
50637 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
50638 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 50639 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 50640 | 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 |
50641 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
50642 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
50643 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
50644 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 50645 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 50646 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
e5efa97e | 50647 | s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t |
83d8eb47 | 50648 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
50649 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
50650 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
50651 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
50652 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
50653 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
50654 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
50655 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
50656 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
50657 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
50658 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
50659 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
50660 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
50661 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
50662 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
50663 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 50664 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
50665 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
50666 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
50667 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
50668 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
50669 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
50670 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 50671 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 50672 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 50673 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 50674 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e | 50675 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
b3c86150 VS |
50676 | s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t |
50677 | s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t | |
a848cd7e | 50678 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t |
d044deea MW |
50679 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
50680 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
50681 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
50682 | 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 | |
50683 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
50684 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 50685 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
50686 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
50687 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
50688 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
50689 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
50690 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
50691 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
50692 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
50693 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
50694 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
50695 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
50696 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 50697 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
50698 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
50699 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
50700 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
50701 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
50702 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
50703 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 50704 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
50705 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
50706 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
50707 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
50708 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
50709 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
50710 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
50711 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
50712 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
50713 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
50714 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
50715 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
50716 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
50717 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
50718 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
f10e38c4 | 50719 | s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t |
a848cd7e | 50720 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
50721 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
50722 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 50723 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 50724 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
50725 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
50726 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
50727 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
50728 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
50729 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 50730 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 50731 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 50732 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 50733 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
50734 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
50735 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
50736 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
50737 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
50738 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
50739 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
50740 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
50741 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 50742 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
50743 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
50744 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
50745 | s,@USE_GUI@,$USE_GUI,;t t |
50746 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
50747 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
50748 | s,@TOOLKIT@,$TOOLKIT,;t t | |
50749 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 50750 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 50751 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 50752 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
50753 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
50754 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
50755 | s,@WX_VERSION@,$WX_VERSION,;t t | |
50756 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
50757 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
50758 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
50759 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
50760 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
50761 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
50762 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
50763 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
50764 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 50765 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 50766 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 50767 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
50768 | s,@DISTDIR@,$DISTDIR,;t t |
50769 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
50770 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
50771 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
50772 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
50773 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 50774 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
50775 | s,@RESFLAGS@,$RESFLAGS,;t t |
50776 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
50777 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
50778 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
50779 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 50780 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 50781 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 50782 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
50783 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
50784 | s,@LIBOBJS@,$LIBOBJS,;t t | |
50785 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
50786 | CEOF | |
50787 | ||
50788 | _ACEOF | |
50789 | ||
50790 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50791 | # Split the substitutions into bite-sized pieces for seds with | |
50792 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
50793 | ac_max_sed_lines=48 | |
50794 | ac_sed_frag=1 # Number of current file. | |
50795 | ac_beg=1 # First line for current file. | |
50796 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
50797 | ac_more_lines=: | |
50798 | ac_sed_cmds= | |
50799 | while $ac_more_lines; do | |
50800 | if test $ac_beg -gt 1; then | |
50801 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
50802 | else | |
50803 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
50804 | fi | |
50805 | if test ! -s $tmp/subs.frag; then | |
50806 | ac_more_lines=false | |
50807 | else | |
50808 | # The purpose of the label and of the branching condition is to | |
50809 | # speed up the sed processing (if there are no `@' at all, there | |
50810 | # is no need to browse any of the substitutions). | |
50811 | # These are the two extra sed commands mentioned above. | |
50812 | (echo ':t | |
50813 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
50814 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 50815 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 50816 | else |
ac1cb8d3 | 50817 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
50818 | fi |
50819 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
50820 | ac_beg=$ac_end | |
50821 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
50822 | fi | |
50823 | done | |
50824 | if test -z "$ac_sed_cmds"; then | |
50825 | ac_sed_cmds=cat | |
50826 | fi | |
50827 | fi # test -n "$CONFIG_FILES" | |
50828 | ||
50829 | _ACEOF | |
50830 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50831 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
50832 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
50833 | case $ac_file in | |
50834 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
50835 | cat >$tmp/stdin |
50836 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50837 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 50838 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 50839 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
50840 | * ) ac_file_in=$ac_file.in ;; |
50841 | esac | |
50842 | ||
50843 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
50844 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
50845 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50846 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
50847 | X"$ac_file" : 'X\(//\)$' \| \ | |
50848 | X"$ac_file" : 'X\(/\)' \| \ | |
50849 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50850 | echo X"$ac_file" | |
50851 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50852 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50853 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50854 | /^X\(\/\).*/{ s//\1/; q; } | |
50855 | s/.*/./; q'` | |
50856 | { if $as_mkdir_p; then | |
50857 | mkdir -p "$ac_dir" | |
50858 | else | |
50859 | as_dir="$ac_dir" | |
50860 | as_dirs= | |
50861 | while test ! -d "$as_dir"; do | |
50862 | as_dirs="$as_dir $as_dirs" | |
50863 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50864 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50865 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50866 | X"$as_dir" : 'X\(//\)$' \| \ | |
50867 | X"$as_dir" : 'X\(/\)' \| \ | |
50868 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50869 | echo X"$as_dir" | |
50870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50871 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50872 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50873 | /^X\(\/\).*/{ s//\1/; q; } | |
50874 | s/.*/./; q'` | |
50875 | done | |
50876 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50877 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50878 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50879 | { (exit 1); exit 1; }; }; } | |
50880 | ||
50881 | ac_builddir=. | |
50882 | ||
50883 | if test "$ac_dir" != .; then | |
50884 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50885 | # A "../" for each directory in $ac_dir_suffix. | |
50886 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50887 | else | |
50888 | ac_dir_suffix= ac_top_builddir= | |
50889 | fi | |
50890 | ||
50891 | case $srcdir in | |
50892 | .) # No --srcdir option. We are building in place. | |
50893 | ac_srcdir=. | |
50894 | if test -z "$ac_top_builddir"; then | |
50895 | ac_top_srcdir=. | |
50896 | else | |
50897 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50898 | fi ;; | |
50899 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50900 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50901 | ac_top_srcdir=$srcdir ;; | |
50902 | *) # Relative path. | |
50903 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50904 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50905 | esac | |
ac1cb8d3 VS |
50906 | |
50907 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50908 | # the directories may not exist. | |
50909 | case `pwd` in | |
50910 | .) ac_abs_builddir="$ac_dir";; | |
50911 | *) | |
50912 | case "$ac_dir" in | |
50913 | .) ac_abs_builddir=`pwd`;; | |
50914 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50915 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50916 | esac;; | |
50917 | esac | |
50918 | case $ac_abs_builddir in | |
50919 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50920 | *) | |
50921 | case ${ac_top_builddir}. in | |
50922 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50923 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50924 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50925 | esac;; | |
50926 | esac | |
50927 | case $ac_abs_builddir in | |
50928 | .) ac_abs_srcdir=$ac_srcdir;; | |
50929 | *) | |
50930 | case $ac_srcdir in | |
50931 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50932 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50933 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50934 | esac;; | |
50935 | esac | |
50936 | case $ac_abs_builddir in | |
50937 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50938 | *) | |
50939 | case $ac_top_srcdir in | |
50940 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50941 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50942 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50943 | esac;; | |
50944 | esac | |
a848cd7e SC |
50945 | |
50946 | ||
50947 | case $INSTALL in | |
50948 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
50949 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
50950 | esac | |
50951 | ||
a848cd7e SC |
50952 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
50953 | # use $as_me), people would be surprised to read: | |
50954 | # /* config.h. Generated by config.status. */ | |
50955 | if test x"$ac_file" = x-; then | |
50956 | configure_input= | |
50957 | else | |
50958 | configure_input="$ac_file. " | |
50959 | fi | |
50960 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 50961 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
50962 | |
50963 | # First look for the input files in the build tree, otherwise in the | |
50964 | # src tree. | |
50965 | ac_file_inputs=`IFS=: | |
50966 | for f in $ac_file_in; do | |
50967 | case $f in | |
50968 | -) echo $tmp/stdin ;; | |
50969 | [\\/$]*) | |
ac1cb8d3 VS |
50970 | # Absolute (can't be DOS-style, as IFS=:) |
50971 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50972 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50973 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50974 | echo "$f";; |
a848cd7e | 50975 | *) # Relative |
ac1cb8d3 VS |
50976 | if test -f "$f"; then |
50977 | # Build tree | |
50978 | echo "$f" | |
50979 | elif test -f "$srcdir/$f"; then | |
50980 | # Source tree | |
50981 | echo "$srcdir/$f" | |
50982 | else | |
50983 | # /dev/null tree | |
50984 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
50985 | echo "$as_me: error: cannot find input file: $f" >&2;} |
50986 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 50987 | fi;; |
a848cd7e SC |
50988 | esac |
50989 | done` || { (exit 1); exit 1; } | |
ca5c6ac3 VZ |
50990 | |
50991 | if test x"$ac_file" != x-; then | |
50992 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
50993 | echo "$as_me: creating $ac_file" >&6;} | |
50994 | rm -f "$ac_file" | |
50995 | fi | |
a848cd7e SC |
50996 | _ACEOF |
50997 | cat >>$CONFIG_STATUS <<_ACEOF | |
50998 | sed "$ac_vpsub | |
50999 | $extrasub | |
51000 | _ACEOF | |
51001 | cat >>$CONFIG_STATUS <<\_ACEOF | |
51002 | :t | |
51003 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
51004 | s,@configure_input@,$configure_input,;t t | |
51005 | s,@srcdir@,$ac_srcdir,;t t | |
51006 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
51007 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
51008 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
51009 | s,@builddir@,$ac_builddir,;t t | |
51010 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
51011 | s,@top_builddir@,$ac_top_builddir,;t t | |
51012 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
51013 | s,@INSTALL@,$ac_INSTALL,;t t | |
51014 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
51015 | rm -f $tmp/stdin | |
51016 | if test x"$ac_file" != x-; then | |
51017 | mv $tmp/out $ac_file | |
51018 | else | |
51019 | cat $tmp/out | |
51020 | rm -f $tmp/out | |
51021 | fi | |
51022 | ||
ceec2216 RL |
51023 | # Run the commands associated with the file. |
51024 | case $ac_file in | |
51025 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
51026 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
51027 | esac | |
a848cd7e SC |
51028 | done |
51029 | _ACEOF | |
51030 | cat >>$CONFIG_STATUS <<\_ACEOF | |
51031 | ||
51032 | # | |
51033 | # CONFIG_HEADER section. | |
51034 | # | |
51035 | ||
51036 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
51037 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
51038 | # | |
51039 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
51040 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
51041 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
51042 | ac_dC=' ' |
51043 | ac_dD=',;t' | |
51044 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 51045 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
51046 | ac_uB='$,\1#\2define\3' |
51047 | ac_uC=' ' | |
51048 | ac_uD=',;t' | |
51049 | ||
51050 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
51051 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
51052 | case $ac_file in | |
51053 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
51054 | cat >$tmp/stdin |
51055 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
51056 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 51057 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 51058 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
51059 | * ) ac_file_in=$ac_file.in ;; |
51060 | esac | |
51061 | ||
51062 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
51063 | echo "$as_me: creating $ac_file" >&6;} | |
51064 | ||
51065 | # First look for the input files in the build tree, otherwise in the | |
51066 | # src tree. | |
51067 | ac_file_inputs=`IFS=: | |
51068 | for f in $ac_file_in; do | |
51069 | case $f in | |
51070 | -) echo $tmp/stdin ;; | |
51071 | [\\/$]*) | |
ac1cb8d3 VS |
51072 | # Absolute (can't be DOS-style, as IFS=:) |
51073 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
51074 | echo "$as_me: error: cannot find input file: $f" >&2;} |
51075 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
51076 | # Do quote $f, to prevent DOS paths from being IFS'd. |
51077 | echo "$f";; | |
a848cd7e | 51078 | *) # Relative |
ac1cb8d3 VS |
51079 | if test -f "$f"; then |
51080 | # Build tree | |
51081 | echo "$f" | |
51082 | elif test -f "$srcdir/$f"; then | |
51083 | # Source tree | |
51084 | echo "$srcdir/$f" | |
51085 | else | |
51086 | # /dev/null tree | |
51087 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
51088 | echo "$as_me: error: cannot find input file: $f" >&2;} |
51089 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 51090 | fi;; |
a848cd7e SC |
51091 | esac |
51092 | done` || { (exit 1); exit 1; } | |
51093 | # Remove the trailing spaces. | |
ac1cb8d3 | 51094 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
51095 | |
51096 | _ACEOF | |
51097 | ||
51098 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
51099 | # `conftest.undefs', that substitutes the proper values into | |
51100 | # config.h.in to produce config.h. The first handles `#define' | |
51101 | # templates, and the second `#undef' templates. | |
51102 | # And first: Protect against being on the right side of a sed subst in | |
51103 | # config.status. Protect against being in an unquoted here document | |
51104 | # in config.status. | |
51105 | rm -f conftest.defines conftest.undefs | |
51106 | # Using a here document instead of a string reduces the quoting nightmare. | |
51107 | # Putting comments in sed scripts is not portable. | |
51108 | # | |
51109 | # `end' is used to avoid that the second main sed command (meant for | |
51110 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
51111 | # See the Autoconf documentation for `clear'. | |
51112 | cat >confdef2sed.sed <<\_ACEOF | |
51113 | s/[\\&,]/\\&/g | |
51114 | s,[\\$`],\\&,g | |
51115 | t clear | |
51116 | : clear | |
ac1cb8d3 | 51117 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 51118 | t end |
ac1cb8d3 | 51119 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
51120 | : end |
51121 | _ACEOF | |
51122 | # If some macros were called several times there might be several times | |
51123 | # the same #defines, which is useless. Nevertheless, we may not want to | |
51124 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
51125 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
51126 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
51127 | rm -f confdef2sed.sed | |
51128 | ||
51129 | # This sed command replaces #undef with comments. This is necessary, for | |
51130 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
51131 | # on some systems where configure will not decide to define it. | |
51132 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 51133 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
51134 | _ACEOF |
51135 | ||
51136 | # Break up conftest.defines because some shells have a limit on the size | |
51137 | # of here documents, and old seds have small limits too (100 cmds). | |
51138 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 51139 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
51140 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
51141 | echo ' :' >>$CONFIG_STATUS | |
51142 | rm -f conftest.tail | |
51143 | while grep . conftest.defines >/dev/null | |
51144 | do | |
51145 | # Write a limited-size here document to $tmp/defines.sed. | |
51146 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
51147 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 51148 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
51149 | # Work around the forget-to-reset-the-flag bug. |
51150 | echo 't clr' >>$CONFIG_STATUS | |
51151 | echo ': clr' >>$CONFIG_STATUS | |
51152 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
51153 | echo 'CEOF | |
51154 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
51155 | rm -f $tmp/in | |
51156 | mv $tmp/out $tmp/in | |
51157 | ' >>$CONFIG_STATUS | |
51158 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
51159 | rm -f conftest.defines | |
51160 | mv conftest.tail conftest.defines | |
51161 | done | |
51162 | rm -f conftest.defines | |
51163 | echo ' fi # grep' >>$CONFIG_STATUS | |
51164 | echo >>$CONFIG_STATUS | |
51165 | ||
51166 | # Break up conftest.undefs because some shells have a limit on the size | |
51167 | # of here documents, and old seds have small limits too (100 cmds). | |
51168 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
51169 | rm -f conftest.tail | |
51170 | while grep . conftest.undefs >/dev/null | |
51171 | do | |
51172 | # Write a limited-size here document to $tmp/undefs.sed. | |
51173 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
51174 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 51175 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
51176 | # Work around the forget-to-reset-the-flag bug. |
51177 | echo 't clr' >>$CONFIG_STATUS | |
51178 | echo ': clr' >>$CONFIG_STATUS | |
51179 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
51180 | echo 'CEOF | |
51181 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
51182 | rm -f $tmp/in | |
51183 | mv $tmp/out $tmp/in | |
51184 | ' >>$CONFIG_STATUS | |
51185 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
51186 | rm -f conftest.undefs | |
51187 | mv conftest.tail conftest.undefs | |
51188 | done | |
51189 | rm -f conftest.undefs | |
51190 | ||
51191 | cat >>$CONFIG_STATUS <<\_ACEOF | |
51192 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
51193 | # use $as_me), people would be surprised to read: | |
51194 | # /* config.h. Generated by config.status. */ | |
51195 | if test x"$ac_file" = x-; then | |
51196 | echo "/* Generated by configure. */" >$tmp/config.h | |
51197 | else | |
51198 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
51199 | fi | |
51200 | cat $tmp/in >>$tmp/config.h | |
51201 | rm -f $tmp/in | |
51202 | if test x"$ac_file" != x-; then | |
51203 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
51204 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
51205 | echo "$as_me: $ac_file is unchanged" >&6;} | |
51206 | else | |
51207 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
51208 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
51209 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
51210 | X"$ac_file" : 'X\(//\)$' \| \ | |
51211 | X"$ac_file" : 'X\(/\)' \| \ | |
51212 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
51213 | echo X"$ac_file" | |
51214 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
51215 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
51216 | /^X\(\/\/\)$/{ s//\1/; q; } | |
51217 | /^X\(\/\).*/{ s//\1/; q; } | |
51218 | s/.*/./; q'` | |
51219 | { if $as_mkdir_p; then | |
51220 | mkdir -p "$ac_dir" | |
51221 | else | |
51222 | as_dir="$ac_dir" | |
51223 | as_dirs= | |
51224 | while test ! -d "$as_dir"; do | |
51225 | as_dirs="$as_dir $as_dirs" | |
51226 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
51227 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
51228 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
51229 | X"$as_dir" : 'X\(//\)$' \| \ | |
51230 | X"$as_dir" : 'X\(/\)' \| \ | |
51231 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
51232 | echo X"$as_dir" | |
51233 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
51234 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
51235 | /^X\(\/\/\)$/{ s//\1/; q; } | |
51236 | /^X\(\/\).*/{ s//\1/; q; } | |
51237 | s/.*/./; q'` | |
51238 | done | |
51239 | test ! -n "$as_dirs" || mkdir $as_dirs | |
51240 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
51241 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
51242 | { (exit 1); exit 1; }; }; } | |
51243 | ||
51244 | rm -f $ac_file | |
51245 | mv $tmp/config.h $ac_file | |
51246 | fi | |
51247 | else | |
51248 | cat $tmp/config.h | |
51249 | rm -f $tmp/config.h | |
51250 | fi | |
51251 | done | |
51252 | _ACEOF | |
51253 | cat >>$CONFIG_STATUS <<\_ACEOF | |
51254 | ||
51255 | # | |
51256 | # CONFIG_COMMANDS section. | |
51257 | # | |
51258 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
51259 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
51260 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
51261 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
51262 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
51263 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
51264 | X"$ac_dest" : 'X\(//\)$' \| \ | |
51265 | X"$ac_dest" : 'X\(/\)' \| \ | |
51266 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
51267 | echo X"$ac_dest" | |
51268 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
51269 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
51270 | /^X\(\/\/\)$/{ s//\1/; q; } | |
51271 | /^X\(\/\).*/{ s//\1/; q; } | |
51272 | s/.*/./; q'` | |
ac1cb8d3 VS |
51273 | { if $as_mkdir_p; then |
51274 | mkdir -p "$ac_dir" | |
51275 | else | |
51276 | as_dir="$ac_dir" | |
51277 | as_dirs= | |
51278 | while test ! -d "$as_dir"; do | |
51279 | as_dirs="$as_dir $as_dirs" | |
51280 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
51281 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
51282 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
51283 | X"$as_dir" : 'X\(//\)$' \| \ | |
51284 | X"$as_dir" : 'X\(/\)' \| \ | |
51285 | . : '\(.\)' 2>/dev/null || | |
51286 | echo X"$as_dir" | | |
51287 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
51288 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
51289 | /^X\(\/\/\)$/{ s//\1/; q; } | |
51290 | /^X\(\/\).*/{ s//\1/; q; } | |
51291 | s/.*/./; q'` | |
51292 | done | |
51293 | test ! -n "$as_dirs" || mkdir $as_dirs | |
51294 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
51295 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
51296 | { (exit 1); exit 1; }; }; } | |
51297 | ||
a848cd7e SC |
51298 | ac_builddir=. |
51299 | ||
51300 | if test "$ac_dir" != .; then | |
51301 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
51302 | # A "../" for each directory in $ac_dir_suffix. | |
51303 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
51304 | else | |
51305 | ac_dir_suffix= ac_top_builddir= | |
51306 | fi | |
51307 | ||
51308 | case $srcdir in | |
51309 | .) # No --srcdir option. We are building in place. | |
51310 | ac_srcdir=. | |
51311 | if test -z "$ac_top_builddir"; then | |
51312 | ac_top_srcdir=. | |
51313 | else | |
51314 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
51315 | fi ;; | |
51316 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
51317 | ac_srcdir=$srcdir$ac_dir_suffix; | |
51318 | ac_top_srcdir=$srcdir ;; | |
51319 | *) # Relative path. | |
51320 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
51321 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
51322 | esac | |
ac1cb8d3 VS |
51323 | |
51324 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
51325 | # the directories may not exist. | |
51326 | case `pwd` in | |
51327 | .) ac_abs_builddir="$ac_dir";; | |
51328 | *) | |
51329 | case "$ac_dir" in | |
51330 | .) ac_abs_builddir=`pwd`;; | |
51331 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
51332 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
51333 | esac;; | |
51334 | esac | |
51335 | case $ac_abs_builddir in | |
51336 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
51337 | *) | |
51338 | case ${ac_top_builddir}. in | |
51339 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
51340 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
51341 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
51342 | esac;; | |
51343 | esac | |
51344 | case $ac_abs_builddir in | |
51345 | .) ac_abs_srcdir=$ac_srcdir;; | |
51346 | *) | |
51347 | case $ac_srcdir in | |
51348 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
51349 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
51350 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
51351 | esac;; | |
51352 | esac | |
51353 | case $ac_abs_builddir in | |
51354 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
51355 | *) | |
51356 | case $ac_top_srcdir in | |
51357 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
51358 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
51359 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
51360 | esac;; | |
51361 | esac | |
a848cd7e SC |
51362 | |
51363 | ||
51364 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
51365 | echo "$as_me: executing $ac_dest commands" >&6;} | |
51366 | case $ac_dest in | |
5c60e845 MW |
51367 | rcdefs.h ) |
51368 | mkdir -p $outdir && | |
51369 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
51370 | ;; | |
ceec2216 RL |
51371 | wx-config ) rm -f wx-config |
51372 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
51373 | ;; | |
a848cd7e SC |
51374 | esac |
51375 | done | |
51376 | _ACEOF | |
51377 | ||
51378 | cat >>$CONFIG_STATUS <<\_ACEOF | |
51379 | ||
51380 | { (exit 0); exit 0; } | |
51381 | _ACEOF | |
51382 | chmod +x $CONFIG_STATUS | |
51383 | ac_clean_files=$ac_clean_files_save | |
51384 | ||
51385 | ||
51386 | # configure is writing to config.log, and then calls config.status. | |
51387 | # config.status does its own redirection, appending to config.log. | |
51388 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
51389 | # by configure, so config.status won't be able to write to it; its | |
51390 | # output is simply discarded. So we exec the FD to /dev/null, | |
51391 | # effectively closing config.log, so it can be properly (re)opened and | |
51392 | # appended to by config.status. When coming back to configure, we | |
51393 | # need to make the FD available again. | |
51394 | if test "$no_create" != yes; then | |
51395 | ac_cs_success=: | |
51396 | ac_config_status_args= | |
51397 | test "$silent" = yes && | |
51398 | ac_config_status_args="$ac_config_status_args --quiet" | |
51399 | exec 5>/dev/null | |
51400 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
51401 | exec 5>>config.log | |
51402 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
51403 | # would make configure fail if this is the last instruction. | |
51404 | $ac_cs_success || { (exit 1); exit 1; } | |
51405 | fi | |
51406 | ||
51407 | # | |
51408 | # CONFIG_SUBDIRS section. | |
51409 | # | |
51410 | if test "$no_recursion" != yes; then | |
51411 | ||
51412 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
51413 | ac_sub_configure_args= | |
51414 | ac_prev= | |
51415 | for ac_arg in $ac_configure_args; do | |
51416 | if test -n "$ac_prev"; then | |
51417 | ac_prev= | |
51418 | continue | |
51419 | fi | |
51420 | case $ac_arg in | |
51421 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
51422 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
51423 | ac_prev=cache_file ;; | |
51424 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
51425 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
51426 | | --c=*) | |
51427 | ;; | |
51428 | --config-cache | -C) | |
51429 | ;; | |
51430 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
51431 | ac_prev=srcdir ;; | |
51432 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
51433 | ;; | |
51434 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
51435 | ac_prev=prefix ;; | |
51436 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
51437 | ;; | |
51438 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
51439 | esac | |
51440 | done | |
51441 | ||
51442 | # Always prepend --prefix to ensure using the same prefix | |
51443 | # in subdir configurations. | |
51444 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
51445 | ||
51446 | ac_popdir=`pwd` | |
51447 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
51448 | ||
51449 | # Do not complain, so a configure script can configure whichever | |
51450 | # parts of a large source tree are present. | |
51451 | test -d $srcdir/$ac_dir || continue | |
51452 | ||
51453 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
51454 | echo "$as_me: configuring in $ac_dir" >&6;} | |
51455 | { if $as_mkdir_p; then | |
51456 | mkdir -p "$ac_dir" | |
51457 | else | |
51458 | as_dir="$ac_dir" | |
51459 | as_dirs= | |
51460 | while test ! -d "$as_dir"; do | |
51461 | as_dirs="$as_dir $as_dirs" | |
51462 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
51463 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
51464 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
51465 | X"$as_dir" : 'X\(//\)$' \| \ | |
51466 | X"$as_dir" : 'X\(/\)' \| \ | |
51467 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
51468 | echo X"$as_dir" | |
51469 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
51470 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
51471 | /^X\(\/\/\)$/{ s//\1/; q; } | |
51472 | /^X\(\/\).*/{ s//\1/; q; } | |
51473 | s/.*/./; q'` | |
51474 | done | |
51475 | test ! -n "$as_dirs" || mkdir $as_dirs | |
51476 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
51477 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
51478 | { (exit 1); exit 1; }; }; } | |
51479 | ||
51480 | ac_builddir=. | |
51481 | ||
51482 | if test "$ac_dir" != .; then | |
51483 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
51484 | # A "../" for each directory in $ac_dir_suffix. | |
51485 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
51486 | else | |
51487 | ac_dir_suffix= ac_top_builddir= | |
51488 | fi | |
51489 | ||
51490 | case $srcdir in | |
51491 | .) # No --srcdir option. We are building in place. | |
51492 | ac_srcdir=. | |
51493 | if test -z "$ac_top_builddir"; then | |
51494 | ac_top_srcdir=. | |
51495 | else | |
51496 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
51497 | fi ;; | |
51498 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
51499 | ac_srcdir=$srcdir$ac_dir_suffix; | |
51500 | ac_top_srcdir=$srcdir ;; | |
51501 | *) # Relative path. | |
51502 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
51503 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
51504 | esac | |
ac1cb8d3 VS |
51505 | |
51506 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
51507 | # the directories may not exist. | |
51508 | case `pwd` in | |
51509 | .) ac_abs_builddir="$ac_dir";; | |
51510 | *) | |
51511 | case "$ac_dir" in | |
51512 | .) ac_abs_builddir=`pwd`;; | |
51513 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
51514 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
51515 | esac;; | |
51516 | esac | |
51517 | case $ac_abs_builddir in | |
51518 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
51519 | *) | |
51520 | case ${ac_top_builddir}. in | |
51521 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
51522 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
51523 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
51524 | esac;; | |
51525 | esac | |
51526 | case $ac_abs_builddir in | |
51527 | .) ac_abs_srcdir=$ac_srcdir;; | |
51528 | *) | |
51529 | case $ac_srcdir in | |
51530 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
51531 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
51532 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
51533 | esac;; | |
51534 | esac | |
51535 | case $ac_abs_builddir in | |
51536 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
51537 | *) | |
51538 | case $ac_top_srcdir in | |
51539 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
51540 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
51541 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
51542 | esac;; | |
51543 | esac | |
a848cd7e SC |
51544 | |
51545 | ||
51546 | cd $ac_dir | |
51547 | ||
51548 | # Check for guested configure; otherwise get Cygnus style configure. | |
51549 | if test -f $ac_srcdir/configure.gnu; then | |
51550 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
51551 | elif test -f $ac_srcdir/configure; then | |
51552 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
51553 | elif test -f $ac_srcdir/configure.in; then | |
51554 | ac_sub_configure=$ac_configure | |
51555 | else | |
51556 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
51557 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
51558 | ac_sub_configure= | |
51559 | fi | |
51560 | ||
51561 | # The recursion is here. | |
51562 | if test -n "$ac_sub_configure"; then | |
51563 | # Make the cache file name correct relative to the subdirectory. | |
51564 | case $cache_file in | |
51565 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
51566 | *) # Relative path. | |
ac1cb8d3 | 51567 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
51568 | esac |
51569 | ||
51570 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
51571 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
51572 | # The eval makes quoting arguments work. | |
51573 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
51574 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
51575 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
51576 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
51577 | { (exit 1); exit 1; }; } | |
51578 | fi | |
51579 | ||
ca5c6ac3 | 51580 | cd "$ac_popdir" |
a848cd7e SC |
51581 | done |
51582 | fi | |
51583 | ||
51584 | ||
51585 | echo | |
77ffb593 | 51586 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 51587 | echo "" |
c2e9ada4 | 51588 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}" |
77ffb593 | 51589 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 51590 | |
77ffb593 JS |
51591 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
51592 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
51593 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 51594 | |
77ffb593 | 51595 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
51596 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
51597 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 51598 | |
77ffb593 | 51599 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
51600 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
51601 | echo " png ${wxUSE_LIBPNG-none}" | |
51602 | echo " regex ${wxUSE_REGEX}" | |
51603 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
51604 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
51605 | echo " xpm ${wxUSE_LIBXPM-none}" | |
51606 | fi | |
51607 | echo " zlib ${wxUSE_ZLIB}" | |
51608 | echo " odbc ${wxUSE_ODBC}" | |
51609 | echo " expat ${wxUSE_EXPAT}" | |
51610 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
51611 | echo " sdl ${wxUSE_LIBSDL}" | |
51612 | ||
51613 | echo "" | |
51614 |